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`
8 lines
246 B
Text
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
|