tuned;
authorwenzelm
Tue, 19 Dec 2023 15:27:45 +0100
changeset 79304 5c534c60e11e
parent 79303 0b1fd4445329
child 79305 6247ead9f5b0
tuned;
src/Pure/thm.ML
--- a/src/Pure/thm.ML	Tue Dec 19 15:17:04 2023 +0100
+++ b/src/Pure/thm.ML	Tue Dec 19 15:27:45 2023 +0100
@@ -405,18 +405,18 @@
 
 val union_constraints = Ord_List.union constraint_ord;
 
-fun insert_constraints thy (T, S) =
-  let
-    val ignored =
-      S = [] orelse
-        (case T of
-          TFree (_, S') => S = S'
-        | TVar (_, S') => S = S'
-        | _ => false);
-  in
-    if ignored then I
-    else Ord_List.insert constraint_ord {theory = thy, typ = smash_atyps T, sort = S}
-  end;
+fun insert_constraints _ (_, []) = I
+  | insert_constraints thy (T, S) =
+      let
+        val ignored =
+          (case T of
+            TFree (_, S') => S = S'
+          | TVar (_, S') => S = S'
+          | _ => false);
+      in
+        if ignored then I
+        else Ord_List.insert constraint_ord {theory = thy, typ = smash_atyps T, sort = S}
+      end;
 
 fun insert_constraints_env thy env =
   let