# Operational mathematics: a language built from observation

These are working notes for a mathematical language rebuilt from bench acts and 0/1 records. Every rule carries a
test, and every added premise is named.

## Status (23 November 2026)

- **Exploratory, and not pre-registered.** The work here is definitions, exhaustive finite checks, simulations of
  benches written for this project, and cited observations. **No physical bench has been run.** The kitchen-table
  experiments that would test it are listed in `LANGUAGE.md` §10 and `SLITS.md` §10.
- **The results restate known ones in a new notation.** Each document names the prior work it rebuilds:
  - Boolean algebra and Zhegalkin's normal form;
  - the CHSH local bound 0.75;
  - Tsirelson's bound cos²(π/8) ≈ 0.854, recovered through information causality (Pawłowski et al. 2009);
  - the Born rule's square, from a functional equation under named premises including linearity;
  - Prouhet / Thue–Morse cancellation;
  - shot-noise grain estimation (Schottky, Perrin);
  - operationalism and verificationism.

  None of the documents claims new physics or new mathematics.
- **The claim ledger** (`GROUNDED.md` §4, produced by `grounded.py`) audits 25 hand-entered claims. They come from
  this folder and from `../noise-phase1`. `../neural-qec`, `../tally` and `../chess-proof` are **not** in the
  ledger.
- **Corrected after the 23 November audit:**
  - Bell values: the cited experiments reach 0.759–0.841, not 0.854;
  - the ledger's stated coverage;
  - the time ladder's 48 of 48, which is on reused trials;
  - the grain-size reach in `LADDER.md`;
  - how the `.log` files are made.

## Reading order

| # | Document | What it adds | Run |
|---|---|---|---|
| 1 | `LANGUAGE.md` | v0.1: bench acts (compare, join, fold, count, gears, switches); laws instead of axioms; equality that is not transitive; measurement records with a floor | `python3 bench.py` |
| 2 | `SLITS.md` | v0.2: every record is 0 or 1; operations ⋆ (change) and ∧ (coincidence); the double slit, with a ledger of what was derived and what was added | `python3 slits.py` |
| 3 | `BELL.md` | which 0/1 languages observation already rules out. Every local rule is capped at 0.75. The quantum (Tsirelson) bound is cos²(π/8) ≈ 0.854. The three experiments cited in `bell.log` reach 0.759–0.841: above 0.75, below 0.854 | `python3 bell.py` |
| 4 | `MARKS.md` | v0.3: written syntax, a unique normal form, a prover, information by counting. Tsirelson's 0.854 recovered numerically from information causality ("one sent mark gives at most one mark of knowledge"; Pawłowski et al. 2009), conditional on that principle | `python3 marks.py` |
| 5 | `BORN.md` | why chance goes as amplitude², derived from token conservation and balanced 2- and 3-way splitters under three named premises (including linearity); only the square passes exact ⋆/∧ runs; amplitudes need a phase, not just a sign | `python3 born.py` |
| 6 | `TWOSIDED.md` | calculating from both sides of the phase: the first sign is in no record; the recursive two-sided schedule (⋆ of the step count, the Thue–Morse sequence) cancels smooth errors exactly; white noise and flip imperfections set a floor | `python3 twosided.py` |
| 7 | `LADDER.md` | a ladder of scales: every record has a window; fluctuations reveal grains far below an instrument's step; some coarse rungs have their own law (sometimes the same law again), others certify a hidden finer rung from above; no ladder certifies a bottom | `python3 ladder.py` |
| 8 | `../noise-phase1/TIMELADDER.md` | the ladder in time, applied to the synthetic qubit-noise records: each mechanism has its own shape across averaging windows. On fresh seeds it catches 94 of 96 of the oscillations the residual test missed. It also caught 48 of 48 against the residual test's 11 of 48, but on reused trials. A post-hoc periodogram test catches 46 of 48 of those trials. Its reach is bounded at both ends | `python3 timeladder.py --test2` (in `noise-phase1/`) |
| 9 | `../noise-phase1/LOOPS.md` | a loop counter fixes the time ladder's blind spots: independent loops for the slow end up to one loop, back-to-back loops for longer periods, triggered loops for fast weak disturbances locked to the trigger | `python3 loops.py --test` (in `noise-phase1/`) |
| 10 | `GROUNDED.md` | v0.4, the record language: a word means something only if it reaches an act; a number is a count of a kind at a resolution, with zero needing a positive control; "how many" holds only on a plateau, and 8 + 8 = 16 only where nothing merges; a ledger of 25 claims from this folder and `noise-phase1`, audited as proven, certified, refuted, observed, derived, cited, label or theory | `python3 grounded.py` |
| 11 | `../tally/SYNTAX.md` | Tally, a programmable syntax: no bare numbers, decimals or negatives; every number is a count with kind, window, resolution, procedure and bench; + recounts joined marks, − pairs off, × counts pairs, ÷ gives bands or rates; claims are frozen in a ledger and certified only by later records | `python3 tally.py --check` (in `tally/`) |
| 12 | `../tally/PHYSICS.md` | Tally: executable conditional quantum-walk, photon, particle and atomic models; exact arithmetic, simulations and cited records have separate evidence status. Includes Coulomb–Schrödinger examples through radon. First-principles assumptions, finite searches, approximation limits and unfinished field/measurement dynamics are documented; see `../tally/COLLABORATION.md` for the shared correction and development plan. | `python3 verify.py` (in `tally/`) |

