more robust judgment handling
authorhaftmann
Mon, 20 Apr 2020 08:58:09 +0200
changeset 71773 7c2f4dd48fb6
parent 71772 af1381b565d6
child 71774 491f185fd705
more robust judgment handling
src/Provers/quantifier1.ML
--- a/src/Provers/quantifier1.ML	Sun Apr 19 22:58:32 2020 +0100
+++ b/src/Provers/quantifier1.ML	Mon Apr 20 08:58:09 2020 +0200
@@ -117,9 +117,13 @@
 fun extract_conj_from_judgment ctxt fst xs t =
   if Object_Logic.is_judgment ctxt t
   then
-    (case extract_conj fst xs (Object_Logic.drop_judgment ctxt t) of
-      NONE => NONE
-    | SOME (xs, eq, P) => SOME (xs, Object_Logic.ensure_propT ctxt eq, Object_Logic.ensure_propT ctxt P))
+    let
+      val judg $ t' = t
+    in
+      case extract_conj fst xs t' of
+          NONE => NONE
+        | SOME (xs, eq, P) => SOME (xs, judg $ eq, judg $ P)
+    end
   else NONE;
 
 fun extract_implies ctxt fst xs t =