# HG changeset patch # User wenzelm # Date 1208012448 -7200 # Node ID 149f80f27c848ba5dae1431dc9dc0d31582def66 # Parent ff317b19e24ed7f3dce65fc8ea89fac425fc7ffe replaced Drule.close_derivation/Goal.close_result by Thm.close_derivation (removed obsolete compression); pred_def: tag internal; diff -r ff317b19e24e -r 149f80f27c84 src/Pure/Isar/locale.ML --- a/src/Pure/Isar/locale.ML Sat Apr 12 17:00:47 2008 +0200 +++ b/src/Pure/Isar/locale.ML Sat Apr 12 17:00:48 2008 +0200 @@ -348,7 +348,7 @@ exception TERM raised if not a meta equality *) fun add_equation ts thm regs = gen_add (fn (x, m, thms, eqns) => - (x, m, thms, Termtab.update (thm |> prop_of |> Logic.dest_equals |> fst, Goal.close_result thm) eqns)) + (x, m, thms, Termtab.update (thm |> prop_of |> Logic.dest_equals |> fst, Thm.close_derivation thm) eqns)) ts regs; end; @@ -1799,7 +1799,8 @@ thy |> bodyT = propT ? Sign.add_advanced_trfuns ([], [], [aprop_tr' (length args) name], []) |> Sign.declare_const [] (bname, predT, NoSyn) |> snd - |> PureThy.add_defs_i false [((Thm.def_name bname, Logic.mk_equals (head, body)), [])]; + |> PureThy.add_defs_i false + [((Thm.def_name bname, Logic.mk_equals (head, body)), [PureThy.kind_internal])]; val defs_ctxt = ProofContext.init defs_thy |> Variable.declare_term head; val cert = Thm.cterm_of defs_thy; @@ -1971,7 +1972,7 @@ val (ctxt, (_, facts)) = activate_facts true (K I) (ProofContext.init pred_thy, axiomify predicate_axioms elemss'); val view_ctxt = Assumption.add_view thy_ctxt predicate_statement ctxt; - val export = Goal.close_result o Goal.norm_result o + val export = Thm.close_derivation o Goal.norm_result o singleton (ProofContext.export view_ctxt thy_ctxt); val facts' = facts |> map (fn (a, ths) => ((a, []), [(map export ths, [])])); val elems' = maps #2 (filter (equal "" o #1 o #1) elemss');