FA-15256 / Numerics / Open access
Restricted growth strings: prefix extension position · case 01
The exact restricted growth strings result violates the stated contract at prefix extension position.
ROOT CAUSE
The prefix extension position step uses [v]+prefix instead of prefix+[v].
VERIFIED REPAIR
Use prefix+[v] at the prefix extension position step.
Unsuccessful approach: The partial repair prefix+[m] still violates the prefix extension position invariant.
Case contract
Input length n (1..6), maximum blocks B>=1; return lexicographic restricted-growth strings a0=0, a_i<=1+max(prefix), using exactly B blocks.
Why this case matters
Exact discrete arithmetic with observable algorithmic state; no floating point approximation is used.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
import itertools
from fractions import Fraction
N = 1
observations = []
def solve(x):
n,B=x;out=[]
def visit(prefix,m):
if len(prefix)==n:
if m+1==B:out.append(prefix)
return
for v in range(m+2):
if v>=B:continue
visit([v]+prefix,max(m,v))
visit([0],0)
return out
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[([2, 2], [[0, 1]]), ([1, 1], [[0]]), ([6, 7], []), ([1, 2], []), ([2, 1], [[0, 0]]), ([2, 3], []), ([3, 1], [[0, 0, 0]]), ([3, 2], [[0, 0, 1], [0, 1, 0], [0, 1, 1]])], [([3, 2], [[0, 0, 1], [0, 1, 0], [0, 1, 1]]), ([4, 2], [[0, 0, 0, 1], [0, 0, 1, 0], [0, 0, 1, 1], [0, 1, 0, 0], [0, 1, 0, 1], [0, 1, 1, 0], [0, 1, 1, 1]]), ([1, 1], [[0]]), ([6, 7], []), ([5, 4], [[0, 0, 1, 2, 3], [0, 1, 0, 2, 3], [0, 1, 1, 2, 3], [0, 1, 2, 0, 3], [0, 1, 2, 1, 3], [0, 1, 2, 2, 3], [0, 1, 2, 3, 0], [0, 1, 2, 3, 1], [0, 1, 2, 3, 2], [0, 1, 2, 3, 3]]), ([5, 5], [[0, 1, 2, 3, 4]]), ([5, 6], []), ([6, 1], [[0, 0, 0, 0, 0, 0]])], [([3, 3], [[0, 1, 2]]), ([5, 2], [[0, 0, 0, 0, 1], [0, 0, 0, 1, 0], [0, 0, 0, 1, 1], [0, 0, 1, 0, 0], [0, 0, 1, 0, 1], [0, 0, 1, 1, 0], [0, 0, 1, 1, 1], [0, 1, 0, 0, 0], [0, 1, 0, 0, 1], [0, 1, 0, 1, 0], [0, 1, 0, 1, 1], [0, 1, 1, 0, 0], [0, 1, 1, 0, 1], [0, 1, 1, 1, 0], [0, 1, 1, 1, 1]]), ([1, 1], [[0]]), ([6, 7], []), ([3, 4], []), ([4, 1], [[0, 0, 0, 0]]), ([4, 2], [[0, 0, 0, 1], [0, 0, 1, 0], [0, 0, 1, 1], [0, 1, 0, 0], [0, 1, 0, 1], [0, 1, 1, 0], [0, 1, 1, 1]]), ([4, 3], [[0, 0, 1, 2], [0, 1, 0, 2], [0, 1, 1, 2], [0, 1, 2, 0], [0, 1, 2, 1], [0, 1, 2, 2]])], [([4, 2], [[0, 0, 0, 1], [0, 0, 1, 0], [0, 0, 1, 1], [0, 1, 0, 0], [0, 1, 0, 1], [0, 1, 1, 0], [0, 1, 1, 1]]), ([5, 5], [[0, 1, 2, 3, 4]]), ([1, 1], [[0]]), ([6, 7], []), ([6, 5], [[0, 0, 1, 2, 3, 4], [0, 1, 0, 2, 3, 4], [0, 1, 1, 2, 3, 4], [0, 1, 2, 0, 3, 4], [0, 1, 2, 1, 3, 4], [0, 1, 2, 2, 3, 4], [0, 1, 2, 3, 0, 4], [0, 1, 2, 3, 1, 4], [0, 1, 2, 3, 2, 4], [0, 1, 2, 3, 3, 4], [0, 1, 2, 3, 4, 0], [0, 1, 2, 3, 4, 1], [0, 1, 2, 3, 4, 2], [0, 1, 2, 3, 4, 3], [0, 1, 2, 3, 4, 4]]), ([6, 6], [[0, 1, 2, 3, 4, 5]]), ([1, 2], []), ([2, 1], [[0, 0]])], [([4, 3], [[0, 0, 1, 2], [0, 1, 0, 2], [0, 1, 1, 2], [0, 1, 2, 0], [0, 1, 2, 1], [0, 1, 2, 2]]), ([6, 4], [[0, 0, 0, 1, 2, 3], [0, 0, 1, 0, 2, 3], [0, 0, 1, 1, 2, 3], [0, 0, 1, 2, 0, 3], [0, 0, 1, 2, 1, 3], [0, 0, 1, 2, 2, 3], [0, 0, 1, 2, 3, 0], [0, 0, 1, 2, 3, 1], [0, 0, 1, 2, 3, 2], [0, 0, 1, 2, 3, 3], [0, 1, 0, 0, 2, 3], [0, 1, 0, 1, 2, 3], [0, 1, 0, 2, 0, 3], [0, 1, 0, 2, 1, 3], [0, 1, 0, 2, 2, 3], [0, 1, 0, 2, 3, 0], [0, 1, 0, 2, 3, 1], [0, 1, 0, 2, 3, 2], [0, 1, 0, 2, 3, 3], [0, 1, 1, 0, 2, 3], [0, 1, 1, 1, 2, 3], [0, 1, 1, 2, 0, 3], [0, 1, 1, 2, 1, 3], [0, 1, 1, 2, 2, 3], [0, 1, 1, 2, 3, 0], [0, 1, 1, 2, 3, 1], [0, 1, 1, 2, 3, 2], [0, 1, 1, 2, 3, 3], [0, 1, 2, 0, 0, 3], [0, 1, 2, 0, 1, 3], [0, 1, 2, 0, 2, 3], [0, 1, 2, 0, 3, 0], [0, 1, 2, 0, 3, 1], [0, 1, 2, 0, 3, 2], [0, 1, 2, 0, 3, 3], [0, 1, 2, 1, 0, 3], [0, 1, 2, 1, 1, 3], [0, 1, 2, 1, 2, 3], [0, 1, 2, 1, 3, 0], [0, 1, 2, 1, 3, 1], [0, 1, 2, 1, 3, 2], [0, 1, 2, 1, 3, 3], [0, 1, 2, 2, 0, 3], [0, 1, 2, 2, 1, 3], [0, 1, 2, 2, 2, 3], [0, 1, 2, 2, 3, 0], [0, 1, 2, 2, 3, 1], [0, 1, 2, 2, 3, 2], [0, 1, 2, 2, 3, 3], [0, 1, 2, 3, 0, 0], [0, 1, 2, 3, 0, 1], [0, 1, 2, 3, 0, 2], [0, 1, 2, 3, 0, 3], [0, 1, 2, 3, 1, 0], [0, 1, 2, 3, 1, 1], [0, 1, 2, 3, 1, 2], [0, 1, 2, 3, 1, 3], [0, 1, 2, 3, 2, 0], [0, 1, 2, 3, 2, 1], [0, 1, 2, 3, 2, 2], [0, 1, 2, 3, 2, 3], [0, 1, 2, 3, 3, 0], [0, 1, 2, 3, 3, 1], [0, 1, 2, 3, 3, 2], [0, 1, 2, 3, 3, 3]]), ([1, 1], [[0]]), ([6, 7], []), ([5, 1], [[0, 0, 0, 0, 0]]), ([5, 2], [[0, 0, 0, 0, 1], [0, 0, 0, 1, 0], [0, 0, 0, 1, 1], [0, 0, 1, 0, 0], [0, 0, 1, 0, 1], [0, 0, 1, 1, 0], [0, 0, 1, 1, 1], [0, 1, 0, 0, 0], [0, 1, 0, 0, 1], [0, 1, 0, 1, 0], [0, 1, 0, 1, 1], [0, 1, 1, 0, 0], [0, 1, 1, 0, 1], [0, 1, 1, 1, 0], [0, 1, 1, 1, 1]]), ([5, 3], [[0, 0, 0, 1, 2], [0, 0, 1, 0, 2], [0, 0, 1, 1, 2], [0, 0, 1, 2, 0], [0, 0, 1, 2, 1], [0, 0, 1, 2, 2], [0, 1, 0, 0, 2], [0, 1, 0, 1, 2], [0, 1, 0, 2, 0], [0, 1, 0, 2, 1], [0, 1, 0, 2, 2], [0, 1, 1, 0, 2], [0, 1, 1, 1, 2], [0, 1, 1, 2, 0], [0, 1, 1, 2, 1], [0, 1, 1, 2, 2], [0, 1, 2, 0, 0], [0, 1, 2, 0, 1], [0, 1, 2, 0, 2], [0, 1, 2, 1, 0], [0, 1, 2, 1, 1], [0, 1, 2, 1, 2], [0, 1, 2, 2, 0], [0, 1, 2, 2, 1], [0, 1, 2, 2, 2]]), ([5, 4], [[0, 0, 1, 2, 3], [0, 1, 0, 2, 3], [0, 1, 1, 2, 3], [0, 1, 2, 0, 3], [0, 1, 2, 1, 3], [0, 1, 2, 2, 3], [0, 1, 2, 3, 0], [0, 1, 2, 3, 1], [0, 1, 2, 3, 2], [0, 1, 2, 3, 3]])]]
for i, (args, expected) in enumerate(fixtures[N-1]):
check("explicit oracle %d" % i, solve(args), expected)
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 |
|---|---|---|---|
| explicit oracle 0 | [[1, 0]] | [[0, 1]] | Failed |
| explicit oracle 1 | [[0]] | [[0]] | Passed |
| explicit oracle 2 | [] | [] | Passed |
| explicit oracle 3 | [] | [] | Passed |
| explicit oracle 4 | [[0, 0]] | [[0, 0]] | Passed |
| explicit oracle 5 | [] | [] | Passed |
| explicit oracle 6 | [[0, 0, 0]] | [[0, 0, 0]] | Passed |
| explicit oracle 7 | [[1, 0, 0], [0, 1, 0], [1, 1, 0]] | [[0, 0, 1], [0, 1, 0], [0, 1, 1]] | Failed |
SHA-256 / 75c22baa8c420ba664dcf686d60cf81ff834d85193a4771d91603a0cf251db58
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
import itertools
from fractions import Fraction
N = 1
observations = []
def solve(x):
n,B=x;out=[]
def visit(prefix,m):
if len(prefix)==n:
if m+1==B:out.append(prefix)
return
for v in range(m+2):
if v>=B:continue
visit(prefix+[m],max(m,v))
visit([0],0)
return out
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[([2, 2], [[0, 1]]), ([1, 1], [[0]]), ([6, 7], []), ([1, 2], []), ([2, 1], [[0, 0]]), ([2, 3], []), ([3, 1], [[0, 0, 0]]), ([3, 2], [[0, 0, 1], [0, 1, 0], [0, 1, 1]])], [([3, 2], [[0, 0, 1], [0, 1, 0], [0, 1, 1]]), ([4, 2], [[0, 0, 0, 1], [0, 0, 1, 0], [0, 0, 1, 1], [0, 1, 0, 0], [0, 1, 0, 1], [0, 1, 1, 0], [0, 1, 1, 1]]), ([1, 1], [[0]]), ([6, 7], []), ([5, 4], [[0, 0, 1, 2, 3], [0, 1, 0, 2, 3], [0, 1, 1, 2, 3], [0, 1, 2, 0, 3], [0, 1, 2, 1, 3], [0, 1, 2, 2, 3], [0, 1, 2, 3, 0], [0, 1, 2, 3, 1], [0, 1, 2, 3, 2], [0, 1, 2, 3, 3]]), ([5, 5], [[0, 1, 2, 3, 4]]), ([5, 6], []), ([6, 1], [[0, 0, 0, 0, 0, 0]])], [([3, 3], [[0, 1, 2]]), ([5, 2], [[0, 0, 0, 0, 1], [0, 0, 0, 1, 0], [0, 0, 0, 1, 1], [0, 0, 1, 0, 0], [0, 0, 1, 0, 1], [0, 0, 1, 1, 0], [0, 0, 1, 1, 1], [0, 1, 0, 0, 0], [0, 1, 0, 0, 1], [0, 1, 0, 1, 0], [0, 1, 0, 1, 1], [0, 1, 1, 0, 0], [0, 1, 1, 0, 1], [0, 1, 1, 1, 0], [0, 1, 1, 1, 1]]), ([1, 1], [[0]]), ([6, 7], []), ([3, 4], []), ([4, 1], [[0, 0, 0, 0]]), ([4, 2], [[0, 0, 0, 1], [0, 0, 1, 0], [0, 0, 1, 1], [0, 1, 0, 0], [0, 1, 0, 1], [0, 1, 1, 0], [0, 1, 1, 1]]), ([4, 3], [[0, 0, 1, 2], [0, 1, 0, 2], [0, 1, 1, 2], [0, 1, 2, 0], [0, 1, 2, 1], [0, 1, 2, 2]])], [([4, 2], [[0, 0, 0, 1], [0, 0, 1, 0], [0, 0, 1, 1], [0, 1, 0, 0], [0, 1, 0, 1], [0, 1, 1, 0], [0, 1, 1, 1]]), ([5, 5], [[0, 1, 2, 3, 4]]), ([1, 1], [[0]]), ([6, 7], []), ([6, 5], [[0, 0, 1, 2, 3, 4], [0, 1, 0, 2, 3, 4], [0, 1, 1, 2, 3, 4], [0, 1, 2, 0, 3, 4], [0, 1, 2, 1, 3, 4], [0, 1, 2, 2, 3, 4], [0, 1, 2, 3, 0, 4], [0, 1, 2, 3, 1, 4], [0, 1, 2, 3, 2, 4], [0, 1, 2, 3, 3, 4], [0, 1, 2, 3, 4, 0], [0, 1, 2, 3, 4, 1], [0, 1, 2, 3, 4, 2], [0, 1, 2, 3, 4, 3], [0, 1, 2, 3, 4, 4]]), ([6, 6], [[0, 1, 2, 3, 4, 5]]), ([1, 2], []), ([2, 1], [[0, 0]])], [([4, 3], [[0, 0, 1, 2], [0, 1, 0, 2], [0, 1, 1, 2], [0, 1, 2, 0], [0, 1, 2, 1], [0, 1, 2, 2]]), ([6, 4], [[0, 0, 0, 1, 2, 3], [0, 0, 1, 0, 2, 3], [0, 0, 1, 1, 2, 3], [0, 0, 1, 2, 0, 3], [0, 0, 1, 2, 1, 3], [0, 0, 1, 2, 2, 3], [0, 0, 1, 2, 3, 0], [0, 0, 1, 2, 3, 1], [0, 0, 1, 2, 3, 2], [0, 0, 1, 2, 3, 3], [0, 1, 0, 0, 2, 3], [0, 1, 0, 1, 2, 3], [0, 1, 0, 2, 0, 3], [0, 1, 0, 2, 1, 3], [0, 1, 0, 2, 2, 3], [0, 1, 0, 2, 3, 0], [0, 1, 0, 2, 3, 1], [0, 1, 0, 2, 3, 2], [0, 1, 0, 2, 3, 3], [0, 1, 1, 0, 2, 3], [0, 1, 1, 1, 2, 3], [0, 1, 1, 2, 0, 3], [0, 1, 1, 2, 1, 3], [0, 1, 1, 2, 2, 3], [0, 1, 1, 2, 3, 0], [0, 1, 1, 2, 3, 1], [0, 1, 1, 2, 3, 2], [0, 1, 1, 2, 3, 3], [0, 1, 2, 0, 0, 3], [0, 1, 2, 0, 1, 3], [0, 1, 2, 0, 2, 3], [0, 1, 2, 0, 3, 0], [0, 1, 2, 0, 3, 1], [0, 1, 2, 0, 3, 2], [0, 1, 2, 0, 3, 3], [0, 1, 2, 1, 0, 3], [0, 1, 2, 1, 1, 3], [0, 1, 2, 1, 2, 3], [0, 1, 2, 1, 3, 0], [0, 1, 2, 1, 3, 1], [0, 1, 2, 1, 3, 2], [0, 1, 2, 1, 3, 3], [0, 1, 2, 2, 0, 3], [0, 1, 2, 2, 1, 3], [0, 1, 2, 2, 2, 3], [0, 1, 2, 2, 3, 0], [0, 1, 2, 2, 3, 1], [0, 1, 2, 2, 3, 2], [0, 1, 2, 2, 3, 3], [0, 1, 2, 3, 0, 0], [0, 1, 2, 3, 0, 1], [0, 1, 2, 3, 0, 2], [0, 1, 2, 3, 0, 3], [0, 1, 2, 3, 1, 0], [0, 1, 2, 3, 1, 1], [0, 1, 2, 3, 1, 2], [0, 1, 2, 3, 1, 3], [0, 1, 2, 3, 2, 0], [0, 1, 2, 3, 2, 1], [0, 1, 2, 3, 2, 2], [0, 1, 2, 3, 2, 3], [0, 1, 2, 3, 3, 0], [0, 1, 2, 3, 3, 1], [0, 1, 2, 3, 3, 2], [0, 1, 2, 3, 3, 3]]), ([1, 1], [[0]]), ([6, 7], []), ([5, 1], [[0, 0, 0, 0, 0]]), ([5, 2], [[0, 0, 0, 0, 1], [0, 0, 0, 1, 0], [0, 0, 0, 1, 1], [0, 0, 1, 0, 0], [0, 0, 1, 0, 1], [0, 0, 1, 1, 0], [0, 0, 1, 1, 1], [0, 1, 0, 0, 0], [0, 1, 0, 0, 1], [0, 1, 0, 1, 0], [0, 1, 0, 1, 1], [0, 1, 1, 0, 0], [0, 1, 1, 0, 1], [0, 1, 1, 1, 0], [0, 1, 1, 1, 1]]), ([5, 3], [[0, 0, 0, 1, 2], [0, 0, 1, 0, 2], [0, 0, 1, 1, 2], [0, 0, 1, 2, 0], [0, 0, 1, 2, 1], [0, 0, 1, 2, 2], [0, 1, 0, 0, 2], [0, 1, 0, 1, 2], [0, 1, 0, 2, 0], [0, 1, 0, 2, 1], [0, 1, 0, 2, 2], [0, 1, 1, 0, 2], [0, 1, 1, 1, 2], [0, 1, 1, 2, 0], [0, 1, 1, 2, 1], [0, 1, 1, 2, 2], [0, 1, 2, 0, 0], [0, 1, 2, 0, 1], [0, 1, 2, 0, 2], [0, 1, 2, 1, 0], [0, 1, 2, 1, 1], [0, 1, 2, 1, 2], [0, 1, 2, 2, 0], [0, 1, 2, 2, 1], [0, 1, 2, 2, 2]]), ([5, 4], [[0, 0, 1, 2, 3], [0, 1, 0, 2, 3], [0, 1, 1, 2, 3], [0, 1, 2, 0, 3], [0, 1, 2, 1, 3], [0, 1, 2, 2, 3], [0, 1, 2, 3, 0], [0, 1, 2, 3, 1], [0, 1, 2, 3, 2], [0, 1, 2, 3, 3]])]]
for i, (args, expected) in enumerate(fixtures[N-1]):
check("explicit oracle %d" % i, solve(args), expected)
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 |
|---|---|---|---|
| explicit oracle 0 | [[0, 0]] | [[0, 1]] | Failed |
| explicit oracle 1 | [[0]] | [[0]] | Passed |
| explicit oracle 2 | [] | [] | Passed |
| explicit oracle 3 | [] | [] | Passed |
| explicit oracle 4 | [[0, 0]] | [[0, 0]] | Passed |
| explicit oracle 5 | [] | [] | Passed |
| explicit oracle 6 | [[0, 0, 0]] | [[0, 0, 0]] | Passed |
| explicit oracle 7 | [[0, 0, 0], [0, 0, 1], [0, 0, 1]] | [[0, 0, 1], [0, 1, 0], [0, 1, 1]] | Failed |
SHA-256 / 0540b6be5895c5ada89bf30b81593981d867e27f668f4313cc324fd2a1a22451
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
import math
import itertools
from fractions import Fraction
N = 1
observations = []
def solve(x):
n,B=x;out=[]
def visit(prefix,m):
if len(prefix)==n:
if m+1==B:out.append(prefix)
return
for v in range(m+2):
if v>=B:continue
visit(prefix+[v],max(m,v))
visit([0],0)
return out
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[([2, 2], [[0, 1]]), ([1, 1], [[0]]), ([6, 7], []), ([1, 2], []), ([2, 1], [[0, 0]]), ([2, 3], []), ([3, 1], [[0, 0, 0]]), ([3, 2], [[0, 0, 1], [0, 1, 0], [0, 1, 1]])], [([3, 2], [[0, 0, 1], [0, 1, 0], [0, 1, 1]]), ([4, 2], [[0, 0, 0, 1], [0, 0, 1, 0], [0, 0, 1, 1], [0, 1, 0, 0], [0, 1, 0, 1], [0, 1, 1, 0], [0, 1, 1, 1]]), ([1, 1], [[0]]), ([6, 7], []), ([5, 4], [[0, 0, 1, 2, 3], [0, 1, 0, 2, 3], [0, 1, 1, 2, 3], [0, 1, 2, 0, 3], [0, 1, 2, 1, 3], [0, 1, 2, 2, 3], [0, 1, 2, 3, 0], [0, 1, 2, 3, 1], [0, 1, 2, 3, 2], [0, 1, 2, 3, 3]]), ([5, 5], [[0, 1, 2, 3, 4]]), ([5, 6], []), ([6, 1], [[0, 0, 0, 0, 0, 0]])], [([3, 3], [[0, 1, 2]]), ([5, 2], [[0, 0, 0, 0, 1], [0, 0, 0, 1, 0], [0, 0, 0, 1, 1], [0, 0, 1, 0, 0], [0, 0, 1, 0, 1], [0, 0, 1, 1, 0], [0, 0, 1, 1, 1], [0, 1, 0, 0, 0], [0, 1, 0, 0, 1], [0, 1, 0, 1, 0], [0, 1, 0, 1, 1], [0, 1, 1, 0, 0], [0, 1, 1, 0, 1], [0, 1, 1, 1, 0], [0, 1, 1, 1, 1]]), ([1, 1], [[0]]), ([6, 7], []), ([3, 4], []), ([4, 1], [[0, 0, 0, 0]]), ([4, 2], [[0, 0, 0, 1], [0, 0, 1, 0], [0, 0, 1, 1], [0, 1, 0, 0], [0, 1, 0, 1], [0, 1, 1, 0], [0, 1, 1, 1]]), ([4, 3], [[0, 0, 1, 2], [0, 1, 0, 2], [0, 1, 1, 2], [0, 1, 2, 0], [0, 1, 2, 1], [0, 1, 2, 2]])], [([4, 2], [[0, 0, 0, 1], [0, 0, 1, 0], [0, 0, 1, 1], [0, 1, 0, 0], [0, 1, 0, 1], [0, 1, 1, 0], [0, 1, 1, 1]]), ([5, 5], [[0, 1, 2, 3, 4]]), ([1, 1], [[0]]), ([6, 7], []), ([6, 5], [[0, 0, 1, 2, 3, 4], [0, 1, 0, 2, 3, 4], [0, 1, 1, 2, 3, 4], [0, 1, 2, 0, 3, 4], [0, 1, 2, 1, 3, 4], [0, 1, 2, 2, 3, 4], [0, 1, 2, 3, 0, 4], [0, 1, 2, 3, 1, 4], [0, 1, 2, 3, 2, 4], [0, 1, 2, 3, 3, 4], [0, 1, 2, 3, 4, 0], [0, 1, 2, 3, 4, 1], [0, 1, 2, 3, 4, 2], [0, 1, 2, 3, 4, 3], [0, 1, 2, 3, 4, 4]]), ([6, 6], [[0, 1, 2, 3, 4, 5]]), ([1, 2], []), ([2, 1], [[0, 0]])], [([4, 3], [[0, 0, 1, 2], [0, 1, 0, 2], [0, 1, 1, 2], [0, 1, 2, 0], [0, 1, 2, 1], [0, 1, 2, 2]]), ([6, 4], [[0, 0, 0, 1, 2, 3], [0, 0, 1, 0, 2, 3], [0, 0, 1, 1, 2, 3], [0, 0, 1, 2, 0, 3], [0, 0, 1, 2, 1, 3], [0, 0, 1, 2, 2, 3], [0, 0, 1, 2, 3, 0], [0, 0, 1, 2, 3, 1], [0, 0, 1, 2, 3, 2], [0, 0, 1, 2, 3, 3], [0, 1, 0, 0, 2, 3], [0, 1, 0, 1, 2, 3], [0, 1, 0, 2, 0, 3], [0, 1, 0, 2, 1, 3], [0, 1, 0, 2, 2, 3], [0, 1, 0, 2, 3, 0], [0, 1, 0, 2, 3, 1], [0, 1, 0, 2, 3, 2], [0, 1, 0, 2, 3, 3], [0, 1, 1, 0, 2, 3], [0, 1, 1, 1, 2, 3], [0, 1, 1, 2, 0, 3], [0, 1, 1, 2, 1, 3], [0, 1, 1, 2, 2, 3], [0, 1, 1, 2, 3, 0], [0, 1, 1, 2, 3, 1], [0, 1, 1, 2, 3, 2], [0, 1, 1, 2, 3, 3], [0, 1, 2, 0, 0, 3], [0, 1, 2, 0, 1, 3], [0, 1, 2, 0, 2, 3], [0, 1, 2, 0, 3, 0], [0, 1, 2, 0, 3, 1], [0, 1, 2, 0, 3, 2], [0, 1, 2, 0, 3, 3], [0, 1, 2, 1, 0, 3], [0, 1, 2, 1, 1, 3], [0, 1, 2, 1, 2, 3], [0, 1, 2, 1, 3, 0], [0, 1, 2, 1, 3, 1], [0, 1, 2, 1, 3, 2], [0, 1, 2, 1, 3, 3], [0, 1, 2, 2, 0, 3], [0, 1, 2, 2, 1, 3], [0, 1, 2, 2, 2, 3], [0, 1, 2, 2, 3, 0], [0, 1, 2, 2, 3, 1], [0, 1, 2, 2, 3, 2], [0, 1, 2, 2, 3, 3], [0, 1, 2, 3, 0, 0], [0, 1, 2, 3, 0, 1], [0, 1, 2, 3, 0, 2], [0, 1, 2, 3, 0, 3], [0, 1, 2, 3, 1, 0], [0, 1, 2, 3, 1, 1], [0, 1, 2, 3, 1, 2], [0, 1, 2, 3, 1, 3], [0, 1, 2, 3, 2, 0], [0, 1, 2, 3, 2, 1], [0, 1, 2, 3, 2, 2], [0, 1, 2, 3, 2, 3], [0, 1, 2, 3, 3, 0], [0, 1, 2, 3, 3, 1], [0, 1, 2, 3, 3, 2], [0, 1, 2, 3, 3, 3]]), ([1, 1], [[0]]), ([6, 7], []), ([5, 1], [[0, 0, 0, 0, 0]]), ([5, 2], [[0, 0, 0, 0, 1], [0, 0, 0, 1, 0], [0, 0, 0, 1, 1], [0, 0, 1, 0, 0], [0, 0, 1, 0, 1], [0, 0, 1, 1, 0], [0, 0, 1, 1, 1], [0, 1, 0, 0, 0], [0, 1, 0, 0, 1], [0, 1, 0, 1, 0], [0, 1, 0, 1, 1], [0, 1, 1, 0, 0], [0, 1, 1, 0, 1], [0, 1, 1, 1, 0], [0, 1, 1, 1, 1]]), ([5, 3], [[0, 0, 0, 1, 2], [0, 0, 1, 0, 2], [0, 0, 1, 1, 2], [0, 0, 1, 2, 0], [0, 0, 1, 2, 1], [0, 0, 1, 2, 2], [0, 1, 0, 0, 2], [0, 1, 0, 1, 2], [0, 1, 0, 2, 0], [0, 1, 0, 2, 1], [0, 1, 0, 2, 2], [0, 1, 1, 0, 2], [0, 1, 1, 1, 2], [0, 1, 1, 2, 0], [0, 1, 1, 2, 1], [0, 1, 1, 2, 2], [0, 1, 2, 0, 0], [0, 1, 2, 0, 1], [0, 1, 2, 0, 2], [0, 1, 2, 1, 0], [0, 1, 2, 1, 1], [0, 1, 2, 1, 2], [0, 1, 2, 2, 0], [0, 1, 2, 2, 1], [0, 1, 2, 2, 2]]), ([5, 4], [[0, 0, 1, 2, 3], [0, 1, 0, 2, 3], [0, 1, 1, 2, 3], [0, 1, 2, 0, 3], [0, 1, 2, 1, 3], [0, 1, 2, 2, 3], [0, 1, 2, 3, 0], [0, 1, 2, 3, 1], [0, 1, 2, 3, 2], [0, 1, 2, 3, 3]])]]
for i, (args, expected) in enumerate(fixtures[N-1]):
check("explicit oracle %d" % i, solve(args), expected)
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 |
|---|---|---|---|
| explicit oracle 0 | [[0, 1]] | [[0, 1]] | Passed |
| explicit oracle 1 | [[0]] | [[0]] | Passed |
| explicit oracle 2 | [] | [] | Passed |
| explicit oracle 3 | [] | [] | Passed |
| explicit oracle 4 | [[0, 0]] | [[0, 0]] | Passed |
| explicit oracle 5 | [] | [] | Passed |
| explicit oracle 6 | [[0, 0, 0]] | [[0, 0, 0]] | Passed |
| explicit oracle 7 | [[0, 0, 1], [0, 1, 0], [0, 1, 1]] | [[0, 0, 1], [0, 1, 0], [0, 1, 1]] | Passed |
SHA-256 / c32b49bdb7410f1ecfe3046d8d90af7a4c1deaefbb9d71d5e1d83de4dcc3af8a
Verification & scope
A deterministic bounded teaching model. Inputs are restricted to the explicit contract; this is not a production algebra library. 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:39:24.799751+00:00.
Case digest / 08d072551cd114335edad511a43fb071ffdef3e9319572d33a5204c9316ae982