| author | huffman | 
| Wed, 17 Nov 2010 16:13:33 -0800 | |
| changeset 40623 | dafba3a1dc5b | 
| parent 39557 | fe5722fce758 | 
| child 42048 | afd11ca8e018 | 
| permissions | -rw-r--r-- | 
| 3987 | 1 | (* Title: Pure/pure_thy.ML | 
| 2 | Author: Markus Wenzel, TU Muenchen | |
| 3 | ||
| 39557 
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
 wenzelm parents: 
39507diff
changeset | 4 | Pure theory syntax and further logical content. | 
| 3987 | 5 | *) | 
| 6 | ||
| 7 | signature PURE_THY = | |
| 8 | sig | |
| 26959 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 9 | val old_appl_syntax: theory -> bool | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 10 | val old_appl_syntax_setup: theory -> theory | 
| 3987 | 11 | end; | 
| 12 | ||
| 39557 
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
 wenzelm parents: 
39507diff
changeset | 13 | structure Pure_Thy: PURE_THY = | 
| 3987 | 14 | struct | 
| 15 | ||
| 33384 | 16 | val typ = Simple_Syntax.read_typ; | 
| 17 | val prop = Simple_Syntax.read_prop; | |
| 35429 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 18 | |
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 19 | val tycon = Syntax.mark_type; | 
| 35262 
9ea4445d2ccf
slightly more abstract syntax mark/unmark operations;
 wenzelm parents: 
35255diff
changeset | 20 | val const = Syntax.mark_const; | 
| 24243 | 21 | |
| 28856 
5e009a80fe6d
Pure syntax: more coherent treatment of aprop, permanent TERM and &&&;
 wenzelm parents: 
28841diff
changeset | 22 | val typeT = Syntax.typeT; | 
| 
5e009a80fe6d
Pure syntax: more coherent treatment of aprop, permanent TERM and &&&;
 wenzelm parents: 
28841diff
changeset | 23 | val spropT = Syntax.spropT; | 
| 
5e009a80fe6d
Pure syntax: more coherent treatment of aprop, permanent TERM and &&&;
 wenzelm parents: 
28841diff
changeset | 24 | |
| 26959 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 25 | |
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 26 | (* application syntax variants *) | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 27 | |
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 28 | val appl_syntax = | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 29 |  [("_appl", typ "('b => 'a) => args => logic", Mixfix ("(1_/(1'(_')))", [1000, 0], 1000)),
 | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 30 |   ("_appl", typ "('b => 'a) => args => aprop", Mixfix ("(1_/(1'(_')))", [1000, 0], 1000))];
 | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 31 | |
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 32 | val applC_syntax = | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 33 |  [("",       typ "'a => cargs",                  Delimfix "_"),
 | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 34 |   ("_cargs", typ "'a => cargs => cargs",         Mixfix ("_/ _", [1000, 1000], 1000)),
 | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 35 |   ("_applC", typ "('b => 'a) => cargs => logic", Mixfix ("(1_/ _)", [1000, 1000], 999)),
 | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 36 |   ("_applC", typ "('b => 'a) => cargs => aprop", Mixfix ("(1_/ _)", [1000, 1000], 999))];
 | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 37 | |
| 37216 
3165bc303f66
modernized some structure names, keeping a few legacy aliases;
 wenzelm parents: 
36744diff
changeset | 38 | structure Old_Appl_Syntax = Theory_Data | 
| 26959 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 39 | ( | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 40 | type T = bool; | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 41 | val empty = false; | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 42 | val extend = I; | 
| 33522 | 43 | fun merge (b1, b2) : T = | 
| 26959 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 44 | if b1 = b2 then b1 | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 45 | else error "Cannot merge theories with different application syntax"; | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 46 | ); | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 47 | |
| 37216 
3165bc303f66
modernized some structure names, keeping a few legacy aliases;
 wenzelm parents: 
