tuned;
authorwenzelm
Sat, 30 Dec 2023 21:22:11 +0100
changeset 79392 27e1cd1bba76
parent 79391 70c0dbfacf0b
child 79393 0fb52d6ecb1b
tuned;
src/Pure/proofterm.ML
--- a/src/Pure/proofterm.ML	Sat Dec 30 17:19:31 2023 +0100
+++ b/src/Pure/proofterm.ML	Sat Dec 30 21:22:11 2023 +0100
@@ -2142,9 +2142,11 @@
     val typ = #unconstrain_typ ucontext {strip_sorts = true};
     val typ_sort = #unconstrain_typ ucontext {strip_sorts = false};
 
-    fun ofclass (ty, c) =
-      let val ty' = Same.commit typ_sort ty;
-      in the_single (of_sort_proof algebra classrel_proof arity_proof hyp_map (ty', [c])) end;
+    fun ofclass (T, c) =
+      let
+        val T' = Same.commit typ_sort T;
+        val [p] = of_sort_proof algebra classrel_proof arity_proof hyp_map (T', [c])
+      in p end;
   in
     Same.commit (map_proof_same (Term_Subst.map_types_same typ) typ ofclass)
     #> fold_rev (implies_intr_proof o snd) (#constraints ucontext)