Skip to content
← Research programmes

Tally

A research language for exact, replayable physics models.

Tally gives each count a kind and carries the origin of observations through a calculation. It can return a checkable witness when a declared model cannot explain a set of bounded records.

Version 0.3.0 · 1 December 2026 · Research revision b3378b3

Tally source
let required = fraction(3 item, 160 item)
let model_rate = fraction(1 item, 200 item)
check model_rate < required "below the local bound"
below the local bound

The numbers come from the five-setting model below. This snippet checks the comparison exactly.

What the models can show

Contextuality

Program 149 derives the six Peres–Mermin product signs. A parity certificate excludes a whole box of rates by an exact gap of 1/4, even while the usual score obeys its classical bound.

Read the transcript

Local data, global constraint

Program 150 checks 63 individual parity relations and derives one inequality that excludes every point in the box from the local mixture model.

Read the transcript

Imperfect agreement

Program 151 proves that a local model needs at least 3/160 same-setting disagreement for these intervals and constructs a mixture that attains the bound. The noisy quantum model gives 1/200.

Read the transcript

Quantum coherence in a ring

Program 159 rules out independent classical sources for a fully coherent four-station ring. Its 101-station example checks the exclusion with local event probabilities and a 102-bin histogram of detector tags.

Read the transcript

Replay the checks

The ZIP contains the interpreter, its Python helpers, and 11 runnable programs with their expected transcripts. Programs 149–159 cover contextuality, synchrony and quantum networks. Extract the ZIP and run these commands from its root with Python 3.13 or 3.14.

Download the SHA-256 checksum

python tally.py --check
python -X utf8 replay_physics.py --fresh

Evidence and scope

The public snapshot comes from a research revision with 159 numbered models. That revision passed 239 focused regression tests and reproduced 198 transcript checks on Python 3.13 and 3.14. The public ZIP includes the 11 most recent programs from that revision.

Tally is a research prototype. Its certificates establish consequences of the supplied model and measurement assumptions. Apparatus measurements require their own evidence.

Read the November research note

Independent research by Anthony Michael Collado.
Research edition 02 · reviewed 15 October 2026

Edition record ↗