LESS INPUT. MORE INSIGHT.
Big bug.
Tiny counterexample.
Random inputs find the cracks. Shrinking strips away the noise.
Six buggy functions, real tests, and the smallest clues that break them.
6planted bugs
—random trials
—shrink checks
—input removed
The experiments
● Still fails → keep ○ Passes → discard
Preparing six seeded experiments: integer arithmetic, array operations, and string round trips.
01 / Find the failure
Try up to 300 random inputs against a property that should always hold. Stop at the first counterexample.
02 / Remove the noise
Bisect integers toward zero or delete chunks of a sequence. Keep a smaller input only if it still fails.
03 / Keep the clue
Stop when no candidate is smaller and still failing. “Minimal” is local to these shrink strategies, not a universal proof.