Zulip Chat Archive
Stream: lean4
Topic: changeWith tactic
Wuyang (Nov 27 2024 at 06:44):
My Lean 4 is at v4.13.0-rc3.
From the github, it shows the changeWith
tactic is available: https://github.com/leanprover/lean4/blob/v4.13.0-rc3/src/Init/Tactics.lean#L469
However, when I try to use this tactic (change a with b
), Lean 4 shows "tactic 'Lean.Parser.Tactic.changeWith' has not been implemented"
Does anyone know why?
Kyle Miller (Nov 27 2024 at 06:58):
The answer is just that it hasn't been implemented yet. I've been working on a replacement, and it might make it into the next release, or the one after that at the latest.
Wuyang (Nov 27 2024 at 07:00):
@Kyle Miller do you mean the changeWith
is now just a placeholder?
Daniel Weber (Nov 27 2024 at 07:01):
That's the syntax definition, but there's no implementation
Wuyang (Nov 27 2024 at 07:04):
@Kyle Miller @Daniel Weber Thanks!!
I plan to use it for the change of variables in integration.
Could you by any chance share any local implementation on this? Or do we have any other better solution for this purpose?
Kyle Miller (Nov 27 2024 at 08:01):
It's possible you could use rw [show a = b from rfl]
or dsimp only [show a = b from rfl]
in the meantime.
Last updated: May 02 2025 at 03:31 UTC