from research import *
s=begin(601,'Generate the full-resolution weekly boundaries','Does one count rule reproduce the eight source boundaries on both carriers?',{'terminal_AD':65,'g':[70,72],'embedded_rail':110},['File68 Appendix J.1–J.3'])
t=json.loads((ROOT/'prep/file68_69_source_tables.json').read_text())['file68_full_resolution_week_boundaries'];out=[]
for r in t:
 k=r['k'];v=[65-(49-7*k)*u for u in [180,182]];assert v==[r['primary']['a'],r['companion']['a']];out.append([k,*v,v[0]-v[1]])
finish(s,{'civil_coordinates_and_gap':out,'gap_rule':'98−14k'},'All sixteen weekly coordinates and the98-to0 companion convergence follow from the common terminal and remaining generation count. The source full-resolution weeks1260/1274 differ from weekly diagonals600/614.','Reconstruct the primary weekly Enoch cells with their declared residual.',{'coverage':len(out)==8,'gap_rule':all(row[-1]==98-14*row[0] for row in out)})
