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.

Statusfixed
Fixed inv4.20.0
Subsystemkernel
Guarantee broken
kernel-soundness
Mechanism
kernel-internal
Symptomproves-False
Severityunsoundness
Fools
kernel
Discovery
user-report
Features
arithmeticnat-literals
References