FAILURE MAP
← Case archive

FA-41338 / Heap invariants / Member archive

Skew heap amortized delta subtracts the prior heavy-edge potential · case 03

The bounded skew heavy certificate certificate reports an incorrect potential delta.

Member previewVariant 3 · 3 implementations · 7 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression certificate 3{"heavy": ["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 ↗