src/HOL/Tools/Meson/meson_clausify.ML
changeset 74610 87fc10f5826c
parent 74530 823ccd84b879
child 77263 27be31d7ad88
--- a/src/HOL/Tools/Meson/meson_clausify.ML	Thu Oct 28 20:05:18 2021 +0200
+++ b/src/HOL/Tools/Meson/meson_clausify.ML	Thu Oct 28 20:06:29 2021 +0200
@@ -366,9 +366,9 @@
        th ctxt1
     val (cnf_ths, ctxt2) = clausify nnf_th
     fun intr_imp ct th =
-      Thm.instantiate
-        (TVars.empty, Vars.make [(\<^var>\<open>?i::nat\<close>, Thm.cterm_of ctxt2 (HOLogic.mk_nat ax_no))])
-        (zero_var_indexes @{thm skolem_COMBK_D})
+      \<^instantiate>\<open>i = \<open>Thm.cterm_of ctxt2 (HOLogic.mk_nat ax_no)\<close> in
+        lemma (schematic) \<open>skolem (COMBK P i) \<Longrightarrow> P\<close> for i :: nat
+          by (rule iffD2 [OF skolem_COMBK_iff])\<close>
       RS Thm.implies_intr ct th
   in
     (opt |> Option.map (I #>> singleton (Variable.export ctxt2 ctxt0)