FAILURE MAP
← Case archive

FA-15319 / Numerics / Member archive

Involution permutations: complete assignment terminal · case 04

The exact involution permutations result violates the stated contract at complete assignment terminal.

Member previewVariant 4 · 3 implementations · 6 checks per implementation

Case contract

Input 0<=n<=7; return lexicographically sorted permutations p of 0..n-1 satisfying p[p[i]]=i.

Why this case matters

Exact discrete arithmetic with observable algorithmic state; no floating point approximation is used.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
explicit oracle 0[[0, 1, 2, -1], [0, 1, 3, 2], [0, 2, 1, -1], [0, 3, -1, 1], [1, 0, 2, -1], [1, 0, 3, 2], [2, 1, 0, -1], [2, 3, 0, 1], [3, 1, -1, 0], [3, 2, 1, 0]][[0, 1, 2, 3], [0, 1, 3, 2], [0, 2, 1, 3], [0, 3, 2, 1], [1, 0, 2, 3], [1, 0, 3, 2], [2, 1, 0, 3], [2, 3, 0, 1], [3, 1, 2, 0], [3, 2, 1, 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 ↗