FA-40219 / Heap invariants / Member archive
Skew meld updates parent links after the unconditional child swap · case 04
The bounded skew meld step certificate reports an incorrect rewrites.
Case contract
A skew meld unwind chooses the smaller root, recursively melds its old right subtree with the other heap, and unconditionally swaps children. Record supplies winner, old_left, recursive_result and sizes. Missing subtrees are None. No rank-based swap condition is part of this model.
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 2 | {"leaf": false, "new_left": null, "new_right": 1, "preorder_children": [1], "rewrites": [], "size": 3} | {"leaf": false, "new_left": null, "new_right": 1, "preorder_children": [1], "rewrites": [[1, 9]], "size": 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 ↗