from research import *
s=begin(797,'Recover the positive BJ reflection object','Which four source comparison nodes actually form a closed reflection?',{},['File53 §3A.4 lines342–347'])
p=json.loads((ROOT/'model/jubilees_inputs.json').read_text());r=p['tables']['compressed_comparison']['rows']
out=[{'name':x['cells'][0],'left':int(x['cells'][1]),'right':int(x['cells'][2]),'BC':3799-int(x['cells'][1])} for x in r]
coords=[x['BC'] for x in out];center=F(3799+1399,2);reflected=[2*center-x for x in coords]
a=artifact('model/BJ_comparison_reflection.json',json.dumps({'nodes':out,'center':int(center),'construction':'original nodes measured from compressed Creation3799 to rest1399'},indent=2)+'\n')
finish(s,{'reflection':a,'coordinates':coords,'center':center,'reflected':reflected},'The selected four-node comparison closes under reflection about2599. Its table explicitly uses original Noah/Shem/Flood nodes with compressed Creation, so closure belongs to this comparison object.','Test whether this object is the same as the uniformly expunged chronology.',{'closure':set(reflected)==set(coords),'both_arms':all(x['left']+x['right']==2400 for x in out)})
