src/Pure/Isar/generic_target.ML
changeset 61261 ddb2da7cb2e4
parent 60924 610794dff23c
child 61701 e89cfc004f18
equal deleted inserted replaced
61260:e6f03fae14d5 61261:ddb2da7cb2e4
   160       |> Local_Theory.background_theory_result (Sign.declare_const lthy ((b, U), mx'));
   160       |> Local_Theory.background_theory_result (Sign.declare_const lthy ((b, U), mx'));
   161     val lhs = Term.list_comb (const, params);
   161     val lhs = Term.list_comb (const, params);
   162 
   162 
   163     val ((_, def), lthy3) = lthy2
   163     val ((_, def), lthy3) = lthy2
   164       |> Local_Theory.background_theory_result
   164       |> Local_Theory.background_theory_result
   165         (Thm.add_def lthy2 false false
   165         (Thm.add_def (Proof_Context.defs_context lthy2) false false
   166           (Thm.def_binding_optional b b_def, Logic.mk_equals (lhs, rhs)));
   166           (Thm.def_binding_optional b b_def, Logic.mk_equals (lhs, rhs)));
   167   in ((lhs, def), lthy3) end;
   167   in ((lhs, def), lthy3) end;
   168 
   168 
   169 fun background_declaration decl lthy =
   169 fun background_declaration decl lthy =
   170   let
   170   let