added specify_const;
authorwenzelm
Thu, 11 Oct 2007 16:05:39 +0200
changeset 24966 70111480b84b
parent 24965 8b4a02947721
child 24967 68c5c62bed13
added specify_const;
src/Pure/theory.ML
--- a/src/Pure/theory.ML	Thu Oct 11 16:05:37 2007 +0200
+++ b/src/Pure/theory.ML	Thu Oct 11 16:05:39 2007 +0200
@@ -44,6 +44,7 @@
   val add_defs_i: bool -> bool -> (bstring * term) list -> theory -> theory
   val add_finals: bool -> string list -> theory -> theory
   val add_finals_i: bool -> term list -> theory -> theory
+  val specify_const: Markup.property list -> bstring * typ * mixfix -> theory -> term * theory
   val add_oracle: bstring * (theory * Object.T -> term) -> theory -> theory
 end
 
@@ -343,6 +344,10 @@
 
 end;
 
+fun specify_const tags decl thy =
+  let val (const, thy') = Sign.declare_const tags decl thy
+  in (const, add_finals_i false [const] thy') end;
+
 
 
 (** add oracle **)