lean4-htt/tests/lean/run/561.lean
Leonardo de Moura bba9353619 fix: make sure isDefEqOffset does not expose kernel nat literals
This issue is similar to a bug where `isDefEqOffset` was exposing
`Nat.add` when processing `HAdd.hAdd`.

Fixes #561
The example at issue #561 is now working, but we may have other places
where raw literals are being accidentally exposed.
2021-08-02 11:27:00 -07:00

4 lines
166 B
Text

example : 0 * x = 0 := by simp
example : 1 * x = x := by simp
example : 2 * x = x + x := by simp [Nat.succ_mul]
example : 3 * x = x + x + x := by simp [Nat.succ_mul]