FA-40574 / Heap invariants / Member archive
Weak join performs a strict improvement swap without reversing equal keys · case 04
The bounded weak join certificate reports an incorrect swapped.
Case contract
A weak-heap join receives keys, reverse bits, ancestor i and distinct descendant j. When keys[j]<keys[i], swap these keys and flip only reverse[j]; on equality do nothing. Return resulting keys, reversal bits, swapped status, winning key, changed reversal index, and comparison count.
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 | {"bits": [0, 0], "comparisons": 1, "flipped": null, "keys": [3, 3], "swapped": true, "winner_key": 3} | {"bits": [0, 0], "comparisons": 1, "flipped": null, "keys": [3, 3], "swapped": false, "winner_key": 3} | 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 ↗