lean-0022: Kernel treated constants as `Nat` literals when reducing `Nat.pow`
A missing check in the kernel's `Nat.pow` reduction falsely interpreted an expression as a `Nat` literal. With GMP enabled (the default), this is a soundness bug: one can prove False. With GMP disabled, the kernel instead crashes on some inputs. Would be caught by lean4lean and nanoda. Affects stable versions 4.14.0 through 4.19.0 inclusive.
| Status | fixed |
|---|---|
| Fixed in | v4.20.0 |
| Subsystem | kernel |
| Guarantee broken | |
| Mechanism | |
| Symptom | proves-False |
| Severity | unsoundness |
| Fools | |
| Discovery | |
| Features | |
| References |