src/Pure/Isar/generic_target.ML
changeset 57115 ae61587eb44a
parent 57110 95e5a633a18f
child 57118 4760ac85b3f0
equal deleted inserted replaced
57114:f00a299fa522 57115:ae61587eb44a
   198 
   198 
   199 (* abbrev *)
   199 (* abbrev *)
   200 
   200 
   201 fun background_abbrev (b, global_rhs) params =
   201 fun background_abbrev (b, global_rhs) params =
   202   Local_Theory.background_theory_result (Sign.add_abbrev Print_Mode.internal (b, global_rhs))
   202   Local_Theory.background_theory_result (Sign.add_abbrev Print_Mode.internal (b, global_rhs))
   203   #>> (fn (lhs, rhs) => (Term.list_comb (Logic.unvarify_global lhs, params), Logic.unvarify_global rhs))
   203   #>> pairself (fn t => Term.list_comb (Logic.unvarify_global t, params))
   204 
   204 
   205 fun abbrev target_abbrev prmode ((b, mx), rhs) lthy =
   205 fun abbrev target_abbrev prmode ((b, mx), rhs) lthy =
   206   let
   206   let
   207     val thy_ctxt = Proof_Context.init_global (Proof_Context.theory_of lthy);
   207     val thy_ctxt = Proof_Context.init_global (Proof_Context.theory_of lthy);
   208 
   208