| 1 |
+ ===================================================================== + |
| 2 |
| | |
| 3 |
| LIBRARY : quotient | |
| 4 |
| | |
| 5 |
| DESCRIPTION : Definition of quotient types. | |
| 6 |
| | |
| 7 |
| AUTHOR : T. kalker | |
| 8 |
| DATE : 8 JUNE 1989 | |
| 9 |
| | |
| 10 |
+ ===================================================================== + |
| 11 |
|
| 12 |
|
| 13 |
+ --------------------------------------------------------------------- + |
| 14 |
| | |
| 15 |
| FILES: | |
| 16 |
| | |
| 17 |
+ --------------------------------------------------------------------- + |
| 18 |
|
| 19 |
mk_quotient.ml creates the theory of quotients. |
| 20 |
|
| 21 |
quotientfns.ml functions for creating quotient types, |
| 22 |
and some associated tactics. |
| 23 |
|
| 24 |
quotient.ml loads the library into hol. |
| 25 |
|
| 26 |
+ --------------------------------------------------------------------- + |
| 27 |
| | |
| 28 |
| DOCUMENTATION: | |
| 29 |
| | |
| 30 |
+ --------------------------------------------------------------------- + |
| 31 |
|
| 32 |
Given an equivalence relation, the function 'new_quotient_definition' |
| 33 |
creates the type of equivalence classes. |
| 34 |
|
| 35 |
Example: defining the constant "EQUI_POTENT:(*->bool)->(*->bool)->bool" |
| 36 |
in some natural way, one proves |
| 37 |
|
| 38 |
EQUIVALENCE_THM = |- EQUIVALENCE EQUI_POTENT |
| 39 |
|
| 40 |
The call 'new_quotient_definition(`card`,EQUIVALENCE_THM)' |
| 41 |
|
| 42 |
creates the type (*)card of cardinals of type *. |
| 43 |
|
| 44 |
The call returns 3 theorems, asserting that the |
| 45 |
canonical projection is surjective and universal for |
| 46 |
the equivalence relation. |
| 47 |
|
| 48 |
+ --------------------------------------------------------------------- + |
| 49 |
| | |
| 50 |
| TO REBUILD THE LIBRARY: | |
| 51 |
| | |
| 52 |
+ --------------------------------------------------------------------- + |
| 53 |
|
| 54 |
0) necessary libraries: auxiliary |
| 55 |
|
| 56 |
1) edit the pathnames in the Makefile (if necessary) |
| 57 |
|
| 58 |
2) type "make clean" |
| 59 |
|
| 60 |
3) type "make all" |
| 61 |
|
| 62 |
+ --------------------------------------------------------------------- + |
| 63 |
| | |
| 64 |
| TO USE THE LIBRARY: | |
| 65 |
| | |
| 66 |
+ --------------------------------------------------------------------- + |
| 67 |
|
| 68 |
load_library `quotient`;; |
| 69 |
|
| 70 |
|