Test "bugs/closure-level-subst"
Expected: ✋ reject · Size: 4.0 KB · Lines: 74 · lean4export: 3.1.0 · Lean: 4.35.0 · 📄 Declaration
Proof of False via two closures that differ only in their universe levels.
def FalseTy : Prop := ∀ P : Prop, P
def TrueTy : Prop := ∀ P : Prop, P → P
def trueProof : TrueTy := fun _ p => p
def A : Type := Prop → Prop → Prop
def seed : A := fun x _ => x
def Family.{u} : Sort (max 1 (u + 1)) := A → Sort u
def good : Family.{1} := fun _ => A
def lower : Family.{0} := good
def lowA : Prop := lower seed
def a : lowA := fun x _ => x
def b : lowA := fun _ y => y
def D (f : lowA) : Prop := f TrueTy FalseTy
def pa : D a := trueProof
theorem boom : D b := pa
lower is ill typed: good has type A → Type, and Family.{0} is
A → Prop. Both function types are Family's body, A → Sort u, under
empty environments that differ only in what u stands for. A checker that
compares such closures by their body, domain and environment, and takes two
empty environments to be equal whatever their universe substitutions, finds
them equal. Then lowA is a proposition that reduces to A, two different
functions inhabit it, and D b reduces to FalseTy. The file has no axioms
and no inductive types.
Sokonanoda accepted this export. Found by a differential run of Pestka against other checkers.
| Checker | Result | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| nano-lean | ✋ | 0.519 ms | 15.5 MB | |||
| logos-kernel | ✋ | 0.414 ms | 4.5 MB | |||
| gruszka | ✋ | 1.78 ms | 29.7 MB | |||
| sokonanoda | ✋ | 0.659 ms | 25.8 MB | |||
| pestka | ✋ | 1.97 ms | 13.3 MB | |||
| kefir | ✋ | 0.444 ms | 6.2 MB | |||
| palladium | ✋ | 0.567 ms | 18.9 MB | |||
| kefir-wasm | ✋ | 108 ms | 83.1 MB | |||
| con-ron | ✋ | 29.6 ms | 43.3 MB | |||
| con-agua | ✋ | 20.5 ms | 11.8 MB | |||
| nanobruijn | ✋ | 0.602 ms | 5.5 MB | |||
| nanoda | ✋ | 0.566 ms | 3.3 MB | |||
| con-leche | ✋ | 4.01 ms | 21.4 MB | |||
| pestka-wasm | ✋ | 85.7 ms | 105.4 MB | |||
| tenet-jvm | ✋ | 107 ms | 64.0 MB | |||
| official-nightly | ✋ | 33.3 ms | 108.8 MB | |||
| eink0rn | ✋ | 1.44 ms | 11.7 MB | |||
| official | ✋ | 32.1 ms | 102.4 MB | |||
| ind-models | ✋ | 100 ms | 100.9 MB | |||
| lean4lean | ✋ | 96.9 ms | 104.8 MB | |||
| tenet | ✋ | 117 ms | 43.9 MB | |||
| tenet-hs | ✋ | 1.19 ms | 7.7 MB | |||
| ocaml4lean | ✋ | 13.3 ms | 23.0 MB | |||
| lean4cobol | ✋ | 2.76 ms | 13.6 MB | |||
| evmlean | ✋ | 1.09 s | 273.8 MB | |||
| mini | ✋ | 34.1 ms | 73.3 MB | |||
| overfull | ✋ | 7.38 s | 45.8 MB | |||
| kiota | ✋ | 0.681 ms | 9.2 MB | |||
| canonical-min | ✋ | 387 ms | 1.1 GB | |||
| nanoclo | ✋ | 0.659 ms | 39.7 MB | |||
| vow-lean-kernel | ✋ | 140 ms | 14.4 MB | |||
| lazylean | ✋ | 1.13 ms | 21.2 MB | |||
| metalean-slow | ✋ | 29.9 ms | 71.5 MB | |||
| metalean-fast | ✋ | 30.1 ms | 70.8 MB | |||
| nanoclo-fortran | ✋ | 0.778 ms | 4.4 MB | |||
| mathgraph | 👍 | 0.610 ms | 33.6 MB | |||
| rpylean | ✋ | 0.508 ms | 4.2 MB |