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): 证明算术差与真实余项的 HS 范数比较
Browse filesChecks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+4 −4 ConditionalGoldbach/Proofs/PerronDiagonalWeights.lean View file
| @@ -43,7 +43,7 @@ private lemma mangoldt_sum_antitone_le (u : ℕ → ℝ) (hu : Antitone u) (hu0 | ||
| 43 | 43 | have hm : mass (k + 1) = mass k + mangoldt (k + 1) := Finset.sum_range_succ _ _ |
| 44 | 44 | rw [hm, Nat.cast_succ] at hstep |
| 45 | 45 | rw [Finset.sum_range_succ, Finset.sum_range_succ, hm, Nat.cast_succ] |
| 46 | - linarith | |
| 46 | + nlinarith only [ih, hstep] | |
| 47 | 47 | exact (le_add_of_nonneg_right (mul_nonneg (hmass M) (hu0 M))).trans (hb M) |
| 48 | 48 | |
| 49 | 49 | private lemma overlap_div_le {x y : ℝ} (hx : 0 < x) (hy : 0 < y) : |
| @@ -59,7 +59,7 @@ private lemma overlap_div_le {x y : ℝ} (hx : 0 < x) (hy : 0 < y) : | ||
| 59 | 59 | linarith |
| 60 | 60 | · calc |
| 61 | 61 | _ ≤ (x / y) / y := div_le_div_of_nonneg_right (min_le_right _ _) hy.le |
| 62 | - _ = x / y ^ 2 := by ring | |
| 62 | + _ = x / y ^ 2 := by field_simp <;> ring | |
| 63 | 63 | _ ≤ _ := by |
| 64 | 64 | apply (div_le_div_iff₀ (by positivity) (by positivity)).mpr |
| 65 | 65 | have hsq : (x + y) ^ 2 ≤ (2 * y) ^ 2 := |
| @@ -117,7 +117,7 @@ theorem diagonalCoefficient_overlap_sum_le (N n M : ℕ) (hn : 1 ≤ n) (a : ℝ | ||
| 117 | 117 | ArithmeticFunction.vonMangoldt_le_log.trans (Real.log_le_rpow_div hy.le (by positivity)) |
| 118 | 118 | rw [show -2 * a = -(2 * a) by ring, Real.rpow_neg hy.le, ← div_eq_mul_inv] |
| 119 | 119 | apply (div_le_iff₀ (Real.rpow_pos_of_pos hy _)).mpr |
| 120 | - linarith | |
| 120 | + exact hlog.trans_eq (by ring) | |
| 121 | 121 | have hweight : min (y / x) (x / y) / y ≤ 4 * u j := by |
| 122 | 122 | apply (overlap_div_le hx hy).trans |
| 123 | 123 | have hyj : y = (j : ℝ) + 1 := by simp [y] |
| @@ -135,7 +135,7 @@ theorem diagonalCoefficient_overlap_sum_le (N n M : ℕ) (hn : 1 ≤ n) (a : ℝ | ||
| 135 | 135 | _ ≤ mangoldt (j + 1) * (1 / (2 * a)) * (4 * u j) := |
| 136 | 136 | mul_le_mul (mul_le_mul_of_nonneg_left hΛw hΛ) hweight |
| 137 | 137 | (div_nonneg (le_min (by positivity) (by positivity)) hy.le) (by positivity) |
| 138 | - _ = _ := by ring | |
| 138 | + _ = _ := by field_simp [ha.ne'] <;> ring | |
| 139 | 139 | calc |
| 140 | 140 | _ ≤ ∑ j ∈ Finset.range M, (2 / a) * (mangoldt (j + 1) * u j) := |
| 141 | 141 | Finset.sum_le_sum (fun j _ => hterm j) |
+43 −0 ConditionalGoldbach/Proofs/ResidualTraceComparison.lean View file
| @@ -11,6 +11,49 @@ noncomputable section | ||
| 11 | 11 | open scoped BigOperators |
| 12 | 12 | namespace ConditionalGoldbach |
| 13 | 13 | |
| 14 | +/-- The reverse triangle inequality for the project's basis-defined HS norm. -/ | |
| 15 | +theorem abs_hsNorm_sub_hsNorm_le {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| 16 | + [CompleteSpace H] {A T : H →L[ℂ] H} (hA : IsHilbertSchmidt A) (hT : IsHilbertSchmidt T) : | |
| 17 | + |hsNorm A - hsNorm T| ≤ hsNorm (A - T) := by | |
| 18 | + let b := Classical.choose hA | |
| 19 | + have htwo : (2 : ENNReal).toReal = 2 := by norm_num | |
| 20 | + let cols (F : H →L[ℂ] H) (hF : IsHilbertSchmidt F) : lp (fun _ : ℕ => H) 2 := | |
| 21 | + ⟨fun j => F (b j), memℓp_gen (by | |
| 22 | + simpa only [htwo, Real.rpow_two] using (proposition_5_3_hs_basis_independent F hF b).1)⟩ | |
| 23 | + have hcol (F : H →L[ℂ] H) (hF : IsHilbertSchmidt F) (j : ℕ) : cols F hF j = F (b j) := rfl | |
| 24 | + have hnorm (F : H →L[ℂ] H) (hF : IsHilbertSchmidt F) : ‖cols F hF‖ = hsNorm F := by | |
| 25 | + apply (sq_eq_sq₀ (norm_nonneg _) (hsNorm_nonneg _)).mp | |
| 26 | + rw [(proposition_5_3_hs_basis_independent F hF b).2] | |
| 27 | + simpa only [htwo, Real.rpow_two, hcol] using | |
| 28 | + lp.norm_rpow_eq_tsum (by rw [htwo]; norm_num) (cols F hF) | |
| 29 | + have hdiff := (hilbertSchmidt_sub_bound hA hT).1 | |
| 30 | + have hc : cols A hA - cols T hT = cols (A - T) hdiff := by ext j <;> rfl | |
| 31 | + simpa only [hnorm, hc] using abs_norm_sub_norm_le (cols A hA) (cols T hT) | |
| 32 | + | |
| 33 | +/-- Removing the model changes the HS norm by at most the three-halves power of | |
| 34 | +the logarithm on the standard strip. -/ | |
| 35 | +theorem arithmetic_diagonal_hsNorm_sub_residual_bound : | |
| 36 | + ∃ C : ℝ, 0 < C ∧ ∀ (N : ℕ) [NeZero N], Even N → Real.exp 10 < (N : ℝ) → GRH N → | |
| 37 | + ∀ ha : alpha N < beta, | |
| 38 | + |hsNorm (arithmeticOperator ha N - diagonalOperator ha N) - hsNorm (residualOperator ha N)| ≤ | |
| 39 | + C * Real.log N ^ (3 / 2 : ℝ) := by | |
| 40 | + obtain ⟨C, hC, hmodel⟩ := modelOperator_log_three_halves_bound | |
| 41 | + refine ⟨C, hC, ?_⟩ | |
| 42 | + intro N _ hN hlarge hGRH ha | |
| 43 | + obtain ⟨_, _, hcomponents⟩ := proposition_6_5 | |
| 44 | + obtain ⟨hP, hD, hK, _⟩ := hcomponents N inferInstance hN hlarge hGRH ha | |
| 45 | + have hA := (hilbertSchmidt_sub_bound hP.isHilbertSchmidt hD.isHilbertSchmidt).1 | |
| 46 | + have he := residualOperator_components_at _ N (large_alpha_pos hlarge) | |
| 47 | + (large_parameters hlarge).1 hGRH ha | |
| 48 | + have hT : IsHilbertSchmidt (residualOperator ha N) := by | |
| 49 | + rw [he] | |
| 50 | + exact (hilbertSchmidt_sub_bound hA hK).1 | |
| 51 | + have h := abs_hsNorm_sub_hsNorm_le hA hT | |
| 52 | + have hk : arithmeticOperator ha N - diagonalOperator ha N - residualOperator ha N = | |
| 53 | + modelOperator ha N := by rw [he]; abel | |
| 54 | + rw [hk] at h | |
| 55 | + exact h.trans (hmodel N hlarge ha) | |
| 56 | + | |
| 14 | 57 | /-- Test a difference of two positive trace-class operators and an HS error in an |
| 15 | 58 | eigenbasis of the difference. The error enters with its squared HS norm. -/ |
| 16 | 59 | theorem SpectralData.hsNorm_sq_le_traces_add_error |
