src/HOL/Quickcheck_Examples/Quickcheck_Nesting.thy
author wenzelm
Wed, 13 Aug 2025 19:40:09 +0200
changeset 83005 a2a860cd3215
parent 80634 a90ab1ea6458
permissions -rw-r--r--
more robust, notably for Isabelle/MAWEN "polyminus.sml matchsub (?a * (?b - ?c)...";

theory Quickcheck_Nesting
imports Main
begin

ML \<open>
let
  open BNF_FP_Def_Sugar
  open BNF_LFP_Compat

  val compat_plugin = Plugin_Name.declare_setup \<^binding>\<open>compat\<close>;

  fun compat fp_sugars =
    perhaps (try (datatype_compat (map (dest_Type_name o #T) fp_sugars)));
in
  Theory.setup (fp_sugars_interpretation compat_plugin compat)
end
\<close>

end