Test "perf/unfold-before-literal-bad"
Expected: ✋ reject · Size: 64.5 KB · Lines: 1.2 k · lean4export: 3.2.0 · Lean: 4.38.0-nightly-2026-12-03 · Timeout: 2.17 min · 📄 Declaration · 🔗 Source
unfold-before-literal with a wrong right side:
[slowA, 1].sum = slowA + (2 + 0)
must be rejected. After unfolding, the arguments 1 + 0 and 2 + 0
differ, which refutes nothing by itself, so a sound checker evaluates
slowA here. This keeps the shortcut honest: comparing arguments first
may only ever answer "equal".