/- research/0023 — settlement of the source threshold (return #1599 follow-up). Stadlmann, "Bounded gaps between primes" (arXiv:2608.31126), Proposition 1, states the sieve criterion with right-hand side exactly `1`: k (1 - c1) J(F) - k c2 K(F) --------------------------- > 1 I(F) on a support `T_k(δ,A,B,ε)`, with a prime minorant `ρ` and the equidistribution hypotheses (1)-(4). Maynard/Polymath8b instead state the *standard epsilon- enlarged* criterion `M_{k,ε} > 2m/θ` (Polymath8b Theorem 3.12), which at `m = 1`, `θ = 1/2` is `M > 4`. This file formalises the arithmetic that reconciles the two: * the two thresholds are `1/A` and `4`, differing by the factor `4 A`; * `1/A < 4`, so the standard criterion *implies* the source criterion; the source criterion is strictly weaker (witness `M = 39/10`); * the rescaling `t = A u` turns the source ratio `> 1` into `M_{46,η} > 1/A` exactly (the homogeneity step is analytic and is checked separately in `src/threshold_settlement.py`; here is the rational bookkeeping). The 3.3 % separating `1/A` from `4` is precisely the radial slice of the source support beyond the Bombieri-Vinogradov radius `1/4`; the criterion is therefore conditional on the source's Zhang-type/budget equidistribution for that slice, which this file does not formalise (and the source does not prove). -/ import Mathlib namespace TwinPrime0023 /-- The source's radial base `A = 0.2583`. -/ def A : ℚ := 2583 / 10000 /-- The source's enlargement `ε_s = 0.0075`. -/ def eps_s : ℚ := 3 / 400 /-- The Bombieri-Vinogradov gap `ω = A - 1/4 = 0.0083`. -/ def omega : ℚ := A - 1 / 4 /-- The rescaled enlargement `η = ε_s / A`. -/ def eta : ℚ := eps_s / A /-- The source threshold `1/A`. -/ def sourceThreshold : ℚ := 1 / A /-- The standard Maynard/Polymath8b threshold `2m/θ` at `m = 1`, `θ = 1/2`. -/ def standardThreshold : ℚ := 4 theorem A_pos : 0 < A := by norm_num [A] theorem A_gt_quarter : (1 / 4 : ℚ) < A := by norm_num [A] theorem omega_eq : omega = 83 / 10000 := by norm_num [omega, A] theorem eta_eq : eta = 25 / 861 := by norm_num [eta, eps_s, A] theorem one_over_A : sourceThreshold = 10000 / 2583 := by norm_num [sourceThreshold, A] theorem one_over_A_bounds : (3 : ℚ) < sourceThreshold ∧ sourceThreshold < 4 := by constructor <;> norm_num [sourceThreshold, A] theorem four_mul_A : (4 : ℚ) * A = 2583 / 2500 := by norm_num [A] theorem four_mul_A_sub_one : (4 : ℚ) * A - 1 = 83 / 2500 := by norm_num [A] theorem four_A_plus_eps_sub_one : (4 : ℚ) * (A + eps_s) - 1 = 79 / 1250 := by norm_num [A, eps_s] /-- The standard criterion implies the source criterion, because `1/A < 4`. -/ theorem standard_implies_source {M : ℚ} (h : standardThreshold < M) : sourceThreshold < M := by have h' : sourceThreshold < standardThreshold := by norm_num [sourceThreshold, standardThreshold, A] exact lt_trans h' h /-- The source criterion is strictly weaker: `M = 39/10` meets it but not the standard one. In the engine's terms this is the region `3.8714… < M < 4` in which the `k = 46` computed values live. -/ theorem source_strictly_weaker : sourceThreshold < (39 / 10 : ℚ) ∧ ¬ (standardThreshold < (39 / 10 : ℚ)) := by constructor · norm_num [sourceThreshold, A] · norm_num [standardThreshold] /-- The rescaling `t = A u`: the source criterion `46 J / I > 1` is equivalent to `(46 J / I) / A > 1/A`, i.e. to the unit-normalised value exceeding `1/A`. This is the rational bookkeeping of the homogeneity `46 J_t/I_t = A * M_{46,η}` established symbolically in the Python check. -/ theorem source_ratio_iff {J I : ℚ} (_hI : 0 < I) : (46 * J / I > 1) ↔ ((46 * J / I) / A > sourceThreshold) := by have hA : 0 < A := A_pos constructor · intro h have : (46 * J / I) / A > 1 / A := by exact div_lt_div_of_pos_right h hA simpa [sourceThreshold] using this · intro h have : (46 * J / I) / A * A > sourceThreshold * A := mul_lt_mul_of_pos_right h hA have hA' : A ≠ 0 := ne_of_gt hA have : 46 * J / I > sourceThreshold * A := by simpa [div_mul_cancel₀ _ hA'] using this have hsa : sourceThreshold * A = 1 := by simp [sourceThreshold, hA'] rwa [hsa] at this end TwinPrime0023