Lean Kernel Arena (Preview) / perf/identical-nesting

Test "perf/identical-nesting"

Expected: 馃憤 accept 路 Size: 8.9鈥疜B 路 Lines: 172 路 lean4export: 3.2.0 路 Lean: 4.38.0-nightly-2026-12-03 路 Timeout: 40.0鈥痵 路 馃搫 Declaration 路 馃敆 Source

The declaration to check compares

f4 (f4 (... (f4 N.O) ...))      and      f4 (f4 (... (f4 N.O) ...))

n applications of f4 on each side, the same term twice, where f0 is the identity on N and each of f1, f2, f3, f4 applies its predecessor twice, so the nesting expands into 16n applications of f0.

The test asks whether a checker compares the two sides before it starts unfolding, which answers in 螛(n). Unfolding one side at a time offers 16n applications to choose from per side, and the reachable pairs of partially unfolded sides grow exponentially in n.

N=30 in the Lean source. From Courant and Leroy, POPL 2026, 搂10.

Checker Result 鈴憋笍 馃
gruszka 馃憤 1.86鈥痬s (梅23) 86.3鈥疢B (-23%)
nano-lean 馃憤 0.558鈥痬s (梅76) 21.7鈥疢B (梅5.2)
pestka 馃憤 2.20鈥痬s (梅19) 16.6鈥疢B (梅6.8)
con-leche 馃憤 4.13鈥痬s (梅10) 23.1鈥疢B (梅4.9)
con-ron 馃憤 28.4鈥痬s (-33%) 41.7鈥疢B (梅2.7)
nucleus 馃憤 33.5鈥痬s (-21%) 13.9鈥疢B (梅8.1)
official 馃憤 42.5鈥痬s 112.6鈥疢B