FAILURE MAP
← Case archive

FA-39919 / Heap invariants / Member archive

Leftist leaf accounting includes a unary left branch · case 04

The bounded leftist ranks certificate reports an incorrect leaves.

Member previewVariant 4 · 3 implementations · 7 checks per implementation

Case contract

A leftist-tree certificate has nodes [key,left,right,stored_npl] with missing child=-1 and valid references. Null-path length of null is -1. Report local heap-edge violations, rank recurrence violations, leftist orientation violations, leaves, unary-right nodes, and root-to-right-spine length; spine traversal stops on repeated node.

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 4{"heap_edges": [], "leaves": [0, 1], "orientation": [], "rank_recurrence": [], "right_orphans": [], "spine_length": 1}{"heap_edges": [], "leaves": [1], "orientation": [], "rank_recurrence": [], "right_orphans": [], "spine_length": 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 ↗