author | aspinall |
Thu, 21 Dec 2006 08:42:53 +0100 | |
changeset 21890 | 3fb9762ba701 |
parent 21889 | 682dbe947862 |
child 21930 | 918fb0fb5c72 |
permissions | -rw-r--r-- |
19 | 1 |
(* Title: Pure/ROOT.ML |
0 | 2 |
ID: $Id$ |
3 |
||
16842 | 4 |
Pure Isabelle. |
0 | 5 |
*) |
6 |
||
7 |
val banner = "Pure Isabelle"; |
|
11835 | 8 |
val version = "Isabelle repository version"; (*filled in automatically!*) |
9 |
||
17474
e4cdb9f061fb
added quick_and_dirty (from Isar/skip_proofs.ML);
wenzelm
parents:
17467
diff
changeset
|
10 |
(*if true then some tools will OMIT some proofs*) |
e4cdb9f061fb
added quick_and_dirty (from Isar/skip_proofs.ML);
wenzelm
parents:
17467
diff
changeset
|
11 |
val quick_and_dirty = ref false; |
0 | 12 |
|
12248 | 13 |
print_depth 10; |
0 | 14 |
|
5684 | 15 |
(*fake hiding of private structures*) |
16 |
structure Hidden = struct end; |
|
4949 | 17 |
|
5017
786a17461ab9
moved table.ML, object.ML, seq.ML, name_space.ML to General;
wenzelm
parents:
5004
diff
changeset
|
18 |
(*basic tools*) |
21396 | 19 |
use "General/basics.ML"; |
0 | 20 |
use "library.ML"; |
5017
786a17461ab9
moved table.ML, object.ML, seq.ML, name_space.ML to General;
wenzelm
parents:
5004
diff
changeset
|
21 |
cd "General"; use "ROOT.ML"; cd ".."; |
14781 | 22 |
|
23 |
(*fundamental structures*) |
|
20075 | 24 |
use "name.ML"; |
0 | 25 |
use "term.ML"; |
20507 | 26 |
use "term_subst.ML"; |
14823
ebb8499d0fd2
moved print_mode to General/output.ML; load General/pretty.ML early;
wenzelm
parents:
14781
diff
changeset
|
27 |
use "General/pretty.ML"; |
14781 | 28 |
use "sorts.ML"; |
29 |
use "type.ML"; |
|
16435 | 30 |
use "context.ML"; |
16980 | 31 |
use "compress.ML"; |
19 | 32 |
|
4949 | 33 |
(*inner syntax module*) |
6178 | 34 |
cd "Syntax"; use "ROOT.ML"; cd ".."; |
21475 | 35 |
use "General/ml_syntax.ML"; |
0 | 36 |
|
15825
1576f9d3ffae
added content of Pure/Thy/ROOT.ML, Pure/Proof/ROOT.ML;
wenzelm
parents:
15801
diff
changeset
|
37 |
(*core of tactical proof system*) |
18934 | 38 |
use "envir.ML"; |
39 |
use "logic.ML"; |
|
2960 | 40 |
use "type_infer.ML"; |
18059 | 41 |
use "consts.ML"; |
0 | 42 |
use "sign.ML"; |
43 |
use "pattern.ML"; |
|
44 |
use "unify.ML"; |
|
45 |
use "net.ML"; |
|
16108
cf468b93a02e
Implement cycle-free overloading, so that definitions cannot harm consistency any more (except of course via interaction with axioms).
obua
parents:
15825
diff
changeset
|
46 |
use "defs.ML"; |
1528 | 47 |
use "theory.ML"; |
11511 | 48 |
use "proofterm.ML"; |
0 | 49 |
use "thm.ML"; |
21475 | 50 |
use "morphism.ML"; |
13271 | 51 |
use "fact_index.ML"; |
3986 | 52 |
use "pure_thy.ML"; |
19589 | 53 |
use "display.ML"; |
0 | 54 |
use "drule.ML"; |
19898 | 55 |
use "variable.ML"; |
0 | 56 |
use "tctical.ML"; |
1582 | 57 |
use "search.ML"; |
21708 | 58 |
use "tactic.ML"; |
15006
107e4dfd3b96
Merging the meta-simplifier with the Provers-simplifier. Next step:
skalberg
parents:
14823
diff
changeset
|
59 |
use "meta_simplifier.ML"; |
19417 | 60 |
use "conjunction.ML"; |
20225 | 61 |
use "assumption.ML"; |
17963 | 62 |
use "goal.ML"; |
0 | 63 |
|
11511 | 64 |
(*proof term operations*) |
15825
1576f9d3ffae
added content of Pure/Thy/ROOT.ML, Pure/Proof/ROOT.ML;
wenzelm
parents:
15801
diff
changeset
|
65 |
use "Proof/reconstruct.ML"; |
1576f9d3ffae
added content of Pure/Thy/ROOT.ML, Pure/Proof/ROOT.ML;
wenzelm
parents:
15801
diff
changeset
|
66 |
use "Proof/proof_syntax.ML"; |
1576f9d3ffae
added content of Pure/Thy/ROOT.ML, Pure/Proof/ROOT.ML;
wenzelm
parents:
15801
diff
changeset
|
67 |
use "Proof/proof_rewrite_rules.ML"; |
1576f9d3ffae
added content of Pure/Thy/ROOT.ML, Pure/Proof/ROOT.ML;
wenzelm
parents:
15801
diff
changeset
|
68 |
use "Proof/proofchecker.ML"; |
1576f9d3ffae
added content of Pure/Thy/ROOT.ML, Pure/Proof/ROOT.ML;
wenzelm
parents:
15801
diff
changeset
|
69 |
|
1576f9d3ffae
added content of Pure/Thy/ROOT.ML, Pure/Proof/ROOT.ML;
wenzelm
parents:
15801
diff
changeset
|
70 |
(*theory auto loader database*) |
1576f9d3ffae
added content of Pure/Thy/ROOT.ML, Pure/Proof/ROOT.ML;
wenzelm
parents:
15801
diff
changeset
|
71 |
use "Thy/thy_load.ML"; |
1576f9d3ffae
added content of Pure/Thy/ROOT.ML, Pure/Proof/ROOT.ML;
wenzelm
parents:
15801
diff
changeset
|
72 |
use "Thy/thy_info.ML"; |
11511 | 73 |
|
18870 | 74 |
(*theory syntax*) |
15825
1576f9d3ffae
added content of Pure/Thy/ROOT.ML, Pure/Proof/ROOT.ML;
wenzelm
parents:
15801
diff
changeset
|
75 |
use "Isar/outer_lex.ML"; |
1576f9d3ffae
added content of Pure/Thy/ROOT.ML, Pure/Proof/ROOT.ML;
wenzelm
parents:
15801
diff
changeset
|
76 |
|
16435 | 77 |
(*the Isar system*) |
6178 | 78 |
cd "Isar"; use "ROOT.ML"; cd ".."; |
20207 | 79 |
use "subgoal.ML"; |
5834 | 80 |
|
13402 | 81 |
use "Proof/extraction.ML"; |
11511 | 82 |
|
17467 | 83 |
cd "Tools"; use "ROOT.ML"; cd ".."; |
84 |
||
12778
3120e338ffae
Interface/proof_general.ML move to proof_general.ML;
wenzelm
parents:
12248
diff
changeset
|
85 |
(*configuration for Proof General*) |
21889
682dbe947862
Use new Proof General code by default [see comment for reverting]
aspinall
parents:
21858
diff
changeset
|
86 |
(* Next line is OLD CODE: in case you have problems, uncomment next line and |
682dbe947862
Use new Proof General code by default [see comment for reverting]
aspinall
parents:
21858
diff
changeset
|
87 |
comment out line after. Please report any problems to da@inf.ed.ac.uk. |
682dbe947862
Use new Proof General code by default [see comment for reverting]
aspinall
parents:
21858
diff
changeset
|
88 |
Plan is to remove old code very soon. *) |
21890
3fb9762ba701
Disable new Proof General code until SML/NJ compile fixed.
aspinall
parents:
21889
diff
changeset
|
89 |
(use |> setmp proofs 1 |> setmp quick_and_dirty true) "proof_general.ML"; |
3fb9762ba701
Disable new Proof General code until SML/NJ compile fixed.
aspinall
parents:
21889
diff
changeset
|
90 |
(* Next line is NEW CODE. Currently broken on SMLNJ. *) |
3fb9762ba701
Disable new Proof General code until SML/NJ compile fixed.
aspinall
parents:
21889
diff
changeset
|
91 |
(* cd "ProofGeneral"; use "ROOT.ML"; cd ".."; new code *) |
16781 | 92 |
|
18991
0ded3b842878
use proof_general.ML: setmp quick_and_dirty captures default value;
wenzelm
parents:
18934
diff
changeset
|
93 |
use_thy "Pure"; |
0ded3b842878
use proof_general.ML: setmp quick_and_dirty captures default value;
wenzelm
parents:
18934
diff
changeset
|
94 |
structure Pure = struct val thy = theory "Pure" end; |
18837 | 95 |
|
96 |
Context.add_setup |
|
97 |
(Theory.del_modesyntax Syntax.default_mode Syntax.appl_syntax #> |
|
98 |
Theory.add_syntax Syntax.applC_syntax); |
|
18991
0ded3b842878
use proof_general.ML: setmp quick_and_dirty captures default value;
wenzelm
parents:
18934
diff
changeset
|
99 |
use_thy "CPure"; |
0ded3b842878
use proof_general.ML: setmp quick_and_dirty captures default value;
wenzelm
parents:
18934
diff
changeset
|
100 |
structure CPure = struct val thy = theory "CPure" end; |
15801 | 101 |
|
17467 | 102 |
(*final ML setup*) |
6178 | 103 |
use "install_pp.ML"; |
6237 | 104 |
val use = ThyInfo.use; |
21858
05f57309170c
avoid conflict with Alice keywords: renamed pack -> implode, unpack -> explode, any -> many, avoided assert;
wenzelm
parents:
21708
diff
changeset
|
105 |
val cd = File.cd o Path.explode; |
7938 | 106 |
ml_prompts "ML> " "ML# "; |
11511 | 107 |
|
11545 | 108 |
proofs := 0; |