FAILURE MAP
← Case archive

FA-40484 / Heap invariants / Member archive

Winner tournament uses its internal root rather than a leaf or zero sentinel · case 04

The bounded tournament path certificate reports an incorrect root.

Member previewVariant 4 · 3 implementations · 7 checks per implementation

Case contract

A complete winner tournament has power-of-two leaf capacity c and updated leaf slot s. Tree leaves occupy c+s. Report ancestors in bottom-up replay order, sibling indices along that path, root index, comparison count, leaf index, and unaffected leaf slots. Capacity at least one; slot is in range.

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{"comparisons": 0, "leaf": 1, "replay": [], "root": 0, "siblings": [], "untouched": []}{"comparisons": 0, "leaf": 1, "replay": [], "root": 1, "siblings": [], "untouched": []}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 ↗