Voynich Master Archive - Volume 07 - Pages 6001-7000
Test CSV, JSON, and Markdown records. Sections carry a Source path and a SHA-256 line.
PDF page 337 of 1000. Catalog page range 6001-7000.
Extracted text
run_boundary_free_relational_expansion_046.py
VOYNICH RESEARCH ARCHIVE | 16 SEPTEMBER 2026 2
)
old=pd.DataFrame({'record_id':prior.record_id,'folio':prior.folio,'zl_line':prior.zl_line,'gc_line':pri
or.gc_line,'keys':prior['keys'],'zl_atom_stream':prior.zl_atom_stream,'gc_atom_stream':prior.gc_atom_str
eam,'atom_jaccard':prior.atom_jaccard,'atom_lcs':prior.atom_lcs})
eight=pd.concat([old,nd],ignore_index=True);eight.to_csv(OUT/'eight_record_atom_ledger.csv',index=False
)
z=[x.split(' | ') for x in eight.zl_atom_stream];g=[x.split(' | ') for x in
eight.gc_atom_stream];obs=float(eight.atom_jaccard.mean());rng=np.random.default_rng(SEED);null=[]
for _ in range(REPS):
p=rng.permutation(len(g));null.append(float(np.mean([d32.multiset_jaccard(z[i],g[j]) for i,j in
enumerate(p)])))
pv=float((1+sum(x>=obs for x in null))/(REPS+1));pd.DataFrame({'replicate':range(REPS),'mean_atom_jacca
rd':null}).to_csv(OUT/'eight_record_pairing_null.csv',index=False)
atom=pd.DataFrame({'record_id':eight.record_id,'zl_residual':eight.zl_atom_stream,'gc_residual':eight.g
c_atom_stream})
train=atom.iloc[:6];pros=[]
for _,r in atom.iloc[6:].iterrows():
lb,lf,p=r36.score(r,r36.fit(list(train.itertuples())));pros.append({'record':r.record_id,'n_zl_atoms':
len(p),'baseline_bits':lb,'atom_role_bits':lf,'gain_bits':lb-lf})
pd.DataFrame(pros).to_csv(OUT/'two_prospective_atom_roles.csv',index=False)
folds=[]
for i,r in atom.iterrows():
lb,lf,p=r36.score(r,r36.fit(list(atom.drop(i).itertuples())));folds.append({'heldout_record':r.record_
id,'n_zl_atoms':len(p),'baseline_bits':lb,'atom_role_bits':lf,'gain_bits':lb-lf})
fd=pd.DataFrame(folds);fd.to_csv(OUT/'eight_record_atom_role_loo.csv',index=False)
ledgerpass=bool(len(nd)==2 and all(nd.atom_jaccard>=.5) and all(nd.atom_lcs>=.75) and
pv<.05);rolepass=bool(all(x['gain_bits']>0 for x in pros) and fd.gain_bits.mean()>0 and
(fd.gain_bits>0).sum()>=6)
summary={'test':'BOUNDARY-FREE-RELATIONAL-EXPANSION-046','dual_atom_key_hits':len(hd),'new_physical_rec
ords':len(nd),'records_before':6,'records_after':len(eight),'mean_atom_jaccard':obs,'pairing_permutation
_p':pv,'prospective_role_results':pros,'loo_mean_gain_bits':float(fd.gain_bits.mean()),'positive_loo_fol
ds':int((fd.gain_bits>0).sum()),'ledger_pass':ledgerpass,'portable_atom_role_pass':rolepass,'decision':'
FULL_PASS' if ledgerpass and rolepass else 'LEDGER_PASS_ROLE_FAIL' if ledgerpass else
'FAIL','boundary':'Exact boundary-free anonymous atom relations only; no semantic gloss or
plaintext.'};(OUT/'summary.json').write_text(json.dumps(summary,indent=2))
report=['# BOUNDARY-FREE-RELATIONAL-EXPANSION-046','',('**FULL PASS — EIGHT-RECORD RELATIONAL LEDGER +
PORTABLE ATOM ROLES**' if ledgerpass and rolepass else '**LEDGER PASS; ROLE EXTENSION FAILS**' if
ledgerpass else '**FAIL**'),'','Exact label atom sequences were matched in the nearest prose atom
stream without respecting transcription word boundaries. No atom normalization or glyph-family merger
was used.','',f'- Dual-witness atom key hits: {len(hd)}',f'- New physical records: {len(nd)}',f'-
Ledger: 6 -> {len(eight)}',f'- Mean atom Jaccard: {obs:.6f}',f'- Pairing p: {pv:.6f}',f'- Prospective
gains: '+', '.join(f"{x['record']} {x['gain_bits']:+.6f}" for x in pros),f'- Eight-record LOO mean
gain: {fd.gain_bits.mean():+.6f}; positive: {(fd.gain_bits>0).sum()}/8','','## Boundary','','This
recovers anonymous label-to-record relations and atom retention behavior. It does not identify words or
meanings.','','## Rule audit','',('CORE PRESERVATION and CONTEXTUAL INTERNAL REALIZATION both
strengthen below token boundaries; six rules remain.' if ledgerpass and rolepass else 'CORE
PRESERVATION strengthens on a ledger pass. CONTEXTUAL INTERNAL REALIZATION strengthens only if the role
gate passes. Six rules remain.')];(OUT/'report.md').write_text('\n'.join(report)+'\n')
pd.DataFrame([{'test':'BOUNDARY-FREE-RELATIONAL-EXPANSION-046','rule':'CORE
PRESERVATION','status':'STRENGTHENED' if ledgerpass else 'UNCHANGED','evidence':f'{len(nd)} new
exact-atom physical records; pairing p={pv:.6f}','live_rule_count':6},{'test':'BOUNDARY-FREE-RELATIONAL-
EXPANSION-046','rule':'CONTEXTUAL INTERNAL REALIZATION','status':'STRENGTHENED' if rolepass else
'UNCHANGED','evidence':f"prospective positive={all(x['gain_bits']>0 for x in pros)}; LOO
positive={(fd.gain_bits>0).sum()}/8",'live_rule_count':6}]).to_csv(OUT/'rule_recovery_audit.csv',index=F
alse)
files=sorted(x for x in OUT.iterdir() if x.is_file() and x.name!='SHA256SUMS.txt');(OUT/'SHA256SUMS.txt
').write_text('\n'.join(f'{hashlib.sha256(x.read_bytes()).hexdigest()} {x.name}' for x in
files)+'\n');print(json.dumps(summary,indent=2))
if __name__=='__main__':main()