replaced old-style Drule.add_axiom by Specification.axiomatization
authorboehmes
Mon, 22 Mar 2010 09:40:11 +0100
changeset 35862 c2039b00ff0d
parent 35861 6b4e3b2d33b0
child 35863 d4218a55cf20
replaced old-style Drule.add_axiom by Specification.axiomatization
src/HOL/Boogie/Tools/boogie_loader.ML
--- a/src/HOL/Boogie/Tools/boogie_loader.ML	Mon Mar 22 09:39:10 2010 +0100
+++ b/src/HOL/Boogie/Tools/boogie_loader.ML	Mon Mar 22 09:40:11 2010 +0100
@@ -238,10 +238,14 @@
     |> split_list_kind thy o Termtab.dest
 in
 fun add_axioms verbose axs thy =
-  let val (used, new) = mark_axioms thy (name_axioms axs)
+  let
+    val (used, new) = mark_axioms thy (name_axioms axs)
+    fun add (n, t) =
+      Specification.axiomatization [] [((Binding.name n, []), [t])] #>>
+      hd o hd o snd
   in
     thy
-    |> fold_map (Drule.add_axiom o apfst Binding.name) new
+    |> fold_map add new
     |-> Context.theory_map o fold Boogie_Axioms.add_thm
     |> log verbose "The following axioms were added:" (map fst new)
     |> (fn thy' => log verbose "The following axioms already existed:"