lean-0020: Kernel accepted self-referential indices in inductive types

The kernel accepted occurrences of an inductive type within its own indices, e.g. `inductive C : Bool → Type | c : C (f (C false))` with `f = Nonempty`. A direct route to False. Pre-stable; reported and fixed Feb 2023.

Statusfixed
Fixed in—
Subsystemkernel
Guarantee broken
kernel-soundness
Mechanism
kernel-internal
Symptomproves-False
Severityunsoundness
Fools
kernel
Discovery
user-report
Features
inductive-typesself-reference
References