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
9 lines
166 B
Text
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
|