src/HOL/Tools/datatype_realizer.ML
changeset 79223 78d032205af4
parent 79197 ad98105148e5
child 80295 8a9588ffc133
--- a/src/HOL/Tools/datatype_realizer.ML	Sat Dec 09 20:50:21 2023 +0100
+++ b/src/HOL/Tools/datatype_realizer.ML	Sat Dec 09 21:15:12 2023 +0100
@@ -227,7 +227,7 @@
   end;
 
 fun add_dt_realizers config names thy =
-  if not (Proofterm.proof_enabled (! Proofterm.proofs)) then thy
+  if not (Proofterm.proof_enabled (Proofterm.get_proofs_level ())) then thy
   else
     let
       val _ = Old_Datatype_Aux.message config "Adding realizers for induction and case analysis ...";