perf: implement `Expr.instantiateLevelParams` natively (#15928) This PR implements `Expr.instantiateLevelParams` in C++. It previously ran `Expr.replace` with a Lean closure called at every visited node. Levels containing `max`/`imax`/`succ` over parameters are still instantiated by `Level.instantiateParams`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This is the repository for Lean 4.
See Install Lean.
Please read our Contribution Guidelines first.
See Building Lean.