FA-41313 / Heap invariants / Member archive
Skew heap heavy-edge threshold includes the current root and is strict · case 03
The bounded skew heavy certificate certificate reports an incorrect heavy.
Case contract
A skew-heap amortized certificate supplies nodes [id,left_size,right_size] with nonnegative subtree sizes. A right edge is heavy when right_size exceeds half the complete subtree size (1+left+right). Report heavy ids, light right ids, complete sizes, heavy potential, right-path charged light visits, and potential change between before and after certificates. Path ids refer to before nodes; this is a stipulated accounting 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 3 | {"heavy": ["a", "b"], "light_right": ["a"], "light_visits": 1, "potential": 1, "potential_delta": -1, "subtree_sizes": [2, 3]} | {"heavy": ["b"], "light_right": ["a"], "light_visits": 1, "potential": 1, "potential_delta": -1, "subtree_sizes": [2, 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 ↗