from research import *
p=json.loads((ROOT/'model/file18_rows.json').read_text()); rr=p['regular_source_rows']['LXX']
s=begin(736,'Transfer the full bridge to native LXX','Does the MT row-to-boundary rule reconstruct the nativeLXX profile without removingCainan?',{'source_names':[r['name'] for r in rr],'Cainan':'nativeON','terminal_lower_pair':[2433,2166],'Lamech':'182/753'},['File18 §§4.1,6D; C733–C735'])
names=[r['name'] for r in rr]+['Abraham']; R=[r['birth_BC']+215 for r in rr]+[2166]; L=[r['L_ledger'] for r in rr]; C=[2435+sum(L[i:]) for i in range(len(L))]+[2435]
eff=[r['b_ledger']+(2 if r['name']=='Noah' else 0) for r in rr]; h=[l-b for l,b in zip(L,eff)]; G=[c-2-r for c,r in zip(C,R)]
literal_checks={n:C[names.index(n)] for n in ['Adam','Lamech','Cainan2','Peleg']}
finish(s,{'names':names,'lower_mode_bridge':G,'row_generators':h,'source_center_checks':literal_checks},'The identical rule generates all21 nativeLXX comparisons, including theCainan330 remainder contribution. Four separately printed cumulative nodes confirm the reconstructed chain. The resulting Creation bridge9400 belongs to the nativeLXX state, rather than being forced toMT9890.','Transfer the same rule toSP while keeping its inclusive and primaryNoah correction explicit.',{'regular_edges':[R[i]-R[i+1] for i in range(len(rr))]==eff,'source_nodes':literal_checks=={'Adam':14896,'Lamech':8048,'Cainan2':5280,'Peleg':3856},'bridge':[267+sum(h[i:]) for i in range(len(h))]+[267]==G})
