lean-0007: Declarations could use the kernel's _nested auxiliary type names

The kernel accepted user declarations named like the auxiliary types it generates for nested inductives, which let a bogus proof through. Reachable only through metaprogramming. nanoda and ind-models both rejected the bogus proof.

Statusfixed
Fixed inv4.33.0
Subsystemkernel
Guarantee broken
kernel-soundness
Mechanism
kernel-internal
Symptom—
Severityunsoundness
Fools
kernel
Discovery
fro-bug-huntai-assisted
Features
nested-inductivemetaprogramming
References