Supporting code and figures for the constant pages 1a, 1b and 1c of teorth/optimizationproblems. Per that repository's CONTRIBUTING.md (markdown-only changes; supporting code and data live outside the main repo), these files are hosted here, in the authors' own repository.
Paper: doi:10.5281/zenodo.23676163 (V5, Appendices E–F), framework DOI 10.5281/zenodo.23603555; C₁c note doi:10.5281/zenodo.23694729.
| file | purpose |
|---|---|
AppendixCD_RiemannSum_PowerOrder_Verification.py |
Appendices C–E: Riemann-sum ladder for the sole input |
AppendixF_C1a_Scissors_Verification.py |
Appendix F: C₁a scissors structure — endpoint reverse monotonicity, analytic in-band status of |
c1c_bounds_check.py |
C₁c: recomputes the upper anchor and the lower windows from the single input |
c1a.html, c1b.html
|
Squeeze-figure pages (clamping windows vs |
Usage:
python scripts/AppendixCD_RiemannSum_PowerOrder_Verification.py
python scripts/AppendixF_C1a_Scissors_Verification.py
python scripts/c1c_bounds_check.pyThe error bound quoted in the paper,
-
$N \lesssim 10^{7}$ : truncation dominates; the$1/(3N^2)$ bound is tight and the measured error sits below it. -
$N \gtrsim 5\times10^{7}$ (e.g. the$N = 10^{8}$ row): rounding dominates; measured$|\pi_k - \pi| \approx 3.6\times10^{-16}$ reflects the float64 noise floor, not a failure of the quadrature.
Certified rows therefore use decimal 60-digit arithmetic (default in the scripts above); float64 rows are indicative only. The clamping-window conclusions are unaffected: for C₁a the scissors direction is fixed analytically by
Update (2026-11-06) — certified layer. The rigorous layer now lives in ../certificates/: Arb ball arithmetic (200-bit, self-certified radii) cross-checked by an independent mpmath interval implementation replays every Appendix E row including ../certificates/results/latest/summary.md.
Thanks to @chessing234 (teorth#288) for prompting this clarification.