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 762 of 1000. Catalog page range 6001-7000.
Extracted text
measure_pharma_024_fast.py
VOYNICH RESEARCH ARCHIVE | 16 SEPTEMBER 2026 2
v.FULL)>0).sum()),'permutation_p':pv,'null_mean':float(null.mean())})
pd.DataFrame(fold_rows).to_csv(OUT/'fold_models.csv',index=False);pd.DataFrame(pred_rows).to_csv(OUT/'p
redictions.csv',index=False)
summary={'test':'MEASURE-PHARMA-024','seed':SEED,'null_replicates':1000,'results':summaries}
summary['pass']=all(s['series_positive_folds']>=4 and s['full_vs_repetition_mean_bits']>0 and
s['permutation_p']<.05 for s in summaries)
(OUT/'summary.json').write_text(json.dumps(summary,indent=2))
lines=['# MEASURE–PHARMA–024','',('**PASS**' if summary['pass'] else '**FAIL / NOT PROMOTED**'),'',
'Prospective test of whether quantity-like variable-frame series distinguish Pharma from Herbal after
charging line length, transcription resolution, and already-known repetition. No illustrations or
proposed meanings were used.','', '## Results','']
for s in summaries:
lines += [f"### {s['witness']}",'',f"- Series over baseline: {s['series_vs_base_mean_bits']:+.6f}
bits; {s['series_positive_folds']}/5 folds",f"- Full over repetition:
{s['full_vs_repetition_mean_bits']:+.6f} bits; {s['full_positive_folds']}/5 folds",f"- Conditional
1,000-permutation p: {s['permutation_p']:.6f}",f"- {s['n_lines']} lines, {s['n_folios']} folios
({s['pharma_lines']} Pharma lines)",'']
lines += ['## Decision','', 'Promotion required concordant ZL and GC: series positive in at least 4/5
folio-held-out folds, full model improving over repetition, and conditional p<.05. Ordinary repetition
is not new semantic evidence.','', '## Original-rule audit','', 'The six-rule ledger is unchanged. This
test cannot add a semantic or measurement rule unless the prospective gate passes in both witnesses.']
(OUT/'report.md').write_text('\n'.join(lines))
files=sorted(p for p in OUT.iterdir() if p.is_file() and p.name!='SHA256SUMS.txt');(OUT/'SHA256SUMS.txt
').write_text('\n'.join(f'{hashlib.sha256(p.read_bytes()).hexdigest()} {p.name}' for p in files)+'\n')
print(json.dumps(summary,indent=2))
if __name__=='__main__':main()