FA-65421 / Ecological population dynamics / Open access
Lotka-Volterra predator-prey Euler integration: equilibrium coordinates · case 01
The reported coexistence point has prey and predator swapped.
ROOT CAUSE
The equilibrium coordinates are returned in [predator, prey] order.
THE FAILURE
The equilibrium coordinates are returned in [predator, prey] order.
Unsuccessful approach: Pairing the rates with the wrong coefficients misplaces both coordinates.
Case contract
dx = alpha*x - beta*x*y, dy = delta*x*y - gamma*y evaluated from the same start-of-step state; Euler update with each population floored at 0; return [path of [x,y] rounded 4 including start, coexistence equilibrium [gamma/delta, alpha/beta] rounded 4 or None when beta or delta is not positive].
Why this case matters
Population projections set harvest quotas, conservation status and pest-control timing; a wrong update order, boundary or rate conversion silently changes management advice.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
N = 1
observations = []
def solve(prey0, pred0, alpha, beta, delta, gamma, dt, steps):
x, y = float(prey0), float(pred0)
path = [[round(x, 4), round(y, 4)]]
for _ in range(steps):
dx = alpha * x - beta * x * y
dy = delta * x * y - gamma * y
x = max(x + dx * dt, 0.0)
y = max(y + dy * dt, 0.0)
path.append([round(x, 4), round(y, 4)])
eq = [round(alpha / beta, 4), round(gamma / delta, 4)] if beta > 0 and delta > 0 else None
return [path, eq]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: hare and lynx',
(40, 9, 0.1, 0.02, 0.01, 0.1, 0.5, 6),
[[[40.0, 9.0],
[38.4, 10.35],
[36.3456, 11.8197],
[33.8669, 13.3767],
[31.03, 14.973],
[27.9354, 16.5474],
[24.7096, 18.0313]],
[10.0, 5.0]]),
('regression: large step overshoot',
(10, 50, 0.5, 0.1, 0.02, 0.4, 1.0, 4),
[[[10.0, 50.0], [0.0, 40.0], [0.0, 24.0], [0.0, 14.4], [0.0, 8.64]], [20.0, 5.0]]),
('regression: predators absent',
(20, 0, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[20.0, 0.0], [23.0, 0.0], [26.45, 0.0], [30.4175, 0.0], [34.9801, 0.0]], [10.0, 6.0]]),
('regression: prey absent',
(0, 10, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[0.0, 10.0], [0.0, 9.0], [0.0, 8.1], [0.0, 7.29], [0.0, 6.561]], [10.0, 6.0]]),
('control: no interaction',
(30, 5, 0.2, 0.0, 0.0, 0.1, 1.0, 3),
[[[30.0, 5.0], [36.0, 4.5], [43.2, 4.05], [51.84, 3.645]], None]),
('regression: at equilibrium',
(10, 5, 0.5, 0.1, 0.02, 0.2, 0.25, 4),
[[[10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0]], [10.0, 5.0]]),
('regression: fine steps',
(15, 4, 0.8, 0.1, 0.05, 0.6, 0.1, 8),
[[[15.0, 4.0],
[15.6, 4.06],
[16.2146, 4.1331],
[16.8416, 4.2202],
[17.4782, 4.3223],
[18.121, 4.4407],
[18.766, 4.5766],
[19.4084, 4.7315],
[20.0428, 4.9067]],
[12.0, 8.0]])],
[('regression: hare and lynx',
(40, 9, 0.1, 0.02, 0.01, 0.1, 0.5, 6),
[[[40.0, 9.0],
[38.4, 10.35],
[36.3456, 11.8197],
[33.8669, 13.3767],
[31.03, 14.973],
[27.9354, 16.5474],
[24.7096, 18.0313]],
[10.0, 5.0]]),
('regression: large step overshoot',
(10, 50, 0.5, 0.1, 0.02, 0.4, 1.0, 4),
[[[10.0, 50.0], [0.0, 40.0], [0.0, 24.0], [0.0, 14.4], [0.0, 8.64]], [20.0, 5.0]]),
('regression: prey absent',
(0, 10, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[0.0, 10.0], [0.0, 9.0], [0.0, 8.1], [0.0, 7.29], [0.0, 6.561]], [10.0, 6.0]]),
('control: no interaction',
(30, 5, 0.2, 0.0, 0.0, 0.1, 1.0, 3),
[[[30.0, 5.0], [36.0, 4.5], [43.2, 4.05], [51.84, 3.645]], None]),
('regression: at equilibrium',
(10, 5, 0.5, 0.1, 0.02, 0.2, 0.25, 4),
[[[10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0]], [10.0, 5.0]]),
('regression: fine steps',
(15, 4, 0.8, 0.1, 0.05, 0.6, 0.1, 8),
[[[15.0, 4.0],
[15.6, 4.06],
[16.2146, 4.1331],
[16.8416, 4.2202],
[17.4782, 4.3223],
[18.121, 4.4407],
[18.766, 4.5766],
[19.4084, 4.7315],
[20.0428, 4.9067]],
[12.0, 8.0]]),
('regression: predator crash',
(5, 30, 0.4, 0.2, 0.01, 0.9, 1.0, 3),
[[[5.0, 30.0], [0.0, 4.5], [0.0, 0.45], [0.0, 0.045]], [90.0, 2.0]])],
[('regression: hare and lynx',
(40, 9, 0.1, 0.02, 0.01, 0.1, 0.5, 6),
[[[40.0, 9.0],
[38.4, 10.35],
[36.3456, 11.8197],
[33.8669, 13.3767],
[31.03, 14.973],
[27.9354, 16.5474],
[24.7096, 18.0313]],
[10.0, 5.0]]),
('regression: large step overshoot',
(10, 50, 0.5, 0.1, 0.02, 0.4, 1.0, 4),
[[[10.0, 50.0], [0.0, 40.0], [0.0, 24.0], [0.0, 14.4], [0.0, 8.64]], [20.0, 5.0]]),
('regression: predators absent',
(20, 0, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[20.0, 0.0], [23.0, 0.0], [26.45, 0.0], [30.4175, 0.0], [34.9801, 0.0]], [10.0, 6.0]]),
('regression: prey absent',
(0, 10, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[0.0, 10.0], [0.0, 9.0], [0.0, 8.1], [0.0, 7.29], [0.0, 6.561]], [10.0, 6.0]]),
('control: no interaction',
(30, 5, 0.2, 0.0, 0.0, 0.1, 1.0, 3),
[[[30.0, 5.0], [36.0, 4.5], [43.2, 4.05], [51.84, 3.645]], None]),
('regression: fine steps',
(15, 4, 0.8, 0.1, 0.05, 0.6, 0.1, 8),
[[[15.0, 4.0],
[15.6, 4.06],
[16.2146, 4.1331],
[16.8416, 4.2202],
[17.4782, 4.3223],
[18.121, 4.4407],
[18.766, 4.5766],
[19.4084, 4.7315],
[20.0428, 4.9067]],
[12.0, 8.0]]),
('regression: predator crash',
(5, 30, 0.4, 0.2, 0.01, 0.9, 1.0, 3),
[[[5.0, 30.0], [0.0, 4.5], [0.0, 0.45], [0.0, 0.045]], [90.0, 2.0]])],
[('regression: large step overshoot',
(10, 50, 0.5, 0.1, 0.02, 0.4, 1.0, 4),
[[[10.0, 50.0], [0.0, 40.0], [0.0, 24.0], [0.0, 14.4], [0.0, 8.64]], [20.0, 5.0]]),
('regression: predators absent',
(20, 0, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[20.0, 0.0], [23.0, 0.0], [26.45, 0.0], [30.4175, 0.0], [34.9801, 0.0]], [10.0, 6.0]]),
('regression: prey absent',
(0, 10, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[0.0, 10.0], [0.0, 9.0], [0.0, 8.1], [0.0, 7.29], [0.0, 6.561]], [10.0, 6.0]]),
('control: no interaction',
(30, 5, 0.2, 0.0, 0.0, 0.1, 1.0, 3),
[[[30.0, 5.0], [36.0, 4.5], [43.2, 4.05], [51.84, 3.645]], None]),
('regression: at equilibrium',
(10, 5, 0.5, 0.1, 0.02, 0.2, 0.25, 4),
[[[10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0]], [10.0, 5.0]]),
('regression: fine steps',
(15, 4, 0.8, 0.1, 0.05, 0.6, 0.1, 8),
[[[15.0, 4.0],
[15.6, 4.06],
[16.2146, 4.1331],
[16.8416, 4.2202],
[17.4782, 4.3223],
[18.121, 4.4407],
[18.766, 4.5766],
[19.4084, 4.7315],
[20.0428, 4.9067]],
[12.0, 8.0]]),
('regression: predator crash',
(5, 30, 0.4, 0.2, 0.01, 0.9, 1.0, 3),
[[[5.0, 30.0], [0.0, 4.5], [0.0, 0.45], [0.0, 0.045]], [90.0, 2.0]])],
[('regression: hare and lynx',
(40, 9, 0.1, 0.02, 0.01, 0.1, 0.5, 6),
[[[40.0, 9.0],
[38.4, 10.35],
[36.3456, 11.8197],
[33.8669, 13.3767],
[31.03, 14.973],
[27.9354, 16.5474],
[24.7096, 18.0313]],
[10.0, 5.0]]),
('regression: large step overshoot',
(10, 50, 0.5, 0.1, 0.02, 0.4, 1.0, 4),
[[[10.0, 50.0], [0.0, 40.0], [0.0, 24.0], [0.0, 14.4], [0.0, 8.64]], [20.0, 5.0]]),
('regression: predators absent',
(20, 0, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[20.0, 0.0], [23.0, 0.0], [26.45, 0.0], [30.4175, 0.0], [34.9801, 0.0]], [10.0, 6.0]]),
('control: no interaction',
(30, 5, 0.2, 0.0, 0.0, 0.1, 1.0, 3),
[[[30.0, 5.0], [36.0, 4.5], [43.2, 4.05], [51.84, 3.645]], None]),
('regression: at equilibrium',
(10, 5, 0.5, 0.1, 0.02, 0.2, 0.25, 4),
[[[10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0]], [10.0, 5.0]]),
('regression: fine steps',
(15, 4, 0.8, 0.1, 0.05, 0.6, 0.1, 8),
[[[15.0, 4.0],
[15.6, 4.06],
[16.2146, 4.1331],
[16.8416, 4.2202],
[17.4782, 4.3223],
[18.121, 4.4407],
[18.766, 4.5766],
[19.4084, 4.7315],
[20.0428, 4.9067]],
[12.0, 8.0]]),
('regression: predator crash',
(5, 30, 0.4, 0.2, 0.01, 0.9, 1.0, 3),
[[[5.0, 30.0], [0.0, 4.5], [0.0, 0.45], [0.0, 0.045]], [90.0, 2.0]])]]
for label, args, expected in fixtures[N - 1]:
check(label, 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 |
|---|---|---|---|
| regression: hare and lynx | [[[40.0, 9.0], [38.4, 10.35], [36.3456, 11.8197], [33.8669, 13.3767], [31.03, 14.973], [27.9354, 16.5474], [24.7096, 18.0313]], [5.0, 10.0]] | [[[40.0, 9.0], [38.4, 10.35], [36.3456, 11.8197], [33.8669, 13.3767], [31.03, 14.973], [27.9354, 16.5474], [24.7096, 18.0313]], [10.0, 5.0]] | Failed |
| regression: large step overshoot | [[[10.0, 50.0], [0.0, 40.0], [0.0, 24.0], [0.0, 14.4], [0.0, 8.64]], [5.0, 20.0]] | [[[10.0, 50.0], [0.0, 40.0], [0.0, 24.0], [0.0, 14.4], [0.0, 8.64]], [20.0, 5.0]] | Failed |
| regression: predators absent | [[[20.0, 0.0], [23.0, 0.0], [26.45, 0.0], [30.4175, 0.0], [34.9801, 0.0]], [6.0, 10.0]] | [[[20.0, 0.0], [23.0, 0.0], [26.45, 0.0], [30.4175, 0.0], [34.9801, 0.0]], [10.0, 6.0]] | Failed |
| regression: prey absent | [[[0.0, 10.0], [0.0, 9.0], [0.0, 8.1], [0.0, 7.29], [0.0, 6.561]], [6.0, 10.0]] | [[[0.0, 10.0], [0.0, 9.0], [0.0, 8.1], [0.0, 7.29], [0.0, 6.561]], [10.0, 6.0]] | Failed |
| control: no interaction | [[[30.0, 5.0], [36.0, 4.5], [43.2, 4.05], [51.84, 3.645]], None] | [[[30.0, 5.0], [36.0, 4.5], [43.2, 4.05], [51.84, 3.645]], None] | Passed |
| regression: at equilibrium | [[[10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0]], [5.0, 10.0]] | [[[10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0]], [10.0, 5.0]] | Failed |
| regression: fine steps | [[[15.0, 4.0], [15.6, 4.06], [16.2146, 4.1331], [16.8416, 4.2202], [17.4782, 4.3223], [18.121, 4.4407], [18.766, 4.5766], [19.4084, 4.7315], [20.0428, 4.9067]], [8.0, 12.0]] | [[[15.0, 4.0], [15.6, 4.06], [16.2146, 4.1331], [16.8416, 4.2202], [17.4782, 4.3223], [18.121, 4.4407], [18.766, 4.5766], [19.4084, 4.7315], [20.0428, 4.9067]], [12.0, 8.0]] | Failed |
SHA-256 / 4d27184b934c4dcd90ad372fb68fa1d0bf76d6d36a2a9ac203aeb62d10722202
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
N = 1
observations = []
def solve(prey0, pred0, alpha, beta, delta, gamma, dt, steps):
x, y = float(prey0), float(pred0)
path = [[round(x, 4), round(y, 4)]]
for _ in range(steps):
dx = alpha * x - beta * x * y
dy = delta * x * y - gamma * y
x = max(x + dx * dt, 0.0)
y = max(y + dy * dt, 0.0)
path.append([round(x, 4), round(y, 4)])
eq = [round(gamma / beta, 4), round(alpha / delta, 4)] if beta > 0 and delta > 0 else None
return [path, eq]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: hare and lynx',
(40, 9, 0.1, 0.02, 0.01, 0.1, 0.5, 6),
[[[40.0, 9.0],
[38.4, 10.35],
[36.3456, 11.8197],
[33.8669, 13.3767],
[31.03, 14.973],
[27.9354, 16.5474],
[24.7096, 18.0313]],
[10.0, 5.0]]),
('regression: large step overshoot',
(10, 50, 0.5, 0.1, 0.02, 0.4, 1.0, 4),
[[[10.0, 50.0], [0.0, 40.0], [0.0, 24.0], [0.0, 14.4], [0.0, 8.64]], [20.0, 5.0]]),
('regression: predators absent',
(20, 0, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[20.0, 0.0], [23.0, 0.0], [26.45, 0.0], [30.4175, 0.0], [34.9801, 0.0]], [10.0, 6.0]]),
('regression: prey absent',
(0, 10, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[0.0, 10.0], [0.0, 9.0], [0.0, 8.1], [0.0, 7.29], [0.0, 6.561]], [10.0, 6.0]]),
('control: no interaction',
(30, 5, 0.2, 0.0, 0.0, 0.1, 1.0, 3),
[[[30.0, 5.0], [36.0, 4.5], [43.2, 4.05], [51.84, 3.645]], None]),
('regression: at equilibrium',
(10, 5, 0.5, 0.1, 0.02, 0.2, 0.25, 4),
[[[10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0]], [10.0, 5.0]]),
('regression: fine steps',
(15, 4, 0.8, 0.1, 0.05, 0.6, 0.1, 8),
[[[15.0, 4.0],
[15.6, 4.06],
[16.2146, 4.1331],
[16.8416, 4.2202],
[17.4782, 4.3223],
[18.121, 4.4407],
[18.766, 4.5766],
[19.4084, 4.7315],
[20.0428, 4.9067]],
[12.0, 8.0]])],
[('regression: hare and lynx',
(40, 9, 0.1, 0.02, 0.01, 0.1, 0.5, 6),
[[[40.0, 9.0],
[38.4, 10.35],
[36.3456, 11.8197],
[33.8669, 13.3767],
[31.03, 14.973],
[27.9354, 16.5474],
[24.7096, 18.0313]],
[10.0, 5.0]]),
('regression: large step overshoot',
(10, 50, 0.5, 0.1, 0.02, 0.4, 1.0, 4),
[[[10.0, 50.0], [0.0, 40.0], [0.0, 24.0], [0.0, 14.4], [0.0, 8.64]], [20.0, 5.0]]),
('regression: prey absent',
(0, 10, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[0.0, 10.0], [0.0, 9.0], [0.0, 8.1], [0.0, 7.29], [0.0, 6.561]], [10.0, 6.0]]),
('control: no interaction',
(30, 5, 0.2, 0.0, 0.0, 0.1, 1.0, 3),
[[[30.0, 5.0], [36.0, 4.5], [43.2, 4.05], [51.84, 3.645]], None]),
('regression: at equilibrium',
(10, 5, 0.5, 0.1, 0.02, 0.2, 0.25, 4),
[[[10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0]], [10.0, 5.0]]),
('regression: fine steps',
(15, 4, 0.8, 0.1, 0.05, 0.6, 0.1, 8),
[[[15.0, 4.0],
[15.6, 4.06],
[16.2146, 4.1331],
[16.8416, 4.2202],
[17.4782, 4.3223],
[18.121, 4.4407],
[18.766, 4.5766],
[19.4084, 4.7315],
[20.0428, 4.9067]],
[12.0, 8.0]]),
('regression: predator crash',
(5, 30, 0.4, 0.2, 0.01, 0.9, 1.0, 3),
[[[5.0, 30.0], [0.0, 4.5], [0.0, 0.45], [0.0, 0.045]], [90.0, 2.0]])],
[('regression: hare and lynx',
(40, 9, 0.1, 0.02, 0.01, 0.1, 0.5, 6),
[[[40.0, 9.0],
[38.4, 10.35],
[36.3456, 11.8197],
[33.8669, 13.3767],
[31.03, 14.973],
[27.9354, 16.5474],
[24.7096, 18.0313]],
[10.0, 5.0]]),
('regression: large step overshoot',
(10, 50, 0.5, 0.1, 0.02, 0.4, 1.0, 4),
[[[10.0, 50.0], [0.0, 40.0], [0.0, 24.0], [0.0, 14.4], [0.0, 8.64]], [20.0, 5.0]]),
('regression: predators absent',
(20, 0, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[20.0, 0.0], [23.0, 0.0], [26.45, 0.0], [30.4175, 0.0], [34.9801, 0.0]], [10.0, 6.0]]),
('regression: prey absent',
(0, 10, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[0.0, 10.0], [0.0, 9.0], [0.0, 8.1], [0.0, 7.29], [0.0, 6.561]], [10.0, 6.0]]),
('control: no interaction',
(30, 5, 0.2, 0.0, 0.0, 0.1, 1.0, 3),
[[[30.0, 5.0], [36.0, 4.5], [43.2, 4.05], [51.84, 3.645]], None]),
('regression: fine steps',
(15, 4, 0.8, 0.1, 0.05, 0.6, 0.1, 8),
[[[15.0, 4.0],
[15.6, 4.06],
[16.2146, 4.1331],
[16.8416, 4.2202],
[17.4782, 4.3223],
[18.121, 4.4407],
[18.766, 4.5766],
[19.4084, 4.7315],
[20.0428, 4.9067]],
[12.0, 8.0]]),
('regression: predator crash',
(5, 30, 0.4, 0.2, 0.01, 0.9, 1.0, 3),
[[[5.0, 30.0], [0.0, 4.5], [0.0, 0.45], [0.0, 0.045]], [90.0, 2.0]])],
[('regression: large step overshoot',
(10, 50, 0.5, 0.1, 0.02, 0.4, 1.0, 4),
[[[10.0, 50.0], [0.0, 40.0], [0.0, 24.0], [0.0, 14.4], [0.0, 8.64]], [20.0, 5.0]]),
('regression: predators absent',
(20, 0, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[20.0, 0.0], [23.0, 0.0], [26.45, 0.0], [30.4175, 0.0], [34.9801, 0.0]], [10.0, 6.0]]),
('regression: prey absent',
(0, 10, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[0.0, 10.0], [0.0, 9.0], [0.0, 8.1], [0.0, 7.29], [0.0, 6.561]], [10.0, 6.0]]),
('control: no interaction',
(30, 5, 0.2, 0.0, 0.0, 0.1, 1.0, 3),
[[[30.0, 5.0], [36.0, 4.5], [43.2, 4.05], [51.84, 3.645]], None]),
('regression: at equilibrium',
(10, 5, 0.5, 0.1, 0.02, 0.2, 0.25, 4),
[[[10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0]], [10.0, 5.0]]),
('regression: fine steps',
(15, 4, 0.8, 0.1, 0.05, 0.6, 0.1, 8),
[[[15.0, 4.0],
[15.6, 4.06],
[16.2146, 4.1331],
[16.8416, 4.2202],
[17.4782, 4.3223],
[18.121, 4.4407],
[18.766, 4.5766],
[19.4084, 4.7315],
[20.0428, 4.9067]],
[12.0, 8.0]]),
('regression: predator crash',
(5, 30, 0.4, 0.2, 0.01, 0.9, 1.0, 3),
[[[5.0, 30.0], [0.0, 4.5], [0.0, 0.45], [0.0, 0.045]], [90.0, 2.0]])],
[('regression: hare and lynx',
(40, 9, 0.1, 0.02, 0.01, 0.1, 0.5, 6),
[[[40.0, 9.0],
[38.4, 10.35],
[36.3456, 11.8197],
[33.8669, 13.3767],
[31.03, 14.973],
[27.9354, 16.5474],
[24.7096, 18.0313]],
[10.0, 5.0]]),
('regression: large step overshoot',
(10, 50, 0.5, 0.1, 0.02, 0.4, 1.0, 4),
[[[10.0, 50.0], [0.0, 40.0], [0.0, 24.0], [0.0, 14.4], [0.0, 8.64]], [20.0, 5.0]]),
('regression: predators absent',
(20, 0, 0.3, 0.05, 0.02, 0.2, 0.5, 4),
[[[20.0, 0.0], [23.0, 0.0], [26.45, 0.0], [30.4175, 0.0], [34.9801, 0.0]], [10.0, 6.0]]),
('control: no interaction',
(30, 5, 0.2, 0.0, 0.0, 0.1, 1.0, 3),
[[[30.0, 5.0], [36.0, 4.5], [43.2, 4.05], [51.84, 3.645]], None]),
('regression: at equilibrium',
(10, 5, 0.5, 0.1, 0.02, 0.2, 0.25, 4),
[[[10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0]], [10.0, 5.0]]),
('regression: fine steps',
(15, 4, 0.8, 0.1, 0.05, 0.6, 0.1, 8),
[[[15.0, 4.0],
[15.6, 4.06],
[16.2146, 4.1331],
[16.8416, 4.2202],
[17.4782, 4.3223],
[18.121, 4.4407],
[18.766, 4.5766],
[19.4084, 4.7315],
[20.0428, 4.9067]],
[12.0, 8.0]]),
('regression: predator crash',
(5, 30, 0.4, 0.2, 0.01, 0.9, 1.0, 3),
[[[5.0, 30.0], [0.0, 4.5], [0.0, 0.45], [0.0, 0.045]], [90.0, 2.0]])]]
for label, args, expected in fixtures[N - 1]:
check(label, 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 |
|---|---|---|---|
| regression: hare and lynx | [[[40.0, 9.0], [38.4, 10.35], [36.3456, 11.8197], [33.8669, 13.3767], [31.03, 14.973], [27.9354, 16.5474], [24.7096, 18.0313]], [5.0, 10.0]] | [[[40.0, 9.0], [38.4, 10.35], [36.3456, 11.8197], [33.8669, 13.3767], [31.03, 14.973], [27.9354, 16.5474], [24.7096, 18.0313]], [10.0, 5.0]] | Failed |
| regression: large step overshoot | [[[10.0, 50.0], [0.0, 40.0], [0.0, 24.0], [0.0, 14.4], [0.0, 8.64]], [4.0, 25.0]] | [[[10.0, 50.0], [0.0, 40.0], [0.0, 24.0], [0.0, 14.4], [0.0, 8.64]], [20.0, 5.0]] | Failed |
| regression: predators absent | [[[20.0, 0.0], [23.0, 0.0], [26.45, 0.0], [30.4175, 0.0], [34.9801, 0.0]], [4.0, 15.0]] | [[[20.0, 0.0], [23.0, 0.0], [26.45, 0.0], [30.4175, 0.0], [34.9801, 0.0]], [10.0, 6.0]] | Failed |
| regression: prey absent | [[[0.0, 10.0], [0.0, 9.0], [0.0, 8.1], [0.0, 7.29], [0.0, 6.561]], [4.0, 15.0]] | [[[0.0, 10.0], [0.0, 9.0], [0.0, 8.1], [0.0, 7.29], [0.0, 6.561]], [10.0, 6.0]] | Failed |
| control: no interaction | [[[30.0, 5.0], [36.0, 4.5], [43.2, 4.05], [51.84, 3.645]], None] | [[[30.0, 5.0], [36.0, 4.5], [43.2, 4.05], [51.84, 3.645]], None] | Passed |
| regression: at equilibrium | [[[10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0]], [2.0, 25.0]] | [[[10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0], [10.0, 5.0]], [10.0, 5.0]] | Failed |
| regression: fine steps | [[[15.0, 4.0], [15.6, 4.06], [16.2146, 4.1331], [16.8416, 4.2202], [17.4782, 4.3223], [18.121, 4.4407], [18.766, 4.5766], [19.4084, 4.7315], [20.0428, 4.9067]], [6.0, 16.0]] | [[[15.0, 4.0], [15.6, 4.06], [16.2146, 4.1331], [16.8416, 4.2202], [17.4782, 4.3223], [18.121, 4.4407], [18.766, 4.5766], [19.4084, 4.7315], [20.0428, 4.9067]], [12.0, 8.0]] | Failed |
SHA-256 / 8416139dfb17d2773169fc30b1533ad545a51a9b3e4ea7f573703609bef844a2
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 7 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
Deterministic bounded teaching model with a stipulated contract; not a validated scientific or public-health modelling 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:47:33.963040+00:00.
Case digest / 196a6fd2deed83125adf0623ded28cc43f764d7341915a87f0fe592aa1a4fae9