src/Pure/pure_thy.ML
changeset 67721 5348bea4accd
parent 67718 17874d43d3b3
child 70388 e31271559de8
--- a/src/Pure/pure_thy.ML	Sun Feb 25 12:59:08 2018 +0100
+++ b/src/Pure/pure_thy.ML	Sun Feb 25 15:44:46 2018 +0100
@@ -31,14 +31,14 @@
 (* application syntax variants *)
 
 val appl_syntax =
- [("_appl", typ "('b => 'a) => args => logic", mixfix ("(1_/(1'(_')))", [1000, 0], 1000)),
-  ("_appl", typ "('b => 'a) => args => aprop", mixfix ("(1_/(1'(_')))", [1000, 0], 1000))];
+ [("_appl", typ "('b \<Rightarrow> 'a) \<Rightarrow> args \<Rightarrow> logic", mixfix ("(1_/(1'(_')))", [1000, 0], 1000)),
+  ("_appl", typ "('b \<Rightarrow> 'a) \<Rightarrow> args \<Rightarrow> aprop", mixfix ("(1_/(1'(_')))", [1000, 0], 1000))];
 
 val applC_syntax =
- [("",       typ "'a => cargs",                  Mixfix.mixfix "_"),
-  ("_cargs", typ "'a => cargs => cargs",         mixfix ("_/ _", [1000, 1000], 1000)),
-  ("_applC", typ "('b => 'a) => cargs => logic", mixfix ("(1_/ _)", [1000, 1000], 999)),
-  ("_applC", typ "('b => 'a) => cargs => aprop", mixfix ("(1_/ _)", [1000, 1000], 999))];
+ [("",       typ "'a \<Rightarrow> cargs",                  Mixfix.mixfix "_"),
+  ("_cargs", typ "'a \<Rightarrow> cargs \<Rightarrow> cargs",         mixfix ("_/ _", [1000, 1000], 1000)),
+  ("_applC", typ "('b \<Rightarrow> 'a) \<Rightarrow> cargs \<Rightarrow> logic", mixfix ("(1_/ _)", [1000, 1000], 999)),
+  ("_applC", typ "('b \<Rightarrow> 'a) \<Rightarrow> cargs \<Rightarrow> aprop", mixfix ("(1_/ _)", [1000, 1000], 999))];
 
 structure Old_Appl_Syntax = Theory_Data
 (
@@ -86,119 +86,119 @@
         "class_name"]))
   #> Sign.add_syntax Syntax.mode_default (map (fn x => (x, typ "'a", NoSyn)) token_markers)
   #> Sign.add_syntax Syntax.mode_default
