FAILURE MAP
← Case archive

FA-40175 / Heap invariants / Member archive

Leftist unwind swaps only when the returned right rank exceeds the left rank · case 05

The bounded leftist meld step certificate reports an incorrect left id.

Member previewVariant 5 · 3 implementations · 7 checks per implementation

Case contract

A leftist meld unwind record gives chosen root id, left subtree [id,npl,size] or None, returned right subtree similarly, and root key. Orient children by npl (null=-1), retain left on equal rank, set npl to right npl+1, and size to one plus both child sizes.

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{"left_id": null, "npl": 0, "parent_assignments": [[2, 9]], "right_id": null, "size": 4, "swap": true}{"left_id": 2, "npl": 0, "parent_assignments": [[2, 9]], "right_id": null, "size": 4, "swap": true}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 ↗