FA-40613 / Heap invariants / Member archive
Heap build dependencies connect internal repairs using zero-based parent arithmetic · case 03
The bounded bottomup schedule certificate reports an incorrect dependencies.
Case contract
For building a complete zero-based binary heap of n nodes, report descending internal-node repair schedule, leaf indices, level spans as inclusive [start,end], right-child-less internal node, parent dependency edges [child,parent], and number of internal nodes. This describes the build work graph, not sorted output.
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 3 | {"dependencies": [[1, 0]], "internal_count": 1, "leaves": [1], "levels": [[0, 0], [1, 1]], "schedule": [0], "unpaired_parent": 0} | {"dependencies": [], "internal_count": 1, "leaves": [1], "levels": [[0, 0], [1, 1]], "schedule": [0], "unpaired_parent": 0} | 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 ↗