lean-0023: `Expr.Data` and `Level.Data` were not conservative on extreme-depth expressions
`Expr.hasLooseBVars`, `Expr.hasFVar`, `Expr.hasMVar` and friends read from the fixed-size `Expr.Data` / `Level.Data` bitfield. On overflow the kernel's `assert!`/`panic!` did not actually abort, so Lean continued with the default `0`, meaning expressions appeared to have no loose bvars / fvars / mvars when they did — a route to False. Mario Carneiro's technical write-up and proposed redesign of `Expr.Data` landed as closed PR #8554; the actual merged fix took a different approach, hardening `assert!` to abort (PRs #8559 and #8560). Affects stable versions 4.0.0 through 4.20.0 inclusive.
| Status | fixed |
|---|---|
| Fixed in | v4.21.0 |
| Subsystem | kernel |
| Guarantee broken | |
| Mechanism | |
| Symptom | proves-False |
| Severity | unsoundness |
| Fools | |
| Discovery | |
| Features | |
| References |