fix: substVars in functional inductions removed valuable information (#3695) using the `substVars` tactic on the goal can remove too much information, as it does not take into account that the `motive` may depend on the fixed parameters. This is fixed by etracting `substVar` from `subst` which expects the `x`, not the `h : x = rhs`, and then using this tactic on the local declarations _after_ the `motive` exclusively.
This is the repository for Lean 4.
See Setting Up Lean.
Please read our Contribution Guidelines first.
See Building Lean.