theory Quickcheck_Lattice_Examples imports Main begin
declare [[quickcheck_finite_type_size=5]]
text\<open>We show how other default types help to find counterexamples to propositions if
the standard default type \<^typ>\<open>int\<close> is insufficient.\<close>
lemma sup_bot_left [simp]: "\ \ (x :: 'a :: bounded_lattice_bot) = x" quickcheck[expect = no_counterexample] by (rule sup_absorb2) simp
lemma sup_bot_right_2 [simp]: "(x :: 'a :: bounded_lattice_bot) \ \ = x" quickcheck[expect = no_counterexample] by (rule sup_absorb1) simp
lemma sup_eq_bot_iff [simp]: "(x :: 'a :: bounded_lattice_bot) \ y = \ \ x = \ \ y = \" quickcheck[expect = no_counterexample] by (simp add: eq_iff)
lemma sup_top_left [simp]: "\ \ (x :: 'a :: bounded_lattice_top) = \" quickcheck[expect = no_counterexample] by (rule sup_absorb1) simp
lemma sup_top_right [simp]: "(x :: 'a :: bounded_lattice_top) \ \ = \" quickcheck[expect = no_counterexample] by (rule sup_absorb2) simp
lemma inf_top_left [simp]: "\ \ x = (x :: 'a :: bounded_lattice_top)" quickcheck[expect = no_counterexample] by (rule inf_absorb2) simp
lemma inf_top_right [simp]: "x \ \ = (x :: 'a :: bounded_lattice_top)" quickcheck[expect = no_counterexample] by (rule inf_absorb1) simp
lemma inf_eq_top_iff [simp]: "(x :: 'a :: bounded_lattice_top) \ y = \ \ x = \ \ y = \" quickcheck[expect = no_counterexample] by (simp add: eq_iff)
unbundle no lattice_syntax
end
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.11Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.