This PR fixes a panic that occurred when a theorem had a docstring on an auxiliary definition within a `where` clause. Reproducer: ```lean theorem foo : True := aux where /-- -/ aux := True.intro ``` The issue was that `asyncMayModify` used `.any` to check if a nested declaration could have its extension state modified, which returned `false` when the declaration wasn't yet in `asyncConsts`. Using `.all` instead returns `true` for `none` (vacuously true), allowing modification of extension state for nested declarations that haven't been added to `asyncConsts` yet. Closes #11799 🤖 Prepared with Claude Code --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| bench | ||
| bench-radar | ||
| compiler | ||
| elabissues | ||
| ir | ||
| lake | ||
| lean | ||
| pkg | ||
| playground | ||
| plugin | ||
| simpperf | ||
| .gitignore | ||
| common.sh | ||
| lakefile.toml | ||
| lean-toolchain | ||