lean4-htt/tests/lean/run/grind_nat_bitwise.lean
Kim Morrison 1a31aa3d2b
chore: fewer Nat.bitwise grind attributes for distributivity (#9999)
This PR reduces the number of `Nat.Bitwise` grind annotations we have
the deal with distributivity. The new smaller set encourages `grind` to
rewrite into DNF. The old behaviour just resulted in saturating up to
the instantiation limits.
2025-08-20 05:38:05 +00:00

5 lines
389 B
Text

example (x y z : Nat) : x &&& (y ||| z) = (x &&& y) ||| (x &&& z) := by grind
example (w x y z : Nat) : (w ||| x) &&& (y ||| z) = (w &&& y) ||| (w &&& z) ||| (x &&& y) ||| (x &&& z) := by grind
example (x y z : Nat) : x &&& (y ^^^ z) = (x &&& y) ^^^ (x &&& z) := by grind
example (w x y z : Nat) : (w ^^^ x) &&& (y ^^^ z) = (w &&& y) ^^^ (w &&& z) ^^^ (x &&& y) ^^^ (x &&& z) := by grind