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.SpectralPositiveTrace |
| 4 | |
| 5 | public section |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | open scoped BigOperators ComplexConjugate Topology |
| 10 | open Filter Set Complex InnerProductSpace |
| 11 | namespace ConditionalGoldbach |
| 12 | attribute [local instance] Classical.propDecidable |
| 13 | variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] |
| 14 | |
| 15 | /-- Absolute convergence of positive rank-one expansions. -/ |
| 16 | theorem summable_rankOne_self {ι : Type*} (v : ι → H) (hv : Summable (fun j => ‖v j‖ ^ 2)) : |
| 17 | Summable (fun j => rankOne ℂ (v j) (v j)) := |
| 18 | hv.of_norm_bounded fun j => by simp only [norm_rankOne, pow_two, le_refl] |
| 19 | |
| 20 | /-- A convergent sum of positive rank-one maps is self-adjoint. -/ |
| 21 | theorem rankOne_tsum_selfAdjoint {ι : Type*} (v : ι → H) : |
| 22 | IsSelfAdjoint (∑' j, rankOne ℂ (v j) (v j)) := by |
| 23 | change star (∑' j, rankOne ℂ (v j) (v j)) = _ |
| 24 | simp only [tsum_star, ContinuousLinearMap.star_eq_adjoint, adjoint_rankOne] |
| 25 | |
| 26 | /-- The quadratic form of a positive rank-one series is a sum of squared scalar products. -/ |
| 27 | theorem rankOne_tsum_quadratic_hasSum {ι : Type*} (v : ι → H) |
| 28 | (hv : Summable (fun j => ‖v j‖ ^ 2)) (x : H) : |
| 29 | HasSum (fun j => ‖inner ℂ (v j) x‖ ^ 2) |
| 30 | (paperInner ((∑' j, rankOne ℂ (v j) (v j)) x) x).re := by |
| 31 | have hs := Complex.hasSum_re ((innerSL ℂ x).hasSum |
| 32 | ((ContinuousLinearMap.apply ℂ H x).hasSum (summable_rankOne_self v hv).hasSum)) |
| 33 | convert hs using 1 |
| 34 | · funext j |
| 35 | simp only [ContinuousLinearMap.apply_apply, innerSL_apply_apply, rankOne_apply, inner_smul_right] |
| 36 | rw [← inner_conj_symm x (v j), Complex.mul_conj, ofReal_re, Complex.normSq_eq_norm_sq] |
| 37 | · rfl |
| 38 | |
| 39 | /-- A square-summable vector family defines a positive trace-class operator, with its exact trace. -/ |
| 40 | theorem rankOne_tsum_positiveTraceClass {ι : Type*} (v : ι → H) |
| 41 | (hv : Summable (fun j => ‖v j‖ ^ 2)) (b : HilbertBasis ℕ ℂ H) : |
| 42 | IsPositiveTraceClass (∑' j, rankOne ℂ (v j) (v j)) ∧ |
| 43 | positiveTrace (∑' j, rankOne ℂ (v j) (v j)) = ∑' j, ‖v j‖ ^ 2 := by |
| 44 | let f : ι → ℕ → ℝ := fun j k => ‖inner ℂ (v j) (b k)‖ ^ 2 |
| 45 | have hrow (j : ι) : HasSum (f j) (‖v j‖ ^ 2) := by |
| 46 | simpa only [f, norm_inner_symm] using hilbertBasis_hasSum_sq_inner b (v j) |
| 47 | have hp : Summable (Function.uncurry f) := by |
| 48 | apply (summable_prod_of_nonneg (fun _ => sq_nonneg _)).mpr |
| 49 | refine ⟨fun j => (hrow j).summable, ?_⟩ |
| 50 | convert hv using 1 |
| 51 | funext j |
| 52 | exact (hrow j).tsum_eq |
| 53 | have hcol (k : ℕ) := rankOne_tsum_quadratic_hasSum v hv (b k) |
| 54 | have hb : Summable (fun k => (paperInner ((∑' j, rankOne ℂ (v j) (v j)) (b k)) (b k)).re) := by |
| 55 | have hs := (((Equiv.prodComm ℕ ι).summable_iff (f := Function.uncurry f)).mpr hp).prod |
| 56 | convert hs using 1 |
| 57 | funext k |
| 58 | exact (hcol k).tsum_eq.symm |
| 59 | have hT : IsPositiveTraceClass (∑' j, rankOne ℂ (v j) (v j)) := by |
| 60 | refine ⟨(rankOne_tsum_selfAdjoint v).isSymmetric, ?_, ⟨b, hb⟩⟩ |
| 61 | intro x |
| 62 | rw [← (rankOne_tsum_quadratic_hasSum v hv x).tsum_eq] |
| 63 | exact tsum_nonneg (fun _ => sq_nonneg _) |
| 64 | refine ⟨hT, (hT.trace_basis_independent b).2.trans ?_⟩ |
| 65 | calc |
| 66 | _ = ∑' k, ∑' j, f j k := by |
| 67 | apply tsum_congr |
| 68 | intro k |
| 69 | exact (hcol k).tsum_eq.symm |
| 70 | _ = ∑' j, ∑' k, f j k := hp.tsum_comm |
| 71 | _ = _ := by simp only [(hrow _).tsum_eq] |
| 72 | |
| 73 | end ConditionalGoldbach |
