matter-embryogenesis / examples /inspect_release.py
PureOne's picture
Release Matter Embryogenesis v3.0.0: theory, code, data and audit
52fc221 verified
Raw History Blame Contribute Delete
1.05 kB
"""Read recorded evidence; standard library only. Does not simulate growth."""
from pathlib import Path
import json, math
ROOT=Path(__file__).resolve().parents[1]
rows=json.loads((ROOT/'results/gauge/runs.json').read_text())
assert len(rows)==512
assert sum(bool(x['false_local_certificate']) for x in rows)==36
for dim in (2,3):
a={r['seed']:r for r in rows if r['dimension']==dim and r['method']=='projective'}
b={r['seed']:r for r in rows if r['dimension']==dim and r['method']=='conventional_joint'}
assert a.keys()==b.keys() and len(a)==32
for seed in a:
assert {k:v for k,v in a[seed].items() if k!='method'} == {k:v for k,v in b[seed].items() if k!='method'}
print(f"{dim}D: {sum(r['projective_function_pass'] for r in a.values())}/32 projective successes; matched conventional records tie.")
cstar=max(0,1.35*math.exp(-2*.04)-.65)
print(f"G4 ideal bounded-uniform reserve threshold: {cstar:.15f}")
print("512 synthetic records; 36 false accepted differential-bias cases retained. No laboratory evidence implied.")