lean4-htt/tests/lean/run/4219.lean
Leonardo de Moura b278f9dd30
fix: missing withIncRecDepth and unifyEqs? and add support for offsets at unifyEq? (#4224)
Given `h` with type `x + k = y + k'` (or `h : k = k')`, `cases h`
produced a proof of size linear in `min k k'`. `isDefEq` has support for
offset, but `unifyEq?` did not have it, and a stack overflow occurred
while processing the resulting proof. This PR fixes this issue.

closes #4219
2024-05-20 13:42:36 +00:00

9 lines
166 B
Text

example (h : 2000 = 2001) : False := by
cases h
example (h : 20000 = 20001) : False := by
cases h
example (h : x + 20000 = 20001) : x = 1 := by
cases h
rfl