## File map

| Script | Writes | Standard output saved as | Document |
|---|---|---|---|
| `bench.py` | `record.json`, `figure.svg` | `bench.log` | `LANGUAGE.md` |
| `slits.py` | `slits.json`, `slits.svg` | `slits.log` | `SLITS.md` |
| `bell.py` | none | `bell.log` | `BELL.md` |
| `marks.py` | `marks.json`, `marks.svg` | `marks.log` | `MARKS.md` |
| `born.py` | `born.json`, `born.svg` | `born.log` | `BORN.md` |
| `twosided.py` | `twosided.json`, `twosided.svg` | `twosided.log` | `TWOSIDED.md` |
| `ladder.py` | `ladder.json`, `ladder.svg` | `ladder.log` | `LADDER.md` |
| `grounded.py` | `grounded.json` | `grounded.log` | `GROUNDED.md` |
| `tests/test_bell_conditioning.py` | none | none | regression tests for `bell.py` |

## How to run

**Requirements:** Python 3.13. `slits.py`, `born.py`, `twosided.py` and `ladder.py` need numpy; the others use only
the standard library. Each script asserts its stated results and rewrites its own JSON and figure. The `.log` files
are each script's standard output, saved with, for example, `python3 bench.py > bench.log`. Apart from the run-time
line, a rerun reproduces them exactly. `grounded.py` reads the git history of this repository and the result files in
`../noise-phase1`.

```sh
python3 bench.py > bench.log          # likewise slits, bell, marks, born, twosided, ladder
python3 grounded.py > grounded.log    # the ledger; needs the git history
python3 -X utf8 -m unittest discover -s tests -v
```

**Foundations audit, 17 November 2026:** [FOUNDATIONS.md](../tally/FOUNDATIONS.md) maps supplied premises and
unfinished physics bridges. Exact Tally programs 43–46 separate four pairs of claims:
- restricted splitter tests from universal conservation;
- missing coarse state from a finer spatial scale;
- finite-grid charge labels from continuous claims;
- averaged Bell marginals from conditional no-signalling.

The corresponding source notes are corrected. These are counterexamples to inference steps, not claims of new physics
or of mathematical expressive power beyond conventional mathematics.
`python -X utf8 -m unittest discover -s tests -v` runs the Bell verifier regressions here; `../tally/verify.py`
includes them in the combined verification command.
