Zulip Chat Archive

Stream: mathlib4

Topic: rename bvar


Yury G. Kudryashov (Dec 24 2023 at 05:05):

I tried to use docs#rename_bvar on a goal with lots of x/a variables introduced by simp and found 3 issues:

  • the syntax expects rename_bvar a → b, not rename_bvar a b as the documentation says; I'll open a PR tonight or tomorrow;
  • the syntax doesn't support renaming more than 1 variable;
  • if I have x at more than 1 level, then Lean pretty prints them as x and x_1 but rename_bvar renames all of them at once.

Last updated: May 02 2025 at 03:31 UTC