author | nipkow |
Tue, 26 Nov 1996 14:28:17 +0100 | |
changeset 2223 | 4b43a8d046e5 |
permissions | -rw-r--r-- |
2223
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
1 |
(* Title: HOL/ex/Lagrange.thy |
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
2 |
ID: $Id$ |
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
3 |
Author: Tobias Nipkow |
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
4 |
Copyright 1996 TU Muenchen |
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
5 |
|
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
6 |
|
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
7 |
This theory only contains a single thm, which is a lemma in Lagrange's proof |
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
8 |
that every natural number is the sum of 4 squares. It's sole purpose is to |
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
9 |
demonstrate ordered rewriting for commutative rings. |
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
10 |
|
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
11 |
The enterprising reader might consider proving all of Lagrange's thm. |
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
12 |
*) |
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
13 |
Lagrange = Ring + |
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
14 |
|
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
15 |
constdefs sq :: 'a::times => 'a |
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
16 |
"sq x == x*x" |
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
17 |
|
4b43a8d046e5
A bit of commutative ing theory, with a simplification tacxtic and an example.
nipkow
parents:
diff
changeset
|
18 |
end |