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.Operator.Compact.Basic |
| 4 | public import ConditionalGoldbach.Proofs.SpectralBasisExistence |
| 5 | |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open scoped BigOperators ComplexConjugate Topology |
| 11 | open Filter Set Complex InnerProductSpace |
| 12 | namespace ConditionalGoldbach |
| 13 | attribute [local instance] Classical.propDecidable |
| 14 | variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] |
| 15 | |
| 16 | /-- The operator norm is bounded by the square root of its Hilbert--Schmidt square sum. -/ |
| 17 | theorem hilbertSchmidt_norm_le (T : H →L[ℂ] H) (b : HilbertBasis ℕ ℂ H) |
| 18 | (hb : Summable (fun j => ‖T (b j)‖ ^ 2)) : |
| 19 | ‖T‖ ≤ Real.sqrt (∑' j, ‖T (b j)‖ ^ 2) := by |
| 20 | obtain ⟨hb', heq⟩ := hs_adjoint_basis_relation T b b hb |
| 21 | have hn : 0 ≤ ∑' j, ‖T (b j)‖ ^ 2 := tsum_nonneg (fun j => sq_nonneg _) |
| 22 | apply ContinuousLinearMap.opNorm_le_bound _ (Real.sqrt_nonneg _) |
| 23 | intro x |
| 24 | have hsx := hilbertBasis_hasSum_sq_inner b (T x) |
| 25 | have hsq : ‖T x‖ ^ 2 ≤ (∑' j, ‖T (b j)‖ ^ 2) * ‖x‖ ^ 2 := by |
| 26 | rw [← hsx.tsum_eq, heq, ← tsum_mul_right] |
| 27 | apply Summable.tsum_le_tsum ?_ hsx.summable (hb'.mul_right (‖x‖ ^ 2)) |
| 28 | intro j |
| 29 | rw [← ContinuousLinearMap.adjoint_inner_left] |
| 30 | simpa only [mul_pow] using |
| 31 | pow_le_pow_left₀ (norm_nonneg _) (norm_inner_le_norm (𝕜 := ℂ) ((ContinuousLinearMap.adjoint T) (b j)) x) 2 |
| 32 | apply (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (Real.sqrt_nonneg _) (norm_nonneg _))).mp |
| 33 | simpa only [mul_pow, Real.sq_sqrt hn] using hsq |
| 34 | |
| 35 | /-- Finite basis truncations of a Hilbert--Schmidt operator converge in operator norm. -/ |
| 36 | theorem hilbertSchmidt_tendsto_finiteRank (T : H →L[ℂ] H) (b : HilbertBasis ℕ ℂ H) |
| 37 | (hb : Summable (fun j => ‖T (b j)‖ ^ 2)) : |
| 38 | Tendsto (fun s : Finset ℕ => ∑ j ∈ s, rankOne ℂ (T (b j)) (b j)) atTop (𝓝 T) := by |
| 39 | let F : Finset ℕ → H →L[ℂ] H := fun s => ∑ j ∈ s, rankOne ℂ (T (b j)) (b j) |
| 40 | have hF (s : Finset ℕ) (k : ℕ) : F s (b k) = if k ∈ s then T (b k) else 0 := by |
| 41 | dsimp [F] |
| 42 | simp only [sum_apply, rankOne_apply, |
| 43 | orthonormal_iff_ite.mp b.orthonormal, ite_smul, one_smul, zero_smul] |
| 44 | exact Finset.sum_ite_eq' s k (fun j => T (b j)) |
| 45 | have herr (s : Finset ℕ) (k : ℕ) : |
| 46 | ‖(T - F s) (b k)‖ ^ 2 = if k ∈ s then 0 else ‖T (b k)‖ ^ 2 := by |
| 47 | rw [sub_apply, hF] |
| 48 | split_ifs <;> simp |
| 49 | have hsum (s : Finset ℕ) : Summable (fun j => ‖(T - F s) (b j)‖ ^ 2) := by |
| 50 | apply Summable.of_nonneg_of_le (fun j => sq_nonneg _) ?_ hb |
| 51 | intro j |
| 52 | rw [herr] |
| 53 | split_ifs |
| 54 | · positivity |
| 55 | · exact le_rfl |
| 56 | have htsum (s : Finset ℕ) : (∑' j, ‖(T - F s) (b j)‖ ^ 2) = |
| 57 | ∑' j : {k // k ∉ s}, ‖T (b j)‖ ^ 2 := by |
| 58 | calc |
| 59 | (∑' j, ‖(T - F s) (b j)‖ ^ 2) = |
| 60 | ∑' j, ({k : ℕ | k ∉ s} : Set ℕ).indicator (fun j => ‖T (b j)‖ ^ 2) j := by |
| 61 | apply tsum_congr |
| 62 | intro j |
| 63 | rw [herr] |
| 64 | simp only [Set.indicator, Set.mem_ofPred_eq] |
| 65 | split_ifs <;> simp_all |
| 66 | _ = _ := (tsum_subtype ({k : ℕ | k ∉ s} : Set ℕ) (fun j => ‖T (b j)‖ ^ 2)).symm |
| 67 | have htail : Tendsto (fun s : Finset ℕ => Real.sqrt (∑' j, ‖(T - F s) (b j)‖ ^ 2)) |
| 68 | atTop (𝓝 0) := by |
| 69 | simp only [htsum] |
| 70 | simpa only [Real.sqrt_zero, Function.comp_def] using |
| 71 | Real.continuous_sqrt.continuousAt.tendsto.comp |
| 72 | (tendsto_tsum_compl_atTop_zero (fun j => ‖T (b j)‖ ^ 2)) |
| 73 | apply tendsto_iff_norm_sub_tendsto_zero.mpr |
| 74 | apply squeeze_zero' (Filter.Eventually.of_forall fun s => norm_nonneg _) ?_ htail |
| 75 | apply Filter.Eventually.of_forall |
| 76 | intro s |
| 77 | rw [norm_sub_rev] |
| 78 | exact hilbertSchmidt_norm_le (T - F s) b (hsum s) |
| 79 | |
| 80 | /-- Every Hilbert--Schmidt operator in the paper's sense is compact. -/ |
| 81 | theorem IsHilbertSchmidt.isCompactOperator {T : H →L[ℂ] H} (hT : IsHilbertSchmidt T) : |
| 82 | IsCompactOperator T := by |
| 83 | obtain ⟨b, hb⟩ := hT |
| 84 | apply isCompactOperator_of_tendsto (hilbertSchmidt_tendsto_finiteRank T b hb) |
| 85 | apply Filter.Eventually.of_forall |
| 86 | intro s |
| 87 | induction s using Finset.induction_on with |
| 88 | | empty => |
| 89 | simpa only [Finset.sum_empty, FunLike.coe_zero] using |
| 90 | (isCompactOperator_zero : IsCompactOperator (0 : H → H)) |
| 91 | | @insert j s hj ih => |
| 92 | simpa only [Finset.sum_insert hj, FunLike.coe_add] using |
| 93 | (rankOne_isCompactOperator (T (b j)) (b j)).add ih |
| 94 | |
| 95 | /-- Symmetry and the paper's Hilbert--Schmidt condition suffice for spectral data. -/ |
| 96 | theorem IsHilbertSchmidt.spectralData {T : H →L[ℂ] H} (hT : IsHilbertSchmidt T) |
| 97 | (hs : T.IsSymmetric) : Nonempty (SpectralData T) := |
| 98 | compact_symmetric_hilbertSchmidt_spectralData T hT.isCompactOperator hs hT |
| 99 | |
| 100 | end ConditionalGoldbach |
