Lean Kernel Arena / bugs/quot-bad-type

Test "bugs/quot-bad-type"

Expected: ✋ reject · Size: 4.1 KB · Lines: 73 · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 Declaration

Proof of False from a forged quot declaration.

The export contains Eq and False from Init.Prelude, followed by a quot record with name: Quot, kind: "type", and levelParams: [u] whose type is forged to False instead of ∀ {α : Sort u}, (α → α → Prop) → Sort u. The theorem inconsistent : False is then simply Quot.{0}.

A sound kernel must either check that each exported quot declaration matches Lean's fixed quotient signatures (and that Eq is declared) or synthesize the genuine Quot declarations itself rather than trusting the exported type.

rpylean accepted this export because register_quotient only checked the declaration name and W_Quotient.type_check only checked that the exported type was a Sort.

Checker Result ⏱️ 🧠
nano-lean ✋ 0.520 ms 19.7 MB
gruszka ✋ 1.80 ms 67.8 MB
sokonanoda ✋ 0.788 ms 27.9 MB
rpylean ✋ 0.876 ms 9.7 MB
pestka ✋ 2.06 ms 15.9 MB
kefir ✋ 0.662 ms 6.0 MB
palladium ✋ 0.577 ms 18.9 MB
con-ron 🚫 29.3 ms 43.1 MB
kefir-wasm ✋ 111 ms 82.9 MB
con-agua 🚫 19.8 ms 10.2 MB
nanobruijn ✋ 0.718 ms 8.9 MB
nanoda ✋ 0.585 ms 3.2 MB
con-leche 🚫 3.78 ms 21.6 MB
pestka-wasm ✋ 88.9 ms 104.3 MB
tenet-jvm ✋ 102 ms 76.4 MB
official-nightly ✋ 33.5 ms 98.5 MB
eink0rn ✋ 1.40 ms 11.4 MB
official ✋ 32.3 ms 93.0 MB
ind-models ✋ 100 ms 107.5 MB
tenet ✋ 138 ms 45.9 MB
tenet-hs ✋ 1.23 ms 8.5 MB
kiota ✋ 0.700 ms 11.1 MB
ocaml4lean ✋ 13.6 ms 23.6 MB
logos-kernel ✋ 0.422 ms 3.6 MB
evmlean ✋ 1.40 s 274.3 MB
mini ✋ 34.1 ms 74.0 MB
overfull ✋ 9.76 s 46.2 MB
lean4lean ✋ 73.2 ms 96.1 MB
lean4cobol ✋ 3.65 ms 13.5 MB
canonical-min 🚫 550 ms 1.1 GB
nanoclo ✋ 0.709 ms 47.2 MB
vow-lean-kernel ✋ 132 ms 14.3 MB
metalean-slow ✋ 29.9 ms 71.5 MB
lazylean ✋ 11.2 s 14.6 GB
metalean-fast ✋ 29.9 ms 71.8 MB
nanoclo-fortran ✋ 1.08 ms 4.1 MB
mathgraph ✋ 0.694 ms 33.4 MB