tuned;
authorwenzelm
Wed, 09 Oct 2019 23:00:12 +0200
changeset 70815 a74ab9230cb3
parent 70814 a6644dfe8e26
child 70816 5bc338cee4a0
tuned;
src/Pure/proofterm.ML
--- a/src/Pure/proofterm.ML	Wed Oct 09 22:52:34 2019 +0200
+++ b/src/Pure/proofterm.ML	Wed Oct 09 23:00:12 2019 +0200
@@ -1862,9 +1862,8 @@
     val env' = solve thy cs' env
   in thawf (norm_proof env' prf) end handle MIN_PROOF () => MinProof;
 
-fun prop_of_atom prop Ts = subst_atomic_types
-  (map TVar (Term.add_tvars prop [] |> rev) @ map TFree (Term.add_tfrees prop [] |> rev) ~~ Ts)
-  (forall_intr_vfs prop);
+fun prop_of_atom prop Ts =
+  subst_atomic_types (type_variables_of prop ~~ Ts) (forall_intr_vfs prop);
 
 val head_norm = Envir.head_norm Envir.init;