| 1 |
+ ===================================================================== + |
| 2 |
| | |
| 3 |
| LIBRARY : zet | |
| 4 |
| | |
| 5 |
| DESCRIPTION : Definition of the integers: zet. | |
| 6 |
| | |
| 7 |
| AUTHOR : T. kalker | |
| 8 |
| DATE : 10 July 1989 | |
| 9 |
| | |
| 10 |
+ ===================================================================== + |
| 11 |
|
| 12 |
|
| 13 |
+ --------------------------------------------------------------------- + |
| 14 |
| | |
| 15 |
| FILES: | |
| 16 |
| | |
| 17 |
+ --------------------------------------------------------------------- + |
| 18 |
|
| 19 |
|
| 20 |
mk_zet: defines the type zet |
| 21 |
|
| 22 |
zet_tactics.ml: induction tactics |
| 23 |
|
| 24 |
zet_ind: definition by induction |
| 25 |
|
| 26 |
zet.ml: loads the theory zet |
| 27 |
|
| 28 |
+ --------------------------------------------------------------------- + |
| 29 |
| | |
| 30 |
| DOCUMENTATION: | |
| 31 |
| | |
| 32 |
+ --------------------------------------------------------------------- + |
| 33 |
|
| 34 |
The theory of integers is constructed from the naturals |
| 35 |
using a quotient construct. |
| 36 |
The relation with the naturals is given via the function INT. |
| 37 |
Induction is provided for by three tactics based upon |
| 38 |
three differrent, but similar theorems. |
| 39 |
|
| 40 |
0) |- "!Q.((!x.(NEG x) ==> Q x) /\ (!x.((POS x) /\ (Q x)) ==> |
| 41 |
(Q (x plus een)))) ==> !x.Q x |
| 42 |
|
| 43 |
1) |- "!k Q.((!x.(x leq k) ==> (Q x)) /\ |
| 44 |
(!x.((k leq x) /\ (Q x)) ==> (Q (x plus een)))) ==> (!x.Q x) |
| 45 |
|
| 46 |
2) |- "!k Q.((Q k) /\ |
| 47 |
(!x.((x leq k) /\ (Q x)) ==> (Q (x minus een))) /\ |
| 48 |
(!x.((k leq x) /\ (Q x)) ==> (Q (x plus een)))) ==> |
| 49 |
(!x.Q x) |
| 50 |
|
| 51 |
The latter theorem is used for constructing the functions: |
| 52 |
|
| 53 |
zet_recursive_definition, zet_zero_definition, zet_een_definition |
| 54 |
|
| 55 |
|
| 56 |
+ --------------------------------------------------------------------- + |
| 57 |
| | |
| 58 |
| TO REBUILD THE LIBRARY: | |
| 59 |
| | |
| 60 |
+ --------------------------------------------------------------------- + |
| 61 |
|
| 62 |
0) necessary libraries: auxiliary, quotient, convert |
| 63 |
|
| 64 |
1) edit the pathnames in the Makefile (if necessary) |
| 65 |
|
| 66 |
2) type "make clean" |
| 67 |
|
| 68 |
3) type "make all" |
| 69 |
|
| 70 |
+ --------------------------------------------------------------------- + |
| 71 |
| | |
| 72 |
| TO USE THE LIBRARY: | |
| 73 |
| | |
| 74 |
+ --------------------------------------------------------------------- + |
| 75 |
|
| 76 |
load_library `zet`;; |
| 77 |
|
| 78 |
|