diff -r ac39d932ddfc -r b7d051e25d9d src/HOL/Tools/boolean_algebra_cancel.ML --- a/src/HOL/Tools/boolean_algebra_cancel.ML Sun Aug 18 15:29:03 2024 +0200 +++ b/src/HOL/Tools/boolean_algebra_cancel.ML Sun Aug 18 15:29:18 2024 +0200 @@ -16,19 +16,19 @@ fun move_to_front rule path = Conv.rewr_conv (Library.foldl (op RS) (rule, path)) -fun add_atoms sup pos path (t as Const (\<^const_name>\Lattices.sup\, _) $ x $ y) = +fun add_atoms sup pos path (t as \<^Const_>\sup _ for x y\) = if sup then add_atoms sup pos (@{thm boolean_algebra_cancel.sup1}::path) x #> add_atoms sup pos (@{thm boolean_algebra_cancel.sup2}::path) y else cons ((pos, t), path) - | add_atoms sup pos path (t as Const (\<^const_name>\Lattices.inf\, _) $ x $ y) = + | add_atoms sup pos path (t as \<^Const_>\inf _ for x y\) = if not sup then add_atoms sup pos (@{thm boolean_algebra_cancel.inf1}::path) x #> add_atoms sup pos (@{thm boolean_algebra_cancel.inf2}::path) y else cons ((pos, t), path) - | add_atoms _ _ _ (Const (\<^const_name>\Orderings.bot\, _)) = I - | add_atoms _ _ _ (Const (\<^const_name>\Orderings.top\, _)) = I - | add_atoms _ pos path (Const (\<^const_name>\Groups.uminus\, _) $ x) = cons ((not pos, x), path) + | add_atoms _ _ _ \<^Const_>\bot _\ = I + | add_atoms _ _ _ \<^Const_>\top _\ = I + | add_atoms _ pos path \<^Const_>\uminus _ for x\ = cons ((not pos, x), path) | add_atoms _ pos path x = cons ((pos, x), path); fun atoms sup pos t = add_atoms sup pos [] t []