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.SpectralHardyCompression |
| 4 | public import Mathlib.MeasureTheory.Measure.SeparableMeasure |
| 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 InnerProductSpace |
| 12 | namespace ConditionalGoldbach |
| 13 | attribute [local instance] Classical.propDecidable |
| 14 | |
| 15 | /-- A separable Hilbert space containing infinitely many independent vectors has a natural-indexed basis. -/ |
| 16 | theorem exists_nat_hilbertBasis_of_linearIndependent {H : Type*} [NormedAddCommGroup H] |
| 17 | [InnerProductSpace ℂ H] [CompleteSpace H] [SecondCountableTopology H] |
| 18 | (v : ℕ → H) (hv : LinearIndependent ℂ v) : Nonempty (HilbertBasis ℕ ℂ H) := by |
| 19 | obtain ⟨w, b, hb⟩ := exists_hilbertBasis ℂ H |
| 20 | have : DiscreteTopology w := DiscreteTopology.of_forall_le_dist (r := 1) zero_lt_one (by |
| 21 | intro x y hxy |
| 22 | have hn := norm_sub_sq (𝕜 := ℂ) (b x) (b y) |
| 23 | rw [b.orthonormal.norm_eq_one, b.orthonormal.norm_eq_one, |
| 24 | b.orthonormal.inner_eq_zero hxy] at hn |
| 25 | have hd : dist x y = ‖b x - b y‖ := by rw [hb, Subtype.dist_eq, dist_eq_norm] |
| 26 | rw [hd] |
| 27 | simp only [map_zero, mul_zero, sub_zero, one_pow] at hn |
| 28 | nlinarith [norm_nonneg (b x - b y)]) |
| 29 | have : Countable w := countable_of_Lindelof_of_discrete |
| 30 | have : Infinite w := by |
| 31 | by_contra h |
| 32 | have : Finite w := not_infinite_iff_finite.mp h |
| 33 | let : Fintype w := Fintype.ofFinite w |
| 34 | have : Module.Finite ℂ H := Module.Finite.of_basis b.toOrthonormalBasis.toBasis |
| 35 | have : Finite ℕ := hv.finite |
| 36 | exact _root_.not_finite ℕ |
| 37 | exact ⟨hilbertBasisReindex b (Classical.choice inferInstance : ℕ ≃ w)⟩ |
| 38 | |
| 39 | /-- Unit intervals provide infinitely many independent vectors in any locally finite measure equivalent to Lebesgue measure. -/ |
| 40 | theorem real_l2_exists_nat_hilbertBasis (μ : Measure ℝ) [IsLocallyFiniteMeasure μ] |
| 41 | (hμ : (volume : Measure ℝ) ≪ μ) : Nonempty (HilbertBasis ℕ ℂ (Lp ℂ 2 μ)) := by |
| 42 | have : Fact ((2 : ENNReal) ≠ ⊤) := ⟨by norm_num⟩ |
| 43 | let v : ℕ → Lp ℂ 2 μ := fun n => indicatorConstLp 2 |
| 44 | (s := Ioc (n : ℝ) (n + 1)) measurableSet_Ioc measure_Ioc_lt_top.ne (1 : ℂ) |
| 45 | have hv0 (n : ℕ) : v n ≠ 0 := by |
| 46 | have hm : μ (Ioc (n : ℝ) (n + 1)) ≠ 0 := by |
| 47 | intro hz |
| 48 | have hz' := hμ hz |
| 49 | rw [Real.volume_Ioc] at hz' |
| 50 | norm_num at hz' |
| 51 | have hp : 0 < ‖v n‖ := by |
| 52 | dsimp only [v] |
| 53 | rw [norm_indicatorConstLp (by norm_num) (by norm_num)] |
| 54 | exact mul_pos (by norm_num) (Real.rpow_pos_of_pos |
| 55 | (ENNReal.toReal_pos hm measure_Ioc_lt_top.ne) _) |
| 56 | exact norm_ne_zero_iff.mp hp.ne' |
| 57 | have horth : Pairwise (fun i j => inner ℂ (v i) (v j) = 0) := by |
| 58 | intro i j hij |
| 59 | rw [L2.inner_def] |
| 60 | apply integral_eq_zero_of_ae |
| 61 | filter_upwards [indicatorConstLp_coeFn (p := 2) (hs := measurableSet_Ioc) |
| 62 | (hμs := measure_Ioc_lt_top.ne) (c := (1 : ℂ)) (μ := μ) |
| 63 | (s := Ioc (i : ℝ) (i + 1)), |
| 64 | indicatorConstLp_coeFn (p := 2) (hs := measurableSet_Ioc) |
| 65 | (hμs := measure_Ioc_lt_top.ne) (c := (1 : ℂ)) (μ := μ) |
| 66 | (s := Ioc (j : ℝ) (j + 1))] with t hi hj |
| 67 | change inner ℂ (v i t) (v j t) = 0 |
| 68 | change (indicatorConstLp 2 measurableSet_Ioc measure_Ioc_lt_top.ne (1 : ℂ)) t = _ at hi |
| 69 | change (indicatorConstLp 2 measurableSet_Ioc measure_Ioc_lt_top.ne (1 : ℂ)) t = _ at hj |
| 70 | dsimp only [v] |
| 71 | rw [hi, hj] |
| 72 | change inner ℂ ((Ioc (i : ℝ) (i + 1)).indicator (fun _ => (1 : ℂ)) t) |
| 73 | ((Ioc (j : ℝ) (j + 1)).indicator (fun _ => (1 : ℂ)) t) = 0 |
| 74 | · by_cases hti : t ∈ Ioc (i : ℝ) (i + 1) |
| 75 | · have htj : t ∉ Ioc (j : ℝ) (j + 1) := by |
| 76 | intro htj |
| 77 | rcases lt_or_gt_of_ne hij with hij | hji |
| 78 | · have hle : (i : ℝ) + 1 ≤ j := by exact_mod_cast hij |
| 79 | linarith [hti.2, htj.1] |
| 80 | · have hle : (j : ℝ) + 1 ≤ i := by exact_mod_cast hji |
| 81 | linarith [htj.2, hti.1] |
| 82 | simp [Set.indicator_of_notMem htj] |
| 83 | · simp [Set.indicator_of_notMem hti] |
| 84 | exact exists_nat_hilbertBasis_of_linearIndependent v |
| 85 | (linearIndependent_of_ne_zero_of_inner_eq_zero hv0 horth) |
| 86 | |
| 87 | /-- The unweighted boundary space admits the indexing convention used throughout the paper. -/ |
| 88 | theorem boundaryL2_exists_nat_hilbertBasis : Nonempty (HilbertBasis ℕ ℂ BoundaryL2) := |
| 89 | real_l2_exists_nat_hilbertBasis volume Measure.AbsolutelyContinuous.rfl |
| 90 | |
| 91 | /-- The Fourier-density model of the Hardy space has a countable infinite Hilbert basis. -/ |
| 92 | theorem hardySpace_exists_nat_hilbertBasis (a b : ℝ) : |
| 93 | Nonempty (HilbertBasis ℕ ℂ (HardySpace a b)) := by |
| 94 | have : IsLocallyFiniteMeasure (hardyMeasure a b) := |
| 95 | IsLocallyFiniteMeasure.withDensity_ofReal (hardyWeight_continuous a b) |
| 96 | exact real_l2_exists_nat_hilbertBasis _ (volume_absolutelyContinuous_hardyMeasure a b) |
| 97 | |
| 98 | /-- The full spectral package for a supported Hardy boundary kernel, with no basis assumptions. -/ |
| 99 | theorem hardyBoundaryKernel_spectral_spec_no_basis {a : ℝ} (ha : a < beta) (K : ℂ → ℂ → ℂ) |
| 100 | (hK : ∀ x ∈ ({a, beta} : Finset ℝ), ∀ y ∈ ({a, beta} : Finset ℝ), |
| 101 | MemLp (fun p : ℝ × ℝ => K (line x p.1) (line y p.2)) 2 volume) |
| 102 | (hherm : ∀ x ∈ ({a, beta} : Finset ℝ), ∀ y ∈ ({a, beta} : Finset ℝ), ∀ t u : ℝ, |
| 103 | K (line y u) (line x t) = conj (K (line x t) (line y u))) |
| 104 | (hR : ∀ f, boundaryKernelOperator a beta K hK f ∈ Set.range (hardyTraceIsometry ha)) : |
| 105 | let T := hardyBoundaryCompression ha (boundaryKernelOperator a beta K hK) |
| 106 | IsCompactOperator T ∧ IsSelfAdjoint T ∧ IsHilbertSchmidt T ∧ Nonempty (SpectralData T) ∧ |
| 107 | (∑' j, eigenvalues T j ^ 2) = hsNorm T ^ 2 ∧ |
| 108 | hsNorm T ^ 2 = BoundaryKernelSquareIntegral a beta K ∧ |
| 109 | ‖T‖ = sSup (Set.range (fun j => |eigenvalues T j|)) ∧ |
| 110 | (T ≠ 0 → ∃ j, |eigenvalues T j| = ‖T‖) := |
| 111 | hardyBoundaryKernel_spectral_spec ha K hK hherm hR |
| 112 | (Classical.choice boundaryL2_exists_nat_hilbertBasis) |
| 113 | (Classical.choice (hardySpace_exists_nat_hilbertBasis a beta)) |
| 114 | |
| 115 | end ConditionalGoldbach |
