FAILURE MAP
← Case archive

FA-15334 / Numerics / Member archive

Involution permutations: transposition first image · case 04

The exact involution permutations result violates the stated contract at transposition first image.

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, 0, 2, 2, 4], [0, 0, 2, 3, 2], [0, 0, 2, 3, 3], [0, 0, 2, 3, 4], [0, 1, 0, 1, 4], [0, 1, 0, 3, 1], [0, 1, 0, 3, 3], [0, 1, 0, 3, 4], [0, 1, 1, 0, 4], [0, 1, 1, 3, 0], [0, 1, 1, 3, 3], [0, 1, 1, 3, 4], [0, 1, 2, 0, 1], [0, 1, 2, 0, 2], [0, 1, 2, 0, 4], [0, 1, 2, 1, 0], [0, 1, 2, 1, 2], [0, 1, 2, 1, 4], [0, 1, 2, 2, 0], [0, 1, 2, 2, 1], [0, 1, 2, 2, 4], [0, 1, 2, 3, 0], [0, 1, 2, 3, 1], [0, 1, 2, 3, 2], [0, 1, 2, 3, 3], [0, 1, 2, 3, 4]][[0, 1, 2, 3, 4], [0, 1, 2, 4, 3], [0, 1, 3, 2, 4], [0, 1, 4, 3, 2], [0, 2, 1, 3, 4], [0, 2, 1, 4, 3], [0, 3, 2, 1, 4], [0, 3, 4, 1, 2], [0, 4, 2, 3, 1], [0, 4, 3, 2, 1], [1, 0, 2, 3, 4], [1, 0, 2, 4, 3], [1, 0, 3, 2, 4], [1, 0, 4, 3, 2], [2, 1, 0, 3, 4], [2, 1, 0, 4, 3], [2, 3, 0, 1, 4], [2, 4, 0, 3, 1], [3, 1, 2, 0, 4], [3, 1, 4, 0, 2], [3, 2, 1, 0, 4], [3, 4, 2, 0, 1], [4, 1, 2, 3, 0], [4, 1, 3, 2, 0], [4, 2, 1, 3, 0], [4, 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 ↗