-   [("",            typ "prop' => prop",               Mixfix.mixfix "_"),
-    ("",            typ "logic => any",                Mixfix.mixfix "_"),
-    ("",            typ "prop' => any",                Mixfix.mixfix "_"),
-    ("",            typ "logic => logic",              Mixfix.mixfix "'(_')"),
-    ("",            typ "prop' => prop'",              Mixfix.mixfix "'(_')"),
-    ("_constrain",  typ "logic => type => logic",      mixfix ("_::_", [4, 0], 3)),
-    ("_constrain",  typ "prop' => type => prop'",      mixfix ("_::_", [4, 0], 3)),
+   [("",            typ "prop' \<Rightarrow> prop",               Mixfix.mixfix "_"),
+    ("",            typ "logic \<Rightarrow> any",                Mixfix.mixfix "_"),
+    ("",            typ "prop' \<Rightarrow> any",                Mixfix.mixfix "_"),
+    ("",            typ "logic \<Rightarrow> logic",              Mixfix.mixfix "'(_')"),
+    ("",            typ "prop' \<Rightarrow> prop'",              Mixfix.mixfix "'(_')"),
+    ("_constrain",  typ "logic \<Rightarrow> type \<Rightarrow> logic",      mixfix ("_::_", [4, 0], 3)),
+    ("_constrain",  typ "prop' \<Rightarrow> type \<Rightarrow> prop'",      mixfix ("_::_", [4, 0], 3)),
     ("_ignore_type", typ "'a",                         NoSyn),
-    ("",            typ "tid_position => type",        Mixfix.mixfix "_"),
-    ("",            typ "tvar_position => type",       Mixfix.mixfix "_"),
-    ("",            typ "type_name => type",           Mixfix.mixfix "_"),
-    ("_type_name",  typ "id => type_name",             Mixfix.mixfix "_"),
-    ("_type_name",  typ "longid => type_name",         Mixfix.mixfix "_"),
-    ("_ofsort",     typ "tid_position => sort => type", mixfix ("_::_", [1000, 0], 1000)),
-    ("_ofsort",     typ "tvar_position => sort => type", mixfix ("_::_", [1000, 0], 1000)),
-    ("_dummy_ofsort", typ "sort => type",              mixfix ("'_()::_", [0], 1000)),
-    ("",            typ "class_name => sort",          Mixfix.mixfix "_"),
-    ("_class_name", typ "id => class_name",            Mixfix.mixfix "_"),
-    ("_class_name", typ "longid => class_name",        Mixfix.mixfix "_"),
+    ("",            typ "tid_position \<Rightarrow> type",        Mixfix.mixfix "_"),
+    ("",            typ "tvar_position \<Rightarrow> type",       Mixfix.mixfix "_"),
+    ("",            typ "type_name \<Rightarrow> type",           Mixfix.mixfix "_"),
+    ("_type_name",  typ "id \<Rightarrow> type_name",             Mixfix.mixfix "_"),
+    ("_type_name",  typ "longid \<Rightarrow> type_name",         Mixfix.mixfix "_"),
+    ("_ofsort",     typ "tid_position \<Rightarrow> sort \<Rightarrow> type", mixfix ("_::_", [1000, 0], 1000)),
+    ("_ofsort",     typ "tvar_position \<Rightarrow> sort \<Rightarrow> type", mixfix ("_::_", [1000, 0], 1000)),
+    ("_dummy_ofsort", typ "sort \<Rightarrow> type",              mixfix ("'_()::_", [0], 1000)),
+    ("",            typ "class_name \<Rightarrow> sort",          Mixfix.mixfix "_"),
+    ("_class_name", typ "id \<Rightarrow> class_name",            Mixfix.mixfix "_"),
+    ("_class_name", typ "longid \<Rightarrow> class_name",        Mixfix.mixfix "_"),
     ("_dummy_sort", typ "sort",                        Mixfix.mixfix "'_"),
     ("_topsort",    typ "sort",                        Mixfix.mixfix "{}"),
-    ("_sort",       typ "classes => sort",             Mixfix.mixfix "{_}"),
-    ("",            typ "class_name => classes",       Mixfix.mixfix "_"),
-    ("_classes",    typ "class_name => classes => classes", Mixfix.mixfix "_,_"),
-    ("_tapp",       typ "type => type_name => type",   mixfix ("_ _", [1000, 0], 1000)),
-    ("_tappl",      typ "type => types => type_name => type", Mixfix.mixfix "((1'(_,/ _')) _)"),
-    ("",            typ "type => types",               Mixfix.mixfix "_"),
-    ("_types",      typ "type => types => types",      Mixfix.mixfix "_,/ _"),
-    ("\<^type>fun", typ "type => type => type",        mixfix ("(_/ \<Rightarrow> _)", [1, 0], 0)),
-    ("_bracket",    typ "types => type => type",       mixfix ("([_]/ \<Rightarrow> _)", [0, 0], 0)),
-    ("",            typ "type => type",                Mixfix.mixfix "'(_')"),
+    ("_sort",       typ "classes \<Rightarrow> sort",             Mixfix.mixfix "{_}"),
+    ("",            typ "class_name \<Rightarrow> classes",       Mixfix.mixfix "_"),
+    ("_classes",    typ "class_name \<Rightarrow> classes \<Rightarrow> classes", Mixfix.mixfix "_,_"),
+    ("_tapp",       typ "type \<Rightarrow> type_name \<Rightarrow> type",   mixfix ("_ _", [1000, 0], 1000)),
+    ("_tappl",      typ "type \<Rightarrow> types \<Rightarrow> type_name \<Rightarrow> type", Mixfix.mixfix "((1'(_,/ _')) _)"),
+    ("",            typ "type \<Rightarrow> types",               Mixfix.mixfix "_"),
+    ("_types",      typ "type \<Rightarrow> types \<Rightarrow> types",      Mixfix.mixfix "_,/ _"),
+    ("\<^type>fun", typ "type \<Rightarrow> type \<Rightarrow> type",        mixfix ("(_/ \<Rightarrow> _)", [1, 0], 0)),
+    ("_bracket",    typ "types \<Rightarrow> type \<Rightarrow> type",       mixfix ("([_]/ \<Rightarrow> _)", [0, 0], 0)),
+    ("",            typ "type \<Rightarrow> type",                Mixfix.mixfix "'(_')"),
     ("\<^type>dummy", typ "type",                      Mixfix.mixfix "'_"),
     ("_type_prop",  typ "'a",                          NoSyn),
-    ("_lambda",     typ "pttrns => 'a => logic",       mixfix ("(3\<lambda>_./ _)", [0, 3], 3)),
+    ("_lambda",     typ "pttrns \<Rightarrow> 'a \<Rightarrow> logic",       mixfix ("(3\<lambda>_./ _)", [0, 3], 3)),
     ("_abs",        typ "'a",                          NoSyn),
-    ("",            typ "'a => args",                  Mixfix.mixfix "_"),
-    ("_args",       typ "'a => args => args",          Mixfix.mixfix "_,/ _"),
-    ("",            typ "id_position => idt",          Mixfix.mixfix "_"),
+    ("",            typ "'a \<Rightarrow> args",                  Mixfix.mixfix "_"),
+    ("_args",       typ "'a \<Rightarrow> args \<Rightarrow> args",          Mixfix.mixfix "_,/ _"),
+    ("",            typ "id_position \<Rightarrow> idt",          Mixfix.mixfix "_"),
     ("_idtdummy",   typ "idt",                         Mixfix.mixfix "'_"),
-    ("_idtyp",      typ "id_position => type => idt",  mixfix ("_::_", [], 0)),
-    ("_idtypdummy", typ "type => idt",                 mixfix ("'_()::_", [], 0)),
-    ("",            typ "idt => idt",                  Mixfix.mixfix "'(_')"),
-    ("",            typ "idt => idts",                 Mixfix.mixfix "_"),
-    ("_idts",       typ "idt => idts => idts",         mixfix ("_/ _", [1, 0], 0)),
-    ("",            typ "idt => pttrn",                Mixfix.mixfix "_"),
-    ("",            typ "pttrn => pttrns",             Mixfix.mixfix "_"),
-    ("_pttrns",     typ "pttrn => pttrns => pttrns",   mixfix ("_/ _", [1, 0], 0)),
-    ("",            typ "aprop => aprop",              Mixfix.mixfix "'(_')"),
-    ("",            typ "id_position => aprop",        Mixfix.mixfix "_"),
-    ("",            typ "longid_position => aprop",    Mixfix.mixfix "_"),
-    ("",            typ "var_position => aprop",       Mixfix.mixfix "_"),
+    ("_idtyp",      typ "id_position \<Rightarrow> type \<Rightarrow> idt",  mixfix ("_::_", [], 0)),
+    ("_idtypdummy", typ "type \<Rightarrow> idt",                 mixfix ("'_()::_", [], 0)),
+    ("",            typ "idt \<Rightarrow> idt",                  Mixfix.mixfix "'(_')"),
+    ("",            typ "idt \<Rightarrow> idts",                 Mixfix.mixfix "_"),
+    ("_idts",       typ "idt \<Rightarrow> idts \<Rightarrow> idts",         mixfix ("_/ _", [1, 0], 0)),
+    ("",            typ "idt \<Rightarrow> pttrn",                Mixfix.mixfix "_"),
+    ("",            typ "pttrn \<Rightarrow> pttrns",             Mixfix.mixfix "_"),
+    ("_pttrns",     typ "pttrn \<Rightarrow> pttrns \<Rightarrow> pttrns",   mixfix ("_/ _", [1, 0], 0)),
+    ("",            typ "aprop \<Rightarrow> aprop",              Mixfix.mixfix "'(_')"),
+    ("",            typ "id_position \<Rightarrow> aprop",        Mixfix.mixfix "_"),
+    ("",            typ "longid_position \<Rightarrow> aprop",    Mixfix.mixfix "_"),
+    ("",            typ "var_position \<Rightarrow> aprop",       Mixfix.mixfix "_"),
     ("_DDDOT",      typ "aprop",                       Mixfix.mixfix "\<dots>"),
-    ("_aprop",      typ "aprop => prop",               Mixfix.mixfix "PROP _"),
-    ("_asm",        typ "prop => asms",                Mixfix.mixfix "_"),
-    ("_asms",       typ "prop => asms => asms",        Mixfix.mixfix "_;/ _"),
-    ("_bigimpl",    typ "asms => prop => prop",        mixfix ("((1\<lbrakk>_\<rbrakk>)/ \<Longrightarrow> _)", [0, 1], 1)),
-    ("_ofclass",    typ "type => logic => prop",       Mixfix.mixfix "(1OFCLASS/(1'(_,/ _')))"),
+    ("_aprop",      typ "aprop \<Rightarrow> prop",               Mixfix.mixfix "PROP _"),
+    ("_asm",        typ "prop \<Rightarrow> asms",                Mixfix.mixfix "_"),
+    ("_asms",       typ "prop \<Rightarrow> asms \<Rightarrow> asms",        Mixfix.mixfix "_;/ _"),
+    ("_bigimpl",    typ "asms \<Rightarrow> prop \<Rightarrow> prop",        mixfix ("((1\<lbrakk>_\<rbrakk>)/ \<Longrightarrow> _)", [0, 1], 1)),
+    ("_ofclass",    typ "type \<Rightarrow> logic \<Rightarrow> prop",       Mixfix.mixfix "(1OFCLASS/(1'(_,/ _')))"),
     ("_mk_ofclass", typ "dummy",                       NoSyn),
-    ("_TYPE",       typ "type => logic",               Mixfix.mixfix "(1TYPE/(1'(_')))"),
-    ("",            typ "id_position => logic",        Mixfix.mixfix "_"),
-    ("",            typ "longid_position => logic",    Mixfix.mixfix "_"),
-    ("",            typ "var_position => logic",       Mixfix.mixfix "_"),
+    ("_TYPE",       typ "type \<Rightarrow> logic",               Mixfix.mixfix "(1TYPE/(1'(_')))"),
+    ("",            typ "id_position \<Rightarrow> logic",        Mixfix.mixfix "_"),
+    ("",            typ "longid_position \<Rightarrow> logic",    Mixfix.mixfix "_"),
+    ("",            typ "var_position \<Rightarrow> logic",       Mixfix.mixfix "_"),
     ("_DDDOT",      typ "logic",                       Mixfix.mixfix "\<dots>"),
     ("_strip_positions", typ "'a", NoSyn),
-    ("_position",   typ "num_token => num_position",   Mixfix.mixfix "_"),
-    ("_position",   typ "float_token => float_position", Mixfix.mixfix "_"),
-    ("_constify",   typ "num_position => num_const",   Mixfix.mixfix "_"),
-    ("_constify",   typ "float_position => float_const", Mixfix.mixfix "_"),
-    ("_index",      typ "logic => index",              Mixfix.mixfix "(\<open>unbreakable\<close>\<^bsub>_\<^esub>)"),
+    ("_position",   typ "num_token \<Rightarrow> num_position",   Mixfix.mixfix "_"),
+    ("_position",   typ "float_token \<Rightarrow> float_position", Mixfix.mixfix "_"),
+    ("_constify",   typ "num_position \<Rightarrow> num_const",   Mixfix.mixfix "_"),
+    ("_constify",   typ "float_position \<Rightarrow> float_const", Mixfix.mixfix "_"),
+    ("_index",      typ "logic \<Rightarrow> index",              Mixfix.mixfix "(\<open>unbreakable\<close>\<^bsub>_\<^esub>)"),
     ("_indexdefault", typ "index",                     Mixfix.mixfix ""),
     ("_indexvar",   typ "index",                       Mixfix.mixfix "'\<index>"),
-    ("_struct",     typ "index => logic",              NoSyn),
+    ("_struct",     typ "index \<Rightarrow> logic",              NoSyn),
     ("_update_name", typ "idt",                        NoSyn),
     ("_constrainAbs", typ "'a",                        NoSyn),
-    ("_position_sort", typ "tid => tid_position",      Mixfix.mixfix "_"),
-    ("_position_sort", typ "tvar => tvar_position",    Mixfix.mixfix "_"),
-    ("_position",   typ "id => id_position",           Mixfix.mixfix "_"),
-    ("_position",   typ "longid => longid_position",   Mixfix.mixfix "_"),
-    ("_position",   typ "var => var_position",         Mixfix.mixfix "_"),
-    ("_position",   typ "str_token => str_position",   Mixfix.mixfix "_"),
-    ("_position",   typ "string_token => string_position", Mixfix.mixfix "_"),
-    ("_position",   typ "cartouche => cartouche_position", Mixfix.mixfix "_"),
+    ("_position_sort", typ "tid \<Rightarrow> tid_position",      Mixfix.mixfix "_"),
+    ("_position_sort", typ "tvar \<Rightarrow> tvar_position",    Mixfix.mixfix "_"),
+    ("_position",   typ "id \<Rightarrow> id_position",           Mixfix.mixfix "_"),
+    ("_position",   typ "longid \<Rightarrow> longid_position",   Mixfix.mixfix "_"),
+    ("_position",   typ "var \<Rightarrow> var_position",         Mixfix.mixfix "_"),
+    ("_position",   typ "str_token \<Rightarrow> str_position",   Mixfix.mixfix "_"),
+    ("_position",   typ "string_token \<Rightarrow> string_position", Mixfix.mixfix "_"),
+    ("_position",   typ "cartouche \<Rightarrow> cartouche_position", Mixfix.mixfix "_"),
     ("_type_constraint_", typ "'a",                    NoSyn),
-    ("_context_const", typ "id_position => logic",     Mixfix.mixfix "CONST _"),
-    ("_context_const", typ "id_position => aprop",     Mixfix.mixfix "CONST _"),
-    ("_context_const", typ "longid_position => logic", Mixfix.mixfix "CONST _"),
-    ("_context_const", typ "longid_position => aprop", Mixfix.mixfix "CONST _"),
-    ("_context_xconst", typ "id_position => logic",    Mixfix.mixfix "XCONST _"),
-    ("_context_xconst", typ "id_position => aprop",    Mixfix.mixfix "XCONST _"),
-    ("_context_xconst", typ "longid_position => logic", Mixfix.mixfix "XCONST _"),
-    ("_context_xconst", typ "longid_position => aprop", Mixfix.mixfix "XCONST _"),
+    ("_context_const", typ "id_position \<Rightarrow> logic",     Mixfix.mixfix "CONST _"),
+    ("_context_const", typ "id_position \<Rightarrow> aprop",     Mixfix.mixfix "CONST _"),
+    ("_context_const", typ "longid_position \<Rightarrow> logic", Mixfix.mixfix "CONST _"),
+    ("_context_const", typ "longid_position \<Rightarrow> aprop", Mixfix.mixfix "CONST _"),
+    ("_context_xconst", typ "id_position \<Rightarrow> logic",    Mixfix.mixfix "XCONST _"),
+    ("_context_xconst", typ "id_position \<Rightarrow> aprop",    Mixfix.mixfix "XCONST _"),
+    ("_context_xconst", typ "longid_position \<Rightarrow> logic", Mixfix.mixfix "XCONST _"),
+    ("_context_xconst", typ "longid_position \<Rightarrow> aprop", Mixfix.mixfix "XCONST _"),
     (const "Pure.dummy_pattern", typ "aprop",          Mixfix.mixfix "'_"),
-    ("_sort_constraint", typ "type => prop",           Mixfix.mixfix "(1SORT'_CONSTRAINT/(1'(_')))"),
-    (const "Pure.term", typ "logic => prop",           Mixfix.mixfix "TERM _"),
-    (const "Pure.conjunction", typ "prop => prop => prop", infixr_ ("&&&", 2))]
+    ("_sort_constraint", typ "type \<Rightarrow> prop",           Mixfix.mixfix "(1SORT'_CONSTRAINT/(1'(_')))"),
+    (const "Pure.term", typ "logic \<Rightarrow> prop",           Mixfix.mixfix "TERM _"),
+    (const "Pure.conjunction", typ "prop \<Rightarrow> prop \<Rightarrow> prop", infixr_ ("&&&", 2))]
   #> Sign.add_syntax Syntax.mode_default applC_syntax
   #> Sign.add_syntax (Print_Mode.ASCII, true)
