equal
deleted
inserted
replaced
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); |