Test "perf/short-circuit-and-bad"
Expected: ✋ reject · Size: 3.8 MB · Lines: 77.7 k · lean4export: 3.2.0 · Lean: 4.38.0-nightly-2026-12-03 · Timeout: 2.00 min · 📄 Declaration · 🔗 Source
short-circuit-and with true in place of false:
(true && eqA 600 (unpack 600 11 p) (unpack 600 11 q)) = (true && Nat.beq p q)
must be rejected: && now returns its second argument, and eqA sees
only the low 600 · 11 bits of p and q while Nat.beq sees all of
them. Unfolding && decides the sides only when the first argument is
false.