You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why do you expect this to terminate exactly? You're asking to run rw nat.add_comm at h as often as it doesn't fail, and this tactic will happily rewrite t + a to a + t and then back to t + aover and over.
To get the behavior you want, use any of
simp [nat.add_comm t] at h
simp_rw [nat.add_comm t] at h
have h : a + t = b + t, by simpa [nat.add_comm] using h (requires import tactic.basic from mathlib)
I don't think you should use repeat for something like this, but if you really want to: repeat {rw nat.add_comm t at h},
Prerequisites
or feature requests.
Description
Repeat tactic does not terminate instead of giving an error or functioning as it should.
Steps to Reproduce
Expected behavior:
Either give out an error or change the goals to
Actual behavior:
Does not terminate and the Infoview shows
Reproduces how often:
All the time.
Versions
Lean (version 3.30.0, commit a5822ea, Release)
Windows 10 Home Edition
Additional Information
None.
The text was updated successfully, but these errors were encountered: