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
feat(ConditionalGoldbach): 用迹界联系余项的两种范数
Browse filesChecks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+1 −0 ConditionalGoldbach.lean View file
| @@ -2,4 +2,5 @@ module | ||
| 2 | 2 | |
| 3 | 3 | public import ConditionalGoldbach.Remaining |
| 4 | 4 | public import ConditionalGoldbach.Proofs.ArithmeticPerronRemainder |
| 5 | +public import ConditionalGoldbach.Proofs.ResidualTraceComparison | |
| 5 | 6 | public import ConditionalGoldbach.Proofs.SpectralDataAlgebra |
+1 −1 ConditionalGoldbach/Proofs/ArithmeticPerronRemainder.lean View file
| @@ -72,7 +72,7 @@ theorem perronShortSum_pairing_add_tail (N : ℕ) [NeZero N] (hN : Even N) (hN4 | ||
| 72 | 72 | unfold perronShortSum perronCutoff |
| 73 | 73 | rw [smoothed_polynomial_odd_pairing N hN hN4, tsum_eq_sum hg0] |
| 74 | 74 | exact Finset.sum_congr rfl (fun n _ => smoothedPolynomialCoeff_pair N X s z n) |
| 75 | - have ht : perronDiagonalTail N w = ∑' n, f n - g n := by | |
| 75 | + have ht : perronDiagonalTail N w = ∑' n, (f n - g n) := by | |
| 76 | 76 | apply tsum_congr |
| 77 | 77 | intro n |
| 78 | 78 | dsimp only [g, f, X] |
+103 −0 ConditionalGoldbach/Proofs/ResidualTraceComparison.lean added View file
| @@ -0,0 +1,103 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.QuantitativeBounds | |
| 4 | + | |
| 5 | +/-! A quadratic Hilbert–Schmidt lower bound for the true residual forces an operator-norm | |
| 6 | +lower bound of the same order, via the traces of the two positive components. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +/-- Test a difference of two positive trace-class operators and an HS error in an | |
| 15 | +eigenbasis of the difference. The error enters with its squared HS norm. -/ | |
| 16 | +theorem SpectralData.hsNorm_sq_le_traces_add_error | |
| 17 | + {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] | |
| 18 | + {T P D K : H →L[ℂ] H} (d : SpectralData T) (he : T = P - D - K) | |
| 19 | + (hP : IsPositiveTraceClass P) (hD : IsPositiveTraceClass D) (hK : IsHilbertSchmidt K) : | |
| 20 | + hsNorm T ^ 2 ≤ 2 * ‖T‖ * (positiveTrace P + positiveTrace D) + hsNorm K ^ 2 := by | |
| 21 | + let p := fun j => (paperInner (P (d.basis j)) (d.basis j)).re | |
| 22 | + let q := fun j => (paperInner (D (d.basis j)) (d.basis j)).re | |
| 23 | + have hT (x : H) : T x = P x - D x - K x := by simp only [he, ContinuousLinearMap.sub_apply] | |
| 24 | + have hpoint (j : ℕ) : d.values j ^ 2 ≤ | |
| 25 | + 2 * ‖T‖ * (p j + q j) + ‖K (d.basis j)‖ ^ 2 := by | |
| 26 | + have hp : 0 ≤ p j := hP.2.1 _ | |
| 27 | + have hq : 0 ≤ q j := hD.2.1 _ | |
| 28 | + let k := (paperInner (K (d.basis j)) (d.basis j)).re | |
| 29 | + have hval : (paperInner (T (d.basis j)) (d.basis j)).re = d.values j := by | |
| 30 | + change (inner ℂ (d.basis j) (T (d.basis j))).re = _ | |
| 31 | + rw [d.diagonal, inner_smul_right, inner_self_eq_norm_sq_to_K, d.basis.orthonormal.norm_eq_one] | |
| 32 | + simp | |
| 33 | + have heig : d.values j = p j - q j - k := by | |
| 34 | + rw [← hval, hT] | |
| 35 | + simp only [paperInner, inner_sub_right, Complex.sub_re, p, q, k] | |
| 36 | + have hk : |k| ≤ ‖K (d.basis j)‖ := by | |
| 37 | + apply (Complex.abs_re_le_norm _).trans | |
| 38 | + simpa only [paperInner, d.basis.orthonormal.norm_eq_one, one_mul] using | |
| 39 | + norm_inner_le_norm (𝕜 := ℂ) (d.basis j) (K (d.basis j)) | |
| 40 | + have habs : |d.values j| ≤ p j + q j + ‖K (d.basis j)‖ := by | |
| 41 | + rw [heig] | |
| 42 | + have hpq := abs_sub (p j) (q j) | |
| 43 | + rw [abs_of_nonneg hp, abs_of_nonneg hq] at hpq | |
| 44 | + exact (abs_sub _ _).trans (add_le_add hpq hk) | |
| 45 | + have hm := mul_le_mul_of_nonneg_left habs (abs_nonneg (d.values j)) | |
| 46 | + have ht := mul_le_mul_of_nonneg_right (d.abs_value_le_norm j) (add_nonneg hp hq) | |
| 47 | + nlinarith [sq_abs (d.values j), sq_nonneg (|d.values j| - ‖K (d.basis j)‖)] | |
| 48 | + have hp := hP.trace_basis_independent d.basis | |
| 49 | + have hq := hD.trace_basis_independent d.basis | |
| 50 | + have hk := proposition_5_3_hs_basis_independent K hK d.basis | |
| 51 | + have hpq : Summable (fun j => 2 * ‖T‖ * (p j + q j)) := (hp.1.add hq.1).mul_left _ | |
| 52 | + calc | |
| 53 | + _ = ∑' j, d.values j ^ 2 := d.hsNorm_sq | |
| 54 | + _ ≤ ∑' j, (2 * ‖T‖ * (p j + q j) + ‖K (d.basis j)‖ ^ 2) := | |
| 55 | + d.squareSummable.tsum_le_tsum hpoint (hpq.add hk.1) | |
| 56 | + _ = _ := by | |
| 57 | + rw [hpq.tsum_add hk.1, tsum_mul_left, hp.1.tsum_add hq.1, ← hp.2, ← hq.2, ← hk.2] | |
| 58 | + | |
| 59 | +/-- On the standard strip the squared HS norm is bounded by a constant times | |
| 60 | +`(log N)^2 * ‖T‖ + (log N)^3`, uniformly for the even moduli satisfying local GRH. -/ | |
| 61 | +theorem residualOperator_hsNorm_sq_le_norm : | |
| 62 | + ∃ C : ℝ, 0 < C ∧ ∀ (N : ℕ) [NeZero N], Even N → Real.exp 10 < (N : ℝ) → GRH N → | |
| 63 | + ∀ ha : alpha N < beta, hsNorm (residualOperator ha N) ^ 2 ≤ | |
| 64 | + C * (Real.log N ^ 2 * ‖residualOperator ha N‖ + Real.log N ^ 3) := by | |
| 65 | + obtain ⟨A, hA, hcomponents⟩ := proposition_6_5 | |
| 66 | + obtain ⟨B, hB, hmodel⟩ := modelOperator_log_three_halves_bound | |
| 67 | + refine ⟨6 * A + B ^ 2, by positivity, ?_⟩ | |
| 68 | + intro N _ hN hlarge hGRH ha | |
| 69 | + obtain ⟨hP, hD, hK, hp, hq, _⟩ := hcomponents N inferInstance hN hlarge hGRH ha | |
| 70 | + have ha0 := large_alpha_pos hlarge | |
| 71 | + have hN4 := (large_parameters hlarge).1 | |
| 72 | + have he := residualOperator_components_at _ N ha0 hN4 hGRH ha | |
| 73 | + obtain ⟨d⟩ := residualOperator_has_spectral_data_at _ N ha0 hN4 hGRH ha | |
| 74 | + have h := d.hsNorm_sq_le_traces_add_error he hP hD hK | |
| 75 | + have hi : (alpha N)⁻¹ = Real.log N := by simp [alpha, one_div] | |
| 76 | + have htr : positiveTrace (arithmeticOperator ha N) + positiveTrace (diagonalOperator ha N) ≤ | |
| 77 | + 3 * A * Real.log N ^ 2 := by | |
| 78 | + have h₁ := hp.2 | |
| 79 | + have h₂ := hq.2 | |
| 80 | + rw [hi] at h₁ h₂ | |
| 81 | + linarith | |
| 82 | + have hlog : 0 ≤ Real.log N := Real.log_nonneg (by exact_mod_cast (show 1 ≤ N by omega)) | |
| 83 | + have hrpow : (Real.log N ^ (3 / 2 : ℝ)) ^ 2 = Real.log N ^ 3 := by | |
| 84 | + rw [← Real.rpow_natCast, ← Real.rpow_mul hlog] | |
| 85 | + norm_num | |
| 86 | + have hKsq : hsNorm (modelOperator ha N) ^ 2 ≤ B ^ 2 * Real.log N ^ 3 := by | |
| 87 | + calc | |
| 88 | + _ ≤ (B * Real.log N ^ (3 / 2 : ℝ)) ^ 2 := | |
| 89 | + (sq_le_sq₀ (hsNorm_nonneg _) (by positivity)).mpr (hmodel N hlarge ha) | |
| 90 | + _ = _ := by rw [mul_pow, hrpow] | |
| 91 | + calc | |
| 92 | + _ ≤ 2 * ‖residualOperator ha N‖ * | |
| 93 | + (positiveTrace (arithmeticOperator ha N) + positiveTrace (diagonalOperator ha N)) + | |
| 94 | + hsNorm (modelOperator ha N) ^ 2 := h | |
| 95 | + _ ≤ 2 * ‖residualOperator ha N‖ * (3 * A * Real.log N ^ 2) + B ^ 2 * Real.log N ^ 3 := | |
| 96 | + add_le_add (mul_le_mul_of_nonneg_left htr (by positivity)) hKsq | |
| 97 | + _ = 6 * A * (Real.log N ^ 2 * ‖residualOperator ha N‖) + B ^ 2 * Real.log N ^ 3 := by ring | |
| 98 | + _ ≤ _ := by | |
| 99 | + rw [mul_add] | |
| 100 | + exact add_le_add (mul_le_mul_of_nonneg_right (by nlinarith [sq_nonneg B]) (by positivity)) | |
| 101 | + (mul_le_mul_of_nonneg_right (by linarith) (pow_nonneg hlog 3)) | |
| 102 | + | |
| 103 | +end ConditionalGoldbach | |