36744diff
changeset | 48 | val old_appl_syntax = Old_Appl_Syntax.get; | 
| 26959 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 49 | |
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 50 | val old_appl_syntax_setup = | 
| 37216 
3165bc303f66
modernized some structure names, keeping a few legacy aliases;
 wenzelm parents: 
36744diff
changeset | 51 | Old_Appl_Syntax.put true #> | 
| 26959 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 52 | Sign.del_modesyntax_i Syntax.mode_default applC_syntax #> | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 53 | Sign.add_syntax_i appl_syntax; | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 54 | |
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 55 | |
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 56 | (* main content *) | 
| 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 57 | |
| 26463 | 58 | val _ = Context.>> (Context.map_theory | 
| 33365 | 59 | (Sign.map_naming (Name_Space.set_theory_name Context.PureN) #> | 
| 37216 
3165bc303f66
modernized some structure names, keeping a few legacy aliases;
 wenzelm parents: 
36744diff
changeset | 60 | Old_Appl_Syntax.put false #> | 
| 26959 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 61 | Sign.add_types | 
| 30344 
10a67c5ddddb
more uniform handling of binding in targets and derived elements;
 wenzelm parents: 
30337diff
changeset | 62 | [(Binding.name "fun", 2, NoSyn), | 
| 
10a67c5ddddb
more uniform handling of binding in targets and derived elements;
 wenzelm parents: 
30337diff
changeset | 63 | (Binding.name "prop", 0, NoSyn), | 
| 
10a67c5ddddb
more uniform handling of binding in targets and derived elements;
 wenzelm parents: 
30337diff
changeset | 64 | (Binding.name "itself", 1, NoSyn), | 
| 
10a67c5ddddb
more uniform handling of binding in targets and derived elements;
 wenzelm parents: 
30337diff
changeset | 65 | (Binding.name "dummy", 0, NoSyn)] | 
| 
10a67c5ddddb
more uniform handling of binding in targets and derived elements;
 wenzelm parents: 
30337diff
changeset | 66 | #> Sign.add_nonterminals (map Binding.name Syntax.basic_nonterms) | 
| 26430 | 67 | #> Sign.add_syntax_i | 
| 26436 | 68 |    [("_lambda",     typ "pttrns => 'a => logic",       Mixfix ("(3%_./ _)", [0, 3], 3)),
 | 
| 69 |     ("_abs",        typ "'a",                          NoSyn),
 | |
| 70 |     ("",            typ "'a => args",                  Delimfix "_"),
 | |
| 71 |     ("_args",       typ "'a => args => args",          Delimfix "_,/ _"),
 | |
| 72 |     ("",            typ "id => idt",                   Delimfix "_"),
 | |
| 73 |     ("_idtdummy",   typ "idt",                         Delimfix "'_"),
 | |
| 74 |     ("_idtyp",      typ "id => type => idt",           Mixfix ("_::_", [], 0)),
 | |
| 75 |     ("_idtypdummy", typ "type => idt",                 Mixfix ("'_()::_", [], 0)),
 | |
| 76 |     ("",            typ "idt => idt",                  Delimfix "'(_')"),
 | |
| 77 |     ("",            typ "idt => idts",                 Delimfix "_"),
 | |
| 78 |     ("_idts",       typ "idt => idts => idts",         Mixfix ("_/ _", [1, 0], 0)),
 | |
| 79 |     ("",            typ "idt => pttrn",                Delimfix "_"),
 | |
| 80 |     ("",            typ "pttrn => pttrns",             Delimfix "_"),
 | |
| 81 |     ("_pttrns",     typ "pttrn => pttrns => pttrns",   Mixfix ("_/ _", [1, 0], 0)),
 | |
| 28856 
5e009a80fe6d
Pure syntax: more coherent treatment of aprop, permanent TERM and &&&;
 wenzelm parents: 
28841diff
changeset | 82 |     ("",            typ "aprop => aprop",              Delimfix "'(_')"),
 | 
| 26436 | 83 |     ("",            typ "id => aprop",                 Delimfix "_"),
 | 
| 84 |     ("",            typ "longid => aprop",             Delimfix "_"),
 | |
| 85 |     ("",            typ "var => aprop",                Delimfix "_"),
 | |
| 86 |     ("_DDDOT",      typ "aprop",                       Delimfix "..."),
 | |
| 87 |     ("_aprop",      typ "aprop => prop",               Delimfix "PROP _"),
 | |
| 88 |     ("_asm",        typ "prop => asms",                Delimfix "_"),
 | |
| 89 |     ("_asms",       typ "prop => asms => asms",        Delimfix "_;/ _"),
 | |
| 90 |     ("_bigimpl",    typ "asms => prop => prop",        Mixfix ("((3[| _ |])/ ==> _)", [0, 1], 1)),
 | |
| 91 |     ("_ofclass",    typ "type => logic => prop",       Delimfix "(1OFCLASS/(1'(_,/ _')))"),
 | |
| 92 |     ("_mk_ofclass", typ "dummy",                       NoSyn),
 | |
| 93 |     ("_TYPE",       typ "type => logic",               Delimfix "(1TYPE/(1'(_')))"),
 | |
| 94 |     ("",            typ "id => logic",                 Delimfix "_"),
 | |
| 95 |     ("",            typ "longid => logic",             Delimfix "_"),
 | |
| 96 |     ("",            typ "var => logic",                Delimfix "_"),
 | |
| 97 |     ("_DDDOT",      typ "logic",                       Delimfix "..."),
 | |
| 98 |     ("_constify",   typ "num => num_const",            Delimfix "_"),
 | |
| 29156 
89f76a58a378
renamed terminal category "float" to "float_token", to avoid name
 wenzelm parents: 
29002diff
changeset | 99 |     ("_constify",   typ "float_token => float_const",  Delimfix "_"),
 | 
| 26436 | 100 |     ("_indexnum",   typ "num_const => index",          Delimfix "\\<^sub>_"),
 | 
| 101 |     ("_index",      typ "logic => index",              Delimfix "(00\\<^bsub>_\\<^esub>)"),
 | |
| 102 |     ("_indexdefault", typ "index",                     Delimfix ""),
 | |
| 103 |     ("_indexvar",   typ "index",                       Delimfix "'\\<index>"),
 | |
| 104 |     ("_struct",     typ "index => logic",              Mixfix ("\\<struct>_", [1000], 1000)),
 | |
| 35145 
f132a4fd8679
moved generic update_name to Pure syntax -- not specific to HOL/record;
 wenzelm parents: 
35130diff
changeset | 105 |     ("_update_name", typ "idt",                        NoSyn),
 | 
| 38975 
ef13a2cc97be
actually declare "_constrainAbs" as @{syntax_const};
 wenzelm parents: 
37216diff
changeset | 106 | (Syntax.constrainAbsC, typ "'a", NoSyn), | 
| 35255 | 107 | (const "==>", typ "prop => prop => prop", Delimfix "op ==>"), | 
| 108 | (const Term.dummy_patternN, typ "aprop", Delimfix "'_"), | |
| 28856 
5e009a80fe6d
Pure syntax: more coherent treatment of aprop, permanent TERM and &&&;
 wenzelm parents: 
28841diff
changeset | 109 |     ("_sort_constraint", typ "type => prop",           Delimfix "(1SORT'_CONSTRAINT/(1'(_')))"),
 | 
| 35255 | 110 | (const "Pure.term", typ "logic => prop", Delimfix "TERM _"), | 
| 111 |     (const "Pure.conjunction", typ "prop => prop => prop", Infixr ("&&&", 2))]
 | |
| 26959 
f8f2df3e4d83
theory Pure  provides regular application syntax by default;
 wenzelm parents: 
26693diff
changeset | 112 | #> Sign.add_syntax_i applC_syntax | 
| 26430 | 113 | #> Sign.add_modesyntax_i (Symbol.xsymbolsN, true) | 
| 35429 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 114 |    [(tycon "fun",         typ "type => type => type",   Mixfix ("(_/ \\<Rightarrow> _)", [1, 0], 0)),
 | 
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 115 |     ("_bracket",          typ "types => type => type",  Mixfix ("([_]/ \\<Rightarrow> _)", [0, 0], 0)),
 | 
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 116 |     ("_ofsort",           typ "tid => sort => type",    Mixfix ("_\\<Colon>_", [1000, 0], 1000)),
 | 
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 117 |     ("_constrain",        typ "logic => type => logic", Mixfix ("_\\<Colon>_", [4, 0], 3)),
 | 
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 118 |     ("_constrain",        [spropT, typeT] ---> spropT,  Mixfix ("_\\<Colon>_", [4, 0], 3)),
 | 
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 119 |     ("_idtyp",            typ "id => type => idt",      Mixfix ("_\\<Colon>_", [], 0)),
 | 
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 120 |     ("_idtypdummy",       typ "type => idt",            Mixfix ("'_()\\<Colon>_", [], 0)),
 | 
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 121 |     ("_type_constraint_", typ "'a",                     NoSyn),
 | 
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 122 |     ("_lambda",           typ "pttrns => 'a => logic",  Mixfix ("(3\\<lambda>_./ _)", [0, 3], 3)),
 | 
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 123 |     (const "==",          typ "'a => 'a => prop",       Infixr ("\\<equiv>", 2)),
 | 
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 124 |     (const "all_binder",  typ "idts => prop => prop",   Mixfix ("(3\\<And>_./ _)", [0, 0], 0)),
 | 
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 125 |     (const "==>",         typ "prop => prop => prop",   Infixr ("\\<Longrightarrow>", 1)),
 | 
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 126 |     ("_DDDOT",            typ "aprop",                  Delimfix "\\<dots>"),
 | 
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 127 |     ("_bigimpl",          typ "asms => prop => prop",   Mixfix ("((1\\<lbrakk>_\\<rbrakk>)/ \\<Longrightarrow> _)", [0, 1], 1)),
 | 
| 
afa8cf9e63d8
authentic syntax for classes and type constructors;
 wenzelm parents: 
35262diff
changeset | 128 |     ("_DDDOT",            typ "logic",                  Delimfix "\\<dots>")]
 | 
| 26430 | 129 |   #> Sign.add_modesyntax_i ("", false)
 | 
| 35255 | 130 |    [(const "prop", typ "prop => prop", Mixfix ("_", [0], 0))]
 | 
| 26430 | 131 |   #> Sign.add_modesyntax_i ("HTML", false)
 | 
| 24243 | 132 |    [("_lambda", typ "pttrns => 'a => logic", Mixfix ("(3\\<lambda>_./ _)", [0, 3], 3))]
 | 
| 26430 | 133 | #> Sign.add_consts_i | 
| 35130 | 134 |    [(Binding.name "==", typ "'a => 'a => prop", Infixr ("==", 2)),
 | 
| 30344 
10a67c5ddddb
more uniform handling of binding in targets and derived elements;
 wenzelm parents: 
30337diff
changeset | 135 |     (Binding.name "==>", typ "prop => prop => prop", Mixfix ("(_/ ==> _)", [2, 1], 1)),
 | 
| 
10a67c5ddddb
more uniform handling of binding in targets and derived elements;
 wenzelm parents: 
30337diff
changeset | 136 |     (Binding.name "all", typ "('a => prop) => prop", Binder ("!!", 0, 0)),
 | 
| 
10a67c5ddddb
more uniform handling of binding in targets and derived elements;
 wenzelm parents: 
30337diff
changeset | 137 | (Binding.name "prop", typ "prop => prop", NoSyn), | 
| 
10a67c5ddddb
more uniform handling of binding in targets and derived elements;
 wenzelm parents: 
30337diff
changeset | 138 | (Binding.name "TYPE", typ "'a itself", NoSyn), | 
| 
10a67c5ddddb
more uniform handling of binding in targets and derived elements;
 wenzelm parents: 
30337diff
changeset | 139 | (Binding.name Term.dummy_patternN, typ "'a", Delimfix "'_")] | 
| 26430 | 140 |   #> Theory.add_deps "==" ("==", typ "'a => 'a => prop") []
 | 
| 141 |   #> Theory.add_deps "==>" ("==>", typ "prop => prop => prop") []
 | |
| 142 |   #> Theory.add_deps "all" ("all", typ "('a => prop) => prop") []
 | |
| 143 |   #> Theory.add_deps "TYPE" ("TYPE", typ "'a itself") []
 | |
| 144 | #> Theory.add_deps Term.dummy_patternN (Term.dummy_patternN, typ "'a") [] | |
| 145 | #> Sign.add_trfuns Syntax.pure_trfuns | |
| 146 | #> Sign.add_trfunsT Syntax.pure_trfunsT | |
| 147 | #> Sign.local_path | |
| 148 | #> Sign.add_consts_i | |
| 30344 
10a67c5ddddb
more uniform handling of binding in targets and derived elements;
 wenzelm parents: 
30337diff
changeset | 149 | [(Binding.name "term", typ "'a => prop", NoSyn), | 
| 
10a67c5ddddb
more uniform handling of binding in targets and derived elements;
 wenzelm parents: 
30337diff
changeset | 150 | (Binding.name "sort_constraint", typ "'a itself => prop", NoSyn), | 
| 
10a67c5ddddb
more uniform handling of binding in targets and derived elements;
 wenzelm parents: 
30337diff
changeset | 151 | (Binding.name "conjunction", typ "prop => prop => prop", NoSyn)] | 
| 39557 
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
 wenzelm parents: 
39507diff
changeset | 152 | #> (Global_Theory.add_defs false o map Thm.no_attributes) | 
| 29579 | 153 | [(Binding.name "prop_def", prop "(CONST prop :: prop => prop) (A::prop) == A::prop"), | 
| 154 | (Binding.name "term_def", prop "(CONST Pure.term :: 'a => prop) (x::'a) == (!!A::prop. A ==> A)"), | |
| 155 | (Binding.name "sort_constraint_def", | |
| 28622 
1a0b845855ac
added const sort_constraint with syntax SORT_CONSTRAINT -- logically vacous;
 wenzelm parents: 
28076diff
changeset | 156 | prop "(CONST Pure.sort_constraint :: 'a itself => prop) (CONST TYPE :: 'a itself) ==\ | 
| 
1a0b845855ac
added const sort_constraint with syntax SORT_CONSTRAINT -- logically vacous;
 wenzelm parents: 
28076diff
changeset | 157 | \ (CONST Pure.term :: 'a itself => prop) (CONST TYPE :: 'a itself)"), | 
| 29579 | 158 | (Binding.name "conjunction_def", prop "(A &&& B) == (!!C::prop. (A ==> B ==> C) ==> C)")] #> snd | 
| 28622 
1a0b845855ac
added const sort_constraint with syntax SORT_CONSTRAINT -- logically vacous;
 wenzelm parents: 
28076diff
changeset | 159 | #> Sign.hide_const false "Pure.term" | 
| 
1a0b845855ac
added const sort_constraint with syntax SORT_CONSTRAINT -- logically vacous;
 wenzelm parents: 
28076diff
changeset | 160 | #> Sign.hide_const false "Pure.sort_constraint" | 
| 26666 | 161 | #> Sign.hide_const false "Pure.conjunction" | 
| 39557 
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
 wenzelm parents: 
39507diff
changeset | 162 | #> Global_Theory.add_thmss [((Binding.name "nothing", []), [])] #> snd | 
| 35856 
f81557a124d5
replaced PureThy.add_axioms by more basic Drule.add_axiom, which is old-style nonetheless;
 wenzelm parents: 
35852diff
changeset | 163 | #> fold (fn (a, prop) => snd o Thm.add_axiom (Binding.name a, prop)) Proofterm.equality_axms)); | 
| 3987 | 164 | |
| 165 | end; |