lean4-htt/tests/lean/run/simp_nat_arith.lean
Leonardo de Moura b87c01b1c0
feat: simp +arith sorts linear atoms (#7040)
This PR ensures that terms such as `f (2*x + y)` and `f (y + x + x)`
have the same normal form when using `simp +arith`
2025-02-11 23:37:30 +00:00

8 lines
246 B
Text

example (x y : Nat) : (2*x + y = 4) ↔ (y + x + x = 4) := by
simp +arith
example (x y : Nat) : (2*x + y ≤ 3) ↔ (y + x + x ≤ 3) := by
simp +arith
example (f : Nat → Nat) (x y : Nat) : f (2*x + y) = f (y + x + x) := by
simp +arith