src/HOL/Quickcheck_Examples/Quickcheck_Nesting.thy
author haftmann
Mon, 13 Sep 2021 14:18:24 +0000
changeset 74309 42523fbf643b
parent 69597 ff784d5a5bfb
child 80634 a90ab1ea6458
permissions -rw-r--r--
explicit predicate for confined bit range avoids cyclic rewriting in presence of extensionality rule for bit values (contributed by Thomas Sewell)

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 (fst o dest_Type o #T) fp_sugars)));
in
  Theory.setup (fp_sugars_interpretation compat_plugin compat)
end
\<close>

end