**No integer polynomial can reproduce a witness that violates the difference
ProvedFreeWitness.not_polynomial_of_not_dvdaether-catalogmachinelearning
No integer polynomial can reproduce a witness that violates the difference
divisibility. For P ∈ ℤ[X] one always has a - b ∣ P a - P b; so a single pair of
moduli where the witness difference is not divisible by the modulus difference rules out
every polynomial formula. (This is the sharp, unconditional form of the congruence
separation proposed in §5 of the paper.)
theorem FreeWitness.not_polynomial_of_not_dvd{W : ℕ → ℤ} {S : Set ℕ} {N₁ N₂ : ℕ}
(h₁ : N₁ ∈ S) (h₂ : N₂ ∈ S)
(hdvd : ¬ ((N₁ : ℤ) - N₂ ∣ W N₁ - W N₂)) :
∀ P : Polynomial ℤ, ¬ (∀ n ∈ S, W n = P.eval (n : ℤ)) := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source MachineLearning/FreeWitnessTraceLemma.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from MachineLearning/FreeWitnessTraceLemma.lean import Mathlib import Definitions.Def_MachineLearning_FreeWitnessTraceLemma import Definitions.Def_MachineLearning_HalfPlaneClosedForm /-! # The CRT-multiplicative free-witness classification: the trace lemma This file formalises the *abstract skeleton* of the free-witness classification of `16_FreeWitness_Classification.md`. The informal claim is: > a counting aggregate over a CRT-separable domain whose local weights are > non-polynomial and CRT-multiplicative is a "free witness": it determines the > factorisation of a semiprime, and it is not a polynomial function of the modulus. Both halves of that claim are made precise and proved here, in the only regime where the claim has content, namely semiprimes `N = p q`: * `SemiprimeWitness` — a value function `W : ℕ → ℤ` on moduli together with a *local weight* `w : ℕ → ℤ`, such that `W (p q) = w p * w q` for distinct odd primes. This is the "CRT-multiplicative" hypothesis, stripped of any particular model. * `SemiprimeWitness.powerSum_recovery` — **the trace lemma in its general form.** If the local weight has the *power shape* `w x = x ^ k + c` with `c ≠ 0`, then `c * (p ^ k + q ^ k) = W (p q) - (p q) ^ k - c ^ 2`. The witness value therefore hands over one factor-secret coordinate, the power sum `p ^ k + q ^ k`, and nothing else is needed. * `SemiprimeWitness.trace_recovery` — the case `k = 1`: the *trace* `s = p + q` is read off from `W (p q)`. * `vieta_roots`, `pair_determined_of_sum_prod` — once the trace is known both factors are pinned down: they are the roots of `X ^ 2 - s X + N`, and no other pair of positive integers has that sum and that product. This is the "information content of every witness is one factor-secret coordinate" statement. * `not_polynomial_of_not_dvd` — **the polynomial barrier, in sharp form.** For an integer polynomial `P` one always has `a - b ∣ P(a) - P(b)`. So a single pair of moduli `N₁, N₂` with `N₁ - N₂ ∤ W N₁ - W N₂` *proves* that `W` agrees with no integer polynomial on any set containing `N₁, N₂`. This is exactly the proof direction sketched in §5 of the paper (a congruence separation), and it is unconditional. * `circleWitness`, `circleCount_not_polynomial` — the classification applied to the catalog's modular circle count `HalfPlane.circleCount`. The local weight is `p - χ_p(-1)`; for Blum primes it has power shape `x + 1`, so the trace lemma reproves (and generalises) `HalfPlane.sum_of_primes_from_circleCount`, and the divisibility criterion shows `C` is not a polynomial in `N`. Nothing here assumes anything about *how* `W` is computed; the classification is a statement about the shape of the local weight only. -/ open FreeWitness open Finset /-! ## The abstract witness -/ open SemiprimeWitness variable (F : SemiprimeWitness) /-! ## From the trace to the factors -/ /-! ## The polynomial barrier -/
Formal statement
theorem FreeWitness.not_polynomial_of_not_dvd{W : ℕ → ℤ} {S : Set ℕ} {N₁ N₂ : ℕ}
(h₁ : N₁ ∈ S) (h₂ : N₂ ∈ S)
(hdvd : ¬ ((N₁ : ℤ) - N₂ ∣ W N₁ - W N₂)) :
∀ P : Polynomial ℤ, ¬ (∀ n ∈ S, W n = P.eval (n : ℤ)) := by sorrySource