from research import *
s=begin(1291,'Construct the NT and count primitive-register module','What sourceinformation issharedby chronologyandcountedlists?',{},['C1290','inherited/model/structural_transfer_inputs.json','prep/nt_source_transfer.json'])
p=json.loads((ROOT/'inherited/model/structural_transfer_inputs.json').read_text());nt=json.loads((ROOT/'prep/nt_source_transfer.json').read_text());module={'Esau':{'names':p['Esau_names'],'counts':p['Esau_counts'],'declared_category_orders':{k:p[k] for k in ['clean_order','female_order','unclean_order']}},'Tishri':{'species_totals':p['Tishri_species_totals'],'template_matrix':p['Tishri_template_matrix'],'role':'species/occasiontemplateanddeclaredorder'},'Toledot':{'occurrence_to_section':p['toledot_occurrence_to_section'],'role':'occurrencemeasurewithmultiplicity,notsetcardinality'},'NT':{'full_chart_rows':len(nt['full_NT_source_chart']),'shared_comparison_names':nt['scope']['shared_domain'],'unit':70,'role':'schematicorderedslotswithsourceopening6BC','source_scope':nt['scope']['NT']},'common_interface':'Selectameasureonsource-orderedlabels, thenaccumulateorgroupwithoutlosingcategoryormultiplicity.'}
a=artifact('model/primitive_count_module.json',json.dumps(module,indent=2)+'\n')
finish(s,{'count_module':a},'Thecountregister showswhat thegrammar carriesoutside genealogy: sourceorder, category, multiplicity andchosenunit. Thosepremises let thesameaccumulationmethod describeNTslots andclassifiedlists withoutturningthemintoidenticalchronologies.','Add thefinitevariantmodule withitsnestedscopes andderivedcalibrationrelations.',{'Esau9':len(p['Esau_counts'])==len(p['Esau_names'])==9,'NT78':len(nt['full_NT_source_chart'])==78,'Toledot11':len(p['toledot_occurrence_to_section'])==11})
