FAILURE MAP
← Case archive

FA-40284 / Heap invariants / Member archive

Indexed self-swap emits no spurious relocation notification · case 04

The bounded indexed swap certificate reports an incorrect changed handles.

Member previewVariant 4 · 3 implementations · 7 checks per implementation

Case contract

An indexed heap swap receives unique entry ids in slots, an exact inverse position map, and two in-range positions i,j. Swap the records, update both inverse-map locations, keep cardinality and membership, and report the two moved identities. Self-swap is allowed.

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{"bijective": true, "changed_handles": ["a", "a"], "first_moved": ["a", 0], "positions": {"a": 0}, "second_moved": ["a", 0], "slots": ["a"]}{"bijective": true, "changed_handles": [], "first_moved": ["a", 0], "positions": {"a": 0}, "second_moved": ["a", 0], "slots": ["a"]}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 ↗