Lean Kernel Arena / perf/identical-nesting

Test "perf/identical-nesting"

Expected: 馃憤 accept 路 Size: 8.7鈥疜B 路 Lines: 172 路 lean4export: 3.1.0 路 Lean: 4.36.0 路 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 鈴憋笍 馃
nano-lean 馃憤 0.556鈥痬s (梅58) 21.8鈥疢B (梅4.2)
gruszka 馃憤 1.86鈥痬s (梅17) 84.1鈥疢B (-8%)
mathgraph 馃憤 0.891鈥痬s (梅36) 27.5鈥疢B (梅3.3)
sokonanoda 馃憤 0.802鈥痬s (梅40) 27.4鈥疢B (梅3.3)
pestka 馃憤 2.20鈥痬s (梅15) 18.5鈥疢B (梅5.0)
kefir 馃憤 0.694鈥痬s (梅47) 6.1鈥疢B (梅15)
kefir-wasm 馃憤 112鈥痬s (脳3.5) 83.1鈥疢B (-9%)
con-ron 馃憤 29.1鈥痬s (-10%) 41.7鈥疢B (梅2.2)
con-ron-stream 馃憤 29.6鈥痬s (-9%) 45.0鈥疢B (梅2.0)
con-agua 馃憤 20.3鈥痬s (-37%) 12.3鈥疢B (梅7.5)
nanobruijn 馃憤 0.882鈥痬s (梅37) 10.4鈥疢B (梅8.8)
nanoda 馃憤 0.661鈥痬s (梅49) 3.1鈥疢B (梅30)
con-leche 馃憤 4.18鈥痬s (梅7.8) 22.8鈥疢B (梅4.0)
pestka-wasm 馃憤 515鈥痬s (脳16) 313.9鈥疢B (脳3.4)
official-nightly 馃憤 33.6鈥痬s (+4%) 96.8鈥疢B (+6%)
eink0rn 馃憤 1.58鈥痬s (梅21) 12.0鈥疢B (梅7.6)
official 馃憤 32.5鈥痬s 91.7鈥疢B
ind-models 馃憤 104鈥痬s (脳3.2) 106.9鈥疢B (+17%)
kiota 馃憤 0.925鈥痬s (梅35) 11.3鈥疢B (梅8.1)
tenet 馃憤 135鈥痬s (脳4.2) 44.0鈥疢B (梅2.1)
tenet-hs 馃憤 1.45鈥痬s (梅22) 8.6鈥疢B (梅11)
logos-kernel 馃憤 0.463鈥痬s (梅70) 4.2鈥疢B (梅22)
evmlean 馃憤 1.66鈥痵 (脳51) 274.0鈥疢B (脳3.0)
mini 馃憤 38.3鈥痬s (+18%) 65.8鈥疢B (-28%)
overfull 馃憤 21.0鈥痵 (脳646) 46.4鈥疢B (-49%)
lean4lean 馃憤 30.1鈥痬s (-7%) 89.4鈥疢B (-2%)
lean4cobol 馃憤 5.41鈥痬s (梅6.0) 13.8鈥疢B (梅6.7)
tenet-jvm 馃憤 109鈥痬s (脳3.4) 76.7鈥疢B (-16%)
nanoclo 馃憤 0.737鈥痬s (梅44) 47.5鈥疢B (-48%)
vow-lean-kernel 馃憤 170鈥痬s (脳5.2) 14.2鈥疢B (梅6.5)
canonical-min 馃毇 388鈥痬s 1.0鈥疓B
lazylean 馃憤 1.19鈥痬s (梅27) 21.2鈥疢B (梅4.3)
rpylean 馃憤 0.908鈥痬s (梅36) 9.6鈥疢B (梅9.5)
metalean-slow 馃憤 31.6鈥痬s (-3%) 61.0鈥疢B (-33%)
metalean-fast 馃憤 30.5鈥痬s (-6%) 74.2鈥疢B (-19%)
nanoclo-fortran 馃憤 1.08鈥痬s (梅30) 4.4鈥疢B (梅21)