src/Pure/global_theory.ML
changeset 79327 a6d9631662c7
parent 79313 3b03af5125de
child 79328 1cdc1a3acdcd
--- a/src/Pure/global_theory.ML	Thu Dec 21 11:58:19 2023 +0100
+++ b/src/Pure/global_theory.ML	Thu Dec 21 17:01:35 2023 +0100
@@ -245,6 +245,10 @@
 
 (* store theorems and proofs *)
 
+fun check_thms_lazy (thms: thm list lazy) =
+  if Proofterm.any_proofs_enabled () orelse Options.default_bool "strict_facts"
+  then Lazy.force_value thms else thms;
+
 fun register_proofs thms thy =
   let
     val (thms', thy') =
@@ -282,10 +286,6 @@
     thy |> map_facts (Facts.add_static (Context.Theory thy) {strict = true, index = false} arg #> #2)
   end;
 
-fun check_thms_lazy (thms: thm list lazy) =
-  if Proofterm.any_proofs_enabled () orelse Options.default_bool "strict_facts"
-  then Lazy.force_value thms else thms;
-
 fun add_thms_lazy kind (b, thms) thy =
   if Binding.is_empty b then Thm.register_proofs (check_thms_lazy thms) thy
   else