from fractions import Fraction as Q def run(load,check): targets=load('C286_DATA.json')['target_register'];rows=[] for source,base,wanted in [('Shem_ON',6350,'Noah birth'),('Flood_OFF',5290,'Flood')]: for j in range(8): q=-base+j;image=q+13*529;required=8*529-image hits=[t for t in targets if t['center']==required and (t['role']==wanted or wanted=='Flood' and t['role'].startswith('Flood'))] rows.append({'source':source,'index':j,'signed_source':q,'translated13K':image,'required_regular':required,'matches':hits}) hs=[r for r in rows if r['matches']] check('sixteen source requirements',len(rows)==16) check('two exact source matches',[(r['source'],r['index'],r['required_regular']) for r in hs]==[('Shem_ON',0,3705),('Flood_OFF',0,2645)]) check('distinct correct source roles',hs[0]['matches'][0]['tradition']=='SP' and hs[0]['matches'][0]['rail']=='companion' and hs[1]['matches'][0]['tradition']=='MT' and hs[1]['matches'][0]['role']=='Flood close') coords=[hs[0]['translated13K'],hs[1]['translated13K'],hs[1]['required_regular'],hs[0]['required_regular']] check('fixed symmetric four points',coords==[527,1587,2645,3705] and coords[0]+coords[3]==coords[1]+coords[2]==4232) check('palindromic gaps',[b-a for a,b in zip(coords,coords[1:])]==[1060,1058,1060]) for e in [Q(-1,4),Q(1,4)]:check(f'physical reversed pairs {e}',4232-(coords[0]+e)==coords[3]-e and 4232-(coords[1]+e)==coords[2]-e) check('allK condition fails source first leg',6350-5290==1060 and 1060%529==2) return {'source_requirements':rows,'comparison_count':16*len(targets),'matching_requirements':2,'complete_four_node_arrangements':1,'ordered_centers':coords,'gaps':[1060,1058,1060],'source_widths':{'first':1060,'second':7935,'matching_cross':8995,'outer':10055},'scope':'No bridge, axis or source coordinate adjusted; only independent existing annual indices admitted.'}