fix: reduce binder types only at reducible transparency in `constructorNameAsVariable` This PR makes the `constructorNameAsVariable` linter compute the weak head normal form of binder types with `whnfR` instead of `whnf`, so that it no longer fails with an error (e.g. maximum recursion depth) on binders whose types are expensive to unfold. The linter now only sees through reducible definitions to find the inductive type. Fixes #16612 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.