Skip to content

The natural precision polynomial

This chapter proves the natural half of input \(\mathsf C\): an explicit polynomial \([\![\mathcal N]\!]\) in \(1{,}305{,}811\) variables, the first five being inputs, has a zero with natural witnesses exactly at the five-tuples accepted by the exact precision computation (equation (C.4) of the manuscript). Following the construction principle of the formalization, \(\mathcal N\) is not read from the saved file: it is defined as the output of a compiler applied to explicit programs, and the saved file construction/precision-natural-polynomial.json only cross-checks its shape.

The construction has three layers, and the chapter proves each separately.

  1. A generic compiler. Any primitive register program is compiled into a natural circuit whose natural zeros are exactly its accepting inputs. Runs are packed into base-\(B\) integers; the packing conditions are bit masks and exponentials; masks become binomial coefficients through Lucas's criterion; binomial coefficients become base-\(B\) digits of a power; and every power is one call of a fixed power template, the Matiyasevich-Robinson exponential relation of the Archive of Formal Proofs development written with the alpha sequence.
  2. Specific programs. A universal interpreter, a wrapper that inverts four Cantor pairs, and a precision program written in an ideal register language and lowered to a primitive program; each is verified against its specification, the last against the mathematical precision relation.
  3. Counts. The variable, gadget and node counts of the compiled circuits, needed by the witness accounting of the specification chapter.

The manuscript does not compile the precision machine directly. It compiles a fixed universal interpreter (\(1{,}399\) instructions, \(204\) registers) once, and specializes the resulting universal halting polynomial at the code of the wrapper. This is forced by the variable budget: the interpreter costs \(15{,}845\) power calls, whereas compiling the wrapper itself (\(146{,}780\) instructions, \(23{,}633\) registers in the manuscript's version) would cost, by the count \(2+3(m+4r+3s)\) of the packed construction, at least \(2+3(146{,}780+4\cdot23{,}633)=723{,}938\) power calls even with no decrement instruction. The precision program enters the polynomial only through one integer coefficient, the program literal \(c_3\), which is never evaluated; neither are the astronomically large constants \(D\), \(Q_0\) or \(A^{(0)}_{\rm ht}\) of the precision computation, which the program evaluates with caps.

The exact precision computation

The precision relation decodes five naturals into \((n,\kappa,a,l,j)\), applies the early tests, and compares two exact rational quantities built from the local parameter \(z=-x/y\) at multiples of \(P_0\). The exact decision program computes it with integer pairs, Jacobian coordinates and capped arithmetic.

The alpha and power formulas

The power template rests on the alpha sequence \(\alpha_b\), its Pell equation, divisibility and period, the fifteen-condition alpha formula (C.2) and the power formula (C.3); the binomial-digit equation and Lucas's criterion turn bit operations into powers.

Natural constructions and the power interface

The compiler's builder writes formulas with fresh natural witnesses; the macros mean what they should; the power template is the compiled power macro; and a hierarchical construction calls it on private blocks of \(79\) variables.

The packed-history compiler

A finite run of a primitive program is packed into register and state histories; masks, the nonzero indicator, branch histories and two families of transition equations characterize accepting runs.

Programs, lowering and the wrapper

The ideal register language, its lowering to primitive programs, the precision program, and the Cantor wrapper.

The universal interpreter and the five-input circuit

The program numbering, the interpreter, the universal halting circuit, its specialization at the wrapper code, and the node statistics.

Equation (C.4)

The four reductions compose: the specialized circuit has a natural zero at \(c\) iff the halting circuit has one at \((c_3,\operatorname{enc}_5(c))\), iff the wrapper halts on \(\operatorname{enc}_5(c)\), iff \(c\) is accepted.

TheoremSemantics of the natural precision polynomial#✓

Let \(\mathcal N\) be the five-input natural precision circuit, with variable count \(1{,}305{,}811\) and polynomial \([\![\mathcal N]\!]\in\mathbb Z[X_0,\dots,X_{1305810}]\) (call nodes denoting literal substitution into the power template). For every \(c\in\mathbb N^5\), $\(\bigl(\exists z\in\mathbb N^{1305806},\ [\![\mathcal N]\!](c,z)=0\bigr)\iff\operatorname{accepts}(c),\)$ where \(\operatorname{accepts}\) is the precision relation: with \((n,\kappa,a,l,j)\) the signed decoding of \(c\), the early tests \(n\notin\mathcal C\), \(\kappa\ne0\), \(a,l\ge1\), \(j=na\), the admissibility of \(l,a,j\), and the strict tests \(|r(a,j)-n|<\epsilon_l\) and \(4\epsilon_l<4^{-A^{(0)}_{\rm ht}|\kappa F(n)|^{24}}\).

This is equation (C.4), the natural half of input \(\mathsf C\). Its proof has no height, restricted-converse or rational-model premise: the height constant enters only as a fixed integer expression computed with caps, and admissibility replaces the generator theorem. The witnesses are natural numbers; the rational translation is a separate statement. Admissibility is part of the relation so that the theorem needs no input about \(P_0\); under the generator theorem it follows from the early tests (admissibility of nonzero indices).

Proof sketch. By the specialization statement, \(Z_{\mathcal N}(c)\iff Z_{\mathcal H}(c_3,\operatorname{enc}_5(c))\) with \(c_3=\operatorname{code}(\mathcal W)\). By the semantics of the universal halting circuit this is \(\operatorname{halts}(c_3,\operatorname{enc}_5(c))\), which by the codes of primitive programs is "the wrapper halts on \(\operatorname{enc}_5(c)\)", which by the correctness of the wrapper is \(\operatorname{accepts}(c)\). The number \(1{,}305{,}806\) of witness coordinates is the variable count \(1{,}305{,}811\) of \(\mathcal N\) minus its five inputs.

theorem natural_polynomial_semantics (c : Fin 5 → ℕ) :
    precisionCircuit.NatRel powerTemplate c ↔ Precision.accepts c
theorem natural_polynomial_semantics' (c : Fin 5 → ℕ) :
    (∃ z : Fin 1305806 → ℕ,
      MvPolynomial.eval (fun i => (NatCircuit.natPoint 5 1305806 c z i : ℤ))
        (precisionCircuit.poly powerTemplate) = 0) ↔ Precision.accepts c
Uses 8 · Used by 5

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.