src/Pure/Isar/generic_target.ML
changeset 57068 474403e50e05
parent 57065 2869310dae2a
child 57072 dfac6ef0ca28
--- a/src/Pure/Isar/generic_target.ML	Thu May 22 16:59:49 2014 +0200
+++ b/src/Pure/Isar/generic_target.ML	Thu May 22 16:59:49 2014 +0200
@@ -20,6 +20,7 @@
     (Attrib.binding * (thm list * Args.src list) list) list ->
     (Attrib.binding * (thm list * Args.src list) list) list ->
     local_theory -> local_theory
+  val background_abbrev: binding * term -> local_theory -> (term * term) * local_theory
   val abbrev: (string * bool -> binding * mixfix -> term * term ->
       term list -> local_theory -> local_theory) ->
     string * bool -> (binding * mixfix) * term -> local_theory -> (term * term) * local_theory
@@ -195,6 +196,9 @@
 
 (* abbrev *)
 
+fun background_abbrev (b, t) =
+  Local_Theory.background_theory_result (Sign.add_abbrev Print_Mode.internal (b, t))
+
 fun abbrev target_abbrev prmode ((b, mx), t) lthy =
   let
     val thy_ctxt = Proof_Context.init_global (Proof_Context.theory_of lthy);