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.InnerProductSpace.Spectrum |
| 4 | public import ConditionalGoldbach.Proofs.SpectralHilbertSchmidt |
| 5 | public import ConditionalGoldbach.Proofs.SpectralPositiveTrace |
| 6 | import Mathlib.LinearAlgebra.Eigenspace.ContinuousLinearMap |
| 7 | |
| 8 | public section |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | open scoped BigOperators ComplexConjugate Topology |
| 13 | open Filter Set Complex InnerProductSpace |
| 14 | namespace ConditionalGoldbach |
| 15 | attribute [local instance] Classical.propDecidable |
| 16 | universe u |
| 17 | variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] |
| 18 | |
| 19 | /-- The compact self-adjoint spectral theorem, with an initially arbitrary index type. -/ |
| 20 | theorem compact_symmetric_exists_eigenbasis (T : H →L[ℂ] H) |
| 21 | (hc : IsCompactOperator T) (hs : T.IsSymmetric) : |
| 22 | ∃ (ι : Type u) (b : HilbertBasis ι ℂ H) (μ : ι → ℝ), |
| 23 | ∀ j, T (b j) = (μ j : ℂ) • b j := by |
| 24 | let E : ℂ → Submodule ℂ H := fun z => Module.End.eigenspace T.toLinearMap z |
| 25 | have he (z : ℂ) : CompleteSpace (E z) := inferInstance |
| 26 | choose w b hb using fun z : ℂ => exists_hilbertBasis ℂ (E z) |
| 27 | let ι := (Σ z : ℂ, w z) |
| 28 | let v : ι → H := fun j => (b j.1 j.2 : H) |
| 29 | have hv : Orthonormal ℂ v := |
| 30 | hs.orthogonalFamily_eigenspaces.orthonormal_sigma_orthonormal (fun z => (b z).orthonormal) |
| 31 | have hspan : (Submodule.span ℂ (Set.range v))ᗮ = ⊥ := by |
| 32 | apply le_antisymm ?_ bot_le |
| 33 | intro x hx |
| 34 | have hx' : x ∈ (⨆ z, E z)ᗮ := by |
| 35 | rw [← Submodule.iInf_orthogonal, Submodule.mem_iInf] |
| 36 | intro z |
| 37 | rw [Submodule.mem_orthogonal'] |
| 38 | intro y hy |
| 39 | have hz (j : w z) : inner ℂ x (b z j : H) = 0 := by |
| 40 | exact (Submodule.mem_orthogonal' _ _).mp hx (v ⟨z, j⟩) |
| 41 | (Submodule.subset_span (Set.mem_range_self (⟨z, j⟩ : ι))) |
| 42 | have hsum := (innerSL ℂ x).hasSum ((E z).subtypeL.hasSum ((b z).hasSum_repr ⟨y, hy⟩)) |
| 43 | have hzero : HasSum (fun _ : w z => (0 : ℂ)) (inner ℂ x y) := by |
| 44 | simpa only [map_smul, innerSL_apply_apply, Submodule.subtypeL_apply, hz, smul_zero] using hsum |
| 45 | exact hzero.unique hasSum_zero |
| 46 | simpa only [E, ContinuousLinearMap.orthogonalComplement_iSup_eigenspaces_eq_bot hc hs] using hx' |
| 47 | let B : HilbertBasis ι ℂ H := HilbertBasis.mkOfOrthogonalEqBot hv hspan |
| 48 | have hB (j : ι) : B j = v j := by |
| 49 | exact congrFun (HilbertBasis.coe_mkOfOrthogonalEqBot hv hspan) j |
| 50 | refine ⟨ι, B, fun j => j.1.re, ?_⟩ |
| 51 | intro j |
| 52 | have heig : T (v j) = j.1 • v j := (Module.End.mem_eigenspace_iff).mp (b j.1 j.2).property |
| 53 | have hn : v j ≠ 0 := hv.ne_zero j |
| 54 | have hr : conj j.1 = j.1 := hs.conj_eigenvalue_eq_self |
| 55 | (Module.End.hasEigenvalue_of_hasEigenvector ⟨(b j.1 j.2).property, hn⟩) |
| 56 | rw [hB, heig, ← Complex.conj_eq_iff_re.mp hr] |
| 57 | |
| 58 | omit [CompleteSpace H] in |
| 59 | /-- A Hilbert basis has countable index whenever the space admits a countable Hilbert basis. -/ |
| 60 | theorem hilbertBasis_countable_index {ι : Type*} (b : HilbertBasis ℕ ℂ H) |
| 61 | (c : HilbertBasis ι ℂ H) : Countable ι := by |
| 62 | let f : ℕ → ι → ℂ := fun j i => inner ℂ (b j) (c i) * inner ℂ (c i) (b j) |
| 63 | have hf (j : ℕ) : (Function.support (f j)).Countable := |
| 64 | (c.summable_inner_mul_inner (b j) (b j)).countable_support |
| 65 | apply Set.countable_univ_iff.mp |
| 66 | apply (Set.countable_iUnion hf).mono |
| 67 | intro i hi |
| 68 | simp only [Set.mem_iUnion, Function.mem_support] |
| 69 | by_contra! hn |
| 70 | have hz : c i = 0 := by |
| 71 | apply b.repr.injective |
| 72 | apply lp.ext |
| 73 | funext j |
| 74 | simp only [HilbertBasis.repr_apply_apply, inner_zero_right] |
| 75 | rcases mul_eq_zero.mp (hn j) with h | h |
| 76 | · exact h |
| 77 | · exact inner_eq_zero_symm.mp h |
| 78 | exact c.orthonormal.ne_zero i hz |
| 79 | |
| 80 | omit [CompleteSpace H] in |
| 81 | /-- A Hilbert basis is infinite when the space admits a Hilbert basis indexed by the naturals. -/ |
| 82 | theorem hilbertBasis_infinite_index {ι : Type*} (b : HilbertBasis ℕ ℂ H) |
| 83 | (c : HilbertBasis ι ℂ H) : Infinite ι := by |
| 84 | by_contra h |
| 85 | have : Finite ι := not_infinite_iff_finite.mp h |
| 86 | let : Fintype ι := Fintype.ofFinite ι |
| 87 | have : Module.Finite ℂ H := Module.Finite.of_basis c.toOrthonormalBasis.toBasis |
| 88 | have : Finite ℕ := b.orthonormal.linearIndependent.finite |
| 89 | exact _root_.not_finite ℕ |
| 90 | |
| 91 | /-- Compact symmetric Hilbert--Schmidt operators admit exactly the spectral data used in the paper. -/ |
| 92 | theorem compact_symmetric_hilbertSchmidt_spectralData (T : H →L[ℂ] H) |
| 93 | (hc : IsCompactOperator T) (hs : T.IsSymmetric) (hHS : IsHilbertSchmidt T) : |
| 94 | Nonempty (SpectralData T) := by |
| 95 | obtain ⟨b₀, hb₀⟩ := hHS |
| 96 | obtain ⟨ι, b, μ, hd⟩ := compact_symmetric_exists_eigenbasis T hc hs |
| 97 | have : Countable ι := hilbertBasis_countable_index b₀ b |
| 98 | have : Infinite ι := hilbertBasis_infinite_index b₀ b |
| 99 | let e : ℕ ≃ ι := Classical.choice inferInstance |
| 100 | have hr : Set.range (b ∘ e) = Set.range b := by |
| 101 | ext x |
| 102 | constructor |
| 103 | · rintro ⟨j, rfl⟩ |
| 104 | exact ⟨e j, rfl⟩ |
| 105 | · rintro ⟨i, rfl⟩ |
| 106 | exact ⟨e.symm i, congrArg b (e.apply_symm_apply i)⟩ |
| 107 | have hdense : ⊤ ≤ (Submodule.span ℂ (Set.range (b ∘ e))).topologicalClosure := by |
| 108 | rw [hr, b.dense_span] |
| 109 | let B : HilbertBasis ℕ ℂ H := HilbertBasis.mk (b.orthonormal.comp e e.injective) hdense |
| 110 | have hB (j : ℕ) : B j = b (e j) := by |
| 111 | exact congrFun (HilbertBasis.coe_mk _ hdense) j |
| 112 | refine ⟨⟨B, μ ∘ e, ?_, ?_⟩⟩ |
| 113 | · intro j |
| 114 | simpa only [hB, Function.comp_apply] using hd (e j) |
| 115 | · have hsum := (hs_basis_independent T b₀ B hb₀).1 |
| 116 | have hn (j : ℕ) : ‖T (B j)‖ ^ 2 = (μ (e j)) ^ 2 := by |
| 117 | rw [hB, hd, norm_smul, b.orthonormal.norm_eq_one, mul_one, |
| 118 | Complex.norm_real, Real.norm_eq_abs, sq_abs] |
| 119 | simpa only [hn, Function.comp_apply] using hsum |
| 120 | |
| 121 | end ConditionalGoldbach |
