FAILURE MAP
← Case archive

FA-15246 / Numerics / Open access

Restricted growth strings: new block choice inclusion · case 01

The exact restricted growth strings result violates the stated contract at new block choice inclusion.

Verified by executionVariant 1 · 8 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

The new block choice inclusion step uses range(m+1) instead of range(m+2).

VERIFIED REPAIR

Use range(m+2) at the new block choice inclusion step.

Unsuccessful approach: The partial repair range(1,m+2) still violates the new block choice inclusion 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+1):
      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]]), ([2, 1], [[0, 0]]), ([1, 1], [[0]]), ([6, 7], []), ([1, 2], []), ([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, 1], [[0, 0, 0, 0]]), ([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, 1], [[0, 0, 0, 0, 0]]), ([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, 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]]), ([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, 3], [[0, 0, 0, 0, 1, 2], [0, 0, 0, 1, 0, 2], [0, 0, 0, 1, 1, 2], [0, 0, 0, 1, 2, 0], [0, 0, 0, 1, 2, 1], [0, 0, 0, 1, 2, 2], [0, 0, 1, 0, 0, 2], [0, 0, 1, 0, 1, 2], [0, 0, 1, 0, 2, 0], [0, 0, 1, 0, 2, 1], [0, 0, 1, 0, 2, 2], [0, 0, 1, 1, 0, 2], [0, 0, 1, 1, 1, 2], [0, 0, 1, 1, 2, 0], [0, 0, 1, 1, 2, 1], [0, 0, 1, 1, 2, 2], [0, 0, 1, 2, 0, 0], [0, 0, 1, 2, 0, 1], [0, 0, 1, 2, 0, 2], [0, 0, 1, 2, 1, 0], [0, 0, 1, 2, 1, 1], [0, 0, 1, 2, 1, 2], [0, 0, 1, 2, 2, 0], [0, 0, 1, 2, 2, 1], [0, 0, 1, 2, 2, 2], [0, 1, 0, 0, 0, 2], [0, 1, 0, 0, 1, 2], [0, 1, 0, 0, 2, 0], [0, 1, 0, 0, 2, 1], [0, 1, 0, 0, 2, 2], [0, 1, 0, 1, 0, 2], [0, 1, 0, 1, 1, 2], [0, 1, 0, 1, 2, 0], [0, 1, 0, 1, 2, 1], [0, 1, 0, 1, 2, 2], [0, 1, 0, 2, 0, 0], [0, 1, 0, 2, 0, 1], [0, 1, 0, 2, 0, 2], [0, 1, 0, 2, 1, 0], [0, 1, 0, 2, 1, 1], [0, 1, 0, 2, 1, 2], [0, 1, 0, 2, 2, 0], [0, 1, 0, 2, 2, 1], [0, 1, 0, 2, 2, 2], [0, 1, 1, 0, 0, 2], [0, 1, 1, 0, 1, 2], [0, 1, 1, 0, 2, 0], [0, 1, 1, 0, 2, 1], [0, 1, 1, 0, 2, 2], [0, 1, 1, 1, 0, 2], [0, 1, 1, 1, 1, 2], [0, 1, 1, 1, 2, 0], [0, 1, 1, 1, 2, 1], [0, 1, 1, 1, 2, 2], [0, 1, 1, 2, 0, 0], [0, 1, 1, 2, 0, 1], [0, 1, 1, 2, 0, 2], [0, 1, 1, 2, 1, 0], [0, 1, 1, 2, 1, 1], [0, 1, 1, 2, 1, 2], [0, 1, 1, 2, 2, 0], [0, 1, 1, 2, 2, 1], [0, 1, 1, 2, 2, 2], [0, 1, 2, 0, 0, 0], [0, 1, 2, 0, 0, 1], [0, 1, 2, 0, 0, 2], [0, 1, 2, 0, 1, 0], [0, 1, 2, 0, 1, 1], [0, 1, 2, 0, 1, 2], [0, 1, 2, 0, 2, 0], [0, 1, 2, 0, 2, 1], [0, 1, 2, 0, 2, 2], [0, 1, 2, 1, 0, 0], [0, 1, 2, 1, 0, 1], [0, 1, 2, 1, 0, 2], [0, 1, 2, 1, 1, 0], [0, 1, 2, 1, 1, 1], [0, 1, 2, 1, 1, 2], [0, 1, 2, 1, 2, 0], [0, 1, 2, 1, 2, 1], [0, 1, 2, 1, 2, 2], [0, 1, 2, 2, 0, 0], [0, 1, 2, 2, 0, 1], [0, 1, 2, 2, 0, 2], [0, 1, 2, 2, 1, 0], [0, 1, 2, 2, 1, 1], [0, 1, 2, 2, 1, 2], [0, 1, 2, 2, 2, 0], [0, 1, 2, 2, 2, 1], [0, 1, 2, 2, 2, 2]]), ([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 fixtureActualExpectedOutcome
explicit oracle 0[][[0, 1]]Failed
explicit oracle 1[[0, 0]][[0, 0]]Passed
explicit oracle 2[[0]][[0]]Passed
explicit oracle 3[][]Passed
explicit oracle 4[][]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]]Failed

