# From Choices to Sums

**Connections to OpenAI's Subset-Sum Algorithms**

Jonathan R. Landers · October 28, 2026

[Read HTML](From_Choices_to_Sums.html) · [Four-page PDF](From_Choices_to_Sums.pdf) ·
[LaTeX source](From_Choices_to_Sums.tex)

The note follows one question: which information lets us resolve many subset
choices together? It develops the deficiency connection to Note V, explains
compatible records and OpenAI's modular checksum, and connects those ideas to
Note VII's reusable geometric table. A derived algorithm combines distinct
exceptional sums with the shared table and gives an explicit runtime bound.
The exposition uses the repository's saved results on support selection,
exact completion and avoided table construction.

This folder contains two papers in the [thirteen-paper research library](../notes/README.md).
*From Choices to Sums* belongs with the exact structural representations;
the runtime-bands note below belongs with the explanations of the observed
difficulty landscape. Both are referenced on the thematic [home page](../index.html).

## Sources

The repository material was read at commit
`4e880b7698e24d8f5ec60347b1c46d847a78e6cd`.
The OpenAI source was read at commit
`7ef5c0cc5ca4b0e072b7a050fca09ab24bc6fa3a` of
[openai/math](https://github.com/openai/math/tree/7ef5c0cc5ca4b0e072b7a050fca09ab24bc6fa3a).
The paper's external manuscript links use that fixed revision.
[SOURCES.json](SOURCES.json) records the exact source paths and local hashes.

The combined algorithm and its bound are a mathematical derivation from the
existing support and table constructions. The empirical paragraphs report
the saved Note V and VII studies. The original
[connections handoff](SUBSET_SUM_OPENAI_CONNECTIONS.md) supplies a longer reading map.

## Four-page runtime note

[Why Subset-Sum Runtimes Form Several Bands (PDF)](Runtime_Distribution_from_Structural_Routes.pdf)
has [editable LaTeX source](Runtime_Distribution_from_Structural_Routes.tex).
It connects the saved 576-input runtime histogram to the reference portfolio's
exit routes, Notes I/V--VII's structural cost bounds, and the two pinned OpenAI
subset-sum manuscripts. It derives a route-mixture identity, a discrete
distribution from distinct-sum counts under a cost model, and the extra
assumption needed for a lognormal mixture. The route counts tabulate saved runs;
the [embedded vector histogram](Runtime_Distribution_Histogram.pdf) locates
exact classes, saved ML flags, and separate historical hard NO cases. The note
also includes the saved [completion-time histogram](../Learned_Solvability_Subset_Sum/visualizations/runtime_histogram_20261030/subset_sum_completion_time_histogram.pdf)
and a [no-fit smooth route-mixture sketch](../Learned_Solvability_Subset_Sum/visualizations/runtime_histogram_20261030/subset_sum_analytical_completion_sketch.pdf).
It explains the persistent narrow spikes and gaps as a question for new-list
tests, while distinguishing completed times from unresolved stopping times.
The note introduces no new solver measurements or model fits. From the
repository root, rebuild the figures with
`python tools/plot_runtime_note_figure.py`,
`python tools/plot_subset_sum_completion_times.py`, and
`python tools/plot_analytical_completion_sketch.py`; then build the note with
two `pdflatex` passes on the TeX file.

To rebuild the runtime-bands PDF without writing LaTeX scratch into the source
folder, run from the repository root after generating any required figures:

```powershell
New-Item -ItemType Directory -Force .build/latex/runtime-bands | Out-Null
Push-Location OpenAI_Subset_Sum_Connections
pdflatex -interaction=nonstopmode -halt-on-error -output-directory=../.build/latex/runtime-bands Runtime_Distribution_from_Structural_Routes.tex
pdflatex -interaction=nonstopmode -halt-on-error -output-directory=../.build/latex/runtime-bands Runtime_Distribution_from_Structural_Routes.tex
Copy-Item ../.build/latex/runtime-bands/Runtime_Distribution_from_Structural_Routes.pdf Runtime_Distribution_from_Structural_Routes.pdf
Pop-Location
```

This is separate from the `--paper connections` target below, which rebuilds
*From Choices to Sums*. No HTML edition of the runtime-bands note is currently
supplied. Both PDF/source pairs are included in staging and catalog checks.

## Rebuild

From the repository root:

```powershell
python build_papers.py --paper connections
python tools/check_links.py
```

The build runs LaTeX twice, enforces a maximum of four PDF pages, and generates
the matching HTML from the same manuscript. Scratch files go under
`.build/latex/openai-connections/`. The dependencies are the repository's
existing `pdflatex` and `pandoc` tools.
