src/Pure/proofterm.ML
changeset 70439 145fb19d906d
parent 70437 fdbb0c2e0162
child 70440 03cfef16ddb4
--- a/src/Pure/proofterm.ML	Mon Jul 29 11:38:05 2019 +0200
+++ b/src/Pure/proofterm.ML	Mon Jul 29 15:10:30 2019 +0200
@@ -1710,8 +1710,6 @@
     val args = prop_args prop;
 
     val (ucontext, prop1) = Logic.unconstrainT shyps prop;
-    val args1 = (map o Option.map o Term.map_types) (#map_atyps ucontext) args;
-    val argsP = map OfClass (#outer_constraints ucontext) @ map Hyp hyps;
 
     val PBody {oracles = oracles0, thms = thms0, proof = prf} = body;
     val body0 =
@@ -1741,9 +1739,11 @@
 
     val head = PThm (i, ((name, prop1, NONE, open_proof), body'));
     val proof =
-      if unconstrain
-      then proof_combt' (head, args1)
-      else proof_combP (proof_combt' (head, args), argsP);
+      if unconstrain then
+        proof_combt' (head, (map o Option.map o Term.map_types) (#map_atyps ucontext) args)
+      else
+        proof_combP (proof_combt' (head, args),
+          map OfClass (#outer_constraints ucontext) @ map Hyp hyps);
   in (pthm, proof) end;
 
 in