--- 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 **)