# The knot in twelve dimensions: files

The records behind section 10 of the Mala Knot Lab findings page, published 2026-09-24.

| file | what it is | who produced it |
|---|---|---|
| `knot12d.py` | The model: the (4, 27) bead pattern placed in 3D, flat 4D, three 12D ring spacings and a random 12D control, with couplings d^(-α). Runs in about four seconds with NumPy and Matplotlib. | Mantri (Claude) |
| `knot12d.json` | The reference output, the file every number on the page is checked against. | Mantri's reference run, 2026-09-23 |
| `run-notes-claude-code.md` | A reproduction on a second machine. Not blind: the reference note was opened before the sealing rule was read, and the notes say so. | Claude Code, 2026-09-24 |
| `exact-thresholds.md`, `threshold-audit.py`, `threshold-audit.json` | A blind audit of the thresholds in exact closed form, with no reference present. | ChatGPT, 2026-09-24 |
| `blind-predictions.md` | The predictions for the dynamics, written and hashed before the run (SHA-256 `9669c1d5…a55ff763`). | ChatGPT, 2026-09-24 |
| `run-notes-chatgpt-blind.md`, `knot12d-chatgpt-blind.json`, `supplemental-analysis.json`, `run-environment.json` | The blind dynamics run with the unchanged script, its output, extra checks and environment. | ChatGPT, 2026-09-24 |
| `diagonal-counterexample.py`, `diagonal-counterexample.md` | The counterexample that defeated the first-pass ceiling as first written: a skew four-cycle with equal edges and equal diagonals shorter than the edges, which flips perfectly. The script checks it numerically; the note derives it exactly. Added 2026-09-26, unedited. | ChatGPT, 2026-09-26, during a literature pass; reproduced by Mantri |

`knot12d.py` writes `knot12d.json` and `knot12d.png` next to itself, and `threshold-audit.py` writes `threshold-audit.json` next to itself, so run them in a copy of this folder if you want to keep the published files.

## Changes made on publication

Nothing numeric was changed. Three kinds of edit were made, all recorded here:

- **Local paths removed.** Absolute paths on the machine that ran the files were replaced with relative ones in `run-notes-chatgpt-blind.md`, `exact-thresholds.md`, `threshold-audit.json`, `run-environment.json` and `threshold-audit.py`.
- **One line of code.** In `threshold-audit.py`, the hard-coded path to the model became `Path(__file__).with_name('knot12d.py')`, so the audit runs from this folder.
- **Renamed on arrival.** The two run-notes files (both originally `run-notes.md`) and ChatGPT's `knot12d.json`, so they do not collide with the reference.

SHA-256 of each file as received, before those edits:

```
0747da40871a4135ee0e29507609d09edf8b5737722c690514ac9a63576813f6  knot12d.py
8dec3b71f0e6cbd6dddd440692e476c93b6b08f75bfc317cfffe9b132a4b1188  knot12d.json (reference)
8a5a7f5ce98b91d494b1eeab35539d1d10d9325f500b397b495075f9bb799c0a  run-notes-claude-code.md
323797375d2a74a879450fa3279a7172df2d56e878abb91cf229ce378c5feae0  exact-thresholds.md
6341564051ff48eab8063af76ed42f992162a2a9120dd9733e50660740fb5ac3  threshold-audit.py
4eb49249f85cb77413f1d67dc7c0de9f4c4000dc713acf91d37715a9248759c3  threshold-audit.json
9669c1d58885c10791c7eac0119f971ec346880fdc96a96acab51ca5a55ff763  blind-predictions.md
6b422184a8f6661fa2597ca8c11042880e0885e2477f73507a405f008c4035b7  run-notes-chatgpt-blind.md
ba63951f53b3d1e7f5e225fb88a5c13452a481f5a17f7b6b66480e04ccfc28a0  knot12d-chatgpt-blind.json
7543891301fa1ae5f0b6acc0523733ffb47252dc8d6fcc5b528b45fa1b3fdbd8  supplemental-analysis.json
f7548f7db8743e83078f043ff5a354a08deafbeb04f4b60d2f0148955e3935e5  run-environment.json
748334205f0d05d38b5e4815c76545057cfe6e13cc9003a84ce847002729bc90  diagonal-counterexample.py
0a8e7e92302e11b790a8cc46f90b273075bdb5aa88f8d15ea82a53eb1f08f3a8  diagonal-counterexample.md
```

`knot12d.py`, `knot12d.json`, `knot12d-chatgpt-blind.json`, `blind-predictions.md`, `supplemental-analysis.json` and the two `diagonal-counterexample` files are unchanged, so their hashes still match.

## Notes for a careful reader

- **A line lost, 2026-09-26.** The page first said the square's first-flip ceiling of 0.962 held for any four-cycle with equal edges and equal diagonals, in any dimension. `diagonal-counterexample.py` defeats that: fold the four-cycle into a squashed tetrahedron with edges 1 and diagonals 2^(-1/6), and the flip is exactly 1 at t = π/2. The ceiling holds when the edges are the four-cycle's shortest distances, which covers every placement in `knot12d.json`. The page records the loss beside the original line.

- **0.886, not 0.887.** The best-spacing threshold is √(1.5717623850894231 / 2) = 0.886499…, which rounds to 0.886. `run-notes-claude-code.md` (and the reference note it quotes) rounds it to 0.887. The page uses 0.886.
- **0.858, not 0.859.** The folded square at 80° gives a first flip of 0.8584981…, which rounds to 0.858. `run-notes-claude-code.md` rounds it to 0.859. The page and its figure use 0.858, and the site's test checks the digit.
- **Two runs, one set of bytes.** The Claude Code reproduction and ChatGPT's blind dynamics run were made on the same machine with the same script and library versions, and their `knot12d.json` files are byte-identical. The blind run's independence lies in its predictions, which were fixed before it ran, not in a separate computation. Against the reference, made on a different machine, 940 numbers were compared: every difference is below 1e-6 except two in the 3D row at tube 1.00, where 27 beads coincide at the centre and the result depends on rounding.
- **Degenerate rows.** The 3D rows at tube 1.00 and 1.50 are not physics (a horn torus and a self-intersecting torus). They are kept in the files and quoted nowhere.
- **Sampled extremes.** Transfer and stay are maxima and minima on a time grid of step 0.01 up to t = 40. `run-notes-chatgpt-blind.md` lists the rows where that grid is too coarse to resolve every frequency (including 3D at tube 0.30 and above).
