FA-71676 / Seismic magnitude estimation / Open access
Brune source radius and stress drop: shear velocity units · case 01
Source radii are a thousand times too small and stress drops astronomically high.
ROOT CAUSE
Shear velocity in km/s is not converted to m/s.
VERIFIED REPAIR
Multiply beta by 1000.
Unsuccessful approach: Dividing by 1000 converts in the wrong direction.
Case contract
Seismic moment N*m, corner frequency Hz, shear velocity km/s; non-positive input returns None. r = 2.34 beta / (2 pi fc) in m; stress drop = 7/16 M0 / r^3 Pa. Return [r rounded 0.1 m, stress drop in MPa rounded 0.001].
Why this case matters
Stress drop characterises source physics and ground-motion scaling.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
N = 1
observations = []
def solve(m0_nm, fc_hz, beta_kms):
if min(m0_nm, fc_hz, beta_kms) <= 0:
return None
r = 2.34 * beta_kms / (2 * math.pi * fc_hz)
ds = 7.0 / 16.0 * m0_nm / r ** 3
return [round(r, 1), round(ds / 1e6, 3)]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['M0 1.0e+12 fc 0.5 beta 3.2', [1000000000000.0, 0.5, 3.2], [2383.5, 0.0]], ['M0 1.0e+12 fc 0.5 beta 3.5', [1000000000000.0, 0.5, 3.5], [2607.0, 0.0]], ['M0 1.0e+12 fc 2.0 beta 3.2', [1000000000000.0, 2.0, 3.2], [595.9, 0.002]], ['M0 1.0e+12 fc 2.0 beta 3.5', [1000000000000.0, 2.0, 3.5], [651.7, 0.002]], ['M0 1.0e+12 fc 10.0 beta 3.2', [1000000000000.0, 10.0, 3.2], [119.2, 0.258]], ['M0 1.0e+12 fc 10.0 beta 3.5', [1000000000000.0, 10.0, 3.5], [130.3, 0.198]], ['M0 3.5e+14 fc 0.5 beta 3.2', [350000000000000.0, 0.5, 3.2], [2383.5, 0.011]], ['M0 3.5e+14 fc 0.5 beta 3.5', [350000000000000.0, 0.5, 3.5], [2607.0, 0.009]]], [['M0 1.0e+12 fc 2.0 beta 3.5', [1000000000000.0, 2.0, 3.5], [651.7, 0.002]], ['M0 3.5e+14 fc 0.5 beta 3.2', [350000000000000.0, 0.5, 3.2], [2383.5, 0.011]], ['M0 3.5e+14 fc 0.5 beta 3.5', [350000000000000.0, 0.5, 3.5], [2607.0, 0.009]], ['M0 3.5e+14 fc 2.0 beta 3.2', [350000000000000.0, 2.0, 3.2], [595.9, 0.724]], ['M0 3.5e+14 fc 2.0 beta 3.5', [350000000000000.0, 2.0, 3.5], [651.7, 0.553]], ['M0 3.5e+14 fc 10.0 beta 3.2', [350000000000000.0, 10.0, 3.2], [119.2, 90.467]], ['M0 3.5e+14 fc 10.0 beta 3.5', [350000000000000.0, 10.0, 3.5], [130.3, 69.141]], ['M0 2.0e+17 fc 0.5 beta 3.2', [2e+17, 0.5, 3.2], [2383.5, 6.462]]], [['M0 1.0e+12 fc 0.5 beta 3.2', [1000000000000.0, 0.5, 3.2], [2383.5, 0.0]], ['M0 3.5e+14 fc 0.5 beta 3.2', [350000000000000.0, 0.5, 3.2], [2383.5, 0.011]], ['M0 3.5e+14 fc 10.0 beta 3.5', [350000000000000.0, 10.0, 3.5], [130.3, 69.141]], ['M0 2.0e+17 fc 2.0 beta 3.2', [2e+17, 2.0, 3.2], [595.9, 413.562]], ['M0 2.0e+17 fc 2.0 beta 3.5', [2e+17, 2.0, 3.5], [651.7, 316.072]], ['M0 2.0e+17 fc 10.0 beta 3.2', [2e+17, 10.0, 3.2], [119.2, 51695.192]], ['M0 2.0e+17 fc 10.0 beta 3.5', [2e+17, 10.0, 3.5], [130.3, 39508.992]], ['zero corner', [100000000000000.0, 0, 3.5], None]], [['M0 1.0e+12 fc 2.0 beta 3.2', [1000000000000.0, 2.0, 3.2], [595.9, 0.002]], ['M0 1.0e+12 fc 2.0 beta 3.5', [1000000000000.0, 2.0, 3.5], [651.7, 0.002]], ['M0 1.0e+12 fc 10.0 beta 3.2', [1000000000000.0, 10.0, 3.2], [119.2, 0.258]], ['M0 1.0e+12 fc 10.0 beta 3.5', [1000000000000.0, 10.0, 3.5], [130.3, 0.198]], ['M0 3.5e+14 fc 0.5 beta 3.2', [350000000000000.0, 0.5, 3.2], [2383.5, 0.011]], ['M0 3.5e+14 fc 0.5 beta 3.5', [350000000000000.0, 0.5, 3.5], [2607.0, 0.009]], ['M0 3.5e+14 fc 2.0 beta 3.5', [350000000000000.0, 2.0, 3.5], [651.7, 0.553]], ['M0 2.0e+17 fc 10.0 beta 3.2', [2e+17, 10.0, 3.2], [119.2, 51695.192]]], [['M0 1.0e+12 fc 2.0 beta 3.5', [1000000000000.0, 2.0, 3.5], [651.7, 0.002]], ['M0 3.5e+14 fc 2.0 beta 3.5', [350000000000000.0, 2.0, 3.5], [651.7, 0.553]], ['M0 3.5e+14 fc 10.0 beta 3.2', [350000000000000.0, 10.0, 3.2], [119.2, 90.467]], ['M0 3.5e+14 fc 10.0 beta 3.5', [350000000000000.0, 10.0, 3.5], [130.3, 69.141]], ['M0 2.0e+17 fc 0.5 beta 3.2', [2e+17, 0.5, 3.2], [2383.5, 6.462]], ['M0 2.0e+17 fc 0.5 beta 3.5', [2e+17, 0.5, 3.5], [2607.0, 4.939]], ['M0 2.0e+17 fc 2.0 beta 3.2', [2e+17, 2.0, 3.2], [595.9, 413.562]], ['M0 2.0e+17 fc 2.0 beta 3.5', [2e+17, 2.0, 3.5], [651.7, 316.072]]]]
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 |
|---|---|---|---|
| M0 1.0e+12 fc 0.5 beta 3.2 | [2.4, 32309.495] | [2383.5, 0.0] | Failed |
| M0 1.0e+12 fc 0.5 beta 3.5 | [2.6, 24693.12] | [2607.0, 0.0] | Failed |
| M0 1.0e+12 fc 2.0 beta 3.2 | [0.6, 2067807.672] | [595.9, 0.002] | Failed |
| M0 1.0e+12 fc 2.0 beta 3.5 | [0.7, 1580359.692] | [651.7, 0.002] | Failed |
| M0 1.0e+12 fc 10.0 beta 3.2 | [0.1, 258475958.951] | [119.2, 0.258] | Failed |
| M0 1.0e+12 fc 10.0 beta 3.5 | [0.1, 197544961.467] | [130.3, 0.198] | Failed |
| M0 3.5e+14 fc 0.5 beta 3.2 | [2.4, 11308323.204] | [2383.5, 0.011] | Failed |
| M0 3.5e+14 fc 0.5 beta 3.5 | [2.6, 8642592.064] | [2607.0, 0.009] | Failed |
SHA-256 / 919a904a68b191742980040212a097a400efb018718391d6829d0b1df559b9ce
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
N = 1
observations = []
def solve(m0_nm, fc_hz, beta_kms):
if min(m0_nm, fc_hz, beta_kms) <= 0:
return None
r = 2.34 * beta_kms / 1000.0 / (2 * math.pi * fc_hz)
ds = 7.0 / 16.0 * m0_nm / r ** 3
return [round(r, 1), round(ds / 1e6, 3)]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['M0 1.0e+12 fc 0.5 beta 3.2', [1000000000000.0, 0.5, 3.2], [2383.5, 0.0]], ['M0 1.0e+12 fc 0.5 beta 3.5', [1000000000000.0, 0.5, 3.5], [2607.0, 0.0]], ['M0 1.0e+12 fc 2.0 beta 3.2', [1000000000000.0, 2.0, 3.2], [595.9, 0.002]], ['M0 1.0e+12 fc 2.0 beta 3.5', [1000000000000.0, 2.0, 3.5], [651.7, 0.002]], ['M0 1.0e+12 fc 10.0 beta 3.2', [1000000000000.0, 10.0, 3.2], [119.2, 0.258]], ['M0 1.0e+12 fc 10.0 beta 3.5', [1000000000000.0, 10.0, 3.5], [130.3, 0.198]], ['M0 3.5e+14 fc 0.5 beta 3.2', [350000000000000.0, 0.5, 3.2], [2383.5, 0.011]], ['M0 3.5e+14 fc 0.5 beta 3.5', [350000000000000.0, 0.5, 3.5], [2607.0, 0.009]]], [['M0 1.0e+12 fc 2.0 beta 3.5', [1000000000000.0, 2.0, 3.5], [651.7, 0.002]], ['M0 3.5e+14 fc 0.5 beta 3.2', [350000000000000.0, 0.5, 3.2], [2383.5, 0.011]], ['M0 3.5e+14 fc 0.5 beta 3.5', [350000000000000.0, 0.5, 3.5], [2607.0, 0.009]], ['M0 3.5e+14 fc 2.0 beta 3.2', [350000000000000.0, 2.0, 3.2], [595.9, 0.724]], ['M0 3.5e+14 fc 2.0 beta 3.5', [350000000000000.0, 2.0, 3.5], [651.7, 0.553]], ['M0 3.5e+14 fc 10.0 beta 3.2', [350000000000000.0, 10.0, 3.2], [119.2, 90.467]], ['M0 3.5e+14 fc 10.0 beta 3.5', [350000000000000.0, 10.0, 3.5], [130.3, 69.141]], ['M0 2.0e+17 fc 0.5 beta 3.2', [2e+17, 0.5, 3.2], [2383.5, 6.462]]], [['M0 1.0e+12 fc 0.5 beta 3.2', [1000000000000.0, 0.5, 3.2], [2383.5, 0.0]], ['M0 3.5e+14 fc 0.5 beta 3.2', [350000000000000.0, 0.5, 3.2], [2383.5, 0.011]], ['M0 3.5e+14 fc 10.0 beta 3.5', [350000000000000.0, 10.0, 3.5], [130.3, 69.141]], ['M0 2.0e+17 fc 2.0 beta 3.2', [2e+17, 2.0, 3.2], [595.9, 413.562]], ['M0 2.0e+17 fc 2.0 beta 3.5', [2e+17, 2.0, 3.5], [651.7, 316.072]], ['M0 2.0e+17 fc 10.0 beta 3.2', [2e+17, 10.0, 3.2], [119.2, 51695.192]], ['M0 2.0e+17 fc 10.0 beta 3.5', [2e+17, 10.0, 3.5], [130.3, 39508.992]], ['zero corner', [100000000000000.0, 0, 3.5], None]], [['M0 1.0e+12 fc 2.0 beta 3.2', [1000000000000.0, 2.0, 3.2], [595.9, 0.002]], ['M0 1.0e+12 fc 2.0 beta 3.5', [1000000000000.0, 2.0, 3.5], [651.7, 0.002]], ['M0 1.0e+12 fc 10.0 beta 3.2', [1000000000000.0, 10.0, 3.2], [119.2, 0.258]], ['M0 1.0e+12 fc 10.0 beta 3.5', [1000000000000.0, 10.0, 3.5], [130.3, 0.198]], ['M0 3.5e+14 fc 0.5 beta 3.2', [350000000000000.0, 0.5, 3.2], [2383.5, 0.011]], ['M0 3.5e+14 fc 0.5 beta 3.5', [350000000000000.0, 0.5, 3.5], [2607.0, 0.009]], ['M0 3.5e+14 fc 2.0 beta 3.5', [350000000000000.0, 2.0, 3.5], [651.7, 0.553]], ['M0 2.0e+17 fc 10.0 beta 3.2', [2e+17, 10.0, 3.2], [119.2, 51695.192]]], [['M0 1.0e+12 fc 2.0 beta 3.5', [1000000000000.0, 2.0, 3.5], [651.7, 0.002]], ['M0 3.5e+14 fc 2.0 beta 3.5', [350000000000000.0, 2.0, 3.5], [651.7, 0.553]], ['M0 3.5e+14 fc 10.0 beta 3.2', [350000000000000.0, 10.0, 3.2], [119.2, 90.467]], ['M0 3.5e+14 fc 10.0 beta 3.5', [350000000000000.0, 10.0, 3.5], [130.3, 69.141]], ['M0 2.0e+17 fc 0.5 beta 3.2', [2e+17, 0.5, 3.2], [2383.5, 6.462]], ['M0 2.0e+17 fc 0.5 beta 3.5', [2e+17, 0.5, 3.5], [2607.0, 4.939]], ['M0 2.0e+17 fc 2.0 beta 3.2', [2e+17, 2.0, 3.2], [595.9, 413.562]], ['M0 2.0e+17 fc 2.0 beta 3.5', [2e+17, 2.0, 3.5], [651.7, 316.072]]]]
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 |
|---|---|---|---|
| M0 1.0e+12 fc 0.5 beta 3.2 | [0.0, 32309494868878.42] | [2383.5, 0.0] | Failed |
| M0 1.0e+12 fc 0.5 beta 3.5 | [0.0, 24693120183403.105] | [2607.0, 0.0] | Failed |
| M0 1.0e+12 fc 2.0 beta 3.2 | [0.0, 2067807671608219.0] | [595.9, 0.002] | Failed |
| M0 1.0e+12 fc 2.0 beta 3.5 | [0.0, 1580359691737798.8] | [651.7, 0.002] | Failed |
| M0 1.0e+12 fc 10.0 beta 3.2 | [0.0, 2.5847595895102733e+17] | [119.2, 0.258] | Failed |
| M0 1.0e+12 fc 10.0 beta 3.5 | [0.0, 1.9754496146722483e+17] | [130.3, 0.198] | Failed |
| M0 3.5e+14 fc 0.5 beta 3.2 | [0.0, 1.1308323204107446e+16] | [2383.5, 0.011] | Failed |
| M0 3.5e+14 fc 0.5 beta 3.5 | [0.0, 8642592064191087.0] | [2607.0, 0.009] | Failed |
SHA-256 / e5a186d4d07535e23e4949ed8854393a88f2838142c0b7858989d8814e2d63d1
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
import math
N = 1
observations = []
def solve(m0_nm, fc_hz, beta_kms):
if min(m0_nm, fc_hz, beta_kms) <= 0:
return None
r = 2.34 * beta_kms * 1000.0 / (2 * math.pi * fc_hz)
ds = 7.0 / 16.0 * m0_nm / r ** 3
return [round(r, 1), round(ds / 1e6, 3)]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['M0 1.0e+12 fc 0.5 beta 3.2', [1000000000000.0, 0.5, 3.2], [2383.5, 0.0]], ['M0 1.0e+12 fc 0.5 beta 3.5', [1000000000000.0, 0.5, 3.5], [2607.0, 0.0]], ['M0 1.0e+12 fc 2.0 beta 3.2', [1000000000000.0, 2.0, 3.2], [595.9, 0.002]], ['M0 1.0e+12 fc 2.0 beta 3.5', [1000000000000.0, 2.0, 3.5], [651.7, 0.002]], ['M0 1.0e+12 fc 10.0 beta 3.2', [1000000000000.0, 10.0, 3.2], [119.2, 0.258]], ['M0 1.0e+12 fc 10.0 beta 3.5', [1000000000000.0, 10.0, 3.5], [130.3, 0.198]], ['M0 3.5e+14 fc 0.5 beta 3.2', [350000000000000.0, 0.5, 3.2], [2383.5, 0.011]], ['M0 3.5e+14 fc 0.5 beta 3.5', [350000000000000.0, 0.5, 3.5], [2607.0, 0.009]]], [['M0 1.0e+12 fc 2.0 beta 3.5', [1000000000000.0, 2.0, 3.5], [651.7, 0.002]], ['M0 3.5e+14 fc 0.5 beta 3.2', [350000000000000.0, 0.5, 3.2], [2383.5, 0.011]], ['M0 3.5e+14 fc 0.5 beta 3.5', [350000000000000.0, 0.5, 3.5], [2607.0, 0.009]], ['M0 3.5e+14 fc 2.0 beta 3.2', [350000000000000.0, 2.0, 3.2], [595.9, 0.724]], ['M0 3.5e+14 fc 2.0 beta 3.5', [350000000000000.0, 2.0, 3.5], [651.7, 0.553]], ['M0 3.5e+14 fc 10.0 beta 3.2', [350000000000000.0, 10.0, 3.2], [119.2, 90.467]], ['M0 3.5e+14 fc 10.0 beta 3.5', [350000000000000.0, 10.0, 3.5], [130.3, 69.141]], ['M0 2.0e+17 fc 0.5 beta 3.2', [2e+17, 0.5, 3.2], [2383.5, 6.462]]], [['M0 1.0e+12 fc 0.5 beta 3.2', [1000000000000.0, 0.5, 3.2], [2383.5, 0.0]], ['M0 3.5e+14 fc 0.5 beta 3.2', [350000000000000.0, 0.5, 3.2], [2383.5, 0.011]], ['M0 3.5e+14 fc 10.0 beta 3.5', [350000000000000.0, 10.0, 3.5], [130.3, 69.141]], ['M0 2.0e+17 fc 2.0 beta 3.2', [2e+17, 2.0, 3.2], [595.9, 413.562]], ['M0 2.0e+17 fc 2.0 beta 3.5', [2e+17, 2.0, 3.5], [651.7, 316.072]], ['M0 2.0e+17 fc 10.0 beta 3.2', [2e+17, 10.0, 3.2], [119.2, 51695.192]], ['M0 2.0e+17 fc 10.0 beta 3.5', [2e+17, 10.0, 3.5], [130.3, 39508.992]], ['zero corner', [100000000000000.0, 0, 3.5], None]], [['M0 1.0e+12 fc 2.0 beta 3.2', [1000000000000.0, 2.0, 3.2], [595.9, 0.002]], ['M0 1.0e+12 fc 2.0 beta 3.5', [1000000000000.0, 2.0, 3.5], [651.7, 0.002]], ['M0 1.0e+12 fc 10.0 beta 3.2', [1000000000000.0, 10.0, 3.2], [119.2, 0.258]], ['M0 1.0e+12 fc 10.0 beta 3.5', [1000000000000.0, 10.0, 3.5], [130.3, 0.198]], ['M0 3.5e+14 fc 0.5 beta 3.2', [350000000000000.0, 0.5, 3.2], [2383.5, 0.011]], ['M0 3.5e+14 fc 0.5 beta 3.5', [350000000000000.0, 0.5, 3.5], [2607.0, 0.009]], ['M0 3.5e+14 fc 2.0 beta 3.5', [350000000000000.0, 2.0, 3.5], [651.7, 0.553]], ['M0 2.0e+17 fc 10.0 beta 3.2', [2e+17, 10.0, 3.2], [119.2, 51695.192]]], [['M0 1.0e+12 fc 2.0 beta 3.5', [1000000000000.0, 2.0, 3.5], [651.7, 0.002]], ['M0 3.5e+14 fc 2.0 beta 3.5', [350000000000000.0, 2.0, 3.5], [651.7, 0.553]], ['M0 3.5e+14 fc 10.0 beta 3.2', [350000000000000.0, 10.0, 3.2], [119.2, 90.467]], ['M0 3.5e+14 fc 10.0 beta 3.5', [350000000000000.0, 10.0, 3.5], [130.3, 69.141]], ['M0 2.0e+17 fc 0.5 beta 3.2', [2e+17, 0.5, 3.2], [2383.5, 6.462]], ['M0 2.0e+17 fc 0.5 beta 3.5', [2e+17, 0.5, 3.5], [2607.0, 4.939]], ['M0 2.0e+17 fc 2.0 beta 3.2', [2e+17, 2.0, 3.2], [595.9, 413.562]], ['M0 2.0e+17 fc 2.0 beta 3.5', [2e+17, 2.0, 3.5], [651.7, 316.072]]]]
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 |
|---|---|---|---|
| M0 1.0e+12 fc 0.5 beta 3.2 | [2383.5, 0.0] | [2383.5, 0.0] | Passed |
| M0 1.0e+12 fc 0.5 beta 3.5 | [2607.0, 0.0] | [2607.0, 0.0] | Passed |
| M0 1.0e+12 fc 2.0 beta 3.2 | [595.9, 0.002] | [595.9, 0.002] | Passed |
| M0 1.0e+12 fc 2.0 beta 3.5 | [651.7, 0.002] | [651.7, 0.002] | Passed |
| M0 1.0e+12 fc 10.0 beta 3.2 | [119.2, 0.258] | [119.2, 0.258] | Passed |
| M0 1.0e+12 fc 10.0 beta 3.5 | [130.3, 0.198] | [130.3, 0.198] | Passed |
| M0 3.5e+14 fc 0.5 beta 3.2 | [2383.5, 0.011] | [2383.5, 0.011] | Passed |
| M0 3.5e+14 fc 0.5 beta 3.5 | [2607.0, 0.009] | [2607.0, 0.009] | Passed |
SHA-256 / 416f0f0e52813226c913d6e56937a4827f39f26b1aea9f982c702a85e813937a
Verification & scope
Stipulated deterministic teaching model of a seismological magnitude procedure; constants and tables are fixed by the contract and no claim of agency or standards conformance is made. 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:48:31.759765+00:00.
Case digest / f0693f94333f583b8c24956990079c952b5733c4262bec959c32316cb19cd052