src/Provers/clasimp.ML
changeset 59582 0fbed69ff081
parent 58826 2ed2eaabe3df
child 60366 df3e916bcd26
--- a/src/Provers/clasimp.ML	Tue Mar 03 19:08:04 2015 +0100
+++ b/src/Provers/clasimp.ML	Wed Mar 04 19:53:18 2015 +0100
@@ -65,7 +65,7 @@
 fun add_iff safe unsafe =
   Thm.declaration_attribute (fn th =>
     let
-      val n = nprems_of th;
+      val n = Thm.nprems_of th;
       val (elim, intro) = if n = 0 then safe else unsafe;
       val zero_rotate = zero_var_indexes o rotate_prems n;
     in
@@ -77,7 +77,7 @@
     end);
 
 fun del_iff del = Thm.declaration_attribute (fn th =>
-  let val zero_rotate = zero_var_indexes o rotate_prems (nprems_of th) in
+  let val zero_rotate = zero_var_indexes o rotate_prems (Thm.nprems_of th) in
     Thm.attribute_declaration del (zero_rotate (th RS Data.iffD2)) #>
     Thm.attribute_declaration del (Tactic.make_elim (zero_rotate (th RS Data.iffD1)))
     handle THM _ =>