lean-0019: `safe` definitions could reference `partial` ones

The kernel did not ensure that `safe` functions could not use `partial` ones. Since `partial` definitions are effectively opaque, referencing one from `safe` code let you treat an arbitrary inhabitant as real — a route to False. Same class as lean-0013 but kernel-level and years earlier. Pre-stable; fixed Jan 2023.

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