author | paulson |
Mon, 02 Jun 1997 12:15:13 +0200 | |
changeset 3385 | f59e64fe4058 |
parent 3333 | 0bbf06e86c06 |
child 3391 | 5e45dd3b64e9 |
permissions | -rw-r--r-- |
3302 | 1 |
(* Title: TFL/tfl |
2 |
ID: $Id$ |
|
3 |
Author: Konrad Slind, Cambridge University Computer Laboratory |
|
4 |
Copyright 1997 University of Cambridge |
|
5 |
||
6 |
Main TFL functor |
|
7 |
*) |
|
8 |
||
2112 | 9 |
signature TFL_sig = |
10 |
sig |
|
11 |
structure Rules: Rules_sig |
|
12 |
structure Thms : Thms_sig |
|
13 |
structure Thry : Thry_sig |
|
14 |
structure USyntax : USyntax_sig |
|
15 |
||
3245
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
16 |
datatype pattern = GIVEN of term * int |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
17 |
| OMITTED of term * int |
2112 | 18 |
|
3245
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
19 |
val mk_functional : theory -> term |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
20 |
-> {functional:term, |
2112 | 21 |
pats: pattern list} |
22 |
||
3333
0bbf06e86c06
Now checks the name of the function being defined;
paulson
parents:
3302
diff
changeset
|
23 |
val wfrec_definition0 : theory -> string -> term -> term -> thm * theory |
3191 | 24 |
|
3245
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
25 |
val post_definition : theory * (thm * pattern list) |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
26 |
-> {theory : theory, |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
27 |
rules : thm, |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
28 |
TCs : term list list, |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
29 |
full_pats_TCs : (term * term list) list, |
3191 | 30 |
patterns : pattern list} |
31 |
||
2112 | 32 |
|
3245
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
33 |
val wfrec_eqns : theory -> term |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
34 |
-> {WFR : term, |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
35 |
proto_def : term, |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
36 |
extracta :(thm * term list) list, |
2112 | 37 |
pats : pattern list} |
38 |
||
39 |
||
3245
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
40 |
val lazyR_def : theory |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
41 |
-> term |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
42 |
-> {theory:theory, |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
43 |
rules :thm, |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
44 |
R :term, |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
45 |
full_pats_TCs :(term * term list) list, |
2112 | 46 |
patterns: pattern list} |
47 |
||
3245
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
48 |
val mk_induction : theory |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
49 |
-> term -> term |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
50 |
-> (term * term list) list |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
51 |
-> thm |
2112 | 52 |
|
3245
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
53 |
val postprocess: {WFtac:tactic, terminator:tactic, simplifier:cterm -> thm} |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
54 |
-> theory |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
55 |
-> {rules:thm, induction:thm, TCs:term list list} |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
56 |
-> {rules:thm, induction:thm, nested_tcs:thm list} |
2112 | 57 |
|
58 |
structure Context |
|
59 |
: sig |
|
3245
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
60 |
val read : unit -> thm list |
241838c01caf
Removal of redundant code (unused or already present in Isabelle.
paulson
parents:
3191
diff
changeset
|
61 |
val write : thm list -> unit |
2112 | 62 |
end |
63 |
end; |