FA-81206 / Music interval and transposition theory / Open access
Parallel fifths and octaves between two voices: oblique motion into a perfect interval flagged · case 01
An octave to a compound octave by a leap in one voice while the other holds (C5/C4 to C6/C4) is flagged as parallel.
ROOT CAUSE
Only a fully static pair of voices is excluded; motion in one voice alone still counts as parallel.
THE FAILURE
Only a fully static pair of voices is excluded; motion in one voice alone still counts as parallel.
Unsuccessful approach: Excluding only a held upper voice still flags motion where the lower voice holds.
Case contract
Input [upper, lower], equal-length lists of MIDI pitches. For each adjacent pair of positions i, i+1 report [i, "P5"] or [i, "P8"] when the interval (upper - lower) mod 12 is 7 or 0 at both positions (the same class), both voices move (no repeated note in either), and they move in the same direction. Return the list in order; unequal lengths return None.
Why this case matters
Counterpoint checkers and voice-leading validators flag forbidden parallel perfect intervals.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
if not isinstance(x, list) or len(x) != 2:
return None
up, lo = x
if len(up) != len(lo):
return None
out = []
for i in range(len(up) - 1):
a = (up[i] - lo[i]) % 12
b = (up[i + 1] - lo[i + 1]) % 12
mu = up[i + 1] - up[i]
ml = lo[i + 1] - lo[i]
if a != b or a not in (0, 7):
continue
if mu == 0 and ml == 0:
continue
if (mu > 0) != (ml > 0):
continue
out.append([i, 'P8' if a == 0 else 'P5'])
return out
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[([[67, 69], [60, 62]], [[0, 'P5']]), ([[72, 74], [60, 62]], [[0, 'P8']]), ([[79, 81], [60, 62]], [[0, 'P5']]), ([[67, 67], [60, 60]], []), ([[67, 69], [60, 60]], []), ([[72, 67], [60, 72]], []), ([[72, 79], [60, 55]], []), ([[84, 72], [60, 60]], [])], [([[67, 67], [60, 60]], []), ([[67, 69], [60, 60]], []), ([[72, 67], [60, 72]], []), ([[72, 79], [60, 55]], []), ([[67, 72], [60, 65]], [[0, 'P5']]), ([[72, 79], [60, 60]], []), ([[60, 62], [67, 69]], []), ([[84, 72], [60, 60]], [])], [([[72, 79], [60, 55]], []), ([[67, 72], [60, 65]], [[0, 'P5']]), ([[72, 79], [60, 60]], []), ([[60, 62], [67, 69]], []), ([[55, 57], [60, 62]], [[0, 'P5']]), ([[67, 69, 71], [60, 62, 64]], [[0, 'P5'], [1, 'P5']]), ([[67, 65], [60, 58]], [[0, 'P5']]), ([[84, 72], [60, 60]], [])], [([[60, 62], [67, 69]], []), ([[55, 57], [60, 62]], [[0, 'P5']]), ([[67, 69, 71], [60, 62, 64]], [[0, 'P5'], [1, 'P5']]), ([[67, 65], [60, 58]], [[0, 'P5']]), ([[72, 72, 74], [60, 60, 62]], [[1, 'P8']]), ([[67, 72], [60, 60]], []), ([[64, 65], [60, 62]], []), ([[84, 72], [60, 60]], [])], [([[67, 65], [60, 58]], [[0, 'P5']]), ([[72, 72, 74], [60, 60, 62]], [[1, 'P8']]), ([[67, 72], [60, 60]], []), ([[64, 65], [60, 62]], []), ([[67], [60]], []), ([[], []], []), ([[67, 69], [60]], None), ([[84, 72], [60, 60]], [])]]
for i, (args, expected) in enumerate(fixtures[N-1]):
check("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 |
|---|---|---|---|
| oracle 0 | [[0, 'P5']] | [[0, 'P5']] | Passed |
| oracle 1 | [[0, 'P8']] | [[0, 'P8']] | Passed |
| oracle 2 | [[0, 'P5']] | [[0, 'P5']] | Passed |
| oracle 3 | [] | [] | Passed |
| oracle 4 | [] | [] | Passed |
| oracle 5 | [] | [] | Passed |
| oracle 6 | [] | [] | Passed |
| oracle 7 | [[0, 'P8']] | [] | Failed |
SHA-256 / a3dac1aeafcb5da535dd36b4cbbb6d64a83e700c28ed2b5f6262c1087fb94077
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
if not isinstance(x, list) or len(x) != 2:
return None
up, lo = x
if len(up) != len(lo):
return None
out = []
for i in range(len(up) - 1):
a = (up[i] - lo[i]) % 12
b = (up[i + 1] - lo[i + 1]) % 12
mu = up[i + 1] - up[i]
ml = lo[i + 1] - lo[i]
if a != b or a not in (0, 7):
continue
if mu == 0:
continue
if (mu > 0) != (ml > 0):
continue
out.append([i, 'P8' if a == 0 else 'P5'])
return out
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[([[67, 69], [60, 62]], [[0, 'P5']]), ([[72, 74], [60, 62]], [[0, 'P8']]), ([[79, 81], [60, 62]], [[0, 'P5']]), ([[67, 67], [60, 60]], []), ([[67, 69], [60, 60]], []), ([[72, 67], [60, 72]], []), ([[72, 79], [60, 55]], []), ([[84, 72], [60, 60]], [])], [([[67, 67], [60, 60]], []), ([[67, 69], [60, 60]], []), ([[72, 67], [60, 72]], []), ([[72, 79], [60, 55]], []), ([[67, 72], [60, 65]], [[0, 'P5']]), ([[72, 79], [60, 60]], []), ([[60, 62], [67, 69]], []), ([[84, 72], [60, 60]], [])], [([[72, 79], [60, 55]], []), ([[67, 72], [60, 65]], [[0, 'P5']]), ([[72, 79], [60, 60]], []), ([[60, 62], [67, 69]], []), ([[55, 57], [60, 62]], [[0, 'P5']]), ([[67, 69, 71], [60, 62, 64]], [[0, 'P5'], [1, 'P5']]), ([[67, 65], [60, 58]], [[0, 'P5']]), ([[84, 72], [60, 60]], [])], [([[60, 62], [67, 69]], []), ([[55, 57], [60, 62]], [[0, 'P5']]), ([[67, 69, 71], [60, 62, 64]], [[0, 'P5'], [1, 'P5']]), ([[67, 65], [60, 58]], [[0, 'P5']]), ([[72, 72, 74], [60, 60, 62]], [[1, 'P8']]), ([[67, 72], [60, 60]], []), ([[64, 65], [60, 62]], []), ([[84, 72], [60, 60]], [])], [([[67, 65], [60, 58]], [[0, 'P5']]), ([[72, 72, 74], [60, 60, 62]], [[1, 'P8']]), ([[67, 72], [60, 60]], []), ([[64, 65], [60, 62]], []), ([[67], [60]], []), ([[], []], []), ([[67, 69], [60]], None), ([[84, 72], [60, 60]], [])]]
for i, (args, expected) in enumerate(fixtures[N-1]):
check("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 |
|---|---|---|---|
| oracle 0 | [[0, 'P5']] | [[0, 'P5']] | Passed |
| oracle 1 | [[0, 'P8']] | [[0, 'P8']] | Passed |
| oracle 2 | [[0, 'P5']] | [[0, 'P5']] | Passed |
| oracle 3 | [] | [] | Passed |
| oracle 4 | [] | [] | Passed |
| oracle 5 | [] | [] | Passed |
| oracle 6 | [] | [] | Passed |
| oracle 7 | [[0, 'P8']] | [] | Failed |
SHA-256 / e214c9ec3e591697a252c3609bfe5a437de0dfa840b6fdb95d428a9eeb6a3f89
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 8 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
A deterministic bounded teaching model with a stipulated toy contract; it is not a complete music notation or theory engine. 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:50:00.840888+00:00.
Case digest / ab06e376419a42bdb7286695c769ac7598e382f6bae6f21a57b824564fddebd7