Lean Kernel Arena (Preview) / perf/irrelevance-before-evaluation

Test "perf/irrelevance-before-evaluation"

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

The declaration to check is

slowTriv (count #n) = True.intro

proved by Eq.refl, where slowTriv m : True recurses over m, so forcing it to a constructor evaluates the numeral in 螛(n虏) reductions.

Checking compares the two proofs as arguments of Eq, whose head is rigid: nothing can be unfolded instead. Proof irrelevance settles the proofs by their type for 螛(1); evaluating the left one to a constructor costs 螛(n虏) and yields the answer irrelevance already gave. The test asks whether a checker consults proof irrelevance before it reduces.

N=200 in the Lean source.

Checker Result 鈴憋笍 馃
gruszka 馃憤 2.17鈥痬s (梅20) 78.2鈥疢B (-31%)
nano-lean 馃憤 0.625鈥痬s (梅69) 23.9鈥疢B (梅4.7)
pestka 馃憤 2.30鈥痬s (梅19) 17.0鈥疢B (梅6.6)
con-leche 馃憤 4.47鈥痬s (梅9.7) 25.4鈥疢B (梅4.4)
con-ron 馃憤 28.7鈥痬s (-34%) 41.8鈥疢B (梅2.7)
nucleus 馃憤 52.6鈥痬s (+22%) 13.7鈥疢B (梅8.2)
official 馃憤 43.2鈥痬s 112.7鈥疢B