FA-5746 / Combinatorics / Open access
Ordered distinct triples · case 01
Repeated members are allowed within a triple.
ROOT CAUSE
Repeated members are allowed within a triple.
THE FAILURE
Repeated members are allowed within a triple.
Unsuccessful approach: Ignoring order collapses six distinct triples into one.
Case contract
Nonnegative integer counts. Permutation and combination counts are zero when a requested selection exceeds the available objects. Shape sizes satisfy the preconditions stated below. Ordered distinct triples. Exact operational definition: n*(n-1)*(n-2)
Why this case matters
Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Combinatorics results depend on the stated convention.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
import calendar
import statistics
import itertools
from fractions import Fraction
from datetime import date, datetime, timedelta, timezone
from decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR
N = 1
observations = []
def solve(n):
return n**3
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (0,)', solve(*(0,)), 0)
check('fixture 2: (2,)', solve(*(2,)), 0)
check('fixture 3: (3,)', solve(*(3,)), 6)
check('fixture 4: (5,)', solve(*(5,)), 60)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1: (0,) | 0 | 0 | Passed |
| fixture 2: (2,) | 8 | 0 | Failed |
| fixture 3: (3,) | 27 | 6 | Failed |
| fixture 4: (5,) | 125 | 60 | Failed |
SHA-256 / 170c439cbd85f4c0a6449f430802a3a006eef28b491ec7d3fc104c21c5d3589a
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
import calendar
import statistics
import itertools
from fractions import Fraction
from datetime import date, datetime, timedelta, timezone
from decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR
N = 1
observations = []
def solve(n):
return math.comb(n,3)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (0,)', solve(*(0,)), 0)
check('fixture 2: (2,)', solve(*(2,)), 0)
check('fixture 3: (3,)', solve(*(3,)), 6)
check('fixture 4: (5,)', solve(*(5,)), 60)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1: (0,) | 0 | 0 | Passed |
| fixture 2: (2,) | 0 | 0 | Passed |
| fixture 3: (3,) | 1 | 6 | Failed |
| fixture 4: (5,) | 10 | 60 | Failed |
SHA-256 / c94602741d6b04c162fb0844a47d1153824f55c28293252c4b16ed5b0fb10f6c
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 4 recorded checks per implementation. The open-access tier publishes the failure and the unsuccessful fix; the repaired source that passes every check, and the observations that prove it, are available to members.
Every case sharing this mechanism uses the same contract and the same repair, so this one record is held back for all of them.
Member access is invitation-based. Sign in with your invited account to inspect the repair.
Sign in to the archive ↗Verification & scope
This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.
Observations recorded using Python 3.12.14 at 2026-09-29T14:37:53.182099+00:00.
Case digest / 7e8205f446850775e27e802e7397f2f402eaaa816ebe25cc11906355e47b2cc2