FA-40443 / Heap invariants / Member archive
Interval insertion sorts the completed pair while retaining both values · case 03
The bounded interval insert certificate reports an incorrect completed.
Case contract
Insert key x into an interval-heap last-node decision. For a singleton last interval s, complete it as sorted(s,x). For a new singleton with parent [lo,hi], x below lo routes to the lower heap, above hi to the upper heap, otherwise stays. Return pair completion, lower route, upper route, contained route, parent endpoint displaced on crossing, and logical-size increment.
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 1 | {"completed": [6, 1], "contained": false, "displaced": 2, "lower": true, "new_size": 4, "upper": false} | {"completed": [1, 6], "contained": false, "displaced": 2, "lower": true, "new_size": 4, "upper": false} | 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 ↗