Lean Kernel Arena (Preview) / perf/unfold-before-literal-fallback

Test "perf/unfold-before-literal-fallback"

Expected: 馃憤 accept 路 Size: 66.3鈥疜B 路 Lines: 1.2鈥痥 路 lean4export: 3.2.0 路 Lean: 4.38.0-nightly-2026-12-03 路 Timeout: 4.50鈥痬in 路 馃搫 Declaration 路 馃敆 Source

A positive companion of unfold-before-literal:

[slowA + 1, 1].sum = slowA + (2 + 0)

(and two variants) is true, both sides being slowA + 2, but after unfolding the sum the addition arguments differ. A checker that compares arguments first must continue correctly after that comparison fails, by evaluation or otherwise, and accept, instead of rejecting.

Checker Result 鈴憋笍 馃
gruszka 馃憤 3.65鈥痵 (梅3.0) 1.1鈥疓B (+55%)
nano-lean 馃憤 2.62鈥痵 (梅4.2) 3.1鈥疓B (脳4.4)
pestka 馃憤 14.3鈥痵 (+29%) 585.0鈥疢B (-20%)
con-leche 馃憤 14.5鈥痵 (+31%) 3.1鈥疓B (脳4.4)
con-ron 馃憤 10.2鈥痵 (-8%) 2.6鈥疓B (脳3.6)
nucleus 馃憤 493鈥痬s (梅23) 13.9鈥疢B (梅53)
official 馃憤 11.1鈥痵 732.8鈥疢B