Zulip Chat Archive
Stream: lean4
Topic: WLOG bug?
Nir Paz (Dec 24 2024 at 15:19):
In the second example
, wlog
fails with the error message "tactic 'introN' failed, insufficient number of binders". This doesn't happen on a version of mathlib from a few months ago.
import Mathlib
example : True := by
wlog obv : True -- works
· sorry
sorry
example : True := by
let x : ℕ := 0
wlog obv : True -- tactic 'introN' failed, insufficient number of binders
· sorry
sorry
Yury G. Kudryashov (Dec 24 2024 at 15:24):
Can you git bisect
the bad commit, please?
Yury G. Kudryashov (Dec 24 2024 at 15:47):
Running it myself.
Yury G. Kudryashov (Dec 24 2024 at 15:50):
The offending commit is #19675
Nir Paz (Dec 24 2024 at 15:51):
Sorry it takes me a few minutes per commit just to get the cache
Yury G. Kudryashov (Dec 24 2024 at 15:52):
That's why I minimized imports first and didn't get the cache.
Yury G. Kudryashov (Dec 24 2024 at 15:55):
This PR adds (usedLetOnly := true)
to mkAuxMVarType
call. If I change it to (usedLetOnly := false)
, then this test works. @Kim Morrison Is it the correct fix or should we do something else?
Kim Morrison (Feb 24 2025 at 03:31):
Sorry, missed this until now. Yes, this seems fine to change.
Last updated: May 02 2025 at 03:31 UTC