src/Pure/Proof/extraction.ML
changeset 79411 700d4f16b5f2
parent 79409 e1895596e1b9
child 80295 8a9588ffc133
--- a/src/Pure/Proof/extraction.ML	Sun Dec 31 21:40:14 2023 +0100
+++ b/src/Pure/Proof/extraction.ML	Sun Dec 31 22:04:41 2023 +0100
@@ -389,7 +389,7 @@
       (build_rev (Term.add_vars prop'));
     val cs = maps (fn T => map (pair T) S) Ts;
     val constraints' = map Logic.mk_of_class cs;
-    val typ_map = Type.strip_sorts o
+    val typ_map = Term.strip_sortsT o
       Term.map_atyps (fn U =>
         if member (op =) atyps U
         then #typ_operation ucontext {strip_sorts = false} U
@@ -417,8 +417,8 @@
     thy |> ExtractionData.put
       (if is_def then
         {realizes_eqns = realizes_eqns,
-         typeof_eqns = add_rule ([], Logic.dest_equals (map_types
-           Type.strip_sorts (Thm.prop_of (Drule.abs_def thm)))) typeof_eqns,
+         typeof_eqns = typeof_eqns
+          |> add_rule ([], Logic.dest_equals (Term.strip_sorts (Thm.prop_of (Drule.abs_def thm)))),
          types = types,
          realizers = realizers, defs = insert Thm.eq_thm_prop (Thm.trim_context thm) defs,
          expand = expand, prep = prep}