FA-41098 / Heap invariants / Member archive
Replacement selection ends a run only when no active replacement remains · case 03
The bounded replacement selection certificate reports an incorrect run ended.
Case contract
A replacement-selection external-sort heap receives last emitted key and new records [id,key]. Keys >=last remain active for current run; smaller keys freeze for next run. Return active ids, frozen ids, active sorted order, frozen sorted order, next current-run key, and end-run flag. Equal keys stay active.
Why this case matters
This isolates an internal heap representation or priority-structure invariant using deterministic finite records.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression certificate 4 | {"active": [], "active_order": [], "frozen": ["a", "b", "c"], "frozen_order": ["b", "a", "c"], "next": null, "run_ended": false} | {"active": [], "active_order": [], "frozen": ["a", "b", "c"], "frozen_order": ["b", "a", "c"], "next": null, "run_ended": true} | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