FAILURE MAP
← Case archive

FA-40403 / Heap invariants / Member archive

Min-max heap maximum can be either child of the root · case 03

The bounded minmax levels certificate reports an incorrect maximum.

Member previewVariant 3 · 3 implementations · 7 checks per implementation

Case contract

A min-max heap certificate is a complete zero-based binary array. Even depth is a minimum level, odd depth a maximum level. Report level parities, grandparent indices, minimum-level grandchild violations, maximum-level grandchild violations, maximum endpoint, and immediate-child level alternation pairs. Empty maximum is None.

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{"edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [2, 6]], "grandparents": [null, null, null, 0, 0, 0, 0], "max_violations": [], "maximum": 7, "min_violations": [], "parity": [0, 1, 1, 0, 0, 0, 0]}{"edges": [[0, 1], [0, 2], [1, 3], [1, 4], [2, 5], [2, 6]], "grandparents": [null, null, null, 0, 0, 0, 0], "max_violations": [], "maximum": 9, "min_violations": [], "parity": [0, 1, 1, 0, 0, 0, 0]}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 ↗