Checker "official" on test "bugs/nat-rec-rules"
Checker: official · Version: v4.35.0 · 📄 Declaration
Test: bugs/nat-rec-rules · Expected: ✋ reject · Size: 8.1 KB · Lines: 128 · lean4export: 3.1.0 · Lean: 4.29.1 · 📄 Declaration
Result: ✋ rejected · exit code 1 · wall time: 36.3 ms · instructions: 204.0 M · max rss memory: 102.9 MB · run 2026-11-16 12:54:35 UTC
stdout:
Lean default kernel rejects the solution: while replaying declaration 'proof_of_false':
(kernel) application type mismatch
Nat.rec True.intro fun n ih => True.intro
argument has type
∀ (n : Nat), (fun n => Bool.rec False True (n.beq 0)) n → True
but function has type
(∀ (n : Nat), (fun n => Bool.rec False True (n.beq 0)) n → (fun n => Bool.rec False True (n.beq 0)) n.succ) →
∀ (t : Nat), (fun n => Bool.rec False True (n.beq 0)) t