-   [(tycon "fun",         typ "type => type => type",   mixfix ("(_/ => _)", [1, 0], 0)),
-    ("_bracket",          typ "types => type => type",  mixfix ("([_]/ => _)", [0, 0], 0)),
-    ("_lambda",           typ "pttrns => 'a => logic",  mixfix ("(3%_./ _)", [0, 3], 3)),
-    (const "Pure.eq",     typ "'a => 'a => prop",       infix_ ("==", 2)),
-    (const "Pure.all_binder", typ "idts => prop => prop", mixfix ("(3!!_./ _)", [0, 0], 0)),
-    (const "Pure.imp",    typ "prop => prop => prop",   infixr_ ("==>", 1)),
+   [(tycon "fun",         typ "type \<Rightarrow> type \<Rightarrow> type",   mixfix ("(_/ => _)", [1, 0], 0)),
+    ("_bracket",          typ "types \<Rightarrow> type \<Rightarrow> type",  mixfix ("([_]/ => _)", [0, 0], 0)),
+    ("_lambda",           typ "pttrns \<Rightarrow> 'a \<Rightarrow> logic",  mixfix ("(3%_./ _)", [0, 3], 3)),
+    (const "Pure.eq",     typ "'a \<Rightarrow> 'a \<Rightarrow> prop",       infix_ ("==", 2)),
+    (const "Pure.all_binder", typ "idts \<Rightarrow> prop \<Rightarrow> prop", mixfix ("(3!!_./ _)", [0, 0], 0)),
+    (const "Pure.imp",    typ "prop \<Rightarrow> prop \<Rightarrow> prop",   infixr_ ("==>", 1)),
     ("_DDDOT",            typ "aprop",                  Mixfix.mixfix "..."),
-    ("_bigimpl",          typ "asms => prop => prop",   mixfix ("((3[| _ |])/ ==> _)", [0, 1], 1)),
+    ("_bigimpl",          typ "asms \<Rightarrow> prop \<Rightarrow> prop",   mixfix ("((3[| _ |])/ ==> _)", [0, 1], 1)),
     ("_DDDOT",            typ "logic",                  Mixfix.mixfix "...")]
   #> Sign.add_syntax ("", false)
-   [(const "Pure.prop", typ "prop => prop", mixfix ("_", [0], 0))]
+   [(const "Pure.prop", typ "prop \<Rightarrow> prop", mixfix ("_", [0], 0))]
   #> Sign.add_consts
-   [(qualify (Binding.make ("eq", \<^here>)), typ "'a => 'a => prop", infix_ ("\<equiv>", 2)),
-    (qualify (Binding.make ("imp", \<^here>)), typ "prop => prop => prop", infixr_ ("\<Longrightarrow>", 1)),
-    (qualify (Binding.make ("all", \<^here>)), typ "('a => prop) => prop", binder ("\<And>", 0, 0)),
-    (qualify (Binding.make ("prop", \<^here>)), typ "prop => prop", NoSyn),
+   [(qualify (Binding.make ("eq", \<^here>)), typ "'a \<Rightarrow> 'a \<Rightarrow> prop", infix_ ("\<equiv>", 2)),
+    (qualify (Binding.make ("imp", \<^here>)), typ "prop \<Rightarrow> prop \<Rightarrow> prop", infixr_ ("\<Longrightarrow>", 1)),
+    (qualify (Binding.make ("all", \<^here>)), typ "('a \<Rightarrow> prop) \<Rightarrow> prop", binder ("\<And>", 0, 0)),
+    (qualify (Binding.make ("prop", \<^here>)), typ "prop \<Rightarrow> prop", NoSyn),
     (qualify (Binding.make ("type", \<^here>)), typ "'a itself", NoSyn),
     (qualify (Binding.make ("dummy_pattern", \<^here>)), typ "'a", Mixfix.mixfix "'_")]
   #> Theory.add_deps_global "Pure.eq" ((Defs.Const, "Pure.eq"), [typ "'a"]) []
@@ -210,20 +210,20 @@
   #> Sign.parse_translation Syntax_Trans.pure_parse_translation
   #> Sign.print_ast_translation Syntax_Trans.pure_print_ast_translation
   #> Sign.add_consts
-   [(qualify (Binding.make ("term", \<^here>)), typ "'a => prop", NoSyn),
-    (qualify (Binding.make ("sort_constraint", \<^here>)), typ "'a itself => prop", NoSyn),
-    (qualify (Binding.make ("conjunction", \<^here>)), typ "prop => prop => prop", NoSyn)]
+   [(qualify (Binding.make ("term", \<^here>)), typ "'a \<Rightarrow> prop", NoSyn),
+    (qualify (Binding.make ("sort_constraint", \<^here>)), typ "'a itself \<Rightarrow> prop", NoSyn),
+    (qualify (Binding.make ("conjunction", \<^here>)), typ "prop \<Rightarrow> prop \<Rightarrow> prop", NoSyn)]
   #> Sign.local_path
   #> (Global_Theory.add_defs false o map Thm.no_attributes)
    [(Binding.make ("prop_def", \<^here>),
-      prop "(CONST Pure.prop :: prop => prop) (A::prop) == A::prop"),
+      prop "(CONST Pure.prop :: prop \<Rightarrow> prop) (A::prop) \<equiv> A::prop"),
     (Binding.make ("term_def", \<^here>),
-      prop "(CONST Pure.term :: 'a => prop) (x::'a) == (!!A::prop. A ==> A)"),
+      prop "(CONST Pure.term :: 'a \<Rightarrow> prop) (x::'a) \<equiv> (\<And>A::prop. A \<Longrightarrow> A)"),
     (Binding.make ("sort_constraint_def", \<^here>),
-      prop "(CONST Pure.sort_constraint :: 'a itself => prop) (CONST Pure.type :: 'a itself) ==\
-      \ (CONST Pure.term :: 'a itself => prop) (CONST Pure.type :: 'a itself)"),
+      prop "(CONST Pure.sort_constraint :: 'a itself \<Rightarrow> prop) (CONST Pure.type :: 'a itself) \<equiv>\
+      \ (CONST Pure.term :: 'a itself \<Rightarrow> prop) (CONST Pure.type :: 'a itself)"),
     (Binding.make ("conjunction_def", \<^here>),
-      prop "(A &&& B) == (!!C::prop. (A ==> B ==> C) ==> C)")] #> snd
+      prop "(A &&& B) \<equiv> (\<And>C::prop. (A \<Longrightarrow> B \<Longrightarrow> C) \<Longrightarrow> C)")] #> snd
   #> fold (fn (a, prop) =>
       snd o Thm.add_axiom_global (Binding.make (a, \<^here>), prop)) Proofterm.equality_axms);