# Finite certificates for *Four powers of two in the Linnik–Goldbach problem under GRH* ## File names The archive accepts only certain file types, so two files carry an added `.txt`: `period.cpp.txt` is the file `period.cpp` and `SHA256SUMS.txt` is the file `SHA256SUMS` named in the commands and notes below. The binary table `tables.bin` (5,062,176 bytes) is not included: `tables.py` writes it, and `SHA256SUMS` records its SHA-256, `21fce370e4a66ffd4e315ceea1d24a7f4c81f09622e2e2e2cd3467b6646bb1cb`. From this directory, restore the original names and the table with the following commands. ```sh cp SHA256SUMS.txt SHA256SUMS cp period.cpp.txt period.cpp python3 -B tables.py tables.bin ``` ## Reproduction After restoring them, run the following commands from this directory. ```sh sha256sum -c SHA256SUMS python3 -B verify.py ``` Use Python 3.9 or later, its standard library, and a C++17 compiler supporting signed 128-bit integers on a little-endian host. The default compiler is `c++`. Set `CXX` to select another compiler. Run Python with assertions enabled. The driver compiles the C++ verifier with assertions enabled. It uses a temporary directory for its generated table and executable and removes that directory when it finishes. All calculations run on one thread. A successful run ends with `PASS all finite inequalities`. ## What is verified | File | Purpose | |---|---| | `verify.py` | Runs the table construction, scalar and period-two transfers, rectangle coverage, direct tuple checks, major-arc arithmetic and final budgets. | | `four_power_check.py` | Rational bounds for π, log 2, and the trigonometric table; integer row inequalities for the scalar operator; the rational enclosure of the signed quadratic on 20,000 panels. | | `tables.py`, `tables.bin` | Rebuildable cosine and exponential lookup table. The driver constructs it anew and compares every byte against the supplied file before using it. | | `scalar.tsv` | 65 rows giving a tilt, transfer ratio and linear support for each scalar direction. | | `period.tsv`, `period.cpp` | 5,703 rational vertex witnesses, the integer verifier for both alternating operators, and the cover of each of 65 parameter rectangles. | | `linnik_check.py` | Exact cyclic convolutions, Ramanujan transforms, minima over the full permissible target class for each denominator pair, retained masses, outward tail estimates, and the two signed-to-pure count conversions. | | `SHA256SUMS` | SHA-256 of every other file named in this table, including this README and the table written by `tables.py`. | The analytic inputs are statements of the cited works. This package certifies the finite inequalities conditional on those inputs. It uses $A(1)<0.27926$ and $A(2)<0.05549$ as quoted by Johnston–Trudgian §3.1 from Khalfalah–Pintz Theorem 2. The calculation on multiples of six relaxes the second bound to $0.0555$. The all-even tail uses $0.05549$ before the radical estimates and final rounding. ## Data conventions Both witness files contain tab-separated signed decimal integers without headers. Reciprocal scales below are exact. | Column in `scalar.tsv` | Meaning | |---|---| | 1 | Direction $j$, from $0$ to $64$, angle $2\pi j/128$. | | 2 | $10^3\tau$, exponential tilt. | | 3 | $10^9 R$, upper row ratio for a positive vector on 8,192 cells. | | 4 | $10^8 k_j$, support bound for the real projection. | The scalar verifier constructs a positive integer vector by 72 normalised iterations with scale $10^{18}$. It compares every row against the supplied $R$ and checks $R\le\exp(\tau k_j-.4002\log 2)$ by a lower Taylor sum. Conjugation supplies the other directions. The first-quadrant Taylor calculation provides the cosine and sine bounds used to enclose the half-planes and the quadratic over the upper half-disk. | Column in `period.tsv` | Meaning | |---|---| | 1 | Direction $j$, from $0$ to $64$. | | 2, 3 | $1024s,1024q$, real vertex coordinates in $[-1,1]\times[0,1]$. | | 4 | Number of equal output cells in each alternating operator. | | 5, 6 | $10^4\lambda,10^4\kappa$, tangencies for the two negative squares. | | 7 | $10^4\tau$, common exponential tilt. | | 8 | Vertex bound in units of $10^{-9}$, before adding $10^{-5}$. The verifier uses $(\mathrm{column}\ 8+10000)/10^9$ as the actual upper bound. | Each row determines both operators. After 25 pairs of integer iterations on scale $10^{10}$, the verifier computes upper ratios for the two positive vectors and tests the product against a lower exponential bound. The four corner bounds plus $((\Delta s)^2+.73(\Delta q)^2)/4$ cover each rectangle. Subdivision continues until the bound holds throughout the angle’s full rectangle. The final projection is at most $219097314/10^9$. The paper explains the passage from projected supports to the complex modulus and from the vertex count to the exceptional measure. The binary table begins with 65,536 little-endian signed 32-bit cosine values on a full turn, in units of $10^{-8}$. The error is less than two units. Two blocks follow, for positive and negative exponents in that order. Each has 150,001 pairs of little-endian unsigned 64-bit integers, indexed from zero. At index $k$ the first integer bounds $10^7\exp(\pm k/10000)/2$ from above and the second bounds $10^{10}\exp(\pm k/10000)$ from below. The table has 5,062,176 bytes. To regenerate just this file, run `python3 -B tables.py path/to/output.bin`. ## Expected endpoints | Quantity | Direction | Value | |---|---|---:| | Scalar squared modulus outside the exceptional set | upper | 0.051269390163 | | Period-two real projection outside the exceptional set | upper | 0.219097314 | | Common minor-arc energy | upper, up to $o(1)$ | 3.231614382 | | Major term on multiples of six | lower, up to $o(1)$ | 0.735173480000 | | Signed retained main term on other even targets | lower | 0.712733093751 | | Second and fourth tail masses | upper | 0.006404749431 and 0.001101524575 | | Absolute arithmetic tail | upper | 0.003717378704 | | Major term on other even targets used in the theorem | lower, up to $o(1)$ | 0.708986936100 | | Signed margin on the latter targets | exact conservative subtraction | 0.0006170635656 | The retained sum covers 245 odd squarefree integers $\ell\le801$ coprime to 3, paired with $3\ell$. Signed arrays are convolved by exact integer packing. Direct tuple enumeration also checks the transform at $1,3,5,7,15,21,31$. Square roots in the arithmetic tail are rounded upwards on scale $10^{15}$. The final lower bounds for the ordered weighted count divided by $2NL^4$ are **0.0015970152 on multiples of six** and **0.0003566841 on all even integers**.