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.DictionaryApplication |
| 4 | |
| 5 | public section |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | open scoped BigOperators ComplexConjugate Topology Quaternion |
| 10 | open MeasureTheory Filter Set Complex |
| 11 | namespace ConditionalGoldbach |
| 12 | attribute [local instance] Classical.propDecidable |
| 13 | |
| 14 | variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] |
| 15 | |
| 16 | omit [CompleteSpace H] in |
| 17 | theorem spectral_real_zero_mem_Ioo (N : ℕ) (T : H →L[ℂ] H) |
| 18 | (hT : Nonempty (SpectralData T)) (hδ : 0 < spectralScale N) (x : ℝ) |
| 19 | (hx : spectralQuaternion N T x = 0) : x ∈ Ioo 0 1 := by |
| 20 | obtain ⟨j, hμ, hroot⟩ := (spectralQuaternion_eq_zero_iff N T hT hδ.ne' x).1 hx |
| 21 | have hc : 0 < spectralScale N ^ 2 / (4 * eigenvalues T j ^ 2) := |
| 22 | div_pos (sq_pos_of_pos hδ) (mul_pos (by norm_num) (sq_pos_of_ne_zero hμ)) |
| 23 | have heq := congrArg (fun q : Quaternion ℝ => q.re) hroot |
| 24 | simp only [Quaternion.re_mul, Quaternion.re_coe, Quaternion.imI_coe, Quaternion.imJ_coe, |
| 25 | Quaternion.imK_coe, Quaternion.re_sub, Quaternion.re_one, Quaternion.imI_sub, |
| 26 | Quaternion.imI_one, Quaternion.imJ_sub, Quaternion.imJ_one, Quaternion.imK_sub, |
| 27 | Quaternion.imK_one, zero_mul, sub_zero] at heq |
| 28 | constructor |
| 29 | · by_contra hn |
| 30 | have hxle : x ≤ 0 := le_of_not_gt hn |
| 31 | have hp : x * (1 - x) ≤ 0 := mul_nonpos_of_nonpos_of_nonneg hxle (by linarith) |
| 32 | linarith |
| 33 | · by_contra hn |
| 34 | have hxge : 1 ≤ x := le_of_not_gt hn |
| 35 | have hp : x * (1 - x) ≤ 0 := mul_nonpos_of_nonneg_of_nonpos (by linarith) (by linarith) |
| 36 | linarith |
| 37 | |
| 38 | theorem proposition_6_3 (N : ℕ) [NeZero N] (hN : Even N) (hlarge : Real.exp 10 < (N : ℝ)) |
| 39 | (hGRH : GRH N) (ha : alpha N < beta) : |
| 40 | (∀ q : Quaternion ℝ, spectralQuaternion N (residualOperator ha N) q = 0 ↔ |
| 41 | ∃ j : ℕ, eigenvalues (residualOperator ha N) j ≠ 0 ∧ |
| 42 | q * (1 - q) = (spectralScale N ^ 2 / |
| 43 | (4 * eigenvalues (residualOperator ha N) j ^ 2) : ℝ)) ∧ |
| 44 | (∀ q : Quaternion ℝ, spectralQuaternion N (residualOperator ha N) q = 0 → |
| 45 | q.re ≠ 1 / 2 → q = (q.re : Quaternion ℝ) ∧ q.re ∈ Ioo 0 1) ∧ |
| 46 | (∀ x : ℝ, spectralQuaternion N (residualOperator ha N) x = 0 → x ∈ Ioo 0 1) ∧ |
| 47 | Set.Finite {j | spectralScale N < |eigenvalues (residualOperator ha N) j|} := by |
| 48 | have hparam := large_parameters hlarge |
| 49 | have hNpos : 0 < (N : ℝ) := by exact_mod_cast (show 0 < N by omega) |
| 50 | have hδ := spectralScale_pos N hNpos (singularSeries_pos N) hparam.2.1 |
| 51 | have hT := residualOperator_has_spectral_data N hN hlarge hGRH ha |
| 52 | refine ⟨spectralQuaternion_eq_zero_iff N _ hT hδ.ne', ?_, |
| 53 | spectral_real_zero_mem_Ioo N _ hT hδ, finite_large_eigenvalues _ hT _ hδ⟩ |
| 54 | intro q hzero hcrit |
| 55 | obtain ⟨j, hμ, hroot⟩ := (spectralQuaternion_eq_zero_iff N _ hT hδ.ne' q).1 hzero |
| 56 | have hreal := quaternion_quadratic_real_of_off_critical q _ hroot hcrit |
| 57 | refine ⟨hreal, spectral_real_zero_mem_Ioo N _ hT hδ q.re ?_⟩ |
| 58 | simpa only [← hreal] using hzero |
| 59 | |
| 60 | set_option linter.unusedVariables false in |
| 61 | theorem proposition_6_1_all_slices (N : ℕ) [NeZero N] (hN : Even N) |
| 62 | (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) |
| 63 | (J : Quaternion ℝ) (hJre : J.re = 0) (hJsq : J ^ 2 = -1) (z : ℂ) : |
| 64 | spectralQuaternion N (residualOperator ha N) ((z.re : Quaternion ℝ) + z.im • J) = |
| 65 | ((spectralComplex N (residualOperator ha N) z).re : Quaternion ℝ) + |
| 66 | (spectralComplex N (residualOperator ha N) z).im • J := by |
| 67 | have hT := residualOperator_has_spectral_data N hN hlarge hGRH ha |
| 68 | exact spectralQuaternion_apply_algHom N _ hT (Complex.liftAux J (by simpa [pow_two] using hJsq)) z |
| 69 | |
| 70 | theorem proposition_6_1_complex_slice (N : ℕ) [NeZero N] |
| 71 | (hN : Even N) (hlarge : Real.exp 10 < (N : ℝ)) |
| 72 | (hGRH : GRH N) (ha : alpha N < beta) (q : ℂ) : |
| 73 | spectralQuaternion N (residualOperator ha N) (complexQuaternion q) = |
| 74 | complexQuaternion (spectralComplex N (residualOperator ha N) q) := by |
| 75 | have hT := residualOperator_has_spectral_data N hN hlarge hGRH ha |
| 76 | exact spectralQuaternion_complex_slice N _ hT q |
| 77 | |
| 78 | end ConditionalGoldbach |
