goldbach-spectral-bridge
Li and Liu's GRH + S ⇒ Goldbach in Lean, checked against the paper by Comparator: clean it up together, and settle S
| 1 | module |
| 2 | |
| 3 | public import ConditionalGoldbach.Proofs.SpectralConsequences |
| 4 | |
| 5 | public section |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | open scoped BigOperators ComplexConjugate Topology |
| 10 | open MeasureTheory Filter Set Complex |
| 11 | namespace ConditionalGoldbach |
| 12 | attribute [local instance] Classical.propDecidable |
| 13 | variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
| 14 | |
| 15 | /-- Every real algebra embedding of the complex numbers into quaternions respects conjugation. -/ |
| 16 | theorem quaternion_algHom_map_conj (f : ℂ →ₐ[ℝ] Quaternion ℝ) (z : ℂ) : |
| 17 | f (conj z) = star (f z) := by |
| 18 | have hs : (f I) ^ 2 = -1 := by rw [← map_pow]; simp |
| 19 | have hn : Quaternion.normSq (f I) = 1 := by |
| 20 | have hh := congrArg Quaternion.normSq hs |
| 21 | simp only [map_pow, Quaternion.normSq_neg, map_one] at hh |
| 22 | nlinarith [(Quaternion.normSq_nonneg : 0 ≤ Quaternion.normSq (f I))] |
| 23 | have hr : (f I).re = 0 := (Quaternion.sq_eq_neg_normSq (a := f I)).mp (by simpa [hn] using hs) |
| 24 | have hstar : star (f I) = -f I := (Quaternion.star_eq_neg).mpr hr |
| 25 | have hsplit (w : ℂ) : f w = (w.re : Quaternion ℝ) + w.im • f I := by |
| 26 | nth_rw 1 [← Complex.re_add_im w] |
| 27 | have hreal (x : ℝ) : f (x : ℂ) = (x : Quaternion ℝ) := f.commutes x |
| 28 | simp only [map_add, map_mul, hreal] |
| 29 | rw [Quaternion.coe_mul_eq_smul] |
| 30 | rw [hsplit (conj z), hsplit z] |
| 31 | simp [hstar] |
| 32 | |
| 33 | /-- Complex conjugation commutes with the scalar spectral product. -/ |
| 34 | theorem spectralComplex_conj (N : ℕ) (T : H →L[ℂ] H) |
| 35 | (hT : Nonempty (SpectralData T)) (q : ℂ) : |
| 36 | spectralComplex N T (conj q) = conj (spectralComplex N T q) := by |
| 37 | have hm := (spectralComplex_multipliable N T hT q).map_tprod |
| 38 | (starRingEnd ℂ).toMonoidHom Complex.continuous_conj |
| 39 | change conj (spectralComplex N T q) = ∏' j : ℕ, conj (1 - |
| 40 | (4 * eigenvalues T j ^ 2 / spectralScale N ^ 2 : ℝ) * q * (1 - q)) at hm |
| 41 | simpa only [spectralComplex, map_sub, map_mul, map_one, conj_ofReal] using hm.symm |
| 42 | |
| 43 | /-- Quaternionic conjugation symmetry holds on every complex slice. -/ |
| 44 | theorem spectralQuaternion_star (N : ℕ) (T : H →L[ℂ] H) |
| 45 | (hT : Nonempty (SpectralData T)) (q : Quaternion ℝ) : |
| 46 | spectralQuaternion N T (star q) = star (spectralQuaternion N T q) := by |
| 47 | obtain ⟨f, z, rfl⟩ := quaternion_exists_complex_slice q |
| 48 | rw [← quaternion_algHom_map_conj, spectralQuaternion_apply_algHom N T hT, |
| 49 | spectralComplex_conj N T hT, quaternion_algHom_map_conj, |
| 50 | spectralQuaternion_apply_algHom N T hT] |
| 51 | |
| 52 | /-- Outside the open unit interval the real product has every factor at least one. -/ |
| 53 | theorem spectralQuaternion_real_ge_one (N : ℕ) (T : H →L[ℂ] H) |
| 54 | (hT : Nonempty (SpectralData T)) (x : ℝ) (hx : x ∉ Ioo 0 1) : |
| 55 | 1 ≤ (spectralQuaternion N T x).re := by |
| 56 | have hprod : x * (1 - x) ≤ 0 := by |
| 57 | simp only [mem_Ioo, not_and_or, not_lt] at hx |
| 58 | rcases hx with hx | hx |
| 59 | · exact mul_nonpos_of_nonpos_of_nonneg hx (by linarith) |
| 60 | · exact mul_nonpos_of_nonneg_of_nonpos (by linarith) (by linarith) |
| 61 | have hfactor (j : ℕ) : 1 ≤ 1 - (4 * eigenvalues T j ^ 2 / spectralScale N ^ 2) * x * (1 - x) := by |
| 62 | have hc : 0 ≤ 4 * eigenvalues T j ^ 2 / spectralScale N ^ 2 := by positivity |
| 63 | have := mul_nonpos_of_nonneg_of_nonpos hc hprod |
| 64 | nlinarith |
| 65 | have hseq (k : ℕ) : |
| 66 | spectralPartialQuaternion N T x k = |
| 67 | ((∏ j ∈ Finset.range k, (1 - (4 * eigenvalues T j ^ 2 / spectralScale N ^ 2) * x * (1 - x)) : ℝ) : Quaternion ℝ) := by |
| 68 | induction k with |
| 69 | | zero => simp [spectralPartialQuaternion] |
| 70 | | succ k ih => |
| 71 | have hrec : spectralPartialQuaternion N T x (k + 1) = spectralPartialQuaternion N T x k * |
| 72 | (1 - (4 * eigenvalues T k ^ 2 / spectralScale N ^ 2 : ℝ) • ((x : Quaternion ℝ) * (1 - x))) := by |
| 73 | simp [spectralPartialQuaternion, List.range_succ, List.foldl_append] |
| 74 | rw [hrec, ih, Finset.prod_range_succ] |
| 75 | simp only [← Quaternion.coe_one, ← Quaternion.coe_sub, ← Quaternion.coe_mul, |
| 76 | Quaternion.smul_coe, mul_assoc] |
| 77 | have ht := Quaternion.continuous_re.continuousAt.tendsto.comp |
| 78 | (spectralPartialQuaternion_tendsto N T hT x) |
| 79 | apply ge_of_tendsto' ht |
| 80 | intro k |
| 81 | change 1 ≤ (spectralPartialQuaternion N T x k).re |
| 82 | rw [hseq, Quaternion.re_coe] |
| 83 | exact Finset.one_le_prod₀ fun j _ => hfactor j |
| 84 | |
| 85 | theorem proposition_6_2 (N : ℕ) [NeZero N] (hN : Even N) (hlarge : Real.exp 10 < (N : ℝ)) |
| 86 | (hGRH : GRH N) (ha : alpha N < beta) : |
| 87 | let X := spectralQuaternion N (residualOperator ha N) |
| 88 | X 0 = 1 ∧ X 1 = 1 ∧ (∀ q, X (1 - q) = X q) ∧ |
| 89 | (∀ q, X (star q) = star (X q)) ∧ (∀ q, X (1 - star q) = star (X q)) ∧ |
| 90 | (∀ ξ, X (1 / 2 + ξ) = X (1 / 2 - ξ)) ∧ |
| 91 | (∀ x : ℝ, x ∉ Ioo 0 1 → 1 ≤ (X x).re) := by |
| 92 | have hT := residualOperator_has_spectral_data N hN hlarge hGRH ha |
| 93 | refine ⟨spectralQuaternion_zero N _, spectralQuaternion_one N _, |
| 94 | spectralQuaternion_one_sub N _, spectralQuaternion_star N _ hT, ?_, |
| 95 | spectralQuaternion_centered_even N _, spectralQuaternion_real_ge_one N _ hT⟩ |
| 96 | intro q |
| 97 | rw [spectralQuaternion_one_sub, spectralQuaternion_star N _ hT] |
| 98 | |
| 99 | end ConditionalGoldbach |
