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 Mathlib.Analysis.Normed.Module.MultipliableUniformlyOn |
| 4 | public import ConditionalGoldbach.Proofs.SpectralCompletion |
| 5 | |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open scoped BigOperators ComplexConjugate Topology |
| 11 | open MeasureTheory Filter Set Complex |
| 12 | namespace ConditionalGoldbach |
| 13 | attribute [local instance] Classical.propDecidable |
| 14 | variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
| 15 | |
| 16 | /-- All complex slices have the same norm. -/ |
| 17 | theorem quaternion_algHom_norm (f : ℂ →ₐ[ℝ] Quaternion ℝ) (z : ℂ) : ‖f z‖ = ‖z‖ := by |
| 18 | have heq : Quaternion.normSq (f z) = Complex.normSq z := by |
| 19 | apply Quaternion.coe_inj.mp |
| 20 | rw [← Quaternion.self_mul_star, ← quaternion_algHom_map_conj, ← map_mul, |
| 21 | Complex.mul_conj] |
| 22 | exact f.commutes _ |
| 23 | rw [Quaternion.normSq_eq_norm_mul_self, Complex.normSq_eq_norm_sq] at heq |
| 24 | nlinarith [norm_nonneg (f z), norm_nonneg z] |
| 25 | |
| 26 | /-- Uniform convergence of the complex spectral products on each compact set. -/ |
| 27 | theorem spectralComplex_hasProdUniformlyOn (N : ℕ) (T : H →L[ℂ] H) |
| 28 | (hT : Nonempty (SpectralData T)) (K : Set ℂ) (hK : IsCompact K) : |
| 29 | HasProdUniformlyOn (fun j (q : ℂ) => |
| 30 | (1 - (4 * eigenvalues T j ^ 2 / spectralScale N ^ 2 : ℝ) * q * (1 - q))) |
| 31 | (spectralComplex N T) K := by |
| 32 | obtain ⟨B, hB, hKB⟩ := hK.isBounded.subset_closedBall_lt 0 0 |
| 33 | have hbound (q : ℂ) (hq : q ∈ K) : ‖q‖ ≤ B := by |
| 34 | simpa only [Metric.mem_closedBall, dist_zero_right] using hKB hq |
| 35 | let c : ℕ → ℝ := fun j => 4 * eigenvalues T j ^ 2 / spectralScale N ^ 2 |
| 36 | have hc (j : ℕ) : 0 ≤ c j := by dsimp [c]; positivity |
| 37 | have hs : Summable (fun j => c j * B * (1 + B)) := by |
| 38 | convert (((eigenvalues_square_summable T hT).mul_left (4 / spectralScale N ^ 2)).mul_right B).mul_right (1 + B) using 1 |
| 39 | funext j |
| 40 | dsimp [c] |
| 41 | ring |
| 42 | have hu := hs.hasProdUniformlyOn_nat_one_add hK |
| 43 | (f := fun j (q : ℂ) => -((c j : ℂ) * q * (1 - q))) |
| 44 | (by |
| 45 | filter_upwards with j q hq |
| 46 | simp only [norm_neg, norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg (hc j)] |
| 47 | apply mul_le_mul (mul_le_mul_of_nonneg_left (hbound q hq) (hc j)) |
| 48 | ((norm_sub_le 1 q).trans (by simpa using add_le_add_left (hbound q hq) 1)) |
| 49 | (norm_nonneg _) (mul_nonneg (hc j) hB.le)) |
| 50 | (by intro j; fun_prop) |
| 51 | convert hu using 1; ext; simp only [c, spectralComplex, sub_eq_add_neg] |
| 52 | |
| 53 | theorem spectralComplex_tendstoUniformlyOn (N : ℕ) (T : H →L[ℂ] H) |
| 54 | (hT : Nonempty (SpectralData T)) (K : Set ℂ) (hK : IsCompact K) : |
| 55 | TendstoUniformlyOn (fun k (q : ℂ) => ∏ j ∈ Finset.range k, |
| 56 | (1 - (4 * eigenvalues T j ^ 2 / spectralScale N ^ 2 : ℝ) * q * (1 - q))) |
| 57 | (spectralComplex N T) atTop K := |
| 58 | (spectralComplex_hasProdUniformlyOn N T hT K hK).tendstoUniformlyOn_finsetRange |
| 59 | |
| 60 | /-- The scalar product is an entire function. -/ |
| 61 | theorem spectralComplex_differentiable (N : ℕ) (T : H →L[ℂ] H) |
| 62 | (hT : Nonempty (SpectralData T)) : Differentiable ℂ (spectralComplex N T) := by |
| 63 | have hlocal : TendstoLocallyUniformlyOn (fun k (q : ℂ) => ∏ j ∈ Finset.range k, |
| 64 | (1 - (4 * eigenvalues T j ^ 2 / spectralScale N ^ 2 : ℝ) * q * (1 - q))) |
| 65 | (spectralComplex N T) atTop univ := by |
| 66 | apply (tendstoLocallyUniformlyOn_iff_forall_isCompact isOpen_univ).2 |
| 67 | intro K _ hK |
| 68 | exact spectralComplex_tendstoUniformlyOn N T hT K hK |
| 69 | have hd := hlocal.differentiableOn (by |
| 70 | filter_upwards with k |
| 71 | apply Differentiable.differentiableOn |
| 72 | fun_prop) isOpen_univ |
| 73 | exact differentiableOn_univ.mp hd |
| 74 | |
| 75 | /-- The quaternionic product inherits uniform convergence through norm-preserving complex slices. -/ |
| 76 | theorem spectralQuaternion_compactUniformLimit (N : ℕ) (T : H →L[ℂ] H) |
| 77 | (hT : Nonempty (SpectralData T)) : |
| 78 | CompactUniformLimit (fun k q => spectralPartialQuaternion N T q k) (spectralQuaternion N T) := by |
| 79 | intro K hK ε hε |
| 80 | obtain ⟨B, _, hKB⟩ := hK.isBounded.subset_closedBall_lt 0 0 |
| 81 | have hu := spectralComplex_tendstoUniformlyOn N T hT |
| 82 | (Metric.closedBall 0 B) (isCompact_closedBall 0 B) |
| 83 | obtain ⟨n₀, hn₀⟩ := eventually_atTop.1 ((Metric.tendstoUniformlyOn_iff.1 hu) ε hε) |
| 84 | refine ⟨n₀, fun n hn q hq => ?_⟩ |
| 85 | obtain ⟨f, z, rfl⟩ := quaternion_exists_complex_slice q |
| 86 | have hz : z ∈ Metric.closedBall 0 B := by |
| 87 | have := hKB hq |
| 88 | simpa only [Metric.mem_closedBall, dist_zero_right, quaternion_algHom_norm] using this |
| 89 | have hh := hn₀ n hn z hz |
| 90 | dsimp only |
| 91 | rw [spectralPartialQuaternion_map, spectralQuaternion_apply_algHom N T hT, |
| 92 | ← map_sub, quaternion_algHom_norm] |
| 93 | simpa only [dist_eq_norm, norm_sub_rev] using hh |
| 94 | |
| 95 | /-- The quaternionic extension is intrinsic and entire on every complex slice. -/ |
| 96 | theorem spectralQuaternion_intrinsicEntire (N : ℕ) (T : H →L[ℂ] H) |
| 97 | (hT : Nonempty (SpectralData T)) : IntrinsicEntire (spectralQuaternion N T) := by |
| 98 | refine ⟨spectralComplex N T, spectralComplex_differentiable N T hT, |
| 99 | spectralComplex_conj N T hT, ?_⟩ |
| 100 | intro J _ hJsq z |
| 101 | exact spectralQuaternion_apply_algHom N T hT |
| 102 | (Complex.liftAux J (by simpa only [pow_two] using hJsq)) z |
| 103 | |
| 104 | end ConditionalGoldbach |
