FAILURE MAP
← Case archive

FA-41324 / Heap invariants / Member archive

Skew heap subtree weight includes the node and both disjoint child subtrees · case 04

The bounded skew heavy certificate certificate reports an incorrect subtree sizes.

Member previewVariant 4 · 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 2{"heavy": [], "light_right": [], "light_visits": 1, "potential": 0, "potential_delta": 0, "subtree_sizes": [0]}{"heavy": [], "light_right": [], "light_visits": 1, "potential": 0, "potential_delta": 0, "subtree_sizes": [1]}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 ↗