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