src/Pure/global_theory.ML
changeset 61261 ddb2da7cb2e4
parent 61054 add998b3c597
child 61262 7bd1eb4b056e
equal deleted inserted replaced
61260:e6f03fae14d5 61261:ddb2da7cb2e4
   205 
   205 
   206 fun add prep unchecked overloaded = fold_map (fn ((b, raw_prop), atts) => fn thy =>
   206 fun add prep unchecked overloaded = fold_map (fn ((b, raw_prop), atts) => fn thy =>
   207   let
   207   let
   208     val ctxt = Syntax.init_pretty_global thy;
   208     val ctxt = Syntax.init_pretty_global thy;
   209     val prop = prep ctxt (b, raw_prop);
   209     val prop = prep ctxt (b, raw_prop);
   210     val ((_, def), thy') = Thm.add_def ctxt unchecked overloaded (b, prop) thy;
   210     val ((_, def), thy') = Thm.add_def (ctxt, NONE) unchecked overloaded (b, prop) thy;
   211     val thm = def
   211     val thm = def
   212       |> Thm.forall_intr_frees
   212       |> Thm.forall_intr_frees
   213       |> Thm.forall_elim_vars 0
   213       |> Thm.forall_elim_vars 0
   214       |> Thm.varifyT_global;
   214       |> Thm.varifyT_global;
   215   in yield_singleton (gen_add_thms (K I)) ((b, thm), atts) thy' end);
   215   in yield_singleton (gen_add_thms (K I)) ((b, thm), atts) thy' end);