SHA-256 / 3cbbb1e888d61b9fe41729657be94894d4b41949d94c21669037b56dc9d7c684

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(1,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]]), ([2, 1], [[0, 0]]), ([1, 1], [[0]]), ([6, 7], []), ([1, 2], []), ([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, 1], [[0, 0, 0, 0]]), ([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, 1], [[0, 0, 0, 0, 0]]), ([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, 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]]), ([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, 3], [[0, 0, 0, 0, 1, 2], [0, 0, 0, 1, 0, 2], [0, 0, 0, 1, 1, 2], [0, 0, 0, 1, 2, 0], [0, 0, 0, 1, 2, 1], [0, 0, 0, 1, 2, 2], [0, 0, 1, 0, 0, 2], [0, 0, 1, 0, 1, 2], [0, 0, 1, 0, 2, 0], [0, 0, 1, 0, 2, 1], [0, 0, 1, 0, 2, 2], [0, 0, 1, 1, 0, 2], [0, 0, 1, 1, 1, 2], [0, 0, 1, 1, 2, 0], [0, 0, 1, 1, 2, 1], [0, 0, 1, 1, 2, 2], [0, 0, 1, 2, 0, 0], [0, 0, 1, 2, 0, 1], [0, 0, 1, 2, 0, 2], [0, 0, 1, 2, 1, 0], [0, 0, 1, 2, 1, 1], [0, 0, 1, 2, 1, 2], [0, 0, 1, 2, 2, 0], [0, 0, 1, 2, 2, 1], [0, 0, 1, 2, 2, 2], [0, 1, 0, 0, 0, 2], [0, 1, 0, 0, 1, 2], [0, 1, 0, 0, 2, 0], [0, 1, 0, 0, 2, 1], [0, 1, 0, 0, 2, 2], [0, 1, 0, 1, 0, 2], [0, 1, 0, 1, 1, 2], [0, 1, 0, 1, 2, 0], [0, 1, 0, 1, 2, 1], [0, 1, 0, 1, 2, 2], [0, 1, 0, 2, 0, 0], [0, 1, 0, 2, 0, 1], [0, 1, 0, 2, 0, 2], [0, 1, 0, 2, 1, 0], [0, 1, 0, 2, 1, 1], [0, 1, 0, 2, 1, 2], [0, 1, 0, 2, 2, 0], [0, 1, 0, 2, 2, 1], [0, 1, 0, 2, 2, 2], [0, 1, 1, 0, 0, 2], [0, 1, 1, 0, 1, 2], [0, 1, 1, 0, 2, 0], [0, 1, 1, 0, 2, 1], [0, 1, 1, 0, 2, 2], [0, 1, 1, 1, 0, 2], [0, 1, 1, 1, 1, 2], [0, 1, 1, 1, 2, 0], [0, 1, 1, 1, 2, 1], [0, 1, 1, 1, 2, 2], [0, 1, 1, 2, 0, 0], [0, 1, 1, 2, 0, 1], [0, 1, 1, 2, 0, 2], [0, 1, 1, 2, 1, 0], [0, 1, 1, 2, 1, 1], [0, 1, 1, 2, 1, 2], [0, 1, 1, 2, 2, 0], [0, 1, 1, 2, 2, 1], [0, 1, 1, 2, 2, 2], [0, 1, 2, 0, 0, 0], [0, 1, 2, 0, 0, 1], [0, 1, 2, 0, 0, 2], [0, 1, 2, 0, 1, 0], [0, 1, 2, 0, 1, 1], [0, 1, 2, 0, 1, 2], [0, 1, 2, 0, 2, 0], [0, 1, 2, 0, 2, 1], [0, 1, 2, 0, 2, 2], [0, 1, 2, 1, 0, 0], [0, 1, 2, 1, 0, 1], [0, 1, 2, 1, 0, 2], [0, 1, 2, 1, 1, 0], [0, 1, 2, 1, 1, 1], [0, 1, 2, 1, 1, 2], [0, 1, 2, 1, 2, 0], [0, 1, 2, 1, 2, 1], [0, 1, 2, 1, 2, 2], [0, 1, 2, 2, 0, 0], [0, 1, 2, 2, 0, 1], [0, 1, 2, 2, 0, 2], [0, 1, 2, 2, 1, 0], [0, 1, 2, 2, 1, 1], [0, 1, 2, 2, 1, 2], [0, 1, 2, 2, 2, 0], [0, 1, 2, 2, 2, 1], [0, 1, 2, 2, 2, 2]]), ([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 fixtureActualExpectedOutcome
explicit oracle 0[[0, 1]][[0, 1]]Passed
explicit oracle 1[][[0, 0]]Failed
explicit oracle 2[[0]][[0]]Passed
explicit oracle 3[][]Passed
explicit oracle 4[][]Passed
explicit oracle 5[][]Passed
explicit oracle 6[][[0, 0, 0]]Failed
explicit oracle 7[[0, 1, 1]][[0, 0, 1], [0, 1, 0], [0, 1, 1]]Failed

SHA-256 / abe433269e55c6fd988ab6b3ee0f2a8b1afe56c7cf3ede09b8d3bb14822e3c28

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]]), ([2, 1], [[0, 0]]), ([1, 1], [[0]]), ([6, 7], []), ([1, 2], []), ([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, 1], [[0, 0, 0, 0]]), ([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, 1], [[0, 0, 0, 0, 0]]), ([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, 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]]), ([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, 3], [[0, 0, 0, 0, 1, 2], [0, 0, 0, 1, 0, 2], [0, 0, 0, 1, 1, 2], [0, 0, 0, 1, 2, 0], [0, 0, 0, 1, 2, 1], [0, 0, 0, 1, 2, 2], [0, 0, 1, 0, 0, 2], [0, 0, 1, 0, 1, 2], [0, 0, 1, 0, 2, 0], [0, 0, 1, 0, 2, 1], [0, 0, 1, 0, 2, 2], [0, 0, 1, 1, 0, 2], [0, 0, 1, 1, 1, 2], [0, 0, 1, 1, 2, 0], [0, 0, 1, 1, 2, 1], [0, 0, 1, 1, 2, 2], [0, 0, 1, 2, 0, 0], [0, 0, 1, 2, 0, 1], [0, 0, 1, 2, 0, 2], [0, 0, 1, 2, 1, 0], [0, 0, 1, 2, 1, 1], [0, 0, 1, 2, 1, 2], [0, 0, 1, 2, 2, 0], [0, 0, 1, 2, 2, 1], [0, 0, 1, 2, 2, 2], [0, 1, 0, 0, 0, 2], [0, 1, 0, 0, 1, 2], [0, 1, 0, 0, 2, 0], [0, 1, 0, 0, 2, 1], [0, 1, 0, 0, 2, 2], [0, 1, 0, 1, 0, 2], [0, 1, 0, 1, 1, 2], [0, 1, 0, 1, 2, 0], [0, 1, 0, 1, 2, 1], [0, 1, 0, 1, 2, 2], [0, 1, 0, 2, 0, 0], [0, 1, 0, 2, 0, 1], [0, 1, 0, 2, 0, 2], [0, 1, 0, 2, 1, 0], [0, 1, 0, 2, 1, 1], [0, 1, 0, 2, 1, 2], [0, 1, 0, 2, 2, 0], [0, 1, 0, 2, 2, 1], [0, 1, 0, 2, 2, 2], [0, 1, 1, 0, 0, 2], [0, 1, 1, 0, 1, 2], [0, 1, 1, 0, 2, 0], [0, 1, 1, 0, 2, 1], [0, 1, 1, 0, 2, 2], [0, 1, 1, 1, 0, 2], [0, 1, 1, 1, 1, 2], [0, 1, 1, 1, 2, 0], [0, 1, 1, 1, 2, 1], [0, 1, 1, 1, 2, 2], [0, 1, 1, 2, 0, 0], [0, 1, 1, 2, 0, 1], [0, 1, 1, 2, 0, 2], [0, 1, 1, 2, 1, 0], [0, 1, 1, 2, 1, 1], [0, 1, 1, 2, 1, 2], [0, 1, 1, 2, 2, 0], [0, 1, 1, 2, 2, 1], [0, 1, 1, 2, 2, 2], [0, 1, 2, 0, 0, 0], [0, 1, 2, 0, 0, 1], [0, 1, 2, 0, 0, 2], [0, 1, 2, 0, 1, 0], [0, 1, 2, 0, 1, 1], [0, 1, 2, 0, 1, 2], [0, 1, 2, 0, 2, 0], [0, 1, 2, 0, 2, 1], [0, 1, 2, 0, 2, 2], [0, 1, 2, 1, 0, 0], [0, 1, 2, 1, 0, 1], [0, 1, 2, 1, 0, 2], [0, 1, 2, 1, 1, 0], [0, 1, 2, 1, 1, 1], [0, 1, 2, 1, 1, 2], [0, 1, 2, 1, 2, 0], [0, 1, 2, 1, 2, 1], [0, 1, 2, 1, 2, 2], [0, 1, 2, 2, 0, 0], [0, 1, 2, 2, 0, 1], [0, 1, 2, 2, 0, 2], [0, 1, 2, 2, 1, 0], [0, 1, 2, 2, 1, 1], [0, 1, 2, 2, 1, 2], [0, 1, 2, 2, 2, 0], [0, 1, 2, 2, 2, 1], [0, 1, 2, 2, 2, 2]]), ([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 fixtureActualExpectedOutcome
explicit oracle 0[[0, 1]][[0, 1]]Passed
explicit oracle 1[[0, 0]][[0, 0]]Passed
explicit oracle 2[[0]][[0]]Passed
explicit oracle 3[][]Passed
explicit oracle 4[][]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 / 45f91a036414b2e70e620afbf8ddccf67da101e1a6e0a69dbffeeacd83cd631e

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.747760+00:00.

Case digest / f16305b6b6811dff82ce3e628a767f3bdf6c352c1c9cd856f15e18ebf1d37627