tuned;
authorwenzelm
Wed, 06 Dec 2023 10:29:37 +0100
changeset 79144 42ca72f06632
parent 79137 4e738f2a97a8
child 79145 a9c55fef42b0
tuned;
src/Pure/zterm.ML
--- a/src/Pure/zterm.ML	Tue Dec 05 22:04:01 2023 +0100
+++ b/src/Pure/zterm.ML	Wed Dec 06 10:29:37 2023 +0100
@@ -273,6 +273,9 @@
       | proof (ZClassP (T, c)) = ZClassP (typ T, c);
   in proof end;
 
+fun map_proof_types_same typ =
+  map_proof_same typ (subst_term_same typ Same.same);
+
 
 (* instantiation *)
 
@@ -524,7 +527,6 @@
           (case ZTVars.lookup tab v of
             NONE => raise Same.SAME
           | SOME w => ZTVar w));
-      val term = subst_term_same typ Same.same;
-    in Same.commit (map_proof_same typ term) prf end;
+    in Same.commit (map_proof_types_same typ) prf end;
 
 end;