FAILURE MAP
← Case archive

FA-40193 / Heap invariants / Member archive

Leftist unwind preserves equal-rank child orientation · case 03

The bounded leftist meld step certificate reports an incorrect swap.

Member previewVariant 3 · 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 1{"left_id": null, "npl": 0, "parent_assignments": [], "right_id": null, "size": 1, "swap": true}{"left_id": null, "npl": 0, "parent_assignments": [], "right_id": null, "size": 1, "swap": false}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 ↗