lean4-htt/tests/lean/run/grind_smul_issue.lean
Leonardo de Moura eb6cede35d
fix: normalize SMul.smul for Semiring and Ring (#9671)
This PR fixes support for `SMul.smul` in `grind ring`. `SMul.smul`
applications are now normalized. Example:
```lean
example (x : BitVec 2) : x - 2 • x + x = 0 := by
  grind
```
2025-08-01 20:16:03 +00:00

14 lines
295 B
Text

example (x : BitVec 2) : x - 2 • x + x = 0 := by
grind
example (x : BitVec 2) : x + (-2) • x + x = 0 := by
grind
example (x : Fin 7) : x + (-2) • x + x = 0 := by
grind
example (x : Int) : x + (-2) • x + x = 0 := by
grind
example (x : Int) : x - 2 • x + x = 0 := by
grind