Lean Kernel Arena / nanobruijn / bugs/nat-rec-rules

Checker "nanobruijn" on test "bugs/nat-rec-rules"

Checker: nanobruijn · Version: 2712fa6 · 📄 Declaration · 🔗 Source

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: 6.97 ms · instructions: 5.3 M · max rss memory: 7.1 MB · run 2026-11-14 22:30:57 UTC

stderr:
ExprPtr parse: 92 parser entries → 91 DAG entries, 12 OSNF-shifted, 87 live after compaction, 0 cores with bvar indices >= 64 (0 tail words)

thread 'thread_2' (6674) panicked at src/inductive.rs:1367:21:
assertion failed: old_r.aux_data_ck(new_r)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  assert_def_eq FAILED at depth 0:
    u = Lam(Pi(C(Nat)+65535,Sort(ExportFile@1)+65535)+65535,Lam(App(V0+0,C(zero)+65535)+0,Lam(Pi(C(Nat)+65535,Pi(App(V0+1,V0+0)+0,App(V0+1,App(C(succ)+65535,V0+0)+0)+1)+0)+1,Lam(C(Nat)+65535,V0+1)+1)+0)+0) (shift=65535 nlbv=0)
    v = Lam(Pi(C(Nat)+65535,Sort(ExportFile@1)+65535)+65535,Lam(App(V0+0,C(zero)+65535)+0,Lam(Pi(C(Nat)+65535,Pi(App(V0+1,V0+0)+0,App(V0+1,App(C(succ)+65535,V0+0)+0)+1)+0)+1,Lam(C(Nat)+65535,App(App(V0+1,V0+0)+0,App(App(App(App(C(rec)+65535,V0+0)+1,V0+0)+1,V0+0)+1,V0+0)+0)+0)+0)+0)+0) (shift=65535 nlbv=0)
    DIFF Lam at depth 0
        DIFF Lam at depth 1
            DIFF Lam at depth 2
                DIFF Pi at depth 3
                    DIFF Pi at depth 4
                SHIFT DIFF: shift=1 vs shift=0
                DIFF Lam at depth 3
                    SHIFT DIFF: shift=2 vs shift=0
                    LEAF DIFF at depth 4: V0 vs App(App(V0+1,V0+0)+0,App(App(App(App(...+65535,...+0)+1,V0+0)+1,V0+0)+1,V0+0)+0)

thread 'thread_1' (6673) panicked at src/tc.rs:1429:13:
assert_def_eq failed

thread 'main-worker' (6671) panicked at src/tc.rs:324:26:
A thread in `check_all_declars` panicked while being joined: Any { .. }

thread 'main' (6670) panicked at src/main.rs:11:20:
called `Result::unwrap()` on an `Err` value: Any { .. }