Lean Kernel Arena (Preview) / perf/folded-constant-last

Test "perf/folded-constant-last"

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

The declaration to check compares

tagged (count #n)      and      (count #n, false)

where tagged m = (m, isZero m): folded-constant-first.lean with the components swapped, so the plain occurrences of count #n are compared before anything forces the application.

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

Checker Result 鈴憋笍 馃
gruszka 馃憤 3.73鈥痬s (梅14) 99.0鈥疢B (-15%)
nano-lean 馃憤 1.84鈥痬s (梅29) 31.4鈥疢B (梅3.7)
pestka 馃憤 6.04鈥痬s (梅8.7) 23.4鈥疢B (梅5.0)
con-leche 馃憤 12.4鈥痬s (梅4.3) 26.3鈥疢B (梅4.4)
con-ron 馃憤 34.3鈥痬s (-35%) 45.3鈥疢B (梅2.6)
nucleus 馃毇 132鈥痬s 17.6鈥疢B
official 馃憤 52.8鈥痬s 116.0鈥疢B