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
Start from https://github.com/subfish-zhou/conditional-goldbach-lean at c55db645f3b4aed00374fe4aa1fcee2428c88c4b (its folder formalization)
Browse filesIts tree as it is at that commit, without its history; the problem's own files follow. Left out, not being the proof, its build or its licences (16): - draft-modules.json - package-lock.json - package.json - progress-browser-verification.json - progress-desktop.png - progress-mobile.png - progress-verification.json - progress-zh-browser-verification.json - progress-zh-desktop.png - progress-zh-mobile.png - progress-zh-verification.json - progress.html - progress.zh.html - requirements-review.txt - scripts - reference/Reviewed.lean Until now the project held its own files, kept in this commit's history; its Known page stays.
+2 −11 .gitignore View file
| @@ -1,15 +1,6 @@ | ||
| 1 | 1 | .lake/ |
| 2 | 2 | *.olean |
| 3 | 3 | *.ilean |
| 4 | +*.trace | |
| 5 | +node_modules/ | |
| 4 | 6 | __pycache__/ |
| 5 | -.venv/ | |
| 6 | -metrics.json | |
| 7 | -examples/*/metrics.json | |
| 8 | -routes/*/metrics.json | |
| 9 | -*.aux | |
| 10 | -*.log | |
| 11 | -*.out | |
| 12 | -.DS_Store | |
| 13 | - | |
| 14 | -# check outputs | |
| 15 | -*-metrics.json | |
+0 −96 AGENTS.md deleted
| @@ -1,96 +0,0 @@ | ||
| 1 | -# Rules for this project | |
| 2 | - | |
| 3 | -Read `README.md` first: its "Where it stands" changed in the project's first two weeks. **GRH is a project assumption**, **R is refuted** (in Lean, pending review), **S is the open hypothesis**. Do not try to prove GRH or R here, and do not describe a check pass as a proof of Goldbach or of S. | |
| 4 | - | |
| 5 | -## First session | |
| 6 | - | |
| 7 | -```bash | |
| 8 | -python3 checks/verify.py examples/count-30030 # the check works; last line E-6: 905 | |
| 9 | -python3 -I classical/circle/singular_series.py 100 1000 30030 # the circle method's heuristic, where K-1 begins | |
| 10 | -git fetch origin issues && git show origin/issues:BOARD.md # once the project is on the site | |
| 11 | -``` | |
| 12 | - | |
| 13 | -Pick one issue. First tasks, one session each: **C-1** (Appendix B exactly; the `count` check verifies it), **L-1** (the status table), **S-1** (a short Lean lemma), **V-1** (rebuild the refutation of R; Lean 4.35 on Linux). The research is **S** (S-2 to S-5), **V-6** (the refutation of R read as mathematics, against the paper's own numbering) and the two classical roads, **K-1** and **K-2**. None of these three needs Lean or compute: the roads start from `classical/README.md` and the script in `classical/circle/` or `classical/sieve/`. | |
| 14 | - | |
| 15 | -## Claim an issue | |
| 16 | - | |
| 17 | -Create your route and say what you take: | |
| 18 | - | |
| 19 | -```bash | |
| 20 | -git switch -c my-route origin/main | |
| 21 | -mkdir -p routes/my-route | |
| 22 | -cat > routes/my-route/README.md <<'EOF' | |
| 23 | ---- | |
| 24 | -issue: 12 | |
| 25 | -status: working | |
| 26 | ---- | |
| 27 | -# my-route | |
| 28 | - | |
| 29 | -What I try and how. | |
| 30 | - | |
| 31 | -## Next | |
| 32 | - | |
| 33 | -The first concrete step. | |
| 34 | -EOF | |
| 35 | -``` | |
| 36 | - | |
| 37 | -A push keeps the claim alive. If you stop, leave `## Next` so whoever continues knows where you stopped. | |
| 38 | - | |
| 39 | -## What to submit | |
| 40 | - | |
| 41 | -The exact shapes — every file, its schema and what judges it — are in **`docs/submission.md`**. In short: | |
| 42 | - | |
| 43 | -- **Certificate.** Put `CERTIFICATE.json` in your route's folder. The `count` check recomputes E-6 (the format is in `examples/count-30030/`) and C-1 (the format is in `docs/submission.md`) exactly, and writes its score when it passes. A certificate for C-2 … C-5 has no automatic verifier yet: it exits 0 and a maintainer reads it with your script. | |
| 44 | -- **Formal.** Put `target.json` (`{"target": "not-r"}`) and `Solution.lean` in your route's folder. The solution declares the fixed theorem; do **not** import `ConditionalGoldbach.UserChallenge`. No `lean` check runs yet (below): your notes give the build commands, versions and log hash, and a maintainer rebuilds it. | |
| 45 | -- **Research.** Open a pull request with a paper-style proof, counterexample, or obstruction. Say in the body which fixed definition/quantifier you used and what remains. | |
| 46 | - | |
| 47 | -Every pull request should link its issue and end with `## Next`. | |
| 48 | - | |
| 49 | -The checks read their own code from the approved version and your files from `$SS_INPUT/$SS_ROUTE_DIR`, so editing a checker on your route changes nothing. A score is kept only when the check writes the file named in `scienceslack.json` to its working directory. | |
| 50 | - | |
| 51 | -## Lean submissions | |
| 52 | - | |
| 53 | -**No remote Lean check yet.** The project declares a `lean` check once a runner has the toolchain: Lean 4.35.0, Mathlib `56a00585`, Zhou's development at `c55db645` and, for GRH, `grh-compact` (`lsernau/grh-lean` at `72fead10`). Until then: | |
| 54 | - | |
| 55 | -- build locally, on Linux for `lake comparator`: `GOLDBACH_LEAN_PROJECT=/path/to/conditional-goldbach-lean/formalization scripts/lean-local.sh not-r routes/<name>`; | |
| 56 | -- or build the image yourself from `docker/lean-check.Dockerfile` (no public image is published) and run `scripts/lean-docker.sh check not-r routes/<name>`; | |
| 57 | -- record the commands, the versions and the log's hash in your route's notes; a maintainer reruns them. | |
| 58 | - | |
| 59 | -Ask the user **once**, before your first Lean task, whether to set up Lean locally (it downloads several GB); record the answer in your route notes and do not ask again. The solution must declare the same fully qualified theorem as the target; it may import the development's definitions but not `ConditionalGoldbach.UserChallenge`. Details: `docs/lean-verification.md`. | |
| 60 | - | |
| 61 | -## How results are judged | |
| 62 | - | |
| 63 | -- **Formal:** the `lean` check builds the approved Challenge and your Solution, the comparator accepts the type, and `#print axioms` lists only `propext`, `Classical.choice`, `Quot.sound`. No `sorry`, `axiom`, `unsafe`, `native_decide`, `implemented_by`, `extern`, or `opaque`. | |
| 64 | -- **Certificate:** the script reruns; the arithmetic has a stated error bound; a second agent can reproduce it. | |
| 65 | -- **Research:** maintainers and external experts read the proof. "The check passed" is not a substitute for a proof. | |
| 66 | - | |
| 67 | -## Do not | |
| 68 | - | |
| 69 | -- change `targets/`'s fixed statements, the approved checks, or `scienceslack.json`; | |
| 70 | -- use `sorry`, `axiom`, `unsafe`, or `native_decide` to get a pass; | |
| 71 | -- describe GRH, S or Goldbach as proved by this project, or R as open; | |
| 72 | -- copy the Li–Liu files into this repository (their license is undeclared); | |
| 73 | -- hide a failed route: keep it and write `## Next`. | |
| 74 | - | |
| 75 | -## Cite | |
| 76 | - | |
| 77 | -Cite the paper, the Lean development, and the exact commit of any certificate or proof you build on. Negative results stay in the route's notes. | |
| 78 | - | |
| 79 | -## Where things are | |
| 80 | - | |
| 81 | -| Path | What | | |
| 82 | -|---|---| | |
| 83 | -| `docs/primer.md` | GRH, the paper, the two Lean developments, and the order to read them | | |
| 84 | -| `docs/background.md` | the five-step method and notation | | |
| 85 | -| `docs/hypotheses-H-R.md` | the exact H/R statements and quantifiers | | |
| 86 | -| `docs/proof-map.md` | paper result ↔ Lean declaration ↔ file | | |
| 87 | -| `docs/evaluation.md` | the three kinds of result and anti-gaming rules | | |
| 88 | -| `docs/submission.md` | every deliverable's exact shape, and how the runner feeds a check | | |
| 89 | -| `docs/join-prompt.md` | the sentence a person gives their agent to join | | |
| 90 | -| `docs/faq.md` | common questions, including "is Goldbach proved?" | | |
| 91 | -| `docs/comet.svg` | the Goldbach comet the README shows; `scripts/comet.py` draws it | | |
| 92 | -| `targets/` | fixed Lean statements and starters | | |
| 93 | -| `checks/` | the certificate check | | |
| 94 | -| `examples/` | a passing certificate and a route template | | |
| 95 | -| `KNOWN.md` | what is proved, open, and failed | | |
| 96 | -| `materials/` | what is kept in the repository, what is cited, and the checksums | | |
+4 −0 ConditionalGoldbach.lean added View file
| @@ -0,0 +1,4 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Remaining | |
| 4 | +public import ConditionalGoldbach.Proofs.SpectralDataAlgebra | |
+171 −0 ConditionalGoldbach/Analysis/L2Fourier.lean added View file
| @@ -0,0 +1,171 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.Fourier.LpSpace | |
| 4 | +import Mathlib.Tactic.NormNum.RealSqrt | |
| 5 | + | |
| 6 | +/-! | |
| 7 | +# Fourier integrals and physical normalization on L²(ℝ, ℂ) | |
| 8 | + | |
| 9 | +This module depends only on Mathlib. It relates the classical Fourier integral | |
| 10 | +and the L² Fourier isometry, realizes nonzero real dilations in L², and proves | |
| 11 | +continuity and norm preservation for the physical normalization. Hardy interior | |
| 12 | +restrictions and endpoint traces are independent consumers of these facts. | |
| 13 | +-/ | |
| 14 | +@[expose] public section | |
| 15 | + | |
| 16 | +set_option autoImplicit false | |
| 17 | +noncomputable section | |
| 18 | +open MeasureTheory Filter Set Complex FourierTransform SchwartzMap | |
| 19 | +open scoped ContDiff Topology | |
| 20 | +namespace ConditionalGoldbach.Analysis | |
| 21 | + | |
| 22 | +/-- The classical Fourier transform of an integrable function is continuous. -/ | |
| 23 | +lemma classical_fourier_continuous {f : ℝ → ℂ} (hf : Integrable f) : | |
| 24 | + Continuous (𝓕 f) := by | |
| 25 | + change Continuous (VectorFourier.fourierIntegral Real.fourierChar volume (innerₗ ℝ) f) | |
| 26 | + exact (VectorFourier.fourierIntegral_continuous Real.continuous_fourierChar | |
| 27 | + (show Continuous (fun p : ℝ × ℝ => inner ℝ p.1 p.2) from continuous_inner) hf) | |
| 28 | + | |
| 29 | +/-- Pairing the Fourier transform with a Schwartz test function commutes with Fourier transform. -/ | |
| 30 | +lemma classical_fourier_integral_test {f : ℝ → ℂ} (hf : Integrable f) | |
| 31 | + (g : 𝓢(ℝ, ℂ)) : | |
| 32 | + (∫ t : ℝ, g t * 𝓕 f t) = ∫ t : ℝ, 𝓕 g t * f t := by | |
| 33 | + simpa only [SchwartzMap.fourier_coe, Real.fourier_eq, VectorFourier.fourierIntegral, smul_eq_mul, innerₗ_apply_apply, | |
| 34 | + LinearMap.flip_apply, real_inner_comm, mul_comm] using | |
| 35 | + (VectorFourier.integral_fourierIntegral_smul_eq_flip | |
| 36 | + (L := innerₗ ℝ) Real.continuous_fourierChar continuous_inner hf (g.integrable (μ := volume))) | |
| 37 | + | |
| 38 | +/-- For an integrable L² function, the classical and L² Fourier transforms agree almost everywhere. -/ | |
| 39 | +lemma classical_fourier_eq_L2_ae {f : ℝ → ℂ} (hf : Integrable f) (hf2 : MemLp f 2) : | |
| 40 | + (𝓕 f) =ᵐ[volume] (𝓕 (hf2.toLp f) : Lp ℂ 2) := by | |
| 41 | + apply ae_eq_of_integral_contDiff_smul_eq | |
| 42 | + (classical_fourier_continuous hf).locallyIntegrable | |
| 43 | + ((Lp.memLp _).locallyIntegrable (by norm_num)) | |
| 44 | + intro g hg hc | |
| 45 | + have hc' : HasCompactSupport (Complex.ofRealCLM ∘ g) := hc.comp_left rfl | |
| 46 | + have hg' : ContDiff ℝ ∞ (Complex.ofRealCLM ∘ g) := by fun_prop | |
| 47 | + let G : 𝓢(ℝ, ℂ) := hc'.toSchwartzMap hg' | |
| 48 | + have h := congrArg (fun D : 𝓢'(ℝ, ℂ) => D G) | |
| 49 | + (Lp.fourier_toTemperedDistribution_eq (hf2.toLp f)) | |
| 50 | + have heq : (∫ t : ℝ, 𝓕 G t * f t) = | |
| 51 | + ∫ t : ℝ, 𝓕 G t * (hf2.toLp f) t := by | |
| 52 | + apply integral_congr_ae | |
| 53 | + filter_upwards [hf2.coeFn_toLp] with t ht | |
| 54 | + rw [ht] | |
| 55 | + calc | |
| 56 | + _ = ∫ t : ℝ, G t * 𝓕 f t := by simp [G, Complex.real_smul] | |
| 57 | + _ = ∫ t : ℝ, 𝓕 G t * f t := classical_fourier_integral_test hf G | |
| 58 | + _ = ∫ t : ℝ, 𝓕 G t * (hf2.toLp f) t := heq | |
| 59 | + _ = _ := by simpa [Lp.toTemperedDistribution_apply, smul_eq_mul, | |
| 60 | + TemperedDistribution.fourier_apply, G, Complex.real_smul] using h | |
| 61 | + | |
| 62 | +/-- The classical Fourier transform of an integrable L² function lies in L². -/ | |
| 63 | +lemma classical_fourier_memLp {f : ℝ → ℂ} (hf : Integrable f) (hf2 : MemLp f 2) : | |
| 64 | + MemLp (𝓕 f) 2 := | |
| 65 | + MemLp.ae_eq (classical_fourier_eq_L2_ae hf hf2).symm (Lp.memLp _) | |
| 66 | + | |
| 67 | +/-- A nonzero real dilation preserves membership in L². -/ | |
| 68 | +lemma memLp_comp_real_mul {f : ℝ → ℂ} (hf : MemLp f 2) {c : ℝ} (hc : c ≠ 0) : | |
| 69 | + MemLp (fun t : ℝ => f (c * t)) 2 := by | |
| 70 | + have hm : MemLp f 2 (Measure.map (fun t : ℝ => c * t) volume) := by | |
| 71 | + rw [Real.map_volume_mul_left hc] | |
| 72 | + exact hf.smul_measure ENNReal.ofReal_ne_top | |
| 73 | + exact hm.comp_of_map (by fun_prop) | |
| 74 | + | |
| 75 | +/-- The pushforward of Lebesgue measure under multiplication by a nonzero real scalar. -/ | |
| 76 | +def realScaleMeasure (c : ℝ) : Measure ℝ := ENNReal.ofReal |c⁻¹| • volume | |
| 77 | + | |
| 78 | +/-- Multiplication by a nonzero scalar preserves the appropriately rescaled measure. -/ | |
| 79 | +lemma realScale_measurePreserving {c : ℝ} (hc : c ≠ 0) : | |
| 80 | + MeasurePreserving (fun t : ℝ => c * t) volume (realScaleMeasure c) := | |
| 81 | + ⟨by fun_prop, Real.map_volume_mul_left hc⟩ | |
| 82 | + | |
| 83 | +/-- Real dilation on L², realized through the pushforward measure rather than representatives. -/ | |
| 84 | +def rescaleL2 (c : ℝ) (hc : c ≠ 0) (f : Lp ℂ 2 (volume : Measure ℝ)) : | |
| 85 | + Lp ℂ 2 (volume : Measure ℝ) := | |
| 86 | + Lp.compMeasurePreserving (fun t : ℝ => c * t) (realScale_measurePreserving hc) | |
| 87 | + (Lp.LpToLpOfMeasureLeSMul ENNReal.ofReal_ne_top | |
| 88 | + (show realScaleMeasure c ≤ ENNReal.ofReal |c⁻¹| • volume from le_rfl) f) | |
| 89 | + | |
| 90 | +/-- The L² dilation is continuous in its function argument. -/ | |
| 91 | +lemma rescaleL2_continuous (c : ℝ) (hc : c ≠ 0) : Continuous (rescaleL2 c hc) := | |
| 92 | + (Lp.isometry_compMeasurePreserving (E := ℂ) (p := 2) | |
| 93 | + (realScale_measurePreserving hc)).continuous.comp | |
| 94 | + (Lp.LpToLpOfMeasureLeSMul ENNReal.ofReal_ne_top | |
| 95 | + (show realScaleMeasure c ≤ ENNReal.ofReal |c⁻¹| • volume from le_rfl)).continuous | |
| 96 | + | |
| 97 | +/-- The L² dilation agrees almost everywhere with dilation of representatives. -/ | |
| 98 | +lemma rescaleL2_coe (c : ℝ) (hc : c ≠ 0) (f : Lp ℂ 2 (volume : Measure ℝ)) : | |
| 99 | + rescaleL2 c hc f =ᵐ[volume] (fun t => f (c * t)) := by | |
| 100 | + refine (Lp.coeFn_compMeasurePreserving _ (realScale_measurePreserving hc)).trans ?_ | |
| 101 | + exact (realScale_measurePreserving hc).quasiMeasurePreserving.ae_eq_comp | |
| 102 | + (Lp.coeFn_LpToLpOfMeasureLeSMul ENNReal.ofReal_ne_top | |
| 103 | + (show realScaleMeasure c ≤ ENNReal.ofReal |c⁻¹| • volume from le_rfl) f) | |
| 104 | + | |
| 105 | +/-- The physical Fourier normalization: (2π)⁻¹ᐟ² times the transform at −t/(2π). -/ | |
| 106 | +def physicalFourierL2 (f : Lp ℂ 2 (volume : Measure ℝ)) : Lp ℂ 2 (volume : Measure ℝ) := | |
| 107 | + (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ • | |
| 108 | + rescaleL2 (-(2 * Real.pi)⁻¹) | |
| 109 | + (neg_ne_zero.mpr (inv_ne_zero (mul_ne_zero (by norm_num) Real.pi_ne_zero))) (𝓕 f) | |
| 110 | + | |
| 111 | +/-- Continuity of the physically normalized Fourier transform on L². -/ | |
| 112 | +lemma physicalFourierL2_continuous : Continuous physicalFourierL2 := by | |
| 113 | + unfold physicalFourierL2 | |
| 114 | + exact ((rescaleL2_continuous (-(2 * Real.pi)⁻¹) _).comp | |
| 115 | + (continuous_fourier : Continuous (fun f : Lp ℂ 2 (volume : Measure ℝ) => 𝓕 f))).const_smul ((Real.sqrt (2 * Real.pi) : ℂ)⁻¹) | |
| 116 | + | |
| 117 | +/-- The squared L² norm equals the integral of the squared representative norm. -/ | |
| 118 | +lemma L2_norm_sq_integral (f : Lp ℂ 2 (volume : Measure ℝ)) : | |
| 119 | + ‖f‖ ^ 2 = ∫ t : ℝ, ‖f t‖ ^ 2 := by | |
| 120 | + rw [← real_inner_self_eq_norm_sq, L2.inner_def] | |
| 121 | + simp only [real_inner_self_eq_norm_sq] | |
| 122 | + | |
| 123 | +/-- The L² norm of a `MemLp.toLp` representative is the square root of its energy. -/ | |
| 124 | +lemma toLp_norm_eq_sqrt_integral {f : ℝ → ℂ} (hf : MemLp f 2) : | |
| 125 | + ‖hf.toLp f‖ = Real.sqrt (∫ t : ℝ, ‖f t‖ ^ 2) := by | |
| 126 | + rw [← Real.sqrt_sq (norm_nonneg (hf.toLp f)), L2_norm_sq_integral] | |
| 127 | + congr 1 | |
| 128 | + exact integral_congr_ae (hf.coeFn_toLp.fun_comp (fun z : ℂ => ‖z‖ ^ 2)) | |
| 129 | + | |
| 130 | +/-- The physical L² transform has the expected classical integral representative. -/ | |
| 131 | +lemma physicalFourierL2_coe_classical {f : ℝ → ℂ} | |
| 132 | + (hf : Integrable f) (hf2 : MemLp f 2) : | |
| 133 | + physicalFourierL2 (hf2.toLp f) =ᵐ[volume] (fun t : ℝ => | |
| 134 | + (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * 𝓕 f (-t / (2 * Real.pi))) := by | |
| 135 | + let c : ℝ := -(2 * Real.pi)⁻¹ | |
| 136 | + have hc : c ≠ 0 := neg_ne_zero.mpr (inv_ne_zero (mul_ne_zero (by norm_num) Real.pi_ne_zero)) | |
| 137 | + have hq : QuasiMeasurePreserving (fun t : ℝ => c * t) volume volume := | |
| 138 | + (realScale_measurePreserving hc).quasiMeasurePreserving.mono_right Measure.smul_absolutelyContinuous | |
| 139 | + have he := hq.ae_eq_comp (classical_fourier_eq_L2_ae hf hf2) | |
| 140 | + filter_upwards [Lp.coeFn_smul ((Real.sqrt (2 * Real.pi) : ℂ)⁻¹) | |
| 141 | + (rescaleL2 c hc (𝓕 (hf2.toLp f))), rescaleL2_coe c hc (𝓕 (hf2.toLp f)), he] with t ht hr he | |
| 142 | + change (_ • rescaleL2 c hc (𝓕 (hf2.toLp f))) t = _ | |
| 143 | + rw [ht] | |
| 144 | + simp only [Pi.smul_apply, smul_eq_mul, Function.comp_apply] at hr he ⊢ | |
| 145 | + rw [hr, ← he] | |
| 146 | + congr 2 | |
| 147 | + dsimp [c] | |
| 148 | + ring_nf | |
| 149 | + | |
| 150 | +/-- A real dilation scales squared L² norm by the absolute inverse dilation factor. -/ | |
| 151 | +lemma rescaleL2_norm_sq (c : ℝ) (hc : c ≠ 0) (f : Lp ℂ 2 (volume : Measure ℝ)) : | |
| 152 | + ‖rescaleL2 c hc f‖ ^ 2 = |c⁻¹| * ‖f‖ ^ 2 := by | |
| 153 | + rw [L2_norm_sq_integral] | |
| 154 | + calc | |
| 155 | + _ = ∫ t : ℝ, ‖f (c * t)‖ ^ 2 := | |
| 156 | + integral_congr_ae ((rescaleL2_coe c hc f).fun_comp (fun z : ℂ => ‖z‖ ^ 2)) | |
| 157 | + _ = |c⁻¹| * ∫ t : ℝ, ‖f t‖ ^ 2 := by | |
| 158 | + simpa only [smul_eq_mul] using (Measure.integral_comp_mul_left (fun t : ℝ => ‖f t‖ ^ 2) c) | |
| 159 | + _ = _ := by rw [← L2_norm_sq_integral] | |
| 160 | + | |
| 161 | +/-- The physical Fourier normalization preserves the squared L² norm. -/ | |
| 162 | +lemma physicalFourierL2_norm_sq (f : Lp ℂ 2 (volume : Measure ℝ)) : | |
| 163 | + ‖physicalFourierL2 f‖ ^ 2 = ‖f‖ ^ 2 := by | |
| 164 | + unfold physicalFourierL2 | |
| 165 | + rw [norm_smul, mul_pow, rescaleL2_norm_sq, Lp.norm_fourier_eq] | |
| 166 | + simp only [norm_inv, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg (Real.sqrt_nonneg _), | |
| 167 | + inv_pow, Real.sq_sqrt (by positivity : 0 ≤ 2 * Real.pi), inv_neg, inv_inv, | |
| 168 | + abs_neg, abs_of_pos (by positivity : 0 < 2 * Real.pi)] | |
| 169 | + field_simp | |
| 170 | + | |
| 171 | +end ConditionalGoldbach.Analysis | |
+102 −0 ConditionalGoldbach/Analysis/SpectralData.lean added View file
| @@ -0,0 +1,102 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Hilbert | |
| 4 | +import Mathlib.Tactic.Linarith | |
| 5 | +import Mathlib.Tactic.NormNum | |
| 6 | +import Mathlib.Tactic.Ring | |
| 7 | + | |
| 8 | +/-! Coordinate and norm identities for diagonal spectral data on a Hilbert space. -/ | |
| 9 | +public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open scoped BigOperators ComplexConjugate Topology | |
| 14 | +open Filter Set Complex | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| 17 | + | |
| 18 | +/-- The selected spectral data really give a square-summable eigenvalue family. -/ | |
| 19 | +theorem eigenvalues_square_summable (T : H →L[ℂ] H) (hT : Nonempty (SpectralData T)) : | |
| 20 | + Summable (fun j => eigenvalues T j ^ 2) := by | |
| 21 | + simp only [eigenvalues, dite_eq_left hT] | |
| 22 | + exact (Classical.choice hT).squareSummable | |
| 23 | + | |
| 24 | +/-- Each real diagonal value is bounded in absolute value by the operator norm. -/ | |
| 25 | +theorem SpectralData.abs_value_le_norm {T : H →L[ℂ] H} (d : SpectralData T) (j : ℕ) : | |
| 26 | + |d.values j| ≤ ‖T‖ := by | |
| 27 | + have hb : ‖d.basis j‖ = 1 := d.basis.orthonormal.norm_eq_one j | |
| 28 | + have h := T.le_opNorm (d.basis j) | |
| 29 | + rw [d.diagonal j, norm_smul, Complex.norm_real, Real.norm_eq_abs, hb, mul_one, mul_one] at h | |
| 30 | + exact h | |
| 31 | + | |
| 32 | +theorem abs_eigenvalues_le_norm (T : H →L[ℂ] H) (hT : Nonempty (SpectralData T)) (j : ℕ) : | |
| 33 | + |eigenvalues T j| ≤ ‖T‖ := by | |
| 34 | + simp only [eigenvalues, dite_eq_left hT] | |
| 35 | + exact (Classical.choice hT).abs_value_le_norm j | |
| 36 | + | |
| 37 | +/-- Diagonal action on all Hilbert coordinates, obtained by mapping the basis expansion. -/ | |
| 38 | +theorem SpectralData.repr_apply {T : H →L[ℂ] H} (d : SpectralData T) (x : H) (j : ℕ) : | |
| 39 | + d.basis.repr (T x) j = (d.values j : ℂ) * d.basis.repr x j := by | |
| 40 | + have h := (d.basis.hasSum_repr x).mapL ((innerSL ℂ (d.basis j)).comp T) | |
| 41 | + have hb := orthonormal_iff_ite.mp d.basis.orthonormal | |
| 42 | + simp only [ContinuousLinearMap.comp_apply, innerSL_apply_apply, map_smul, | |
| 43 | + d.diagonal, hb] at h | |
| 44 | + have hh := h.tsum_eq | |
| 45 | + simp only [smul_eq_mul, mul_ite, mul_zero, tsum_ite_eq', mul_one] at hh | |
| 46 | + rw [d.basis.repr_apply_apply, ← hh] | |
| 47 | + ring | |
| 48 | +/-- A uniform bound on the real diagonal values bounds the full operator norm. -/ | |
| 49 | +theorem SpectralData.norm_le {T : H →L[ℂ] H} (d : SpectralData T) (M : ℝ) (hM : 0 ≤ M) | |
| 50 | + (hbound : ∀ j, |d.values j| ≤ M) : ‖T‖ ≤ M := by | |
| 51 | + apply ContinuousLinearMap.opNorm_le_bound _ hM | |
| 52 | + intro x | |
| 53 | + have h : ‖d.basis.repr (T x)‖ ≤ ‖(M : ℂ) • d.basis.repr x‖ := by | |
| 54 | + apply lp.norm_mono (by norm_num : (2 : ENNReal) ≠ 0) | |
| 55 | + intro j | |
| 56 | + rw [SpectralData.repr_apply d x j] | |
| 57 | + simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs, lp.coeFn_smul, Pi.smul_apply, | |
| 58 | + norm_smul, abs_of_nonneg hM] | |
| 59 | + exact mul_le_mul_of_nonneg_right (hbound j) (norm_nonneg _) | |
| 60 | + simpa only [LinearIsometryEquiv.norm_map, norm_smul, Complex.norm_real, Real.norm_eq_abs, | |
| 61 | + abs_of_nonneg hM] using h | |
| 62 | +/-- Full norm equality; the bound is over the whole Hilbert basis, including the kernel. -/ | |
| 63 | +theorem SpectralData.norm_eq_ciSup_abs_values {T : H →L[ℂ] H} (d : SpectralData T) : ‖T‖ = ⨆ j, |d.values j| := by | |
| 64 | + have hb : BddAbove (Set.range fun j => |d.values j|) := by | |
| 65 | + refine ⟨‖T‖, ?_⟩ | |
| 66 | + rintro _ ⟨j, rfl⟩ | |
| 67 | + exact d.abs_value_le_norm j | |
| 68 | + have hnonneg : 0 ≤ ⨆ j, |d.values j| := | |
| 69 | + le_trans (abs_nonneg (d.values 0)) (le_ciSup hb 0) | |
| 70 | + apply le_antisymm | |
| 71 | + · exact SpectralData.norm_le d _ hnonneg (fun j => le_ciSup hb j) | |
| 72 | + · exact ciSup_le (fun j => d.abs_value_le_norm j) | |
| 73 | +/-- Square summability leaves only finitely many eigenvalues above a positive threshold. -/ | |
| 74 | +theorem finite_large_eigenvalues (T : H →L[ℂ] H) (hT : Nonempty (SpectralData T)) | |
| 75 | + (δ : ℝ) (hδ : 0 < δ) : Set.Finite {j | δ < |eigenvalues T j|} := by | |
| 76 | + have hevent : ∀ᶠ j in cofinite, eigenvalues T j ^ 2 < δ ^ 2 := | |
| 77 | + (eigenvalues_square_summable T hT).tendsto_cofinite_zero.eventually | |
| 78 | + (gt_mem_nhds (sq_pos_of_pos hδ)) | |
| 79 | + have hfinite : Set.Finite {j | δ ^ 2 ≤ eigenvalues T j ^ 2} := by | |
| 80 | + simpa only [Filter.eventually_cofinite, not_lt] using hevent | |
| 81 | + apply hfinite.subset | |
| 82 | + intro j hj | |
| 83 | + change δ < |eigenvalues T j| at hj | |
| 84 | + change δ ^ 2 ≤ eigenvalues T j ^ 2 | |
| 85 | + nlinarith [sq_abs (eigenvalues T j)] | |
| 86 | + | |
| 87 | +/-- The norm bound is equivalent to the pointwise spectral bound. -/ | |
| 88 | +theorem SpectralData.norm_le_iff {T : H →L[ℂ] H} (d : SpectralData T) | |
| 89 | + (M : ℝ) (hM : 0 ≤ M) : ‖T‖ ≤ M ↔ ∀ j, |d.values j| ≤ M := by | |
| 90 | + constructor | |
| 91 | + · intro h j | |
| 92 | + exact (d.abs_value_le_norm j).trans h | |
| 93 | + · exact d.norm_le M hM | |
| 94 | + | |
| 95 | +/-- The canonical eigenvalue choice has the same supremum as the operator norm. -/ | |
| 96 | +theorem norm_eq_ciSup_abs_eigenvalues (T : H →L[ℂ] H) (hT : Nonempty (SpectralData T)) : | |
| 97 | + ‖T‖ = ⨆ j, |eigenvalues T j| := by | |
| 98 | + simp only [eigenvalues, dite_eq_left hT] | |
| 99 | + exact (Classical.choice hT).norm_eq_ciSup_abs_values | |
| 100 | + | |
| 101 | + | |
| 102 | +end ConditionalGoldbach | |
+5 −0 ConditionalGoldbach/AnalyticPrerequisites.lean added View file
| @@ -0,0 +1,5 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.QuadraticIdentity | |
| 4 | + | |
| 5 | +/-! The original Hardy realization and quadratic identity are now proved. -/ | |
+10 −0 ConditionalGoldbach/BaseDefinitions.lean added View file
| @@ -0,0 +1,10 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Arithmetic | |
| 4 | +public import ConditionalGoldbach.Definitions.Characters | |
| 5 | +public import ConditionalGoldbach.Definitions.Geometry | |
| 6 | +public import ConditionalGoldbach.Definitions.Hardy | |
| 7 | +public import ConditionalGoldbach.Definitions.Model | |
| 8 | +public import ConditionalGoldbach.Definitions.Weights | |
| 9 | + | |
| 10 | +/-! Compatibility entry point for the reviewed definitions, organized by mathematical topic. -/ | |
+3 −0 ConditionalGoldbach/CharacterEstimatePrerequisites.lean added View file
| @@ -0,0 +1,3 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterZeroExpansion | |
+19 −0 ConditionalGoldbach/Definitions.lean added View file
| @@ -0,0 +1,19 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.BaseDefinitions | |
| 4 | +public import ConditionalGoldbach.Definitions.Arithmetic | |
| 5 | +public import ConditionalGoldbach.Definitions.Asymptotics | |
| 6 | +public import ConditionalGoldbach.Definitions.Characters | |
| 7 | +public import ConditionalGoldbach.Definitions.Experiment | |
| 8 | +public import ConditionalGoldbach.Definitions.FiniteSpectrum | |
| 9 | +public import ConditionalGoldbach.Definitions.Geometry | |
| 10 | +public import ConditionalGoldbach.Definitions.Hardy | |
| 11 | +public import ConditionalGoldbach.Definitions.HardyTraces | |
| 12 | +public import ConditionalGoldbach.Definitions.Hilbert | |
| 13 | +public import ConditionalGoldbach.Definitions.Hypotheses | |
| 14 | +public import ConditionalGoldbach.Definitions.Model | |
| 15 | +public import ConditionalGoldbach.Definitions.Operators | |
| 16 | +public import ConditionalGoldbach.Definitions.Spectral | |
| 17 | +public import ConditionalGoldbach.Definitions.Weights | |
| 18 | + | |
| 19 | +/-! Compatibility entry point for the reviewed definitions, organized by mathematical topic. -/ | |
+51 −0 ConditionalGoldbach/Definitions/Arithmetic.lean added View file
| @@ -0,0 +1,51 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.NumberTheory.ArithmeticFunction.VonMangoldt | |
| 4 | +public import MathlibNt.SieveTheory.Arithmetic.LiuSingularSeries | |
| 5 | + | |
| 6 | +/-! Arithmetic definitions used by the conditional Goldbach formalization. -/ | |
| 7 | +@[expose] public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | +attribute [local instance] Classical.propDecidable | |
| 15 | + | |
| 16 | +abbrev mangoldt := ArithmeticFunction.vonMangoldt | |
| 17 | + | |
| 18 | +abbrev prime (n : ℕ) := Nat.Prime n | |
| 19 | + | |
| 20 | +def C2 : ℝ := MathlibNt.SieveTheory.SingularSeries.liuUniversalProduct | |
| 21 | + | |
| 22 | +def singularSeries (N : ℕ) : ℝ := | |
| 23 | + 2 * MathlibNt.SieveTheory.SingularSeries.liuSingularSeries N | |
| 24 | + | |
| 25 | +def goldbach (N : ℕ) (φ : ℝ → ℝ) : ℝ := | |
| 26 | + (N : ℝ)⁻¹ * ∑ n ∈ Finset.range (N + 1), | |
| 27 | + if 0 < n ∧ n < N ∧ Nat.Coprime (n * (N - n)) N then | |
| 28 | + mangoldt n * mangoldt (N - n) * φ (n / N) * φ ((N - n : ℕ) / N) | |
| 29 | + else 0 | |
| 30 | + | |
| 31 | +def diagonalMoment (N : ℕ) (φ : ℝ → ℝ) : ℝ := | |
| 32 | + (N : ℝ)⁻¹ * ∑ n ∈ Finset.range (N + 1), | |
| 33 | + if Nat.Coprime n N then (mangoldt n) ^ 2 * φ (n / N) ^ 2 else 0 | |
| 34 | + | |
| 35 | +def PrimePairCount (N : ℕ) : ℕ := | |
| 36 | + ((Finset.range (N + 1)).filter (fun p => p.Prime ∧ (N - p).Prime ∧ | |
| 37 | + (N : ℝ) / 3 ≤ p ∧ (p : ℝ) ≤ 2 * N / 3)).card | |
| 38 | + | |
| 39 | +def positiveDifferenceFamily (N n m k : ℕ) : Prop := | |
| 40 | + 0 < k ∧ m = n + k * N | |
| 41 | + | |
| 42 | +def negativeDifferenceFamily (N n m k : ℕ) : Prop := | |
| 43 | + 0 < k ∧ n = m + k * N | |
| 44 | + | |
| 45 | +def sumFamily (N n m k : ℕ) : Prop := | |
| 46 | + 0 < k ∧ n + m = k * N | |
| 47 | + | |
| 48 | +def localDensityFactor (p h : ℕ) : ℝ := | |
| 49 | + (1 - (if p ∣ h then 1 else 2) / (p : ℝ)) / (1 - (p : ℝ)⁻¹) ^ 2 | |
| 50 | + | |
| 51 | +end ConditionalGoldbach | |
+53 −0 ConditionalGoldbach/Definitions/Asymptotics.lean added View file
| @@ -0,0 +1,53 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.GeometryCore | |
| 4 | +public import Mathlib.MeasureTheory.Integral.Bochner.Basic | |
| 5 | +public import Mathlib.MeasureTheory.Measure.Haar.OfBasis | |
| 6 | + | |
| 7 | +/-! Asymptotics definitions used by the conditional Goldbach formalization. -/ | |
| 8 | +@[expose] public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | +attribute [local instance] Classical.propDecidable | |
| 16 | + | |
| 17 | +def EvenEventually (P : ℕ → Prop) : Prop := ∃ N₀ : ℕ, ∀ N ≥ N₀, Even N → P N | |
| 18 | + | |
| 19 | +def EvenTendstoInfinity (h : ℕ → ℝ) : Prop := | |
| 20 | + ∀ B : ℝ, EvenEventually (fun N => B ≤ h N) | |
| 21 | + | |
| 22 | +def NormallySummableOn {ι X : Type*} [TopologicalSpace X] | |
| 23 | + (f : ι → X → ℂ) (U : Set X) : Prop := | |
| 24 | + ∀ K : Set X, IsCompact K → K ⊆ U → | |
| 25 | + (∀ i, BddAbove {r : ℝ | ∃ x ∈ K, r = ‖f i x‖}) ∧ | |
| 26 | + Summable (fun i => sSup {r : ℝ | ∃ x ∈ K, r = ‖f i x‖}) | |
| 27 | + | |
| 28 | +def HermitianKernel (K : ℂ → ℂ → ℂ) : Prop := ∀ s z, K s z = conj (K z s) | |
| 29 | + | |
| 30 | +def PositiveKernel (K : ℂ → ℂ → ℂ) : Prop := | |
| 31 | + ∀ n : ℕ, ∀ points coefficients : Fin n → ℂ, | |
| 32 | + 0 ≤ (∑ i, ∑ j, coefficients i * conj (coefficients j) * K (points i) (points j)).re | |
| 33 | + | |
| 34 | +def BoundaryKernelSquareIntegral (a b : ℝ) (K : ℂ → ℂ → ℂ) : ℝ := | |
| 35 | + ∑ x ∈ ({a, b} : Finset ℝ), ∑ y ∈ ({a, b} : Finset ℝ), | |
| 36 | + ∫ t : ℝ, ∫ u : ℝ, ‖K (line x t) (line y u)‖ ^ 2 | |
| 37 | + | |
| 38 | +def CompactUniformLimit {X Y : Type*} [TopologicalSpace X] [NormedAddCommGroup Y] | |
| 39 | + (f : ℕ → X → Y) (g : X → Y) : Prop := | |
| 40 | + ∀ K : Set X, IsCompact K → ∀ ε : ℝ, 0 < ε → | |
| 41 | + ∃ n₀, ∀ n ≥ n₀, ∀ x ∈ K, ‖f n x - g x‖ < ε | |
| 42 | + | |
| 43 | +def EvenAsymptotic (f g : ℕ → ℝ) : Prop := | |
| 44 | + ∀ ε : ℝ, 0 < ε → EvenEventually (fun N => |f N / g N - 1| < ε) | |
| 45 | + | |
| 46 | +def baselineBound (C : ℝ) (N : ℕ) (a : ℝ) : ℝ := C * (Real.log N ^ 2 + a⁻¹ ^ 2) | |
| 47 | + | |
| 48 | +def balanceFactor (c : ℝ) : ℝ := Real.exp (2 * c) * (1 + c⁻¹ ^ 2) | |
| 49 | + | |
| 50 | +def availableNormMajorant (C : ℝ) (N : ℕ) (a : ℝ) : ℝ := | |
| 51 | + C * (Real.log N ^ 2 + a ^ (-2 : ℤ)) | |
| 52 | + | |
| 53 | +end ConditionalGoldbach | |
+18 −0 ConditionalGoldbach/Definitions/BoundaryIntegral.lean added View file
| @@ -0,0 +1,18 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.GeometryCore | |
| 4 | +public import Mathlib.MeasureTheory.Integral.Bochner.Basic | |
| 5 | +public import Mathlib.MeasureTheory.Measure.Haar.OfBasis | |
| 6 | + | |
| 7 | +/-! Integration along the two vertical sides of a strip. -/ | |
| 8 | +@[expose] public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open MeasureTheory | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +def boundaryIntegral (a b : ℝ) (f : ℂ → ℂ) : ℂ := | |
| 16 | + (∫ t : ℝ, f (line a t)) + ∫ t : ℝ, f (line b t) | |
| 17 | + | |
| 18 | +end ConditionalGoldbach | |
+104 −0 ConditionalGoldbach/Definitions/Characters.lean added View file
| @@ -0,0 +1,104 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Arithmetic | |
| 4 | +public import ConditionalGoldbach.Definitions.GeometryCore | |
| 5 | +public import Mathlib.Analysis.Analytic.Order | |
| 6 | +public import Mathlib.NumberTheory.DirichletCharacter.Orthogonality | |
| 7 | +public import Mathlib.NumberTheory.LSeries.DirichletContinuation | |
| 8 | + | |
| 9 | +/-! Characters definitions used by the conditional Goldbach formalization. -/ | |
| 10 | +@[expose] public section | |
| 11 | + | |
| 12 | +set_option autoImplicit false | |
| 13 | +noncomputable section | |
| 14 | +open scoped BigOperators ComplexConjugate Topology | |
| 15 | +open MeasureTheory Filter Set Complex | |
| 16 | +namespace ConditionalGoldbach | |
| 17 | +attribute [local instance] Classical.propDecidable | |
| 18 | + | |
| 19 | +abbrev Character (N : ℕ) := DirichletCharacter ℂ N | |
| 20 | + | |
| 21 | +local instance conductorNeZero {N : ℕ} [NeZero N] (χ : Character N) : | |
| 22 | + NeZero χ.conductor := ⟨χ.conductor_ne_zero⟩ | |
| 23 | + | |
| 24 | +def oddCharacters (N : ℕ) [NeZero N] : Finset (Character N) := | |
| 25 | + Finset.univ.filter (fun χ => χ (-1) = -1) | |
| 26 | + | |
| 27 | +def characterPolynomial {N : ℕ} (χ : Character N) (φ : ℝ → ℝ) : ℂ := | |
| 28 | + (Real.sqrt N : ℂ)⁻¹ * ∑ n ∈ Finset.range (N + 1), | |
| 29 | + (mangoldt n : ℂ) * χ n * (φ (n / N) : ℂ) | |
| 30 | + | |
| 31 | +def characterMoment (N : ℕ) [NeZero N] (φ : ℝ → ℝ) : ℝ := | |
| 32 | + 2 / N.totient * ∑ χ ∈ oddCharacters N, ‖characterPolynomial χ φ‖ ^ 2 | |
| 33 | + | |
| 34 | +def GRH (N : ℕ) : Prop := | |
| 35 | + ∀ d : ℕ, ∀ (_ : NeZero d), d ∣ N → ∀ χ : Character d, χ.IsPrimitive → | |
| 36 | + ∀ ρ : ℂ, 0 < ρ.re → ρ.re < 1 → χ.LFunction ρ = 0 → ρ.re = 1 / 2 | |
| 37 | + | |
| 38 | +def logDerivative {N : ℕ} [NeZero N] (χ : Character N) (s : ℂ) : ℂ := | |
| 39 | + deriv χ.LFunction (1 / 2 + s) / χ.LFunction (1 / 2 + s) | |
| 40 | + | |
| 41 | +def characterKernel (N : ℕ) [NeZero N] (s z : ℂ) : ℂ := | |
| 42 | + 2 / N.totient * ∑ χ ∈ oddCharacters N, | |
| 43 | + logDerivative χ s * conj (logDerivative χ (conj z)) | |
| 44 | + | |
| 45 | +def ZeroIndex {d : ℕ} [NeZero d] (χ : Character d) := | |
| 46 | + {p : ℂ × ℕ // 0 < p.1.re ∧ p.1.re < 1 ∧ χ.LFunction p.1 = 0 ∧ | |
| 47 | + p.2 < analyticOrderNatAt χ.LFunction p.1} | |
| 48 | + | |
| 49 | +def completedL {d : ℕ} [NeZero d] (χ : Character d) (u : ℂ) : ℂ := | |
| 50 | + (d : ℂ) ^ ((u + 1) / 2) * χ.completedLFunction u | |
| 51 | + | |
| 52 | +def zeroDifference {d : ℕ} [NeZero d] (χ : Character d) (u u₀ : ℂ) : ℂ := | |
| 53 | + ∑' p : ZeroIndex χ, (1 / (u - p.val.1) - 1 / (u₀ - p.val.1)) | |
| 54 | + | |
| 55 | +def eulerCorrection {N : ℕ} [NeZero N] (χ : Character N) (u : ℂ) : ℂ := | |
| 56 | + ∑ p ∈ N.primeFactors, if ¬p ∣ χ.conductor then | |
| 57 | + χ.primitiveCharacter p * (Real.log p : ℂ) / | |
| 58 | + ((p : ℂ) ^ u - χ.primitiveCharacter p) else 0 | |
| 59 | + | |
| 60 | +def zeroPoisson {N : ℕ} [NeZero N] (χ : Character N) (x t : ℝ) : ℝ := | |
| 61 | + ∑' p : ZeroIndex χ.primitiveCharacter, x / (x ^ 2 + (t - p.val.1.im) ^ 2) | |
| 62 | + | |
| 63 | +def averagedLogDerivative (N : ℕ) [NeZero N] (σ : ℝ) : ℝ := | |
| 64 | + 2 / N.totient * ∑ χ ∈ oddCharacters N, | |
| 65 | + ∫ t : ℝ, ‖logDerivative χ (line σ t)‖ ^ 2 / (1 + t ^ 2) | |
| 66 | + | |
| 67 | +def arithmeticExpansionTerm (N n m : ℕ) (s z : ℂ) : ℂ := | |
| 68 | + if 0 < n ∧ 0 < m ∧ Nat.Coprime (n * m) N then | |
| 69 | + (mangoldt n : ℂ) * mangoldt m / ((n : ℂ) ^ (1 / 2 + s) * (m : ℂ) ^ (1 / 2 + z)) * | |
| 70 | + ((if (n : ZMod N) = m then 1 else 0) - | |
| 71 | + (if (n : ZMod N) = -(m : ZMod N) then 1 else 0)) else 0 | |
| 72 | + | |
| 73 | +def zeroWindow {d : ℕ} [NeZero d] (χ : Character d) (t : ℝ) : Set (ZeroIndex χ) := | |
| 74 | + {p | t ≤ p.val.1.im ∧ p.val.1.im < t + 1} | |
| 75 | + | |
| 76 | +def poleCoefficient (N : ℕ) [NeZero N] (γ : ℝ) : ℝ := | |
| 77 | + 2 / N.totient * ∑ χ ∈ oddCharacters N, | |
| 78 | + (analyticOrderNatAt χ.LFunction (line (1 / 2) γ) : ℝ) ^ 2 | |
| 79 | + | |
| 80 | +def pairedZeroSum {N : ℕ} [NeZero N] (χ : Character N) (s : ℂ) : ℂ := | |
| 81 | + ∑' p : ZeroIndex χ.primitiveCharacter, | |
| 82 | + (1 / (s - p.val.1.im * I) - 1 / (3 / 2 - p.val.1.im * I)) | |
| 83 | + | |
| 84 | +def zeroMultiplicity {N : ℕ} [NeZero N] (χ : Character N) (ρ : ℂ) : ℕ := | |
| 85 | + analyticOrderNatAt χ.LFunction ρ | |
| 86 | + | |
| 87 | +def perronCutoff (N : ℕ) : ℝ := (N : ℝ) / 2 | |
| 88 | + | |
| 89 | +def smoothedPerronWeight (X : ℝ) (n : ℕ) : ℝ := | |
| 90 | + if (n : ℝ) ≤ Real.sqrt X then 1 | |
| 91 | + else if (n : ℝ) ≤ X then Real.log (X / n) / Real.log (Real.sqrt X) | |
| 92 | + else 0 | |
| 93 | + | |
| 94 | +def smoothedDirichletPolynomial {N : ℕ} (χ : Character N) (X : ℝ) (u : ℂ) : ℂ := | |
| 95 | + ∑ n ∈ Finset.range (⌊X⌋₊ + 1), | |
| 96 | + (mangoldt n : ℂ) * χ n * (n : ℂ) ^ (-u) * smoothedPerronWeight X n | |
| 97 | + | |
| 98 | +def smoothedPerronKernel (X : ℝ) (v : ℂ) : ℂ := | |
| 99 | + ((X : ℂ) ^ v - (Real.sqrt X : ℂ) ^ v) / (v ^ 2 * Real.log (Real.sqrt X)) | |
| 100 | + | |
| 101 | +def logDerivativeEnergy {N : ℕ} [NeZero N] (χ : Character N) (σ : ℝ) : ℝ := | |
| 102 | + ∫ t : ℝ, ‖logDerivative χ (line σ t)‖ ^ 2 / (1 + t ^ 2) | |
| 103 | + | |
| 104 | +end ConditionalGoldbach | |
+97 −0 ConditionalGoldbach/Definitions/Experiment.lean added View file
| @@ -0,0 +1,97 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Characters | |
| 4 | +public import ConditionalGoldbach.Definitions.Hardy | |
| 5 | +public import ConditionalGoldbach.Definitions.Hilbert | |
| 6 | +public import ConditionalGoldbach.Definitions.Weights | |
| 7 | +public import Mathlib.Analysis.MellinTransform | |
| 8 | +public import Mathlib.MeasureTheory.Function.L2Space | |
| 9 | +public import Mathlib.NumberTheory.ArithmeticFunction.Defs | |
| 10 | +public import Mathlib.NumberTheory.DirichletCharacter.Orthogonality | |
| 11 | + | |
| 12 | +/-! Experiment definitions used by the conditional Goldbach formalization. -/ | |
| 13 | +@[expose] public section | |
| 14 | + | |
| 15 | +set_option autoImplicit false | |
| 16 | +noncomputable section | |
| 17 | +open scoped BigOperators ComplexConjugate Topology | |
| 18 | +open MeasureTheory Filter Set Complex | |
| 19 | +namespace ConditionalGoldbach | |
| 20 | +attribute [local instance] Classical.propDecidable | |
| 21 | +attribute [local instance] conductorNeZero | |
| 22 | + | |
| 23 | +abbrev experimentN : ℕ := 30030 | |
| 24 | + | |
| 25 | +def cutoffPolynomial (t : ℝ) : ℝ := | |
| 26 | + if t ≤ 0 then 0 else if 1 ≤ t then 1 else | |
| 27 | + ∑ j ∈ Finset.Icc 7 13, (Nat.choose 13 j : ℝ) * t ^ j * (1 - t) ^ (13 - j) | |
| 28 | + | |
| 29 | +def wideCutoff (x : ℝ) : ℝ := | |
| 30 | + cutoffPolynomial ((x - 16) / (1000 - 16)) * | |
| 31 | + cutoffPolynomial ((experimentN - x - 16) / (1000 - 16)) | |
| 32 | + | |
| 33 | +def wideCompanion (u : ℝ) : ℝ := | |
| 34 | + if u ∈ Ioo (16 / experimentN : ℝ) (1 - 16 / experimentN : ℝ) then | |
| 35 | + Real.sqrt (1 - u) * wideCutoff (experimentN * u) / | |
| 36 | + Real.sqrt (Real.log (experimentN * u) * Real.log (experimentN * (1 - u))) else 0 | |
| 37 | + | |
| 38 | +def wideWeight (u : ℝ) : ℝ := wideCompanion u / Real.sqrt u | |
| 39 | + | |
| 40 | +def wideCorrelation : ℝ := goldbach experimentN wideWeight | |
| 41 | + | |
| 42 | +def unorderedPrimePairs : ℕ := ((Finset.range (experimentN + 1)).filter | |
| 43 | + (fun p => p.Prime ∧ (experimentN - p).Prime ∧ p ≤ experimentN - p)).card | |
| 44 | + | |
| 45 | +def edgeCorrection : ℝ := ∑ p ∈ Finset.range 1000, | |
| 46 | + if p.Prime ∧ (experimentN - p).Prime ∧ p ≤ experimentN - p | |
| 47 | + then 1 - wideCutoff p ^ 2 else 0 | |
| 48 | + | |
| 49 | +def primePowerCorrection : ℝ := | |
| 50 | + ∑ p ∈ Finset.range (experimentN + 1), ∑ q ∈ Finset.range (experimentN + 1), | |
| 51 | + ∑ k ∈ Finset.range (experimentN + 1), ∑ l ∈ Finset.range (experimentN + 1), | |
| 52 | + if p.Prime ∧ q.Prime ∧ 0 < k ∧ 0 < l ∧ 2 ≤ max k l ∧ | |
| 53 | + p ^ k + q ^ l = experimentN ∧ Nat.Coprime (p * q) experimentN | |
| 54 | + then wideCutoff (p ^ k) ^ 2 / (k * l : ℕ) else 0 | |
| 55 | + | |
| 56 | +def countingCoefficient (n : ℕ) : ℝ := mangoldt n / Real.sqrt n * wideCompanion (n / experimentN) | |
| 57 | + | |
| 58 | +def countingIntegral (χ : Character experimentN) : ℂ := | |
| 59 | + verticalMellin 1 (fun s => (experimentN : ℂ) ^ s * | |
| 60 | + mellin (fun u => (wideCompanion u : ℂ)) s * logDerivative χ s) | |
| 61 | + | |
| 62 | +def diagonalCountingMoment : ℝ := ∑ n ∈ Finset.range experimentN, | |
| 63 | + if Nat.Coprime n experimentN then countingCoefficient n ^ 2 else 0 | |
| 64 | + | |
| 65 | +def approxSignedMoment (Ihat : Character experimentN → ℂ) : ℝ := | |
| 66 | + (5760 : ℝ)⁻¹ * (∑ χ : Character experimentN, (χ (-1)).re * ‖Ihat χ‖ ^ 2) | |
| 67 | + | |
| 68 | +def approxDiagonalMoment (Ihat : Character experimentN → ℂ) : ℝ := | |
| 69 | + (5760 : ℝ)⁻¹ * ∑ χ : Character experimentN, ‖Ihat χ‖ ^ 2 | |
| 70 | + | |
| 71 | +def wideModelMass : ℝ := ∫ u in (0 : ℝ)..1, wideWeight u * wideWeight (1 - u) | |
| 72 | + | |
| 73 | +def wideResidual : ℝ := wideModelMass * singularSeries experimentN - wideCorrelation | |
| 74 | + | |
| 75 | +def approxPrimeCount (Ihat : Character experimentN → ℂ) : ℝ := | |
| 76 | + (experimentN : ℝ) / 2 * approxSignedMoment Ihat - primePowerCorrection / 2 + edgeCorrection | |
| 77 | + | |
| 78 | +def countError (Ihat : Character experimentN → ℂ) (ε : ℝ) : ℝ := | |
| 79 | + (experimentN : ℝ) / 2 * (2 * Real.sqrt (approxDiagonalMoment Ihat) * ε + ε ^ 2) | |
| 80 | + | |
| 81 | +def wideFunctional {a : ℝ} (h : HardySpace a beta) : ℂ := | |
| 82 | + verticalMellin sigmaStar (fun s => (experimentN : ℂ) ^ s * | |
| 83 | + mellin (fun u => (wideCompanion u : ℂ)) s * (1 + s) * fourierLaplace h s) | |
| 84 | + | |
| 85 | +def wideRieszVector : HardySpace (alpha experimentN) beta := | |
| 86 | + if h : ∃ v : HardySpace (alpha experimentN) beta, ∀ f, wideFunctional f = paperInner f v | |
| 87 | + then Classical.choose h else 0 | |
| 88 | + | |
| 89 | +def wideMainIntegral : ℝ := singularSeries experimentN * | |
| 90 | + ∫ x in (16 : ℝ)..((experimentN : ℝ) / 2), | |
| 91 | + wideCutoff x ^ 2 / (Real.log x * Real.log ((experimentN : ℝ) - x)) | |
| 92 | + | |
| 93 | +def HasMomentError (Ihat : Character experimentN → ℂ) (ε : ℝ) : Prop := | |
| 94 | + 0 ≤ ε ∧ (5760 : ℝ)⁻¹ * ∑ χ : Character experimentN, | |
| 95 | + ‖countingIntegral χ - Ihat χ‖ ^ 2 ≤ ε ^ 2 | |
| 96 | + | |
| 97 | +end ConditionalGoldbach | |
+44 −0 ConditionalGoldbach/Definitions/FiniteSpectrum.lean added View file
| @@ -0,0 +1,44 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Experiment | |
| 4 | +public import ConditionalGoldbach.Definitions.Operators | |
| 5 | +public import ConditionalGoldbach.Definitions.Spectral | |
| 6 | +public import Mathlib.Analysis.InnerProductSpace.PiL2 | |
| 7 | + | |
| 8 | +/-! FiniteSpectrum definitions used by the conditional Goldbach formalization. -/ | |
| 9 | +@[expose] public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open scoped BigOperators ComplexConjugate Topology | |
| 14 | +open MeasureTheory Filter Set Complex | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | +attribute [local instance] Classical.propDecidable | |
| 17 | + | |
| 18 | +def spectralNode (i : Fin 2562) : ℂ := | |
| 19 | + line (if i.val < 1281 then alpha experimentN else beta) (((i.val % 1281 : ℕ) : ℝ) / 16 - 40) | |
| 20 | + | |
| 21 | +def trapezoidWeight (i : Fin 2562) : ℝ := | |
| 22 | + (1 / 16) * if i.val % 1281 = 0 ∨ i.val % 1281 = 1280 then 1 / 2 else 1 | |
| 23 | + | |
| 24 | +def finiteSpectralMatrix : Matrix (Fin 2562) (Fin 2562) ℂ := | |
| 25 | + fun i j => (Real.sqrt (trapezoidWeight i) : ℂ) * | |
| 26 | + weightedKernel experimentN (spectralNode i) (spectralNode j) * Real.sqrt (trapezoidWeight j) | |
| 27 | + | |
| 28 | +def finiteSpectralFunction (q : ℂ) : ℂ := | |
| 29 | + Matrix.det (1 - (4 * q * (1 - q) / spectralScale experimentN ^ 2) • | |
| 30 | + (finiteSpectralMatrix * finiteSpectralMatrix)) | |
| 31 | + | |
| 32 | +def IsFiniteSpectrum (ev : Fin 2562 → ℝ) : Prop := | |
| 33 | + ∃ U : Matrix (Fin 2562) (Fin 2562) ℂ, | |
| 34 | + star U * U = 1 ∧ U * star U = 1 ∧ | |
| 35 | + finiteSpectralMatrix = U * Matrix.diagonal (fun i => (ev i : ℂ)) * star U | |
| 36 | + | |
| 37 | +def finiteEigenvalues : Fin 2562 → ℝ := | |
| 38 | + if h : ∃ ev, IsFiniteSpectrum ev then Classical.choose h else 0 | |
| 39 | + | |
| 40 | +def finiteMatrixOpNorm : ℝ := | |
| 41 | + sSup {r : ℝ | ∃ x : EuclideanSpace ℂ (Fin 2562), ‖x‖ = 1 ∧ | |
| 42 | + r = ‖(WithLp.toLp 2 (finiteSpectralMatrix.mulVec (WithLp.ofLp x)) : EuclideanSpace ℂ (Fin 2562))‖} | |
| 43 | + | |
| 44 | +end ConditionalGoldbach | |
+6 −0 ConditionalGoldbach/Definitions/Geometry.lean added View file
| @@ -0,0 +1,6 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.GeometryCore | |
| 4 | +public import ConditionalGoldbach.Definitions.BoundaryIntegral | |
| 5 | + | |
| 6 | +/-! Compatibility entrypoint for strip geometry and boundary integration. -/ | |
+37 −0 ConditionalGoldbach/Definitions/GeometryCore.lean added View file
| @@ -0,0 +1,37 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.SpecialFunctions.Log.Basic | |
| 4 | +public import Mathlib.Basic.Complex.Basic | |
| 5 | + | |
| 6 | +/-! Strip geometry and scale parameters, independent of integration and Hardy spaces. -/ | |
| 7 | +@[expose] public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | +attribute [local instance] Classical.propDecidable | |
| 14 | + | |
| 15 | +def analyticDomain : Set (ℂ × ℂ) := | |
| 16 | + {p | 0 < p.1.re ∧ p.1.re < 3 / 2 ∧ 0 < p.2.re ∧ p.2.re < 3 / 2} | |
| 17 | + | |
| 18 | +def betaDomain : Set (ℂ × ℂ) := | |
| 19 | + {p | p.1.re < 1 / 2 ∧ p.2.re < 1 / 2 ∧ 0 < (p.1 + p.2).re} | |
| 20 | + | |
| 21 | +def alpha (N : ℕ) (c : ℝ := 1) : ℝ := c / Real.log N | |
| 22 | + | |
| 23 | +def beta : ℝ := 1 / 8 | |
| 24 | + | |
| 25 | +def sigmaStar : ℝ := 1 / 9 | |
| 26 | + | |
| 27 | +def width (a : ℝ) : ℝ := beta - a | |
| 28 | + | |
| 29 | +def strip (a b : ℝ) : Set ℂ := {s | a < s.re ∧ s.re < b} | |
| 30 | + | |
| 31 | +def line (x t : ℝ) : ℂ := (x : ℂ) + t * I | |
| 32 | + | |
| 33 | +def pointDistance (a b : ℝ) (s : ℂ) : ℝ := min (s.re - a) (b - s.re) | |
| 34 | + | |
| 35 | +def referenceLine (N : ℕ) : ℝ := 2 / Real.log N | |
| 36 | + | |
| 37 | +end ConditionalGoldbach | |
+67 −0 ConditionalGoldbach/Definitions/Hardy.lean added View file
| @@ -0,0 +1,67 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.GeometryCore | |
| 4 | +public import Mathlib.Analysis.Calculus.Deriv.Basic | |
| 5 | +public import Mathlib.MeasureTheory.Function.L2Space | |
| 6 | +public import Mathlib.MeasureTheory.Measure.Haar.OfBasis | |
| 7 | + | |
| 8 | +/-! Hardy definitions used by the conditional Goldbach formalization. -/ | |
| 9 | +@[expose] public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open scoped BigOperators ComplexConjugate Topology | |
| 14 | +open MeasureTheory Filter Set Complex | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | +attribute [local instance] Classical.propDecidable | |
| 17 | + | |
| 18 | +def hardyWeight (a b τ : ℝ) : ℝ := Real.exp (2 * a * τ) + Real.exp (2 * b * τ) | |
| 19 | + | |
| 20 | +def hardyMeasure (a b : ℝ) : Measure ℝ := | |
| 21 | + volume.withDensity (fun τ => ENNReal.ofReal (hardyWeight a b τ)) | |
| 22 | + | |
| 23 | +abbrev HardySpace (a b : ℝ) := Lp ℂ 2 (hardyMeasure a b) | |
| 24 | + | |
| 25 | +def fourierLaplace {a b : ℝ} (ψ : HardySpace a b) (s : ℂ) : ℂ := | |
| 26 | + (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * ∫ τ : ℝ, ψ τ * Complex.exp (s * τ) | |
| 27 | + | |
| 28 | +def IsRawHardy (a b : ℝ) (f : ℂ → ℂ) : Prop := | |
| 29 | + DifferentiableOn ℂ f (strip a b) ∧ | |
| 30 | + ∃ C : ℝ, ∀ ε : ℝ, 0 < ε → ε < (b - a) / 2 → | |
| 31 | + Integrable (fun t : ℝ => ‖f (line (a + ε) t)‖ ^ 2 + | |
| 32 | + ‖f (line (b - ε) t)‖ ^ 2) ∧ | |
| 33 | + (∫ t : ℝ, ‖f (line (a + ε) t)‖ ^ 2 + ‖f (line (b - ε) t)‖ ^ 2) ≤ C | |
| 34 | + | |
| 35 | +def rawHardyNormSq (a b : ℝ) (f : ℂ → ℂ) : ℝ := | |
| 36 | + sSup {r | ∃ ε : ℝ, 0 < ε ∧ ε < (b - a) / 2 ∧ | |
| 37 | + r = ∫ t : ℝ, ‖f (line (a + ε) t)‖ ^ 2 + ‖f (line (b - ε) t)‖ ^ 2} | |
| 38 | + | |
| 39 | +def reproducingKernel (a b : ℝ) (s z : ℂ) : ℂ := | |
| 40 | + (4 * ((b - a : ℝ) : ℂ))⁻¹ / | |
| 41 | + Complex.sin ((Real.pi : ℂ) * (s + conj z - 2 * a) / (2 * (b - a : ℝ))) | |
| 42 | + | |
| 43 | +def wirtingerBar (f : ℂ → ℂ) (s : ℂ) : ℂ := | |
| 44 | + (deriv (fun x : ℝ => f (s + x)) 0 + I * deriv (fun y : ℝ => f (s + y * I)) 0) / 2 | |
| 45 | + | |
| 46 | +def wirtinger (f : ℂ → ℂ) (s : ℂ) : ℂ := | |
| 47 | + (deriv (fun x : ℝ => f (s + x)) 0 - I * deriv (fun y : ℝ => f (s + y * I)) 0) / 2 | |
| 48 | + | |
| 49 | +abbrev BoundaryParameter := Bool × ℝ | |
| 50 | + | |
| 51 | +def boundaryPoint (a b : ℝ) (p : BoundaryParameter) : ℂ := | |
| 52 | + line (if p.1 then b else a) p.2 | |
| 53 | + | |
| 54 | +def boundaryMeasure : Measure BoundaryParameter := | |
| 55 | + Measure.prod Measure.count (volume : Measure ℝ) | |
| 56 | + | |
| 57 | +def poissonKernelReal (a t : ℝ) : ℝ := a / (Real.pi * (a ^ 2 + t ^ 2)) | |
| 58 | + | |
| 59 | +def realConvolution (f g : ℝ → ℝ) (t : ℝ) : ℝ := | |
| 60 | + ∫ u : ℝ, f u * g (t - u) | |
| 61 | + | |
| 62 | +def poissonAction (ℓ : ℝ) (f : ℝ → ℝ) : ℝ → ℝ := | |
| 63 | + if ℓ = 0 then f else realConvolution (poissonKernelReal ℓ) f | |
| 64 | + | |
| 65 | +def diagonalVector (n : ℕ) (s : ℂ) : ℂ := (n : ℂ) ^ (-s) / (1 + s) | |
| 66 | + | |
| 67 | +end ConditionalGoldbach | |
+39 −0 ConditionalGoldbach/Definitions/HardyTraces.lean added View file
| @@ -0,0 +1,39 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyBoundary | |
| 4 | + | |
| 5 | +/-! Interior restrictions and endpoint traces of Hardy functions. -/ | |
| 6 | +@[expose] public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | +attribute [local instance] Classical.propDecidable | |
| 14 | + | |
| 15 | +theorem interiorLine_memLp {a b x : ℝ} (hab : a < b) | |
| 16 | + (hx : x ∈ Ioo a b) (ψ : HardySpace a b) : | |
| 17 | + MemLp (fun t : ℝ => fourierLaplace ψ (line x t)) 2 volume := by | |
| 18 | + exact hardy_interiorLine_memLp hab hx ψ | |
| 19 | + | |
| 20 | +def interiorLine {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) | |
| 21 | + (x : ℝ) (hx : x ∈ Ioo a b) : Lp ℂ 2 (volume : Measure ℝ) := | |
| 22 | + (interiorLine_memLp hab hx ψ).toLp _ | |
| 23 | + | |
| 24 | +def IsBoundaryTrace {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) | |
| 25 | + (left right : Lp ℂ 2 (volume : Measure ℝ)) : Prop := | |
| 26 | + Tendsto (fun x : Ioo a b => interiorLine hab ψ x x.property) | |
| 27 | + (comap Subtype.val (nhdsWithin a (Ioo a b))) (𝓝 left) ∧ | |
| 28 | + Tendsto (fun x : Ioo a b => interiorLine hab ψ x x.property) | |
| 29 | + (comap Subtype.val (nhdsWithin b (Ioo a b))) (𝓝 right) | |
| 30 | + | |
| 31 | +theorem boundaryTraces_exist {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) : | |
| 32 | + ∃ p : Lp ℂ 2 (volume : Measure ℝ) × Lp ℂ 2 (volume : Measure ℝ), | |
| 33 | + IsBoundaryTrace hab ψ p.1 p.2 := by | |
| 34 | + simpa only [IsBoundaryTrace, interiorLine] using hardy_boundaryTraces_exist hab ψ | |
| 35 | + | |
| 36 | +def boundaryTraces {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) := | |
| 37 | + Classical.choose (boundaryTraces_exist hab ψ) | |
| 38 | + | |
| 39 | +end ConditionalGoldbach | |
+56 −0 ConditionalGoldbach/Definitions/Hilbert.lean added View file
| @@ -0,0 +1,56 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.InnerProductSpace.l2Space | |
| 4 | + | |
| 5 | +/-! Hilbert–Schmidt and trace-class operators and diagonal spectral data. -/ | |
| 6 | +@[expose] public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | +attribute [local instance] Classical.propDecidable | |
| 14 | + | |
| 15 | +def paperInner {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| 16 | + (u v : H) : ℂ := inner ℂ v u | |
| 17 | + | |
| 18 | +def IsHilbertSchmidt {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| 19 | + (T : H →L[ℂ] H) : Prop := | |
| 20 | + ∃ b : HilbertBasis ℕ ℂ H, Summable (fun j => ‖T (b j)‖ ^ 2) | |
| 21 | + | |
| 22 | +def hsNorm {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| 23 | + (T : H →L[ℂ] H) : ℝ := | |
| 24 | + if h : ∃ b : HilbertBasis ℕ ℂ H, Summable (fun j => ‖T (b j)‖ ^ 2) | |
| 25 | + then Real.sqrt (∑' j, ‖T ((Classical.choose h) j)‖ ^ 2) else 0 | |
| 26 | + | |
| 27 | +def IsPositiveTraceClass {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| 28 | + (T : H →L[ℂ] H) : Prop := | |
| 29 | + T.IsSymmetric ∧ (∀ x, 0 ≤ (paperInner (T x) x).re) ∧ | |
| 30 | + ∃ b : HilbertBasis ℕ ℂ H, Summable (fun j => (paperInner (T (b j)) (b j)).re) | |
| 31 | + | |
| 32 | +def positiveTrace {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| 33 | + (T : H →L[ℂ] H) : ℝ := | |
| 34 | + if h : ∃ b : HilbertBasis ℕ ℂ H, Summable (fun j => (paperInner (T (b j)) (b j)).re) | |
| 35 | + then ∑' j, (paperInner (T ((Classical.choose h) j)) ((Classical.choose h) j)).re else 0 | |
| 36 | + | |
| 37 | +structure SpectralData {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| 38 | + (T : H →L[ℂ] H) where | |
| 39 | + basis : HilbertBasis ℕ ℂ H | |
| 40 | + values : ℕ → ℝ | |
| 41 | + diagonal : ∀ j, T (basis j) = (values j : ℂ) • basis j | |
| 42 | + squareSummable : Summable (fun j => values j ^ 2) | |
| 43 | + | |
| 44 | +def eigenvalues {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| 45 | + (T : H →L[ℂ] H) : ℕ → ℝ := | |
| 46 | + if h : Nonempty (SpectralData T) then (Classical.choice h).values else 0 | |
| 47 | + | |
| 48 | +def positiveFredholmDet {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| 49 | + (A : H →L[ℂ] H) (t : ℂ) : ℂ := | |
| 50 | + ∏' j : ℕ, (1 - t * (eigenvalues A j : ℂ)) | |
| 51 | + | |
| 52 | +def fredholmSquareDet {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| 53 | + (T : H →L[ℂ] H) (t : ℂ) : ℂ := | |
| 54 | + positiveFredholmDet (T.comp T) t | |
| 55 | + | |
| 56 | +end ConditionalGoldbach | |
+49 −0 ConditionalGoldbach/Definitions/Hypotheses.lean added View file
| @@ -0,0 +1,49 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Asymptotics | |
| 4 | +public import ConditionalGoldbach.Definitions.Operators | |
| 5 | +public import ConditionalGoldbach.Definitions.Spectral | |
| 6 | +public import Mathlib.Algebra.Quaternion | |
| 7 | +public import Mathlib.MeasureTheory.Function.L2Space | |
| 8 | + | |
| 9 | +/-! Hypotheses definitions used by the conditional Goldbach formalization. -/ | |
| 10 | +@[expose] public section | |
| 11 | + | |
| 12 | +set_option autoImplicit false | |
| 13 | +noncomputable section | |
| 14 | +open scoped BigOperators ComplexConjugate Topology | |
| 15 | +open MeasureTheory Filter Set Complex | |
| 16 | +namespace ConditionalGoldbach | |
| 17 | +attribute [local instance] Classical.propDecidable | |
| 18 | + | |
| 19 | +def RealizationValid (N : ℕ) (a : ℝ) : Prop := | |
| 20 | + Even N ∧ 4 ≤ N ∧ GRH N ∧ 0 < a ∧ a < 1 / 10 | |
| 21 | + | |
| 22 | +def zeroFreeWidth (N : ℕ) (h : ℕ → ℝ) : ℝ := | |
| 23 | + h N ^ 2 * Real.log N ^ 3 / (N * singularSeries N) | |
| 24 | + | |
| 25 | +def IsAdmissible (h : ℕ → ℝ) : Prop := | |
| 26 | + (∀ N, Even N → 4 ≤ N → 0 < h N) ∧ EvenTendstoInfinity h ∧ | |
| 27 | + EvenEventually (fun N => zeroFreeWidth N h ≤ 1 / 4) | |
| 28 | + | |
| 29 | +def SpectralR (N : ℕ) [NeZero N] (a : ℝ) (ha : a < beta) : Prop := | |
| 30 | + ∀ q : Quaternion ℝ, spectralQuaternion N (residualOperator ha N) q = 0 → q.re = 1 / 2 | |
| 31 | + | |
| 32 | +def SpectralZeroFree (N : ℕ) [NeZero N] (a : ℝ) (ha : a < beta) (η : ℝ) : Prop := | |
| 33 | + ∀ q : Quaternion ℝ, 1 - η < q.re → spectralQuaternion N (residualOperator ha N) q ≠ 0 | |
| 34 | + | |
| 35 | +def HypothesisR : Prop := EvenEventually (fun N => GRH N → | |
| 36 | + ∀ (_hN : NeZero N) (ha : alpha N < beta), @SpectralR N _hN (alpha N) ha) | |
| 37 | + | |
| 38 | +def HypothesisS (h : ℕ → ℝ) : Prop := IsAdmissible h ∧ EvenEventually (fun N => GRH N → | |
| 39 | + ∀ (_hN : NeZero N) (ha : alpha N < beta), | |
| 40 | + @SpectralZeroFree N _hN (alpha N) ha (zeroFreeWidth N h)) | |
| 41 | + | |
| 42 | +def HypothesisRAt (c : ℝ) : Prop := EvenEventually (fun N => GRH N → | |
| 43 | + ∀ (_ : NeZero N) (ha : alpha N c < beta), SpectralR N (alpha N c) ha) | |
| 44 | + | |
| 45 | +def HypothesisSAt (c : ℝ) (h : ℕ → ℝ) : Prop := IsAdmissible h ∧ | |
| 46 | + EvenEventually (fun N => GRH N → ∀ (_ : NeZero N) (ha : alpha N c < beta), | |
| 47 | + SpectralZeroFree N (alpha N c) ha (zeroFreeWidth N h)) | |
| 48 | + | |
| 49 | +end ConditionalGoldbach | |
+62 −0 ConditionalGoldbach/Definitions/Model.lean added View file
| @@ -0,0 +1,62 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Characters | |
| 4 | +public import ConditionalGoldbach.Definitions.Weights | |
| 5 | +public import Mathlib.NumberTheory.ArithmeticFunction.Defs | |
| 6 | +public import Mathlib.NumberTheory.LSeries.RiemannZeta | |
| 7 | + | |
| 8 | +/-! Model definitions used by the conditional Goldbach formalization. -/ | |
| 9 | +@[expose] public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open scoped BigOperators ComplexConjugate Topology | |
| 14 | +open MeasureTheory Filter Set Complex | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | +attribute [local instance] Classical.propDecidable | |
| 17 | + | |
| 18 | +def diagonalSeries (N : ℕ) (w : ℂ) : ℂ := | |
| 19 | + ∑' n : ℕ, if 0 < n ∧ Nat.Coprime n N then | |
| 20 | + (mangoldt n : ℂ) ^ 2 / (n : ℂ) ^ (1 + w) else 0 | |
| 21 | + | |
| 22 | +def densitySeries (N : ℕ) (w : ℂ) : ℂ := | |
| 23 | + ∑' k : ℕ, if 0 < k then (singularSeries (k * N) : ℂ) / (k : ℂ) ^ w else 0 | |
| 24 | + | |
| 25 | +def densityEulerProduct (N : ℕ) (w : ℂ) : ℂ := | |
| 26 | + ∏' p : ℕ, if p.Prime ∧ 2 < p ∧ ¬p ∣ N then | |
| 27 | + 1 + (p : ℂ) ^ (-w) / ((p : ℂ) - 2) else 1 | |
| 28 | + | |
| 29 | +def continuedDensity (N : ℕ) (w : ℂ) : ℂ := | |
| 30 | + singularSeries N * riemannZeta w * densityEulerProduct N w | |
| 31 | + | |
| 32 | +def betaKernel (s z : ℂ) : ℂ := | |
| 33 | + betaIntegral (1 / 2 - s) (s + z) + betaIntegral (1 / 2 - z) (s + z) - | |
| 34 | + betaIntegral (1 / 2 - s) (1 / 2 - z) | |
| 35 | + | |
| 36 | +def gammaQuotient (s : ℂ) : ℂ := | |
| 37 | + Gamma ((3 / 2 - s) / 2) / Gamma ((3 / 2 + s) / 2) | |
| 38 | + | |
| 39 | +def betaModel (N : ℕ) (s z : ℂ) : ℂ := | |
| 40 | + (N : ℂ) ^ (-(s + z)) * continuedDensity N (s + z) * betaKernel s z | |
| 41 | + | |
| 42 | +def continuedModel (N : ℕ) (s z : ℂ) : ℂ := | |
| 43 | + singularSeries N * ((Real.pi : ℂ) / N) ^ (s + z) * | |
| 44 | + densityEulerProduct N (s + z) * riemannZeta (1 - s - z) * | |
| 45 | + gammaQuotient s * gammaQuotient z | |
| 46 | + | |
| 47 | +def residual (N : ℕ) [NeZero N] (s z : ℂ) : ℂ := | |
| 48 | + characterKernel N s z - diagonalSeries N (s + z) - continuedModel N s z | |
| 49 | + | |
| 50 | +def residualIntegral (N : ℕ) [NeZero N] (φ : ℝ → ℝ) (σ : ℝ) : ℂ := | |
| 51 | + verticalMellin σ (fun s => verticalMellin σ (fun z => | |
| 52 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * residual N s z)) | |
| 53 | + | |
| 54 | +def betaGamma (u v : ℂ) : ℂ := Gamma u * Gamma v / Gamma (u + v) | |
| 55 | + | |
| 56 | +def baselineProductR (N : ℕ) (w : ℂ) : ℂ := | |
| 57 | + (∏ p ∈ N.primeFactors, (1 - (p : ℂ) ^ (-1 - w))) * | |
| 58 | + ∏' p : ℕ, if p.Prime ∧ 2 < p ∧ ¬p ∣ N then | |
| 59 | + 1 + (2 * (p : ℂ) ^ (-w) - (p : ℂ) ^ (-2 * w)) / ((p : ℂ) * ((p : ℂ) - 2)) | |
| 60 | + else 1 | |
| 61 | + | |
| 62 | +end ConditionalGoldbach | |
+65 −0 ConditionalGoldbach/Definitions/Operators.lean added View file
| @@ -0,0 +1,65 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.HardyTraces | |
| 4 | +public import ConditionalGoldbach.Definitions.Hilbert | |
| 5 | +public import ConditionalGoldbach.Definitions.Model | |
| 6 | +public import Mathlib.MeasureTheory.Function.L2Space | |
| 7 | +public import Mathlib.MeasureTheory.Measure.Haar.OfBasis | |
| 8 | + | |
| 9 | +/-! Operators definitions used by the conditional Goldbach formalization. -/ | |
| 10 | +@[expose] public section | |
| 11 | + | |
| 12 | +set_option autoImplicit false | |
| 13 | +noncomputable section | |
| 14 | +open scoped BigOperators ComplexConjugate Topology | |
| 15 | +open MeasureTheory Filter Set Complex | |
| 16 | +namespace ConditionalGoldbach | |
| 17 | +attribute [local instance] Classical.propDecidable | |
| 18 | + | |
| 19 | +def weightedKernel (N : ℕ) [NeZero N] (s z : ℂ) : ℂ := | |
| 20 | + residual N s (conj z) / ((1 + s) * (1 + conj z)) | |
| 21 | + | |
| 22 | +def kernelAction {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] | |
| 23 | + (K : ℂ → ℂ → ℂ) (h : HardySpace a beta) (s : ℂ) : ℂ := | |
| 24 | + (∫ t : ℝ, K s (line a t) * (boundaryTraces ha h).1 t) + | |
| 25 | + ∫ t : ℝ, K s (line beta t) * (boundaryTraces ha h).2 t | |
| 26 | + | |
| 27 | +def RepresentsKernel {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] | |
| 28 | + (K : ℂ → ℂ → ℂ) (T : HardySpace a beta →L[ℂ] HardySpace a beta) : Prop := | |
| 29 | + ∀ h s, s ∈ strip a beta → fourierLaplace (T h) s = kernelAction ha N K h s | |
| 30 | + | |
| 31 | +def kernelOperator {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] | |
| 32 | + (K : ℂ → ℂ → ℂ) : HardySpace a beta →L[ℂ] HardySpace a beta := | |
| 33 | + if h : ∃ T, RepresentsKernel ha N K T then Classical.choose h else 0 | |
| 34 | + | |
| 35 | +def residualOperator {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] := | |
| 36 | + kernelOperator ha N (weightedKernel N) | |
| 37 | + | |
| 38 | +def arithmeticOperator {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] := | |
| 39 | + kernelOperator ha N (fun s z => characterKernel N s (conj z) / ((1 + s) * (1 + conj z))) | |
| 40 | + | |
| 41 | +def diagonalOperator {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] := | |
| 42 | + kernelOperator ha N (fun s z => diagonalSeries N (s + conj z) / ((1 + s) * (1 + conj z))) | |
| 43 | + | |
| 44 | +def modelOperator {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] := | |
| 45 | + kernelOperator ha N (fun s z => continuedModel N s (conj z) / ((1 + s) * (1 + conj z))) | |
| 46 | + | |
| 47 | +def functionalValue {a : ℝ} (N : ℕ) (φ : ℝ → ℝ) (σ : ℝ) | |
| 48 | + (h : HardySpace a beta) : ℂ := | |
| 49 | + verticalMellin σ (fun s => (N : ℂ) ^ s * mellinWeight φ s * (1 + s) * fourierLaplace h s) | |
| 50 | + | |
| 51 | +def rieszVector {a : ℝ} (N : ℕ) (φ : ℝ → ℝ) : HardySpace a beta := | |
| 52 | + if h : ∃ v : HardySpace a beta, ∀ f, | |
| 53 | + functionalValue N φ sigmaStar f = paperInner f v | |
| 54 | + then Classical.choose h else 0 | |
| 55 | + | |
| 56 | +def evaluationVector {a b : ℝ} (s : ℂ) : HardySpace a b := | |
| 57 | + if h : ∃ v : HardySpace a b, ∀ f, fourierLaplace f s = paperInner f v | |
| 58 | + then Classical.choose h else 0 | |
| 59 | + | |
| 60 | +def diagonalHardyVector {a : ℝ} (n : ℕ) : HardySpace a beta := | |
| 61 | + if h : ∃ d : HardySpace a beta, ∀ s ∈ strip a beta, | |
| 62 | + fourierLaplace d s = diagonalVector n s | |
| 63 | + then Classical.choose h else 0 | |
| 64 | + | |
| 65 | +end ConditionalGoldbach | |
+70 −0 ConditionalGoldbach/Definitions/Spectral.lean added View file
| @@ -0,0 +1,70 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Arithmetic | |
| 4 | +public import ConditionalGoldbach.Definitions.Hardy | |
| 5 | +public import ConditionalGoldbach.Definitions.Hilbert | |
| 6 | +public import Mathlib.Analysis.CStarAlgebra.Classes | |
| 7 | +public import Mathlib.Analysis.Calculus.FDeriv.Defs | |
| 8 | +public import Mathlib.Analysis.Quaternion | |
| 9 | + | |
| 10 | +/-! Spectral definitions used by the conditional Goldbach formalization. -/ | |
| 11 | +@[expose] public section | |
| 12 | + | |
| 13 | +set_option autoImplicit false | |
| 14 | +noncomputable section | |
| 15 | +open scoped BigOperators ComplexConjugate Topology | |
| 16 | +open MeasureTheory Filter Set Complex | |
| 17 | +namespace ConditionalGoldbach | |
| 18 | +attribute [local instance] Classical.propDecidable | |
| 19 | + | |
| 20 | +def spectralScale (N : ℕ) : ℝ := | |
| 21 | + Real.sqrt (singularSeries N / N) * Real.rpow (Real.log N) (3 / 2) | |
| 22 | + | |
| 23 | +def spectralComplex {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| 24 | + (N : ℕ) (T : H →L[ℂ] H) (q : ℂ) : ℂ := | |
| 25 | + ∏' j : ℕ, (1 - (4 * eigenvalues T j ^ 2 / spectralScale N ^ 2 : ℝ) * q * (1 - q)) | |
| 26 | + | |
| 27 | +def spectralPartialQuaternion {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| 28 | + (N : ℕ) (T : H →L[ℂ] H) (q : Quaternion ℝ) (k : ℕ) : Quaternion ℝ := | |
| 29 | + (List.range k).foldl (fun z j => | |
| 30 | + z * (1 - (4 * eigenvalues T j ^ 2 / spectralScale N ^ 2 : ℝ) • (q * (1 - q)))) 1 | |
| 31 | + | |
| 32 | +def spectralQuaternion {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] | |
| 33 | + (N : ℕ) (T : H →L[ℂ] H) (q : Quaternion ℝ) : Quaternion ℝ := | |
| 34 | + if h : ∃ y, Tendsto (spectralPartialQuaternion N T q) atTop (𝓝 y) | |
| 35 | + then Classical.choose h else 0 | |
| 36 | + | |
| 37 | +def IntrinsicEntire (F : Quaternion ℝ → Quaternion ℝ) : Prop := | |
| 38 | + ∃ f : ℂ → ℂ, Differentiable ℂ f ∧ (∀ z, f (conj z) = conj (f z)) ∧ | |
| 39 | + ∀ J : Quaternion ℝ, J.re = 0 → J ^ 2 = -1 → ∀ z : ℂ, | |
| 40 | + F ((z.re : Quaternion ℝ) + z.im • J) = (f z).re + (f z).im • J | |
| 41 | + | |
| 42 | +def spectralWidthFromBound (N : ℕ) (M : ℝ) : ℝ := | |
| 43 | + (1 - Real.sqrt (1 - spectralScale N ^ 2 / M ^ 2)) / 2 | |
| 44 | + | |
| 45 | +def spectralRootParameter (N : ℕ) (μ : ℝ) : ℝ := | |
| 46 | + spectralScale N ^ 2 / μ ^ 2 | |
| 47 | + | |
| 48 | +def quaternionSlice (J : Quaternion ℝ) : Set (Quaternion ℝ) := | |
| 49 | + {q | ∃ x y : ℝ, q = (x : Quaternion ℝ) + y • J} | |
| 50 | + | |
| 51 | +def complexQuaternion (z : ℂ) : Quaternion ℝ := ⟨z.re, z.im, 0, 0⟩ | |
| 52 | + | |
| 53 | +def fueterOperator (F : ℂ → ℂ → ℂ) (s z : ℂ) : Quaternion ℝ := | |
| 54 | + complexQuaternion (wirtingerBar (fun u => F u z) s) + | |
| 55 | + (⟨0, 0, 1, 0⟩ : Quaternion ℝ) * complexQuaternion (wirtinger (F s) z) | |
| 56 | + | |
| 57 | +def spectralPartialQuaternionReindexed {H : Type*} [NormedAddCommGroup H] | |
| 58 | + [InnerProductSpace ℂ H] (N : ℕ) (T : H →L[ℂ] H) | |
| 59 | + (e : ℕ ≃ ℕ) (q : Quaternion ℝ) (k : ℕ) : Quaternion ℝ := | |
| 60 | + (List.range k).foldl (fun acc j => | |
| 61 | + acc * (1 - (4 * eigenvalues T (e j) ^ 2 / spectralScale N ^ 2 : ℝ) * q * (1 - q))) 1 | |
| 62 | + | |
| 63 | +def centeredSpectralPartial {H : Type*} [NormedAddCommGroup H] | |
| 64 | + [InnerProductSpace ℂ H] (N : ℕ) (T : H →L[ℂ] H) | |
| 65 | + (ξ : Quaternion ℝ) (k : ℕ) : Quaternion ℝ := | |
| 66 | + (List.range k).foldl (fun acc j => acc * | |
| 67 | + (1 - (eigenvalues T j ^ 2 / spectralScale N ^ 2 : ℝ) + | |
| 68 | + (4 * eigenvalues T j ^ 2 / spectralScale N ^ 2 : ℝ) * ξ ^ 2)) 1 | |
| 69 | + | |
| 70 | +end ConditionalGoldbach | |
+56 −0 ConditionalGoldbach/Definitions/Weights.lean added View file
| @@ -0,0 +1,56 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.GeometryCore | |
| 4 | +public import Mathlib.Analysis.MellinTransform | |
| 5 | + | |
| 6 | +/-! Weights definitions used by the conditional Goldbach formalization. -/ | |
| 7 | +@[expose] public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology | |
| 12 | +open scoped ContDiff | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | +attribute [local instance] Classical.propDecidable | |
| 16 | + | |
| 17 | +def IsWeight (φ : ℝ → ℝ) : Prop := | |
| 18 | + ContDiff ℝ ∞ φ ∧ Function.support φ ⊆ Icc (1 / 3) (2 / 3) ∧ | |
| 19 | + (∀ u, 0 ≤ φ u ∧ φ u ≤ 1) ∧ (∀ u, φ u = φ (1 - u)) ∧ φ ≠ 0 | |
| 20 | + | |
| 21 | +def companion (φ : ℝ → ℝ) (u : ℝ) : ℝ := Real.sqrt u * φ u | |
| 22 | + | |
| 23 | +def derivativeWeight (φ : ℝ → ℝ) (u : ℝ) : ℝ := | |
| 24 | + companion φ u - u * deriv (companion φ) u | |
| 25 | + | |
| 26 | +def weightMass (φ : ℝ → ℝ) : ℝ := ∫ u in (0 : ℝ)..1, φ u ^ 2 | |
| 27 | + | |
| 28 | +def mellinWeight (φ : ℝ → ℝ) (s : ℂ) : ℂ := | |
| 29 | + mellin (fun u => (companion φ u : ℂ)) s | |
| 30 | + | |
| 31 | +def verticalMellin (σ : ℝ) (f : ℂ → ℂ) : ℂ := | |
| 32 | + (2 * (Real.pi : ℂ))⁻¹ * ∫ t : ℝ, f (line σ t) | |
| 33 | + | |
| 34 | +def differenceConvolution (φ : ℝ → ℝ) (y : ℝ) : ℝ := | |
| 35 | + ∫ u in Ioi (0 : ℝ), φ u * φ (u + y) | |
| 36 | + | |
| 37 | +def sumConvolution (φ : ℝ → ℝ) (y : ℝ) : ℝ := | |
| 38 | + ∫ u in Ioi (0 : ℝ), φ u * φ (y - u) | |
| 39 | + | |
| 40 | +def signedConvolution (φ : ℝ → ℝ) (y : ℝ) : ℝ := | |
| 41 | + 2 * differenceConvolution φ y - sumConvolution φ y | |
| 42 | + | |
| 43 | +def normFunctional (N : ℕ) (φ : ℝ → ℝ) (a : ℝ) : ℝ := | |
| 44 | + (2 * Real.pi)⁻¹ * ∫ u in Ioi (0 : ℝ), | |
| 45 | + Real.rpow (N * u) (2 * a) * derivativeWeight φ u ^ 2 / | |
| 46 | + (1 + Real.rpow (N * u) (-2 * (beta - a))) / u | |
| 47 | + | |
| 48 | +def weightEnergy (φ : ℝ → ℝ) : ℝ := | |
| 49 | + (2 * Real.pi)⁻¹ * ∫ u in Ioi (0 : ℝ), derivativeWeight φ u ^ 2 / u | |
| 50 | + | |
| 51 | +def weightIntegral (φ : ℝ → ℝ) : ℝ := ∫ u in Ioi (0 : ℝ), φ u | |
| 52 | + | |
| 53 | +def functionalIntegrand (N : ℕ) (φ : ℝ → ℝ) (s : ℂ) : ℂ := | |
| 54 | + (N : ℂ) ^ s * mellinWeight φ s * (1 + s) | |
| 55 | + | |
| 56 | +end ConditionalGoldbach | |
+6 −0 ConditionalGoldbach/EarlyAnalyticPrerequisites.lean added View file
| @@ -0,0 +1,6 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.CharacterEstimatePrerequisites | |
| 4 | +public import ConditionalGoldbach.Proofs.HardyArithmeticTheorems | |
| 5 | + | |
| 6 | +/-! The original evaluation and kernel-pairing theorems are now proved. The separate character zero-expansion obligation remains visible. -/ | |
+5 −0 ConditionalGoldbach/ModelMellinPrerequisites.lean added View file
| @@ -0,0 +1,5 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinModelDouble | |
| 4 | + | |
| 5 | +/-! The original model Mellin statements are now proved, including absolute convergence. -/ | |
+156 −0 ConditionalGoldbach/Proofs/ArithmeticComponentOperators.lean added View file
| @@ -0,0 +1,156 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.WeightedComponentKernel | |
| 4 | +public import ConditionalGoldbach.Proofs.HardyArithmeticTheorems | |
| 5 | + | |
| 6 | +/-! The three actual component operators and the exact residual decomposition. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +open scoped Topology ComplexConjugate BigOperators | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma component_kernel_hermitian (N : ℕ) [NeZero N] : | |
| 16 | + HermitianKernel (fun s z => characterKernel N s (conj z)) ∧ | |
| 17 | + HermitianKernel (fun s z => diagonalSeries N (s + conj z)) ∧ | |
| 18 | + HermitianKernel (fun s z => continuedModel N s (conj z)) := by | |
| 19 | + refine ⟨?_, ?_, ?_⟩ | |
| 20 | + · intro s z | |
| 21 | + rw [characterKernel_conjugation, Complex.conj_conj, characterKernel_symmetric] | |
| 22 | + · intro s z | |
| 23 | + rw [diagonalSeries_conj, map_add, Complex.conj_conj, add_comm] | |
| 24 | + · intro s z | |
| 25 | + rw [continuedModel_conj, Complex.conj_conj, continuedModel_symmetric] | |
| 26 | + | |
| 27 | +lemma component_kernel_differentiableOn (N : ℕ) [NeZero N] (hN : 0 < N) (hGRH : GRH N) : | |
| 28 | + DifferentiableOn ℂ (Function.uncurry (characterKernel N)) analyticDomain ∧ | |
| 29 | + DifferentiableOn ℂ (fun p : ℂ × ℂ => diagonalSeries N (p.1 + p.2)) analyticDomain ∧ | |
| 30 | + DifferentiableOn ℂ (Function.uncurry (continuedModel N)) analyticDomain := by | |
| 31 | + refine ⟨(characterKernel_differentiableOn_of_GRH hGRH).mono | |
| 32 | + (fun p hp => ⟨hp.1, hp.2.2.1⟩), ?_, continuedModel_differentiableOn N hN⟩ | |
| 33 | + intro p hp | |
| 34 | + have hs : 0 < (p.1 + p.2).re := by simp; linarith [hp.1, hp.2.2.1] | |
| 35 | + exact ((diagonalSeries_differentiableAt N hs).comp p | |
| 36 | + (show DifferentiableAt ℂ (fun q : ℂ × ℂ => q.1 + q.2) p by fun_prop)).differentiableWithinAt | |
| 37 | + | |
| 38 | +lemma component_kernel_power_bounds (N : ℕ) [NeZero N] | |
| 39 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) : | |
| 40 | + ∀ F ∈ ([characterKernel N, (fun s z => diagonalSeries N (s + z)), continuedModel N] : List (ℂ → ℂ → ℂ)), | |
| 41 | + ∃ C : ℝ, 0 ≤ C ∧ ∀ s z : ℂ, s.re ∈ Icc (alpha N) beta → z.re ∈ Icc (alpha N) beta → | |
| 42 | + ‖F s (conj z)‖ ≤ C * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ) := by | |
| 43 | + obtain ⟨L, Z, hL, hZ, hlog, hζ⟩ := arithmeticKernel_growth_inputs N hlarge hGRH ha | |
| 44 | + intro F hF | |
| 45 | + simp only [List.mem_cons, List.not_mem_nil, or_false] at hF | |
| 46 | + rcases hF with rfl | rfl | rfl | |
| 47 | + · have hN1 : (1 : ℝ) ≤ N := by exact_mod_cast (show 1 ≤ N by have := (large_parameters hlarge).1; omega) | |
| 48 | + apply characterKernel_power_bound N (L * (64 * (2 * N) ^ (1 / 4 : ℝ))) (by positivity) | |
| 49 | + intro χ hχ s hs | |
| 50 | + calc | |
| 51 | + _ ≤ L * Real.log (N * (|s.im| + 2)) ^ 2 := hlog χ hχ s hs | |
| 52 | + _ ≤ L * ((64 * (2 * N) ^ (1 / 4 : ℝ)) * (1 + |s.im|) ^ (1 / 4 : ℝ)) := | |
| 53 | + mul_le_mul_of_nonneg_left (logarithm_square_le_quarter_power hN1 s.im) hL | |
| 54 | + _ = _ := by ring | |
| 55 | + · obtain ⟨D, hD, hd⟩ := diagonalSeries_uniform_bound N | |
| 56 | + (show 0 < 2 * alpha N by have := large_alpha_pos hlarge; positivity) | |
| 57 | + refine ⟨D, hD, ?_⟩ | |
| 58 | + intro s z hs hz | |
| 59 | + apply (hd _ (by simp; linarith [hs.1, hz.1])).trans | |
| 60 | + calc | |
| 61 | + D = D * 1 * 1 := by ring | |
| 62 | + _ ≤ _ := by | |
| 63 | + gcongr <;> exact Real.one_le_rpow (by linarith [abs_nonneg s.im, abs_nonneg z.im]) (by norm_num) | |
| 64 | + · exact continuedModel_power_bound (large_alpha_pos hlarge) ha N (large_parameters hlarge).1 Z hZ hζ | |
| 65 | + | |
| 66 | +lemma component_kernel_operator_spec (N : ℕ) [NeZero N] | |
| 67 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) : | |
| 68 | + ∀ F ∈ ([characterKernel N, (fun s z => diagonalSeries N (s + z)), continuedModel N] : List (ℂ → ℂ → ℂ)), | |
| 69 | + RepresentsKernel ha N (weightedAnalyticKernel F) (kernelOperator ha N (weightedAnalyticKernel F)) ∧ | |
| 70 | + IsHilbertSchmidt (kernelOperator ha N (weightedAnalyticKernel F)) ∧ | |
| 71 | + (∀ (h : HardySpace (alpha N) beta) (s : ℂ), s ∈ strip (alpha N) beta → | |
| 72 | + Integrable (fun t : ℝ => weightedAnalyticKernel F s (line (alpha N) t) * (boundaryTraces ha h).1 t) ∧ | |
| 73 | + Integrable (fun t : ℝ => weightedAnalyticKernel F s (line beta t) * (boundaryTraces ha h).2 t)) := by | |
| 74 | + intro F hF | |
| 75 | + obtain ⟨C, hC, hbound⟩ := component_kernel_power_bounds N hlarge hGRH ha F hF | |
| 76 | + have hd := component_kernel_differentiableOn N (by have := (large_parameters hlarge).1; omega) hGRH | |
| 77 | + have hh := component_kernel_hermitian N | |
| 78 | + apply weightedAnalyticKernel_operator_spec N hlarge ha F _ _ C hC hbound | |
| 79 | + · simp only [List.mem_cons, List.not_mem_nil, or_false] at hF | |
| 80 | + rcases hF with rfl | rfl | rfl | |
| 81 | + · exact hd.1 | |
| 82 | + · exact hd.2.1 | |
| 83 | + · exact hd.2.2 | |
| 84 | + · simp only [List.mem_cons, List.not_mem_nil, or_false] at hF | |
| 85 | + rcases hF with rfl | rfl | rfl | |
| 86 | + · exact hh.1 | |
| 87 | + · exact hh.2.1 | |
| 88 | + · exact hh.2.2 | |
| 89 | + | |
| 90 | +lemma RepresentsKernel.sub_integrable {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] | |
| 91 | + (K L : ℂ → ℂ → ℂ) (T S : HardySpace a beta →L[ℂ] HardySpace a beta) | |
| 92 | + (hT : RepresentsKernel ha N K T) (hS : RepresentsKernel ha N L S) | |
| 93 | + (hK : ∀ (h : HardySpace a beta) (s : ℂ), s ∈ strip a beta → | |
| 94 | + Integrable (fun t : ℝ => K s (line a t) * (boundaryTraces ha h).1 t) ∧ | |
| 95 | + Integrable (fun t : ℝ => K s (line beta t) * (boundaryTraces ha h).2 t)) | |
| 96 | + (hL : ∀ (h : HardySpace a beta) (s : ℂ), s ∈ strip a beta → | |
| 97 | + Integrable (fun t : ℝ => L s (line a t) * (boundaryTraces ha h).1 t) ∧ | |
| 98 | + Integrable (fun t : ℝ => L s (line beta t) * (boundaryTraces ha h).2 t)) : | |
| 99 | + RepresentsKernel ha N (fun s z => K s z - L s z) (T - S) := by | |
| 100 | + intro h s hs | |
| 101 | + change fourierLaplace (T h - S h) s = _ | |
| 102 | + rw [← hardyEvaluationFunctional_apply hs, map_sub, | |
| 103 | + hardyEvaluationFunctional_apply hs, hardyEvaluationFunctional_apply hs, hT h s hs, hS h s hs] | |
| 104 | + unfold kernelAction | |
| 105 | + simp only [sub_mul] | |
| 106 | + rw [integral_sub (hK h s hs).1 (hL h s hs).1, | |
| 107 | + integral_sub (hK h s hs).2 (hL h s hs).2] | |
| 108 | + ring | |
| 109 | + | |
| 110 | +theorem proposition_6_5_components_spec (N : ℕ) [NeZero N] (_hN : Even N) | |
| 111 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) : | |
| 112 | + let α := alpha N | |
| 113 | + let P := arithmeticOperator ha N | |
| 114 | + let D := diagonalOperator ha N | |
| 115 | + let K := modelOperator ha N | |
| 116 | + let κP := fun s z : ℂ => characterKernel N s (conj z) / ((1 + s) * (1 + conj z)) | |
| 117 | + let κD := fun s z : ℂ => diagonalSeries N (s + conj z) / ((1 + s) * (1 + conj z)) | |
| 118 | + let κK := fun s z : ℂ => continuedModel N s (conj z) / ((1 + s) * (1 + conj z)) | |
| 119 | + RepresentsKernel ha N κP P ∧ RepresentsKernel ha N κD D ∧ RepresentsKernel ha N κK K ∧ | |
| 120 | + (∀ κ ∈ ([κP, κD, κK] : List (ℂ → ℂ → ℂ)), | |
| 121 | + ∀ (h : HardySpace α beta) (s : ℂ), s ∈ strip α beta → | |
| 122 | + Integrable (fun t : ℝ => κ s (line α t) * (boundaryTraces ha h).1 t) ∧ | |
| 123 | + Integrable (fun t : ℝ => κ s (line beta t) * (boundaryTraces ha h).2 t)) ∧ | |
| 124 | + residualOperator ha N = P - D - K := by | |
| 125 | + have hP := component_kernel_operator_spec N hlarge hGRH ha (characterKernel N) (by simp) | |
| 126 | + have hD := component_kernel_operator_spec N hlarge hGRH ha (fun s z => diagonalSeries N (s + z)) (by simp) | |
| 127 | + have hK := component_kernel_operator_spec N hlarge hGRH ha (continuedModel N) (by simp) | |
| 128 | + refine ⟨hP.1, hD.1, hK.1, ?_, ?_⟩ | |
| 129 | + · intro κ hκ | |
| 130 | + simp only [List.mem_cons, List.not_mem_nil, or_false] at hκ | |
| 131 | + rcases hκ with rfl | rfl | rfl | |
| 132 | + · exact hP.2.2 | |
| 133 | + · exact hD.2.2 | |
| 134 | + · exact hK.2.2 | |
| 135 | + · apply kernelOperator_eq_of_represents ha N | |
| 136 | + have hPD := RepresentsKernel.sub_integrable ha N _ _ _ _ hP.1 hD.1 hP.2.2 hD.2.2 | |
| 137 | + have hi : ∀ (h : HardySpace (alpha N) beta) (s : ℂ), s ∈ strip (alpha N) beta → | |
| 138 | + Integrable (fun t : ℝ => (weightedAnalyticKernel (characterKernel N) s (line (alpha N) t) - | |
| 139 | + weightedAnalyticKernel (fun u v => diagonalSeries N (u + v)) s (line (alpha N) t)) * (boundaryTraces ha h).1 t) ∧ | |
| 140 | + Integrable (fun t : ℝ => (weightedAnalyticKernel (characterKernel N) s (line beta t) - | |
| 141 | + weightedAnalyticKernel (fun u v => diagonalSeries N (u + v)) s (line beta t)) * (boundaryTraces ha h).2 t) := by | |
| 142 | + intro h s hs | |
| 143 | + constructor | |
| 144 | + · convert ((hP.2.2 h s hs).1.sub (hD.2.2 h s hs).1) using 1 | |
| 145 | + funext t | |
| 146 | + exact sub_mul _ _ _ | |
| 147 | + · convert ((hP.2.2 h s hs).2.sub (hD.2.2 h s hs).2) using 1 | |
| 148 | + funext t | |
| 149 | + exact sub_mul _ _ _ | |
| 150 | + have hPDK := RepresentsKernel.sub_integrable ha N _ _ _ _ hPD hK.1 hi hK.2.2 | |
| 151 | + convert hPDK using 1 | |
| 152 | + · funext s z | |
| 153 | + simp only [weightedAnalyticKernel, weightedKernel, residual, sub_div] | |
| 154 | + · rfl | |
| 155 | + | |
| 156 | +end ConditionalGoldbach | |
+91 −0 ConditionalGoldbach/Proofs/ArithmeticKernelRealization.lean added View file
| @@ -0,0 +1,91 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.KernelGrowthBounds | |
| 4 | +public import ConditionalGoldbach.Proofs.KernelRegularity | |
| 5 | +public import ConditionalGoldbach.Proofs.HardyKernelMajorant | |
| 6 | + | |
| 7 | +/-! The arithmetic Hardy realization from its two explicit vertical growth estimates. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +open scoped Topology ComplexConjugate BigOperators | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +lemma weightedKernel_closed_joint_continuous (N : ℕ) [NeZero N] | |
| 17 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) : | |
| 18 | + ContinuousOn (Function.uncurry (weightedKernel N)) | |
| 19 | + {p : ℂ × ℂ | p.1.re ∈ Icc (alpha N) beta ∧ p.2.re ∈ Icc (alpha N) beta} := by | |
| 20 | + have hN : 0 < N := by have := (large_parameters hlarge).1; omega | |
| 21 | + have hc := (weightedKernel_conj_differentiableOn N hN hGRH).continuousOn | |
| 22 | + have hj : ContinuousOn (fun p : ℂ × ℂ => weightedKernel N p.1 (conj (conj p.2))) | |
| 23 | + {p : ℂ × ℂ | p.1.re ∈ Icc (alpha N) beta ∧ p.2.re ∈ Icc (alpha N) beta} := by | |
| 24 | + apply hc.comp (f := fun p : ℂ × ℂ => (p.1, conj p.2)) (by fun_prop) | |
| 25 | + intro p hp | |
| 26 | + exact large_closed_strip_subset hlarge ⟨hp.1.1, hp.1.2, hp.2.1, hp.2.2⟩ | |
| 27 | + change ContinuousOn (fun p : ℂ × ℂ => weightedKernel N p.1 p.2) _ | |
| 28 | + simpa only [Complex.conj_conj] using hj | |
| 29 | + | |
| 30 | +lemma weightedKernel_inputs_of_growth (N : ℕ) [NeZero N] | |
| 31 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) | |
| 32 | + (L Z : ℝ) (hL : 0 ≤ L) (hZ : 0 ≤ Z) | |
| 33 | + (hlog : ∀ χ ∈ oddCharacters N, ∀ s : ℂ, s.re ∈ Icc (alpha N) beta → | |
| 34 | + ‖logDerivative χ s‖ ≤ L * Real.log (N * (|s.im| + 2)) ^ 2) | |
| 35 | + (hζ : ∀ w : ℂ, w.re ∈ Icc (3 / 4) (1 - 2 * alpha N) → | |
| 36 | + ‖riemannZeta w‖ ≤ Z * (1 + |w.im|) ^ (1 / 4 : ℝ)) : | |
| 37 | + (∀ x ∈ ({alpha N, beta} : Finset ℝ), ∀ y ∈ ({alpha N, beta} : Finset ℝ), | |
| 38 | + MemLp (fun p : ℝ × ℝ => weightedKernel N (line x p.1) (line y p.2)) 2 volume) ∧ | |
| 39 | + HasHardyKernelColumns ha (weightedKernel N) := by | |
| 40 | + have hN4 := (large_parameters hlarge).1 | |
| 41 | + have hN1 : (1 : ℝ) ≤ N := by exact_mod_cast (by omega : 1 ≤ N) | |
| 42 | + have hlog' : ∀ χ ∈ oddCharacters N, ∀ s : ℂ, s.re ∈ Icc (alpha N) beta → | |
| 43 | + ‖logDerivative χ s‖ ≤ (L * (64 * (2 * N) ^ (1 / 4 : ℝ))) * | |
| 44 | + (1 + |s.im|) ^ (1 / 4 : ℝ) := by | |
| 45 | + intro χ hχ s hs | |
| 46 | + calc | |
| 47 | + _ ≤ L * Real.log (N * (|s.im| + 2)) ^ 2 := hlog χ hχ s hs | |
| 48 | + _ ≤ L * ((64 * (2 * N) ^ (1 / 4 : ℝ)) * (1 + |s.im|) ^ (1 / 4 : ℝ)) := | |
| 49 | + mul_le_mul_of_nonneg_left (logarithm_square_le_quarter_power hN1 s.im) hL | |
| 50 | + _ = _ := by ring | |
| 51 | + obtain ⟨P, hP, hchar⟩ := characterKernel_power_bound N _ (by positivity) hlog' | |
| 52 | + obtain ⟨Q, hQ, hmodel⟩ := continuedModel_power_bound (large_alpha_pos hlarge) ha N hN4 Z hZ hζ | |
| 53 | + obtain ⟨C, hC, hR⟩ := residual_power_bound_of_components (large_alpha_pos hlarge) N P Q hP hQ hchar hmodel | |
| 54 | + apply hardyKernel_inputs_of_power_bound ha (weightedKernel N) | |
| 55 | + (weightedKernel_closed_joint_continuous N hlarge hGRH) | |
| 56 | + (fun z hz => (weightedKernel_closed_column_regular N hlarge hGRH z hz).1) | |
| 57 | + (16 * C ^ 2) (by positivity) | |
| 58 | + exact weightedKernel_power_bound_of_residual (large_alpha_pos hlarge).le N C hC hR | |
| 59 | + | |
| 60 | +lemma residualOperator_spec_of_growth (N : ℕ) [NeZero N] | |
| 61 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) | |
| 62 | + (L Z : ℝ) (hL : 0 ≤ L) (hZ : 0 ≤ Z) | |
| 63 | + (hlog : ∀ χ ∈ oddCharacters N, ∀ s : ℂ, s.re ∈ Icc (alpha N) beta → | |
| 64 | + ‖logDerivative χ s‖ ≤ L * Real.log (N * (|s.im| + 2)) ^ 2) | |
| 65 | + (hζ : ∀ w : ℂ, w.re ∈ Icc (3 / 4) (1 - 2 * alpha N) → | |
| 66 | + ‖riemannZeta w‖ ≤ Z * (1 + |w.im|) ^ (1 / 4 : ℝ)) : | |
| 67 | + (∀ x ∈ ({alpha N, beta} : Finset ℝ), ∀ y ∈ ({alpha N, beta} : Finset ℝ), | |
| 68 | + MemLp (fun p : ℝ × ℝ => weightedKernel N (line x p.1) (line y p.2)) 2 volume) ∧ | |
| 69 | + RepresentsKernel ha N (weightedKernel N) (residualOperator ha N) ∧ | |
| 70 | + IsCompactOperator (residualOperator ha N) ∧ IsSelfAdjoint (residualOperator ha N) ∧ | |
| 71 | + IsHilbertSchmidt (residualOperator ha N) ∧ Nonempty (SpectralData (residualOperator ha N)) ∧ | |
| 72 | + (∑' j, eigenvalues (residualOperator ha N) j ^ 2) = hsNorm (residualOperator ha N) ^ 2 ∧ | |
| 73 | + hsNorm (residualOperator ha N) ^ 2 = BoundaryKernelSquareIntegral (alpha N) beta (weightedKernel N) ∧ | |
| 74 | + ‖residualOperator ha N‖ = sSup (Set.range (fun j => |eigenvalues (residualOperator ha N) j|)) ∧ | |
| 75 | + (residualOperator ha N ≠ 0 → ∃ j, |eigenvalues (residualOperator ha N) j| = ‖residualOperator ha N‖) := by | |
| 76 | + obtain ⟨hK, hcol⟩ := weightedKernel_inputs_of_growth N hlarge hGRH ha L Z hL hZ hlog hζ | |
| 77 | + exact ⟨hK, kernelOperator_spec_of_hardyColumns ha N (weightedKernel N) (weightedKernel_hermitian N) hK hcol⟩ | |
| 78 | + | |
| 79 | +lemma residualOperator_pairing_of_growth (N : ℕ) [NeZero N] | |
| 80 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) | |
| 81 | + (L Z : ℝ) (hL : 0 ≤ L) (hZ : 0 ≤ Z) | |
| 82 | + (hlog : ∀ χ ∈ oddCharacters N, ∀ s : ℂ, s.re ∈ Icc (alpha N) beta → | |
| 83 | + ‖logDerivative χ s‖ ≤ L * Real.log (N * (|s.im| + 2)) ^ 2) | |
| 84 | + (hζ : ∀ w : ℂ, w.re ∈ Icc (3 / 4) (1 - 2 * alpha N) → | |
| 85 | + ‖riemannZeta w‖ ≤ Z * (1 + |w.im|) ^ (1 / 4 : ℝ)) | |
| 86 | + (s z : ℂ) (hs : s ∈ strip (alpha N) beta) (hz : z ∈ strip (alpha N) beta) : | |
| 87 | + weightedKernel N s z = paperInner (residualOperator ha N (evaluationVector z)) (evaluationVector s) := by | |
| 88 | + obtain ⟨hK, hcol⟩ := weightedKernel_inputs_of_growth N hlarge hGRH ha L Z hL hZ hlog hζ | |
| 89 | + exact kernelOperator_pairing_of_hardyColumns ha N (weightedKernel N) (weightedKernel_hermitian N) hK hcol s z hs hz | |
| 90 | + | |
| 91 | +end ConditionalGoldbach | |
+63 −0 ConditionalGoldbach/Proofs/Asymptotics.lean added View file
| @@ -0,0 +1,63 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Hypotheses | |
| 4 | +public import ConditionalGoldbach.Proofs.Elementary | |
| 5 | + | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped Topology | |
| 11 | +open Filter | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +theorem evenEventually_of_eventually {P : ℕ → Prop} (h : ∀ᶠ N in atTop, P N) : | |
| 15 | + EvenEventually P := by | |
| 16 | + obtain ⟨k, hk⟩ := eventually_atTop.1 h | |
| 17 | + exact ⟨k, fun N hN _ => hk N hN⟩ | |
| 18 | + | |
| 19 | +theorem tendsto_log_pow_five_div_nat : | |
| 20 | + Tendsto (fun N : ℕ => Real.log (N : ℝ) ^ 5 / N) atTop (𝓝 0) := by | |
| 21 | + have h := (isLittleO_log_rpow_rpow_atTop (s := 1) (5 : ℝ) | |
| 22 | + (by norm_num)).tendsto_div_nhds_zero.comp | |
| 23 | + (tendsto_natCast_atTop_atTop (R := ℝ)) | |
| 24 | + simpa [Function.comp_def] using h | |
| 25 | + | |
| 26 | +theorem tendsto_prime_power_error : | |
| 27 | + Tendsto (fun N : ℕ => 4 * Real.log (N : ℝ) ^ 2 / Real.sqrt N) atTop (𝓝 0) := by | |
| 28 | + have h := (isLittleO_log_rpow_rpow_atTop (s := 1 / 2) (2 : ℝ) | |
| 29 | + (by norm_num)).tendsto_div_nhds_zero.comp | |
| 30 | + (tendsto_natCast_atTop_atTop (R := ℝ)) | |
| 31 | + have h' := h.const_mul 4 | |
| 32 | + simpa [Function.comp_def, Real.sqrt_eq_rpow, mul_div_assoc] using h' | |
| 33 | + | |
| 34 | +/-- A concrete admissible prescribed function, using only the positive uniform | |
| 35 | +lower bound for the singular series already proved in the existing project. -/ | |
| 36 | +theorem isAdmissible_log : IsAdmissible (fun N => Real.log (N : ℝ)) := by | |
| 37 | + refine ⟨?_, ?_, ?_⟩ | |
| 38 | + · intro N _ hN | |
| 39 | + exact Real.log_pos (by exact_mod_cast (show 1 < N by omega)) | |
| 40 | + · intro B | |
| 41 | + apply evenEventually_of_eventually | |
| 42 | + exact (Real.tendsto_log_atTop.comp | |
| 43 | + (tendsto_natCast_atTop_atTop (R := ℝ))).eventually_ge_atTop B | |
| 44 | + · have hlim : Tendsto (fun N : ℕ => | |
| 45 | + (Real.log (N : ℝ) ^ 5 / N) / (2 * C2)) atTop (𝓝 0) := by | |
| 46 | + simpa only [zero_div] using tendsto_log_pow_five_div_nat.div_const (2 * C2) | |
| 47 | + have hevent := (tendsto_order.1 hlim).2 (1 / 4) (by norm_num) | |
| 48 | + apply evenEventually_of_eventually | |
| 49 | + filter_upwards [eventually_ge_atTop (1 : ℕ), hevent] with N hN hsmall | |
| 50 | + have hNR : (0 : ℝ) < N := by exact_mod_cast (show 0 < N by omega) | |
| 51 | + have hlog : 0 ≤ Real.log (N : ℝ) := Real.log_nonneg (by exact_mod_cast hN) | |
| 52 | + have hlower := singularSeries_uniform_lower N | |
| 53 | + have hbase : 0 < 2 * C2 := mul_pos (by norm_num) C2_pos | |
| 54 | + have hid : zeroFreeWidth N (fun N => Real.log (N : ℝ)) = | |
| 55 | + (Real.log (N : ℝ) ^ 5 / N) / singularSeries N := by | |
| 56 | + unfold zeroFreeWidth | |
| 57 | + ring | |
| 58 | + rw [hid] | |
| 59 | + exact le_trans | |
| 60 | + (div_le_div_of_nonneg_left (div_nonneg (pow_nonneg hlog 5) hNR.le) hbase hlower) | |
| 61 | + hsmall.le | |
| 62 | + | |
| 63 | +end ConditionalGoldbach | |
+140 −0 ConditionalGoldbach/Proofs/BalanceBounds.lean added View file
| @@ -0,0 +1,140 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.VariableWeightNorm | |
| 4 | +public import ConditionalGoldbach.Proofs.SpectralAlgebra | |
| 5 | + | |
| 6 | +/-! Uniform comparison of the functional norm, baseline bound, and spectral widths. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma baselineBound_alpha (C : ℝ) (N : ℕ) (c : ℝ) : | |
| 16 | + baselineBound C N (alpha N c) = C*Real.log N^2*(1+c⁻¹^2) := by | |
| 17 | + simp only [baselineBound, alpha, div_eq_mul_inv, mul_inv, inv_inv] | |
| 18 | + ring | |
| 19 | + | |
| 20 | +lemma normFunctional_baseline_bounds (φ : ℝ → ℝ) (hφ : IsWeight φ) (C : ℝ) (hC : 0 < C) | |
| 21 | + (N : ℕ) (hN : 4 ≤ N) (c : ℝ) (hc : 0 < c) (ha : alpha N c < 1/10) : | |
| 22 | + (C*weightEnergy φ/6)*Real.log N^2*balanceFactor c ≤ | |
| 23 | + normFunctional N φ (alpha N c)*baselineBound C N (alpha N c) ∧ | |
| 24 | + normFunctional N φ (alpha N c)*baselineBound C N (alpha N c) ≤ | |
| 25 | + (C*weightEnergy φ)*Real.log N^2*balanceFactor c := by | |
| 26 | + have hlog : 0 < Real.log (N : ℝ) := Real.log_pos (by exact_mod_cast (show 1<N by omega)) | |
| 27 | + have ha0 : 0 < alpha N c := div_pos hc hlog | |
| 28 | + have hlo := normFunctional_uniform_lower N (by omega) φ hφ (alpha N c) ha0 ha | |
| 29 | + have hhi := normFunctional_uniform_upper N (by omega) φ hφ (alpha N c) ha0.le | |
| 30 | + rw [nat_rpow_alpha N (by omega)] at hlo hhi | |
| 31 | + have hb : 0 ≤ baselineBound C N (alpha N c) := by unfold baselineBound; positivity | |
| 32 | + have hl := mul_le_mul_of_nonneg_right hlo hb | |
| 33 | + have hu := mul_le_mul_of_nonneg_right hhi hb | |
| 34 | + rw [baselineBound_alpha] at hl hu ⊢ | |
| 35 | + unfold balanceFactor | |
| 36 | + constructor | |
| 37 | + · convert hl using 1; ring | |
| 38 | + · convert hu using 1; ring | |
| 39 | + | |
| 40 | +theorem lemma_A_3_balance (φ : ℝ → ℝ) (hφ : IsWeight φ) (C : ℝ) (hC : 0 < C) : | |
| 41 | + ∃ L U : ℝ, 0 < L ∧ 0 < U ∧ EvenEventually (fun N => | |
| 42 | + ∀ c : ℝ, 0 < c → alpha N c < 1 / 10 → | |
| 43 | + L * Real.log N ^ 2 * balanceFactor c ≤ | |
| 44 | + normFunctional N φ (alpha N c) * baselineBound C N (alpha N c) ∧ | |
| 45 | + normFunctional N φ (alpha N c) * baselineBound C N (alpha N c) ≤ | |
| 46 | + U * Real.log N ^ 2 * balanceFactor c ∧ | |
| 47 | + ∀ h : ℕ → ℝ, 0 < h N → | |
| 48 | + L ^ 2 * h N ^ 2 * Real.log N ^ 4 / singularSeries N ^ 2 * balanceFactor c ^ 2 ≤ | |
| 49 | + h N ^ 2 * (normFunctional N φ (alpha N c) * baselineBound C N (alpha N c)) ^ 2 / | |
| 50 | + singularSeries N ^ 2 ∧ | |
| 51 | + h N ^ 2 * (normFunctional N φ (alpha N c) * baselineBound C N (alpha N c)) ^ 2 / | |
| 52 | + singularSeries N ^ 2 ≤ | |
| 53 | + U ^ 2 * h N ^ 2 * Real.log N ^ 4 / singularSeries N ^ 2 * balanceFactor c ^ 2) := by | |
| 54 | + let L := C*weightEnergy φ/6 | |
| 55 | + let U := C*weightEnergy φ | |
| 56 | + have hE := weightEnergy_pos hφ | |
| 57 | + have hL : 0 < L := by dsimp [L]; positivity | |
| 58 | + have hU : 0 < U := by dsimp [U]; positivity | |
| 59 | + refine ⟨L,U,hL,hU,4,fun N hN _ c hc ha => ?_⟩ | |
| 60 | + obtain ⟨hl,hu⟩ := normFunctional_baseline_bounds φ hφ C hC N hN c hc ha | |
| 61 | + change L*Real.log N^2*balanceFactor c ≤ _ at hl | |
| 62 | + change _ ≤ U*Real.log N^2*balanceFactor c at hu | |
| 63 | + refine ⟨hl,hu,fun h hh => ?_⟩ | |
| 64 | + have hbal : 0 ≤ balanceFactor c := by unfold balanceFactor; positivity | |
| 65 | + have hlo0 : 0 ≤ L*Real.log N^2*balanceFactor c := by positivity | |
| 66 | + have hprod0 := hlo0.trans hl | |
| 67 | + have hl2 := pow_le_pow_left₀ hlo0 hl 2 | |
| 68 | + have hu2 := pow_le_pow_left₀ hprod0 hu 2 | |
| 69 | + have hscale : 0 ≤ h N^2/singularSeries N^2 := by positivity | |
| 70 | + have hl' := mul_le_mul_of_nonneg_left hl2 hscale | |
| 71 | + have hu' := mul_le_mul_of_nonneg_left hu2 hscale | |
| 72 | + constructor | |
| 73 | + · convert hl' using 1 <;> ring | |
| 74 | + · convert hu' using 1 <;> ring | |
| 75 | + | |
| 76 | +lemma spectralWidth_ratio_bounds (N : ℕ) (r s : ℝ) | |
| 77 | + (hd : 0 < spectralScale N) (hr : spectralScale N < r) (hs : spectralScale N < s) : | |
| 78 | + s^2/(2*r^2) ≤ spectralWidthFromBound N r / spectralWidthFromBound N s ∧ | |
| 79 | + spectralWidthFromBound N r / spectralWidthFromBound N s ≤ 2*s^2/r^2 := by | |
| 80 | + have hr0 : 0 < r := hd.trans hr | |
| 81 | + have hs0 : 0 < s := hd.trans hs | |
| 82 | + obtain ⟨hrl,hru⟩ := theorem_6_1_width_comparison N r hd hr | |
| 83 | + obtain ⟨hsl,hsu⟩ := theorem_6_1_width_comparison N s hd hs | |
| 84 | + have her0 : 0 < spectralWidthFromBound N r := lt_of_lt_of_le (by positivity) hrl | |
| 85 | + have hes0 : 0 < spectralWidthFromBound N s := lt_of_lt_of_le (by positivity) hsl | |
| 86 | + constructor | |
| 87 | + · have hh := div_le_div₀ her0.le hrl hes0 hsu | |
| 88 | + have he : (spectralScale N^2/(4*r^2))/(spectralScale N^2/(2*s^2)) = s^2/(2*r^2) := by | |
| 89 | + field_simp; ring | |
| 90 | + rwa [he] at hh | |
| 91 | + · have hh := div_le_div₀ (by positivity : 0 ≤ spectralScale N^2/(2*r^2)) hru | |
| 92 | + (by positivity : 0 < spectralScale N^2/(4*s^2)) hsl | |
| 93 | + have he : (spectralScale N^2/(2*r^2))/(spectralScale N^2/(4*s^2)) = 2*s^2/r^2 := by | |
| 94 | + field_simp; ring | |
| 95 | + rwa [he] at hh | |
| 96 | + | |
| 97 | +theorem lemma_A_3_width_ratio (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 98 | + (C : ℝ) (hC : 0 < C) : | |
| 99 | + ∃ L U : ℝ, 0 < L ∧ 0 < U ∧ EvenEventually (fun N => | |
| 100 | + ∀ c h : ℝ, 0 < c → alpha N c < 1 / 10 → 0 < h → | |
| 101 | + let requiredNorm := singularSeries N / (h * normFunctional N φ (alpha N c)) | |
| 102 | + let suppliedNorm := baselineBound C N (alpha N c) | |
| 103 | + let requiredWidth := spectralWidthFromBound N requiredNorm | |
| 104 | + let suppliedWidth := spectralWidthFromBound N suppliedNorm | |
| 105 | + 0 < spectralScale N → spectralScale N < requiredNorm → | |
| 106 | + spectralScale N < suppliedNorm → requiredWidth ≤ 1 / 4 → | |
| 107 | + suppliedWidth ≤ 1 / 4 → | |
| 108 | + L * h ^ 2 * Real.log N ^ 4 / singularSeries N ^ 2 * balanceFactor c ^ 2 ≤ | |
| 109 | + requiredWidth / suppliedWidth ∧ | |
| 110 | + requiredWidth / suppliedWidth ≤ | |
| 111 | + U * h ^ 2 * Real.log N ^ 4 / singularSeries N ^ 2 * balanceFactor c ^ 2) := by | |
| 112 | + obtain ⟨L,U,hL,hU,N₀,hbound⟩ := lemma_A_3_balance φ hφ C hC | |
| 113 | + refine ⟨L^2/2, 2*U^2, by positivity, by positivity, N₀, ?_⟩ | |
| 114 | + intro N hN heven c h hc ha hh | |
| 115 | + dsimp only | |
| 116 | + intro hd hr hs _ _ | |
| 117 | + let Q := normFunctional N φ (alpha N c) | |
| 118 | + let B := baselineBound C N (alpha N c) | |
| 119 | + have hr0 : 0 < singularSeries N/(h*Q) := hd.trans hr | |
| 120 | + have hQ : Q ≠ 0 := by intro he; simp [he] at hr0 | |
| 121 | + have hS : singularSeries N ≠ 0 := by intro he; simp [he] at hr0 | |
| 122 | + have he : B^2/(singularSeries N/(h*Q))^2 = h^2*(Q*B)^2/singularSeries N^2 := by | |
| 123 | + field_simp | |
| 124 | + obtain ⟨hl,hu⟩ := (hbound N hN heven c hc ha).2.2 (fun _ => h) hh | |
| 125 | + obtain ⟨hrl,hru⟩ := spectralWidth_ratio_bounds N (singularSeries N/(h*Q)) B hd hr hs | |
| 126 | + change _ ≤ spectralWidthFromBound N (singularSeries N/(h*Q))/spectralWidthFromBound N B ∧ | |
| 127 | + spectralWidthFromBound N (singularSeries N/(h*Q))/spectralWidthFromBound N B ≤ _ | |
| 128 | + have hel : B^2/(2*(singularSeries N/(h*Q))^2) = | |
| 129 | + (h^2*(Q*B)^2/singularSeries N^2)/2 := by rw [show B^2/(2*(singularSeries N/(h*Q))^2) = (B^2/(singularSeries N/(h*Q))^2)/2 by ring, he] | |
| 130 | + have heu : 2*B^2/(singularSeries N/(h*Q))^2 = | |
| 131 | + 2*(h^2*(Q*B)^2/singularSeries N^2) := by rw [show 2*B^2/(singularSeries N/(h*Q))^2 = 2*(B^2/(singularSeries N/(h*Q))^2) by ring, he] | |
| 132 | + rw [hel] at hrl | |
| 133 | + rw [heu] at hru | |
| 134 | + constructor | |
| 135 | + · have hl' := div_le_div_of_nonneg_right hl (by norm_num : (0:ℝ) ≤ 2) | |
| 136 | + convert hl'.trans hrl using 1; ring | |
| 137 | + · have hu' := mul_le_mul_of_nonneg_left hu (by norm_num : (0:ℝ) ≤ 2) | |
| 138 | + convert hru.trans hu' using 1; ring | |
| 139 | + | |
| 140 | +end ConditionalGoldbach | |
+31 −0 ConditionalGoldbach/Proofs/BalanceLimits.lean added View file
| @@ -0,0 +1,31 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.BalanceBounds | |
| 4 | + | |
| 5 | +public section | |
| 6 | + | |
| 7 | +set_option autoImplicit false | |
| 8 | +noncomputable section | |
| 9 | +open scoped Topology | |
| 10 | +open Filter Set | |
| 11 | +namespace ConditionalGoldbach | |
| 12 | + | |
| 13 | +lemma balanceFactor_tendsto_zero : Tendsto balanceFactor (nhdsWithin 0 (Ioi 0)) atTop := by | |
| 14 | + have hpow : Tendsto (fun c : ℝ => (c⁻¹)^2) (nhdsWithin 0 (Ioi 0)) atTop := | |
| 15 | + (tendsto_pow_atTop (by norm_num : 2 ≠ 0)).comp tendsto_inv_nhdsGT_zero | |
| 16 | + apply tendsto_atTop_mono' _ ?_ hpow | |
| 17 | + filter_upwards [self_mem_nhdsWithin] with c hc | |
| 18 | + change 0<c at hc | |
| 19 | + have he : 1 ≤ Real.exp (2*c) := Real.one_le_exp_iff.mpr (by positivity) | |
| 20 | + unfold balanceFactor | |
| 21 | + nlinarith [sq_nonneg c⁻¹, mul_nonneg (sub_nonneg.mpr he) (sq_nonneg c⁻¹)] | |
| 22 | + | |
| 23 | +lemma balanceFactor_tendsto_infty : Tendsto balanceFactor atTop atTop := by | |
| 24 | + have he : Tendsto (fun c : ℝ => Real.exp (2*c)) atTop atTop := | |
| 25 | + Real.tendsto_exp_atTop.comp (tendsto_id.const_mul_atTop (by norm_num : (0:ℝ)<2)) | |
| 26 | + apply tendsto_atTop_mono' _ ?_ he | |
| 27 | + filter_upwards [] with c | |
| 28 | + unfold balanceFactor | |
| 29 | + nlinarith [mul_nonneg (Real.exp_pos (2*c)).le (sq_nonneg c⁻¹)] | |
| 30 | + | |
| 31 | +end ConditionalGoldbach | |
+141 −0 ConditionalGoldbach/Proofs/BaselineEuler.lean added View file
| @@ -0,0 +1,141 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.Normed.Module.MultipliableUniformlyOn | |
| 4 | +public import ConditionalGoldbach.Proofs.DensityResidue | |
| 5 | + | |
| 6 | +@[expose] public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | +attribute [local instance] Classical.propDecidable | |
| 14 | + | |
| 15 | +def baselineEulerTerm (N p : ℕ) (w : ℂ) : ℂ := | |
| 16 | + 2*densityEulerTerm N p (1+w)-densityEulerTerm N p (1+2*w) | |
| 17 | + | |
| 18 | +lemma baselineEulerTerm_eq (N p : ℕ) (w : ℂ) : | |
| 19 | + 1+baselineEulerTerm N p w = if p.Prime ∧ 2<p ∧ ¬p∣N then | |
| 20 | + 1+(2*(p:ℂ)^(-w)-(p:ℂ)^(-2*w))/((p:ℂ)*((p:ℂ)-2)) else 1 := by | |
| 21 | + unfold baselineEulerTerm densityEulerTerm | |
| 22 | + split_ifs with hp | |
| 23 | + · have hp0 : (p:ℂ) ≠ 0 := by exact_mod_cast hp.1.ne_zero | |
| 24 | + have hp2 : (p:ℂ)-2 ≠ 0 := by | |
| 25 | + intro he | |
| 26 | + have hr := congrArg Complex.re he | |
| 27 | + simp at hr | |
| 28 | + have : (2:ℝ)<p := by exact_mod_cast hp.2.1 | |
| 29 | + linarith | |
| 30 | + rw [show -(1+w)=(-1)+(-w) by ring,show -(1+2*w)=(-1)+(-2*w) by ring, | |
| 31 | + Complex.cpow_add _ _ hp0,Complex.cpow_add _ _ hp0,Complex.cpow_neg_one] | |
| 32 | + field_simp | |
| 33 | + · simp | |
| 34 | + | |
| 35 | +lemma baselineEulerTerm_bound (N p : ℕ) (w : ℂ) (hw : -(1/4:ℝ)<w.re) : | |
| 36 | + ‖baselineEulerTerm N p w‖ ≤ 9*‖LSeries.term 1 (3/2:ℂ) p‖ := by | |
| 37 | + have h1 := densityEulerTerm_bound N p (1/2) (1+w) (by simp; linarith) | |
| 38 | + have h2 := densityEulerTerm_bound N p (1/2) (1+2*w) (by simp; linarith) | |
| 39 | + norm_num at h1 h2 | |
| 40 | + calc | |
| 41 | + _ ≤ ‖2*densityEulerTerm N p (1+w)‖+‖densityEulerTerm N p (1+2*w)‖ := norm_sub_le _ _ | |
| 42 | + _ = 2*‖densityEulerTerm N p (1+w)‖+‖densityEulerTerm N p (1+2*w)‖ := by rw [norm_mul]; norm_num | |
| 43 | + _ ≤ _ := by linarith | |
| 44 | + | |
| 45 | +lemma baselineEulerTerm_differentiable (N p : ℕ) : Differentiable ℂ (baselineEulerTerm N p) := by | |
| 46 | + unfold baselineEulerTerm | |
| 47 | + apply Differentiable.sub | |
| 48 | + · exact ((densityEulerTerm_differentiable N p).comp (by fun_prop)).const_mul 2 | |
| 49 | + · exact (densityEulerTerm_differentiable N p).comp (by fun_prop) | |
| 50 | + | |
| 51 | +lemma baselineEulerTerm_summable_norm (N : ℕ) {w : ℂ} (hw : -(1/4:ℝ)<w.re) : | |
| 52 | + Summable (fun p => ‖baselineEulerTerm N p w‖) := by | |
| 53 | + have hs := ((LSeriesSummable_one_iff.mpr (by norm_num : (1:ℝ)<(3/2:ℂ).re)).norm).mul_left 9 | |
| 54 | + exact hs.of_nonneg_of_le (fun _ => norm_nonneg _) (fun p => baselineEulerTerm_bound N p w hw) | |
| 55 | + | |
| 56 | +lemma baselineEulerProduct_differentiableOn (N : ℕ) : | |
| 57 | + DifferentiableOn ℂ (fun w => ∏' p, (1+baselineEulerTerm N p w)) {w : ℂ | -(1/4:ℝ)<w.re} := by | |
| 58 | + have ho : IsOpen {w : ℂ | -(1/4:ℝ)<w.re} := isOpen_lt continuous_const Complex.continuous_re | |
| 59 | + have hs : Summable (fun p => 9*‖LSeries.term 1 (3/2:ℂ) p‖) := | |
| 60 | + ((LSeriesSummable_one_iff.mpr (by norm_num : (1:ℝ)<(3/2:ℂ).re)).norm).mul_left 9 | |
| 61 | + have hu : TendstoLocallyUniformlyOn | |
| 62 | + (fun k w => ∏ p ∈ Finset.range k, (1+baselineEulerTerm N p w)) | |
| 63 | + (fun w => ∏' p, (1+baselineEulerTerm N p w)) atTop {w : ℂ | -(1/4:ℝ)<w.re} := by | |
| 64 | + apply (tendstoLocallyUniformlyOn_iff_forall_isCompact ho).2 | |
| 65 | + intro K hKU hK | |
| 66 | + have hh := hs.hasProdUniformlyOn_nat_one_add hK | |
| 67 | + (Eventually.of_forall (fun p w hw => baselineEulerTerm_bound N p w (hKU hw))) | |
| 68 | + (fun p => (baselineEulerTerm_differentiable N p).continuous.continuousOn) | |
| 69 | + exact hh.tendstoUniformlyOn_finsetRange | |
| 70 | + apply hu.differentiableOn _ ho | |
| 71 | + filter_upwards with k | |
| 72 | + apply Differentiable.differentiableOn | |
| 73 | + apply Differentiable.fun_finsetProd | |
| 74 | + intro p hp | |
| 75 | + exact (differentiable_const (1:ℂ)).add (baselineEulerTerm_differentiable N p) | |
| 76 | + | |
| 77 | +lemma baselineProductR_differentiableOn (N : ℕ) : | |
| 78 | + DifferentiableOn ℂ (baselineProductR N) {w : ℂ | -(1/4:ℝ)<w.re} := by | |
| 79 | + have he : baselineProductR N = fun w => | |
| 80 | + (∏ p ∈ N.primeFactors, (1-(p:ℂ)^(-1-w)))*(∏' p, (1+baselineEulerTerm N p w)) := by | |
| 81 | + funext w | |
| 82 | + unfold baselineProductR | |
| 83 | + congr 1 | |
| 84 | + exact (tprod_congr (fun p => baselineEulerTerm_eq N p w)).symm | |
| 85 | + rw [he] | |
| 86 | + apply DifferentiableOn.mul _ (baselineEulerProduct_differentiableOn N) | |
| 87 | + apply Differentiable.differentiableOn | |
| 88 | + apply Differentiable.fun_finsetProd | |
| 89 | + intro p hp | |
| 90 | + have hp0 : (p:ℂ) ≠ 0 := by exact_mod_cast (Nat.prime_of_mem_primeFactors hp).ne_zero | |
| 91 | + intro w | |
| 92 | + exact (differentiableAt_const (c := (1:ℂ))).sub ((by fun_prop : DifferentiableAt ℂ (fun w : ℂ => -1-w) w).const_cpow (Or.inl hp0)) | |
| 93 | + | |
| 94 | +lemma baselineProductR_zero (N : ℕ) (hN : Even N) (hpos : 0<N) : | |
| 95 | + (singularSeries N:ℂ)*baselineProductR N 0=1 := by | |
| 96 | + have hp : (∏' p:ℕ, if p.Prime ∧ 2<p ∧ ¬p∣N then | |
| 97 | + 1+(2*(p:ℂ)^(-(0:ℂ))-(p:ℂ)^(-2*(0:ℂ)))/((p:ℂ)*((p:ℂ)-2)) else 1)=densityEulerProduct N 1 := by | |
| 98 | + rw [densityEulerProduct_eq_tprod] | |
| 99 | + apply tprod_congr | |
| 100 | + intro p | |
| 101 | + rw [← baselineEulerTerm_eq] | |
| 102 | + simp only [baselineEulerTerm,add_zero,mul_zero] | |
| 103 | + ring | |
| 104 | + have ht := congrArg Complex.ofReal (totient_ratio_prod N hpos) | |
| 105 | + push_cast at ht | |
| 106 | + have hfin : (∏ p ∈ N.primeFactors, (1-(p:ℂ)^(-1-(0:ℂ))))*((N:ℂ)/N.totient)=1 := by | |
| 107 | + rw [ht,← Finset.prod_mul_distrib] | |
| 108 | + have he : ∀ p ∈ N.primeFactors, (1-(p:ℂ)^(-1-(0:ℂ)))*((p:ℂ)/(p-1))=1 := by | |
| 109 | + intro p hp | |
| 110 | + have hp0 : (p:ℂ) ≠ 0 := by exact_mod_cast (Nat.prime_of_mem_primeFactors hp).ne_zero | |
| 111 | + have hp1 : (p:ℂ)-1 ≠ 0 := by | |
| 112 | + intro he | |
| 113 | + have hr := congrArg Complex.re he | |
| 114 | + simp at hr | |
| 115 | + have : (2:ℝ)≤p := by exact_mod_cast (Nat.prime_of_mem_primeFactors hp).two_le | |
| 116 | + linarith | |
| 117 | + simp only [sub_zero,Complex.cpow_neg_one] | |
| 118 | + field_simp | |
| 119 | + simp_rw [Finset.prod_congr rfl he,Finset.prod_const_one] | |
| 120 | + unfold baselineProductR | |
| 121 | + rw [hp] | |
| 122 | + calc | |
| 123 | + _ = (∏ p ∈ N.primeFactors, (1-(p:ℂ)^(-1-(0:ℂ))))*((singularSeries N:ℂ)*densityEulerProduct N 1) := by ring | |
| 124 | + _ = 1 := by rw [singularSeries_mul_densityEuler_one N hN hpos]; exact hfin | |
| 125 | + | |
| 126 | +theorem proposition_A_4_baseline_product (N : ℕ) (hN : Even N) (hN4 : 4 ≤ N) : | |
| 127 | + (∃ ε : ℝ, 0 < ε ∧ ∀ w : ℂ, ‖w‖ < ε → | |
| 128 | + Multipliable (fun p : ℕ => if p.Prime ∧ 2 < p ∧ ¬p ∣ N then | |
| 129 | + 1 + (2 * (p : ℂ) ^ (-w) - (p : ℂ) ^ (-2 * w)) / ((p : ℂ) * ((p : ℂ) - 2)) | |
| 130 | + else 1) ∧ DifferentiableAt ℂ (baselineProductR N) w) ∧ | |
| 131 | + (singularSeries N : ℂ) * baselineProductR N 0 = 1 := by | |
| 132 | + refine ⟨⟨1/4,by norm_num,?_⟩,baselineProductR_zero N hN (by omega)⟩ | |
| 133 | + intro w hw | |
| 134 | + have hw' : -(1/4:ℝ)<w.re := by have hh:=Complex.abs_re_le_norm w; have hh' := neg_abs_le w.re; linarith | |
| 135 | + constructor | |
| 136 | + · convert multipliable_one_add_of_summable (baselineEulerTerm_summable_norm N hw') using 1 | |
| 137 | + exact funext (fun p => (baselineEulerTerm_eq N p w).symm) | |
| 138 | + · exact (baselineProductR_differentiableOn N).differentiableAt | |
| 139 | + ((isOpen_lt continuous_const Complex.continuous_re).mem_nhds hw') | |
| 140 | + | |
| 141 | +end ConditionalGoldbach | |
+87 −0 ConditionalGoldbach/Proofs/BaselineProductLink.lean added View file
| @@ -0,0 +1,87 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.BaselineEuler | |
| 4 | +public import ConditionalGoldbach.Proofs.DensityEulerIdentity | |
| 5 | + | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators | |
| 11 | +open Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | +attribute [local instance] Classical.propDecidable | |
| 14 | + | |
| 15 | +lemma baselineProduct_factor (N p : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 16 | + {w : ℂ} (hw : 0 < w.re) : | |
| 17 | + (if p.Prime then (1-(p:ℂ)^(-(1+w)))⁻¹ else 1)* | |
| 18 | + (if p∈N.primeFactors then 1-(p:ℂ)^(-1-w) else 1)* | |
| 19 | + (1+baselineEulerTerm N p w) = 1+densityEulerTerm N p w := by | |
| 20 | + by_cases hp : p.Prime | |
| 21 | + · have hp0 : (p:ℂ) ≠ 0 := by exact_mod_cast hp.ne_zero | |
| 22 | + have hq : ‖(p:ℂ)^(-(1+w))‖ < 1 := by | |
| 23 | + rw [Complex.norm_natCast_cpow_of_pos hp.pos,Complex.neg_re,Complex.add_re,Complex.one_re] | |
| 24 | + exact Real.rpow_lt_one_of_one_lt_of_neg (by exact_mod_cast hp.one_lt) (by linarith) | |
| 25 | + have hqn : 1-(p:ℂ)^(-(1+w)) ≠ 0 := by | |
| 26 | + intro he | |
| 27 | + have he' : (p:ℂ)^(-(1+w))=1 := by linear_combination -he | |
| 28 | + rw [he'] at hq | |
| 29 | + simp only [norm_one, lt_self_iff_false] at hq | |
| 30 | + have hm : p∈N.primeFactors ↔ p∣N := by simp [Nat.mem_primeFactors,hp,hpos.ne'] | |
| 31 | + have he : -1-w=-(1+w) := by ring | |
| 32 | + rw [ite_eq_left hp,he] | |
| 33 | + by_cases hd : p∣N | |
| 34 | + · simp only [ite_eq_left (hm.mpr hd),baselineEulerTerm,densityEulerTerm,hd,not_true_eq_false, | |
| 35 | + and_false,ite_false,mul_zero,sub_zero,add_zero,inv_mul_cancel₀ hqn,mul_one] | |
| 36 | + · have hp2 : 2<p := by | |
| 37 | + have : p≠2 := by intro h; subst p; exact hd (even_iff_two_dvd.mp hN) | |
| 38 | + have := hp.two_le | |
| 39 | + omega | |
| 40 | + rw [ite_eq_right (mt hm.mp hd),mul_one,baselineEulerTerm_eq] | |
| 41 | + simp only [hp,hp2,hd,not_false_eq_true,and_self,ite_true,densityEulerTerm] | |
| 42 | + have hp2c : (p:ℂ)-2 ≠ 0 := by | |
| 43 | + intro h | |
| 44 | + have hh := congrArg Complex.re h | |
| 45 | + simp at hh | |
| 46 | + have hh' : (2:ℝ)<p := by exact_mod_cast hp2 | |
| 47 | + linarith | |
| 48 | + rw [show -(1+w)=(-1)+(-w) by ring,Complex.cpow_add _ _ hp0,Complex.cpow_neg_one] | |
| 49 | + have hpow : (p:ℂ)^(-2*w)=((p:ℂ)^(-w))^2 := by | |
| 50 | + rw [show -2*w=(-w)+(-w) by ring,Complex.cpow_add _ _ hp0,pow_two] | |
| 51 | + rw [hpow] | |
| 52 | + have hqn' : 1-(p:ℂ)⁻¹*(p:ℂ)^(-w) ≠ 0 := by | |
| 53 | + convert hqn using 1 | |
| 54 | + rw [show -(1+w)=(-1)+(-w) by ring,Complex.cpow_add _ _ hp0,Complex.cpow_neg_one] | |
| 55 | + rw [inv_mul_eq_div,div_eq_iff hqn'] | |
| 56 | + field_simp; ring | |
| 57 | + · have hm : p∉N.primeFactors := fun h => hp (Nat.prime_of_mem_primeFactors h) | |
| 58 | + simp [hp,hm,baselineEulerTerm,densityEulerTerm] | |
| 59 | + | |
| 60 | +lemma densityEulerProduct_eq_zeta_baseline (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 61 | + {w : ℂ} (hw : 0 < w.re) : | |
| 62 | + densityEulerProduct N w = riemannZeta (1+w)*baselineProductR N w := by | |
| 63 | + have hz : HasProd (fun p : ℕ => if p.Prime then (1-(p:ℂ)^(-(1+w)))⁻¹ else 1) | |
| 64 | + (riemannZeta (1+w)) := by | |
| 65 | + convert ((hasProd_subtype_iff_mulIndicator | |
| 66 | + (f := fun p : ℕ => (1-(p:ℂ)^(-(1+w)))⁻¹) (s := {p : ℕ | p.Prime})).mp | |
| 67 | + (riemannZeta_eulerProduct_hasProd (by simp; exact hw))) using 1 | |
| 68 | + ext p | |
| 69 | + by_cases hp : p.Prime <;> simp [Set.mulIndicator,hp] | |
| 70 | + have hf : HasProd (fun p : ℕ => if p∈N.primeFactors then 1-(p:ℂ)^(-1-w) else 1) | |
| 71 | + (∏ p∈N.primeFactors, (1-(p:ℂ)^(-1-w))) := by | |
| 72 | + have hh : HasProd (fun p : ℕ => if p∈N.primeFactors then 1-(p:ℂ)^(-1-w) else 1) | |
| 73 | + (∏ p∈N.primeFactors, if p∈N.primeFactors then 1-(p:ℂ)^(-1-w) else 1) := | |
| 74 | + hasProd_prod_of_ne_finset_one (fun p hp => ite_eq_right hp) | |
| 75 | + simpa only [Finset.prod_ite_of_true (fun p hp => hp)] using hh | |
| 76 | + have hb := (multipliable_one_add_of_summable (baselineEulerTerm_summable_norm N (by linarith : -(1/4:ℝ)<w.re))).hasProd | |
| 77 | + have he := (multipliable_one_add_of_summable (densityEulerTerm_summable_norm N hw)).hasProd | |
| 78 | + rw [← densityEulerProduct_eq_tprod] at he | |
| 79 | + have hprod := (hz.mul hf).mul hb | |
| 80 | + simp only [baselineProduct_factor N _ hN hpos hw] at hprod | |
| 81 | + rw [he.unique hprod] | |
| 82 | + unfold baselineProductR | |
| 83 | + rw [← mul_assoc] | |
| 84 | + congr 1 | |
| 85 | + exact tprod_congr (fun p => baselineEulerTerm_eq N p w) | |
| 86 | + | |
| 87 | +end ConditionalGoldbach | |
+233 −0 ConditionalGoldbach/Proofs/BetaIdentity.lean added View file
| @@ -0,0 +1,233 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Model | |
| 4 | +import Mathlib.Tactic.NormNum.RealSqrt | |
| 5 | + | |
| 6 | +/-! The beta-kernel Gamma quotient, with all arguments in their original domain. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma gamma_reflection_inverse {a : ℂ} (ha : 0 < a.re) (ha1 : a.re < 1) : | |
| 16 | + (Gamma (1 - a))⁻¹ = Gamma a * Complex.sin (Real.pi * a) / Real.pi := by | |
| 17 | + have hga := Complex.Gamma_ne_zero_of_re_pos ha | |
| 18 | + have hgb := Complex.Gamma_ne_zero_of_re_pos (s := 1 - a) (by simp; linarith) | |
| 19 | + have hR := Complex.Gamma_mul_Gamma_one_sub a | |
| 20 | + have hs : Complex.sin (Real.pi * a) ≠ 0 := by | |
| 21 | + intro hs | |
| 22 | + rw [hs, div_zero] at hR | |
| 23 | + exact (mul_ne_zero hga hgb) hR | |
| 24 | + have hπ : (Real.pi : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr Real.pi_ne_zero | |
| 25 | + apply (eq_div_iff hπ).2 | |
| 26 | + calc | |
| 27 | + _ = (Gamma (1 - a))⁻¹ * ((Gamma a * Gamma (1 - a)) * Complex.sin (Real.pi * a)) := by | |
| 28 | + congr 1 | |
| 29 | + exact ((eq_div_iff hs).mp hR).symm | |
| 30 | + _ = _ := by field_simp | |
| 31 | + | |
| 32 | +lemma gamma_half_ratio {a : ℂ} (ha : 0 < a.re) (ha1 : a.re < 1) : | |
| 33 | + Gamma ((a + 1) / 2) / Gamma (1 - a / 2) = | |
| 34 | + (2 : ℂ) ^ (1 - a) / Real.sqrt Real.pi * Gamma a * Complex.sin (Real.pi * a / 2) := by | |
| 35 | + have hp : (Real.pi : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr Real.pi_ne_zero | |
| 36 | + have hsq : (Real.sqrt Real.pi : ℂ) ^ 2 = Real.pi := by | |
| 37 | + exact_mod_cast Real.sq_sqrt Real.pi_pos.le | |
| 38 | + have hr : (Real.sqrt Real.pi : ℂ) ≠ 0 := by | |
| 39 | + exact Complex.ofReal_ne_zero.mpr (Real.sqrt_pos.mpr Real.pi_pos).ne' | |
| 40 | + rw [div_eq_mul_inv, gamma_reflection_inverse (a := a / 2) | |
| 41 | + (by simp; linarith) (by simp; linarith)] | |
| 42 | + have hdup := Complex.Gamma_mul_Gamma_add_half (a / 2) | |
| 43 | + have he1 : a / 2 + 1 / 2 = (a + 1) / 2 := by ring | |
| 44 | + have he2 : 2 * (a / 2) = a := by ring | |
| 45 | + rw [he1, he2] at hdup | |
| 46 | + calc | |
| 47 | + _ = (Gamma (a / 2) * Gamma ((a + 1) / 2)) * Complex.sin (Real.pi * a / 2) / Real.pi := by | |
| 48 | + rw [show (Real.pi : ℂ) * (a / 2) = Real.pi * a / 2 by ring] | |
| 49 | + ring | |
| 50 | + _ = _ := by | |
| 51 | + rw [hdup, ← hsq] | |
| 52 | + field_simp | |
| 53 | + | |
| 54 | +lemma beta_sine_identity (x y : ℂ) : | |
| 55 | + Complex.sin x + Complex.sin y - Complex.sin (x + y) = | |
| 56 | + 4 * Complex.sin (x / 2) * Complex.sin (y / 2) * Complex.sin ((x + y) / 2) := by | |
| 57 | + have hd : Complex.sin (x + y) = 2 * Complex.sin ((x + y) / 2) * Complex.cos ((x + y) / 2) := by | |
| 58 | + convert Complex.sin_two_mul ((x + y) / 2) using 1 | |
| 59 | + congr 1 | |
| 60 | + ring | |
| 61 | + rw [Complex.sin_add_sin, hd] | |
| 62 | + calc | |
| 63 | + _ = 2 * Complex.sin ((x + y) / 2) * | |
| 64 | + (Complex.cos ((x - y) / 2) - Complex.cos ((x + y) / 2)) := by ring | |
| 65 | + _ = _ := by | |
| 66 | + rw [Complex.cos_sub_cos, | |
| 67 | + show ((x - y) / 2 + (x + y) / 2) / 2 = x / 2 by ring, | |
| 68 | + show ((x - y) / 2 - (x + y) / 2) / 2 = -(y / 2) by ring, | |
| 69 | + Complex.sin_neg] | |
| 70 | + ring | |
| 71 | + | |
| 72 | +lemma beta_triangle_gamma {a b c : ℂ} (ha : 0 < a.re) (hb : 0 < b.re) | |
| 73 | + (hc : 0 < c.re) (habc : a + b + c = 1) : | |
| 74 | + betaIntegral a b + betaIntegral c b - betaIntegral a c = | |
| 75 | + Gamma a * Gamma b * Gamma c / Real.pi * | |
| 76 | + (Complex.sin (Real.pi * a) + Complex.sin (Real.pi * c) - Complex.sin (Real.pi * b)) := by | |
| 77 | + have hr := congrArg Complex.re habc | |
| 78 | + simp only [add_re, one_re] at hr | |
| 79 | + have ha1 : a.re < 1 := by linarith | |
| 80 | + have hb1 : b.re < 1 := by linarith | |
| 81 | + have hc1 : c.re < 1 := by linarith | |
| 82 | + have hab : a + b = 1 - c := by linear_combination habc | |
| 83 | + have hcb : c + b = 1 - a := by linear_combination habc | |
| 84 | + have hac : a + c = 1 - b := by linear_combination habc | |
| 85 | + rw [Complex.betaIntegral_eq_Gamma_mul_div a b ha hb, | |
| 86 | + Complex.betaIntegral_eq_Gamma_mul_div c b hc hb, | |
| 87 | + Complex.betaIntegral_eq_Gamma_mul_div a c ha hc, hab, hcb, hac] | |
| 88 | + simp only [div_eq_mul_inv] | |
| 89 | + rw [gamma_reflection_inverse hc hc1, gamma_reflection_inverse ha ha1, | |
| 90 | + gamma_reflection_inverse hb hb1] | |
| 91 | + ring | |
| 92 | + | |
| 93 | +lemma beta_triangle_sine {a b c : ℂ} (habc : a + b + c = 1) : | |
| 94 | + Complex.sin (Real.pi * a) + Complex.sin (Real.pi * c) - Complex.sin (Real.pi * b) = | |
| 95 | + 4 * Complex.sin (Real.pi * a / 2) * Complex.sin (Real.pi * c / 2) * | |
| 96 | + Complex.cos (Real.pi * b / 2) := by | |
| 97 | + have hsb : Complex.sin (Real.pi * b) = Complex.sin (Real.pi * a + Real.pi * c) := by | |
| 98 | + rw [← Complex.sin_pi_sub (Real.pi * a + Real.pi * c)] | |
| 99 | + congr 1 | |
| 100 | + linear_combination (Real.pi : ℂ) * habc | |
| 101 | + have hsc : Complex.sin ((Real.pi * a + Real.pi * c) / 2) = Complex.cos (Real.pi * b / 2) := by | |
| 102 | + rw [← Complex.sin_pi_div_two_sub (Real.pi * b / 2)] | |
| 103 | + congr 1 | |
| 104 | + linear_combination (Real.pi / 2 : ℂ) * habc | |
| 105 | + rw [hsb, beta_sine_identity, hsc] | |
| 106 | + | |
| 107 | +lemma gammaQuotient_half_ratio (s : ℂ) : | |
| 108 | + gammaQuotient s = Gamma (((1 / 2 - s) + 1) / 2) / Gamma (1 - (1 / 2 - s) / 2) := by | |
| 109 | + unfold gammaQuotient | |
| 110 | + congr 2 <;> ring | |
| 111 | + | |
| 112 | +lemma betaKernel_gamma_identity (s z : ℂ) (hd : (s, z) ∈ betaDomain) : | |
| 113 | + betaKernel s z = (2 : ℂ) ^ (1 - (s + z)) * Gamma (s + z) * | |
| 114 | + Complex.cos (Real.pi * (s + z) / 2) * gammaQuotient s * gammaQuotient z := by | |
| 115 | + let a : ℂ := 1 / 2 - s | |
| 116 | + let b : ℂ := s + z | |
| 117 | + let c : ℂ := 1 / 2 - z | |
| 118 | + have ha : 0 < a.re := by dsimp [a]; simp; linarith [hd.1] | |
| 119 | + have hb : 0 < b.re := hd.2.2 | |
| 120 | + have hc : 0 < c.re := by dsimp [c]; simp; linarith [hd.2.1] | |
| 121 | + have habc : a + b + c = 1 := by dsimp [a, b, c]; ring | |
| 122 | + have hr := congrArg Complex.re habc | |
| 123 | + simp only [add_re, one_re] at hr | |
| 124 | + have ha1 : a.re < 1 := by linarith | |
| 125 | + have hc1 : c.re < 1 := by linarith | |
| 126 | + have hp : (Real.pi : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr Real.pi_ne_zero | |
| 127 | + have hsq : (Real.sqrt Real.pi : ℂ) ^ 2 = Real.pi := by exact_mod_cast Real.sq_sqrt Real.pi_pos.le | |
| 128 | + have hrt : (Real.sqrt Real.pi : ℂ) ≠ 0 := by | |
| 129 | + exact Complex.ofReal_ne_zero.mpr (Real.sqrt_pos.mpr Real.pi_pos).ne' | |
| 130 | + have hpow : (2 : ℂ) ^ (1 - b) * (2 : ℂ) ^ (1 - a) * (2 : ℂ) ^ (1 - c) = 4 := by | |
| 131 | + rw [← Complex.cpow_add _ _ (by norm_num), ← Complex.cpow_add _ _ (by norm_num)] | |
| 132 | + have he : (1 - b) + (1 - a) + (1 - c) = (2 : ℂ) := by linear_combination -habc | |
| 133 | + rw [he] | |
| 134 | + norm_num | |
| 135 | + have hβ := beta_triangle_gamma ha hb hc habc | |
| 136 | + rw [beta_triangle_sine habc] at hβ | |
| 137 | + change betaIntegral a b + betaIntegral c b - betaIntegral a c = _ | |
| 138 | + rw [hβ, gammaQuotient_half_ratio s, gammaQuotient_half_ratio z, | |
| 139 | + gamma_half_ratio ha ha1, gamma_half_ratio hc hc1] | |
| 140 | + change Gamma a * Gamma b * Gamma c / Real.pi * | |
| 141 | + (4 * Complex.sin (Real.pi * a / 2) * Complex.sin (Real.pi * c / 2) * Complex.cos (Real.pi * b / 2)) = | |
| 142 | + (2 : ℂ) ^ (1 - b) * Gamma b * Complex.cos (Real.pi * b / 2) * | |
| 143 | + ((2 : ℂ) ^ (1 - a) / Real.sqrt Real.pi * Gamma a * Complex.sin (Real.pi * a / 2)) * | |
| 144 | + ((2 : ℂ) ^ (1 - c) / Real.sqrt Real.pi * Gamma c * Complex.sin (Real.pi * c / 2)) | |
| 145 | + rw [← hsq] | |
| 146 | + field_simp | |
| 147 | + rw [hsq] | |
| 148 | + linear_combination -(Gamma a * Gamma b * Gamma c * Complex.sin (Real.pi * a / 2) * | |
| 149 | + Complex.sin (Real.pi * c / 2) * Complex.cos (Real.pi * b / 2)) * hpow | |
| 150 | + | |
| 151 | +lemma betaIntegral_real (a b : ℝ) : | |
| 152 | + betaIntegral (a : ℂ) (b : ℂ) = | |
| 153 | + ((∫ u in Ioo (0 : ℝ) 1, Real.rpow u (a - 1) * Real.rpow (1 - u) (b - 1) : ℝ) : ℂ) := by | |
| 154 | + rw [betaIntegral, intervalIntegral.integral_of_le (by norm_num : (0 : ℝ) ≤ 1), | |
| 155 | + integral_Ioc_eq_integral_Ioo, ← integral_complex_ofReal] | |
| 156 | + apply setIntegral_congr_fun measurableSet_Ioo | |
| 157 | + intro u hu | |
| 158 | + dsimp only | |
| 159 | + rw [Complex.ofReal_mul] | |
| 160 | + change (u : ℂ) ^ ((a : ℂ) - 1) * (1 - (u : ℂ)) ^ ((b : ℂ) - 1) = | |
| 161 | + ((u ^ (a - 1) : ℝ) : ℂ) * (((1 - u) ^ (b - 1) : ℝ) : ℂ) | |
| 162 | + rw [Complex.ofReal_cpow hu.1.le, Complex.ofReal_cpow (sub_pos.mpr hu.2).le] | |
| 163 | + simp only [Complex.ofReal_sub, Complex.ofReal_one] | |
| 164 | + | |
| 165 | +lemma betaIntegral_real_nonneg (a b : ℝ) : 0 ≤ (betaIntegral (a : ℂ) (b : ℂ)).re := by | |
| 166 | + rw [betaIntegral_real, Complex.ofReal_re] | |
| 167 | + apply integral_nonneg_of_ae | |
| 168 | + filter_upwards [ae_restrict_mem measurableSet_Ioo] with u hu | |
| 169 | + exact mul_nonneg (Real.rpow_nonneg hu.1.le _) (Real.rpow_nonneg (sub_pos.mpr hu.2).le _) | |
| 170 | + | |
| 171 | +lemma norm_betaIntegral_le_real (s z : ℂ) : | |
| 172 | + ‖betaIntegral s z‖ ≤ (betaIntegral (s.re : ℂ) (z.re : ℂ)).re := by | |
| 173 | + rw [betaIntegral_real, Complex.ofReal_re] | |
| 174 | + unfold betaIntegral | |
| 175 | + rw [intervalIntegral.integral_of_le (by norm_num : (0 : ℝ) ≤ 1), integral_Ioc_eq_integral_Ioo] | |
| 176 | + calc | |
| 177 | + _ ≤ ∫ u in Ioo (0 : ℝ) 1, ‖(u : ℂ) ^ (s - 1) * (1 - (u : ℂ)) ^ (z - 1)‖ := | |
| 178 | + norm_integral_le_integral_norm _ | |
| 179 | + _ = _ := by | |
| 180 | + apply setIntegral_congr_fun measurableSet_Ioo | |
| 181 | + intro u hu | |
| 182 | + dsimp only | |
| 183 | + rw [norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos hu.1] | |
| 184 | + rw [show (1 : ℂ) - (u : ℂ) = ((1 - u : ℝ) : ℂ) by push_cast; rfl, | |
| 185 | + Complex.norm_cpow_eq_rpow_re_of_pos (sub_pos.mpr hu.2)] | |
| 186 | + simp | |
| 187 | + | |
| 188 | +lemma betaKernel_vertical_bound (s z : ℂ) (σ : ℝ) (hs : s.re = σ) (hz : z.re = σ) : | |
| 189 | + ‖betaKernel s z‖ ≤ ‖2 * betaIntegral (1 / 2 - σ) (2 * σ) + | |
| 190 | + betaIntegral (1 / 2 - σ) (1 / 2 - σ)‖ := by | |
| 191 | + have h1 := norm_betaIntegral_le_real (1 / 2 - s) (s + z) | |
| 192 | + have h2 := norm_betaIntegral_le_real (1 / 2 - z) (s + z) | |
| 193 | + have h3 := norm_betaIntegral_le_real (1 / 2 - s) (1 / 2 - z) | |
| 194 | + have hre1 : (1 / 2 - s).re = 1 / 2 - σ := by norm_num [hs] | |
| 195 | + have hre2 : (1 / 2 - z).re = 1 / 2 - σ := by norm_num [hz] | |
| 196 | + have hsum : (s + z).re = 2 * σ := by simp only [add_re, hs, hz]; ring | |
| 197 | + rw [hre1, hsum] at h1 | |
| 198 | + rw [hre2, hsum] at h2 | |
| 199 | + rw [hre1, hre2] at h3 | |
| 200 | + have hnorm : | |
| 201 | + ‖2 * betaIntegral ((1 / 2 - σ : ℝ) : ℂ) ((2 * σ : ℝ) : ℂ) + | |
| 202 | + betaIntegral ((1 / 2 - σ : ℝ) : ℂ) ((1 / 2 - σ : ℝ) : ℂ)‖ = | |
| 203 | + 2 * (betaIntegral ((1 / 2 - σ : ℝ) : ℂ) ((2 * σ : ℝ) : ℂ)).re + | |
| 204 | + (betaIntegral ((1 / 2 - σ : ℝ) : ℂ) ((1 / 2 - σ : ℝ) : ℂ)).re := by | |
| 205 | + have hn1 := betaIntegral_real_nonneg (1 / 2 - σ) (2 * σ) | |
| 206 | + have hn2 := betaIntegral_real_nonneg (1 / 2 - σ) (1 / 2 - σ) | |
| 207 | + simp only [betaIntegral_real, Complex.ofReal_re] at hn1 hn2 ⊢ | |
| 208 | + rw [← Complex.ofReal_ofNat 2, ← Complex.ofReal_mul, ← Complex.ofReal_add, Complex.norm_real, | |
| 209 | + Real.norm_eq_abs, abs_of_nonneg (by linarith)] | |
| 210 | + have heq : ((1 / 2 - σ : ℝ) : ℂ) = 1 / 2 - σ := by push_cast; rfl | |
| 211 | + have heq2 : ((2 * σ : ℝ) : ℂ) = 2 * (σ : ℂ) := by push_cast; rfl | |
| 212 | + rw [heq, heq2] at hnorm | |
| 213 | + rw [hnorm] | |
| 214 | + unfold betaKernel | |
| 215 | + calc | |
| 216 | + _ ≤ ‖betaIntegral (1 / 2 - s) (s + z) + betaIntegral (1 / 2 - z) (s + z)‖ + | |
| 217 | + ‖betaIntegral (1 / 2 - s) (1 / 2 - z)‖ := norm_sub_le _ _ | |
| 218 | + _ ≤ (‖betaIntegral (1 / 2 - s) (s + z)‖ + ‖betaIntegral (1 / 2 - z) (s + z)‖) + | |
| 219 | + ‖betaIntegral (1 / 2 - s) (1 / 2 - z)‖ := by | |
| 220 | + linarith [norm_add_le (betaIntegral (1 / 2 - s) (s + z)) | |
| 221 | + (betaIntegral (1 / 2 - z) (s + z))] | |
| 222 | + _ ≤ _ := by simp only [heq, heq2] at h1 h2 h3; linarith | |
| 223 | + | |
| 224 | +theorem lemma_4_2 (s z : ℂ) (hd : (s, z) ∈ betaDomain) : | |
| 225 | + betaKernel s z = (2 : ℂ) ^ (1 - (s + z)) * Gamma (s + z) * | |
| 226 | + Complex.cos (Real.pi * (s + z) / 2) * gammaQuotient s * gammaQuotient z ∧ | |
| 227 | + (∀ σ : ℝ, 0 < σ → σ ≤ 1 / 9 → s.re = σ → z.re = σ → | |
| 228 | + ‖betaKernel s z‖ ≤ ‖2 * betaIntegral (1 / 2 - σ) (2 * σ) + | |
| 229 | + betaIntegral (1 / 2 - σ) (1 / 2 - σ)‖) := by | |
| 230 | + exact ⟨betaKernel_gamma_identity s z hd, | |
| 231 | + fun σ hσ hσ' hs hz => betaKernel_vertical_bound s z σ hs hz⟩ | |
| 232 | + | |
| 233 | +end ConditionalGoldbach | |
+222 −0 ConditionalGoldbach/Proofs/BetaIntegrals.lean added View file
| @@ -0,0 +1,222 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Model | |
| 4 | +public import Mathlib.Analysis.LocallyConvex.AbsConvexOpen | |
| 5 | +import Mathlib.Tactic.NormNum.RealSqrt | |
| 6 | + | |
| 7 | +/-! The three exact beta integrals and their absolute convergence. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +lemma beta_substitution_image (h : ℝ) (hh : 0 < h) : | |
| 17 | + (fun u : ℝ => h * u / (1 - u)) '' Ioo 0 1 = Ioi 0 := by | |
| 18 | + ext x | |
| 19 | + constructor | |
| 20 | + · rintro ⟨u, hu, rfl⟩ | |
| 21 | + exact div_pos (mul_pos hh hu.1) (sub_pos.mpr hu.2) | |
| 22 | + · intro hx | |
| 23 | + change 0 < x at hx | |
| 24 | + refine ⟨x / (h + x), ?_, ?_⟩ | |
| 25 | + · constructor | |
| 26 | + · exact div_pos hx (by linarith) | |
| 27 | + · exact (div_lt_one (by linarith)).2 (by linarith) | |
| 28 | + · have hd : h + x ≠ 0 := ne_of_gt (by linarith) | |
| 29 | + have hx' : 1 - x / (h + x) ≠ 0 := by | |
| 30 | + apply ne_of_gt | |
| 31 | + exact sub_pos.mpr ((div_lt_one (by linarith)).2 (by linarith)) | |
| 32 | + field_simp [hh.ne']; | |
| 33 | + ring | |
| 34 | + | |
| 35 | +lemma beta_substitution_injective (h : ℝ) (hh : 0 < h) : | |
| 36 | + Set.InjOn (fun u : ℝ => h * u / (1 - u)) (Ioo 0 1) := by | |
| 37 | + intro u hu v hv heq | |
| 38 | + have hu0 : 1 - u ≠ 0 := ne_of_gt (sub_pos.mpr hu.2) | |
| 39 | + have hv0 : 1 - v ≠ 0 := ne_of_gt (sub_pos.mpr hv.2) | |
| 40 | + have he := (div_eq_div_iff hu0 hv0).mp heq | |
| 41 | + nlinarith | |
| 42 | + | |
| 43 | +lemma beta_substitution_deriv (h u : ℝ) (hu : u ∈ Ioo (0 : ℝ) 1) : | |
| 44 | + HasDerivAt (fun u : ℝ => h * u / (1 - u)) (h / (1 - u) ^ 2) u := by | |
| 45 | + convert ((hasDerivAt_id u).const_mul h).fun_div ((hasDerivAt_const u 1).sub (hasDerivAt_id u)) | |
| 46 | + (ne_of_gt (sub_pos.mpr hu.2)) using 1 <;> simp only [Pi.sub_apply, id_eq]; ring | |
| 47 | + | |
| 48 | +lemma beta_substitution_integrand (h : ℝ) (hh : 0 < h) (s z : ℂ) | |
| 49 | + (u : ℝ) (hu : u ∈ Ioo (0 : ℝ) 1) : | |
| 50 | + (h / (1 - u) ^ 2 : ℝ) • | |
| 51 | + (((h * u / (1 - u) : ℝ) : ℂ) ^ (-1 / 2 - s) * | |
| 52 | + ((h * u / (1 - u) + h : ℝ) : ℂ) ^ (-1 / 2 - z)) = | |
| 53 | + (h : ℂ) ^ (-(s + z)) * | |
| 54 | + ((u : ℂ) ^ ((1 / 2 - s) - 1) * (1 - (u : ℂ)) ^ ((s + z) - 1)) := by | |
| 55 | + have hv : 0 < 1 - u := sub_pos.mpr hu.2 | |
| 56 | + have hc : (h : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hh.ne' | |
| 57 | + have hvC : (1 - (u : ℂ)) ≠ 0 := by exact_mod_cast hv.ne' | |
| 58 | + have hsum : h * u / (1 - u) + h = h / (1 - u) := by field_simp; ring | |
| 59 | + rw [hsum] | |
| 60 | + simp only [Complex.real_smul, Complex.ofReal_div] | |
| 61 | + rw [Complex.div_cpow_ofReal_nonneg (mul_pos hh hu.1).le hv.le, | |
| 62 | + Complex.div_cpow_ofReal_nonneg hh.le hv.le, | |
| 63 | + Complex.ofReal_mul, Complex.mul_cpow_ofReal_nonneg hh.le hu.1.le] | |
| 64 | + simp only [Complex.ofReal_sub, Complex.ofReal_one, Complex.ofReal_pow] | |
| 65 | + have he1 : -1 / 2 - s = (1 / 2 - s) - 1 := by ring | |
| 66 | + rw [he1] | |
| 67 | + have hpH : (h : ℂ) * ((h : ℂ) ^ ((1 / 2 - s) - 1) * (h : ℂ) ^ (-1 / 2 - z)) = | |
| 68 | + (h : ℂ) ^ (-(s + z)) := by | |
| 69 | + calc | |
| 70 | + _ = (h : ℂ) ^ (1 : ℂ) * ((h : ℂ) ^ ((1 / 2 - s) - 1) * | |
| 71 | + (h : ℂ) ^ (-1 / 2 - z)) := by rw [Complex.cpow_one] | |
| 72 | + _ = _ := by | |
| 73 | + rw [← Complex.cpow_add _ _ hc, ← Complex.cpow_add _ _ hc] | |
| 74 | + congr 1 | |
| 75 | + ring | |
| 76 | + have hpV : (1 - (u : ℂ)) ^ (2 : ℕ) * | |
| 77 | + ((1 - (u : ℂ)) ^ ((1 / 2 - s) - 1) * (1 - (u : ℂ)) ^ (-1 / 2 - z)) = | |
| 78 | + (1 - (u : ℂ)) ^ (1 - (s + z)) := by | |
| 79 | + rw [← Complex.cpow_add _ _ hvC, ← Complex.cpow_natCast, ← Complex.cpow_add _ _ hvC] | |
| 80 | + congr 1 | |
| 81 | + ring | |
| 82 | + calc | |
| 83 | + _ = (h : ℂ) * ((h : ℂ) ^ ((1 / 2 - s) - 1) * (h : ℂ) ^ (-1 / 2 - z)) * | |
| 84 | + (u : ℂ) ^ ((1 / 2 - s) - 1) / | |
| 85 | + ((1 - (u : ℂ)) ^ (2 : ℕ) * | |
| 86 | + ((1 - (u : ℂ)) ^ ((1 / 2 - s) - 1) * (1 - (u : ℂ)) ^ (-1 / 2 - z))) := by simp only [div_eq_mul_inv, mul_inv_rev]; ring | |
| 87 | + _ = _ := by | |
| 88 | + have hvInv : ((1 - (u : ℂ)) ^ (1 - (s + z)))⁻¹ = | |
| 89 | + (1 - (u : ℂ)) ^ ((s + z) - 1) := by | |
| 90 | + rw [← Complex.cpow_neg] | |
| 91 | + congr 1 | |
| 92 | + ring | |
| 93 | + rw [hpH, hpV, div_eq_mul_inv, hvInv] | |
| 94 | + ring | |
| 95 | + | |
| 96 | +lemma beta_difference_integral (h : ℝ) (hh : 0 < h) (s z : ℂ) : | |
| 97 | + (∫ x in Ioi (0 : ℝ), (x : ℂ) ^ (-1 / 2 - s) * (x + h : ℂ) ^ (-1 / 2 - z)) = | |
| 98 | + (h : ℂ) ^ (-(s + z)) * betaIntegral (1 / 2 - s) (s + z) := by | |
| 99 | + rw [← beta_substitution_image h hh] | |
| 100 | + rw [integral_image_eq_integral_abs_deriv_smul measurableSet_Ioo | |
| 101 | + (fun u hu => (beta_substitution_deriv h u hu).hasDerivWithinAt) | |
| 102 | + (beta_substitution_injective h hh)] | |
| 103 | + calc | |
| 104 | + _ = ∫ u in Ioo (0 : ℝ) 1, (h : ℂ) ^ (-(s + z)) * | |
| 105 | + ((u : ℂ) ^ ((1 / 2 - s) - 1) * (1 - (u : ℂ)) ^ ((s + z) - 1)) := by | |
| 106 | + apply setIntegral_congr_fun measurableSet_Ioo | |
| 107 | + intro u hu | |
| 108 | + dsimp only | |
| 109 | + rw [abs_of_pos (div_pos hh (sq_pos_of_pos (sub_pos.mpr hu.2)))] | |
| 110 | + simpa only [Complex.ofReal_add] using beta_substitution_integrand h hh s z u hu | |
| 111 | + _ = _ := by | |
| 112 | + rw [integral_const_mul, betaIntegral, | |
| 113 | + intervalIntegral.integral_of_le (by norm_num : (0 : ℝ) ≤ 1), integral_Ioc_eq_integral_Ioo] | |
| 114 | + | |
| 115 | +lemma beta_sum_integral (h : ℝ) (hh : 0 < h) (s z : ℂ) : | |
| 116 | + (∫ x in Ioo (0 : ℝ) h, (x : ℂ) ^ (-1 / 2 - s) * (h - x : ℂ) ^ (-1 / 2 - z)) = | |
| 117 | + (h : ℂ) ^ (-(s + z)) * betaIntegral (1 / 2 - s) (1 / 2 - z) := by | |
| 118 | + have he1 : (1 / 2 - s : ℂ) - 1 = -1 / 2 - s := by ring | |
| 119 | + have he2 : (1 / 2 - z : ℂ) - 1 = -1 / 2 - z := by ring | |
| 120 | + have he3 : (1 / 2 - s : ℂ) + (1 / 2 - z) - 1 = -(s + z) := by ring | |
| 121 | + simpa only [intervalIntegral.integral_of_le hh.le, integral_Ioc_eq_integral_Ioo, | |
| 122 | + he1, he2, he3, Complex.ofReal_sub] using Complex.betaIntegral_scaled (1 / 2 - s) (1 / 2 - z) hh | |
| 123 | + | |
| 124 | +lemma beta_difference_integrable (h : ℝ) (hh : 0 < h) (s z : ℂ) | |
| 125 | + (hd : (s, z) ∈ betaDomain) : | |
| 126 | + IntegrableOn (fun x : ℝ => (x : ℂ) ^ (-1 / 2 - s) * | |
| 127 | + (x + h : ℂ) ^ (-1 / 2 - z)) (Ioi 0) := by | |
| 128 | + have hs : 0 < (1 / 2 - s).re := by simp only [sub_re]; norm_num; linarith [hd.1] | |
| 129 | + have hz : 0 < (s + z).re := hd.2.2 | |
| 130 | + have hi := Complex.betaIntegral_convergent hs hz | |
| 131 | + rw [← beta_substitution_image h hh, | |
| 132 | + integrableOn_image_iff_integrableOn_abs_deriv_smul measurableSet_Ioo | |
| 133 | + (fun u hu => (beta_substitution_deriv h u hu).hasDerivWithinAt) | |
| 134 | + (beta_substitution_injective h hh)] | |
| 135 | + apply IntegrableOn.congr_fun ((hi.1.mono_set Ioo_subset_Ioc_self).const_mul ((h : ℂ) ^ (-(s + z)))) | |
| 136 | + · intro u hu | |
| 137 | + dsimp only | |
| 138 | + rw [abs_of_pos (div_pos hh (sq_pos_of_pos (sub_pos.mpr hu.2)))] | |
| 139 | + simpa only [Complex.ofReal_add] using (beta_substitution_integrand h hh s z u hu).symm | |
| 140 | + · exact measurableSet_Ioo | |
| 141 | + | |
| 142 | +lemma beta_sum_integrable (h : ℝ) (hh : 0 < h) (s z : ℂ) | |
| 143 | + (hd : (s, z) ∈ betaDomain) : | |
| 144 | + IntegrableOn (fun x : ℝ => (x : ℂ) ^ (-1 / 2 - s) * | |
| 145 | + (h - x : ℂ) ^ (-1 / 2 - z)) (Ioo 0 h) := by | |
| 146 | + have hs : 0 < (1 / 2 - s).re := by simp only [sub_re]; norm_num; linarith [hd.1] | |
| 147 | + have hz : 0 < (1 / 2 - z).re := by simp only [sub_re]; norm_num; linarith [hd.2.1] | |
| 148 | + have hi := Complex.betaIntegral_convergent hs hz | |
| 149 | + have hi' := hi.comp_mul_right (c := h⁻¹) | |
| 150 | + simp only [zero_div, one_div, inv_inv, ← div_eq_mul_inv] at hi' | |
| 151 | + have he1 : (1 / 2 - s : ℂ) - 1 = -1 / 2 - s := by ring | |
| 152 | + have he2 : (1 / 2 - z : ℂ) - 1 = -1 / 2 - z := by ring | |
| 153 | + apply IntegrableOn.congr_fun ((hi'.1.mono_set Ioo_subset_Ioc_self).const_mul | |
| 154 | + ((h : ℂ) ^ ((-1 / 2 - s) + (-1 / 2 - z)))) | |
| 155 | + · intro x hx | |
| 156 | + dsimp only | |
| 157 | + have hxh : 0 ≤ x / h := (div_pos hx.1 hh).le | |
| 158 | + have hrest : 0 ≤ 1 - x / h := sub_nonneg.mpr ((div_le_one hh).2 hx.2.le) | |
| 159 | + have hc : (h : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hh.ne' | |
| 160 | + calc | |
| 161 | + _ = ((h : ℂ) ^ (-1 / 2 - s) * ((x / h : ℝ) : ℂ) ^ (-1 / 2 - s)) * | |
| 162 | + ((h : ℂ) ^ (-1 / 2 - z) * ((1 - x / h : ℝ) : ℂ) ^ (-1 / 2 - z)) := by | |
| 163 | + rw [Complex.cpow_add _ _ hc] | |
| 164 | + simp only [Complex.ofReal_sub, Complex.ofReal_one] | |
| 165 | + ring_nf | |
| 166 | + _ = (h * (x / h) : ℝ) ^ (-1 / 2 - s) * (h * (1 - x / h) : ℝ) ^ (-1 / 2 - z) := by | |
| 167 | + simp only [Complex.ofReal_mul] | |
| 168 | + rw [Complex.mul_cpow_ofReal_nonneg hh.le hxh, | |
| 169 | + Complex.mul_cpow_ofReal_nonneg hh.le hrest] | |
| 170 | + _ = _ := by | |
| 171 | + congr 2 | |
| 172 | + · field_simp | |
| 173 | + · push_cast | |
| 174 | + field_simp | |
| 175 | + · exact measurableSet_Ioo | |
| 176 | + | |
| 177 | +theorem lemma_4_1 (h : ℝ) (hh : 0 < h) (s z : ℂ) (_hd : (s, z) ∈ betaDomain) : | |
| 178 | + (∫ x in Ioi (0 : ℝ), (x : ℂ) ^ (-1 / 2 - s) * (x + h : ℂ) ^ (-1 / 2 - z)) = | |
| 179 | + (h : ℂ) ^ (-(s + z)) * betaIntegral (1 / 2 - s) (s + z) ∧ | |
| 180 | + (∫ x in Ioi (0 : ℝ), (x : ℂ) ^ (-1 / 2 - z) * (x + h : ℂ) ^ (-1 / 2 - s)) = | |
| 181 | + (h : ℂ) ^ (-(s + z)) * betaIntegral (1 / 2 - z) (s + z) ∧ | |
| 182 | + (∫ x in Ioo (0 : ℝ) h, (x : ℂ) ^ (-1 / 2 - s) * (h - x : ℂ) ^ (-1 / 2 - z)) = | |
| 183 | + (h : ℂ) ^ (-(s + z)) * betaIntegral (1 / 2 - s) (1 / 2 - z) := by | |
| 184 | + exact ⟨beta_difference_integral h hh s z, | |
| 185 | + by simpa [add_comm] using beta_difference_integral h hh z s, | |
| 186 | + beta_sum_integral h hh s z⟩ | |
| 187 | + | |
| 188 | +theorem lemma_4_1_absolute_convergence (h : ℝ) (hh : 0 < h) | |
| 189 | + (s z : ℂ) (hd : (s, z) ∈ betaDomain) : | |
| 190 | + IntegrableOn (fun x : ℝ => (x : ℂ) ^ (-1 / 2 - s) * | |
| 191 | + (x + h : ℂ) ^ (-1 / 2 - z)) (Ioi 0) ∧ | |
| 192 | + IntegrableOn (fun x : ℝ => (x : ℂ) ^ (-1 / 2 - z) * | |
| 193 | + (x + h : ℂ) ^ (-1 / 2 - s)) (Ioi 0) ∧ | |
| 194 | + IntegrableOn (fun x : ℝ => (x : ℂ) ^ (-1 / 2 - s) * | |
| 195 | + (h - x : ℂ) ^ (-1 / 2 - z)) (Ioo 0 h) := by | |
| 196 | + exact ⟨beta_difference_integrable h hh s z hd, | |
| 197 | + beta_difference_integrable h hh z s ⟨hd.2.1, hd.1, by simpa [add_comm] using hd.2.2⟩, | |
| 198 | + beta_sum_integrable h hh s z hd⟩ | |
| 199 | + | |
| 200 | +theorem lemma_4_1_signed_model (h : ℝ) (hh : 0 < h) | |
| 201 | + (s z : ℂ) (hd : (s, z) ∈ betaDomain) : | |
| 202 | + let I₁ := ∫ x in Ioi (0 : ℝ), | |
| 203 | + (x : ℂ) ^ (-1 / 2 - s) * (x + h : ℂ) ^ (-1 / 2 - z) | |
| 204 | + let I₂ := ∫ x in Ioi (0 : ℝ), | |
| 205 | + (x : ℂ) ^ (-1 / 2 - z) * (x + h : ℂ) ^ (-1 / 2 - s) | |
| 206 | + let I₃ := ∫ x in Ioo (0 : ℝ) h, | |
| 207 | + (x : ℂ) ^ (-1 / 2 - s) * (h - x : ℂ) ^ (-1 / 2 - z) | |
| 208 | + I₁ + I₂ - I₃ = (h : ℂ) ^ (-(s + z)) * betaKernel s z ∧ | |
| 209 | + ∀ N k : ℕ, Even N → 4 ≤ N → 0 < k → h = (k * N : ℕ) → | |
| 210 | + (singularSeries (k * N) : ℂ) * (I₁ + I₂ - I₃) = | |
| 211 | + singularSeries (k * N) * (h : ℂ) ^ (-(s + z)) * betaKernel s z := by | |
| 212 | + dsimp only | |
| 213 | + obtain ⟨h₁, h₂, h₃⟩ := lemma_4_1 h hh s z hd | |
| 214 | + rw [h₁, h₂, h₃] | |
| 215 | + constructor | |
| 216 | + · unfold betaKernel | |
| 217 | + ring | |
| 218 | + · intro N k hN hN4 hk hhN | |
| 219 | + unfold betaKernel | |
| 220 | + ring | |
| 221 | + | |
| 222 | +end ConditionalGoldbach | |
+159 −0 ConditionalGoldbach/Proofs/BetaMeromorphic.lean added View file
| @@ -0,0 +1,159 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.BetaIdentity | |
| 4 | +public import Mathlib.AlgebraicTopology.FundamentalGroupoid.SimplyConnected | |
| 5 | + | |
| 6 | +/-! Entire numerators and a common denominator for both beta-kernel formulas. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +private def betaDen (p : ℂ × ℂ) : ℂ := | |
| 16 | + (Gamma (1/2-p.1))⁻¹ * (Gamma (1/2-p.2))⁻¹ * (Gamma (p.1+p.2))⁻¹ | |
| 17 | + | |
| 18 | +private def betaNum (p : ℂ × ℂ) : ℂ := | |
| 19 | + (Gamma (1/2-p.2))⁻¹ * (Gamma ((1/2-p.1)+(p.1+p.2)))⁻¹ + | |
| 20 | + (Gamma (1/2-p.1))⁻¹ * (Gamma ((1/2-p.2)+(p.1+p.2)))⁻¹ - | |
| 21 | + (Gamma (p.1+p.2))⁻¹ * (Gamma ((1/2-p.1)+(1/2-p.2)))⁻¹ | |
| 22 | + | |
| 23 | +private def gammaDen (p : ℂ × ℂ) : ℂ := | |
| 24 | + (Gamma (p.1+p.2))⁻¹ * (Gamma ((3/2-p.1)/2))⁻¹ * (Gamma ((3/2-p.2)/2))⁻¹ | |
| 25 | + | |
| 26 | +private def gammaNum (p : ℂ × ℂ) : ℂ := | |
| 27 | + (2 : ℂ)^(1-(p.1+p.2)) * Complex.cos (Real.pi*(p.1+p.2)/2) * | |
| 28 | + (Gamma ((3/2+p.1)/2))⁻¹ * (Gamma ((3/2+p.2)/2))⁻¹ | |
| 29 | + | |
| 30 | +private lemma betaDen_diff : Differentiable ℂ betaDen := by | |
| 31 | + unfold betaDen | |
| 32 | + apply Differentiable.mul | |
| 33 | + · apply Differentiable.mul | |
| 34 | + · exact differentiable_one_div_Gamma.comp (by fun_prop) | |
| 35 | + · exact differentiable_one_div_Gamma.comp (by fun_prop) | |
| 36 | + · exact differentiable_one_div_Gamma.comp (by fun_prop) | |
| 37 | + | |
| 38 | +private lemma betaNum_diff : Differentiable ℂ betaNum := by | |
| 39 | + unfold betaNum | |
| 40 | + apply Differentiable.sub | |
| 41 | + · apply Differentiable.add <;> apply Differentiable.mul <;> | |
| 42 | + exact differentiable_one_div_Gamma.comp (by fun_prop) | |
| 43 | + · apply Differentiable.mul <;> exact differentiable_one_div_Gamma.comp (by fun_prop) | |
| 44 | + | |
| 45 | +private lemma gammaDen_diff : Differentiable ℂ gammaDen := by | |
| 46 | + unfold gammaDen | |
| 47 | + apply Differentiable.mul | |
| 48 | + · apply Differentiable.mul <;> exact differentiable_one_div_Gamma.comp (by fun_prop) | |
| 49 | + · exact differentiable_one_div_Gamma.comp (by fun_prop) | |
| 50 | + | |
| 51 | +private lemma gammaNum_diff : Differentiable ℂ gammaNum := by | |
| 52 | + unfold gammaNum | |
| 53 | + apply Differentiable.mul | |
| 54 | + · apply Differentiable.mul | |
| 55 | + · apply Differentiable.mul | |
| 56 | + · exact (by fun_prop : Differentiable ℂ (fun p : ℂ × ℂ => 1-(p.1+p.2))).const_cpow (by norm_num) | |
| 57 | + · fun_prop | |
| 58 | + · exact differentiable_one_div_Gamma.comp (by fun_prop) | |
| 59 | + · exact differentiable_one_div_Gamma.comp (by fun_prop) | |
| 60 | + | |
| 61 | +private lemma betaDen_ne {p : ℂ × ℂ} (hp : p ∈ betaDomain) : betaDen p ≠ 0 := by | |
| 62 | + have ha : 0 < (1/2-p.1).re := by simp; linarith [hp.1] | |
| 63 | + have hb : 0 < (1/2-p.2).re := by simp; linarith [hp.2.1] | |
| 64 | + have hc : 0 < (p.1+p.2).re := hp.2.2 | |
| 65 | + exact mul_ne_zero (mul_ne_zero (inv_ne_zero (Gamma_ne_zero_of_re_pos ha)) | |
| 66 | + (inv_ne_zero (Gamma_ne_zero_of_re_pos hb))) (inv_ne_zero (Gamma_ne_zero_of_re_pos hc)) | |
| 67 | + | |
| 68 | +private lemma gammaDen_ne {p : ℂ × ℂ} (hp : p ∈ betaDomain) : gammaDen p ≠ 0 := by | |
| 69 | + have ha : 0 < ((3/2-p.1)/2).re := by simp; linarith [hp.1] | |
| 70 | + have hb : 0 < ((3/2-p.2)/2).re := by simp; linarith [hp.2.1] | |
| 71 | + exact mul_ne_zero (mul_ne_zero (inv_ne_zero (Gamma_ne_zero_of_re_pos hp.2.2)) | |
| 72 | + (inv_ne_zero (Gamma_ne_zero_of_re_pos ha))) (inv_ne_zero (Gamma_ne_zero_of_re_pos hb)) | |
| 73 | + | |
| 74 | +private lemma betaNum_div {p : ℂ × ℂ} (hp : betaDen p ≠ 0) : | |
| 75 | + betaGamma (1/2-p.1) (p.1+p.2) + betaGamma (1/2-p.2) (p.1+p.2) - | |
| 76 | + betaGamma (1/2-p.1) (1/2-p.2) = betaNum p / betaDen p := by | |
| 77 | + have ha : Gamma (1/2-p.1) ≠ 0 := by | |
| 78 | + simpa using (mul_ne_zero_iff.mp (mul_ne_zero_iff.mp hp).1).1 | |
| 79 | + have hb : Gamma (1/2-p.2) ≠ 0 := by | |
| 80 | + simpa using (mul_ne_zero_iff.mp (mul_ne_zero_iff.mp hp).1).2 | |
| 81 | + have hc : Gamma (p.1+p.2) ≠ 0 := by | |
| 82 | + simpa using (mul_ne_zero_iff.mp hp).2 | |
| 83 | + have halg (a b c d e f : ℂ) (ha : a ≠ 0) (hb : b ≠ 0) (hc : c ≠ 0) : | |
| 84 | + a*c*d+b*c*e-a*b*f = (b⁻¹*d+a⁻¹*e-c⁻¹*f)*(a*b*c) := by | |
| 85 | + field_simp | |
| 86 | + simp only [betaGamma, betaNum, betaDen, div_eq_mul_inv, mul_inv, inv_inv] | |
| 87 | + exact halg _ _ _ _ _ _ ha hb hc | |
| 88 | + | |
| 89 | +private lemma gammaNum_div {p : ℂ × ℂ} (_hp : gammaDen p ≠ 0) : | |
| 90 | + (2 : ℂ)^(1-(p.1+p.2)) * Gamma (p.1+p.2) * | |
| 91 | + Complex.cos (Real.pi*(p.1+p.2)/2) * gammaQuotient p.1 * gammaQuotient p.2 = | |
| 92 | + gammaNum p / gammaDen p := by | |
| 93 | + unfold gammaNum gammaDen gammaQuotient | |
| 94 | + simp only [mul_inv, inv_inv, div_eq_mul_inv] | |
| 95 | + ring | |
| 96 | + | |
| 97 | +private lemma betaGamma_identity {p : ℂ × ℂ} (hp : p ∈ betaDomain) : | |
| 98 | + betaGamma (1/2-p.1) (p.1+p.2) + betaGamma (1/2-p.2) (p.1+p.2) - | |
| 99 | + betaGamma (1/2-p.1) (1/2-p.2) = | |
| 100 | + (2 : ℂ)^(1-(p.1+p.2)) * Gamma (p.1+p.2) * | |
| 101 | + Complex.cos (Real.pi*(p.1+p.2)/2) * gammaQuotient p.1 * gammaQuotient p.2 := by | |
| 102 | + have ha : 0 < (1/2-p.1).re := by simp; linarith [hp.1] | |
| 103 | + have hb : 0 < (1/2-p.2).re := by simp; linarith [hp.2.1] | |
| 104 | + have h := betaKernel_gamma_identity p.1 p.2 hp | |
| 105 | + dsimp [betaKernel] at h | |
| 106 | + rw [betaIntegral_eq_Gamma_mul_div _ _ ha hp.2.2, | |
| 107 | + betaIntegral_eq_Gamma_mul_div _ _ hb hp.2.2, | |
| 108 | + betaIntegral_eq_Gamma_mul_div _ _ ha hb] at h | |
| 109 | + exact h | |
| 110 | + | |
| 111 | +private lemma betaNum_cross (p : ℂ × ℂ) : | |
| 112 | + betaNum p*gammaDen p = gammaNum p*betaDen p := by | |
| 113 | + let p₀ : ℂ × ℂ := (1/4,1/4) | |
| 114 | + let l : ℂ → ℂ × ℂ := fun t => p₀+t • (p-p₀) | |
| 115 | + have hl : Differentiable ℂ l := by fun_prop | |
| 116 | + have hF : AnalyticOnNhd ℂ (fun t => betaNum (l t)*gammaDen (l t)) univ := | |
| 117 | + fun z _ => ((betaNum_diff.mul gammaDen_diff).comp hl).analyticAt z | |
| 118 | + have hG : AnalyticOnNhd ℂ (fun t => gammaNum (l t)*betaDen (l t)) univ := | |
| 119 | + fun z _ => ((gammaNum_diff.mul betaDen_diff).comp hl).analyticAt z | |
| 120 | + have ho : IsOpen betaDomain := by | |
| 121 | + unfold betaDomain | |
| 122 | + exact (isOpen_lt (Complex.continuous_re.comp continuous_fst) continuous_const).inter | |
| 123 | + ((isOpen_lt (Complex.continuous_re.comp continuous_snd) continuous_const).inter | |
| 124 | + (isOpen_lt continuous_const (Complex.continuous_re.comp (continuous_fst.add continuous_snd)))) | |
| 125 | + have h₀ : l 0 ∈ betaDomain := by norm_num [l, p₀, betaDomain] | |
| 126 | + have he := hF.eq_of_eventuallyEq hG (z₀ := (0 : ℂ)) (by | |
| 127 | + filter_upwards [hl.continuous.continuousAt.eventually (ho.mem_nhds h₀)] with t ht | |
| 128 | + have h := (betaNum_div (betaDen_ne ht)).symm.trans | |
| 129 | + ((betaGamma_identity ht).trans (gammaNum_div (gammaDen_ne ht))) | |
| 130 | + exact (div_eq_div_iff (betaDen_ne ht) (gammaDen_ne ht)).mp h) | |
| 131 | + simpa [l] using congrFun he 1 | |
| 132 | + | |
| 133 | +theorem lemma_4_2_meromorphic : | |
| 134 | + ∃ A B : ℂ × ℂ → ℂ, | |
| 135 | + Differentiable ℂ A ∧ Differentiable ℂ B ∧ B ≠ 0 ∧ | |
| 136 | + ∀ p : ℂ × ℂ, B p ≠ 0 → | |
| 137 | + betaGamma (1 / 2 - p.1) (p.1 + p.2) + | |
| 138 | + betaGamma (1 / 2 - p.2) (p.1 + p.2) - | |
| 139 | + betaGamma (1 / 2 - p.1) (1 / 2 - p.2) = A p / B p ∧ | |
| 140 | + (2 : ℂ) ^ (1 - (p.1 + p.2)) * Gamma (p.1 + p.2) * | |
| 141 | + Complex.cos (Real.pi * (p.1 + p.2) / 2) * | |
| 142 | + gammaQuotient p.1 * gammaQuotient p.2 = A p / B p := by | |
| 143 | + refine ⟨fun p => betaNum p*gammaDen p, fun p => betaDen p*gammaDen p, | |
| 144 | + betaNum_diff.mul gammaDen_diff, betaDen_diff.mul gammaDen_diff, ?_, ?_⟩ | |
| 145 | + · intro he | |
| 146 | + have hp : ((1/4 : ℂ),(1/4 : ℂ)) ∈ betaDomain := by norm_num [betaDomain] | |
| 147 | + have hn := mul_ne_zero (betaDen_ne hp) (gammaDen_ne hp) | |
| 148 | + exact hn (congrFun he ((1/4 : ℂ),(1/4 : ℂ))) | |
| 149 | + · intro p hp | |
| 150 | + have hb := (mul_ne_zero_iff.mp hp).1 | |
| 151 | + have hg := (mul_ne_zero_iff.mp hp).2 | |
| 152 | + dsimp only | |
| 153 | + constructor | |
| 154 | + · rw [mul_div_mul_right _ _ hg] | |
| 155 | + exact betaNum_div hb | |
| 156 | + · rw [betaNum_cross p, mul_comm (betaDen p), mul_div_mul_right _ _ hb] | |
| 157 | + exact gammaNum_div hg | |
| 158 | + | |
| 159 | +end ConditionalGoldbach | |
+61 −0 ConditionalGoldbach/Proofs/CauchyBoundedLimit.lean added View file
| @@ -0,0 +1,61 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.CStarAlgebra.Classes | |
| 4 | +public import Mathlib.Analysis.Complex.CauchyIntegral | |
| 5 | +import Mathlib.Tactic.NormNum.RealSqrt | |
| 6 | + | |
| 7 | +/-! Derivative convergence from pointwise convergence and a common circular majorant. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped Topology | |
| 13 | +open Set Complex Metric Filter MeasureTheory | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +lemma deriv_tendsto_of_bounded_circle (F : ℕ → ℂ → ℂ) (f : ℂ → ℂ) | |
| 17 | + (c : ℂ) (r B : ℝ) (hr : 0 < r) | |
| 18 | + (hF : ∀ᶠ n in atTop, DifferentiableOn ℂ (F n) (closedBall c r)) | |
| 19 | + (hf : DifferentiableOn ℂ f (closedBall c r)) | |
| 20 | + (hb : ∀ᶠ n in atTop, ∀z ∈ sphere c r, ‖F n z‖ ≤ B) | |
| 21 | + (hlim : ∀z ∈ sphere c r, Tendsto (fun n => F n z) atTop (𝓝 (f z))) : | |
| 22 | + Tendsto (fun n => deriv (F n) c) atTop (𝓝 (deriv f c)) := by | |
| 23 | + let K : ℝ → ℂ := fun θ => deriv (circleMap c r) θ * (1/(circleMap c r θ-c)^2) | |
| 24 | + have hne : ∀θ, circleMap c r θ-c ≠ 0 := by | |
| 25 | + intro θ | |
| 26 | + rw [circleMap_sub_center] | |
| 27 | + exact norm_ne_zero_iff.mp (by simpa [norm_circleMap_zero,abs_of_pos hr] using hr.ne') | |
| 28 | + have hK : Continuous K := by | |
| 29 | + dsimp [K] | |
| 30 | + simp_rw [deriv_circleMap] | |
| 31 | + exact (by fun_prop : Continuous (fun θ => circleMap 0 r θ * I)).mul | |
| 32 | + (continuous_const.div ((continuous_circleMap _ _).sub continuous_const |>.pow 2) | |
| 33 | + (fun θ => pow_ne_zero _ (hne θ))) | |
| 34 | + have hKb : ∀θ, ‖K θ‖ = r*(1/r^2) := by | |
| 35 | + intro θ | |
| 36 | + simp [K,deriv_circleMap,norm_pow,circleMap_sub_center, | |
| 37 | + norm_circleMap_zero,abs_of_pos hr] | |
| 38 | + have hcF : ∀ᶠ n in atTop, Continuous (fun θ => K θ * F n (circleMap c r θ)) := by | |
| 39 | + filter_upwards [hF] with n hn | |
| 40 | + apply hK.mul | |
| 41 | + exact hn.continuousOn.comp_continuous (continuous_circleMap _ _) | |
| 42 | + (fun θ => sphere_subset_closedBall (circleMap_mem_sphere _ hr.le _)) | |
| 43 | + have hi := tendsto_integral_filter_of_dominated_convergence | |
| 44 | + (μ := volume.restrict (Icc 0 (2*Real.pi))) (fun _ : ℝ => r*(1/r^2)*B) | |
| 45 | + (hcF.mono fun n hn => hn.aestronglyMeasurable) | |
| 46 | + (hb.mono fun n hn => ae_of_all _ fun θ => by | |
| 47 | + rw [norm_mul,hKb] | |
| 48 | + exact mul_le_mul_of_nonneg_left (hn _ (circleMap_mem_sphere _ hr.le _)) (by positivity)) | |
| 49 | + (integrable_const _) (ae_of_all _ fun θ => | |
| 50 | + (hlim _ (circleMap_mem_sphere _ hr.le _)).const_mul (K θ)) | |
| 51 | + have hi' : Tendsto (fun n => ∮ z in C(c,r), (1/(z-c)^2) • F n z) atTop | |
| 52 | + (𝓝 (∮ z in C(c,r), (1/(z-c)^2) • f z)) := by | |
| 53 | + simpa only [circleIntegral_def_Icc,smul_eq_mul,mul_assoc,K] using hi | |
| 54 | + have he : ∀ᶠ n in atTop, (∮ z in C(c,r), (1/(z-c)^2) • F n z) = | |
| 55 | + (2*Real.pi*I) * deriv (F n) c := | |
| 56 | + hF.mono fun n hn => hn.deriv_eq_smul_circleIntegral hr | |
| 57 | + rw [hf.deriv_eq_smul_circleIntegral hr,smul_eq_mul] at hi' | |
| 58 | + have hlim' := (hi'.congr' he).const_mul ((2*Real.pi*I : ℂ)⁻¹) | |
| 59 | + simpa [← mul_assoc, two_pi_I_ne_zero] using hlim' | |
| 60 | + | |
| 61 | +end ConditionalGoldbach | |
+133 −0 ConditionalGoldbach/Proofs/CharacterAnalytic.lean added View file
| @@ -0,0 +1,133 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.Meromorphic.Basic | |
| 4 | +public import ConditionalGoldbach.Proofs.CharacterSeries | |
| 5 | +public import ConditionalGoldbach.Proofs.KernelAlgebra | |
| 6 | +import Mathlib.Analysis.Calculus.Deriv.Star | |
| 7 | + | |
| 8 | +/-! Global conjugation and meromorphy of the character kernel. -/ | |
| 9 | +public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 14 | +open MeasureTheory Filter Set Complex | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | +attribute [local instance] Classical.propDecidable conductorNeZero | |
| 17 | + | |
| 18 | +lemma star_character_ne_one {N : ℕ} (χ : Character N) (hχ : χ ≠ 1) : star χ ≠ 1 := by | |
| 19 | + intro h | |
| 20 | + apply hχ | |
| 21 | + simpa using congrArg star h | |
| 22 | + | |
| 23 | +lemma LFunction_star_eq_conj {N : ℕ} [NeZero N] (χ : Character N) (hχ : χ ≠ 1) : | |
| 24 | + (star χ).LFunction = fun s => conj (χ.LFunction (conj s)) := by | |
| 25 | + have hL : Differentiable ℂ (star χ).LFunction := | |
| 26 | + DirichletCharacter.differentiable_LFunction (star_character_ne_one χ hχ) | |
| 27 | + have hC : Differentiable ℂ (fun s => conj (χ.LFunction (conj s))) := by | |
| 28 | + intro s | |
| 29 | + simpa [Function.comp_def] using | |
| 30 | + (DirichletCharacter.differentiable_LFunction hχ (conj s)).conj_conj | |
| 31 | + apply AnalyticOnNhd.eq_of_eventuallyEq (𝕜 := ℂ) (fun z _ => hL.analyticAt z) (fun z _ => hC.analyticAt z) (z₀ := 2) | |
| 32 | + have hu : {s : ℂ | 1 < s.re} ∈ 𝓝 (2 : ℂ) := | |
| 33 | + (isOpen_lt continuous_const continuous_re).mem_nhds (by norm_num) | |
| 34 | + filter_upwards [hu] with s hs | |
| 35 | + rw [DirichletCharacter.LFunction_eq_LSeries _ hs, | |
| 36 | + DirichletCharacter.LFunction_eq_LSeries _ (by simpa using hs)] | |
| 37 | + unfold LSeries | |
| 38 | + rw [Complex.conj_tsum] | |
| 39 | + apply tsum_congr | |
| 40 | + intro n | |
| 41 | + by_cases hn : n = 0 | |
| 42 | + · simp [LSeries.term, hn] | |
| 43 | + · simp [LSeries.term, hn, MulChar.star_apply, RCLike.star_def, conj_natCast_cpow] | |
| 44 | + | |
| 45 | +lemma logDerivative_star_eq_conj {N : ℕ} [NeZero N] (χ : Character N) (hχ : χ ≠ 1) (s : ℂ) : | |
| 46 | + logDerivative (star χ) s = conj (logDerivative χ (conj s)) := by | |
| 47 | + have hf : (star χ).LFunction = conj ∘ χ.LFunction ∘ conj := LFunction_star_eq_conj χ hχ | |
| 48 | + unfold logDerivative | |
| 49 | + rw [hf, deriv_conj_conj] | |
| 50 | + simp [Function.comp_def, map_div₀, show conj (2 : ℂ) = 2 from Complex.conj_ofReal 2] | |
| 51 | + | |
| 52 | +lemma logDerivative_meromorphic {N : ℕ} [NeZero N] (χ : Character N) (hχ : χ ≠ 1) : | |
| 53 | + MeromorphicOn (logDerivative χ) Set.univ := by | |
| 54 | + intro s _ | |
| 55 | + have hL := DirichletCharacter.differentiable_LFunction hχ | |
| 56 | + have hshift : AnalyticAt ℂ (fun z : ℂ => 1 / 2 + z) s := analyticAt_const.add analyticAt_id | |
| 57 | + exact (((hL.deriv.analyticAt _).comp hshift).meromorphicAt).fun_div | |
| 58 | + (((hL.analyticAt _).comp hshift).meromorphicAt) | |
| 59 | + | |
| 60 | +lemma star_mem_oddCharacters {N : ℕ} [NeZero N] (χ : Character N) : | |
| 61 | + star χ ∈ oddCharacters N ↔ χ ∈ oddCharacters N := by | |
| 62 | + simp only [oddCharacters, Finset.mem_filter, Finset.mem_univ, true_and, MulChar.star_apply] | |
| 63 | + constructor | |
| 64 | + · intro h | |
| 65 | + have h' := congrArg star h | |
| 66 | + simpa using h' | |
| 67 | + · intro h | |
| 68 | + simp [h] | |
| 69 | + | |
| 70 | +lemma characterKernel_eq_star_sum (N : ℕ) [NeZero N] (s z : ℂ) : | |
| 71 | + characterKernel N s z = (2 / (N.totient : ℂ)) * | |
| 72 | + ∑ χ ∈ oddCharacters N, logDerivative χ s * logDerivative (star χ) z := by | |
| 73 | + unfold characterKernel | |
| 74 | + congr 1 | |
| 75 | + apply Finset.sum_congr rfl | |
| 76 | + intro χ hχ | |
| 77 | + rw [logDerivative_star_eq_conj χ (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2)] | |
| 78 | + | |
| 79 | +lemma characterKernel_symmetric (N : ℕ) [NeZero N] (s z : ℂ) : | |
| 80 | + characterKernel N s z = characterKernel N z s := by | |
| 81 | + rw [characterKernel_eq_star_sum, characterKernel_eq_star_sum] | |
| 82 | + congr 1 | |
| 83 | + apply Finset.sum_bij (fun χ _ => star χ) | |
| 84 | + · intro χ hχ | |
| 85 | + exact (star_mem_oddCharacters χ).2 hχ | |
| 86 | + · intro a ha b hb hab | |
| 87 | + simpa using congrArg star hab | |
| 88 | + · intro χ hχ | |
| 89 | + exact ⟨star χ, (star_mem_oddCharacters χ).2 hχ, by simp⟩ | |
| 90 | + · intro χ hχ | |
| 91 | + simp [mul_comm] | |
| 92 | + | |
| 93 | +lemma characterKernel_conjugation (N : ℕ) [NeZero N] (s z : ℂ) : | |
| 94 | + conj (characterKernel N s z) = characterKernel N (conj s) (conj z) := by | |
| 95 | + calc | |
| 96 | + conj (characterKernel N s z) = characterKernel N (conj z) (conj s) := by | |
| 97 | + simpa using congrArg conj (characterKernel_hermitian N s (conj z)) | |
| 98 | + _ = _ := characterKernel_symmetric N _ _ | |
| 99 | + | |
| 100 | +lemma characterKernel_meromorphic_left (N : ℕ) [NeZero N] (z : ℂ) : | |
| 101 | + MeromorphicOn (fun s => characterKernel N s z) Set.univ := by | |
| 102 | + intro s _ | |
| 103 | + unfold characterKernel | |
| 104 | + apply (MeromorphicAt.const _ _).fun_mul | |
| 105 | + apply MeromorphicAt.fun_sum | |
| 106 | + intro χ hχ | |
| 107 | + exact (logDerivative_meromorphic χ (odd_character_ne_one χ | |
| 108 | + (Finset.mem_filter.mp hχ).2) s (Set.mem_univ s)).fun_mul (MeromorphicAt.const _ _) | |
| 109 | + | |
| 110 | +lemma characterKernel_meromorphic_right (N : ℕ) [NeZero N] (s : ℂ) : | |
| 111 | + MeromorphicOn (fun z => characterKernel N s z) Set.univ := by | |
| 112 | + simpa only [characterKernel_symmetric N s] using characterKernel_meromorphic_left N s | |
| 113 | + | |
| 114 | +theorem proposition_3_2 (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) : | |
| 115 | + (∀ s z : ℂ, 1 / 2 < s.re → 1 / 2 < z.re → | |
| 116 | + Summable (fun p : ℕ × ℕ => ‖arithmeticExpansionTerm N p.1 p.2 s z‖) ∧ | |
| 117 | + characterKernel N s z = ∑' p : ℕ × ℕ, arithmeticExpansionTerm N p.1 p.2 s z) ∧ | |
| 118 | + (∀ z, MeromorphicOn (fun s => characterKernel N s z) Set.univ) ∧ | |
| 119 | + (∀ s, MeromorphicOn (fun z => characterKernel N s z) Set.univ) ∧ | |
| 120 | + (GRH N → DifferentiableOn ℂ (fun p : ℂ × ℂ => characterKernel N p.1 p.2) | |
| 121 | + {p | 0 < p.1.re ∧ 0 < p.2.re}) ∧ | |
| 122 | + (∀ s z, characterKernel N s z = characterKernel N z s ∧ | |
| 123 | + conj (characterKernel N s z) = characterKernel N (conj s) (conj z)) ∧ | |
| 124 | + PositiveKernel (fun s z => characterKernel N s (conj z)) ∧ | |
| 125 | + Module.finrank ℂ (Submodule.span ℂ (Set.range | |
| 126 | + (fun z : ℂ => fun s : ℂ => characterKernel N s (conj z)))) ≤ N.totient / 2 := by | |
| 127 | + exact ⟨fun s z hs hz => characterKernel_dirichlet_expansion N hN hN4 s z hs hz, | |
| 128 | + characterKernel_meromorphic_left N, characterKernel_meromorphic_right N, | |
| 129 | + fun hGRH => characterKernel_differentiableOn_of_GRH hGRH, | |
| 130 | + fun s z => ⟨characterKernel_symmetric N s z, characterKernel_conjugation N s z⟩, | |
| 131 | + characterKernel_positive N, characterKernel_rank_le N hN hN4⟩ | |
| 132 | + | |
| 133 | +end ConditionalGoldbach | |
+92 −0 ConditionalGoldbach/Proofs/CharacterAverage.lean added View file
| @@ -0,0 +1,92 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.SpectralPerronGamma | |
| 4 | +public import ConditionalGoldbach.Proofs.SpectralPerronTruncation | |
| 5 | +public import ConditionalGoldbach.Proofs.CharacterPoissonComparison | |
| 6 | +public import ConditionalGoldbach.Proofs.CharacterAverageAssembly | |
| 7 | + | |
| 8 | +/-! The full uniform character average in Lemma 6.4. -/ | |
| 9 | +public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open scoped BigOperators ComplexConjugate Topology | |
| 14 | +open MeasureTheory Filter Set Complex | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | + | |
| 17 | +lemma reference_line_pointwise_of_gamma_bound (CΓ : ℝ) (hCΓ : 0 < CΓ) | |
| 18 | + (hGamma : ∀ X : ℝ, 2 ≤ X → ∀ u : ℂ, 1/2 ≤ u.re → | |
| 19 | + Integrable (fun τ : ℝ => smoothedPerronKernel X (line 1 (2*Real.pi*τ)) * | |
| 20 | + ((logDeriv Gamma ((u+line 1 (2*Real.pi*τ)+1)/2)-logDeriv Gamma ((u+1)/2))/2)) ∧ | |
| 21 | + ‖∫ τ : ℝ, smoothedPerronKernel X (line 1 (2*Real.pi*τ)) * | |
| 22 | + ((logDeriv Gamma ((u+line 1 (2*Real.pi*τ)+1)/2)-logDeriv Gamma ((u+1)/2))/2)‖ ≤ CΓ) : | |
| 23 | + ∃ A : ℝ, 0 < A ∧ ∀ N : ℕ, ∀ (_ : NeZero N), Even N → | |
| 24 | + Real.exp 10 < (N : ℝ) → GRH N → ∀ χ ∈ oddCharacters N, ∀ t : ℝ, | |
| 25 | + ‖logDerivative χ (line (2 / Real.log N) t)‖ ≤ A * | |
| 26 | + (‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1/2+line (2 / Real.log N) t)‖ + | |
| 27 | + Real.log ((N : ℝ)*(|t|+2))) := by | |
| 28 | + obtain ⟨C₂,hC₂,hcompare⟩ := zeroPoisson_logDerivative_comparison | |
| 29 | + refine ⟨3*(1+(CΓ+8)+C₂),by positivity,?_⟩ | |
| 30 | + intro N _ _ hlarge hGRH χ hχ t | |
| 31 | + have hN4 := (large_parameters hlarge).1 | |
| 32 | + have hN4R : (4 : ℝ) ≤ N := by exact_mod_cast hN4 | |
| 33 | + have hn : 0 < (N : ℝ) := by linarith | |
| 34 | + have hln : 10 < Real.log N := (Real.lt_log_iff_exp_lt hn).mpr hlarge | |
| 35 | + have hσ : 0 < referenceLine N := by unfold referenceLine; positivity | |
| 36 | + have hσ1 : referenceLine N ≤ 1 := by | |
| 37 | + unfold referenceLine | |
| 38 | + exact (div_le_one (by linarith)).mpr (by linarith) | |
| 39 | + have hX2 : 2 ≤ (N : ℝ)/2 := by linarith | |
| 40 | + have hΓ := hGamma ((N : ℝ)/2) hX2 (1/2+line (referenceLine N) t) | |
| 41 | + (by simp [line]; exact hσ.le) | |
| 42 | + have htr := smoothed_truncation_bound_of_gamma_integral hGRH χ hχ | |
| 43 | + (by linarith : 1 < (N : ℝ)/2) hσ t CΓ hΓ.1 hΓ.2 | |
| 44 | + have hlogN : Real.log (N : ℝ) ≤ Real.log ((N : ℝ)*(|t|+2)) := | |
| 45 | + Real.log_le_log hn (by nlinarith [abs_nonneg t]) | |
| 46 | + have hE : 1 ≤ Real.log ((N : ℝ)*(|t|+2)) := by linarith | |
| 47 | + have htr' : ‖-logDerivative χ (line (referenceLine N) t) - | |
| 48 | + smoothedDirichletPolynomial χ ((N : ℝ)/2) (1/2+line (referenceLine N) t)‖ ≤ | |
| 49 | + perronZeroCoefficient ((N : ℝ)/2) (referenceLine N) * zeroPoisson χ (referenceLine N) t + | |
| 50 | + (CΓ+8)*Real.log ((N : ℝ)*(|t|+2)) := by | |
| 51 | + apply htr.trans | |
| 52 | + nlinarith [mul_nonneg hCΓ.le (sub_nonneg.mpr hE)] | |
| 53 | + have hh := reference_logDerivative_bound_of_smoothed_truncation (CΓ+8) C₂ | |
| 54 | + (by positivity) hC₂.le N hlarge χ t htr' | |
| 55 | + (hcompare N inferInstance hN4 hGRH χ hχ (referenceLine N) t hσ hσ1) | |
| 56 | + simpa only [referenceLine] using hh | |
| 57 | + | |
| 58 | +lemma lemma_6_4_of_gamma_bound (CΓ : ℝ) (hCΓ : 0 < CΓ) | |
| 59 | + (hGamma : ∀ X : ℝ, 2 ≤ X → ∀ u : ℂ, 1/2 ≤ u.re → | |
| 60 | + Integrable (fun τ : ℝ => smoothedPerronKernel X (line 1 (2*Real.pi*τ)) * | |
| 61 | + ((logDeriv Gamma ((u+line 1 (2*Real.pi*τ)+1)/2)-logDeriv Gamma ((u+1)/2))/2)) ∧ | |
| 62 | + ‖∫ τ : ℝ, smoothedPerronKernel X (line 1 (2*Real.pi*τ)) * | |
| 63 | + ((logDeriv Gamma ((u+line 1 (2*Real.pi*τ)+1)/2)-logDeriv Gamma ((u+1)/2))/2)‖ ≤ CΓ) : | |
| 64 | + ∃ C : ℝ, 0 < C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), | |
| 65 | + Even N → Real.exp 10 < (N : ℝ) → GRH N → ∀ σ : ℝ, 0 < σ → σ ≤ beta → | |
| 66 | + (∀ χ ∈ oddCharacters N, | |
| 67 | + Integrable (fun t : ℝ => ‖logDerivative χ (line σ t)‖ ^ 2 / (1 + t ^ 2))) ∧ | |
| 68 | + averagedLogDerivative N σ ≤ C * (Real.log N ^ 2 + σ⁻¹ ^ 2) := by | |
| 69 | + obtain ⟨A,hA,hpoint⟩ := reference_line_pointwise_of_gamma_bound CΓ hCΓ hGamma | |
| 70 | + apply lemma_6_4_of_reference_and_comparison (reference_line_energy_of_pointwise A hA hpoint) | |
| 71 | + obtain ⟨C,hC,hcompare⟩ := zeroPoisson_logDerivative_comparison | |
| 72 | + refine ⟨C,hC,?_⟩ | |
| 73 | + intro N _ _ hlarge hGRH χ hχ x hx hx1 t | |
| 74 | + exact hcompare N inferInstance (large_parameters hlarge).1 hGRH χ hχ x t hx (by linarith) | |
| 75 | + | |
| 76 | +lemma reference_line_pointwise : ∃ A : ℝ, 0 < A ∧ ∀ N : ℕ, ∀ (_ : NeZero N), Even N → | |
| 77 | + Real.exp 10 < (N : ℝ) → GRH N → ∀ χ ∈ oddCharacters N, ∀ t : ℝ, | |
| 78 | + ‖logDerivative χ (line (2 / Real.log N) t)‖ ≤ A * | |
| 79 | + (‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1/2+line (2 / Real.log N) t)‖ + | |
| 80 | + Real.log ((N : ℝ)*(|t|+2))) := | |
| 81 | + reference_line_pointwise_of_gamma_bound 16 (by norm_num) | |
| 82 | + (fun _ hX _ hu => gamma_perron_integral_bound hX (by norm_num : (0:ℝ)<1) hu) | |
| 83 | + | |
| 84 | +theorem lemma_6_4 : ∃ C : ℝ, 0 < C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), | |
| 85 | + Even N → Real.exp 10 < (N : ℝ) → GRH N → ∀ σ : ℝ, 0 < σ → σ ≤ beta → | |
| 86 | + (∀ χ ∈ oddCharacters N, | |
| 87 | + Integrable (fun t : ℝ => ‖logDerivative χ (line σ t)‖ ^ 2 / (1 + t ^ 2))) ∧ | |
| 88 | + averagedLogDerivative N σ ≤ C * (Real.log N ^ 2 + σ⁻¹ ^ 2) := | |
| 89 | + lemma_6_4_of_gamma_bound 16 (by norm_num) | |
| 90 | + (fun _ hX _ hu => gamma_perron_integral_bound hX (by norm_num : (0:ℝ)<1) hu) | |
| 91 | + | |
| 92 | +end ConditionalGoldbach | |
+204 −0 ConditionalGoldbach/Proofs/CharacterAverageAssembly.lean added View file
| @@ -0,0 +1,204 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.PoissonWeightedEnergy | |
| 4 | +public import ConditionalGoldbach.Proofs.CharacterPoissonAnchor | |
| 5 | + | |
| 6 | +/-! The final uniform mean-square estimate, with its two analytic inputs exposed. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +open scoped Topology ComplexConjugate BigOperators | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | +attribute [local instance] conductorNeZero | |
| 15 | + | |
| 16 | +lemma zeroPoisson_nonneg {N : ℕ} [NeZero N] (χ : Character N) (x t : ℝ) (hx : 0 ≤ x) : | |
| 17 | + 0 ≤ zeroPoisson χ x t := tsum_nonneg (fun p => div_nonneg hx (by positivity)) | |
| 18 | + | |
| 19 | +lemma zeroPoisson_width_comparison {N : ℕ} [NeZero N] (χ : Character N) (hχ : χ ≠ 1) | |
| 20 | + {σ r : ℝ} (hσ : 0 < σ) (hσr : σ ≤ r) (t : ℝ) : | |
| 21 | + zeroPoisson χ σ t ≤ (r/σ)*zeroPoisson χ r t := by | |
| 22 | + have hr : 0 < r := hσ.trans_le hσr | |
| 23 | + have hnon := primitiveCharacter_ne_one_of_ne_one χ hχ | |
| 24 | + have hi := primitive_zero_poisson_summable χ.primitiveCharacter hnon χ.primitiveCharacter_isPrimitive σ t hσ | |
| 25 | + have hj := primitive_zero_poisson_summable χ.primitiveCharacter hnon χ.primitiveCharacter_isPrimitive r t hr | |
| 26 | + unfold zeroPoisson | |
| 27 | + rw [← tsum_mul_left] | |
| 28 | + apply Summable.tsum_le_tsum _ hi (hj.mul_left _) | |
| 29 | + intro p | |
| 30 | + have hdσ : 0 < σ^2+(t-p.val.1.im)^2 := by positivity | |
| 31 | + have hdr : 0 < r^2+(t-p.val.1.im)^2 := by positivity | |
| 32 | + rw [← mul_div_assoc, div_mul_eq_mul_div, div_div] | |
| 33 | + apply (div_le_div_iff₀ hdσ (mul_pos hσ hdr)).mpr | |
| 34 | + have hs : σ^2 ≤ r^2 := (sq_le_sq₀ hσ.le hr.le).mpr hσr | |
| 35 | + have hh := mul_le_mul_of_nonneg_right hs (sq_nonneg (t-p.val.1.im)) | |
| 36 | + nlinarith | |
| 37 | + | |
| 38 | +lemma realPart_le_from_zeroPoisson {N : ℕ} [NeZero N] (χ : Character N) (hχ : χ ≠ 1) | |
| 39 | + {σ r C E : ℝ} (hσ : 0 < σ) (hσr : σ ≤ r) (hC : 0 ≤ C) (hE : 0 ≤ E) (t : ℝ) | |
| 40 | + (hcσ : |zeroPoisson χ σ t - (logDerivative χ (line σ t)).re| ≤ C*E) | |
| 41 | + (hcr : |zeroPoisson χ r t - (logDerivative χ (line r t)).re| ≤ C*E) : | |
| 42 | + |(logDerivative χ (line σ t)).re| ≤ (r/σ)*(‖logDerivative χ (line r t)‖+2*C*E) := by | |
| 43 | + have hQ := zeroPoisson_width_comparison χ hχ hσ hσr t | |
| 44 | + have hQnon := zeroPoisson_nonneg χ σ t hσ.le | |
| 45 | + have hK : 1 ≤ r/σ := (one_le_div hσ).mpr hσr | |
| 46 | + have hK0 : 0 ≤ r/σ := by linarith | |
| 47 | + have hQr : zeroPoisson χ r t ≤ ‖logDerivative χ (line r t)‖+C*E := by | |
| 48 | + have h := (abs_le.mp hcr).2 | |
| 49 | + have hn := Complex.re_le_norm (logDerivative χ (line r t)) | |
| 50 | + linarith | |
| 51 | + calc | |
| 52 | + _ = |zeroPoisson χ σ t - (zeroPoisson χ σ t - (logDerivative χ (line σ t)).re)| := by congr 1; ring | |
| 53 | + _ ≤ |zeroPoisson χ σ t|+|zeroPoisson χ σ t - (logDerivative χ (line σ t)).re| := abs_sub _ _ | |
| 54 | + _ ≤ zeroPoisson χ σ t+C*E := by rw [abs_of_nonneg hQnon]; exact add_le_add le_rfl hcσ | |
| 55 | + _ ≤ (r/σ)*(‖logDerivative χ (line r t)‖+C*E)+C*E := | |
| 56 | + add_le_add (hQ.trans (mul_le_mul_of_nonneg_left hQr hK0)) le_rfl | |
| 57 | + _ ≤ _ := by nlinarith [mul_le_mul_of_nonneg_right hK (mul_nonneg hC hE)] | |
| 58 | + | |
| 59 | +lemma logDerivative_energy_left_comparison (N : ℕ) [NeZero N] (hN4 : 4 ≤ N) (hGRH : GRH N) | |
| 60 | + (χ : Character N) (hχ : χ ∈ oddCharacters N) (σ r C : ℝ) | |
| 61 | + (hσ : 0 < σ) (hσr : σ ≤ r) (hC : 0 ≤ C) | |
| 62 | + (hlogi : Integrable (fun t : ℝ => Real.log ((N : ℝ)*(|t|+2)) ^ 2 / (1+t^2))) | |
| 63 | + (hcσ : ∀ t : ℝ, |zeroPoisson χ σ t - (logDerivative χ (line σ t)).re| ≤ C*Real.log ((N : ℝ)*(|t|+2))) | |
| 64 | + (hcr : ∀ t : ℝ, |zeroPoisson χ r t - (logDerivative χ (line r t)).re| ≤ C*Real.log ((N : ℝ)*(|t|+2))) : | |
| 65 | + (∫ t : ℝ, ‖logDerivative χ (line σ t)‖ ^ 2 / (1+t^2)) ≤ | |
| 66 | + 4*(r/σ)^2*(∫ t : ℝ, ‖logDerivative χ (line r t)‖ ^ 2 / (1+t^2)) + | |
| 67 | + 16*(r/σ)^2*C^2*(∫ t : ℝ, Real.log ((N : ℝ)*(|t|+2))^2/(1+t^2)) + | |
| 68 | + Real.pi*(3*(Real.log 4+4))^2 := by | |
| 69 | + have hr := hσ.trans_le hσr | |
| 70 | + have hχ1 := odd_character_ne_one χ (Finset.mem_filter.mp hχ).2 | |
| 71 | + have hbase := logDerivative_weighted_realPart_bound N hN4 hGRH χ hχ σ hσ | |
| 72 | + have hri := logDerivative_weighted_square_integrable N hN4 hGRH χ hχ r hr | |
| 73 | + have hp (t : ℝ) : (logDerivative χ (line σ t)).re^2/(1+t^2) ≤ | |
| 74 | + 2*(r/σ)^2*(‖logDerivative χ (line r t)‖^2/(1+t^2)) + | |
| 75 | + 8*(r/σ)^2*C^2*(Real.log ((N : ℝ)*(|t|+2))^2/(1+t^2)) := by | |
| 76 | + have hn : (1 : ℝ) ≤ N := by exact_mod_cast (by omega : 1 ≤ N) | |
| 77 | + have he : 0 ≤ Real.log ((N : ℝ)*(|t|+2)) := Real.log_nonneg (by nlinarith [abs_nonneg t]) | |
| 78 | + have hh := realPart_le_from_zeroPoisson χ hχ1 hσ hσr hC he t (hcσ t) (hcr t) | |
| 79 | + have hs := (sq_le_sq₀ (abs_nonneg _) ((abs_nonneg _).trans hh)).mpr hh | |
| 80 | + rw [sq_abs] at hs | |
| 81 | + have hm := mul_nonneg (sq_nonneg (r/σ)) (sq_nonneg | |
| 82 | + (‖logDerivative χ (line r t)‖-2*C*Real.log ((N : ℝ)*(|t|+2)))) | |
| 83 | + have hb : (logDerivative χ (line σ t)).re^2 ≤ | |
| 84 | + 2*(r/σ)^2*‖logDerivative χ (line r t)‖^2+ | |
| 85 | + 8*(r/σ)^2*C^2*Real.log ((N : ℝ)*(|t|+2))^2 := by nlinarith | |
| 86 | + convert div_le_div_of_nonneg_right hb (by positivity : 0 ≤ 1+t^2) using 1; ring | |
| 87 | + have hi := integral_mono hbase.1 | |
| 88 | + ((hri.const_mul (2*(r/σ)^2)).add (hlogi.const_mul (8*(r/σ)^2*C^2))) hp | |
| 89 | + simp only [Pi.add_apply] at hi | |
| 90 | + rw [integral_add (hri.const_mul _) (hlogi.const_mul _)] at hi | |
| 91 | + simp only [integral_const_mul] at hi | |
| 92 | + linarith [hbase.2] | |
| 93 | + | |
| 94 | +lemma averagedLogDerivative_left_comparison (N : ℕ) [NeZero N] (hN : Even N) | |
| 95 | + (hN4 : 4 ≤ N) (hGRH : GRH N) (σ r C : ℝ) (hσ : 0 < σ) (hσr : σ ≤ r) (hC : 0 ≤ C) | |
| 96 | + (hlogi : Integrable (fun t : ℝ => Real.log ((N : ℝ)*(|t|+2)) ^ 2 / (1+t^2))) | |
| 97 | + (hcσ : ∀ χ ∈ oddCharacters N, ∀ t : ℝ, | |
| 98 | + |zeroPoisson χ σ t - (logDerivative χ (line σ t)).re| ≤ C*Real.log ((N : ℝ)*(|t|+2))) | |
| 99 | + (hcr : ∀ χ ∈ oddCharacters N, ∀ t : ℝ, | |
| 100 | + |zeroPoisson χ r t - (logDerivative χ (line r t)).re| ≤ C*Real.log ((N : ℝ)*(|t|+2))) : | |
| 101 | + averagedLogDerivative N σ ≤ 4*(r/σ)^2*averagedLogDerivative N r + | |
| 102 | + 16*(r/σ)^2*C^2*(∫ t : ℝ, Real.log ((N : ℝ)*(|t|+2))^2/(1+t^2)) + | |
| 103 | + Real.pi*(3*(Real.log 4+4))^2 := by | |
| 104 | + unfold averagedLogDerivative | |
| 105 | + calc | |
| 106 | + _ ≤ (2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, | |
| 107 | + (4*(r/σ)^2*(∫ t : ℝ, ‖logDerivative χ (line r t)‖^2/(1+t^2)) + | |
| 108 | + 16*(r/σ)^2*C^2*(∫ t : ℝ, Real.log ((N : ℝ)*(|t|+2))^2/(1+t^2)) + | |
| 109 | + Real.pi*(3*(Real.log 4+4))^2) := | |
| 110 | + mul_le_mul_of_nonneg_left (Finset.sum_le_sum (fun χ hχ => | |
| 111 | + logDerivative_energy_left_comparison N hN4 hGRH χ hχ σ r C hσ hσr hC hlogi (hcσ χ hχ) (hcr χ hχ))) (by positivity) | |
| 112 | + _ = _ := by | |
| 113 | + simp only [Finset.sum_add_distrib, ← Finset.mul_sum, Finset.sum_const, nsmul_eq_mul] | |
| 114 | + have hm := odd_character_average_mass N hN hN4 | |
| 115 | + linear_combination (16*(r/σ)^2*C^2*(∫ t : ℝ, Real.log ((N : ℝ)*(|t|+2))^2/(1+t^2))+ | |
| 116 | + Real.pi*(3*(Real.log 4+4))^2) * hm | |
| 117 | + | |
| 118 | +lemma lemma_6_4_of_reference_and_comparison | |
| 119 | + (href : ∃ A : ℝ, 0 < A ∧ ∀ N : ℕ, ∀ (_ : NeZero N), Even N → | |
| 120 | + Real.exp 10 < (N : ℝ) → GRH N → | |
| 121 | + averagedLogDerivative N (2 / Real.log N) ≤ A * Real.log N ^ 2) | |
| 122 | + (hcompare : ∃ C : ℝ, 0 < C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), Even N → | |
| 123 | + Real.exp 10 < (N : ℝ) → GRH N → ∀ χ ∈ oddCharacters N, | |
| 124 | + ∀ x : ℝ, 0 < x → x ≤ 1/5 → ∀ t : ℝ, | |
| 125 | + |zeroPoisson χ x t - (logDerivative χ (line x t)).re| ≤ C * Real.log ((N : ℝ)*(|t|+2))) : | |
| 126 | + ∃ C : ℝ, 0 < C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), | |
| 127 | + Even N → Real.exp 10 < (N : ℝ) → GRH N → ∀ σ : ℝ, 0 < σ → σ ≤ beta → | |
| 128 | + (∀ χ ∈ oddCharacters N, | |
| 129 | + Integrable (fun t : ℝ => ‖logDerivative χ (line σ t)‖ ^ 2 / (1 + t ^ 2))) ∧ | |
| 130 | + averagedLogDerivative N σ ≤ C * (Real.log N ^ 2 + σ⁻¹ ^ 2) := by | |
| 131 | + obtain ⟨A,hA,href⟩ := href | |
| 132 | + obtain ⟨C,hC,hcompare⟩ := hcompare | |
| 133 | + obtain ⟨L,hL,hlog⟩ := conductor_logarithm_energy_bound | |
| 134 | + let B : ℝ := Real.pi*(3*(Real.log 4+4))^2 | |
| 135 | + let D : ℝ := 16*A+64*C^2*L+B | |
| 136 | + have hB : 0 ≤ B := by dsimp [B]; positivity | |
| 137 | + have hD : 0 ≤ D := by dsimp [D]; positivity | |
| 138 | + refine ⟨2*A+D,by positivity,?_⟩ | |
| 139 | + intro N _ hN hlarge hGRH σ hσ hσβ | |
| 140 | + have hN4 := (large_parameters hlarge).1 | |
| 141 | + have hn : (0 : ℝ) < N := (Real.exp_pos 10).trans hlarge | |
| 142 | + have hln : 10 < Real.log N := (Real.lt_log_iff_exp_lt hn).mpr hlarge | |
| 143 | + let r : ℝ := 2 / Real.log N | |
| 144 | + have hr : 0 < r := by dsimp [r]; positivity | |
| 145 | + have hrsmall : r ≤ 1/5 := by | |
| 146 | + dsimp [r] | |
| 147 | + apply (div_le_iff₀ (by linarith)).mpr | |
| 148 | + linarith | |
| 149 | + have hσsmall : σ ≤ 1/5 := hσβ.trans (by norm_num [beta]) | |
| 150 | + have hri := href N inferInstance hN hlarge hGRH | |
| 151 | + have hnexp : Real.exp 1 ≤ (N : ℝ) := | |
| 152 | + (Real.exp_le_exp.mpr (by norm_num : (1 : ℝ) ≤ 10)).trans hlarge.le | |
| 153 | + obtain ⟨hli,hle⟩ := hlog N hnexp | |
| 154 | + refine ⟨fun χ hχ => logDerivative_weighted_square_integrable N hN4 hGRH χ hχ σ hσ,?_⟩ | |
| 155 | + by_cases hσr : σ ≤ r | |
| 156 | + · have hleft := averagedLogDerivative_left_comparison N hN hN4 hGRH σ r C hσ hσr hC.le hli | |
| 157 | + (fun χ hχ => hcompare N inferInstance hN hlarge hGRH χ hχ σ hσ hσsmall) | |
| 158 | + (fun χ hχ => hcompare N inferInstance hN hlarge hGRH χ hχ r hr hrsmall) | |
| 159 | + have hprod : (r/σ)^2 * Real.log N ^ 2 = 4*σ⁻¹^2 := by | |
| 160 | + dsimp [r] | |
| 161 | + field_simp [(show Real.log N ≠ 0 by linarith),hσ.ne'] | |
| 162 | + ring | |
| 163 | + have hh : averagedLogDerivative N σ ≤ (16*A+64*C^2*L)*σ⁻¹^2+B := by | |
| 164 | + apply hleft.trans | |
| 165 | + have h1 := mul_le_mul_of_nonneg_left hri (show 0 ≤ 4*(r/σ)^2 by positivity) | |
| 166 | + have h2 := mul_le_mul_of_nonneg_left hle (show 0 ≤ 16*(r/σ)^2*C^2 by positivity) | |
| 167 | + calc | |
| 168 | + _ ≤ 4*(r/σ)^2*(A*Real.log N^2)+16*(r/σ)^2*C^2*(L*Real.log N^2)+B := | |
| 169 | + add_le_add (add_le_add h1 h2) le_rfl | |
| 170 | + _ = _ := by | |
| 171 | + calc | |
| 172 | + _ = (4*A+16*C^2*L)*((r/σ)^2*Real.log N^2)+B := by ring | |
| 173 | + _ = _ := by rw [hprod]; ring | |
| 174 | + have hi1 : 1 ≤ σ⁻¹ := by | |
| 175 | + rw [inv_eq_one_div] | |
| 176 | + exact (one_le_div hσ).mpr (hσβ.trans (by norm_num [beta])) | |
| 177 | + have hisq : 1 ≤ σ⁻¹^2 := by nlinarith only [hi1, sq_nonneg (σ⁻¹-1)] | |
| 178 | + have hbound : averagedLogDerivative N σ ≤ D*σ⁻¹^2 := by | |
| 179 | + apply hh.trans | |
| 180 | + have hb := mul_le_mul_of_nonneg_left hisq hB | |
| 181 | + dsimp [D] | |
| 182 | + nlinarith only [hb] | |
| 183 | + apply hbound.trans | |
| 184 | + have hnon1 : 0 ≤ (2*A+D)*Real.log N^2 := by positivity | |
| 185 | + have hnon2 : 0 ≤ 2*A*σ⁻¹^2 := by positivity | |
| 186 | + nlinarith only [hnon1, hnon2] | |
| 187 | + · have hle : 0 ≤ σ-r := sub_nonneg.mpr (le_of_lt (lt_of_not_ge hσr)) | |
| 188 | + have hshift := averagedLogDerivative_shift N hN4 hGRH r (σ-r) hr hle | |
| 189 | + rw [add_sub_cancel] at hshift | |
| 190 | + have hfactor : 1+(σ-r) ≤ 2 := by | |
| 191 | + have hb : σ ≤ 1 := hσβ.trans (by norm_num [beta]) | |
| 192 | + linarith | |
| 193 | + have hright : averagedLogDerivative N σ ≤ 2*A*Real.log N^2 := by | |
| 194 | + apply hshift.trans | |
| 195 | + calc | |
| 196 | + _ ≤ (1+(σ-r))*(A*Real.log N^2) := mul_le_mul_of_nonneg_left hri (by positivity) | |
| 197 | + _ ≤ 2*(A*Real.log N^2) := mul_le_mul_of_nonneg_right hfactor (by positivity) | |
| 198 | + _ = _ := by ring | |
| 199 | + apply hright.trans | |
| 200 | + have hnon1 : 0 ≤ D*Real.log N^2 := by positivity | |
| 201 | + have hnon2 : 0 ≤ (2*A+D)*σ⁻¹^2 := by positivity | |
| 202 | + nlinarith only [hnon1, hnon2] | |
| 203 | + | |
| 204 | +end ConditionalGoldbach | |
+72 −0 ConditionalGoldbach/Proofs/CharacterEulerBounds.lean added View file
| @@ -0,0 +1,72 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterEulerCorrection | |
| 4 | + | |
| 5 | +/-! Uniform conductor corrections on the closed right half of the critical strip. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators Topology | |
| 11 | +open Set Complex Filter | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | +attribute [local instance] conductorNeZero | |
| 14 | + | |
| 15 | +lemma sum_log_primeFactors_le_log (N : ℕ) (hN : 0 < N) : | |
| 16 | + ∑ p ∈ N.primeFactors, Real.log p ≤ Real.log N := by | |
| 17 | + have hp : ∀p ∈ N.primeFactors, (0:ℝ) < p := by | |
| 18 | + intro p hp; exact_mod_cast (Nat.prime_of_mem_primeFactors hp).pos | |
| 19 | + rw [← Real.log_prod (fun p hp' => (hp p hp').ne')] | |
| 20 | + apply Real.log_le_log (Finset.prod_pos hp) | |
| 21 | + have hh : (∏ p ∈ N.primeFactors, p) ≤ N := Nat.le_of_dvd hN (Nat.prod_primeFactors_dvd N) | |
| 22 | + have hhR := (Nat.cast_le (α := ℝ)).mpr hh | |
| 23 | + simpa only [Nat.cast_prod] using hhR | |
| 24 | + | |
| 25 | +lemma euler_correction_term_bound {d : ℕ} [NeZero d] (χ : Character d) | |
| 26 | + {p : ℕ} (hp : p.Prime) {u : ℂ} (hu : 1/2 ≤ u.re) : | |
| 27 | + ‖χ p*(Real.log p:ℂ)/((p:ℂ)^u-χ p)‖ ≤ 4*Real.log p := by | |
| 28 | + have hp2 : (2:ℝ) ≤ p := by exact_mod_cast hp.two_le | |
| 29 | + have hp0 : (0:ℝ) < p := by positivity | |
| 30 | + have hpow : (5/4:ℝ) ≤ ‖(p:ℂ)^u‖ := by | |
| 31 | + rw [← Complex.ofReal_natCast p,Complex.norm_cpow_eq_rpow_re_of_pos hp0] | |
| 32 | + have hs : 5/4 ≤ Real.sqrt 2 := by | |
| 33 | + have := Real.sq_sqrt (by norm_num : (0:ℝ) ≤ 2) | |
| 34 | + have := Real.sqrt_nonneg (2:ℝ) | |
| 35 | + nlinarith | |
| 36 | + calc | |
| 37 | + (5/4:ℝ) ≤ Real.sqrt 2 := hs | |
| 38 | + _ = (2:ℝ)^(1/2:ℝ) := Real.sqrt_eq_rpow _ | |
| 39 | + _ ≤ (p:ℝ)^(1/2:ℝ) := Real.rpow_le_rpow (by norm_num) hp2 (by norm_num) | |
| 40 | + _ ≤ (p:ℝ)^u.re := Real.rpow_le_rpow_of_exponent_le (by linarith) hu | |
| 41 | + have hden : (1/4:ℝ) ≤ ‖(p:ℂ)^u-χ p‖ := by | |
| 42 | + have hh := norm_sub_norm_le ((p:ℂ)^u) (χ p) | |
| 43 | + have hχ := χ.norm_le_one p | |
| 44 | + linarith | |
| 45 | + have hlog : 0 ≤ Real.log p := Real.log_nonneg (by linarith) | |
| 46 | + rw [norm_div,norm_mul,Complex.norm_real,Real.norm_eq_abs,abs_of_nonneg hlog] | |
| 47 | + calc | |
| 48 | + _ ≤ Real.log p / ‖(p:ℂ)^u-χ p‖ := by | |
| 49 | + gcongr | |
| 50 | + exact mul_le_of_le_one_left hlog (χ.norm_le_one p) | |
| 51 | + _ ≤ Real.log p/(1/4:ℝ) := div_le_div_of_nonneg_left hlog (by norm_num) hden | |
| 52 | + _ = _ := by ring | |
| 53 | + | |
| 54 | +lemma eulerCorrection_norm_le {N : ℕ} [NeZero N] (χ : Character N) | |
| 55 | + {u : ℂ} (hu : 1/2 ≤ u.re) : | |
| 56 | + ‖eulerCorrection χ u‖ ≤ 4*Real.log N := by | |
| 57 | + classical | |
| 58 | + unfold eulerCorrection | |
| 59 | + apply (norm_sum_le _ _).trans | |
| 60 | + calc | |
| 61 | + _ ≤ ∑ p ∈ N.primeFactors, 4*Real.log p := by | |
| 62 | + apply Finset.sum_le_sum | |
| 63 | + intro p hp | |
| 64 | + by_cases hpc : p ∣ χ.conductor | |
| 65 | + · simp only [hpc,not_true_eq_false,ite_false,norm_zero] | |
| 66 | + positivity | |
| 67 | + · simp only [hpc,not_false_eq_true,ite_true] | |
| 68 | + exact euler_correction_term_bound χ.primitiveCharacter (Nat.prime_of_mem_primeFactors hp) hu | |
| 69 | + _ = 4*(∑ p ∈ N.primeFactors, Real.log p) := by rw [Finset.mul_sum] | |
| 70 | + _ ≤ _ := mul_le_mul_of_nonneg_left (sum_log_primeFactors_le_log N (NeZero.pos N)) (by norm_num) | |
| 71 | + | |
| 72 | +end ConditionalGoldbach | |
+76 −0 ConditionalGoldbach/Proofs/CharacterEulerCorrection.lean added View file
| @@ -0,0 +1,76 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterZeroReflection | |
| 4 | + | |
| 5 | +/-! Exact finite Euler corrections between a character and its primitive conductor. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open Set Complex Metric Filter | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | +attribute [local instance] conductorNeZero | |
| 14 | + | |
| 15 | +lemma euler_factor_logDeriv {d : ℕ} [NeZero d] (χ : Character d) | |
| 16 | + (p : ℕ) (hp : p.Prime) {u : ℂ} (hu : 0 < u.re) : | |
| 17 | + logDeriv (fun z : ℂ => 1-χ p*(p : ℂ)^(-z)) u = | |
| 18 | + χ p*(Real.log p : ℂ)/((p : ℂ)^u-χ p) := by | |
| 19 | + have hp0 : (p : ℂ) ≠ 0 := by exact_mod_cast hp.ne_zero | |
| 20 | + have hpow : (p : ℂ)^u ≠ 0 := Complex.cpow_ne_zero_iff.mpr (Or.inl hp0) | |
| 21 | + have hf := eulerFactor_ne_zero χ hp hu | |
| 22 | + have hden : (p : ℂ)^u-χ p ≠ 0 := by | |
| 23 | + intro h | |
| 24 | + apply hf | |
| 25 | + rw [← sub_eq_zero.mp h,Complex.cpow_neg] | |
| 26 | + field_simp | |
| 27 | + ring | |
| 28 | + have hd := (((hasDerivAt_id u).neg.const_cpow (Or.inl hp0)).const_mul (χ p)).const_sub 1 | |
| 29 | + simp only [Pi.neg_apply,id_eq] at hd | |
| 30 | + rw [logDeriv_apply,hd.deriv,Complex.cpow_neg] | |
| 31 | + have hlog : Complex.log (p : ℂ) = (Real.log p : ℂ) := by | |
| 32 | + rw [← Complex.ofReal_natCast,Complex.ofReal_log (Nat.cast_nonneg p)] | |
| 33 | + rw [hlog] | |
| 34 | + field_simp | |
| 35 | + | |
| 36 | +lemma primitiveCharacter_odd {N : ℕ} [NeZero N] (χ : Character N) (hodd : χ (-1) = -1) : | |
| 37 | + χ.primitiveCharacter (-1) = -1 := by | |
| 38 | + have he := χ.primitiveCharacter_apply_of_isCoprime (a := -1) (IsCoprime.neg_left (isCoprime_one_left)) | |
| 39 | + simp only [Int.cast_neg,Int.cast_one] at he | |
| 40 | + exact he.trans hodd | |
| 41 | + | |
| 42 | +lemma logDeriv_eq_primitive_add_euler {N : ℕ} [NeZero N] (χ : Character N) (hχ : χ ≠ 1) | |
| 43 | + {u : ℂ} (hu : 0 < u.re) (hprim : χ.primitiveCharacter.LFunction u ≠ 0) : | |
| 44 | + logDeriv χ.LFunction u = logDeriv χ.primitiveCharacter.LFunction u + eulerCorrection χ u := by | |
| 45 | + classical | |
| 46 | + have hχp := primitiveCharacter_ne_one_of_ne_one χ hχ | |
| 47 | + let F : ℕ → ℂ → ℂ := fun p z => 1-χ.primitiveCharacter p*(p : ℂ)^(-z) | |
| 48 | + let P : ℂ → ℂ := ∏ p ∈ N.primeFactors, F p | |
| 49 | + have hF (p : ℕ) (hp : p ∈ N.primeFactors) : Differentiable ℂ (F p) := by | |
| 50 | + have hp0 : (p : ℂ) ≠ 0 := by exact_mod_cast (Nat.prime_of_mem_primeFactors hp).ne_zero | |
| 51 | + exact ((differentiable_id.neg.const_cpow (Or.inl hp0)).const_mul _).const_sub 1 | |
| 52 | + have hFn (p : ℕ) (hp : p ∈ N.primeFactors) : F p u ≠ 0 := | |
| 53 | + eulerFactor_ne_zero χ.primitiveCharacter (Nat.prime_of_mem_primeFactors hp) hu | |
| 54 | + have hP : Differentiable ℂ P := Differentiable.finsetProd (fun p hp => hF p hp) | |
| 55 | + have hPn : P u ≠ 0 := by simpa only [P,Finset.prod_apply] using Finset.prod_ne_zero_iff.mpr hFn | |
| 56 | + have he : χ.LFunction = χ.primitiveCharacter.LFunction*P := by | |
| 57 | + funext z | |
| 58 | + have hh := DirichletCharacter.LFunction_changeLevel χ.conductor_dvd_level χ.primitiveCharacter (Or.inl hχp) (s := z) | |
| 59 | + simpa only [χ.changeLevel_primitiveCharacter,P,F,Finset.prod_apply,Pi.mul_apply] using hh | |
| 60 | + rw [he,logDeriv_mul u hprim hPn (χ.primitiveCharacter.differentiable_LFunction hχp u) (hP u)] | |
| 61 | + congr 1 | |
| 62 | + change logDeriv (∏ p ∈ N.primeFactors, F p) u = _ | |
| 63 | + rw [logDeriv_prod hFn (fun p hp => hF p hp u)] | |
| 64 | + unfold eulerCorrection | |
| 65 | + apply Finset.sum_congr rfl | |
| 66 | + intro p hp | |
| 67 | + have hprime := Nat.prime_of_mem_primeFactors hp | |
| 68 | + rw [euler_factor_logDeriv χ.primitiveCharacter p hprime hu] | |
| 69 | + by_cases hpc : p ∣ χ.conductor | |
| 70 | + · have hz : χ.primitiveCharacter p = 0 := χ.primitiveCharacter.map_nonunit (by | |
| 71 | + rw [ZMod.isUnit_iff_coprime,Nat.Prime.coprime_iff_not_dvd hprime] | |
| 72 | + exact not_not_intro hpc) | |
| 73 | + simp [hpc,hz] | |
| 74 | + · simp [hpc] | |
| 75 | + | |
| 76 | +end ConditionalGoldbach | |
+71 −0 ConditionalGoldbach/Proofs/CharacterGammaFactor.lean added View file
| @@ -0,0 +1,71 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CompletedLZeros | |
| 4 | + | |
| 5 | +/-! Exact logarithmic derivatives of the completed odd-character Gamma factors. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open Set Complex Metric Filter | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma logDeriv_cpow_affine (c a b z : ℂ) (hc : c ≠ 0) : | |
| 15 | + logDeriv (fun w : ℂ => c^(a*w+b)) z = a*Complex.log c := by | |
| 16 | + have hd := (((hasDerivAt_id z).const_mul a).add_const b).const_cpow (Or.inl hc) | |
| 17 | + simp only [id_eq] at hd | |
| 18 | + rw [logDeriv_apply,hd.deriv] | |
| 19 | + have hp : c^(a*z+b) ≠ 0 := Complex.cpow_ne_zero_iff.mpr (Or.inl hc) | |
| 20 | + field_simp | |
| 21 | + | |
| 22 | +lemma completedL_odd_formula {d : ℕ} [NeZero d] (χ : Character d) | |
| 23 | + (hodd : χ (-1) = -1) {z : ℂ} (hz : 0 < z.re) : | |
| 24 | + completedL χ z = (d : ℂ)^((z+1)/2) * (Real.pi : ℂ)^(-(z+1)/2) * | |
| 25 | + Gamma ((z+1)/2) * χ.LFunction z := by | |
| 26 | + have hz0 : z ≠ 0 := by intro he; rw [he,zero_re] at hz; exact lt_irrefl _ hz | |
| 27 | + have hγ := gammaFactor_ne_zero_re_pos χ hz | |
| 28 | + have he := (eq_div_iff hγ).mp (χ.LFunction_eq_completed_div_gammaFactor z (Or.inl hz0)) | |
| 29 | + rw [completedL,← he,DirichletCharacter.Odd.gammaFactor_def hodd,Complex.Gammaℝ_def] | |
| 30 | + ring | |
| 31 | + | |
| 32 | +lemma completedL_logDeriv_odd {d : ℕ} [NeZero d] (χ : Character d) | |
| 33 | + (hodd : χ (-1) = -1) {z : ℂ} (hz : 0 < z.re) (hL : χ.LFunction z ≠ 0) : | |
| 34 | + logDeriv (completedL χ) z = logDeriv χ.LFunction z + | |
| 35 | + (Complex.log (d : ℂ)-Complex.log (Real.pi : ℂ))/2 + | |
| 36 | + (deriv Gamma ((z+1)/2)/Gamma ((z+1)/2))/2 := by | |
| 37 | + have hχ := odd_character_ne_one χ hodd | |
| 38 | + have hd : (d : ℂ) ≠ 0 := by exact_mod_cast NeZero.ne d | |
| 39 | + have hπ : (Real.pi : ℂ) ≠ 0 := by exact_mod_cast Real.pi_ne_zero | |
| 40 | + have hΓre : 0 < ((z+1)/2).re := by simp only [div_ofNat_re,add_re,one_re]; linarith | |
| 41 | + have hΓ := Gamma_ne_zero_of_re_pos hΓre | |
| 42 | + have hΓd := (Complex.hasDerivAt_Gamma_of_re_pos hΓre).differentiableAt | |
| 43 | + let P : ℂ → ℂ := fun w => (d : ℂ)^((w+1)/2) | |
| 44 | + let Q : ℂ → ℂ := fun w => (Real.pi : ℂ)^(-(w+1)/2) | |
| 45 | + let G : ℂ → ℂ := fun w => Gamma ((w+1)/2) | |
| 46 | + have hP : Differentiable ℂ P := (((differentiable_id.add_const 1).div_const 2).const_cpow (Or.inl hd)) | |
| 47 | + have hQ : Differentiable ℂ Q := ((((differentiable_id.add_const 1).neg).div_const 2).const_cpow (Or.inl hπ)) | |
| 48 | + have hGd := hΓd.hasDerivAt.comp z (((hasDerivAt_id z).add_const 1).div_const 2) | |
| 49 | + simp only [Function.comp_def,id_eq] at hGd | |
| 50 | + have hGn : G z ≠ 0 := hΓ | |
| 51 | + have hG : DifferentiableAt ℂ G z := hGd.differentiableAt | |
| 52 | + have hPn : P z ≠ 0 := Complex.cpow_ne_zero_iff.mpr (Or.inl hd) | |
| 53 | + have hQn : Q z ≠ 0 := Complex.cpow_ne_zero_iff.mpr (Or.inl hπ) | |
| 54 | + have he : completedL χ =ᶠ[𝓝 z] P*Q*G*χ.LFunction := by | |
| 55 | + filter_upwards [(isOpen_lt continuous_const Complex.continuous_re).mem_nhds hz] with w hw | |
| 56 | + exact completedL_odd_formula χ hodd hw | |
| 57 | + rw [(logDeriv_congr_nhds he).eq_of_nhds, | |
| 58 | + logDeriv_mul (f := P*Q*G) (g := χ.LFunction) z (mul_ne_zero (mul_ne_zero hPn hQn) hGn) hL ((hP z).mul (hQ z)|>.mul hG) (χ.differentiable_LFunction hχ z), | |
| 59 | + logDeriv_mul (f := P*Q) (g := G) z (mul_ne_zero hPn hQn) hGn ((hP z).mul (hQ z)) hG, | |
| 60 | + logDeriv_mul (f := P) (g := Q) z hPn hQn (hP z) (hQ z)] | |
| 61 | + have hPe : P = fun w : ℂ => (d : ℂ)^((1/2)*w+1/2) := by funext w; dsimp [P]; congr 1; ring | |
| 62 | + have hQe : Q = fun w : ℂ => (Real.pi : ℂ)^((-1/2)*w+(-1/2)) := by funext w; dsimp [Q]; congr 1; ring | |
| 63 | + rw [hPe,hQe,logDeriv_cpow_affine _ _ _ _ hd,logDeriv_cpow_affine _ _ _ _ hπ] | |
| 64 | + have hGe : logDeriv G z = (deriv Gamma ((z+1)/2)/Gamma ((z+1)/2))/2 := by | |
| 65 | + rw [logDeriv_apply,hGd.deriv] | |
| 66 | + dsimp [G] | |
| 67 | + ring | |
| 68 | + rw [hGe] | |
| 69 | + ring | |
| 70 | + | |
| 71 | +end ConditionalGoldbach | |
+90 −0 ConditionalGoldbach/Proofs/CharacterGramOperator.lean added View file
| @@ -0,0 +1,90 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyFiniteGram | |
| 4 | +public import ConditionalGoldbach.Proofs.WeightedComponentKernel | |
| 5 | + | |
| 6 | +/-! The arithmetic component is a finite positive Gram operator, with its exact boundary trace. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open MeasureTheory Filter Set Complex InnerProductSpace | |
| 12 | +open scoped Topology ComplexConjugate BigOperators | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma arithmeticOperator_positive_trace_formula (N : ℕ) [NeZero N] | |
| 16 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) : | |
| 17 | + IsPositiveTraceClass (arithmeticOperator ha N) ∧ | |
| 18 | + positiveTrace (arithmeticOperator ha N) = | |
| 19 | + (2 / N.totient : ℝ) * ∑ χ ∈ oddCharacters N, | |
| 20 | + ((∫ t : ℝ, ‖characterHardyFunction χ (line (alpha N) t)‖ ^ 2) + | |
| 21 | + ∫ t : ℝ, ‖characterHardyFunction χ (line beta t)‖ ^ 2) := by | |
| 22 | + classical | |
| 23 | + let ι := {χ : Character N // χ ∈ oddCharacters N} | |
| 24 | + have hgex (χ : ι) := characterHardyFunction_representation N hlarge hGRH ha χ.val χ.property | |
| 25 | + choose g hg hgl hgr using hgex | |
| 26 | + let c : ℝ := 2 / N.totient | |
| 27 | + have hc : 0 ≤ c := by dsimp [c]; positivity | |
| 28 | + let v : ι → HardySpace (alpha N) beta := fun χ => (Real.sqrt c : ℂ) • g χ | |
| 29 | + let f : ι → ℂ → ℂ := fun χ s => (Real.sqrt c : ℂ) * characterHardyFunction χ.val s | |
| 30 | + have hvf (χ : ι) (s : ℂ) (hs : s ∈ strip (alpha N) beta) : fourierLaplace (v χ) s = f χ s := by | |
| 31 | + dsimp only [v] | |
| 32 | + rw [fourierLaplace_smul _ _ hs, hg χ s hs] | |
| 33 | + have hvl (χ : ι) : (boundaryTraces ha (v χ)).1 =ᵐ[volume] fun t => f χ (line (alpha N) t) := by | |
| 34 | + dsimp only [v] | |
| 35 | + rw [boundaryTraces_smul] | |
| 36 | + filter_upwards [Lp.coeFn_smul (Real.sqrt c : ℂ) (boundaryTraces ha (g χ)).1, hgl χ] with t ht hg | |
| 37 | + change ((Real.sqrt c : ℂ) • (boundaryTraces ha (g χ)).1) t = _ | |
| 38 | + rw [ht, Pi.smul_apply, smul_eq_mul, hg] | |
| 39 | + have hvr (χ : ι) : (boundaryTraces ha (v χ)).2 =ᵐ[volume] fun t => f χ (line beta t) := by | |
| 40 | + dsimp only [v] | |
| 41 | + rw [boundaryTraces_smul] | |
| 42 | + filter_upwards [Lp.coeFn_smul (Real.sqrt c : ℂ) (boundaryTraces ha (g χ)).2, hgr χ] with t ht hg | |
| 43 | + change ((Real.sqrt c : ℂ) • (boundaryTraces ha (g χ)).2) t = _ | |
| 44 | + rw [ht, Pi.smul_apply, smul_eq_mul, hg] | |
| 45 | + have hc_cast : (c : ℂ) = (2 : ℂ) / N.totient := by dsimp [c]; push_cast; rfl | |
| 46 | + have hc_sq : (Real.sqrt c : ℂ) ^ 2 = (c : ℂ) := by rw [← Complex.ofReal_pow, Real.sq_sqrt hc] | |
| 47 | + have hgram (s z : ℂ) : weightedAnalyticKernel (characterKernel N) s z = ∑ χ : ι, f χ s * conj (f χ z) := by | |
| 48 | + dsimp only [f, weightedAnalyticKernel, characterHardyFunction] | |
| 49 | + rw [Finset.sum_coe_sort (oddCharacters N) (fun χ : Character N => | |
| 50 | + (Real.sqrt c : ℂ) * (logDerivative χ s / (1 + s)) * | |
| 51 | + conj ((Real.sqrt c : ℂ) * (logDerivative χ z / (1 + z))))] | |
| 52 | + simp only [characterKernel, Complex.conj_conj] | |
| 53 | + rw [Finset.mul_sum, Finset.sum_div] | |
| 54 | + apply Finset.sum_congr rfl | |
| 55 | + intro χ hχ | |
| 56 | + rw [map_mul, Complex.conj_ofReal, map_div₀, map_add, map_one] | |
| 57 | + calc | |
| 58 | + (2 / (N.totient : ℂ) * (logDerivative χ s * conj (logDerivative χ z))) / | |
| 59 | + ((1 + s) * (1 + conj z)) = | |
| 60 | + (Real.sqrt c : ℂ) ^ 2 * (logDerivative χ s / (1 + s)) * | |
| 61 | + (conj (logDerivative χ z) / (1 + conj z)) := by | |
| 62 | + rw [hc_sq, hc_cast] | |
| 63 | + simp only [div_eq_mul_inv, mul_inv_rev] | |
| 64 | + ring | |
| 65 | + _ = _ := by ring | |
| 66 | + have hrep := hardyFiniteGram_represents ha N v f (weightedAnalyticKernel (characterKernel N)) hvf hvl hvr hgram | |
| 67 | + have he : arithmeticOperator ha N = ∑ χ : ι, rankOne ℂ (v χ) (v χ) := | |
| 68 | + kernelOperator_eq_of_represents ha N hrep | |
| 69 | + have ht := rankOne_tsum_positiveTraceClass v (hasSum_fintype (fun χ : ι => ‖v χ‖ ^ 2)).summable | |
| 70 | + (Classical.choice (hardySpace_exists_nat_hilbertBasis (alpha N) beta)) | |
| 71 | + rw [tsum_fintype, tsum_fintype] at ht | |
| 72 | + refine ⟨he ▸ ht.1, ?_⟩ | |
| 73 | + rw [he, ht.2] | |
| 74 | + have hnorm (χ : ι) : ‖v χ‖ ^ 2 = c * | |
| 75 | + ((∫ t : ℝ, ‖characterHardyFunction χ.val (line (alpha N) t)‖ ^ 2) + | |
| 76 | + ∫ t : ℝ, ‖characterHardyFunction χ.val (line beta t)‖ ^ 2) := by | |
| 77 | + dsimp only [v] | |
| 78 | + rw [norm_smul, mul_pow, Complex.norm_real, Real.norm_eq_abs, | |
| 79 | + abs_of_nonneg (Real.sqrt_nonneg _), Real.sq_sqrt hc, boundaryTraces_norm_sq ha (g χ), | |
| 80 | + l2_norm_sq_integral, l2_norm_sq_integral] | |
| 81 | + congr 1 | |
| 82 | + apply congrArg₂ (· + ·) | |
| 83 | + · exact integral_congr_ae ((hgl χ).fun_comp (fun z : ℂ => ‖z‖ ^ 2)) | |
| 84 | + · exact integral_congr_ae ((hgr χ).fun_comp (fun z : ℂ => ‖z‖ ^ 2)) | |
| 85 | + simp_rw [hnorm] | |
| 86 | + rw [← Finset.mul_sum, Finset.sum_coe_sort (oddCharacters N) (fun χ : Character N => | |
| 87 | + (∫ t : ℝ, ‖characterHardyFunction χ (line (alpha N) t)‖ ^ 2) + | |
| 88 | + ∫ t : ℝ, ‖characterHardyFunction χ (line beta t)‖ ^ 2)] | |
| 89 | + | |
| 90 | +end ConditionalGoldbach | |
+113 −0 ConditionalGoldbach/Proofs/CharacterGrowth.lean added View file
| @@ -0,0 +1,113 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.LogDerivativeDisk | |
| 4 | +public import ConditionalGoldbach.Proofs.CharacterGrowthFoundation | |
| 5 | + | |
| 6 | +/-! The GRH logarithmic-derivative bound obtained from zero-free disks, independently of Hadamard products. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex Metric | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma logDerivative_uniform_bound (δ M : ℝ) (hδ : 0 < δ) (hM : δ ≤ M) : | |
| 16 | + ∃ C : ℝ, 0 < C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), 4 ≤ N → GRH N → | |
| 17 | + ∀ χ : Character N, χ ≠ 1 → ∀ σ ∈ Icc δ M, ∀ t : ℝ, | |
| 18 | + ‖logDerivative χ (line σ t)‖ ≤ C * Real.log (N*(|t|+2))^2 := by | |
| 19 | + let R : ℝ := M+5/2-δ/2 | |
| 20 | + let r : ℝ := M+5/2-δ | |
| 21 | + let A : ℝ := 4*M+13 | |
| 22 | + let K : ℝ := 8*R/(R-r)^2 | |
| 23 | + have hMpos : 0 < M := hδ.trans_le hM | |
| 24 | + have hr : 0 ≤ r := by dsimp [r]; linarith | |
| 25 | + have hrR : r < R := by dsimp [r,R]; linarith | |
| 26 | + have hR : 0 < R := hr.trans_lt hrR | |
| 27 | + have hA : 0 < A := by dsimp [A]; positivity | |
| 28 | + have hK : 0 < K := by dsimp [K]; positivity | |
| 29 | + refine ⟨K*(2*A+1), by positivity, fun N _ hN hGRH χ hχ σ hσ t => ?_⟩ | |
| 30 | + have hNr : (4 : ℝ) ≤ N := by exact_mod_cast hN | |
| 31 | + have hNpos : 0 < (N : ℝ) := by linarith | |
| 32 | + let X : ℝ := (N : ℝ)*(|t|+2) | |
| 33 | + have hX : 8 ≤ X := by | |
| 34 | + dsimp only [X] | |
| 35 | + nlinarith only [hNr, mul_nonneg hNpos.le (abs_nonneg t)] | |
| 36 | + have hXpos : 0 < X := by linarith | |
| 37 | + let c : ℂ := ((M+3 : ℝ) : ℂ)+(t : ℂ)*I | |
| 38 | + let f : ℂ → ℂ := fun u => χ.LFunction (c+u) | |
| 39 | + let z : ℂ := 1/2+line σ t-c | |
| 40 | + have hcre : c.re = M+3 := by simp [c] | |
| 41 | + have hcnorm : ‖c‖ ≤ M+3+|t| := by | |
| 42 | + apply (norm_add_le _ _).trans | |
| 43 | + simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs, norm_I, mul_one] | |
| 44 | + rw [abs_of_pos (by linarith : 0 < M+3)] | |
| 45 | + have hF : AnalyticOnNhd ℂ f (ball 0 R) := by | |
| 46 | + intro u _ | |
| 47 | + exact ((χ.differentiable_LFunction hχ).analyticAt _).comp | |
| 48 | + (analyticAt_const.add analyticAt_id) | |
| 49 | + have hright (u : ℂ) (hu : u ∈ ball (0 : ℂ) R) : 1/2 < (c+u).re := by | |
| 50 | + have hn := mem_ball_zero_iff.mp hu | |
| 51 | + have hre : -‖u‖ ≤ u.re := by | |
| 52 | + have hh := (neg_le_abs u.re).trans (Complex.abs_re_le_norm u) | |
| 53 | + linarith | |
| 54 | + rw [add_re,hcre] | |
| 55 | + dsimp [R] at hn | |
| 56 | + linarith | |
| 57 | + have hnon (u : ℂ) (hu : u ∈ ball (0 : ℂ) R) : f u ≠ 0 := | |
| 58 | + LFunction_ne_zero_of_GRH hGRH χ hχ (hright u hu) | |
| 59 | + have hflower : (1/2 : ℝ) ≤ ‖f 0‖ := by | |
| 60 | + simpa only [f,add_zero] using LFunction_right_lower_bound χ c (by rw [hcre]; linarith) | |
| 61 | + have hupper (u : ℂ) (hu : u ∈ ball (0 : ℂ) R) : ‖f u‖ ≤ A*X := by | |
| 62 | + have hp := hright u hu | |
| 63 | + have hpoly := LFunction_polynomial_bound χ hχ (c+u) (by linarith) | |
| 64 | + have hinv : ‖c+u‖/(c+u).re ≤ 2*‖c+u‖ := by | |
| 65 | + have h := div_le_div_of_nonneg_left (norm_nonneg (c+u)) (by norm_num : (0 : ℝ) < 1/2) hp.le | |
| 66 | + convert h using 1; ring | |
| 67 | + have hnorm := norm_add_le c u | |
| 68 | + have hunorm := mem_ball_zero_iff.mp hu | |
| 69 | + have hscl : 1+2*‖c+u‖ ≤ A*(|t|+2) := by | |
| 70 | + dsimp only [A] | |
| 71 | + dsimp only [R] at hunorm | |
| 72 | + nlinarith only [hnorm, hcnorm, hunorm, hδ, hMpos, abs_nonneg t, | |
| 73 | + mul_nonneg hMpos.le (abs_nonneg t)] | |
| 74 | + calc | |
| 75 | + ‖f u‖ ≤ (N : ℝ)*(1+‖c+u‖/(c+u).re) := hpoly | |
| 76 | + _ ≤ (N : ℝ)*(A*(|t|+2)) := mul_le_mul_of_nonneg_left (by linarith) hNpos.le | |
| 77 | + _ = A*X := by dsimp [X]; ring | |
| 78 | + have hz : ‖z‖ ≤ r := by | |
| 79 | + have he : z = ((σ-M-5/2 : ℝ) : ℂ) := by dsimp [z,c,line]; push_cast; ring | |
| 80 | + rw [he, Complex.norm_real, Real.norm_eq_abs, abs_of_nonpos (by linarith [hσ.2])] | |
| 81 | + dsimp [r] | |
| 82 | + linarith [hσ.1] | |
| 83 | + have hU : (1/2 : ℝ) < A*X := by | |
| 84 | + dsimp only [A] | |
| 85 | + nlinarith only [hX, mul_nonneg hMpos.le hXpos.le] | |
| 86 | + have hb := logDerivative_disk_bound f R r (A*X) (1/2) hR hr hrR (by norm_num) hU | |
| 87 | + hF hnon hflower hupper z hz | |
| 88 | + have hdf : deriv f z = deriv χ.LFunction (1/2+line σ t) := by | |
| 89 | + have hh := ((χ.differentiable_LFunction hχ (c+z)).hasDerivAt).comp z | |
| 90 | + ((hasDerivAt_id z).const_add c) | |
| 91 | + have he : c+z = 1/2+line σ t := by dsimp [z]; ring | |
| 92 | + simpa only [f,Function.comp_def,he,mul_one] using hh.deriv | |
| 93 | + have hfz : f z = χ.LFunction (1/2+line σ t) := by dsimp [f,z]; congr 1; ring | |
| 94 | + rw [hdf,hfz] at hb | |
| 95 | + change ‖logDerivative χ (line σ t)‖ ≤ K*Real.log (A*X/(1/2)) at hb | |
| 96 | + have hlog : 1 ≤ Real.log X := by | |
| 97 | + apply (Real.le_log_iff_exp_le hXpos).mpr | |
| 98 | + exact (Real.exp_one_lt_three.le).trans (by linarith) | |
| 99 | + have hlogbound : Real.log (A*X/(1/2)) ≤ (2*A+1)*Real.log X^2 := by | |
| 100 | + rw [show A*X/(1/2) = (2*A)*X by ring, | |
| 101 | + Real.log_mul (by positivity : 2*A ≠ 0) hXpos.ne'] | |
| 102 | + have hlogA : Real.log (2*A) ≤ 2*A := by | |
| 103 | + have h := Real.log_le_sub_one_of_pos (by positivity : 0 < 2*A) | |
| 104 | + linarith | |
| 105 | + have hlogA' : Real.log (2*A) ≤ (2*A)*Real.log X := | |
| 106 | + hlogA.trans (le_mul_of_one_le_right (by positivity) hlog) | |
| 107 | + have hlogpow : Real.log X ≤ Real.log X^2 := by nlinarith only [hlog] | |
| 108 | + calc | |
| 109 | + _ ≤ (2*A+1)*Real.log X := by linarith | |
| 110 | + _ ≤ _ := mul_le_mul_of_nonneg_left hlogpow (by positivity) | |
| 111 | + exact hb.trans (by convert mul_le_mul_of_nonneg_left hlogbound hK.le using 1; dsimp [X]; ring) | |
| 112 | + | |
| 113 | +end ConditionalGoldbach | |
+71 −0 ConditionalGoldbach/Proofs/CharacterGrowthFoundation.lean added View file
| @@ -0,0 +1,71 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.LFunctionDomain | |
| 4 | +public import MathlibNt.AnalyticNumberTheory.DirichletL.DirichletLConditionalValueSeries | |
| 5 | +public import MathlibNt.AnalyticNumberTheory.DirichletL.DirichletLRightHalfPlaneBounds | |
| 6 | + | |
| 7 | +/-! Quantitative L-function bounds used by the zero-free disk estimate. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +lemma LFunction_polynomial_bound {q : ℕ} [NeZero q] (χ : Character q) (hχ : χ ≠ 1) | |
| 17 | + (s : ℂ) (hs : 0 < s.re) : ‖χ.LFunction s‖ ≤ q * (1+‖s‖/s.re) := by | |
| 18 | + have h := DirichletLConditionalValueSeries.norm_orderedValueSeries_sub_sum_range_le χ hχ s hs | |
| 19 | + (m := 1) (by norm_num) | |
| 20 | + rw [DirichletLConditionalValueSeries.orderedValueSeries_eq_LFunction_of_re_pos χ hχ s hs] at h | |
| 21 | + have hz : χ (0 : ZMod q) = 0 := by | |
| 22 | + simpa using DirichletLConditionalValueSeries.character_nat_zero_of_ne_one χ hχ | |
| 23 | + simpa [hz] using h | |
| 24 | + | |
| 25 | +lemma LFunction_sub_one_norm_bound {q : ℕ} [NeZero q] (χ : Character q) | |
| 26 | + (s : ℂ) (hs : 1 < s.re) : ‖χ.LFunction s - 1‖ ≤ 1/(s.re-1) := by | |
| 27 | + have hsumm := χ.LSeriesSummable_of_one_lt_re hs | |
| 28 | + have htail : Summable (fun n : ℕ => LSeries.term (fun n : ℕ => χ n) s (n+2)) := | |
| 29 | + (summable_nat_add_iff (f := LSeries.term (fun n : ℕ => χ n) s) 2).mpr hsumm | |
| 30 | + have hseries : χ.LFunction s - 1 = ∑' n : ℕ, LSeries.term (fun n : ℕ => χ n) s (n+2) := by | |
| 31 | + rw [DirichletCharacter.LFunction_eq_LSeries χ hs] | |
| 32 | + have he := hsumm.sum_add_tsum_nat_add 2 | |
| 33 | + have hp : (∑ k ∈ Finset.range 2, LSeries.term (fun n : ℕ => χ n) s k) = 1 := by | |
| 34 | + norm_num [Finset.sum_range_succ, LSeries.term] | |
| 35 | + rw [hp] at he | |
| 36 | + change (∑' n, LSeries.term (fun n : ℕ => χ n) s n) - 1 = _ | |
| 37 | + rw [← he] | |
| 38 | + ring | |
| 39 | + have hreal : Summable (fun n : ℕ => (n : ℝ)^(-s.re)) := | |
| 40 | + Real.summable_nat_rpow.mpr (by linarith) | |
| 41 | + have htailreal : Summable (fun n : ℕ => ((n+2 : ℕ) : ℝ)^(-s.re)) := | |
| 42 | + (summable_nat_add_iff (f := fun n : ℕ => (n : ℝ) ^ (-s.re)) 2).mpr hreal | |
| 43 | + have hsumtail : (∑' n : ℕ, ((n+2 : ℕ) : ℝ)^(-s.re)) ≤ 1/(s.re-1) := by | |
| 44 | + have he := hreal.sum_add_tsum_nat_add 2 | |
| 45 | + have hp : (∑ k ∈ Finset.range 2, (k : ℝ)^(-s.re)) = 1 := by | |
| 46 | + norm_num [Finset.sum_range_succ, Real.zero_rpow (by linarith : -s.re ≠ 0)] | |
| 47 | + rw [hp] at he | |
| 48 | + have hb := AnalyticNumberTheory.LargeSieve.tsum_nat_rpow_neg_le s.re hs | |
| 49 | + rw [← he] at hb | |
| 50 | + linarith | |
| 51 | + rw [hseries] | |
| 52 | + apply (norm_tsum_le_tsum_norm htail.norm).trans | |
| 53 | + apply (htail.norm.tsum_le_tsum _ htailreal).trans hsumtail | |
| 54 | + intro n | |
| 55 | + have hn : 0 < n+2 := by omega | |
| 56 | + have hnR : 0 < ((n+2 : ℕ) : ℝ) := by exact_mod_cast hn | |
| 57 | + simp only [LSeries.term, ne_of_gt hn, ite_false, norm_mul, norm_inv, | |
| 58 | + Complex.norm_natCast_cpow_of_pos hn, Real.rpow_neg hnR.le, div_eq_mul_inv] | |
| 59 | + exact mul_le_of_le_one_left (inv_nonneg.mpr (Real.rpow_nonneg hnR.le _)) (χ.norm_le_one _) | |
| 60 | + | |
| 61 | +lemma LFunction_right_lower_bound {q : ℕ} [NeZero q] (χ : Character q) | |
| 62 | + (s : ℂ) (hs : 3 ≤ s.re) : (1/2 : ℝ) ≤ ‖χ.LFunction s‖ := by | |
| 63 | + have hb := LFunction_sub_one_norm_bound χ s (by linarith) | |
| 64 | + have hi : 1/(s.re-1) ≤ (1/2 : ℝ) := | |
| 65 | + one_div_le_one_div_of_le (by norm_num) (by linarith) | |
| 66 | + have htriangle : 1 ≤ ‖χ.LFunction s-1‖ + ‖χ.LFunction s‖ := by | |
| 67 | + have h := norm_sub_le (χ.LFunction s) (χ.LFunction s-1) | |
| 68 | + simpa only [sub_sub_cancel, norm_one, norm_sub_rev, add_comm] using h | |
| 69 | + linarith | |
| 70 | + | |
| 71 | +end ConditionalGoldbach | |
+88 −0 ConditionalGoldbach/Proofs/CharacterHalfPlane.lean added View file
| @@ -0,0 +1,88 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HalfPlaneWeightedCauchy | |
| 4 | +public import ConditionalGoldbach.Proofs.CharacterReferenceEnergy | |
| 5 | + | |
| 6 | +/-! The half-plane weighted real-part estimate for actual logarithmic derivatives. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +open scoped Topology ComplexConjugate BigOperators | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma logDerivative_right_bound (N : ℕ) [NeZero N] (χ : Character N) | |
| 16 | + (s : ℂ) (hs : 1 ≤ s.re) : ‖logDerivative χ s‖ ≤ 3 * (Real.log 4 + 4) := by | |
| 17 | + have hs' : 1 / 2 < s.re := by linarith | |
| 18 | + have hsum := summable_logDerivative_terms χ hs' | |
| 19 | + have hshift := (summable_nat_add_iff 1).mpr hsum | |
| 20 | + have hm := mangoldt_positive_series_bound (1/2) (by norm_num) | |
| 21 | + rw [logDerivative_eq_neg_tsum χ hs', norm_neg, hsum.tsum_eq_zero_add] | |
| 22 | + simp only [mangoldt, ArithmeticFunction.map_zero, Complex.ofReal_zero, zero_mul, zero_div, zero_add] | |
| 23 | + apply (norm_tsum_le_tsum_norm hshift.norm).trans | |
| 24 | + apply (Summable.tsum_le_tsum _ hshift.norm hm.1).trans | |
| 25 | + · convert hm.2 using 1; norm_num; ring | |
| 26 | + intro j | |
| 27 | + have hn : 0 < (j+1 : ℕ) := by omega | |
| 28 | + have hn1 : (1 : ℝ) ≤ (j+1 : ℕ) := by exact_mod_cast hn | |
| 29 | + have hΛ : 0 ≤ mangoldt (j+1) := ArithmeticFunction.vonMangoldt_nonneg | |
| 30 | + rw [norm_div, norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg hΛ, | |
| 31 | + Complex.norm_natCast_cpow_of_pos hn] | |
| 32 | + have hnum : mangoldt (j+1) * ‖χ ((j+1 : ℕ) : ZMod N)‖ ≤ mangoldt (j+1) := | |
| 33 | + mul_le_of_le_one_right hΛ (χ.norm_le_one _) | |
| 34 | + have hden : ((j+1 : ℕ) : ℝ) ^ (1+(1/2 : ℝ)) ≤ ((j+1 : ℕ) : ℝ) ^ (1/2+s).re := by | |
| 35 | + apply Real.rpow_le_rpow_of_exponent_le hn1 | |
| 36 | + norm_num [Complex.add_re] | |
| 37 | + linarith | |
| 38 | + exact (div_le_div_of_nonneg_right hnum (Real.rpow_nonneg (by positivity) _)).trans | |
| 39 | + (div_le_div_of_nonneg_left hΛ (Real.rpow_pos_of_pos (by positivity) _) hden) | |
| 40 | + | |
| 41 | +lemma shifted_logDerivative_holomorphic (N : ℕ) [NeZero N] (hGRH : GRH N) | |
| 42 | + (χ : Character N) (hχ : χ ∈ oddCharacters N) {σ : ℝ} (hσ : 0 < σ) : | |
| 43 | + ∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ (fun z => logDerivative χ ((σ : ℂ) + z)) z := by | |
| 44 | + intro z hz | |
| 45 | + have ha := odd_logDerivative_analyticAt_of_GRH hGRH χ hχ (s := (σ : ℂ)+z) | |
| 46 | + (by simp only [add_re, ofReal_re]; linarith) | |
| 47 | + exact ha.differentiableAt.comp z (differentiableAt_id.const_add (σ : ℂ)) | |
| 48 | + | |
| 49 | +lemma shifted_logDerivative_growth (N : ℕ) [NeZero N] (hN4 : 4 ≤ N) (hGRH : GRH N) | |
| 50 | + (χ : Character N) (hχ : χ ∈ oddCharacters N) {σ : ℝ} (hσ : 0 < σ) : | |
| 51 | + ∀ R : ℝ, 0 ≤ R → ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, | |
| 52 | + ‖logDerivative χ ((σ : ℂ) + line x t)‖ ≤ C * (1 + |t|) ^ (1/4 : ℝ) := by | |
| 53 | + intro R hR | |
| 54 | + obtain ⟨L,hL,hb⟩ := logDerivative_uniform_bound σ (σ+R) hσ (by linarith) | |
| 55 | + refine ⟨L * (64 * (2*N) ^ (1/4 : ℝ)), by positivity, ?_⟩ | |
| 56 | + intro x hx t | |
| 57 | + have hh := hb N inferInstance hN4 hGRH χ (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2) | |
| 58 | + (σ+x) ⟨by linarith [hx.1], by linarith [hx.2]⟩ t | |
| 59 | + have he : (σ : ℂ) + line x t = line (σ+x) t := by unfold line; push_cast; ring | |
| 60 | + rw [he] | |
| 61 | + apply hh.trans | |
| 62 | + have hn1 : (1 : ℝ) ≤ N := by exact_mod_cast (by omega : 1 ≤ N) | |
| 63 | + convert mul_le_mul_of_nonneg_left (logarithm_square_le_quarter_power hn1 t) hL.le using 1; ring | |
| 64 | + | |
| 65 | +lemma logDerivative_weighted_realPart_bound (N : ℕ) [NeZero N] | |
| 66 | + (hN4 : 4 ≤ N) (hGRH : GRH N) (χ : Character N) (hχ : χ ∈ oddCharacters N) | |
| 67 | + (σ : ℝ) (hσ : 0 < σ) : | |
| 68 | + Integrable (fun t : ℝ => (logDerivative χ (line σ t)).re ^ 2 / (1+t^2)) ∧ | |
| 69 | + (∫ t : ℝ, ‖logDerivative χ (line σ t)‖ ^ 2 / (1+t^2)) ≤ | |
| 70 | + 2 * (∫ t : ℝ, (logDerivative χ (line σ t)).re ^ 2 / (1+t^2)) + | |
| 71 | + Real.pi * (3 * (Real.log 4 + 4)) ^ 2 := by | |
| 72 | + have he (t : ℝ) : (σ : ℂ)+line 0 t = line σ t := by simp [line] | |
| 73 | + have hh := halfPlane_weighted_realPart (fun z => logDerivative χ ((σ : ℂ)+z)) | |
| 74 | + (shifted_logDerivative_holomorphic N hGRH χ hχ hσ) | |
| 75 | + (shifted_logDerivative_growth N hN4 hGRH χ hχ hσ) | |
| 76 | + (by | |
| 77 | + refine ⟨1, 3*(Real.log 4+4), by positivity, ?_⟩ | |
| 78 | + intro z hz | |
| 79 | + exact logDerivative_right_bound N χ _ (by simp only [add_re, ofReal_re]; linarith)) | |
| 80 | + (by simpa only [he] using logDerivative_weighted_square_integrable N hN4 hGRH χ hχ σ hσ) | |
| 81 | + simp only [he] at hh | |
| 82 | + refine ⟨hh.1, hh.2.trans ?_⟩ | |
| 83 | + apply add_le_add le_rfl | |
| 84 | + apply mul_le_mul_of_nonneg_left _ Real.pi_pos.le | |
| 85 | + exact (sq_le_sq₀ (norm_nonneg _) (by positivity)).mpr | |
| 86 | + (logDerivative_right_bound N χ ((σ : ℂ)+1) (by simp only [add_re, ofReal_re, one_re]; linarith)) | |
| 87 | + | |
| 88 | +end ConditionalGoldbach | |
+78 −0 ConditionalGoldbach/Proofs/CharacterHardyVectors.lean added View file
| @@ -0,0 +1,78 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyArithmeticTheorems | |
| 4 | +public import ConditionalGoldbach.Proofs.SpectralRankOneSeries | |
| 5 | +public import ConditionalGoldbach.Proofs.SpectralTraceBounds | |
| 6 | + | |
| 7 | +/-! Hardy representatives of the finitely many logarithmic derivatives in the Gram kernel. -/ | |
| 8 | +@[expose] public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open MeasureTheory Filter Set Complex InnerProductSpace | |
| 13 | +open scoped Topology ComplexConjugate BigOperators | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +lemma weighted_line_square_bound {x : ℝ} (hx : 0 ≤ x) (t L : ℝ) (hL : 0 ≤ L) | |
| 17 | + (v : ℂ) (hv : ‖v‖ ≤ L * (1 + |t|) ^ (1 / 4 : ℝ)) : | |
| 18 | + ‖v / (1 + line x t)‖ ^ 2 ≤ 4 * L ^ 2 * (1 + |t|) ^ (- (3 / 2 : ℝ)) := by | |
| 19 | + have ht : 0 < 1 + |t| := by positivity | |
| 20 | + have hl := one_add_line_norm_lower hx t | |
| 21 | + have hb : ‖v / (1 + line x t)‖ ≤ 2 * L * (1 + |t|) ^ (- (3 / 4 : ℝ)) := by | |
| 22 | + rw [norm_div] | |
| 23 | + calc | |
| 24 | + _ ≤ (L * (1 + |t|) ^ (1 / 4 : ℝ)) / ((1 + |t|) / 2) := | |
| 25 | + div_le_div₀ (by positivity) hv (by positivity) hl | |
| 26 | + _ = _ := by | |
| 27 | + rw [show - (3 / 4 : ℝ) = 1 / 4 - 1 by norm_num, Real.rpow_sub ht, Real.rpow_one] | |
| 28 | + field_simp | |
| 29 | + have hh := (sq_le_sq₀ (norm_nonneg _) (by positivity)).mpr hb | |
| 30 | + have hp : ((1 + |t|) ^ (- (3 / 4 : ℝ))) ^ 2 = (1 + |t|) ^ (- (3 / 2 : ℝ)) := by | |
| 31 | + rw [← Real.rpow_natCast, ← Real.rpow_mul ht.le] | |
| 32 | + norm_num | |
| 33 | + simpa only [mul_pow, hp, show (2 : ℝ)^2 = 4 by norm_num] using hh | |
| 34 | + | |
| 35 | +/-- The holomorphic function whose rank-one Gram sum is the arithmetic component. -/ | |
| 36 | +def characterHardyFunction {N : ℕ} [NeZero N] (χ : Character N) (s : ℂ) : ℂ := | |
| 37 | + logDerivative χ s / (1 + s) | |
| 38 | + | |
| 39 | +lemma characterHardyFunction_differentiableAt {N : ℕ} [NeZero N] (hGRH : GRH N) | |
| 40 | + (χ : Character N) (hχ : χ ∈ oddCharacters N) {s : ℂ} (hs : 0 < s.re) : | |
| 41 | + DifferentiableAt ℂ (characterHardyFunction χ) s := by | |
| 42 | + apply (odd_logDerivative_analyticAt_of_GRH hGRH χ hχ hs).differentiableAt.div (by fun_prop) | |
| 43 | + intro he | |
| 44 | + have hh := congrArg Complex.re he | |
| 45 | + simp only [Complex.add_re, Complex.one_re, Complex.zero_re] at hh | |
| 46 | + linarith | |
| 47 | + | |
| 48 | +lemma characterHardyFunction_representation (N : ℕ) [NeZero N] | |
| 49 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) | |
| 50 | + (χ : Character N) (hχ : χ ∈ oddCharacters N) : | |
| 51 | + ∃ g : HardySpace (alpha N) beta, | |
| 52 | + (∀ s ∈ strip (alpha N) beta, fourierLaplace g s = characterHardyFunction χ s) ∧ | |
| 53 | + ((boundaryTraces ha g).1 =ᵐ[volume] fun t => characterHardyFunction χ (line (alpha N) t)) ∧ | |
| 54 | + ((boundaryTraces ha g).2 =ᵐ[volume] fun t => characterHardyFunction χ (line beta t)) := by | |
| 55 | + obtain ⟨L, _, hL, _, hlog, _⟩ := arithmeticKernel_growth_inputs N hlarge hGRH ha | |
| 56 | + let A : ℝ := L * (64 * (2 * N) ^ (1 / 4 : ℝ)) | |
| 57 | + have hA : 0 ≤ A := by dsimp [A]; positivity | |
| 58 | + have hN1 : (1 : ℝ) ≤ N := by exact_mod_cast (show 1 ≤ N by have := (large_parameters hlarge).1; omega) | |
| 59 | + have hd (s : ℂ) (hs : s.re ∈ Icc (alpha N) beta) := | |
| 60 | + characterHardyFunction_differentiableAt hGRH χ hχ ((large_alpha_pos hlarge).trans_le hs.1) | |
| 61 | + apply hardy_column_of_closedStrip_majorant ha | |
| 62 | + (fun s hs => (hd s ⟨hs.1.le, hs.2.le⟩).differentiableWithinAt) | |
| 63 | + (fun s hs => (hd s hs).continuousAt.continuousWithinAt) | |
| 64 | + (hardy_decay_integrable.const_mul (4 * A ^ 2)) | |
| 65 | + intro x hx t | |
| 66 | + apply weighted_line_square_bound ((large_alpha_pos hlarge).le.trans hx.1) t A hA | |
| 67 | + have hx' : (line x t).re ∈ Icc (alpha N) beta := by simpa [line] using hx | |
| 68 | + have hh := hlog χ hχ (line x t) hx' | |
| 69 | + simp only [line, Complex.add_im, Complex.ofReal_im, Complex.mul_im, | |
| 70 | + Complex.ofReal_re, Complex.I_re, Complex.I_im, mul_one, mul_zero, add_zero, zero_add] at hh | |
| 71 | + apply hh.trans | |
| 72 | + calc | |
| 73 | + L * Real.log (N * (|t| + 2)) ^ 2 ≤ | |
| 74 | + L * ((64 * (2 * N) ^ (1 / 4 : ℝ)) * (1 + |t|) ^ (1 / 4 : ℝ)) := | |
| 75 | + mul_le_mul_of_nonneg_left (logarithm_square_le_quarter_power hN1 t) hL | |
| 76 | + _ = A * (1 + |t|) ^ (1 / 4 : ℝ) := by dsimp [A]; ring | |
| 77 | + | |
| 78 | +end ConditionalGoldbach | |
+126 −0 ConditionalGoldbach/Proofs/CharacterJoint.lean added View file
| @@ -0,0 +1,126 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterAnalytic | |
| 4 | + | |
| 5 | +/-! An explicit common entire denominator for the two-variable character kernel. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | +attribute [local instance] Classical.propDecidable conductorNeZero | |
| 14 | + | |
| 15 | +lemma differentiable_product_two_variables {ι : Type*} (S : Finset ι) | |
| 16 | + (f : ι → ℂ × ℂ → ℂ) (hf : ∀ i ∈ S, Differentiable ℂ (f i)) : | |
| 17 | + Differentiable ℂ (fun p => ∏ i ∈ S, f i p) := by | |
| 18 | + classical | |
| 19 | + induction S using Finset.induction_on with | |
| 20 | + | empty => simp | |
| 21 | + | @insert i S hi ih => | |
| 22 | + simp only [Finset.prod_insert hi] | |
| 23 | + exact (hf i (Finset.mem_insert_self _ _)).mul | |
| 24 | + (ih (fun j hj => hf j (Finset.mem_insert_of_mem hj))) | |
| 25 | + | |
| 26 | +lemma finite_entire_quotient_sum {ι : Type*} (S : Finset ι) | |
| 27 | + (a b : ι → ℂ × ℂ → ℂ) (ha : ∀ i ∈ S, Differentiable ℂ (a i)) | |
| 28 | + (hb : ∀ i ∈ S, Differentiable ℂ (b i)) : | |
| 29 | + ∃ A : ℂ × ℂ → ℂ, Differentiable ℂ A ∧ | |
| 30 | + ∀ p, (∏ i ∈ S, b i p) ≠ 0 → | |
| 31 | + (∑ i ∈ S, a i p / b i p) = A p / (∏ i ∈ S, b i p) := by | |
| 32 | + classical | |
| 33 | + refine ⟨fun p => ∑ i ∈ S, a i p * ∏ j ∈ S.erase i, b j p, ?_, ?_⟩ | |
| 34 | + · apply Differentiable.fun_sum | |
| 35 | + intro i hi | |
| 36 | + exact (ha i hi).mul (differentiable_product_two_variables _ _ | |
| 37 | + (fun j hj => hb j (Finset.mem_of_mem_erase hj))) | |
| 38 | + · intro p hp | |
| 39 | + apply (eq_div_iff hp).2 | |
| 40 | + rw [Finset.sum_mul] | |
| 41 | + apply Finset.sum_congr rfl | |
| 42 | + intro i hi | |
| 43 | + have hbi : b i p ≠ 0 := Finset.prod_ne_zero_iff.mp hp i hi | |
| 44 | + rw [← Finset.mul_prod_erase S (fun j => b j p) hi] | |
| 45 | + field_simp | |
| 46 | + | |
| 47 | +lemma odd_character_product_star (N : ℕ) [NeZero N] (f : Character N → ℂ) : | |
| 48 | + (∏ χ ∈ oddCharacters N, f (star χ)) = ∏ χ ∈ oddCharacters N, f χ := by | |
| 49 | + apply Finset.prod_bij (fun χ _ => star χ) | |
| 50 | + · intro χ hχ | |
| 51 | + exact (star_mem_oddCharacters χ).2 hχ | |
| 52 | + · intro a ha b hb hab | |
| 53 | + simpa using congrArg star hab | |
| 54 | + · intro χ hχ | |
| 55 | + exact ⟨star χ, (star_mem_oddCharacters χ).2 hχ, by simp⟩ | |
| 56 | + · intro χ _ | |
| 57 | + rfl | |
| 58 | + | |
| 59 | +theorem proposition_3_2_joint_meromorphic (N : ℕ) [NeZero N] | |
| 60 | + (_hN : Even N) (_hN4 : 4 ≤ N) : | |
| 61 | + let B : ℂ × ℂ → ℂ := fun p => ∏ χ ∈ oddCharacters N, | |
| 62 | + χ.LFunction (1 / 2 + p.1) * χ.LFunction (1 / 2 + p.2) | |
| 63 | + Differentiable ℂ B ∧ B ≠ 0 ∧ | |
| 64 | + (∃ A : ℂ × ℂ → ℂ, Differentiable ℂ A ∧ | |
| 65 | + ∀ p : ℂ × ℂ, B p ≠ 0 → characterKernel N p.1 p.2 = A p / B p) ∧ | |
| 66 | + DifferentiableOn ℂ (fun p : ℂ × ℂ => characterKernel N p.1 p.2) | |
| 67 | + {p | ∀ χ ∈ oddCharacters N, | |
| 68 | + χ.LFunction (1 / 2 + p.1) ≠ 0 ∧ χ.LFunction (1 / 2 + p.2) ≠ 0} := by | |
| 69 | + classical | |
| 70 | + let L : Character N → ℂ → ℂ := fun χ s => χ.LFunction (1 / 2 + s) | |
| 71 | + let a : Character N → ℂ × ℂ → ℂ := fun χ p => | |
| 72 | + deriv χ.LFunction (1 / 2 + p.1) * deriv (star χ).LFunction (1 / 2 + p.2) | |
| 73 | + let b : Character N → ℂ × ℂ → ℂ := fun χ p => L χ p.1 * L (star χ) p.2 | |
| 74 | + let B : ℂ × ℂ → ℂ := fun p => ∏ χ ∈ oddCharacters N, L χ p.1 * L χ p.2 | |
| 75 | + have hL (χ : Character N) (hχ : χ ∈ oddCharacters N) : Differentiable ℂ χ.LFunction := | |
| 76 | + DirichletCharacter.differentiable_LFunction (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2) | |
| 77 | + have hfirst : Differentiable ℂ (fun p : ℂ × ℂ => 1 / 2 + p.1) := by fun_prop | |
| 78 | + have hsecond : Differentiable ℂ (fun p : ℂ × ℂ => 1 / 2 + p.2) := by fun_prop | |
| 79 | + have ha (χ : Character N) (hχ : χ ∈ oddCharacters N) : Differentiable ℂ (a χ) := | |
| 80 | + ((hL χ hχ).deriv.comp hfirst).mul | |
| 81 | + ((hL (star χ) ((star_mem_oddCharacters χ).2 hχ)).deriv.comp hsecond) | |
| 82 | + have hb (χ : Character N) (hχ : χ ∈ oddCharacters N) : Differentiable ℂ (b χ) := | |
| 83 | + ((hL χ hχ).comp hfirst).mul | |
| 84 | + ((hL (star χ) ((star_mem_oddCharacters χ).2 hχ)).comp hsecond) | |
| 85 | + have hB : Differentiable ℂ B := differentiable_product_two_variables _ _ | |
| 86 | + (fun χ hχ => ((hL χ hχ).comp hfirst).mul ((hL χ hχ).comp hsecond)) | |
| 87 | + have hprod (p : ℂ × ℂ) : (∏ χ ∈ oddCharacters N, b χ p) = B p := by | |
| 88 | + dsimp [b, B] | |
| 89 | + rw [Finset.prod_mul_distrib, Finset.prod_mul_distrib, odd_character_product_star N (fun χ => L χ p.2)] | |
| 90 | + have hBne : B ≠ 0 := by | |
| 91 | + intro hzero | |
| 92 | + have hnz : B (2, 2) ≠ 0 := by | |
| 93 | + apply Finset.prod_ne_zero_iff.mpr | |
| 94 | + intro χ hχ | |
| 95 | + apply mul_ne_zero <;> | |
| 96 | + exact χ.LFunction_ne_zero_of_one_le_re (Or.inl (odd_character_ne_one χ | |
| 97 | + (Finset.mem_filter.mp hχ).2)) (by norm_num) | |
| 98 | + exact hnz (congrFun hzero (2, 2)) | |
| 99 | + obtain ⟨A, hA, hquot⟩ := finite_entire_quotient_sum (oddCharacters N) a b ha hb | |
| 100 | + refine ⟨hB, hBne, ⟨fun p => (2 / (N.totient : ℂ)) * A p, hA.const_mul _, ?_⟩, ?_⟩ | |
| 101 | + · intro p hp | |
| 102 | + change characterKernel N p.1 p.2 = (2 / (N.totient : ℂ)) * A p / B p | |
| 103 | + rw [characterKernel_eq_star_sum] | |
| 104 | + have hs : (∑ χ ∈ oddCharacters N, logDerivative χ p.1 * logDerivative (star χ) p.2) = | |
| 105 | + A p / B p := by | |
| 106 | + rw [← hprod, ← hquot p (by rwa [hprod])] | |
| 107 | + apply Finset.sum_congr rfl | |
| 108 | + intro χ hχ | |
| 109 | + dsimp [logDerivative, a, b, L] | |
| 110 | + ring | |
| 111 | + rw [hs] | |
| 112 | + ring | |
| 113 | + · intro p hp | |
| 114 | + apply DifferentiableAt.differentiableWithinAt | |
| 115 | + simp_rw [characterKernel_eq_star_sum] | |
| 116 | + apply DifferentiableAt.const_mul | |
| 117 | + apply DifferentiableAt.fun_sum | |
| 118 | + intro χ hχ | |
| 119 | + have hχ1 := odd_character_ne_one χ (Finset.mem_filter.mp hχ).2 | |
| 120 | + have hχstar := odd_character_ne_one (star χ) | |
| 121 | + (Finset.mem_filter.mp ((star_mem_oddCharacters χ).2 hχ)).2 | |
| 122 | + exact ((logDerivative_analyticAt_of_ne_zero χ hχ1 (hp χ hχ).1).differentiableAt.comp p differentiableAt_fst).mul | |
| 123 | + ((logDerivative_analyticAt_of_ne_zero (star χ) hχstar | |
| 124 | + (hp (star χ) ((star_mem_oddCharacters χ).2 hχ)).2).differentiableAt.comp p differentiableAt_snd) | |
| 125 | + | |
| 126 | +end ConditionalGoldbach | |
+143 −0 ConditionalGoldbach/Proofs/CharacterPoissonAnchor.lean added View file
| @@ -0,0 +1,143 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterZeroSummability | |
| 4 | + | |
| 5 | +/-! A uniform logarithmic bound for the zero Poisson sum at a fixed positive width. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open Filter Set Complex | |
| 11 | +open scoped Topology ComplexConjugate BigOperators | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma shifted_zeroWindow_partition {d : ℕ} [NeZero d] (χ : Character d) (t : ℝ) | |
| 15 | + (p : ZeroIndex χ) : ∃! k : ℤ, p ∈ zeroWindow χ (t+k) := by | |
| 16 | + refine ⟨⌊p.val.1.im-t⌋, ?_, ?_⟩ | |
| 17 | + · constructor | |
| 18 | + · have := Int.floor_le (p.val.1.im-t); linarith | |
| 19 | + · have := Int.lt_floor_add_one (p.val.1.im-t); linarith | |
| 20 | + · intro k hk | |
| 21 | + have hh : (p.val.1.im-t) ∈ Ico (k : ℝ) (k+1) := ⟨by linarith [hk.1], by linarith [hk.2]⟩ | |
| 22 | + exact (Int.floor_eq_iff.mpr hh).symm | |
| 23 | + | |
| 24 | +lemma shifted_logarithm_bound (d : ℕ) (hd : 1 ≤ d) (t : ℝ) (k : ℤ) : | |
| 25 | + Real.log ((d : ℝ)*(|t+k|+2)) ≤ | |
| 26 | + 5 * Real.log ((d : ℝ)*(|t|+2)) * (1+|(k : ℝ)|) ^ (1/2 : ℝ) := by | |
| 27 | + have hdR : (1 : ℝ) ≤ d := by exact_mod_cast hd | |
| 28 | + let A : ℝ := (d : ℝ)*(|t|+2) | |
| 29 | + let r : ℝ := 1+|(k : ℝ)| | |
| 30 | + have hA : 2 ≤ A := by dsimp [A]; nlinarith [abs_nonneg t] | |
| 31 | + have hr : 1 ≤ r := by dsimp [r]; nlinarith [abs_nonneg (k : ℝ)] | |
| 32 | + have hA0 : 0 < A := by linarith | |
| 33 | + have hr0 : 0 < r := by linarith | |
| 34 | + have hlogA : (1/2 : ℝ) ≤ Real.log A := by | |
| 35 | + have h2 := Real.one_sub_inv_le_log_of_pos (by norm_num : (0 : ℝ)<2) | |
| 36 | + have hl := Real.log_le_log (by norm_num : (0 : ℝ)<2) hA | |
| 37 | + norm_num at h2 | |
| 38 | + linarith | |
| 39 | + have harg : (d : ℝ)*(|t+k|+2) ≤ A*r := by | |
| 40 | + have hh := abs_add_le t (k : ℝ) | |
| 41 | + dsimp [A,r] | |
| 42 | + nlinarith [mul_nonneg (abs_nonneg t) (abs_nonneg (k : ℝ)), | |
| 43 | + mul_le_mul_of_nonneg_left hh (by linarith : (0 : ℝ) ≤ d), | |
| 44 | + mul_nonneg (by linarith : (0 : ℝ) ≤ d) (mul_nonneg (abs_nonneg t) (abs_nonneg (k : ℝ)))] | |
| 45 | + have hlogr : Real.log r ≤ 2*r^(1/2 : ℝ) := by | |
| 46 | + convert Real.log_le_rpow_div hr0.le (by norm_num : (0 : ℝ)<1/2) using 1; ring | |
| 47 | + have hs : 1 ≤ r^(1/2 : ℝ) := Real.one_le_rpow hr (by norm_num) | |
| 48 | + have hh := Real.log_le_log (by positivity : 0 < (d : ℝ)*(|t+k|+2)) harg | |
| 49 | + rw [Real.log_mul hA0.ne' hr0.ne'] at hh | |
| 50 | + change Real.log ((d : ℝ)*(|t+k|+2)) ≤ 5*Real.log A*r^(1/2 : ℝ) | |
| 51 | + have hm := mul_le_mul_of_nonneg_left hs (by linarith : 0 ≤ Real.log A) | |
| 52 | + have hp := mul_le_mul_of_nonneg_right hlogA (Real.rpow_nonneg hr0.le (1/2 : ℝ)) | |
| 53 | + nlinarith | |
| 54 | + | |
| 55 | +lemma poisson_anchor_term_bound {d : ℕ} [NeZero d] (χ : Character d) (t : ℝ) | |
| 56 | + (k : ℤ) (p : zeroWindow χ (t+k)) : | |
| 57 | + (3/2 : ℝ) / ((3/2 : ℝ)^2+(t-p.val.val.1.im)^2) ≤ 14 / (1+|(k : ℝ)|)^2 := by | |
| 58 | + let γ : ℝ := p.val.val.1.im | |
| 59 | + have hk : |(k : ℝ)| ≤ |γ-t|+1 := by | |
| 60 | + apply abs_le.mpr | |
| 61 | + have hlo := p.property.1 | |
| 62 | + have hhi := p.property.2 | |
| 63 | + dsimp [γ] | |
| 64 | + constructor <;> linarith [le_abs_self (p.val.val.1.im-t),neg_abs_le (p.val.val.1.im-t)] | |
| 65 | + have hden : (1+|(k : ℝ)|)^2 ≤ 9*(1+(t-γ)^2) := by | |
| 66 | + have hs : |γ-t|^2 = (t-γ)^2 := by rw [sq_abs]; ring | |
| 67 | + nlinarith [sq_nonneg (|γ-t|-1),sq_nonneg |(k : ℝ)|,abs_nonneg (k : ℝ)] | |
| 68 | + apply (div_le_div_iff₀ (by positivity) (by positivity)).mpr | |
| 69 | + change (3/2 : ℝ)*(1+|(k : ℝ)|)^2 ≤ 14*((3/2 : ℝ)^2+(t-γ)^2) | |
| 70 | + nlinarith [sq_nonneg (t-γ)] | |
| 71 | + | |
| 72 | +lemma primitive_poisson_anchor_bound : ∃ C : ℝ, 0 < C ∧ | |
| 73 | + ∀ d : ℕ, ∀ (_ : NeZero d), ∀ χ : Character d, χ ≠ 1 → χ.IsPrimitive → ∀ t : ℝ, | |
| 74 | + (∑' p : ZeroIndex χ, (3/2 : ℝ)/((3/2 : ℝ)^2+(t-p.val.1.im)^2)) ≤ | |
| 75 | + C * Real.log ((d : ℝ)*(|t|+2)) := by | |
| 76 | + classical | |
| 77 | + obtain ⟨C,hC,hcount⟩ := primitive_local_zero_count | |
| 78 | + let w (k : ℤ) := (1+|(k : ℝ)|)^(-(3/2 : ℝ)) | |
| 79 | + have hw : Summable w := summable_int_one_add_abs_rpow (3/2) (by norm_num) | |
| 80 | + have hwn : 0 ≤ ∑' k, w k := tsum_nonneg (fun k => Real.rpow_nonneg (by positivity) _) | |
| 81 | + refine ⟨70*C*((∑' k, w k)+1), by positivity, ?_⟩ | |
| 82 | + intro d _ χ hχ hprim t | |
| 83 | + have hd : 1 ≤ d := Nat.one_le_iff_ne_zero.mpr (NeZero.ne d) | |
| 84 | + have hdR : (1 : ℝ) ≤ d := by exact_mod_cast hd | |
| 85 | + let L := Real.log ((d : ℝ)*(|t|+2)) | |
| 86 | + have hL : 0 ≤ L := Real.log_nonneg (by nlinarith [abs_nonneg t]) | |
| 87 | + let q (p : ZeroIndex χ) := (3/2 : ℝ)/((3/2 : ℝ)^2+(t-p.val.1.im)^2) | |
| 88 | + have hq : Summable q := primitive_zero_poisson_summable χ hχ hprim (3/2) t (by norm_num) | |
| 89 | + let S (k : ℤ) := zeroWindow χ (t+k) | |
| 90 | + have hpart := shifted_zeroWindow_partition χ t | |
| 91 | + have hfinite (k : ℤ) : (S k).Finite := (hcount d inferInstance χ hχ hprim (t+k)).1 | |
| 92 | + have hs (k : ℤ) : (∑' p : S k, q p) ≤ 70*C*L*w k := by | |
| 93 | + let := (hfinite k).fintype | |
| 94 | + have ht : (∑' p : S k, q p) ≤ ((S k).ncard : ℝ) * (14/(1+|(k : ℝ)|)^2) := by | |
| 95 | + rw [tsum_fintype] | |
| 96 | + calc | |
| 97 | + _ ≤ ∑ _p : S k, 14/(1+|(k : ℝ)|)^2 := | |
| 98 | + Finset.sum_le_sum (fun p _ => poisson_anchor_term_bound χ t k p) | |
| 99 | + _ = _ := by rw [Finset.sum_const, Finset.card_univ, nsmul_eq_mul]; congr 2; exact (Nat.card_eq_fintype_card).symm | |
| 100 | + have hc := (hcount d inferInstance χ hχ hprim (t+k)).2 | |
| 101 | + have hl := shifted_logarithm_bound d hd t k | |
| 102 | + have hcard : ((S k).ncard : ℝ) ≤ 5*C*L*(1+|(k : ℝ)|)^(1/2 : ℝ) := by | |
| 103 | + apply hc.trans | |
| 104 | + convert mul_le_mul_of_nonneg_left hl hC.le using 1; dsimp [L]; ring | |
| 105 | + apply ht.trans | |
| 106 | + apply (mul_le_mul_of_nonneg_right hcard (by positivity : 0 ≤ 14/(1+|(k : ℝ)|)^2)).trans_eq | |
| 107 | + dsimp [w] | |
| 108 | + have hp : (1+|(k : ℝ)|)^(1/2 : ℝ) / (1+|(k : ℝ)|)^2 = | |
| 109 | + (1+|(k : ℝ)|)^(-(3/2 : ℝ)) := by | |
| 110 | + rw [← Real.rpow_two, ← Real.rpow_sub (by positivity : 0 < 1+|(k : ℝ)|)] | |
| 111 | + norm_num | |
| 112 | + calc | |
| 113 | + _ = 70*C*L*((1+|(k : ℝ)|)^(1/2 : ℝ)/(1+|(k : ℝ)|)^2) := by ring | |
| 114 | + _ = _ := by rw [hp] | |
| 115 | + have hσ : Summable (fun p : (k : ℤ) × S k => q p.2) := ((Set.sigmaEquiv S hpart).summable_iff (f := q)).mpr hq | |
| 116 | + have he : (∑' p, q p) = ∑' k, ∑' p : S k, q p := by | |
| 117 | + rw [← (Set.sigmaEquiv S hpart).tsum_eq q] | |
| 118 | + exact hσ.tsum_sigma' (fun k => by let := (hfinite k).fintype; exact (hasSum_fintype _).summable) | |
| 119 | + change (∑' p, q p) ≤ _ | |
| 120 | + rw [he] | |
| 121 | + calc | |
| 122 | + _ ≤ ∑' k, 70*C*L*w k := | |
| 123 | + Summable.tsum_le_tsum hs ((summable_partition (fun p => by dsimp [q]; positivity) hpart).mp hq).2 (hw.mul_left _) | |
| 124 | + _ = 70*C*L*(∑' k, w k) := tsum_mul_left | |
| 125 | + _ ≤ _ := by nlinarith [mul_nonneg hC.le hL] | |
| 126 | + | |
| 127 | +attribute [local instance] conductorNeZero in | |
| 128 | +lemma zeroPoisson_anchor_bound : ∃ C : ℝ, 0 < C ∧ | |
| 129 | + ∀ N : ℕ, ∀ (_ : NeZero N), ∀ χ : Character N, χ ≠ 1 → ∀ t : ℝ, | |
| 130 | + zeroPoisson χ (3/2) t ≤ C * Real.log ((N : ℝ)*(|t|+2)) := by | |
| 131 | + obtain ⟨C,hC,hbound⟩ := primitive_poisson_anchor_bound | |
| 132 | + refine ⟨C,hC,?_⟩ | |
| 133 | + intro N _ χ hχ t | |
| 134 | + have hh := hbound χ.conductor inferInstance χ.primitiveCharacter | |
| 135 | + (primitiveCharacter_ne_one_of_ne_one χ hχ) χ.primitiveCharacter_isPrimitive t | |
| 136 | + apply hh.trans | |
| 137 | + apply mul_le_mul_of_nonneg_left _ hC.le | |
| 138 | + have hdpos : (0 : ℝ) < χ.conductor := by exact_mod_cast (NeZero.pos χ.conductor) | |
| 139 | + apply Real.log_le_log (mul_pos hdpos (by positivity)) | |
| 140 | + apply mul_le_mul_of_nonneg_right _ (by positivity) | |
| 141 | + exact_mod_cast Nat.le_of_dvd (NeZero.pos N) χ.conductor_dvd_level | |
| 142 | + | |
| 143 | +end ConditionalGoldbach | |
+85 −0 ConditionalGoldbach/Proofs/CharacterPoissonComparison.lean added View file
| @@ -0,0 +1,85 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterPoissonIdentity | |
| 4 | +public import ConditionalGoldbach.Proofs.CharacterPoissonAnchor | |
| 5 | +public import ConditionalGoldbach.Proofs.CharacterHalfPlane | |
| 6 | +public import ConditionalGoldbach.Proofs.GammaDifference | |
| 7 | +public import ConditionalGoldbach.Proofs.CharacterEulerBounds | |
| 8 | + | |
| 9 | +/-! The uniform logarithmic error between the positive zero sum and the real part of L'/L. -/ | |
| 10 | +public section | |
| 11 | + | |
| 12 | +set_option autoImplicit false | |
| 13 | +noncomputable section | |
| 14 | +open scoped BigOperators Topology | |
| 15 | +open Set Complex Filter | |
| 16 | +namespace ConditionalGoldbach | |
| 17 | +attribute [local instance] conductorNeZero | |
| 18 | + | |
| 19 | +lemma Gamma_halfplane_horizontal_difference {x t : ℝ} (hx : 0 < x) (hx1 : x ≤ 1) : | |
| 20 | + ‖logDeriv Gamma (3/4+line x t/2)-logDeriv Gamma (3/4+line (3/2) t/2)‖ ≤ 6 := by | |
| 21 | + have hu : (1/2:ℝ) ≤ (3/4+line x t/2).re := by simp [line]; linarith | |
| 22 | + have hv : (1/2:ℝ) ≤ (3/4+line (3/2) t/2).re := by norm_num [line] | |
| 23 | + have he : (3/4+line x t/2 : ℂ)-(3/4+line (3/2) t/2) = ((x/2-3/4:ℝ):ℂ) := by | |
| 24 | + unfold line | |
| 25 | + push_cast | |
| 26 | + ring | |
| 27 | + apply (Gamma_logDeriv_difference_norm_le hu hv).trans | |
| 28 | + rw [he,Complex.norm_real,Real.norm_eq_abs,abs_of_nonpos (by linarith : x/2-3/4 ≤ 0)] | |
| 29 | + linarith | |
| 30 | + | |
| 31 | +lemma zeroPoisson_logDerivative_comparison : ∃ C : ℝ, 0 < C ∧ | |
| 32 | + ∀ N : ℕ, ∀ (_ : NeZero N), 4 ≤ N → GRH N → ∀χ ∈ oddCharacters N, | |
| 33 | + ∀ x t : ℝ, 0 < x → x ≤ 1 → | |
| 34 | + |zeroPoisson χ x t-(logDerivative χ (line x t)).re| ≤ | |
| 35 | + C*Real.log ((N:ℝ)*(|t|+2)) := by | |
| 36 | + obtain ⟨C,hC,hQ⟩ := zeroPoisson_anchor_bound | |
| 37 | + let B : ℝ := 3*(Real.log 4+4)+3 | |
| 38 | + have hB : 0 < B := by dsimp [B]; positivity | |
| 39 | + refine ⟨C+B+8,by positivity,?_⟩ | |
| 40 | + intro N _ hN4 hGRH χ hχ x t hx hx1 | |
| 41 | + have hχn := odd_character_ne_one χ (Finset.mem_filter.mp hχ).2 | |
| 42 | + have he := zeroPoisson_logDerivative_difference hGRH χ hχ x (3/2) t hx (by norm_num) | |
| 43 | + let W : ℂ := -logDerivative χ (line (3/2) t)+ | |
| 44 | + (logDeriv Gamma (3/4+line x t/2)-logDeriv Gamma (3/4+line (3/2) t/2))/2- | |
| 45 | + eulerCorrection χ (1/2+line x t)+eulerCorrection χ (1/2+line (3/2) t) | |
| 46 | + have he' : zeroPoisson χ x t-(logDerivative χ (line x t)).re = | |
| 47 | + zeroPoisson χ (3/2) t+W.re := by | |
| 48 | + dsimp [W] | |
| 49 | + simp only [add_re,sub_re] at he ⊢ | |
| 50 | + linarith | |
| 51 | + have hQ0 : 0 ≤ zeroPoisson χ (3/2) t := tsum_nonneg (fun _ => by positivity) | |
| 52 | + have hW : ‖W‖ ≤ B+8*Real.log N := by | |
| 53 | + have hg := logDerivative_right_bound N χ (line (3/2) t) (by norm_num [line]) | |
| 54 | + have hΓ := Gamma_halfplane_horizontal_difference (t := t) hx hx1 | |
| 55 | + have hE := eulerCorrection_norm_le χ (u := 1/2+line x t) (by simp [line]; exact hx.le) | |
| 56 | + have hE' := eulerCorrection_norm_le χ (u := 1/2+line (3/2) t) (by norm_num [line]) | |
| 57 | + have hnorm := norm_add_le (-logDerivative χ (line (3/2) t)) | |
| 58 | + ((logDeriv Gamma (3/4+line x t/2)-logDeriv Gamma (3/4+line (3/2) t/2))/2) | |
| 59 | + have hnorm' := norm_sub_le (-logDerivative χ (line (3/2) t)+ | |
| 60 | + (logDeriv Gamma (3/4+line x t/2)-logDeriv Gamma (3/4+line (3/2) t/2))/2) | |
| 61 | + (eulerCorrection χ (1/2+line x t)) | |
| 62 | + have hnorm'' := norm_add_le (-logDerivative χ (line (3/2) t)+ | |
| 63 | + (logDeriv Gamma (3/4+line x t/2)-logDeriv Gamma (3/4+line (3/2) t/2))/2- | |
| 64 | + eulerCorrection χ (1/2+line x t)) (eulerCorrection χ (1/2+line (3/2) t)) | |
| 65 | + simp only [norm_neg,norm_div,Complex.norm_ofNat] at hnorm | |
| 66 | + dsimp [W,B] | |
| 67 | + linarith | |
| 68 | + have hN : (4:ℝ) ≤ N := by exact_mod_cast hN4 | |
| 69 | + have hprod : (0:ℝ) < (N:ℝ)*(|t|+2) := by positivity | |
| 70 | + have hlog : 1 ≤ Real.log ((N:ℝ)*(|t|+2)) := by | |
| 71 | + apply (Real.le_log_iff_exp_le hprod).mpr | |
| 72 | + have hlt := Real.exp_one_lt_three | |
| 73 | + nlinarith [abs_nonneg t] | |
| 74 | + have hlogN : Real.log N ≤ Real.log ((N:ℝ)*(|t|+2)) := by | |
| 75 | + apply Real.log_le_log (by positivity) | |
| 76 | + nlinarith [abs_nonneg t] | |
| 77 | + rw [he'] | |
| 78 | + calc | |
| 79 | + _ ≤ |zeroPoisson χ (3/2) t|+|W.re| := abs_add_le _ _ | |
| 80 | + _ ≤ zeroPoisson χ (3/2) t+‖W‖ := by rw [abs_of_nonneg hQ0]; exact add_le_add_right (abs_re_le_norm W) _ | |
| 81 | + _ ≤ C*Real.log ((N:ℝ)*(|t|+2))+(B+8*Real.log N) := | |
| 82 | + add_le_add (hQ N inferInstance χ hχn t) hW | |
| 83 | + _ ≤ _ := by nlinarith [mul_le_mul_of_nonneg_left hlog hB.le] | |
| 84 | + | |
| 85 | +end ConditionalGoldbach | |
+83 −0 ConditionalGoldbach/Proofs/CharacterPoissonIdentity.lean added View file
| @@ -0,0 +1,83 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterZeroExpansion | |
| 4 | + | |
| 5 | +/-! Exact real-part identities relating the positive Poisson zero sum to L'/L. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators Topology | |
| 11 | +open Set Complex Filter | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | +attribute [local instance] conductorNeZero | |
| 14 | + | |
| 15 | +lemma zero_resolvent_real (ρ : ℂ) (hρ : ρ.re = 1/2) (x t : ℝ) : | |
| 16 | + (1/((1/2:ℂ)+line x t-ρ)).re = x/(x^2+(t-ρ.im)^2) := by | |
| 17 | + simp [one_div,Complex.inv_re,Complex.normSq_apply,line,hρ,pow_two] | |
| 18 | + | |
| 19 | +lemma zeroDifference_real_eq_poisson {N : ℕ} [NeZero N] (hGRH : GRH N) | |
| 20 | + (χ : Character N) (hχ : χ ≠ 1) (x y t : ℝ) (hx : 0 < x) (hy : 0 < y) : | |
| 21 | + (zeroDifference χ.primitiveCharacter (1/2+line x t) (1/2+line y t)).re = | |
| 22 | + zeroPoisson χ x t-zeroPoisson χ y t := by | |
| 23 | + have hχp := primitiveCharacter_ne_one_of_ne_one χ hχ | |
| 24 | + have hL (a : ℝ) (ha : 0 < a) : χ.primitiveCharacter.LFunction (1/2+line a t) ≠ 0 := | |
| 25 | + primitive_LFunction_ne_zero_of_GRH hGRH χ.conductor_dvd_level χ.primitiveCharacter | |
| 26 | + χ.primitiveCharacter_isPrimitive hχp (by simp [line]; exact ha) | |
| 27 | + have hC (a : ℝ) (ha : 0 < a) : completedL χ.primitiveCharacter (1/2+line a t) ≠ 0 := by | |
| 28 | + intro he | |
| 29 | + exact hL a ha ((completedL_eq_zero_iff χ.primitiveCharacter hχp χ.primitiveCharacter_isPrimitive _).mp he).2.2 | |
| 30 | + have hs := (primitive_zero_difference_summable_norm χ.primitiveCharacter hχp | |
| 31 | + χ.primitiveCharacter_isPrimitive _ _ (hC x hx) (hC y hy)).of_norm | |
| 32 | + rw [zeroDifference,Complex.re_tsum hs] | |
| 33 | + have he : ∀p : ZeroIndex χ.primitiveCharacter, | |
| 34 | + (1/(1/2+line x t-p.val.1)-1/(1/2+line y t-p.val.1)).re = | |
| 35 | + x/(x^2+(t-p.val.1.im)^2)-y/(y^2+(t-p.val.1.im)^2) := by | |
| 36 | + intro p | |
| 37 | + have hre := hGRH χ.conductor inferInstance χ.conductor_dvd_level χ.primitiveCharacter | |
| 38 | + χ.primitiveCharacter_isPrimitive p.val.1 p.property.1 p.property.2.1 p.property.2.2.1 | |
| 39 | + rw [sub_re,zero_resolvent_real _ hre,zero_resolvent_real _ hre] | |
| 40 | + simp_rw [he] | |
| 41 | + exact (primitive_zero_poisson_summable _ hχp χ.primitiveCharacter_isPrimitive _ _ hx).tsum_sub | |
| 42 | + (primitive_zero_poisson_summable _ hχp χ.primitiveCharacter_isPrimitive _ _ hy) | |
| 43 | + | |
| 44 | +lemma zeroPoisson_logDerivative_difference {N : ℕ} [NeZero N] (hGRH : GRH N) | |
| 45 | + (χ : Character N) (hχ : χ ∈ oddCharacters N) (x y t : ℝ) (hx : 0 < x) (hy : 0 < y) : | |
| 46 | + zeroPoisson χ x t-zeroPoisson χ y t = | |
| 47 | + (logDerivative χ (line x t)-logDerivative χ (line y t)+ | |
| 48 | + (logDeriv Gamma (3/4+line x t/2)-logDeriv Gamma (3/4+line y t/2))/2- | |
| 49 | + eulerCorrection χ (1/2+line x t)+eulerCorrection χ (1/2+line y t)).re := by | |
| 50 | + have hodd := (Finset.mem_filter.mp hχ).2 | |
| 51 | + have hχn := odd_character_ne_one χ hodd | |
| 52 | + have hχp := primitiveCharacter_ne_one_of_ne_one χ hχn | |
| 53 | + have hoddp := primitiveCharacter_odd χ hodd | |
| 54 | + have hu (a : ℝ) (ha : 0 < a) : 0 < (1/2+line a t).re := by simp [line]; linarith | |
| 55 | + have hL (a : ℝ) (ha : 0 < a) : χ.primitiveCharacter.LFunction (1/2+line a t) ≠ 0 := | |
| 56 | + primitive_LFunction_ne_zero_of_GRH hGRH χ.conductor_dvd_level χ.primitiveCharacter | |
| 57 | + χ.primitiveCharacter_isPrimitive hχp (by simp [line]; exact ha) | |
| 58 | + have hC (a : ℝ) (ha : 0 < a) : completedL χ.primitiveCharacter (1/2+line a t) ≠ 0 := by | |
| 59 | + intro he | |
| 60 | + exact hL a ha ((completedL_eq_zero_iff χ.primitiveCharacter hχp χ.primitiveCharacter_isPrimitive _).mp he).2.2 | |
| 61 | + have hH := completedL_logDerivative_difference χ.primitiveCharacter hχp | |
| 62 | + χ.primitiveCharacter_isPrimitive _ _ (hC x hx) (hC y hy) | |
| 63 | + change logDeriv (completedL χ.primitiveCharacter) _ - logDeriv (completedL χ.primitiveCharacter) _ = _ at hH | |
| 64 | + rw [completedL_logDeriv_odd χ.primitiveCharacter hoddp (hu x hx) (hL x hx), | |
| 65 | + completedL_logDeriv_odd χ.primitiveCharacter hoddp (hu y hy) (hL y hy), | |
| 66 | + show ((1/2+line x t : ℂ)+1)/2 = 3/4+line x t/2 by ring, | |
| 67 | + show ((1/2+line y t : ℂ)+1)/2 = 3/4+line y t/2 by ring] at hH | |
| 68 | + have hEx := logDeriv_eq_primitive_add_euler χ hχn (hu x hx) (hL x hx) | |
| 69 | + have hEy := logDeriv_eq_primitive_add_euler χ hχn (hu y hy) (hL y hy) | |
| 70 | + have he : logDerivative χ (line x t)-logDerivative χ (line y t)+ | |
| 71 | + (logDeriv Gamma (3/4+line x t/2)-logDeriv Gamma (3/4+line y t/2))/2- | |
| 72 | + eulerCorrection χ (1/2+line x t)+eulerCorrection χ (1/2+line y t) = | |
| 73 | + zeroDifference χ.primitiveCharacter (1/2+line x t) (1/2+line y t) := by | |
| 74 | + change logDeriv χ.LFunction (1/2+line x t)-logDeriv χ.LFunction (1/2+line y t)+ | |
| 75 | + (logDeriv Gamma (3/4+line x t/2)-logDeriv Gamma (3/4+line y t/2))/2- | |
| 76 | + eulerCorrection χ (1/2+line x t)+eulerCorrection χ (1/2+line y t) = _ | |
| 77 | + change _ = zeroDifference χ.primitiveCharacter _ _ at hH | |
| 78 | + change _ = _ at hEx hEy | |
| 79 | + simp only [logDeriv_apply] at * | |
| 80 | + linear_combination hH+hEx-hEy | |
| 81 | + rw [he,zeroDifference_real_eq_poisson hGRH χ hχn x y t hx hy] | |
| 82 | + | |
| 83 | +end ConditionalGoldbach | |
+228 −0 ConditionalGoldbach/Proofs/CharacterReferenceEnergy.lean added View file
| @@ -0,0 +1,228 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterReferencePolynomial | |
| 4 | + | |
| 5 | +/-! The reference-line energy estimate from a pointwise smoothed-polynomial estimate. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex | |
| 11 | +open scoped Topology ComplexConjugate BigOperators | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma logarithmic_height_square_integrable : | |
| 15 | + Integrable (fun t : ℝ => Real.log (|t| + 2) ^ 2 / (1 + t ^ 2)) := by | |
| 16 | + let A : ℝ := 4 * (2 : ℝ) ^ (1 / 4 : ℝ) | |
| 17 | + have hA : 0 ≤ A := by dsimp [A]; positivity | |
| 18 | + have hc : Continuous (fun t : ℝ => Real.log (|t| + 2) ^ 2 / (1 + t ^ 2)) := by | |
| 19 | + apply Continuous.div | |
| 20 | + · exact ((continuous_abs.add continuous_const).log (by intro t; change |t| + 2 ≠ 0; positivity)).pow 2 | |
| 21 | + · fun_prop | |
| 22 | + · intro t; positivity | |
| 23 | + apply (hardy_decay_integrable.const_mul (4 * A ^ 2)).mono' hc.aestronglyMeasurable | |
| 24 | + filter_upwards [] with t | |
| 25 | + rw [Real.norm_eq_abs, abs_of_nonneg (by positivity)] | |
| 26 | + have hv : ‖(Real.log (|t| + 2) : ℂ)‖ ≤ A * (1 + |t|) ^ (1 / 4 : ℝ) := by | |
| 27 | + rw [Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg (Real.log_nonneg (by nlinarith [abs_nonneg t]))] | |
| 28 | + calc | |
| 29 | + _ ≤ (|t| + 2) ^ (1 / 4 : ℝ) / (1 / 4) := | |
| 30 | + Real.log_le_rpow_div (by positivity) (by norm_num) | |
| 31 | + _ ≤ (2 * (1 + |t|)) ^ (1 / 4 : ℝ) / (1 / 4) := by | |
| 32 | + apply div_le_div_of_nonneg_right _ (by norm_num) | |
| 33 | + exact Real.rpow_le_rpow (by positivity) (by nlinarith [abs_nonneg t]) (by norm_num) | |
| 34 | + _ = _ := by rw [Real.mul_rpow (by positivity) (by positivity)]; dsimp [A]; ring | |
| 35 | + have hb := weighted_line_square_bound (by norm_num : (0 : ℝ) ≤ 0) t A hA _ hv | |
| 36 | + simpa only [norm_div, div_pow, norm_one_add_line_sq, add_zero, one_pow, | |
| 37 | + Complex.norm_real, Real.norm_eq_abs, sq_abs] using hb | |
| 38 | + | |
| 39 | +lemma conductor_logarithm_energy_bound : ∃ C : ℝ, 0 < C ∧ ∀ n : ℝ, Real.exp 1 ≤ n → | |
| 40 | + Integrable (fun t : ℝ => Real.log (n * (|t| + 2)) ^ 2 / (1 + t ^ 2)) ∧ | |
| 41 | + (∫ t : ℝ, Real.log (n * (|t| + 2)) ^ 2 / (1 + t ^ 2)) ≤ C * Real.log n ^ 2 := by | |
| 42 | + let H : ℝ := ∫ t : ℝ, Real.log (|t| + 2) ^ 2 / (1 + t ^ 2) | |
| 43 | + have hH : 0 ≤ H := integral_nonneg (by intro t; positivity) | |
| 44 | + refine ⟨2 * Real.pi + 2 * H, by positivity, ?_⟩ | |
| 45 | + intro n hn | |
| 46 | + have hn0 : 0 < n := (Real.exp_pos 1).trans_le hn | |
| 47 | + have hl : 1 ≤ Real.log n := by simpa using Real.log_le_log (Real.exp_pos 1) hn | |
| 48 | + have hb (t : ℝ) : Real.log (n * (|t| + 2)) ^ 2 / (1 + t ^ 2) ≤ | |
| 49 | + 2 * Real.log n ^ 2 * (1 + t ^ 2)⁻¹ + | |
| 50 | + 2 * (Real.log (|t| + 2) ^ 2 / (1 + t ^ 2)) := by | |
| 51 | + rw [Real.log_mul hn0.ne' (by positivity : |t| + 2 ≠ 0)] | |
| 52 | + have hs : (Real.log n + Real.log (|t| + 2)) ^ 2 ≤ | |
| 53 | + 2 * Real.log n ^ 2 + 2 * Real.log (|t| + 2) ^ 2 := by nlinarith [sq_nonneg (Real.log n - Real.log (|t| + 2))] | |
| 54 | + convert div_le_div_of_nonneg_right hs (by positivity : 0 ≤ 1 + t ^ 2) using 1; ring | |
| 55 | + have hi : Integrable (fun t : ℝ => 2 * Real.log n ^ 2 * (1 + t ^ 2)⁻¹ + | |
| 56 | + 2 * (Real.log (|t| + 2) ^ 2 / (1 + t ^ 2))) := | |
| 57 | + (integrable_inv_one_add_sq.const_mul _).add (logarithmic_height_square_integrable.const_mul 2) | |
| 58 | + have hf : Integrable (fun t : ℝ => Real.log (n * (|t| + 2)) ^ 2 / (1 + t ^ 2)) := by | |
| 59 | + apply hi.mono' ?_ (Eventually.of_forall (fun t => ?_)) | |
| 60 | + · apply Continuous.aestronglyMeasurable | |
| 61 | + apply Continuous.div | |
| 62 | + · exact ((continuous_const.mul (continuous_abs.add continuous_const)).log | |
| 63 | + (by intro t; change n * (|t| + 2) ≠ 0; positivity)).pow 2 | |
| 64 | + · fun_prop | |
| 65 | + · intro t; positivity | |
| 66 | + · simpa only [Real.norm_eq_abs, abs_of_nonneg (by positivity : 0 ≤ Real.log (n * (|t| + 2)) ^ 2 / (1 + t ^ 2))] using hb t | |
| 67 | + refine ⟨hf, (integral_mono hf hi hb).trans ?_⟩ | |
| 68 | + rw [integral_add (integrable_inv_one_add_sq.const_mul _) (logarithmic_height_square_integrable.const_mul 2), | |
| 69 | + integral_const_mul, integral_const_mul, integral_univ_inv_one_add_sq] | |
| 70 | + change 2 * Real.log n ^ 2 * Real.pi + 2 * H ≤ (2 * Real.pi + 2 * H) * Real.log n ^ 2 | |
| 71 | + have hs : 1 ≤ Real.log n ^ 2 := by nlinarith | |
| 72 | + nlinarith | |
| 73 | + | |
| 74 | +lemma odd_character_average_mass (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) : | |
| 75 | + (2 / (N.totient : ℝ)) * ((oddCharacters N).card : ℝ) = 1 := by | |
| 76 | + have h := odd_character_short_parseval N hN hN4 {1} (fun _ => (1 : ℂ)) (by | |
| 77 | + intro n hn _ | |
| 78 | + simp only [Finset.mem_singleton] at hn | |
| 79 | + subst n | |
| 80 | + omega) | |
| 81 | + simpa [Finset.filter_singleton] using h | |
| 82 | + | |
| 83 | +lemma smoothed_polynomial_continuous (N : ℕ) [NeZero N] (χ : Character N) (σ : ℝ) : | |
| 84 | + Continuous (fun t : ℝ => smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1 / 2 + line σ t)) := by | |
| 85 | + unfold smoothedDirichletPolynomial | |
| 86 | + apply continuous_finsetSum | |
| 87 | + intro n hn | |
| 88 | + by_cases h0 : n = 0 | |
| 89 | + · subst n | |
| 90 | + simp [mangoldt] | |
| 91 | + exact continuous_const | |
| 92 | + · have hn0 : (n : ℂ) ≠ 0 := by exact_mod_cast h0 | |
| 93 | + simp only [Complex.cpow_def_of_ne_zero hn0] | |
| 94 | + unfold line | |
| 95 | + fun_prop | |
| 96 | + | |
| 97 | +lemma smoothed_polynomial_weighted_integrable (N : ℕ) [NeZero N] | |
| 98 | + (hN : Even N) (hN4 : 4 ≤ N) (χ : Character N) (hχ : χ ∈ oddCharacters N) | |
| 99 | + (σ : ℝ) (hσ : 0 < σ) : | |
| 100 | + Integrable (fun t : ℝ => | |
| 101 | + ‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1 / 2 + line σ t)‖ ^ 2 / (1 + t ^ 2)) := by | |
| 102 | + have hφ : (0 : ℝ) < N.totient := by exact_mod_cast Nat.totient_pos.mpr (NeZero.pos N) | |
| 103 | + let D := (1 + σ) * (Real.log 4 + 4) / σ ^ 2 | |
| 104 | + have hb (t : ℝ) : | |
| 105 | + ‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1 / 2 + line σ t)‖ ^ 2 ≤ | |
| 106 | + D * ((N.totient : ℝ) / 2) := by | |
| 107 | + have h := smoothed_polynomial_average_bound N hN hN4 σ t hσ | |
| 108 | + have hs := Finset.single_le_sum (fun ψ (_ : ψ ∈ oddCharacters N) => | |
| 109 | + sq_nonneg ‖smoothedDirichletPolynomial ψ ((N : ℝ) / 2) (1 / 2 + line σ t)‖) hχ | |
| 110 | + have hm := mul_le_mul_of_nonneg_left hs (show 0 ≤ 2 / (N.totient : ℝ) by positivity) | |
| 111 | + have hf : 2 / (N.totient : ℝ) * | |
| 112 | + ‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1 / 2 + line σ t)‖ ^ 2 ≤ D := hm.trans h | |
| 113 | + have hh : ‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1 / 2 + line σ t)‖ ^ 2 ≤ D / (2 / (N.totient : ℝ)) := | |
| 114 | + (le_div_iff₀ (by positivity : 0 < 2 / (N.totient : ℝ))).mpr (by simpa only [mul_comm] using hf) | |
| 115 | + convert hh using 1; simp only [div_eq_mul_inv, mul_inv_rev, inv_inv] | |
| 116 | + refine (integrable_inv_one_add_sq.const_mul (D * ((N.totient : ℝ) / 2))).mono' ?_ ?_ | |
| 117 | + · exact (((smoothed_polynomial_continuous N χ σ).norm.pow 2).div (by fun_prop) | |
| 118 | + (by intro t; positivity)).aestronglyMeasurable | |
| 119 | + · filter_upwards [] with t | |
| 120 | + rw [Real.norm_eq_abs, abs_of_nonneg (by positivity)] | |
| 121 | + simpa only [div_eq_mul_inv] using div_le_div_of_nonneg_right (hb t) (by positivity : 0 ≤ 1 + t ^ 2) | |
| 122 | + | |
| 123 | +lemma smoothed_polynomial_average_energy (N : ℕ) [NeZero N] | |
| 124 | + (hN : Even N) (hN4 : 4 ≤ N) (σ : ℝ) (hσ : 0 < σ) : | |
| 125 | + (2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, | |
| 126 | + (∫ t : ℝ, ‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1 / 2 + line σ t)‖ ^ 2 / (1 + t ^ 2)) ≤ | |
| 127 | + Real.pi * ((1 + σ) * (Real.log 4 + 4) / σ ^ 2) := by | |
| 128 | + let f (χ : Character N) (t : ℝ) := | |
| 129 | + ‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1 / 2 + line σ t)‖ ^ 2 / (1 + t ^ 2) | |
| 130 | + have hi (χ : Character N) (hχ : χ ∈ oddCharacters N) : Integrable (f χ) := | |
| 131 | + smoothed_polynomial_weighted_integrable N hN hN4 χ hχ σ hσ | |
| 132 | + rw [← MeasureTheory.integral_finsetSum _ hi, ← integral_const_mul] | |
| 133 | + have hright := integrable_inv_one_add_sq.const_mul ((1 + σ) * (Real.log 4 + 4) / σ ^ 2) | |
| 134 | + have hb (t : ℝ) : (2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, f χ t ≤ | |
| 135 | + ((1 + σ) * (Real.log 4 + 4) / σ ^ 2) * (1 + t ^ 2)⁻¹ := by | |
| 136 | + dsimp [f] | |
| 137 | + rw [← Finset.sum_div, ← mul_div_assoc] | |
| 138 | + simpa only [div_eq_mul_inv] using div_le_div_of_nonneg_right | |
| 139 | + (smoothed_polynomial_average_bound N hN hN4 σ t hσ) (by positivity : 0 ≤ 1 + t ^ 2) | |
| 140 | + have h := integral_mono ((MeasureTheory.integrable_finsetSum _ hi).const_mul (2 / (N.totient : ℝ))) hright hb | |
| 141 | + simp only [integral_const_mul, integral_univ_inv_one_add_sq] at h | |
| 142 | + simpa only [integral_const_mul, mul_comm] using h | |
| 143 | + | |
| 144 | +lemma averagedLogDerivative_bound_of_polynomial (N : ℕ) [NeZero N] | |
| 145 | + (hN : Even N) (hN4 : 4 ≤ N) (hGRH : GRH N) | |
| 146 | + (σ A L : ℝ) (hσ : 0 < σ) (_hA : 0 ≤ A) | |
| 147 | + (hlogi : Integrable (fun t : ℝ => Real.log ((N : ℝ) * (|t| + 2)) ^ 2 / (1 + t ^ 2))) | |
| 148 | + (hloge : (∫ t : ℝ, Real.log ((N : ℝ) * (|t| + 2)) ^ 2 / (1 + t ^ 2)) ≤ L) | |
| 149 | + (hpoint : ∀ χ ∈ oddCharacters N, ∀ t : ℝ, | |
| 150 | + ‖logDerivative χ (line σ t)‖ ≤ A * | |
| 151 | + (‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1 / 2 + line σ t)‖ + | |
| 152 | + Real.log ((N : ℝ) * (|t| + 2)))) : | |
| 153 | + averagedLogDerivative N σ ≤ | |
| 154 | + 2 * A ^ 2 * (Real.pi * ((1 + σ) * (Real.log 4 + 4) / σ ^ 2) + L) := by | |
| 155 | + let P (χ : Character N) := ∫ t : ℝ, | |
| 156 | + ‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1 / 2 + line σ t)‖ ^ 2 / (1 + t ^ 2) | |
| 157 | + have he (χ : Character N) (hχ : χ ∈ oddCharacters N) : | |
| 158 | + (∫ t : ℝ, ‖logDerivative χ (line σ t)‖ ^ 2 / (1 + t ^ 2)) ≤ 2 * A ^ 2 * (P χ + L) := by | |
| 159 | + have hpi := smoothed_polynomial_weighted_integrable N hN hN4 χ hχ σ hσ | |
| 160 | + have hgi := logDerivative_weighted_square_integrable N hN4 hGRH χ hχ σ hσ | |
| 161 | + have hb (t : ℝ) : ‖logDerivative χ (line σ t)‖ ^ 2 / (1 + t ^ 2) ≤ | |
| 162 | + 2 * A ^ 2 * (‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1 / 2 + line σ t)‖ ^ 2 / (1 + t ^ 2) + | |
| 163 | + Real.log ((N : ℝ) * (|t| + 2)) ^ 2 / (1 + t ^ 2)) := by | |
| 164 | + have hs := (sq_le_sq₀ (norm_nonneg _) ((norm_nonneg _).trans (hpoint χ hχ t))).mpr (hpoint χ hχ t) | |
| 165 | + have hv : ‖logDerivative χ (line σ t)‖ ^ 2 ≤ 2 * A ^ 2 * | |
| 166 | + (‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1 / 2 + line σ t)‖ ^ 2 + | |
| 167 | + Real.log ((N : ℝ) * (|t| + 2)) ^ 2) := by | |
| 168 | + have hm := mul_nonneg (sq_nonneg A) (sq_nonneg | |
| 169 | + (‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1 / 2 + line σ t)‖ - | |
| 170 | + Real.log ((N : ℝ) * (|t| + 2)))) | |
| 171 | + nlinarith | |
| 172 | + convert div_le_div_of_nonneg_right hv (by positivity : 0 ≤ 1 + t ^ 2) using 1; ring | |
| 173 | + have hi := integral_mono hgi ((hpi.add hlogi).const_mul (2 * A ^ 2)) hb | |
| 174 | + rw [integral_const_mul] at hi | |
| 175 | + simp only [Pi.add_apply] at hi | |
| 176 | + rw [integral_add hpi hlogi] at hi | |
| 177 | + exact hi.trans (mul_le_mul_of_nonneg_left (add_le_add le_rfl hloge) (by positivity)) | |
| 178 | + unfold averagedLogDerivative | |
| 179 | + calc | |
| 180 | + _ ≤ (2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, 2 * A ^ 2 * (P χ + L) := | |
| 181 | + mul_le_mul_of_nonneg_left (Finset.sum_le_sum he) (by positivity) | |
| 182 | + _ = 2 * A ^ 2 * ((2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, P χ + L) := by | |
| 183 | + rw [← Finset.mul_sum, Finset.sum_add_distrib, Finset.sum_const] | |
| 184 | + simp only [nsmul_eq_mul] | |
| 185 | + have hm := odd_character_average_mass N hN hN4 | |
| 186 | + calc | |
| 187 | + _ = 2 * A ^ 2 * ((2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, P χ + | |
| 188 | + ((2 / (N.totient : ℝ)) * (oddCharacters N).card) * L) := by ring | |
| 189 | + _ = _ := by rw [hm, one_mul] | |
| 190 | + _ ≤ _ := mul_le_mul_of_nonneg_left | |
| 191 | + (add_le_add (smoothed_polynomial_average_energy N hN hN4 σ hσ) le_rfl) (by positivity) | |
| 192 | + | |
| 193 | +lemma reference_line_energy_of_pointwise (A : ℝ) (hA : 0 < A) | |
| 194 | + (hpoint : ∀ N : ℕ, ∀ (_ : NeZero N), Even N → Real.exp 10 < (N : ℝ) → GRH N → | |
| 195 | + ∀ χ ∈ oddCharacters N, ∀ t : ℝ, | |
| 196 | + ‖logDerivative χ (line (2 / Real.log N) t)‖ ≤ A * | |
| 197 | + (‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1 / 2 + line (2 / Real.log N) t)‖ + | |
| 198 | + Real.log ((N : ℝ) * (|t| + 2)))) : | |
| 199 | + ∃ C : ℝ, 0 < C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), Even N → | |
| 200 | + Real.exp 10 < (N : ℝ) → GRH N → | |
| 201 | + averagedLogDerivative N (2 / Real.log N) ≤ C * Real.log N ^ 2 := by | |
| 202 | + obtain ⟨L, hL, hlog⟩ := conductor_logarithm_energy_bound | |
| 203 | + refine ⟨2 * A ^ 2 * (Real.pi * (Real.log 4 + 4) + L), by positivity, ?_⟩ | |
| 204 | + intro N _ hN hlarge hGRH | |
| 205 | + have hN4 := (large_parameters hlarge).1 | |
| 206 | + have hln : 10 < Real.log N := by | |
| 207 | + have hn : 0 < (N : ℝ) := (Real.exp_pos 10).trans hlarge | |
| 208 | + exact (Real.lt_log_iff_exp_lt hn).mpr hlarge | |
| 209 | + have hσ : 0 < 2 / Real.log N := by positivity | |
| 210 | + have hnexp : Real.exp 1 ≤ (N : ℝ) := (Real.exp_le_exp.mpr (by norm_num : (1 : ℝ) ≤ 10)).trans hlarge.le | |
| 211 | + obtain ⟨hli, hle⟩ := hlog N hnexp | |
| 212 | + apply (averagedLogDerivative_bound_of_polynomial N hN hN4 hGRH _ A (L * Real.log N ^ 2) hσ hA.le | |
| 213 | + hli hle (hpoint N inferInstance hN hlarge hGRH)).trans | |
| 214 | + have hD : (1 + 2 / Real.log N) * (Real.log 4 + 4) / (2 / Real.log N) ^ 2 ≤ | |
| 215 | + (Real.log 4 + 4) * Real.log N ^ 2 := by | |
| 216 | + have hσ1 : 2 / Real.log N ≤ 1 := (div_le_one (by linarith)).mpr (by linarith) | |
| 217 | + have hlog4 : 0 < Real.log 4 + 4 := by positivity | |
| 218 | + have he : (2 / Real.log N) ^ 2 * Real.log N ^ 2 = 4 := by field_simp; ring | |
| 219 | + apply (div_le_iff₀ (sq_pos_of_pos hσ)).mpr | |
| 220 | + calc | |
| 221 | + _ ≤ 2 * (Real.log 4 + 4) := mul_le_mul_of_nonneg_right (by linarith) hlog4.le | |
| 222 | + _ ≤ 4 * (Real.log 4 + 4) := by nlinarith | |
| 223 | + _ = _ := by rw [mul_assoc, mul_comm (Real.log N ^ 2), he]; ring | |
| 224 | + have hh := mul_le_mul_of_nonneg_left | |
| 225 | + (add_le_add (mul_le_mul_of_nonneg_left hD Real.pi_pos.le) (le_refl (L * Real.log N ^ 2))) (show 0 ≤ 2 * A ^ 2 by positivity) | |
| 226 | + convert hh using 1; ring | |
| 227 | + | |
| 228 | +end ConditionalGoldbach | |
+71 −0 ConditionalGoldbach/Proofs/CharacterReferencePolynomial.lean added View file
| @@ -0,0 +1,71 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterShortPolynomial | |
| 4 | +public import ConditionalGoldbach.Proofs.SpectralDiagonalBound | |
| 5 | + | |
| 6 | +/-! The short smoothed polynomial has uniformly controlled odd-character mean square. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +open scoped Topology ComplexConjugate BigOperators | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma smoothed_coefficient_norm_sq (X σ t : ℝ) (n : ℕ) (hn : 0 < n) : | |
| 16 | + ‖(mangoldt n : ℂ) * (n : ℂ) ^ (-(1 / 2 + line σ t)) * smoothedPerronWeight X n‖ ^ 2 = | |
| 17 | + (mangoldt n) ^ 2 * (n : ℝ) ^ (-1 - 2 * σ) * smoothedPerronWeight X n ^ 2 := by | |
| 18 | + rw [norm_mul, norm_mul, mul_pow, mul_pow, Complex.norm_natCast_cpow_of_pos hn] | |
| 19 | + simp only [Complex.norm_real, Real.norm_eq_abs] | |
| 20 | + have hp : ((n : ℝ) ^ (-(1 / 2 + line σ t)).re) ^ 2 = (n : ℝ) ^ (-1 - 2 * σ) := by | |
| 21 | + rw [← Real.rpow_natCast, ← Real.rpow_mul (Nat.cast_nonneg n)] | |
| 22 | + congr 1 | |
| 23 | + simp [line] | |
| 24 | + ring | |
| 25 | + rw [hp] | |
| 26 | + simp only [sq_abs] | |
| 27 | + | |
| 28 | +lemma smoothed_polynomial_average_bound (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) | |
| 29 | + (σ t : ℝ) (hσ : 0 < σ) : | |
| 30 | + (2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, | |
| 31 | + ‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) (1 / 2 + line σ t)‖ ^ 2 ≤ | |
| 32 | + (1 + σ) * (Real.log 4 + 4) / σ ^ 2 := by | |
| 33 | + rw [smoothed_polynomial_odd_parseval N hN hN4] | |
| 34 | + let k : ℕ := ⌊(N : ℝ) / 2⌋₊ | |
| 35 | + have hNreal : (4 : ℝ) ≤ N := by exact_mod_cast hN4 | |
| 36 | + have ht (n : ℕ) : (if Nat.Coprime n N then | |
| 37 | + ‖(mangoldt n : ℂ) * (n : ℂ) ^ (-(1 / 2 + line σ t)) * smoothedPerronWeight ((N : ℝ) / 2) n‖ ^ 2 else 0) ≤ | |
| 38 | + if 0 < n then diagonalCoefficient N (n - 1) * (n : ℝ) ^ (-2 * σ) else 0 := by | |
| 39 | + by_cases hn : 0 < n | |
| 40 | + · rw [ite_eq_left hn] | |
| 41 | + have he : n - 1 + 1 = n := by omega | |
| 42 | + by_cases hc : Nat.Coprime n N | |
| 43 | + · rw [ite_eq_left hc, smoothed_coefficient_norm_sq _ _ _ n hn] | |
| 44 | + have hw := smoothedPerronWeight_nonneg_le_one (by linarith : 1 < (N : ℝ) / 2) n | |
| 45 | + have hsq : smoothedPerronWeight ((N : ℝ) / 2) n ^ 2 ≤ 1 := by nlinarith [hw.1, hw.2] | |
| 46 | + calc | |
| 47 | + _ ≤ mangoldt n ^ 2 * (n : ℝ) ^ (-1 - 2 * σ) := by | |
| 48 | + simpa only [mul_one] using mul_le_mul_of_nonneg_left hsq | |
| 49 | + (mul_nonneg (sq_nonneg _) (Real.rpow_nonneg (Nat.cast_nonneg n) _)) | |
| 50 | + _ = _ := by | |
| 51 | + rw [show diagonalCoefficient N (n - 1) = mangoldt n ^ 2 / (n : ℝ) by | |
| 52 | + simp [diagonalCoefficient, he, hc]] | |
| 53 | + rw [show -1 - 2 * σ = -2 * σ - 1 by ring, | |
| 54 | + Real.rpow_sub (by exact_mod_cast hn : (0 : ℝ) < n), Real.rpow_one] | |
| 55 | + ring | |
| 56 | + · simp [hc, diagonalCoefficient, he] | |
| 57 | + · have he : n = 0 := by omega | |
| 58 | + subst n | |
| 59 | + simp [mangoldt] | |
| 60 | + calc | |
| 61 | + _ ≤ ∑ n ∈ Finset.range (k + 1), if 0 < n then diagonalCoefficient N (n - 1) * (n : ℝ) ^ (-2 * σ) else 0 := | |
| 62 | + Finset.sum_le_sum (fun n _ => ht n) | |
| 63 | + _ = ∑ j ∈ Finset.range k, diagonalCoefficient N j * (j + 1 : ℕ) ^ (-2 * σ) := by | |
| 64 | + rw [Finset.sum_range_succ'] | |
| 65 | + simp | |
| 66 | + _ ≤ ∑' j, diagonalCoefficient N j * (j + 1 : ℕ) ^ (-2 * σ) := | |
| 67 | + (diagonalCoefficient_power_summable N σ hσ).sum_le_tsum _ | |
| 68 | + (fun j _ => mul_nonneg (diagonalCoefficient_nonneg N j) (Real.rpow_nonneg (by positivity) _)) | |
| 69 | + _ ≤ _ := diagonalCoefficient_series_bound N σ hσ | |
| 70 | + | |
| 71 | +end ConditionalGoldbach | |
+151 −0 ConditionalGoldbach/Proofs/CharacterSeries.lean added View file
| @@ -0,0 +1,151 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.Characters | |
| 4 | +public import ConditionalGoldbach.Proofs.LFunctionDomain | |
| 5 | + | |
| 6 | +/-! Absolutely convergent Dirichlet expansions, with the original odd-character projector. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | +attribute [local instance] Classical.propDecidable conductorNeZero | |
| 15 | + | |
| 16 | +lemma logDerivative_eq_neg_tsum {N : ℕ} [NeZero N] (χ : Character N) | |
| 17 | + {s : ℂ} (hs : 1 / 2 < s.re) : | |
| 18 | + logDerivative χ s = -∑' n : ℕ, | |
| 19 | + (mangoldt n : ℂ) * χ n / (n : ℂ) ^ (1 / 2 + s) := by | |
| 20 | + have hs' : 1 < (1 / 2 + s).re := by norm_num; linarith | |
| 21 | + rw [logDerivative, DirichletCharacter.deriv_LFunction_eq_deriv_LSeries χ hs', | |
| 22 | + DirichletCharacter.LFunction_eq_LSeries χ hs'] | |
| 23 | + have heq := DirichletCharacter.LSeries_twist_vonMangoldt_eq χ hs' | |
| 24 | + rw [neg_div] at heq | |
| 25 | + calc | |
| 26 | + _ = -LSeries ((fun n : ℕ => χ n) * fun n => (mangoldt n : ℂ)) (1 / 2 + s) := by rw [heq]; ring | |
| 27 | + _ = _ := by | |
| 28 | + congr 1 | |
| 29 | + apply tsum_congr | |
| 30 | + intro n | |
| 31 | + by_cases hn : n = 0 | |
| 32 | + · subst n | |
| 33 | + simp [LSeries.term, mangoldt] | |
| 34 | + · simp only [LSeries.term, hn, ite_false, Pi.mul_apply] | |
| 35 | + congr 1 | |
| 36 | + ring | |
| 37 | + | |
| 38 | +lemma summable_logDerivative_terms {N : ℕ} [NeZero N] (χ : Character N) | |
| 39 | + {s : ℂ} (hs : 1 / 2 < s.re) : | |
| 40 | + Summable (fun n : ℕ => (mangoldt n : ℂ) * χ n / (n : ℂ) ^ (1 / 2 + s)) := by | |
| 41 | + have hs' : 1 < (1 / 2 + s).re := by norm_num; linarith | |
| 42 | + apply (DirichletCharacter.LSeriesSummable_twist_vonMangoldt χ hs').congr | |
| 43 | + intro n | |
| 44 | + by_cases hn : n = 0 | |
| 45 | + · subst n | |
| 46 | + simp [LSeries.term, mangoldt] | |
| 47 | + · simp only [LSeries.term, hn, ite_false, Pi.mul_apply] | |
| 48 | + congr 1 | |
| 49 | + ring | |
| 50 | + | |
| 51 | +lemma conj_natCast_cpow (n : ℕ) (z : ℂ) : | |
| 52 | + conj ((n : ℂ) ^ z) = (n : ℂ) ^ conj z := by | |
| 53 | + simpa using (Complex.conj_cpow (n : ℂ) (conj z) | |
| 54 | + (by rw [Complex.natCast_arg]; exact ne_of_lt Real.pi_pos)).symm | |
| 55 | + | |
| 56 | +lemma conjugate_logDerivative_eq_neg_tsum {N : ℕ} [NeZero N] (χ : Character N) | |
| 57 | + {z : ℂ} (hz : 1 / 2 < z.re) : | |
| 58 | + conj (logDerivative χ (conj z)) = -∑' m : ℕ, | |
| 59 | + (mangoldt m : ℂ) * conj (χ m) / (m : ℂ) ^ (1 / 2 + z) := by | |
| 60 | + rw [logDerivative_eq_neg_tsum χ (by simpa using hz), map_neg, Complex.conj_tsum] | |
| 61 | + congr 1 | |
| 62 | + apply tsum_congr | |
| 63 | + intro m | |
| 64 | + simp [map_div₀, map_mul, conj_natCast_cpow, show conj (2 : ℂ) = 2 from Complex.conj_ofReal 2] | |
| 65 | + | |
| 66 | +/-- GRH rewrites each actual zero, preserving its multiplicity index. -/ | |
| 67 | +theorem lemma_3_4_paired_zero_sum (N : ℕ) [NeZero N] | |
| 68 | + (_hN : Even N) (_hN4 : 4 ≤ N) (hGRH : GRH N) | |
| 69 | + (χ : Character N) (_hχ : χ ∈ oddCharacters N) (s : ℂ) (_hs : 0 < s.re) : | |
| 70 | + zeroDifference χ.primitiveCharacter (1 / 2 + s) 2 = pairedZeroSum χ s := by | |
| 71 | + unfold zeroDifference pairedZeroSum | |
| 72 | + apply tsum_congr | |
| 73 | + intro p | |
| 74 | + have hr : p.val.1.re = 1 / 2 := hGRH χ.conductor inferInstance | |
| 75 | + χ.conductor_dvd_level χ.primitiveCharacter χ.primitiveCharacter_isPrimitive | |
| 76 | + p.val.1 p.property.1 p.property.2.1 p.property.2.2.1 | |
| 77 | + have hρ : p.val.1 = 1 / 2 + p.val.1.im * I := by | |
| 78 | + apply Complex.ext <;> simp [hr] | |
| 79 | + conv_lhs => rw [hρ] | |
| 80 | + congr 2 <;> ring | |
| 81 | + | |
| 82 | +lemma summable_conjugate_logDerivative_terms {N : ℕ} [NeZero N] (χ : Character N) | |
| 83 | + {z : ℂ} (hz : 1 / 2 < z.re) : | |
| 84 | + Summable (fun m : ℕ => (mangoldt m : ℂ) * conj (χ m) / (m : ℂ) ^ (1 / 2 + z)) := by | |
| 85 | + simpa only [MulChar.star_apply, RCLike.star_def] using summable_logDerivative_terms (star χ) hz | |
| 86 | + | |
| 87 | +lemma character_series_projector (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) | |
| 88 | + (s z : ℂ) (n m : ℕ) : | |
| 89 | + (2 / (N.totient : ℂ)) * ∑ χ ∈ oddCharacters N, | |
| 90 | + ((mangoldt n : ℂ) * χ n / (n : ℂ) ^ (1 / 2 + s)) * | |
| 91 | + ((mangoldt m : ℂ) * conj (χ m) / (m : ℂ) ^ (1 / 2 + z)) = | |
| 92 | + arithmeticExpansionTerm N n m s z := by | |
| 93 | + have hfactor : (2 / (N.totient : ℂ)) * ∑ χ ∈ oddCharacters N, | |
| 94 | + ((mangoldt n : ℂ) * χ n / (n : ℂ) ^ (1 / 2 + s)) * | |
| 95 | + ((mangoldt m : ℂ) * conj (χ m) / (m : ℂ) ^ (1 / 2 + z)) = | |
| 96 | + ((mangoldt n : ℂ) * mangoldt m / ((n : ℂ) ^ (1 / 2 + s) * (m : ℂ) ^ (1 / 2 + z))) * | |
| 97 | + ((2 / (N.totient : ℂ)) * ∑ χ ∈ oddCharacters N, χ n * conj (χ m)) := by | |
| 98 | + simp only [Finset.mul_sum] | |
| 99 | + apply Finset.sum_congr rfl | |
| 100 | + intro χ _ | |
| 101 | + ring | |
| 102 | + rw [hfactor, lemma_3_1_odd_orthogonality N hN hN4] | |
| 103 | + by_cases hn : n = 0 | |
| 104 | + · subst n | |
| 105 | + simp [arithmeticExpansionTerm, mangoldt] | |
| 106 | + by_cases hm : m = 0 | |
| 107 | + · subst m | |
| 108 | + simp [arithmeticExpansionTerm, mangoldt] | |
| 109 | + simp only [arithmeticExpansionTerm, Nat.pos_of_ne_zero hn, Nat.pos_of_ne_zero hm, | |
| 110 | + true_and] | |
| 111 | + split_ifs <;> simp_all | |
| 112 | + | |
| 113 | +lemma characterKernel_dirichlet_expansion (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) | |
| 114 | + (s z : ℂ) (hs : 1 / 2 < s.re) (hz : 1 / 2 < z.re) : | |
| 115 | + Summable (fun p : ℕ × ℕ => ‖arithmeticExpansionTerm N p.1 p.2 s z‖) ∧ | |
| 116 | + characterKernel N s z = ∑' p : ℕ × ℕ, arithmeticExpansionTerm N p.1 p.2 s z := by | |
| 117 | + let f : Character N → ℕ → ℂ := fun χ n => | |
| 118 | + (mangoldt n : ℂ) * χ n / (n : ℂ) ^ (1 / 2 + s) | |
| 119 | + let g : Character N → ℕ → ℂ := fun χ m => | |
| 120 | + (mangoldt m : ℂ) * conj (χ m) / (m : ℂ) ^ (1 / 2 + z) | |
| 121 | + have hf (χ : Character N) : Summable (f χ) := summable_logDerivative_terms χ hs | |
| 122 | + have hg (χ : Character N) : Summable (g χ) := summable_conjugate_logDerivative_terms χ hz | |
| 123 | + have hfg (χ : Character N) : Summable (fun p : ℕ × ℕ => f χ p.1 * g χ p.2) := | |
| 124 | + summable_mul_of_summable_norm (hf χ).norm (hg χ).norm | |
| 125 | + have hsum : Summable (fun p : ℕ × ℕ => ∑ χ ∈ oddCharacters N, f χ p.1 * g χ p.2) := | |
| 126 | + summable_sum (fun χ _ => hfg χ) | |
| 127 | + have hpoint (p : ℕ × ℕ) : | |
| 128 | + (2 / (N.totient : ℂ)) * (∑ χ ∈ oddCharacters N, f χ p.1 * g χ p.2) = | |
| 129 | + arithmeticExpansionTerm N p.1 p.2 s z := character_series_projector N hN hN4 s z p.1 p.2 | |
| 130 | + constructor | |
| 131 | + · exact ((hsum.mul_left (2 / (N.totient : ℂ))).congr hpoint).norm | |
| 132 | + · calc | |
| 133 | + characterKernel N s z = (2 / (N.totient : ℂ)) * | |
| 134 | + ∑ χ ∈ oddCharacters N, (∑' n, f χ n) * (∑' m, g χ m) := by | |
| 135 | + unfold characterKernel | |
| 136 | + congr 1 | |
| 137 | + apply Finset.sum_congr rfl | |
| 138 | + intro χ _ | |
| 139 | + rw [logDerivative_eq_neg_tsum χ hs, conjugate_logDerivative_eq_neg_tsum χ hz, neg_mul_neg] | |
| 140 | + _ = (2 / (N.totient : ℂ)) * | |
| 141 | + ∑ χ ∈ oddCharacters N, ∑' p : ℕ × ℕ, f χ p.1 * g χ p.2 := by | |
| 142 | + congr 1 | |
| 143 | + apply Finset.sum_congr rfl | |
| 144 | + intro χ _ | |
| 145 | + exact tsum_mul_tsum_of_summable_norm (hf χ).norm (hg χ).norm | |
| 146 | + _ = ∑' p : ℕ × ℕ, (2 / (N.totient : ℂ)) * | |
| 147 | + (∑ χ ∈ oddCharacters N, f χ p.1 * g χ p.2) := by | |
| 148 | + rw [hsum.tsum_mul_left, Summable.tsum_finsetSum (fun χ _ => hfg χ)] | |
| 149 | + _ = _ := tsum_congr hpoint | |
| 150 | + | |
| 151 | +end ConditionalGoldbach | |
+148 −0 ConditionalGoldbach/Proofs/CharacterShortPolynomial.lean added View file
| @@ -0,0 +1,148 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterTraceBounds | |
| 4 | + | |
| 5 | +/-! Exact odd-character Parseval for complex coefficients supported strictly below N/2. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex | |
| 11 | +open scoped Topology ComplexConjugate BigOperators | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma complex_character_sum_norm_sq (N : ℕ) (χ : Character N) (S : Finset ℕ) (c : ℕ → ℂ) : | |
| 15 | + ((‖∑ n ∈ S, c n * χ n‖ ^ 2 : ℝ) : ℂ) = | |
| 16 | + ∑ n ∈ S, ∑ m ∈ S, c n * conj (c m) * (χ n * conj (χ m)) := by | |
| 17 | + rw [Complex.sq_norm, Complex.normSq_eq_conj_mul_self, mul_comm] | |
| 18 | + simp only [map_sum, map_mul, Finset.sum_mul, Finset.mul_sum] | |
| 19 | + rw [Finset.sum_comm] | |
| 20 | + apply Finset.sum_congr rfl | |
| 21 | + intro n _ | |
| 22 | + apply Finset.sum_congr rfl | |
| 23 | + intro m _ | |
| 24 | + ring | |
| 25 | + | |
| 26 | +lemma odd_character_quadratic_complex (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) | |
| 27 | + (S : Finset ℕ) (c : ℕ → ℂ) : | |
| 28 | + (((2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, | |
| 29 | + ‖∑ n ∈ S, c n * χ n‖ ^ 2 : ℝ) : ℂ) = | |
| 30 | + ∑ n ∈ S, ∑ m ∈ S, c n * conj (c m) * | |
| 31 | + (if Nat.Coprime (n * m) N then | |
| 32 | + (if (n : ZMod N) = m then (1 : ℂ) else 0) - | |
| 33 | + (if (n : ZMod N) = -(m : ZMod N) then 1 else 0) else 0) := by | |
| 34 | + simp only [Complex.ofReal_mul, Complex.ofReal_div, Complex.ofReal_ofNat, | |
| 35 | + Complex.ofReal_natCast, Complex.ofReal_sum] | |
| 36 | + simp_rw [complex_character_sum_norm_sq] | |
| 37 | + rw [Finset.sum_comm] | |
| 38 | + simp_rw [Finset.sum_comm (s := oddCharacters N) (t := S)] | |
| 39 | + simp_rw [Finset.mul_sum] | |
| 40 | + apply Finset.sum_congr rfl | |
| 41 | + intro n _ | |
| 42 | + apply Finset.sum_congr rfl | |
| 43 | + intro m _ | |
| 44 | + calc | |
| 45 | + _ = c n * conj (c m) * ((2 : ℂ) / N.totient * ∑ χ ∈ oddCharacters N, χ n * conj (χ m)) := by | |
| 46 | + simp only [Finset.mul_sum] | |
| 47 | + apply Finset.sum_congr rfl | |
| 48 | + intro χ _ | |
| 49 | + ring | |
| 50 | + _ = _ := by rw [lemma_3_1_odd_orthogonality N hN hN4] | |
| 51 | + | |
| 52 | +lemma odd_character_short_parseval (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) | |
| 53 | + (S : Finset ℕ) (c : ℕ → ℂ) | |
| 54 | + (hsupport : ∀ n ∈ S, c n ≠ 0 → 0 < n ∧ 2 * n < N) : | |
| 55 | + (2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, ‖∑ n ∈ S, c n * χ n‖ ^ 2 = | |
| 56 | + ∑ n ∈ S, if Nat.Coprime n N then ‖c n‖ ^ 2 else 0 := by | |
| 57 | + classical | |
| 58 | + apply Complex.ofReal_injective | |
| 59 | + rw [odd_character_quadratic_complex N hN hN4] | |
| 60 | + simp only [Complex.ofReal_sum, apply_ite (fun x : ℝ => (x : ℂ)), Complex.ofReal_zero] | |
| 61 | + apply Finset.sum_congr rfl | |
| 62 | + intro n hn | |
| 63 | + have hterm (m : ℕ) (hm : m ∈ S) : c n * conj (c m) * | |
| 64 | + (if Nat.Coprime (n * m) N then | |
| 65 | + (if (n : ZMod N) = m then (1 : ℂ) else 0) - | |
| 66 | + (if (n : ZMod N) = -(m : ZMod N) then 1 else 0) else 0) = | |
| 67 | + if m = n then (if Nat.Coprime n N then ((‖c n‖ ^ 2 : ℝ) : ℂ) else 0) else 0 := by | |
| 68 | + by_cases hcn : c n = 0 | |
| 69 | + · simp [hcn] | |
| 70 | + by_cases hcm : c m = 0 | |
| 71 | + · by_cases hmn : m = n | |
| 72 | + · subst m | |
| 73 | + exact False.elim (hcn hcm) | |
| 74 | + · simp [hcm, hmn] | |
| 75 | + obtain ⟨hn0, hn2⟩ := hsupport n hn hcn | |
| 76 | + obtain ⟨hm0, hm2⟩ := hsupport m hm hcm | |
| 77 | + obtain ⟨hpos, hneg⟩ := residue_diagonals (by omega : 0 < N) hn0 (by omega) hm0 (by omega) | |
| 78 | + have hsum : n + m ≠ N := by omega | |
| 79 | + simp only [hpos, hneg, hsum, ite_false, sub_zero] | |
| 80 | + by_cases hmn : m = n | |
| 81 | + · subst m | |
| 82 | + simp only [ite_true, Nat.coprime_mul_iff_left, and_self] | |
| 83 | + split_ifs <;> simp only [mul_one, mul_zero] | |
| 84 | + rw [Complex.mul_conj, Complex.normSq_eq_norm_sq] | |
| 85 | + · simp [hmn, Ne.symm hmn] | |
| 86 | + rw [Finset.sum_congr rfl hterm, Finset.sum_ite_eq' S n] | |
| 87 | + simp [hn] | |
| 88 | + | |
| 89 | +lemma smoothedPerronWeight_eq_zero_of_le {X : ℝ} (hX : 1 < X) (n : ℕ) (hn : X ≤ (n : ℝ)) : | |
| 90 | + smoothedPerronWeight X n = 0 := by | |
| 91 | + have hs : Real.sqrt X < X := by | |
| 92 | + apply (Real.sqrt_lt (by linarith : 0 ≤ X) (by linarith : 0 ≤ X)).mpr | |
| 93 | + nlinarith | |
| 94 | + have hn' : ¬(n : ℝ) ≤ Real.sqrt X := by linarith | |
| 95 | + unfold smoothedPerronWeight | |
| 96 | + rw [ite_eq_right hn'] | |
| 97 | + split_ifs with hnX | |
| 98 | + · have he : (n : ℝ) = X := le_antisymm hnX hn | |
| 99 | + rw [he, div_self (by linarith : X ≠ 0), Real.log_one, zero_div] | |
| 100 | + · rfl | |
| 101 | + | |
| 102 | +lemma smoothedPerronWeight_nonneg_le_one {X : ℝ} (hX : 1 < X) (n : ℕ) : | |
| 103 | + 0 ≤ smoothedPerronWeight X n ∧ smoothedPerronWeight X n ≤ 1 := by | |
| 104 | + unfold smoothedPerronWeight | |
| 105 | + split_ifs with hn hnX | |
| 106 | + · exact ⟨zero_le_one, le_rfl⟩ | |
| 107 | + · have hs : 1 < Real.sqrt X := (Real.lt_sqrt (by norm_num)).mpr (by simpa using hX) | |
| 108 | + have hn0 : (0 : ℝ) < n := by linarith | |
| 109 | + have hlog : 0 < Real.log (Real.sqrt X) := Real.log_pos hs | |
| 110 | + constructor | |
| 111 | + · apply div_nonneg _ hlog.le | |
| 112 | + exact Real.log_nonneg ((one_le_div hn0).mpr hnX) | |
| 113 | + · apply (div_le_one hlog).mpr | |
| 114 | + apply Real.log_le_log (div_pos (by linarith) hn0) | |
| 115 | + apply (div_le_iff₀ hn0).mpr | |
| 116 | + have hsq := Real.sq_sqrt (by linarith : 0 ≤ X) | |
| 117 | + nlinarith [Real.sqrt_nonneg X] | |
| 118 | + · exact ⟨le_rfl, zero_le_one⟩ | |
| 119 | + | |
| 120 | +lemma smoothed_polynomial_odd_parseval (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) (u : ℂ) : | |
| 121 | + (2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, | |
| 122 | + ‖smoothedDirichletPolynomial χ ((N : ℝ) / 2) u‖ ^ 2 = | |
| 123 | + ∑ n ∈ Finset.range (⌊(N : ℝ) / 2⌋₊ + 1), if Nat.Coprime n N then | |
| 124 | + ‖(mangoldt n : ℂ) * (n : ℂ) ^ (-u) * smoothedPerronWeight ((N : ℝ) / 2) n‖ ^ 2 else 0 := by | |
| 125 | + let S := Finset.range (⌊(N : ℝ) / 2⌋₊ + 1) | |
| 126 | + let c : ℕ → ℂ := fun n => (mangoldt n : ℂ) * (n : ℂ) ^ (-u) * smoothedPerronWeight ((N : ℝ) / 2) n | |
| 127 | + have hpoly (χ : Character N) : smoothedDirichletPolynomial χ ((N : ℝ) / 2) u = | |
| 128 | + ∑ n ∈ S, c n * χ n := by | |
| 129 | + apply Finset.sum_congr rfl | |
| 130 | + intro n _ | |
| 131 | + dsimp [c] | |
| 132 | + ring | |
| 133 | + simp_rw [hpoly] | |
| 134 | + apply odd_character_short_parseval N hN hN4 S c | |
| 135 | + intro n hn hcn | |
| 136 | + have h0 : c 0 = 0 := by simp [c, mangoldt] | |
| 137 | + have hn0 : 0 < n := Nat.pos_of_ne_zero (by intro he; subst n; exact hcn h0) | |
| 138 | + refine ⟨hn0, ?_⟩ | |
| 139 | + by_contra hnN | |
| 140 | + have hreal : (N : ℝ) / 2 ≤ n := by | |
| 141 | + have hh : N ≤ 2 * n := le_of_not_gt hnN | |
| 142 | + exact (div_le_iff₀ (by norm_num)).mpr (by exact_mod_cast (show N ≤ n * 2 by omega)) | |
| 143 | + have hNreal : (4 : ℝ) ≤ N := by exact_mod_cast hN4 | |
| 144 | + have hw := smoothedPerronWeight_eq_zero_of_le (by linarith : 1 < (N : ℝ) / 2) n hreal | |
| 145 | + apply hcn | |
| 146 | + simp only [c, hw, Complex.ofReal_zero, mul_zero] | |
| 147 | + | |
| 148 | +end ConditionalGoldbach | |
+161 −0 ConditionalGoldbach/Proofs/CharacterStripTrace.lean added View file
| @@ -0,0 +1,161 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterTraceBounds | |
| 4 | + | |
| 5 | +/-! The arithmetic positive-trace construction on every positive Hardy strip. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex InnerProductSpace | |
| 11 | +open scoped Topology ComplexConjugate BigOperators | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma characterHardyFunction_representation_on_strip (N : ℕ) [NeZero N] | |
| 15 | + (hN4 : 4 ≤ N) (hGRH : GRH N) {a : ℝ} (ha0 : 0 < a) (ha : a < beta) | |
| 16 | + (χ : Character N) (hχ : χ ∈ oddCharacters N) : | |
| 17 | + ∃ g : HardySpace (a) beta, | |
| 18 | + (∀ s ∈ strip (a) beta, fourierLaplace g s = characterHardyFunction χ s) ∧ | |
| 19 | + ((boundaryTraces ha g).1 =ᵐ[volume] fun t => characterHardyFunction χ (line (a) t)) ∧ | |
| 20 | + ((boundaryTraces ha g).2 =ᵐ[volume] fun t => characterHardyFunction χ (line beta t)) := by | |
| 21 | + obtain ⟨L, hLp, hbound⟩ := logDerivative_uniform_bound a beta ha0 ha.le | |
| 22 | + have hL := hLp.le | |
| 23 | + have hlog : ∀ χ ∈ oddCharacters N, ∀ s : ℂ, s.re ∈ Icc a beta → | |
| 24 | + ‖logDerivative χ s‖ ≤ L * Real.log (N * (|s.im| + 2)) ^ 2 := by | |
| 25 | + intro χ hχ s hs | |
| 26 | + have hh := hbound N inferInstance hN4 hGRH χ | |
| 27 | + (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2) s.re hs s.im | |
| 28 | + have he : line s.re s.im = s := by apply Complex.ext <;> simp [line] | |
| 29 | + simpa only [he] using hh | |
| 30 | + let A : ℝ := L * (64 * (2 * N) ^ (1 / 4 : ℝ)) | |
| 31 | + have hA : 0 ≤ A := by dsimp [A]; positivity | |
| 32 | + have hN1 : (1 : ℝ) ≤ N := by exact_mod_cast (show 1 ≤ N by omega) | |
| 33 | + have hd (s : ℂ) (hs : s.re ∈ Icc (a) beta) := | |
| 34 | + characterHardyFunction_differentiableAt hGRH χ hχ (ha0.trans_le hs.1) | |
| 35 | + apply hardy_column_of_closedStrip_majorant ha | |
| 36 | + (fun s hs => (hd s ⟨hs.1.le, hs.2.le⟩).differentiableWithinAt) | |
| 37 | + (fun s hs => (hd s hs).continuousAt.continuousWithinAt) | |
| 38 | + (hardy_decay_integrable.const_mul (4 * A ^ 2)) | |
| 39 | + intro x hx t | |
| 40 | + apply weighted_line_square_bound (ha0.le.trans hx.1) t A hA | |
| 41 | + have hx' : (line x t).re ∈ Icc (a) beta := by simpa [line] using hx | |
| 42 | + have hh := hlog χ hχ (line x t) hx' | |
| 43 | + simp only [line, Complex.add_im, Complex.ofReal_im, Complex.mul_im, | |
| 44 | + Complex.ofReal_re, Complex.I_re, Complex.I_im, mul_one, mul_zero, add_zero, zero_add] at hh | |
| 45 | + apply hh.trans | |
| 46 | + calc | |
| 47 | + L * Real.log (N * (|t| + 2)) ^ 2 ≤ | |
| 48 | + L * ((64 * (2 * N) ^ (1 / 4 : ℝ)) * (1 + |t|) ^ (1 / 4 : ℝ)) := | |
| 49 | + mul_le_mul_of_nonneg_left (logarithm_square_le_quarter_power hN1 t) hL | |
| 50 | + _ = A * (1 + |t|) ^ (1 / 4 : ℝ) := by dsimp [A]; ring | |
| 51 | + | |
| 52 | +lemma arithmeticOperator_positive_trace_formula_on_strip (N : ℕ) [NeZero N] | |
| 53 | + (hN4 : 4 ≤ N) (hGRH : GRH N) {a : ℝ} (ha0 : 0 < a) (ha : a < beta) : | |
| 54 | + IsPositiveTraceClass (arithmeticOperator ha N) ∧ | |
| 55 | + positiveTrace (arithmeticOperator ha N) = | |
| 56 | + (2 / N.totient : ℝ) * ∑ χ ∈ oddCharacters N, | |
| 57 | + ((∫ t : ℝ, ‖characterHardyFunction χ (line (a) t)‖ ^ 2) + | |
| 58 | + ∫ t : ℝ, ‖characterHardyFunction χ (line beta t)‖ ^ 2) := by | |
| 59 | + classical | |
| 60 | + let ι := {χ : Character N // χ ∈ oddCharacters N} | |
| 61 | + have hgex (χ : ι) := characterHardyFunction_representation_on_strip N hN4 hGRH ha0 ha χ.val χ.property | |
| 62 | + choose g hg hgl hgr using hgex | |
| 63 | + let c : ℝ := 2 / N.totient | |
| 64 | + have hc : 0 ≤ c := by dsimp [c]; positivity | |
| 65 | + let v : ι → HardySpace (a) beta := fun χ => (Real.sqrt c : ℂ) • g χ | |
| 66 | + let f : ι → ℂ → ℂ := fun χ s => (Real.sqrt c : ℂ) * characterHardyFunction χ.val s | |
| 67 | + have hvf (χ : ι) (s : ℂ) (hs : s ∈ strip (a) beta) : fourierLaplace (v χ) s = f χ s := by | |
| 68 | + dsimp only [v] | |
| 69 | + rw [fourierLaplace_smul _ _ hs, hg χ s hs] | |
| 70 | + have hvl (χ : ι) : (boundaryTraces ha (v χ)).1 =ᵐ[volume] fun t => f χ (line (a) t) := by | |
| 71 | + dsimp only [v] | |
| 72 | + rw [boundaryTraces_smul] | |
| 73 | + filter_upwards [Lp.coeFn_smul (Real.sqrt c : ℂ) (boundaryTraces ha (g χ)).1, hgl χ] with t ht hg | |
| 74 | + change ((Real.sqrt c : ℂ) • (boundaryTraces ha (g χ)).1) t = _ | |
| 75 | + rw [ht, Pi.smul_apply, smul_eq_mul, hg] | |
| 76 | + have hvr (χ : ι) : (boundaryTraces ha (v χ)).2 =ᵐ[volume] fun t => f χ (line beta t) := by | |
| 77 | + dsimp only [v] | |
| 78 | + rw [boundaryTraces_smul] | |
| 79 | + filter_upwards [Lp.coeFn_smul (Real.sqrt c : ℂ) (boundaryTraces ha (g χ)).2, hgr χ] with t ht hg | |
| 80 | + change ((Real.sqrt c : ℂ) • (boundaryTraces ha (g χ)).2) t = _ | |
| 81 | + rw [ht, Pi.smul_apply, smul_eq_mul, hg] | |
| 82 | + have hc_cast : (c : ℂ) = (2 : ℂ) / N.totient := by dsimp [c]; push_cast; rfl | |
| 83 | + have hc_sq : (Real.sqrt c : ℂ) ^ 2 = (c : ℂ) := by rw [← Complex.ofReal_pow, Real.sq_sqrt hc] | |
| 84 | + have hgram (s z : ℂ) : weightedAnalyticKernel (characterKernel N) s z = ∑ χ : ι, f χ s * conj (f χ z) := by | |
| 85 | + dsimp only [f, weightedAnalyticKernel, characterHardyFunction] | |
| 86 | + rw [Finset.sum_coe_sort (oddCharacters N) (fun χ : Character N => | |
| 87 | + (Real.sqrt c : ℂ) * (logDerivative χ s / (1 + s)) * | |
| 88 | + conj ((Real.sqrt c : ℂ) * (logDerivative χ z / (1 + z))))] | |
| 89 | + simp only [characterKernel, Complex.conj_conj] | |
| 90 | + rw [Finset.mul_sum, Finset.sum_div] | |
| 91 | + apply Finset.sum_congr rfl | |
| 92 | + intro χ hχ | |
| 93 | + rw [map_mul, Complex.conj_ofReal, map_div₀, map_add, map_one] | |
| 94 | + calc | |
| 95 | + (2 / (N.totient : ℂ) * (logDerivative χ s * conj (logDerivative χ z))) / | |
| 96 | + ((1 + s) * (1 + conj z)) = | |
| 97 | + (Real.sqrt c : ℂ) ^ 2 * (logDerivative χ s / (1 + s)) * | |
| 98 | + (conj (logDerivative χ z) / (1 + conj z)) := by | |
| 99 | + rw [hc_sq, hc_cast] | |
| 100 | + simp only [div_eq_mul_inv, mul_inv_rev] | |
| 101 | + ring | |
| 102 | + _ = _ := by ring | |
| 103 | + have hrep := hardyFiniteGram_represents ha N v f (weightedAnalyticKernel (characterKernel N)) hvf hvl hvr hgram | |
| 104 | + have he : arithmeticOperator ha N = ∑ χ : ι, rankOne ℂ (v χ) (v χ) := | |
| 105 | + kernelOperator_eq_of_represents ha N hrep | |
| 106 | + have ht := rankOne_tsum_positiveTraceClass v (hasSum_fintype (fun χ : ι => ‖v χ‖ ^ 2)).summable | |
| 107 | + (Classical.choice (hardySpace_exists_nat_hilbertBasis (a) beta)) | |
| 108 | + rw [tsum_fintype, tsum_fintype] at ht | |
| 109 | + refine ⟨he ▸ ht.1, ?_⟩ | |
| 110 | + rw [he, ht.2] | |
| 111 | + have hnorm (χ : ι) : ‖v χ‖ ^ 2 = c * | |
| 112 | + ((∫ t : ℝ, ‖characterHardyFunction χ.val (line (a) t)‖ ^ 2) + | |
| 113 | + ∫ t : ℝ, ‖characterHardyFunction χ.val (line beta t)‖ ^ 2) := by | |
| 114 | + dsimp only [v] | |
| 115 | + rw [norm_smul, mul_pow, Complex.norm_real, Real.norm_eq_abs, | |
| 116 | + abs_of_nonneg (Real.sqrt_nonneg _), Real.sq_sqrt hc, boundaryTraces_norm_sq ha (g χ), | |
| 117 | + l2_norm_sq_integral, l2_norm_sq_integral] | |
| 118 | + congr 1 | |
| 119 | + apply congrArg₂ (· + ·) | |
| 120 | + · exact integral_congr_ae ((hgl χ).fun_comp (fun z : ℂ => ‖z‖ ^ 2)) | |
| 121 | + · exact integral_congr_ae ((hgr χ).fun_comp (fun z : ℂ => ‖z‖ ^ 2)) | |
| 122 | + simp_rw [hnorm] | |
| 123 | + rw [← Finset.mul_sum, Finset.sum_coe_sort (oddCharacters N) (fun χ : Character N => | |
| 124 | + (∫ t : ℝ, ‖characterHardyFunction χ (line (a) t)‖ ^ 2) + | |
| 125 | + ∫ t : ℝ, ‖characterHardyFunction χ (line beta t)‖ ^ 2)] | |
| 126 | + | |
| 127 | +lemma arithmeticOperator_trace_le_averages_on_strip (N : ℕ) [NeZero N] | |
| 128 | + (hN4 : 4 ≤ N) (hGRH : GRH N) {a : ℝ} (ha0 : 0 < a) (ha : a < beta) : | |
| 129 | + IsPositiveTraceClass (arithmeticOperator ha N) ∧ | |
| 130 | + hsNorm (arithmeticOperator ha N) ≤ positiveTrace (arithmeticOperator ha N) ∧ | |
| 131 | + positiveTrace (arithmeticOperator ha N) ≤ | |
| 132 | + averagedLogDerivative N (a) + averagedLogDerivative N beta := by | |
| 133 | + obtain ⟨hp, htrace⟩ := arithmeticOperator_positive_trace_formula_on_strip N hN4 hGRH ha0 ha | |
| 134 | + refine ⟨hp, hp.hsNorm_le_trace, ?_⟩ | |
| 135 | + rw [htrace, averagedLogDerivative, averagedLogDerivative, ← mul_add, ← Finset.sum_add_distrib] | |
| 136 | + apply mul_le_mul_of_nonneg_left _ (by positivity) | |
| 137 | + apply Finset.sum_le_sum | |
| 138 | + intro χ hχ | |
| 139 | + exact add_le_add | |
| 140 | + (characterHardyFunction_energy_le N hN4 hGRH χ hχ (a) ha0) | |
| 141 | + (characterHardyFunction_energy_le N hN4 hGRH χ hχ beta (by norm_num [beta])) | |
| 142 | + | |
| 143 | +lemma arithmeticOperator_trace_bound_of_average_on_strip (N : ℕ) [NeZero N] | |
| 144 | + (hN4 : 4 ≤ N) (hGRH : GRH N) {a : ℝ} (ha0 : 0 < a) (ha : a < beta) | |
| 145 | + (C : ℝ) (hC : 0 ≤ C) | |
| 146 | + (haverage : ∀ σ : ℝ, 0 < σ → σ ≤ beta → | |
| 147 | + averagedLogDerivative N σ ≤ C * (Real.log N ^ 2 + σ⁻¹ ^ 2)) : | |
| 148 | + IsPositiveTraceClass (arithmeticOperator ha N) ∧ | |
| 149 | + hsNorm (arithmeticOperator ha N) ≤ positiveTrace (arithmeticOperator ha N) ∧ | |
| 150 | + positiveTrace (arithmeticOperator ha N) ≤ 2 * C * (Real.log N ^ 2 + (a)⁻¹ ^ 2) := by | |
| 151 | + obtain ⟨hp, hhs, hb⟩ := arithmeticOperator_trace_le_averages_on_strip N hN4 hGRH ha0 ha | |
| 152 | + refine ⟨hp, hhs, hb.trans ?_⟩ | |
| 153 | + have hi : beta⁻¹ ≤ (a)⁻¹ := by | |
| 154 | + simpa only [one_div] using one_div_le_one_div_of_le ha0 ha.le | |
| 155 | + have hisq := (sq_le_sq₀ (by norm_num [beta] : (0 : ℝ) ≤ beta⁻¹) (by positivity)).mpr hi | |
| 156 | + have hA := haverage (a) ha0 ha.le | |
| 157 | + have hB := haverage beta (by norm_num [beta]) le_rfl | |
| 158 | + have hm := mul_le_mul_of_nonneg_left hisq hC | |
| 159 | + nlinarith | |
| 160 | + | |
| 161 | +end ConditionalGoldbach | |
+107 −0 ConditionalGoldbach/Proofs/CharacterTraceBounds.lean added View file
| @@ -0,0 +1,107 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterGramOperator | |
| 4 | + | |
| 5 | +/-! Comparison of the arithmetic trace with the two averaged logarithmic-derivative energies. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex InnerProductSpace | |
| 11 | +open scoped Topology ComplexConjugate BigOperators | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma norm_one_add_line_sq (x t : ℝ) : ‖1 + line x t‖ ^ 2 = (1 + x) ^ 2 + t ^ 2 := by | |
| 15 | + rw [← Complex.normSq_eq_norm_sq, Complex.normSq_apply] | |
| 16 | + simp only [line, Complex.add_re, Complex.one_re, Complex.ofReal_re, Complex.mul_re, | |
| 17 | + Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, sub_zero, add_zero, | |
| 18 | + Complex.add_im, Complex.one_im, Complex.mul_im, mul_one, zero_add] | |
| 19 | + ring | |
| 20 | + | |
| 21 | +lemma logDerivative_weighted_square_integrable (N : ℕ) [NeZero N] | |
| 22 | + (hN4 : 4 ≤ N) (hGRH : GRH N) (χ : Character N) (hχ : χ ∈ oddCharacters N) | |
| 23 | + (σ : ℝ) (hσ : 0 < σ) : | |
| 24 | + Integrable (fun t : ℝ => ‖logDerivative χ (line σ t)‖ ^ 2 / (1 + t ^ 2)) := by | |
| 25 | + obtain ⟨L, hL, hb⟩ := logDerivative_uniform_bound σ σ hσ le_rfl | |
| 26 | + have hlog := hb N inferInstance hN4 hGRH χ | |
| 27 | + (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2) σ ⟨le_rfl, le_rfl⟩ | |
| 28 | + let A : ℝ := L * (64 * (2 * N) ^ (1 / 4 : ℝ)) | |
| 29 | + have hA : 0 ≤ A := by dsimp [A]; positivity | |
| 30 | + have hN1 : (1 : ℝ) ≤ N := by exact_mod_cast (by omega : 1 ≤ N) | |
| 31 | + have hct : Continuous (fun t : ℝ => logDerivative χ (line σ t)) := by | |
| 32 | + apply continuous_iff_continuousAt.mpr | |
| 33 | + intro t | |
| 34 | + exact (odd_logDerivative_analyticAt_of_GRH hGRH χ hχ (by simpa [line] using hσ)).continuousAt.comp | |
| 35 | + (show ContinuousAt (fun t : ℝ => line σ t) t by unfold line; fun_prop) | |
| 36 | + have hm : AEStronglyMeasurable (fun t : ℝ => ‖logDerivative χ (line σ t)‖ ^ 2 / (1 + t ^ 2)) volume := | |
| 37 | + ((hct.norm.pow 2).div (by fun_prop) (by intro t; positivity)).aestronglyMeasurable | |
| 38 | + apply (hardy_decay_integrable.const_mul (4 * A ^ 2)).mono' hm | |
| 39 | + filter_upwards [] with t | |
| 40 | + rw [Real.norm_eq_abs, abs_of_nonneg (by positivity)] | |
| 41 | + have hv : ‖logDerivative χ (line σ t)‖ ≤ A * (1 + |t|) ^ (1 / 4 : ℝ) := by | |
| 42 | + apply (hlog t).trans | |
| 43 | + calc | |
| 44 | + _ ≤ L * ((64 * (2 * N) ^ (1 / 4 : ℝ)) * (1 + |t|) ^ (1 / 4 : ℝ)) := | |
| 45 | + mul_le_mul_of_nonneg_left (logarithm_square_le_quarter_power hN1 t) hL.le | |
| 46 | + _ = _ := by dsimp [A]; ring | |
| 47 | + have hh := weighted_line_square_bound (by norm_num : (0 : ℝ) ≤ 0) t A hA _ hv | |
| 48 | + simpa only [norm_div, div_pow, norm_one_add_line_sq, add_zero, one_pow] using hh | |
| 49 | + | |
| 50 | +lemma characterHardyFunction_energy_le (N : ℕ) [NeZero N] | |
| 51 | + (hN4 : 4 ≤ N) (hGRH : GRH N) (χ : Character N) (hχ : χ ∈ oddCharacters N) | |
| 52 | + (σ : ℝ) (hσ : 0 < σ) : | |
| 53 | + (∫ t : ℝ, ‖characterHardyFunction χ (line σ t)‖ ^ 2) ≤ | |
| 54 | + ∫ t : ℝ, ‖logDerivative χ (line σ t)‖ ^ 2 / (1 + t ^ 2) := by | |
| 55 | + have hi := logDerivative_weighted_square_integrable N hN4 hGRH χ hχ σ hσ | |
| 56 | + have hbound (t : ℝ) : ‖characterHardyFunction χ (line σ t)‖ ^ 2 ≤ | |
| 57 | + ‖logDerivative χ (line σ t)‖ ^ 2 / (1 + t ^ 2) := by | |
| 58 | + rw [characterHardyFunction, norm_div, div_pow, norm_one_add_line_sq] | |
| 59 | + apply div_le_div_of_nonneg_left (sq_nonneg _) (by positivity) | |
| 60 | + nlinarith [sq_nonneg σ] | |
| 61 | + have hc : Continuous (fun t : ℝ => characterHardyFunction χ (line σ t)) := by | |
| 62 | + apply continuous_iff_continuousAt.mpr | |
| 63 | + intro t | |
| 64 | + exact (characterHardyFunction_differentiableAt hGRH χ hχ (by simpa [line] using hσ)).continuousAt.comp | |
| 65 | + (show ContinuousAt (fun t : ℝ => line σ t) t by unfold line; fun_prop) | |
| 66 | + have hil : Integrable (fun t : ℝ => ‖characterHardyFunction χ (line σ t)‖ ^ 2) := by | |
| 67 | + apply hi.mono' (hc.norm.pow 2).aestronglyMeasurable | |
| 68 | + filter_upwards [] with t | |
| 69 | + simpa only [Pi.pow_apply, Real.norm_eq_abs, abs_sq] using hbound t | |
| 70 | + exact integral_mono hil hi hbound | |
| 71 | + | |
| 72 | +lemma arithmeticOperator_trace_le_averages (N : ℕ) [NeZero N] | |
| 73 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) : | |
| 74 | + IsPositiveTraceClass (arithmeticOperator ha N) ∧ | |
| 75 | + hsNorm (arithmeticOperator ha N) ≤ positiveTrace (arithmeticOperator ha N) ∧ | |
| 76 | + positiveTrace (arithmeticOperator ha N) ≤ | |
| 77 | + averagedLogDerivative N (alpha N) + averagedLogDerivative N beta := by | |
| 78 | + obtain ⟨hp, htrace⟩ := arithmeticOperator_positive_trace_formula N hlarge hGRH ha | |
| 79 | + refine ⟨hp, hp.hsNorm_le_trace, ?_⟩ | |
| 80 | + rw [htrace, averagedLogDerivative, averagedLogDerivative, ← mul_add, ← Finset.sum_add_distrib] | |
| 81 | + apply mul_le_mul_of_nonneg_left _ (by positivity) | |
| 82 | + apply Finset.sum_le_sum | |
| 83 | + intro χ hχ | |
| 84 | + exact add_le_add | |
| 85 | + (characterHardyFunction_energy_le N (large_parameters hlarge).1 hGRH χ hχ (alpha N) (large_alpha_pos hlarge)) | |
| 86 | + (characterHardyFunction_energy_le N (large_parameters hlarge).1 hGRH χ hχ beta (by norm_num [beta])) | |
| 87 | + | |
| 88 | +lemma arithmeticOperator_trace_bound_of_average (N : ℕ) [NeZero N] | |
| 89 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) | |
| 90 | + (C : ℝ) (hC : 0 ≤ C) | |
| 91 | + (haverage : ∀ σ : ℝ, 0 < σ → σ ≤ beta → | |
| 92 | + averagedLogDerivative N σ ≤ C * (Real.log N ^ 2 + σ⁻¹ ^ 2)) : | |
| 93 | + IsPositiveTraceClass (arithmeticOperator ha N) ∧ | |
| 94 | + hsNorm (arithmeticOperator ha N) ≤ positiveTrace (arithmeticOperator ha N) ∧ | |
| 95 | + positiveTrace (arithmeticOperator ha N) ≤ 2 * C * (Real.log N ^ 2 + (alpha N)⁻¹ ^ 2) := by | |
| 96 | + obtain ⟨hp, hhs, hb⟩ := arithmeticOperator_trace_le_averages N hlarge hGRH ha | |
| 97 | + refine ⟨hp, hhs, hb.trans ?_⟩ | |
| 98 | + have ha0 := large_alpha_pos hlarge | |
| 99 | + have hi : beta⁻¹ ≤ (alpha N)⁻¹ := by | |
| 100 | + simpa only [one_div] using one_div_le_one_div_of_le ha0 ha.le | |
| 101 | + have hisq := (sq_le_sq₀ (by norm_num [beta] : (0 : ℝ) ≤ beta⁻¹) (by positivity)).mpr hi | |
| 102 | + have hA := haverage (alpha N) ha0 ha.le | |
| 103 | + have hB := haverage beta (by norm_num [beta]) le_rfl | |
| 104 | + have hm := mul_le_mul_of_nonneg_left hisq hC | |
| 105 | + nlinarith | |
| 106 | + | |
| 107 | +end ConditionalGoldbach | |
+53 −0 ConditionalGoldbach/Proofs/CharacterZeroCompactSets.lean added View file
| @@ -0,0 +1,53 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterZeroReflection | |
| 4 | + | |
| 5 | +/-! Compact sets in the multiplicity-indexed zero space and their completed-L exclusion. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open Set Complex Metric Filter | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma zeroIndex_preimage_compact_finite {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) | |
| 15 | + {K : Set ℂ} (hK : IsCompact K) : ({p : ZeroIndex χ | p.val.1 ∈ K} : Set _).Finite := by | |
| 16 | + classical | |
| 17 | + let Z : Set ℂ := K ∩ χ.LFunction ⁻¹' {0} | |
| 18 | + have hZ : Z.Finite := LFunction_zeros_compact_finite χ hχ hK | |
| 19 | + have hB : (⋃ z ∈ Z, ({z} : Set ℂ) ×ˢ Iio (analyticOrderNatAt χ.LFunction z)).Finite := | |
| 20 | + hZ.biUnion (fun z _ => (finite_singleton z).prod (Set.finite_Iio _)) | |
| 21 | + apply (hB.preimage Subtype.val_injective.injOn).subset | |
| 22 | + intro p hp | |
| 23 | + simp only [mem_preimage,mem_iUnion,mem_prod,mem_singleton_iff,mem_Iio] | |
| 24 | + exact ⟨p.val.1,⟨hp,p.property.2.2.1⟩,rfl,p.property.2.2.2⟩ | |
| 25 | + | |
| 26 | +lemma zeroIndex_bounded_height_finite {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) | |
| 27 | + (T : ℝ) : ({p : ZeroIndex χ | |p.val.1.im| ≤ T} : Set _).Finite := by | |
| 28 | + apply (zeroIndex_preimage_compact_finite χ hχ (isCompact_closedBall (0 : ℂ) (T+1))).subset | |
| 29 | + intro p hp | |
| 30 | + change |p.val.1.im| ≤ T at hp | |
| 31 | + apply mem_closedBall_zero_iff.mpr | |
| 32 | + have hre : |p.val.1.re| ≤ 1 := by rw [abs_of_pos p.property.1]; exact p.property.2.1.le | |
| 33 | + exact (Complex.norm_le_abs_re_add_abs_im _).trans (by linarith) | |
| 34 | + | |
| 35 | +lemma completedL_zero_at_zeroIndex {d : ℕ} [NeZero d] (χ : Character d) (p : ZeroIndex χ) : | |
| 36 | + completedL χ p.val.1 = 0 := by | |
| 37 | + have hz := p.property.2.2.1 | |
| 38 | + have hp0 : p.val.1 ≠ 0 := by | |
| 39 | + intro he | |
| 40 | + have hh := p.property.1 | |
| 41 | + rw [he,zero_re] at hh | |
| 42 | + linarith | |
| 43 | + rw [χ.LFunction_eq_completed_div_gammaFactor p.val.1 (Or.inl hp0)] at hz | |
| 44 | + have hC : χ.completedLFunction p.val.1 = 0 := | |
| 45 | + (div_eq_zero_iff.mp hz).resolve_right (gammaFactor_ne_zero_re_pos χ p.property.1) | |
| 46 | + simp only [completedL,hC,mul_zero] | |
| 47 | + | |
| 48 | +lemma zeroIndex_ne_of_completedL_ne {d : ℕ} [NeZero d] (χ : Character d) {z : ℂ} | |
| 49 | + (hz : completedL χ z ≠ 0) (p : ZeroIndex χ) : z ≠ p.val.1 := by | |
| 50 | + intro he | |
| 51 | + exact hz (he ▸ completedL_zero_at_zeroIndex χ p) | |
| 52 | + | |
| 53 | +end ConditionalGoldbach | |
+133 −0 ConditionalGoldbach/Proofs/CharacterZeroCounting.lean added View file
| @@ -0,0 +1,133 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Order.Interval.Set.Nat | |
| 4 | +public import ConditionalGoldbach.Proofs.CharacterZerosCompact | |
| 5 | +public import ConditionalGoldbach.Proofs.CharacterGrowthFoundation | |
| 6 | +public import Mathlib.Analysis.Complex.JensenFormula | |
| 7 | +public import Mathlib.Data.Set.Card.Arithmetic | |
| 8 | + | |
| 9 | +/-! Jensen bounds with the same multiplicity index as the paper. -/ | |
| 10 | +public section | |
| 11 | + | |
| 12 | +set_option autoImplicit false | |
| 13 | +noncomputable section | |
| 14 | +open scoped BigOperators ComplexConjugate Topology | |
| 15 | +open Set Complex Metric Filter MeromorphicOn | |
| 16 | +namespace ConditionalGoldbach | |
| 17 | + | |
| 18 | +lemma divisor_eq_orderNat {f : ℂ → ℂ} {K : Set ℂ} (hf : AnalyticOnNhd ℂ f K) | |
| 19 | + {z : ℂ} (hz : z ∈ K) : divisor f K z = (analyticOrderNatAt f z : ℤ) := by | |
| 20 | + rw [hf.divisor_apply hz] | |
| 21 | + by_cases h : analyticOrderAt f z = ⊤ | |
| 22 | + · simp [analyticOrderNatAt, h] | |
| 23 | + · rw [← Nat.cast_analyticOrderNatAt h] | |
| 24 | + simp | |
| 25 | + | |
| 26 | +lemma zeroIndex_ncard_le_divisor_sum {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) | |
| 27 | + (S : Set (ZeroIndex χ)) (c : ℂ) (r : ℝ) | |
| 28 | + (hS : ∀ p ∈ S, p.val.1 ∈ closedBall c r) : | |
| 29 | + (S.ncard : ℝ) ≤ ∑ᶠ z, (divisor χ.LFunction (closedBall c r) z : ℝ) := by | |
| 30 | + classical | |
| 31 | + let K : Set ℂ := closedBall c r ∩ χ.LFunction ⁻¹' {0} | |
| 32 | + have hK : K.Finite := LFunction_zeros_compact_finite χ hχ (isCompact_closedBall ..) | |
| 33 | + let B : Set (ℂ × ℕ) := ⋃ z ∈ K, ({z} : Set ℂ) ×ˢ Iio (analyticOrderNatAt χ.LFunction z) | |
| 34 | + have hB : B.Finite := hK.biUnion (fun z _ => (finite_singleton z).prod (Set.finite_Iio _)) | |
| 35 | + have hcard : S.ncard ≤ B.ncard := by | |
| 36 | + apply Set.ncard_le_ncard_of_injOn Subtype.val _ Subtype.val_injective.injOn hB | |
| 37 | + intro p hp | |
| 38 | + simp only [B, mem_iUnion, mem_prod, mem_singleton_iff, mem_Iio] | |
| 39 | + exact ⟨p.val.1, ⟨hS p hp, p.property.2.2.1⟩, rfl, p.property.2.2.2⟩ | |
| 40 | + have hcardB : B.ncard ≤ ∑ z ∈ hK.toFinset, analyticOrderNatAt χ.LFunction z := by | |
| 41 | + have hb := hK.ncard_biUnion_le (fun z => ({z} : Set ℂ) ×ˢ Iio (analyticOrderNatAt χ.LFunction z)) | |
| 42 | + simpa only [ncard_prod, ncard_singleton, Set.ncard_Iio_nat, one_mul, | |
| 43 | + finsum_mem_eq_finite_toFinset_sum _ hK] using hb | |
| 44 | + have ha : AnalyticOnNhd ℂ χ.LFunction (closedBall c r) := fun z _ => | |
| 45 | + (χ.differentiable_LFunction hχ).analyticAt z | |
| 46 | + have heq : (∑ z ∈ hK.toFinset, (analyticOrderNatAt χ.LFunction z : ℝ)) = | |
| 47 | + ∑ᶠ z, (divisor χ.LFunction (closedBall c r) z : ℝ) := by | |
| 48 | + rw [finsum_eq_sum_of_support_subset] | |
| 49 | + · apply Finset.sum_congr rfl | |
| 50 | + intro z hz | |
| 51 | + rw [divisor_eq_orderNat ha (hK.mem_toFinset.mp hz).1] | |
| 52 | + norm_cast | |
| 53 | + · intro z hz | |
| 54 | + simp only [Function.mem_support, ne_eq, Int.cast_eq_zero] at hz | |
| 55 | + have hzB := (divisor χ.LFunction (closedBall c r)).supportWithinDomain hz | |
| 56 | + have hz0 : χ.LFunction z = 0 := by | |
| 57 | + by_contra hne | |
| 58 | + have hh := ((χ.differentiable_LFunction hχ).analyticAt z).analyticOrderAt_eq_zero.mpr hne | |
| 59 | + have hd := divisor_eq_orderNat ha hzB | |
| 60 | + simp only [analyticOrderNatAt, hh, ENat.toNat_zero, Int.natCast_zero] at hd | |
| 61 | + exact hz hd | |
| 62 | + exact hK.mem_toFinset.mpr ⟨hzB,hz0⟩ | |
| 63 | + rw [← heq, ← Nat.cast_sum] | |
| 64 | + exact_mod_cast hcard.trans hcardB | |
| 65 | + | |
| 66 | +lemma LFunction_zero_count_right_half_closed {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) | |
| 67 | + (t : ℝ) : | |
| 68 | + (({p : ZeroIndex χ | 1/2 ≤ p.val.1.re ∧ t ≤ p.val.1.im ∧ p.val.1.im ≤ t+1} : Set _).ncard : ℝ) | |
| 69 | + ≤ Real.log (26*(d : ℝ)*(|t|+2)) / Real.log ((11/4 : ℝ)/(8/3)) := by | |
| 70 | + let c : ℂ := 3 + ((t+1/2 : ℝ) : ℂ)*I | |
| 71 | + let S : Set (ZeroIndex χ) := {p | 1/2 ≤ p.val.1.re ∧ t ≤ p.val.1.im ∧ p.val.1.im ≤ t+1} | |
| 72 | + have hd : (1 : ℝ) ≤ d := by exact_mod_cast Nat.one_le_iff_ne_zero.mpr (NeZero.ne d) | |
| 73 | + have hcre : c.re = 3 := by simp [c] | |
| 74 | + have hcim : c.im = t+1/2 := by simp [c] | |
| 75 | + have hcnorm : ‖c‖ ≤ 7/2+|t| := by | |
| 76 | + calc | |
| 77 | + _ ≤ |c.re|+|c.im| := Complex.norm_le_abs_re_add_abs_im _ | |
| 78 | + _ = 3+|t+1/2| := by rw [hcre,hcim]; norm_num | |
| 79 | + _ ≤ _ := by have hh := abs_add_le t (1/2 : ℝ); norm_num at hh; linarith | |
| 80 | + have ha : AnalyticOnNhd ℂ χ.LFunction (closedBall c |(11/4 : ℝ)|) := fun z _ => | |
| 81 | + (χ.differentiable_LFunction hχ).analyticAt z | |
| 82 | + have hlower : (1/2 : ℝ) ≤ ‖χ.LFunction c‖ := LFunction_right_lower_bound χ c hcre.ge | |
| 83 | + have hbound (z : ℂ) (hz : z ∈ sphere c |(11/4 : ℝ)|) : | |
| 84 | + ‖χ.LFunction z‖ ≤ 13*(d : ℝ)*(|t|+2) := by | |
| 85 | + have hzdist : ‖z-c‖ = 11/4 := by simpa only [mem_sphere, dist_eq_norm, abs_of_pos (by norm_num : (0 : ℝ)<11/4)] using hz | |
| 86 | + have hzre : 1/4 ≤ z.re := by | |
| 87 | + have hh := (neg_le_abs (z-c).re).trans (Complex.abs_re_le_norm (z-c)) | |
| 88 | + simp only [sub_re,hcre,hzdist] at hh | |
| 89 | + linarith | |
| 90 | + have hpoly := LFunction_polynomial_bound χ hχ z (by linarith) | |
| 91 | + have hdiv : ‖z‖/z.re ≤ 4*‖z‖ := by | |
| 92 | + have hh := div_le_div_of_nonneg_left (norm_nonneg z) (by norm_num : (0 : ℝ)<1/4) hzre | |
| 93 | + convert hh using 1; ring | |
| 94 | + have hnorm := norm_add_le (z-c) c | |
| 95 | + rw [sub_add_cancel, hzdist] at hnorm | |
| 96 | + apply hpoly.trans | |
| 97 | + have hn : 1+‖z‖/z.re ≤ 13*(|t|+2) := by linarith [abs_nonneg t] | |
| 98 | + convert mul_le_mul_of_nonneg_left hn (by linarith : (0 : ℝ)≤d) using 1; ring | |
| 99 | + have hzero : χ.LFunction c ≠ 0 := by intro he; rw [he,norm_zero] at hlower; norm_num at hlower | |
| 100 | + have hJ := ha.sum_divisor_le (r := 8/3) (R := 11/4) (M := 13*(d : ℝ)*(|t|+2)) | |
| 101 | + (by norm_num) (by norm_num) (by nlinarith [abs_nonneg t]) hzero hbound | |
| 102 | + have hS : ∀ p ∈ S, p.val.1 ∈ closedBall c (8/3) := by | |
| 103 | + intro p hp | |
| 104 | + have hre : |(p.val.1-c).re| ≤ 5/2 := by | |
| 105 | + apply abs_le.mpr | |
| 106 | + simp only [sub_re,hcre] | |
| 107 | + exact ⟨by linarith [hp.1], by linarith [p.property.2.1]⟩ | |
| 108 | + have him : |(p.val.1-c).im| ≤ 1/2 := by | |
| 109 | + apply abs_le.mpr | |
| 110 | + simp only [sub_im,hcim] | |
| 111 | + exact ⟨by linarith [hp.2.1], by linarith [hp.2.2]⟩ | |
| 112 | + have hre2 := (sq_le_sq₀ (abs_nonneg _) (by norm_num : (0 : ℝ) ≤ 5/2)).mpr hre | |
| 113 | + have him2 := (sq_le_sq₀ (abs_nonneg _) (by norm_num : (0 : ℝ) ≤ 1/2)).mpr him | |
| 114 | + simp only [sq_abs] at hre2 him2 | |
| 115 | + rw [mem_closedBall, dist_eq_norm] | |
| 116 | + have hsq : ‖p.val.1-c‖^2 = (p.val.1-c).re^2+(p.val.1-c).im^2 := by | |
| 117 | + rw [← Complex.normSq_eq_norm_sq, Complex.normSq_apply] | |
| 118 | + ring | |
| 119 | + nlinarith [norm_nonneg (p.val.1-c)] | |
| 120 | + apply (zeroIndex_ncard_le_divisor_sum χ hχ S c (8/3) hS).trans | |
| 121 | + have hJ' : (∑ᶠ z, (divisor χ.LFunction (closedBall c (8/3)) z : ℝ)) ≤ | |
| 122 | + Real.log (13*(d : ℝ)*(|t|+2)/‖χ.LFunction c‖) / Real.log ((11/4 : ℝ)/(8/3)) := by | |
| 123 | + convert hJ using 1 | |
| 124 | + · rw [abs_of_pos (by norm_num : (0 : ℝ) < 8/3)] | |
| 125 | + simpa using (map_finsum (Int.castRingHom ℝ) | |
| 126 | + ((divisor χ.LFunction (closedBall c (8/3))).finiteSupport (isCompact_closedBall ..))).symm | |
| 127 | + apply hJ'.trans | |
| 128 | + apply div_le_div_of_nonneg_right _ (Real.log_nonneg (by norm_num)) | |
| 129 | + apply Real.log_le_log (by positivity) | |
| 130 | + apply (div_le_iff₀ (by linarith : 0 < ‖χ.LFunction c‖)).mpr | |
| 131 | + nlinarith [mul_nonneg (show 0 ≤ (d : ℝ)*(|t|+2) by positivity) (sub_nonneg.mpr hlower)] | |
| 132 | + | |
| 133 | +end ConditionalGoldbach | |
+73 −0 ConditionalGoldbach/Proofs/CharacterZeroExpansion.lean added View file
| @@ -0,0 +1,73 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HadamardLimit | |
| 4 | +public import ConditionalGoldbach.Proofs.CharacterGammaFactor | |
| 5 | +public import ConditionalGoldbach.Proofs.CharacterEulerCorrection | |
| 6 | +public import ConditionalGoldbach.Proofs.CharacterGrowth | |
| 7 | + | |
| 8 | +/-! The paper's complete logarithmic-derivative expansion, with its primitive zeros and Euler corrections. -/ | |
| 9 | +public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open scoped BigOperators ComplexConjugate Topology | |
| 14 | +open Set Complex Metric Filter | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | +attribute [local instance] conductorNeZero | |
| 17 | + | |
| 18 | +lemma logDerivative_zero_expansion {N : ℕ} [NeZero N] (hGRH : GRH N) | |
| 19 | + (χ : Character N) (hχ : χ ∈ oddCharacters N) (s : ℂ) (hs : 0 < s.re) : | |
| 20 | + logDerivative χ s = zeroDifference χ.primitiveCharacter (1/2+s) 2 + | |
| 21 | + deriv χ.LFunction 2/χ.LFunction 2 - | |
| 22 | + (deriv Gamma (3/4+s/2)/Gamma (3/4+s/2)-deriv Gamma (3/2)/Gamma (3/2))/2 + | |
| 23 | + eulerCorrection χ (1/2+s)-eulerCorrection χ 2 := by | |
| 24 | + have hodd := (Finset.mem_filter.mp hχ).2 | |
| 25 | + have hχn := odd_character_ne_one χ hodd | |
| 26 | + have hχp := primitiveCharacter_ne_one_of_ne_one χ hχn | |
| 27 | + have hoddp := primitiveCharacter_odd χ hodd | |
| 28 | + have hu : 0 < (1/2+s).re := by norm_num; linarith | |
| 29 | + have hLu : χ.primitiveCharacter.LFunction (1/2+s) ≠ 0 := | |
| 30 | + primitive_LFunction_ne_zero_of_GRH hGRH χ.conductor_dvd_level χ.primitiveCharacter | |
| 31 | + χ.primitiveCharacter_isPrimitive hχp (by norm_num; exact hs) | |
| 32 | + have hL2 : χ.primitiveCharacter.LFunction 2 ≠ 0 := | |
| 33 | + χ.primitiveCharacter.LFunction_ne_zero_of_one_le_re (Or.inl hχp) (by norm_num) | |
| 34 | + have hCu : completedL χ.primitiveCharacter (1/2+s) ≠ 0 := by | |
| 35 | + intro h | |
| 36 | + exact hLu ((completedL_eq_zero_iff χ.primitiveCharacter hχp χ.primitiveCharacter_isPrimitive _).mp h).2.2 | |
| 37 | + have hC2 : completedL χ.primitiveCharacter 2 ≠ 0 := by | |
| 38 | + intro h | |
| 39 | + exact hL2 ((completedL_eq_zero_iff χ.primitiveCharacter hχp χ.primitiveCharacter_isPrimitive _).mp h).2.2 | |
| 40 | + have hH := completedL_logDerivative_difference χ.primitiveCharacter hχp | |
| 41 | + χ.primitiveCharacter_isPrimitive (1/2+s) 2 hCu hC2 | |
| 42 | + change logDeriv (completedL χ.primitiveCharacter) (1/2+s) - | |
| 43 | + logDeriv (completedL χ.primitiveCharacter) 2 = _ at hH | |
| 44 | + rw [completedL_logDeriv_odd χ.primitiveCharacter hoddp hu hLu, | |
| 45 | + completedL_logDeriv_odd χ.primitiveCharacter hoddp (by norm_num : 0<(2 : ℂ).re) hL2, | |
| 46 | + show ((1/2+s : ℂ)+1)/2 = 3/4+s/2 by ring, | |
| 47 | + show ((2 : ℂ)+1)/2 = 3/2 by ring] at hH | |
| 48 | + have hEu := logDeriv_eq_primitive_add_euler χ hχn hu hLu | |
| 49 | + have hE2 := logDeriv_eq_primitive_add_euler χ hχn (by norm_num : 0<(2 : ℂ).re) hL2 | |
| 50 | + change logDeriv χ.LFunction (1/2+s) = _ | |
| 51 | + change logDeriv χ.LFunction (1/2+s) = zeroDifference χ.primitiveCharacter (1/2+s) 2 + | |
| 52 | + logDeriv χ.LFunction 2 - | |
| 53 | + (deriv Gamma (3/4+s/2)/Gamma (3/4+s/2)-deriv Gamma (3/2)/Gamma (3/2))/2 + | |
| 54 | + eulerCorrection χ (1/2+s)-eulerCorrection χ 2 | |
| 55 | + linear_combination hEu-hE2+hH | |
| 56 | + | |
| 57 | +theorem lemma_3_4 (δ M : ℝ) (hδ : 0 < δ) (hM : δ ≤ M) : | |
| 58 | + ∃ C : ℝ, 0 < C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), 4 ≤ N → Even N → GRH N → | |
| 59 | + ∀ χ ∈ oddCharacters N, | |
| 60 | + (∀ s : ℂ, 0 < s.re → logDerivative χ s = | |
| 61 | + zeroDifference χ.primitiveCharacter (1 / 2 + s) 2 + | |
| 62 | + deriv χ.LFunction 2 / χ.LFunction 2 - | |
| 63 | + (deriv Gamma (3 / 4 + s / 2) / Gamma (3 / 4 + s / 2) - | |
| 64 | + deriv Gamma (3 / 2) / Gamma (3 / 2)) / 2 + | |
| 65 | + eulerCorrection χ (1 / 2 + s) - eulerCorrection χ 2) ∧ | |
| 66 | + (∀ σ ∈ Icc δ M, ∀ t : ℝ, | |
| 67 | + ‖logDerivative χ (line σ t)‖ ≤ C * Real.log (N * (|t| + 2)) ^ 2) := by | |
| 68 | + obtain ⟨C,hC,hbound⟩ := logDerivative_uniform_bound δ M hδ hM | |
| 69 | + refine ⟨C,hC,fun N _ hN4 _ hGRH χ hχ => ?_⟩ | |
| 70 | + exact ⟨logDerivative_zero_expansion hGRH χ hχ, | |
| 71 | + hbound N inferInstance hN4 hGRH χ (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2)⟩ | |
| 72 | + | |
| 73 | +end ConditionalGoldbach | |
+104 −0 ConditionalGoldbach/Proofs/CharacterZeroLocalBounds.lean added View file
| @@ -0,0 +1,104 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterZeroCounting | |
| 4 | +public import ConditionalGoldbach.Proofs.CharacterZeroReflection | |
| 5 | + | |
| 6 | +/-! Uniform, unconditional local zero counting, including multiplicities and both half-strips. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology | |
| 12 | +open Set Complex Metric Filter | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma zeroClosedWindow_finite {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) (t : ℝ) : | |
| 16 | + ({p : ZeroIndex χ | t ≤ p.val.1.im ∧ p.val.1.im ≤ t+1} : Set _).Finite := by | |
| 17 | + apply ((zeroWindow_finite χ hχ t).union (zeroWindow_finite χ hχ (t+1))).subset | |
| 18 | + intro p hp | |
| 19 | + by_cases hh : p.val.1.im < t+1 | |
| 20 | + · exact Or.inl ⟨hp.1,hh⟩ | |
| 21 | + · exact Or.inr ⟨le_of_not_gt hh,by linarith [hp.2]⟩ | |
| 22 | + | |
| 23 | +lemma zeroWindow_count_le_right_counts {d : ℕ} [NeZero d] (χ : Character d) | |
| 24 | + (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) (t : ℝ) : | |
| 25 | + (zeroWindow χ t).ncard ≤ | |
| 26 | + ({p : ZeroIndex χ | 1/2 ≤ p.val.1.re ∧ t ≤ p.val.1.im ∧ p.val.1.im ≤ t+1} : Set _).ncard + | |
| 27 | + ({p : ZeroIndex χ⁻¹ | 1/2 ≤ p.val.1.re ∧ -t-1 ≤ p.val.1.im ∧ p.val.1.im ≤ -t} : Set _).ncard := by | |
| 28 | + let R : Set (ZeroIndex χ) := {p | 1/2 ≤ p.val.1.re ∧ t ≤ p.val.1.im ∧ p.val.1.im ≤ t+1} | |
| 29 | + let L : Set (ZeroIndex χ) := {p | p ∈ zeroWindow χ t ∧ p.val.1.re < 1/2} | |
| 30 | + let R' : Set (ZeroIndex χ⁻¹) := {p | 1/2 ≤ p.val.1.re ∧ -t-1 ≤ p.val.1.im ∧ p.val.1.im ≤ -t} | |
| 31 | + have hR : R.Finite := (zeroClosedWindow_finite χ hχ t).subset (fun _ h => h.2) | |
| 32 | + have hL : L.Finite := (zeroWindow_finite χ hχ t).subset (fun _ h => h.1) | |
| 33 | + have hR' : R'.Finite := (zeroClosedWindow_finite χ⁻¹ (inv_ne_one.mpr hχ) (-t-1)).subset (by | |
| 34 | + intro p hp | |
| 35 | + exact ⟨hp.2.1,by linarith [hp.2.2]⟩) | |
| 36 | + have hcover : zeroWindow χ t ⊆ R ∪ L := by | |
| 37 | + intro p hp | |
| 38 | + by_cases hr : 1/2 ≤ p.val.1.re | |
| 39 | + · exact Or.inl ⟨hr,hp.1,hp.2.le⟩ | |
| 40 | + · exact Or.inr ⟨hp,lt_of_not_ge hr⟩ | |
| 41 | + have hcardL : L.ncard ≤ R'.ncard := by | |
| 42 | + apply Set.ncard_le_ncard_of_injOn (reflectedZero χ hχ hprim) _ | |
| 43 | + (reflectedZero_injective χ hχ hprim).injOn hR' | |
| 44 | + intro p hp | |
| 45 | + change 1/2 ≤ (1-p.val.1).re ∧ -t-1 ≤ (1-p.val.1).im ∧ (1-p.val.1).im ≤ -t | |
| 46 | + simp only [sub_re,sub_im,one_re,one_im,zero_sub] | |
| 47 | + exact ⟨by linarith [hp.2],by linarith [hp.1.2],by linarith [hp.1.1]⟩ | |
| 48 | + exact (Set.ncard_le_ncard hcover (hR.union hL)).trans | |
| 49 | + ((Set.ncard_union_le R L).trans (Nat.add_le_add_left hcardL _)) | |
| 50 | + | |
| 51 | +lemma logarithm_zero_count_bound (d : ℕ) (hd : 1 ≤ d) (t : ℝ) : | |
| 52 | + Real.log (39*(d : ℝ)*(|t|+2)) ≤ 79*Real.log ((d : ℝ)*(|t|+2)) := by | |
| 53 | + have hdR : (1 : ℝ) ≤ d := by exact_mod_cast hd | |
| 54 | + let X : ℝ := (d : ℝ)*(|t|+2) | |
| 55 | + have hX : 2 ≤ X := by dsimp [X]; nlinarith [abs_nonneg t] | |
| 56 | + have hXp : 0 < X := by linarith | |
| 57 | + have hlog : (1/2 : ℝ) ≤ Real.log X := by | |
| 58 | + have hh := Real.one_sub_inv_le_log_of_pos (by norm_num : (0 : ℝ)<2) | |
| 59 | + have hxlog := Real.log_le_log (by norm_num : (0 : ℝ)<2) hX | |
| 60 | + norm_num at hh | |
| 61 | + linarith | |
| 62 | + have he : 39*(d : ℝ)*(|t|+2) = 39*X := by dsimp [X]; ring | |
| 63 | + rw [he,Real.log_mul (by norm_num : (39 : ℝ)≠0) hXp.ne'] | |
| 64 | + have hh := Real.log_le_sub_one_of_pos (by norm_num : (0 : ℝ)<39) | |
| 65 | + change Real.log 39+Real.log X ≤ 79*Real.log X | |
| 66 | + linarith | |
| 67 | + | |
| 68 | +theorem primitive_local_zero_count : ∃ C : ℝ, 0 < C ∧ | |
| 69 | + ∀ d : ℕ, ∀ (_ : NeZero d), ∀ χ : Character d, | |
| 70 | + χ ≠ 1 → χ.IsPrimitive → ∀ t : ℝ, | |
| 71 | + (zeroWindow χ t).Finite ∧ | |
| 72 | + ((zeroWindow χ t).ncard : ℝ) ≤ C*Real.log (d*(|t|+2)) := by | |
| 73 | + let D : ℝ := Real.log ((11/4 : ℝ)/(8/3)) | |
| 74 | + have hD : 0 < D := Real.log_pos (by norm_num) | |
| 75 | + refine ⟨158/D, by positivity, fun d _ χ hχ hprim t => ⟨zeroWindow_finite χ hχ t,?_⟩⟩ | |
| 76 | + have hd : 1 ≤ d := Nat.one_le_iff_ne_zero.mpr (NeZero.ne d) | |
| 77 | + have hdR : (1 : ℝ) ≤ d := by exact_mod_cast hd | |
| 78 | + have hright := LFunction_zero_count_right_half_closed χ hχ t | |
| 79 | + have hleft := LFunction_zero_count_right_half_closed χ⁻¹ (inv_ne_one.mpr hχ) (-t-1) | |
| 80 | + have hsum := zeroWindow_count_le_right_counts χ hχ hprim t | |
| 81 | + have hleft' : (({p : ZeroIndex χ⁻¹ | 1/2 ≤ p.val.1.re ∧ -t-1 ≤ p.val.1.im ∧ p.val.1.im ≤ -t} : Set _).ncard : ℝ) ≤ | |
| 82 | + Real.log (26*(d : ℝ)*(|-t-1|+2))/D := by | |
| 83 | + convert hleft using 2; congr 3; ring_nf | |
| 84 | + have hlog := logarithm_zero_count_bound d hd t | |
| 85 | + have hr : Real.log (26*(d : ℝ)*(|t|+2)) ≤ 79*Real.log ((d : ℝ)*(|t|+2)) := by | |
| 86 | + apply (Real.log_le_log (by positivity) _).trans hlog | |
| 87 | + nlinarith [abs_nonneg t] | |
| 88 | + have hl : Real.log (26*(d : ℝ)*(|-t-1|+2)) ≤ 79*Real.log ((d : ℝ)*(|t|+2)) := by | |
| 89 | + apply (Real.log_le_log (by positivity) _).trans hlog | |
| 90 | + have hh : |-t-1| ≤ |t|+1 := by | |
| 91 | + simpa only [sub_eq_add_neg,abs_neg,abs_one] using abs_add_le (-t) (-1 : ℝ) | |
| 92 | + nlinarith [mul_le_mul_of_nonneg_left hh (by linarith : (0 : ℝ)≤d),abs_nonneg t] | |
| 93 | + have hright' := hright.trans (div_le_div_of_nonneg_right hr hD.le) | |
| 94 | + have hleft'' := hleft'.trans (div_le_div_of_nonneg_right hl hD.le) | |
| 95 | + have hsumR : ((zeroWindow χ t).ncard : ℝ) ≤ | |
| 96 | + (({p : ZeroIndex χ | 1/2 ≤ p.val.1.re ∧ t ≤ p.val.1.im ∧ p.val.1.im ≤ t+1} : Set _).ncard : ℝ) + | |
| 97 | + (({p : ZeroIndex χ⁻¹ | 1/2 ≤ p.val.1.re ∧ -t-1 ≤ p.val.1.im ∧ p.val.1.im ≤ -t} : Set _).ncard : ℝ) := by | |
| 98 | + exact_mod_cast hsum | |
| 99 | + calc | |
| 100 | + _ ≤ 79*Real.log ((d : ℝ)*(|t|+2))/D + 79*Real.log ((d : ℝ)*(|t|+2))/D := | |
| 101 | + hsumR.trans (add_le_add hright' hleft'') | |
| 102 | + _ = _ := by ring | |
| 103 | + | |
| 104 | +end ConditionalGoldbach | |
+74 −0 ConditionalGoldbach/Proofs/CharacterZeroMultiplicity.lean added View file
| @@ -0,0 +1,74 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterZeroNormal | |
| 4 | +public import ConditionalGoldbach.Proofs.CompletedLZeros | |
| 5 | + | |
| 6 | +/-! Finite divisor sums agree exactly with the multiplicity-indexed zeros from the paper. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology | |
| 12 | +open Set Complex Metric Filter MeromorphicOn | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma completed_divisor_eq_orderNat {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) | |
| 16 | + (r : ℝ) {z : ℂ} (hz : z ∈ closedBall (0 : ℂ) r) (hz0 : 0 < z.re) : | |
| 17 | + divisor (completedL χ) (closedBall (0 : ℂ) r) z = (analyticOrderNatAt χ.LFunction z : ℤ) := by | |
| 18 | + rw [divisor_eq_orderNat (fun z _ => (completedL_differentiable χ hχ).analyticAt z) hz] | |
| 19 | + simp only [analyticOrderNatAt,completedL_order_eq_LFunction χ hχ hz0] | |
| 20 | + | |
| 21 | +lemma completed_divisor_support_zero {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) | |
| 22 | + (hprim : χ.IsPrimitive) (r : ℝ) {z : ℂ} | |
| 23 | + (hz : z ∈ (divisor (completedL χ) (closedBall (0 : ℂ) r)).support) : | |
| 24 | + 0 < z.re ∧ z.re < 1 ∧ χ.LFunction z = 0 := by | |
| 25 | + apply (completedL_eq_zero_iff χ hχ hprim z).mp | |
| 26 | + by_contra hn | |
| 27 | + have hzB := (divisor (completedL χ) (closedBall (0 : ℂ) r)).supportWithinDomain hz | |
| 28 | + have ha : AnalyticOnNhd ℂ (completedL χ) (closedBall (0 : ℂ) r) := | |
| 29 | + fun z _ => (completedL_differentiable χ hχ).analyticAt z | |
| 30 | + have ho := ((completedL_differentiable χ hχ).analyticAt z).meromorphicNFAt.meromorphicOrderAt_eq_zero_iff.mpr hn | |
| 31 | + have hd := ha.meromorphicOn.divisor_apply hzB | |
| 32 | + rw [ho] at hd | |
| 33 | + exact hz (by simpa using hd) | |
| 34 | + | |
| 35 | +lemma completed_divisor_sum_eq_zeroIndex_sum {d : ℕ} [NeZero d] (χ : Character d) | |
| 36 | + (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) (r : ℝ) (F : ℂ → ℂ) : | |
| 37 | + let D := divisor (completedL χ) (closedBall (0 : ℂ) r) | |
| 38 | + let hD := D.finiteSupport (isCompact_closedBall ..) | |
| 39 | + let hS := zeroIndex_preimage_compact_finite χ hχ (isCompact_closedBall (0 : ℂ) r) | |
| 40 | + (∑ z ∈ hD.toFinset, (D z : ℂ)*F z) = ∑ p ∈ hS.toFinset, F p.val.1 := by | |
| 41 | + classical | |
| 42 | + intro D hD hS | |
| 43 | + let S := hS.toFinset | |
| 44 | + let Z := hD.toFinset | |
| 45 | + have hDzero (p : S) : p.val.val.1 ∈ Z := by | |
| 46 | + apply hD.mem_toFinset.mpr | |
| 47 | + change D p.val.val.1 ≠ 0 | |
| 48 | + have hpB : p.val.val.1 ∈ closedBall (0 : ℂ) r := hS.mem_toFinset.mp p.property | |
| 49 | + rw [completed_divisor_eq_orderNat χ hχ r hpB p.val.property.1] | |
| 50 | + exact_mod_cast (Nat.ne_of_gt (lt_of_le_of_lt (Nat.zero_le _) p.val.property.2.2.2)) | |
| 51 | + have hZdata (z : Z) : 0 < z.val.re ∧ z.val.re < 1 ∧ χ.LFunction z.val = 0 := | |
| 52 | + completed_divisor_support_zero χ hχ hprim r (hD.mem_toFinset.mp z.property) | |
| 53 | + have hZB (z : Z) : z.val ∈ closedBall (0 : ℂ) r := D.supportWithinDomain (hD.mem_toFinset.mp z.property) | |
| 54 | + let e : S ≃ (Σ z : Z, Fin (analyticOrderNatAt χ.LFunction z.val)) := | |
| 55 | + { toFun := fun p => ⟨⟨p.val.val.1,hDzero p⟩,⟨p.val.val.2,p.val.property.2.2.2⟩⟩ | |
| 56 | + invFun := fun q => ⟨⟨(q.1.val,q.2.val),⟨(hZdata q.1).1,(hZdata q.1).2.1,(hZdata q.1).2.2,q.2.isLt⟩⟩, | |
| 57 | + hS.mem_toFinset.mpr (hZB q.1)⟩ | |
| 58 | + left_inv := fun p => by apply Subtype.ext; apply Subtype.ext; rfl | |
| 59 | + right_inv := fun q => by cases q; rfl } | |
| 60 | + have he := Fintype.sum_equiv e (fun p : S => F p.val.val.1) | |
| 61 | + (fun q : (Σ z : Z, Fin (analyticOrderNatAt χ.LFunction z.val)) => F q.1.val) (fun _ => rfl) | |
| 62 | + rw [Fintype.sum_sigma] at he | |
| 63 | + simp only [Finset.sum_const,Finset.card_univ,Fintype.card_fin,nsmul_eq_mul] at he | |
| 64 | + rw [Finset.sum_coe_sort S (fun p : ZeroIndex χ => F p.val.1)] at he | |
| 65 | + have hcast : (∑ z : Z, (analyticOrderNatAt χ.LFunction z.val : ℂ)*F z.val) = | |
| 66 | + ∑ z ∈ hD.toFinset, (D z : ℂ)*F z := by | |
| 67 | + have hterm (z : Z) : (analyticOrderNatAt χ.LFunction z.val : ℂ)*F z.val = (D z.val : ℂ)*F z.val := by | |
| 68 | + rw [completed_divisor_eq_orderNat χ hχ r (hZB z) (hZdata z).1] | |
| 69 | + norm_cast | |
| 70 | + simp_rw [hterm] | |
| 71 | + exact Finset.sum_coe_sort Z (fun z : ℂ => (D z : ℂ)*F z) | |
| 72 | + exact hcast.symm.trans he.symm | |
| 73 | + | |
| 74 | +end ConditionalGoldbach | |
+104 −0 ConditionalGoldbach/Proofs/CharacterZeroNormal.lean added View file
| @@ -0,0 +1,104 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Asymptotics | |
| 4 | +public import ConditionalGoldbach.Proofs.CharacterZeroSummability | |
| 5 | +public import ConditionalGoldbach.Proofs.CharacterZeroCompactSets | |
| 6 | + | |
| 7 | +/-! Normal absolute convergence of the paper's paired zero resolvent. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology | |
| 13 | +open Set Complex Metric Filter | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +lemma paired_resolvent_far_bound (R : ℝ) (hR : 1 ≤ R) (u v ρ : ℂ) | |
| 17 | + (hu : ‖u‖ ≤ R) (hv : ‖v‖ ≤ R) (hρ : 2*R+1 ≤ |ρ.im|) : | |
| 18 | + ‖1/(u-ρ)-1/(v-ρ)‖ ≤ 16*R/(1+ρ.im^2) := by | |
| 19 | + let y : ℝ := |ρ.im| | |
| 20 | + have hy : 1 ≤ y := by dsimp [y]; linarith | |
| 21 | + have hρnorm : y ≤ ‖ρ‖ := Complex.abs_im_le_norm ρ | |
| 22 | + have hu0 : y/2 ≤ ‖u-ρ‖ := by | |
| 23 | + have hh := norm_add_le (ρ-u) u | |
| 24 | + rw [sub_add_cancel,norm_sub_rev] at hh | |
| 25 | + dsimp [y] at * | |
| 26 | + linarith | |
| 27 | + have hv0 : y/2 ≤ ‖v-ρ‖ := by | |
| 28 | + have hh := norm_add_le (ρ-v) v | |
| 29 | + rw [sub_add_cancel,norm_sub_rev] at hh | |
| 30 | + dsimp [y] at * | |
| 31 | + linarith | |
| 32 | + have hup : 0 < ‖u-ρ‖ := by linarith | |
| 33 | + have hvp : 0 < ‖v-ρ‖ := by linarith | |
| 34 | + have hprod : y^2/4 ≤ ‖u-ρ‖*‖v-ρ‖ := by | |
| 35 | + have hh := mul_le_mul hu0 hv0 (by positivity : 0 ≤ y/2) (norm_nonneg _) | |
| 36 | + nlinarith | |
| 37 | + have hnum : ‖v-u‖ ≤ 2*R := (norm_sub_le v u).trans (by linarith) | |
| 38 | + have he : 1/(u-ρ)-1/(v-ρ) = (v-u)/((u-ρ)*(v-ρ)) := by | |
| 39 | + field_simp [norm_pos_iff.mp hup,norm_pos_iff.mp hvp] | |
| 40 | + ring | |
| 41 | + rw [he,norm_div,norm_mul] | |
| 42 | + apply (div_le_div_iff₀ (mul_pos hup hvp) (by positivity)).mpr | |
| 43 | + have hy2 : y^2 = ρ.im^2 := sq_abs _ | |
| 44 | + calc | |
| 45 | + _ ≤ (2*R)*(1+ρ.im^2) := mul_le_mul_of_nonneg_right hnum (by positivity) | |
| 46 | + _ ≤ (4*R)*y^2 := by nlinarith [sq_nonneg (y-1),mul_nonneg (by linarith : 0≤R) (by nlinarith : 0≤y^2-1)] | |
| 47 | + _ ≤ _ := by nlinarith [mul_nonneg (by linarith : 0≤R) (sub_nonneg.mpr hprod)] | |
| 48 | + | |
| 49 | +lemma primitive_zero_difference_normallySummable {d : ℕ} [NeZero d] (χ : Character d) | |
| 50 | + (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) : | |
| 51 | + NormallySummableOn (fun p : ZeroIndex χ => fun u : ℂ × ℂ => | |
| 52 | + 1/(u.1-p.val.1)-1/(u.2-p.val.1)) | |
| 53 | + {u | completedL χ u.1 ≠ 0 ∧ completedL χ u.2 ≠ 0} := by | |
| 54 | + intro K hK hKU | |
| 55 | + let F : ZeroIndex χ → (ℂ × ℂ) → ℝ := fun p u => ‖1/(u.1-p.val.1)-1/(u.2-p.val.1)‖ | |
| 56 | + have hc (p : ZeroIndex χ) : ContinuousOn (F p) K := by | |
| 57 | + apply ContinuousOn.norm | |
| 58 | + apply ContinuousOn.sub | |
| 59 | + · exact continuousOn_const.div (continuous_fst.continuousOn.sub continuousOn_const) | |
| 60 | + (fun u hu => sub_ne_zero.mpr (zeroIndex_ne_of_completedL_ne χ (hKU hu).1 p)) | |
| 61 | + · exact continuousOn_const.div (continuous_snd.continuousOn.sub continuousOn_const) | |
| 62 | + (fun u hu => sub_ne_zero.mpr (zeroIndex_ne_of_completedL_ne χ (hKU hu).2 p)) | |
| 63 | + have he (p : ZeroIndex χ) : {r : ℝ | ∃ u ∈ K, r = F p u} = F p '' K := by | |
| 64 | + ext r | |
| 65 | + simp only [Set.mem_ofPred_eq,mem_image] | |
| 66 | + constructor <;> rintro ⟨u,hu,he⟩ <;> exact ⟨u,hu,he.symm⟩ | |
| 67 | + have hb (p : ZeroIndex χ) : BddAbove {r : ℝ | ∃ u ∈ K, r = F p u} := by | |
| 68 | + rw [he] | |
| 69 | + exact hK.bddAbove_image (hc p) | |
| 70 | + refine ⟨hb,?_⟩ | |
| 71 | + by_cases hKe : K = ∅ | |
| 72 | + · simp [hKe] | |
| 73 | + have hKn : K.Nonempty := Set.nonempty_iff_ne_empty.mpr hKe | |
| 74 | + obtain ⟨B,hB⟩ := hK.isBounded.exists_norm_le | |
| 75 | + let R : ℝ := max B 1 | |
| 76 | + have hR : 1 ≤ R := le_max_right _ _ | |
| 77 | + have hnorm (u : ℂ × ℂ) (hu : u ∈ K) : ‖u.1‖ ≤ R ∧ ‖u.2‖ ≤ R := | |
| 78 | + ⟨(norm_fst_le u).trans ((hB u hu).trans (le_max_left _ _)), | |
| 79 | + (norm_snd_le u).trans ((hB u hu).trans (le_max_left _ _))⟩ | |
| 80 | + have hs := (primitive_zero_square_summable χ hχ hprim).mul_left (16*R) | |
| 81 | + apply hs.of_norm_bounded_eventually | |
| 82 | + filter_upwards [(zeroIndex_bounded_height_finite χ hχ (2*R+1)).compl_mem_cofinite] with p hp | |
| 83 | + have hfar : 2*R+1 < |p.val.1.im| := lt_of_not_ge hp | |
| 84 | + have hnonempty : {r : ℝ | ∃ u ∈ K, r = F p u}.Nonempty := by | |
| 85 | + obtain ⟨u,hu⟩ := hKn | |
| 86 | + exact ⟨F p u,u,hu,rfl⟩ | |
| 87 | + have hnonneg : 0 ≤ sSup {r : ℝ | ∃ u ∈ K, r = F p u} := by | |
| 88 | + obtain ⟨u,hu⟩ := hKn | |
| 89 | + exact (norm_nonneg _).trans (le_csSup (hb p) ⟨u,hu,rfl⟩) | |
| 90 | + rw [Real.norm_eq_abs,abs_of_nonneg hnonneg] | |
| 91 | + apply csSup_le hnonempty | |
| 92 | + rintro r ⟨u,hu,rfl⟩ | |
| 93 | + simpa only [mul_one_div] using paired_resolvent_far_bound R hR u.1 u.2 p.val.1 | |
| 94 | + (hnorm u hu).1 (hnorm u hu).2 hfar.le | |
| 95 | + | |
| 96 | +lemma primitive_zero_difference_summable_norm {d : ℕ} [NeZero d] (χ : Character d) | |
| 97 | + (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) (u v : ℂ) | |
| 98 | + (hu : completedL χ u ≠ 0) (hv : completedL χ v ≠ 0) : | |
| 99 | + Summable (fun p : ZeroIndex χ => ‖1/(u-p.val.1)-1/(v-p.val.1)‖) := by | |
| 100 | + have hh := (primitive_zero_difference_normallySummable χ hχ hprim) | |
| 101 | + {(u,v)} (isCompact_singleton) (by intro z hz; rcases mem_singleton_iff.mp hz with rfl; exact ⟨hu,hv⟩) | |
| 102 | + simpa using hh.2 | |
| 103 | + | |
| 104 | +end ConditionalGoldbach | |
+116 −0 ConditionalGoldbach/Proofs/CharacterZeroReflection.lean added View file
| @@ -0,0 +1,116 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterZerosCompact | |
| 4 | + | |
| 5 | +/-! Functional-equation reflection preserves the paper's zero multiplicities. -/ | |
| 6 | +@[expose] public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open Set Complex Metric Filter | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma gammaFactor_inv_differentiable {d : ℕ} (χ : Character d) : | |
| 15 | + Differentiable ℂ (fun z => (χ.gammaFactor z)⁻¹) := by | |
| 16 | + classical | |
| 17 | + simp only [DirichletCharacter.gammaFactor] | |
| 18 | + split_ifs | |
| 19 | + · exact differentiable_Gammaℝ_inv | |
| 20 | + · exact differentiable_Gammaℝ_inv.comp (differentiable_id.add_const 1) | |
| 21 | + | |
| 22 | +lemma gammaFactor_ne_zero_re_pos {d : ℕ} (χ : Character d) {z : ℂ} (hz : 0 < z.re) : | |
| 23 | + χ.gammaFactor z ≠ 0 := by | |
| 24 | + classical | |
| 25 | + simp only [DirichletCharacter.gammaFactor] | |
| 26 | + split_ifs | |
| 27 | + · exact Gammaℝ_ne_zero_of_re_pos hz | |
| 28 | + · apply Gammaℝ_ne_zero_of_re_pos | |
| 29 | + simp only [add_re, one_re] | |
| 30 | + linarith | |
| 31 | + | |
| 32 | +lemma LFunction_order_eq_completed {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) | |
| 33 | + {z : ℂ} (hz : 0 < z.re) : | |
| 34 | + analyticOrderAt χ.LFunction z = analyticOrderAt χ.completedLFunction z := by | |
| 35 | + have hd1 : d ≠ 1 := fun h => hχ (DirichletCharacter.level_one' χ h) | |
| 36 | + have he : χ.LFunction = χ.completedLFunction * (fun w => (χ.gammaFactor w)⁻¹) := by | |
| 37 | + funext w | |
| 38 | + simpa only [Pi.mul_apply, div_eq_mul_inv] using χ.LFunction_eq_completed_div_gammaFactor w (Or.inr hd1) | |
| 39 | + rw [he, analyticOrderAt_mul ((χ.differentiable_completedLFunction hχ).analyticAt z) | |
| 40 | + ((gammaFactor_inv_differentiable χ).analyticAt z)] | |
| 41 | + rw [((gammaFactor_inv_differentiable χ).analyticAt z).analyticOrderAt_eq_zero.mpr | |
| 42 | + (inv_ne_zero (gammaFactor_ne_zero_re_pos χ hz)), add_zero] | |
| 43 | + | |
| 44 | +lemma primitive_rootNumber_ne_zero {d : ℕ} [NeZero d] (χ : Character d) | |
| 45 | + (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) : χ.rootNumber ≠ 0 := by | |
| 46 | + have hL : χ.LFunction 3 ≠ 0 := χ.LFunction_ne_zero_of_one_le_re (Or.inl hχ) (by norm_num) | |
| 47 | + have hC : χ.completedLFunction 3 ≠ 0 := by | |
| 48 | + intro hh | |
| 49 | + apply hL | |
| 50 | + rw [χ.LFunction_eq_completed_div_gammaFactor 3 (Or.inl (by norm_num)), hh, zero_div] | |
| 51 | + intro hzero | |
| 52 | + have hh := hprim.completedLFunction_one_sub (-2) | |
| 53 | + simp only [hzero, mul_zero, zero_mul] at hh | |
| 54 | + apply hC | |
| 55 | + convert hh using 1; norm_num | |
| 56 | + | |
| 57 | +lemma LFunction_order_reflection {d : ℕ} [NeZero d] (χ : Character d) | |
| 58 | + (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) {z : ℂ} (hz0 : 0 < z.re) (hz1 : z.re < 1) : | |
| 59 | + analyticOrderAt χ.LFunction z = analyticOrderAt χ⁻¹.LFunction (1-z) := by | |
| 60 | + have hinv : χ⁻¹ ≠ 1 := inv_ne_one.mpr hχ | |
| 61 | + have hd0 : (d : ℂ) ≠ 0 := by exact_mod_cast NeZero.ne d | |
| 62 | + let g : ℂ → ℂ := fun u => 1-u | |
| 63 | + let A : ℂ → ℂ := fun u => (d : ℂ)^(u-1/2)*χ.rootNumber | |
| 64 | + have hg : AnalyticAt ℂ g (1-z) := analyticAt_const.sub analyticAt_id | |
| 65 | + have hgd : deriv g (1-z) = -1 := by simpa only [g, id_eq] using ((hasDerivAt_id (1-z)).const_sub 1).deriv | |
| 66 | + have hA : AnalyticAt ℂ A (1-z) := | |
| 67 | + (((differentiable_id.sub_const (1/2 : ℂ)).const_cpow (Or.inl hd0)).mul_const χ.rootNumber).analyticAt _ | |
| 68 | + have hAn : A (1-z) ≠ 0 := mul_ne_zero (Complex.cpow_ne_zero_iff.mpr (Or.inl hd0)) | |
| 69 | + (primitive_rootNumber_ne_zero χ hχ hprim) | |
| 70 | + have he : χ.completedLFunction ∘ g = A * χ⁻¹.completedLFunction := by | |
| 71 | + funext u | |
| 72 | + exact hprim.completedLFunction_one_sub u | |
| 73 | + have hord := congrArg (fun f : ℂ → ℂ => analyticOrderAt f (1-z)) he | |
| 74 | + rw [analyticOrderAt_comp_of_deriv_ne_zero hg (by rw [hgd]; norm_num), | |
| 75 | + analyticOrderAt_mul hA ((χ⁻¹.differentiable_completedLFunction hinv).analyticAt (1-z)), | |
| 76 | + hA.analyticOrderAt_eq_zero.mpr hAn, zero_add] at hord | |
| 77 | + rw [LFunction_order_eq_completed χ hχ hz0, | |
| 78 | + LFunction_order_eq_completed χ⁻¹ hinv (show 0 < (1-z).re by simp only [sub_re,one_re]; linarith)] | |
| 79 | + simpa only [g, sub_sub_cancel] using hord | |
| 80 | + | |
| 81 | +lemma LFunction_zero_reflection {d : ℕ} [NeZero d] (χ : Character d) | |
| 82 | + (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) {z : ℂ} (hz0 : 0 < z.re) (hz1 : z.re < 1) | |
| 83 | + (hz : χ.LFunction z = 0) : χ⁻¹.LFunction (1-z) = 0 := by | |
| 84 | + have hinv : χ⁻¹ ≠ 1 := inv_ne_one.mpr hχ | |
| 85 | + have he := LFunction_order_reflection χ hχ hprim hz0 hz1 | |
| 86 | + have han := (χ.differentiable_LFunction hχ).analyticAt z | |
| 87 | + have han' := (χ⁻¹.differentiable_LFunction hinv).analyticAt (1-z) | |
| 88 | + by_contra hn | |
| 89 | + have hh := han'.analyticOrderAt_eq_zero.mpr hn | |
| 90 | + rw [← he] at hh | |
| 91 | + exact (han.analyticOrderAt_eq_zero.mp hh) hz | |
| 92 | + | |
| 93 | +def reflectedZero {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) | |
| 94 | + (hprim : χ.IsPrimitive) (p : ZeroIndex χ) : ZeroIndex χ⁻¹ := | |
| 95 | + ⟨(1-p.val.1,p.val.2), by | |
| 96 | + refine ⟨?_,?_,LFunction_zero_reflection χ hχ hprim p.property.1 p.property.2.1 p.property.2.2.1,?_⟩ | |
| 97 | + · simp only [sub_re,one_re]; linarith [p.property.2.1] | |
| 98 | + · simp only [sub_re,one_re]; linarith [p.property.1] | |
| 99 | + · have he := congrArg ENat.toNat (LFunction_order_reflection χ hχ hprim p.property.1 p.property.2.1) | |
| 100 | + change p.val.2 < analyticOrderNatAt χ⁻¹.LFunction (1-p.val.1) | |
| 101 | + rw [← show analyticOrderNatAt χ.LFunction p.val.1 = analyticOrderNatAt χ⁻¹.LFunction (1-p.val.1) from he] | |
| 102 | + exact p.property.2.2.2⟩ | |
| 103 | + | |
| 104 | +lemma reflectedZero_injective {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) | |
| 105 | + (hprim : χ.IsPrimitive) : Function.Injective (reflectedZero χ hχ hprim) := by | |
| 106 | + intro p q he | |
| 107 | + have hh := congrArg Subtype.val he | |
| 108 | + have hfirst := congrArg Prod.fst hh | |
| 109 | + have hsecond := congrArg Prod.snd hh | |
| 110 | + apply Subtype.ext | |
| 111 | + apply Prod.ext | |
| 112 | + · change 1-p.val.1 = 1-q.val.1 at hfirst | |
| 113 | + exact sub_right_injective hfirst | |
| 114 | + · exact hsecond | |
| 115 | + | |
| 116 | +end ConditionalGoldbach | |
+68 −0 ConditionalGoldbach/Proofs/CharacterZeroShiftNormal.lean added View file
| @@ -0,0 +1,68 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterZeroNormal | |
| 4 | +public import ConditionalGoldbach.Proofs.CompletedLZeros | |
| 5 | + | |
| 6 | +/-! The exact shifted zero-resolvent convergence under GRH. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology | |
| 12 | +open Set Complex Metric Filter | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma NormallySummableOn.comp {ι X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] | |
| 16 | + {f : ι → Y → ℂ} {U : Set Y} (hf : NormallySummableOn f U) | |
| 17 | + (T : X → Y) (hT : Continuous T) {V : Set X} (hTU : MapsTo T V U) : | |
| 18 | + NormallySummableOn (fun i x => f i (T x)) V := by | |
| 19 | + intro K hK hKV | |
| 20 | + have hh := hf (T '' K) (hK.image hT) (by | |
| 21 | + rintro y ⟨x,hx,rfl⟩ | |
| 22 | + exact hTU (hKV hx)) | |
| 23 | + have he (i : ι) : {r : ℝ | ∃ y ∈ T '' K, r = ‖f i y‖} = | |
| 24 | + {r : ℝ | ∃ x ∈ K, r = ‖f i (T x)‖} := by | |
| 25 | + ext r | |
| 26 | + simp | |
| 27 | + simpa only [he] using hh | |
| 28 | + | |
| 29 | +attribute [local instance] conductorNeZero in | |
| 30 | +theorem lemma_3_4_normal_convergence (N : ℕ) [NeZero N] | |
| 31 | + (_hN : Even N) (_hN4 : 4 ≤ N) (hGRH : GRH N) | |
| 32 | + (χ : Character N) (hχ : χ ∈ oddCharacters N) : | |
| 33 | + NormallySummableOn (fun p : ZeroIndex χ.primitiveCharacter => fun s : ℂ => | |
| 34 | + 1 / (s - p.val.1.im * I) - 1 / (3 / 2 - p.val.1.im * I)) | |
| 35 | + {s | 0 < s.re} := by | |
| 36 | + have hχn := primitiveCharacter_ne_one_of_ne_one χ (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2) | |
| 37 | + have hf := primitive_zero_difference_normallySummable χ.primitiveCharacter hχn χ.primitiveCharacter_isPrimitive | |
| 38 | + let T : ℂ → ℂ × ℂ := fun s => (1/2+s,2) | |
| 39 | + have hT : Continuous T := by fun_prop | |
| 40 | + have hmaps : MapsTo T {s | 0<s.re} | |
| 41 | + {u | completedL χ.primitiveCharacter u.1 ≠ 0 ∧ completedL χ.primitiveCharacter u.2 ≠ 0} := by | |
| 42 | + intro s hs | |
| 43 | + constructor | |
| 44 | + · intro hz | |
| 45 | + have hzero := ((completedL_eq_zero_iff χ.primitiveCharacter hχn χ.primitiveCharacter_isPrimitive _).mp hz).2.2 | |
| 46 | + exact primitive_LFunction_ne_zero_of_GRH hGRH χ.conductor_dvd_level χ.primitiveCharacter | |
| 47 | + χ.primitiveCharacter_isPrimitive hχn (by change 1/2 < (1/2+s).re; norm_num; exact hs) hzero | |
| 48 | + · intro hz | |
| 49 | + have hzero := ((completedL_eq_zero_iff χ.primitiveCharacter hχn χ.primitiveCharacter_isPrimitive _).mp hz).2.1 | |
| 50 | + change (2 : ℂ).re < 1 at hzero | |
| 51 | + norm_num at hzero | |
| 52 | + have hh := hf.comp T hT hmaps | |
| 53 | + have he : (fun p : ZeroIndex χ.primitiveCharacter => fun s : ℂ => | |
| 54 | + 1 / ((T s).1-p.val.1)-1 / ((T s).2-p.val.1)) = | |
| 55 | + (fun p : ZeroIndex χ.primitiveCharacter => fun s : ℂ => | |
| 56 | + 1 / (s-p.val.1.im*I)-1 / (3/2-p.val.1.im*I)) := by | |
| 57 | + funext p s | |
| 58 | + have hre := hGRH χ.conductor inferInstance χ.conductor_dvd_level χ.primitiveCharacter | |
| 59 | + χ.primitiveCharacter_isPrimitive p.val.1 p.property.1 p.property.2.1 p.property.2.2.1 | |
| 60 | + have hp : p.val.1 = (1/2 : ℂ)+(p.val.1.im : ℂ)*I := by | |
| 61 | + apply Complex.ext <;> simp [hre] | |
| 62 | + dsimp [T] | |
| 63 | + conv_lhs => rw [hp] | |
| 64 | + congr 2 <;> ring | |
| 65 | + rw [he] at hh | |
| 66 | + exact hh | |
| 67 | + | |
| 68 | +end ConditionalGoldbach | |
+135 −0 ConditionalGoldbach/Proofs/CharacterZeroSummability.lean added View file
| @@ -0,0 +1,135 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterZeroLocalBounds | |
| 4 | + | |
| 5 | +/-! Summability of the zero measures obtained from the proved local counts. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open Set Complex Metric Filter | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma summable_int_one_add_abs_rpow (a : ℝ) (ha : 1 < a) : | |
| 15 | + Summable (fun k : ℤ => (1+|(k : ℝ)|)^(-a)) := by | |
| 16 | + have hn := (Real.summable_one_div_nat_add_rpow 1 a).mpr ha | |
| 17 | + have hn' : Summable (fun n : ℕ => (1+(n : ℝ))^(-a)) := by | |
| 18 | + apply hn.congr | |
| 19 | + intro n | |
| 20 | + rw [abs_of_nonneg (by positivity : (0 : ℝ) ≤ (n : ℝ)+1), | |
| 21 | + Real.rpow_neg (by positivity : (0 : ℝ) ≤ 1+(n : ℝ)), one_div, add_comm] | |
| 22 | + apply summable_int_iff_summable_nat_and_neg.mpr | |
| 23 | + constructor | |
| 24 | + · simpa using hn' | |
| 25 | + · simpa using hn' | |
| 26 | + | |
| 27 | +lemma summable_logarithmic_zero_majorant (d : ℕ) (hd : 1 ≤ d) : | |
| 28 | + Summable (fun k : ℤ => Real.log ((d : ℝ)*(|(k : ℝ)|+2)) / (1+|(k : ℝ)|)^2) := by | |
| 29 | + have hdR : (1 : ℝ) ≤ d := by exact_mod_cast hd | |
| 30 | + have hs := (summable_int_one_add_abs_rpow (3/2) (by norm_num)).mul_left (2*(2*(d : ℝ))^(1/2 : ℝ)) | |
| 31 | + apply hs.of_nonneg_of_le | |
| 32 | + · intro k | |
| 33 | + apply div_nonneg (Real.log_nonneg _) (sq_nonneg _) | |
| 34 | + nlinarith [abs_nonneg (k : ℝ)] | |
| 35 | + intro k | |
| 36 | + let x : ℝ := 1+|(k : ℝ)| | |
| 37 | + have hx : 0 < x := by dsimp [x]; positivity | |
| 38 | + have hlog : Real.log ((d : ℝ)*(|(k : ℝ)|+2)) ≤ 2*(2*(d : ℝ))^(1/2 : ℝ)*x^(1/2 : ℝ) := by | |
| 39 | + have hh := Real.log_le_rpow_div (by positivity : 0 ≤ (d : ℝ)*(|(k : ℝ)|+2)) (by norm_num : (0 : ℝ)<1/2) | |
| 40 | + have hb : (d : ℝ)*(|(k : ℝ)|+2) ≤ (2*(d : ℝ))*x := by dsimp [x]; nlinarith [abs_nonneg (k : ℝ)] | |
| 41 | + have hp := Real.rpow_le_rpow (by positivity : 0 ≤ (d : ℝ)*(|(k : ℝ)|+2)) hb (by norm_num : (0 : ℝ)≤1/2) | |
| 42 | + rw [Real.mul_rpow (by positivity) hx.le] at hp | |
| 43 | + linarith | |
| 44 | + change Real.log ((d : ℝ)*(|(k : ℝ)|+2))/x^2 ≤ 2*(2*(d : ℝ))^(1/2 : ℝ)*x^(-(3/2 : ℝ)) | |
| 45 | + apply (div_le_div_of_nonneg_right hlog (sq_nonneg x)).trans_eq | |
| 46 | + rw [mul_div_assoc, ← Real.rpow_two, ← Real.rpow_sub hx] | |
| 47 | + norm_num | |
| 48 | + | |
| 49 | +lemma zeroWindow_partition {d : ℕ} [NeZero d] (χ : Character d) (p : ZeroIndex χ) : | |
| 50 | + ∃! k : ℤ, p ∈ zeroWindow χ k := by | |
| 51 | + refine ⟨⌊p.val.1.im⌋, ⟨Int.floor_le _,Int.lt_floor_add_one _⟩,?_⟩ | |
| 52 | + intro k hk | |
| 53 | + exact (Int.floor_eq_iff.mpr hk).symm | |
| 54 | + | |
| 55 | +lemma primitive_zero_floor_square_summable {d : ℕ} [NeZero d] (χ : Character d) | |
| 56 | + (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) : | |
| 57 | + Summable (fun p : ZeroIndex χ => (1+|((⌊p.val.1.im⌋ : ℤ) : ℝ)|)⁻¹^2) := by | |
| 58 | + classical | |
| 59 | + obtain ⟨C,hC,hcount⟩ := primitive_local_zero_count | |
| 60 | + have hc := hcount d inferInstance χ hχ hprim | |
| 61 | + let f : ZeroIndex χ → ℝ := fun p => (1+|((⌊p.val.1.im⌋ : ℤ) : ℝ)|)⁻¹^2 | |
| 62 | + have hf : 0 ≤ f := fun p => sq_nonneg _ | |
| 63 | + apply (summable_partition hf (zeroWindow_partition χ)).mpr | |
| 64 | + have hfinite (k : ℤ) : (zeroWindow χ k).Finite := (hc k).1 | |
| 65 | + have hsums (k : ℤ) : (∑' p : zeroWindow χ k, f p) = | |
| 66 | + ((zeroWindow χ k).ncard : ℝ)*(1+|(k : ℝ)|)⁻¹^2 := by | |
| 67 | + let := (hfinite k).fintype | |
| 68 | + have he (p : zeroWindow χ k) : f p = (1+|(k : ℝ)|)⁻¹^2 := by | |
| 69 | + dsimp [f] | |
| 70 | + rw [Int.floor_eq_iff.mpr p.property] | |
| 71 | + simp_rw [he] | |
| 72 | + rw [tsum_fintype, Finset.sum_const, Finset.card_univ, nsmul_eq_mul] | |
| 73 | + congr 2 | |
| 74 | + exact (Nat.card_eq_fintype_card).symm | |
| 75 | + refine ⟨fun k => by let := (hfinite k).fintype; exact (hasSum_fintype _).summable, ?_⟩ | |
| 76 | + simp_rw [hsums] | |
| 77 | + have hs := (summable_logarithmic_zero_majorant d (Nat.one_le_iff_ne_zero.mpr (NeZero.ne d))).mul_left C | |
| 78 | + apply hs.of_nonneg_of_le | |
| 79 | + · intro k; positivity | |
| 80 | + intro k | |
| 81 | + have hbound := mul_le_mul_of_nonneg_right (hc k).2 (sq_nonneg ((1+|(k : ℝ)|)⁻¹)) | |
| 82 | + convert hbound using 1; simp only [div_eq_mul_inv, inv_pow]; ring | |
| 83 | + | |
| 84 | +lemma primitive_zero_square_summable {d : ℕ} [NeZero d] (χ : Character d) | |
| 85 | + (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) : | |
| 86 | + Summable (fun p : ZeroIndex χ => 1/(1+p.val.1.im^2)) := by | |
| 87 | + have hs := (primitive_zero_floor_square_summable χ hχ hprim).mul_left 9 | |
| 88 | + apply hs.of_nonneg_of_le | |
| 89 | + · intro p; positivity | |
| 90 | + intro p | |
| 91 | + let γ : ℝ := p.val.1.im | |
| 92 | + let k : ℝ := (⌊γ⌋ : ℤ) | |
| 93 | + have hk : |k| ≤ |γ|+1 := by | |
| 94 | + apply abs_le.mpr | |
| 95 | + have hkl := Int.floor_le γ | |
| 96 | + have hkg := Int.lt_floor_add_one γ | |
| 97 | + dsimp [k] | |
| 98 | + constructor <;> linarith [le_abs_self γ,neg_abs_le γ] | |
| 99 | + have hden : (1+|k|)^2 ≤ 9*(1+γ^2) := by | |
| 100 | + nlinarith [sq_abs γ,sq_nonneg (|γ|-1),sq_nonneg |k|,abs_nonneg k] | |
| 101 | + change 1/(1+γ^2) ≤ 9*((1+|k|)⁻¹)^2 | |
| 102 | + rw [inv_pow, ← div_eq_mul_inv] | |
| 103 | + exact (div_le_div_iff₀ (by positivity) (by positivity)).mpr (by nlinarith) | |
| 104 | + | |
| 105 | +lemma primitive_zero_poisson_summable {d : ℕ} [NeZero d] (χ : Character d) | |
| 106 | + (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) (x t : ℝ) (hx : 0 < x) : | |
| 107 | + Summable (fun p : ZeroIndex χ => x/(x^2+(t-p.val.1.im)^2)) := by | |
| 108 | + let C : ℝ := (2*x^2+1+2*t^2)/x | |
| 109 | + have hC : 0 ≤ C := by dsimp [C]; positivity | |
| 110 | + have hCx : C*x = 2*x^2+1+2*t^2 := by dsimp [C]; field_simp | |
| 111 | + have hC2 : 2*x ≤ C := by apply (le_div_iff₀ hx).mpr; nlinarith [sq_nonneg t] | |
| 112 | + have hs := (primitive_zero_square_summable χ hχ hprim).mul_left C | |
| 113 | + apply hs.of_nonneg_of_le | |
| 114 | + · intro p; positivity | |
| 115 | + intro p | |
| 116 | + let γ : ℝ := p.val.1.im | |
| 117 | + change x/(x^2+(t-γ)^2) ≤ C*(1/(1+γ^2)) | |
| 118 | + rw [mul_one_div] | |
| 119 | + apply (div_le_div_iff₀ (by positivity) (by positivity)).mpr | |
| 120 | + have hγ : γ^2 ≤ 2*(t-γ)^2+2*t^2 := by nlinarith [sq_nonneg (γ-2*t)] | |
| 121 | + have hm := mul_le_mul_of_nonneg_left hγ hx.le | |
| 122 | + have hb := mul_nonneg (sub_nonneg.mpr hC2) (sq_nonneg (t-γ)) | |
| 123 | + nlinarith | |
| 124 | + | |
| 125 | +attribute [local instance] conductorNeZero in | |
| 126 | +theorem lemma_6_4_zero_poisson_convergence (N : ℕ) [NeZero N] (_hN : Even N) | |
| 127 | + (_hlarge : Real.exp 10 < (N : ℝ)) (_hGRH : GRH N) | |
| 128 | + (χ : Character N) (hχ : χ ∈ oddCharacters N) (x t : ℝ) (hx : 0 < x) : | |
| 129 | + Summable (fun p : ZeroIndex χ.primitiveCharacter => | |
| 130 | + x / (x ^ 2 + (t - p.val.1.im) ^ 2)) := by | |
| 131 | + exact primitive_zero_poisson_summable χ.primitiveCharacter | |
| 132 | + (primitiveCharacter_ne_one_of_ne_one χ (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2)) | |
| 133 | + χ.primitiveCharacter_isPrimitive x t hx | |
| 134 | + | |
| 135 | +end ConditionalGoldbach | |
+51 −0 ConditionalGoldbach/Proofs/CharacterZerosCompact.lean added View file
| @@ -0,0 +1,51 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.LFunctionDomain | |
| 4 | + | |
| 5 | +/-! Local finiteness of the paper's zeros with multiplicity, using the actual entire L-function. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open Set Complex Metric Filter | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma LFunction_zeros_codiscrete {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) : | |
| 15 | + (χ.LFunction ⁻¹' {0})ᶜ ∈ Filter.codiscrete ℂ := by | |
| 16 | + have ha : AnalyticOnNhd ℂ χ.LFunction univ := fun z _ => | |
| 17 | + (χ.differentiable_LFunction hχ).analyticAt z | |
| 18 | + exact ha.preimage_zero_mem_codiscrete | |
| 19 | + (χ.LFunction_ne_zero_of_one_le_re (s := 2) (Or.inl hχ) (by norm_num)) | |
| 20 | + | |
| 21 | +lemma LFunction_zeros_compact_finite {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) | |
| 22 | + {K : Set ℂ} (hK : IsCompact K) : (K ∩ χ.LFunction ⁻¹' {0}).Finite := by | |
| 23 | + have hc := mem_codiscrete'.mp (LFunction_zeros_codiscrete χ hχ) | |
| 24 | + have hclosed : IsClosed (χ.LFunction ⁻¹' {0}) := by simpa using hc.1 | |
| 25 | + have hdiscrete : IsDiscrete (χ.LFunction ⁻¹' {0}) := by simpa using hc.2 | |
| 26 | + exact (hK.inter_right hclosed).finite (hdiscrete.mono inter_subset_right) | |
| 27 | + | |
| 28 | +lemma zeroWindow_finite {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) (t : ℝ) : | |
| 29 | + (zeroWindow χ t).Finite := by | |
| 30 | + classical | |
| 31 | + let K : Set ℂ := closedBall 0 (|t|+3) ∩ χ.LFunction ⁻¹' {0} | |
| 32 | + have hK : K.Finite := LFunction_zeros_compact_finite χ hχ (isCompact_closedBall ..) | |
| 33 | + have hB : (⋃ z ∈ K, ({z} : Set ℂ) ×ˢ Set.Iio (analyticOrderNatAt χ.LFunction z)).Finite := | |
| 34 | + hK.biUnion (fun z _ => (finite_singleton z).prod (Set.finite_Iio _)) | |
| 35 | + apply (hB.preimage Subtype.val_injective.injOn).subset | |
| 36 | + intro p hp | |
| 37 | + simp only [mem_preimage, mem_iUnion, mem_prod, mem_singleton_iff, mem_Iio] | |
| 38 | + refine ⟨p.val.1, ?_, rfl, p.property.2.2.2⟩ | |
| 39 | + refine ⟨?_, p.property.2.2.1⟩ | |
| 40 | + apply mem_closedBall_zero_iff.mpr | |
| 41 | + have hre : |p.val.1.re| ≤ 1 := by rw [abs_of_pos p.property.1]; exact p.property.2.1.le | |
| 42 | + have him : |p.val.1.im| ≤ |t|+1 := by | |
| 43 | + apply abs_le.mpr | |
| 44 | + have hh := hp | |
| 45 | + change t ≤ p.val.1.im ∧ p.val.1.im < t+1 at hh | |
| 46 | + constructor | |
| 47 | + · linarith [neg_abs_le t] | |
| 48 | + · linarith [le_abs_self t] | |
| 49 | + exact (Complex.norm_le_abs_re_add_abs_im _).trans (by linarith) | |
| 50 | + | |
| 51 | +end ConditionalGoldbach | |
+380 −0 ConditionalGoldbach/Proofs/Characters.lean added View file
| @@ -0,0 +1,380 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Characters | |
| 4 | +public import ConditionalGoldbach.Definitions.Weights | |
| 5 | +public import Mathlib.Algebra.Order.Star.Int | |
| 6 | +public import Mathlib.NumberTheory.Chebyshev | |
| 7 | +public import Mathlib.RingTheory.SimpleRing.Principal | |
| 8 | +import Mathlib.Tactic.NormNum.RealSqrt | |
| 9 | + | |
| 10 | +/-! | |
| 11 | +# Finite character projection | |
| 12 | + | |
| 13 | +This module proves the unconditional arithmetic input of Lemma 3.1. | |
| 14 | +It uses finite character orthogonality and Mathlib's explicit Chebyshev bound. | |
| 15 | +No pending analytic or spectral theorem is used. | |
| 16 | +-/ | |
| 17 | + | |
| 18 | +public section | |
| 19 | + | |
| 20 | +set_option autoImplicit false | |
| 21 | +noncomputable section | |
| 22 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 23 | +open MeasureTheory Filter Set Complex | |
| 24 | +namespace ConditionalGoldbach | |
| 25 | +attribute [local instance] Classical.propDecidable conductorNeZero | |
| 26 | + | |
| 27 | +/-- Conjugation of a character value at a unit is evaluation at its inverse. -/ | |
| 28 | +lemma character_conj_unit {N : ℕ} [NeZero N] (χ : Character N) | |
| 29 | + {b : ZMod N} (hb : IsUnit b) : conj (χ b) = χ b⁻¹ := by | |
| 30 | + change star (χ b) = _ | |
| 31 | + rw [MulChar.star_apply', MulChar.inv_apply_eq_inv'] | |
| 32 | + symm | |
| 33 | + apply eq_inv_of_mul_eq_one_left | |
| 34 | + rw [← map_mul, ZMod.inv_mul_of_unit b hb, map_one] | |
| 35 | + | |
| 36 | +/-- Full character orthogonality, in the conjugate convention of the paper. -/ | |
| 37 | +lemma full_character_orthogonality {N : ℕ} [NeZero N] | |
| 38 | + (a b : ZMod N) (hb : IsUnit b) : | |
| 39 | + ∑ χ : Character N, χ a * conj (χ b) = | |
| 40 | + if a = b then (N.totient : ℂ) else 0 := by | |
| 41 | + simp_rw [character_conj_unit _ hb] | |
| 42 | + calc | |
| 43 | + (∑ χ : Character N, χ a * χ b⁻¹) = ∑ χ : Character N, χ b⁻¹ * χ a := by | |
| 44 | + apply Finset.sum_congr rfl | |
| 45 | + intro χ _ | |
| 46 | + ring | |
| 47 | + _ = _ := by simpa only [eq_comm] using DirichletCharacter.sum_char_inv_mul_char_eq ℂ hb a | |
| 48 | + | |
| 49 | +/-- The odd-character selector is a difference of two full character sums. -/ | |
| 50 | +lemma odd_character_selector {N : ℕ} [NeZero N] (a b : ZMod N) : | |
| 51 | + (2 : ℂ) * ∑ χ ∈ oddCharacters N, χ a * conj (χ b) = | |
| 52 | + (∑ χ : Character N, χ a * conj (χ b)) - | |
| 53 | + ∑ χ : Character N, χ (-a) * conj (χ b) := by | |
| 54 | + rw [oddCharacters, Finset.sum_filter, Finset.mul_sum, ← Finset.sum_sub_distrib] | |
| 55 | + apply Finset.sum_congr rfl | |
| 56 | + intro χ _ | |
| 57 | + rcases χ.even_or_odd with hχ | hχ | |
| 58 | + · have hnot : χ (-1) ≠ -1 := hχ.not_odd | |
| 59 | + rw [ite_eq_right hnot, hχ.eval_neg] | |
| 60 | + ring | |
| 61 | + · have hodd : χ (-1) = -1 := hχ | |
| 62 | + rw [ite_eq_left hodd, hχ.eval_neg] | |
| 63 | + ring | |
| 64 | + | |
| 65 | +/-- The general finite odd-character projector (original equation 2.1). | |
| 66 | +The extra evenness and size hypotheses match the audited paper interface. -/ | |
| 67 | +theorem lemma_3_1_odd_orthogonality (N : ℕ) [NeZero N] | |
| 68 | + (_hN : Even N) (_hN4 : 4 ≤ N) (n m : ℕ) : | |
| 69 | + (2 / (N.totient : ℂ)) * ∑ χ ∈ oddCharacters N, χ n * conj (χ m) = | |
| 70 | + if Nat.Coprime (n * m) N then | |
| 71 | + (if (n : ZMod N) = m then (1 : ℂ) else 0) - | |
| 72 | + (if (n : ZMod N) = -(m : ZMod N) then 1 else 0) | |
| 73 | + else 0 := by | |
| 74 | + have hφ : (N.totient : ℂ) ≠ 0 := by exact_mod_cast (NeZero.ne N.totient) | |
| 75 | + by_cases hnm : Nat.Coprime (n * m) N | |
| 76 | + · rcases Nat.coprime_mul_iff_left.mp hnm with ⟨hn, hm⟩ | |
| 77 | + rw [ite_eq_left hnm] | |
| 78 | + have hm' : IsUnit (m : ZMod N) := (ZMod.isUnit_iff_coprime m N).2 hm | |
| 79 | + have h := odd_character_selector (n : ZMod N) (m : ZMod N) | |
| 80 | + rw [full_character_orthogonality _ _ hm', full_character_orthogonality _ _ hm'] at h | |
| 81 | + have hneg : (-(n : ZMod N) = (m : ZMod N)) ↔ (n : ZMod N) = -(m : ZMod N) := neg_eq_iff_eq_neg | |
| 82 | + simp only [hneg] at h | |
| 83 | + calc | |
| 84 | + (2 / (N.totient : ℂ)) * ∑ χ ∈ oddCharacters N, χ n * conj (χ m) = | |
| 85 | + ((2 : ℂ) * ∑ χ ∈ oddCharacters N, χ n * conj (χ m)) / N.totient := by ring | |
| 86 | + _ = _ := by rw [h]; split_ifs <;> simp [hφ] | |
| 87 | + · rw [ite_eq_right hnm] | |
| 88 | + suffices (∑ χ ∈ oddCharacters N, χ n * conj (χ m)) = 0 by rw [this, mul_zero] | |
| 89 | + apply Finset.sum_eq_zero | |
| 90 | + intro χ _ | |
| 91 | + have hc : ¬Nat.Coprime n N ∨ ¬Nat.Coprime m N := by | |
| 92 | + simpa only [Nat.coprime_mul_iff_left, not_and_or] using hnm | |
| 93 | + rcases hc with hn | hm | |
| 94 | + · have hz : χ (n : ZMod N) = 0 := MulChar.map_nonunit χ (by simpa [ZMod.isUnit_iff_coprime] using hn) | |
| 95 | + simp [hz] | |
| 96 | + · have hz : χ (m : ZMod N) = 0 := MulChar.map_nonunit χ (by simpa [ZMod.isUnit_iff_coprime] using hm) | |
| 97 | + simp [hz] | |
| 98 | + | |
| 99 | +/-- The weighted correlation is nonnegative before any spectral hypotheses. -/ | |
| 100 | +lemma goldbach_nonneg (N : ℕ) (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 101 | + 0 ≤ goldbach N φ := by | |
| 102 | + unfold goldbach | |
| 103 | + apply mul_nonneg (inv_nonneg.mpr (Nat.cast_nonneg N)) | |
| 104 | + apply Finset.sum_nonneg | |
| 105 | + intro n _ | |
| 106 | + split_ifs | |
| 107 | + · exact mul_nonneg (mul_nonneg | |
| 108 | + (mul_nonneg ArithmeticFunction.vonMangoldt_nonneg ArithmeticFunction.vonMangoldt_nonneg) | |
| 109 | + (hφ.2.2.1 _).1) (hφ.2.2.1 _).1 | |
| 110 | + · exact le_rfl | |
| 111 | + | |
| 112 | +lemma characterMoment_nonneg (N : ℕ) [NeZero N] (φ : ℝ → ℝ) : | |
| 113 | + 0 ≤ characterMoment N φ := by | |
| 114 | + unfold characterMoment | |
| 115 | + positivity | |
| 116 | + | |
| 117 | +lemma diagonalMoment_nonneg (N : ℕ) (φ : ℝ → ℝ) : | |
| 118 | + 0 ≤ diagonalMoment N φ := by | |
| 119 | + unfold diagonalMoment | |
| 120 | + positivity | |
| 121 | + | |
| 122 | +/-- The arithmetic diagonal has an explicit Chebyshev bound, uniform in the weight. -/ | |
| 123 | +lemma diagonalMoment_le_log (N : ℕ) (hN : 1 ≤ N) | |
| 124 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 125 | + diagonalMoment N φ ≤ (Real.log 4 + 4) * Real.log N := by | |
| 126 | + have hNpos : 0 < (N : ℝ) := by exact_mod_cast hN | |
| 127 | + have hlog : 0 ≤ Real.log N := Real.log_nonneg (by exact_mod_cast hN) | |
| 128 | + have hsum : (∑ n ∈ Finset.range (N + 1), | |
| 129 | + if Nat.Coprime n N then (mangoldt n) ^ 2 * φ (n / N) ^ 2 else 0) ≤ | |
| 130 | + Real.log N * ∑ n ∈ Finset.range (N + 1), mangoldt n := by | |
| 131 | + rw [Finset.mul_sum] | |
| 132 | + apply Finset.sum_le_sum | |
| 133 | + intro n hn | |
| 134 | + have hnN : n ≤ N := Nat.le_of_lt_succ (Finset.mem_range.mp hn) | |
| 135 | + have hΛ : 0 ≤ mangoldt n := ArithmeticFunction.vonMangoldt_nonneg | |
| 136 | + have hΛlog : mangoldt n ≤ Real.log N := by | |
| 137 | + by_cases hz : n = 0 | |
| 138 | + · simpa [hz, mangoldt] using hlog | |
| 139 | + · exact ArithmeticFunction.vonMangoldt_le_log.trans | |
| 140 | + (Real.log_le_log (by exact_mod_cast Nat.pos_of_ne_zero hz) (by exact_mod_cast hnN)) | |
| 141 | + have hw := hφ.2.2.1 ((n : ℝ) / N) | |
| 142 | + have hw2 : φ ((n : ℝ) / N) ^ 2 ≤ 1 := by nlinarith | |
| 143 | + split_ifs | |
| 144 | + · calc | |
| 145 | + mangoldt n ^ 2 * φ ((n : ℝ) / N) ^ 2 ≤ mangoldt n ^ 2 := by nlinarith [sq_nonneg (mangoldt n)] | |
| 146 | + _ ≤ Real.log N * mangoldt n := by nlinarith | |
| 147 | + · exact mul_nonneg hlog hΛ | |
| 148 | + have hpsi : (∑ n ∈ Finset.range (N + 1), mangoldt n) = Chebyshev.psi N := by | |
| 149 | + rw [Chebyshev.psi_eq_sum_Icc, Nat.floor_natCast, Nat.range_succ_eq_Icc_zero] | |
| 150 | + unfold diagonalMoment | |
| 151 | + calc | |
| 152 | + (N : ℝ)⁻¹ * _ ≤ (N : ℝ)⁻¹ * (Real.log N * Chebyshev.psi N) := by | |
| 153 | + exact mul_le_mul_of_nonneg_left (by simpa [hpsi] using hsum) (inv_nonneg.mpr hNpos.le) | |
| 154 | + _ ≤ (N : ℝ)⁻¹ * (Real.log N * ((Real.log 4 + 4) * N)) := by | |
| 155 | + gcongr | |
| 156 | + exact Chebyshev.psi_le_const_mul_self hNpos.le | |
| 157 | + _ = _ := by field_simp | |
| 158 | + | |
| 159 | +/-- Expanding a finite character square requires no analytic convergence argument. -/ | |
| 160 | +lemma character_sum_norm_sq_complex (N : ℕ) (χ : Character N) (s : Finset ℕ) (c : ℕ → ℝ) : | |
| 161 | + ((‖∑ n ∈ s, (c n : ℂ) * χ n‖ ^ 2 : ℝ) : ℂ) = | |
| 162 | + ∑ n ∈ s, ∑ m ∈ s, (c n : ℂ) * c m * (χ n * conj (χ m)) := by | |
| 163 | + rw [Complex.sq_norm, Complex.normSq_eq_conj_mul_self, mul_comm] | |
| 164 | + simp only [map_sum, map_mul, Complex.conj_ofReal, Finset.sum_mul, Finset.mul_sum] | |
| 165 | + rw [Finset.sum_comm] | |
| 166 | + apply Finset.sum_congr rfl | |
| 167 | + intro n _ | |
| 168 | + apply Finset.sum_congr rfl | |
| 169 | + intro m _ | |
| 170 | + ring | |
| 171 | + | |
| 172 | +lemma characterPolynomial_norm_sq (N : ℕ) (χ : Character N) (φ : ℝ → ℝ) : | |
| 173 | + ‖characterPolynomial χ φ‖ ^ 2 = (N : ℝ)⁻¹ * | |
| 174 | + ‖∑ n ∈ Finset.range (N + 1), ((mangoldt n * φ (n / N) : ℝ) : ℂ) * χ n‖ ^ 2 := by | |
| 175 | + have heq : characterPolynomial χ φ = (Real.sqrt N : ℂ)⁻¹ * | |
| 176 | + ∑ n ∈ Finset.range (N + 1), ((mangoldt n * φ (n / N) : ℝ) : ℂ) * χ n := by | |
| 177 | + unfold characterPolynomial | |
| 178 | + congr 1 | |
| 179 | + apply Finset.sum_congr rfl | |
| 180 | + intro n _ | |
| 181 | + push_cast | |
| 182 | + ring | |
| 183 | + rw [heq, norm_mul, mul_pow, norm_inv, Complex.norm_real, Real.norm_eq_abs, | |
| 184 | + abs_of_nonneg (Real.sqrt_nonneg _), inv_pow, Real.sq_sqrt (Nat.cast_nonneg N)] | |
| 185 | + | |
| 186 | +/-- The character average is a finite quadratic form in the odd projector. -/ | |
| 187 | +lemma odd_character_quadratic (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) | |
| 188 | + (s : Finset ℕ) (c : ℕ → ℝ) : | |
| 189 | + (2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, | |
| 190 | + ‖∑ n ∈ s, (c n : ℂ) * χ n‖ ^ 2 = | |
| 191 | + ∑ n ∈ s, ∑ m ∈ s, c n * c m * | |
| 192 | + (if Nat.Coprime (n * m) N then | |
| 193 | + (if (n : ZMod N) = m then (1 : ℝ) else 0) - | |
| 194 | + (if (n : ZMod N) = -(m : ZMod N) then 1 else 0) | |
| 195 | + else 0) := by | |
| 196 | + apply Complex.ofReal_injective | |
| 197 | + simp only [Complex.ofReal_mul, Complex.ofReal_div, Complex.ofReal_ofNat, | |
| 198 | + Complex.ofReal_natCast, Complex.ofReal_sum] | |
| 199 | + simp_rw [character_sum_norm_sq_complex] | |
| 200 | + rw [Finset.sum_comm] | |
| 201 | + simp_rw [Finset.sum_comm (s := oddCharacters N) (t := s)] | |
| 202 | + simp_rw [Finset.mul_sum] | |
| 203 | + apply Finset.sum_congr rfl | |
| 204 | + intro n _ | |
| 205 | + apply Finset.sum_congr rfl | |
| 206 | + intro m _ | |
| 207 | + calc | |
| 208 | + (∑ χ ∈ oddCharacters N, 2 / (N.totient : ℂ) * | |
| 209 | + ((c n : ℂ) * c m * (χ n * conj (χ m)))) = | |
| 210 | + (c n : ℂ) * c m * (2 / (N.totient : ℂ) * | |
| 211 | + ∑ χ ∈ oddCharacters N, χ n * conj (χ m)) := by | |
| 212 | + simp only [Finset.mul_sum] | |
| 213 | + apply Finset.sum_congr rfl | |
| 214 | + intro χ _ | |
| 215 | + ring | |
| 216 | + _ = _ := by | |
| 217 | + rw [lemma_3_1_odd_orthogonality N hN hN4 n m] | |
| 218 | + split_ifs <;> norm_num | |
| 219 | + | |
| 220 | +/-- Below the modulus, the positive and negative residue diagonals are ordinary equalities. -/ | |
| 221 | +lemma residue_diagonals {N n m : ℕ} (_hN : 0 < N) | |
| 222 | + (hn : 0 < n) (hnN : n < N) (hm : 0 < m) (hmN : m < N) : | |
| 223 | + ((n : ZMod N) = m ↔ n = m) ∧ | |
| 224 | + ((n : ZMod N) = -(m : ZMod N) ↔ n + m = N) := by | |
| 225 | + constructor | |
| 226 | + · simp only [ZMod.natCast_eq_natCast_iff', Nat.mod_eq_of_lt hnN, Nat.mod_eq_of_lt hmN] | |
| 227 | + · rw [← add_eq_zero_iff_eq_neg, ← Nat.cast_add, ZMod.natCast_eq_zero_iff] | |
| 228 | + constructor | |
| 229 | + · rintro ⟨k, hk⟩ | |
| 230 | + have hk0 : 0 < k := by | |
| 231 | + by_contra h | |
| 232 | + have hkz : k = 0 := by omega | |
| 233 | + simp only [hkz, mul_zero] at hk | |
| 234 | + omega | |
| 235 | + have hk2 : k < 2 := by | |
| 236 | + by_contra h | |
| 237 | + have hge : 2 ≤ k := by omega | |
| 238 | + have hmul := Nat.mul_le_mul_left N hge | |
| 239 | + nlinarith | |
| 240 | + have : k = 1 := by omega | |
| 241 | + simpa [this] using hk | |
| 242 | + · intro h | |
| 243 | + rw [h] | |
| 244 | + | |
| 245 | +/-- On coefficient support inside `(0,N)`, congruence selectors are integer diagonals. -/ | |
| 246 | +lemma weighted_residue_selector (N : ℕ) (hN : 0 < N) (c : ℕ → ℝ) | |
| 247 | + (h0 : c 0 = 0) (hNzero : c N = 0) (n m : ℕ) (hn : n ≤ N) (hm : m ≤ N) : | |
| 248 | + c n * c m * (if Nat.Coprime (n * m) N then | |
| 249 | + (if (n : ZMod N) = m then (1 : ℝ) else 0) - | |
| 250 | + (if (n : ZMod N) = -(m : ZMod N) then 1 else 0) else 0) = | |
| 251 | + c n * c m * (if Nat.Coprime (n * m) N then | |
| 252 | + (if n = m then (1 : ℝ) else 0) - (if n + m = N then 1 else 0) else 0) := by | |
| 253 | + by_cases hcn : c n = 0 | |
| 254 | + · simp [hcn] | |
| 255 | + by_cases hcm : c m = 0 | |
| 256 | + · simp [hcm] | |
| 257 | + have hn0 : 0 < n := Nat.pos_of_ne_zero (by intro hz; apply hcn; simpa [hz] using h0) | |
| 258 | + have hm0 : 0 < m := Nat.pos_of_ne_zero (by intro hz; apply hcm; simpa [hz] using h0) | |
| 259 | + have hnN : n < N := lt_of_le_of_ne hn (by intro h; subst n; exact hcn hNzero) | |
| 260 | + have hmN : m < N := lt_of_le_of_ne hm (by intro h; subst m; exact hcm hNzero) | |
| 261 | + rcases residue_diagonals hN hn0 hnN hm0 hmN with ⟨hpos, hneg⟩ | |
| 262 | + simp only [hpos, hneg] | |
| 263 | + | |
| 264 | +lemma finite_projection_term (N n m : ℕ) (c : ℕ → ℝ) : | |
| 265 | + c n * c m * (if Nat.Coprime (n * m) N then | |
| 266 | + (if n = m then (1 : ℝ) else 0) - (if n + m = N then 1 else 0) else 0) = | |
| 267 | + (if n = m then (if Nat.Coprime n N then c n ^ 2 else 0) else 0) - | |
| 268 | + (if n + m = N then (if Nat.Coprime (n * m) N then c n * c m else 0) else 0) := by | |
| 269 | + by_cases hnm : n = m | |
| 270 | + · subst m | |
| 271 | + by_cases hc : Nat.Coprime n N | |
| 272 | + · simp only [Nat.coprime_mul_iff_left, and_self, ↓reduceIte] | |
| 273 | + split_ifs <;> ring | |
| 274 | + · simp [Nat.coprime_mul_iff_left, hc] | |
| 275 | + · by_cases hc : Nat.Coprime (n * m) N | |
| 276 | + · simp only [hnm, ↓reduceIte] | |
| 277 | + split_ifs <;> ring | |
| 278 | + · simp [hc, hnm] | |
| 279 | + | |
| 280 | +lemma sum_add_diagonal (N : ℕ) (c : ℕ → ℝ) (h0 : c 0 = 0) (hNzero : c N = 0) | |
| 281 | + (n : ℕ) (hn : n ≤ N) : | |
| 282 | + (∑ m ∈ Finset.range (N + 1), if n + m = N then | |
| 283 | + (if Nat.Coprime (n * m) N then c n * c m else 0) else 0) = | |
| 284 | + if 0 < n ∧ n < N ∧ Nat.Coprime (n * (N - n)) N then c n * c (N - n) else 0 := by | |
| 285 | + have heq (m : ℕ) : n + m = N ↔ m = N - n := by omega | |
| 286 | + simp_rw [heq] | |
| 287 | + rw [Finset.sum_ite_eq'] | |
| 288 | + have hm : N - n ∈ Finset.range (N + 1) := Finset.mem_range.mpr (by omega) | |
| 289 | + rw [ite_eq_left hm] | |
| 290 | + by_cases hn0 : n = 0 | |
| 291 | + · simp [hn0, h0] | |
| 292 | + by_cases hnN : n = N | |
| 293 | + · simp [hnN, h0, hNzero] | |
| 294 | + have hnp : 0 < n := Nat.pos_of_ne_zero hn0 | |
| 295 | + have hnl : n < N := lt_of_le_of_ne hn hnN | |
| 296 | + simp [hnp, hnl] | |
| 297 | + | |
| 298 | +/-- Finite projection for arbitrary real coefficients vanishing at the endpoints. -/ | |
| 299 | +lemma finite_odd_projection (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) | |
| 300 | + (c : ℕ → ℝ) (h0 : c 0 = 0) (hNzero : c N = 0) : | |
| 301 | + (2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, | |
| 302 | + ‖∑ n ∈ Finset.range (N + 1), (c n : ℂ) * χ n‖ ^ 2 = | |
| 303 | + (∑ n ∈ Finset.range (N + 1), if Nat.Coprime n N then c n ^ 2 else 0) - | |
| 304 | + ∑ n ∈ Finset.range (N + 1), | |
| 305 | + if 0 < n ∧ n < N ∧ Nat.Coprime (n * (N - n)) N then c n * c (N - n) else 0 := by | |
| 306 | + rw [odd_character_quadratic N hN hN4] | |
| 307 | + rw [← Finset.sum_sub_distrib] | |
| 308 | + apply Finset.sum_congr rfl | |
| 309 | + intro n hn | |
| 310 | + have hnN : n ≤ N := Nat.le_of_lt_succ (Finset.mem_range.mp hn) | |
| 311 | + calc | |
| 312 | + _ = ∑ m ∈ Finset.range (N + 1), c n * c m * | |
| 313 | + (if Nat.Coprime (n * m) N then | |
| 314 | + (if n = m then (1 : ℝ) else 0) - (if n + m = N then 1 else 0) else 0) := by | |
| 315 | + apply Finset.sum_congr rfl | |
| 316 | + intro m hm | |
| 317 | + exact weighted_residue_selector N (by omega) c h0 hNzero n m hnN | |
| 318 | + (Nat.le_of_lt_succ (Finset.mem_range.mp hm)) | |
| 319 | + _ = _ := by | |
| 320 | + simp_rw [finite_projection_term] | |
| 321 | + rw [Finset.sum_sub_distrib, Finset.sum_ite_eq, ite_eq_left hn, | |
| 322 | + sum_add_diagonal N c h0 hNzero n hnN] | |
| 323 | + | |
| 324 | +/-- The paper's exact arithmetic projection, with its two different normalizations. -/ | |
| 325 | +lemma goldbach_eq_diagonal_sub_character (N : ℕ) [NeZero N] | |
| 326 | + (hN : Even N) (hN4 : 4 ≤ N) (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 327 | + goldbach N φ = diagonalMoment N φ - characterMoment N φ := by | |
| 328 | + let c : ℕ → ℝ := fun n => mangoldt n * φ ((n : ℝ) / N) | |
| 329 | + have h0 : c 0 = 0 := by simp [c, mangoldt] | |
| 330 | + have hNr : (N : ℝ) ≠ 0 := by exact_mod_cast (NeZero.ne N) | |
| 331 | + have hφ1 : φ 1 = 0 := by | |
| 332 | + by_contra h | |
| 333 | + have hh := hφ.2.1 (show (1 : ℝ) ∈ Function.support φ from h) | |
| 334 | + norm_num at hh | |
| 335 | + have hNz : c N = 0 := by simp [c, hNr, hφ1] | |
| 336 | + have hP : characterMoment N φ = (N : ℝ)⁻¹ * | |
| 337 | + ((2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, | |
| 338 | + ‖∑ n ∈ Finset.range (N + 1), (c n : ℂ) * χ n‖ ^ 2) := by | |
| 339 | + unfold characterMoment | |
| 340 | + simp_rw [characterPolynomial_norm_sq] | |
| 341 | + change 2 / (N.totient : ℝ) * (∑ χ ∈ oddCharacters N, (N : ℝ)⁻¹ * | |
| 342 | + ‖∑ n ∈ Finset.range (N + 1), (c n : ℂ) * χ n‖ ^ 2) = _ | |
| 343 | + rw [← Finset.mul_sum] | |
| 344 | + ring | |
| 345 | + have hD : (N : ℝ)⁻¹ * (∑ n ∈ Finset.range (N + 1), | |
| 346 | + if Nat.Coprime n N then c n ^ 2 else 0) = diagonalMoment N φ := by | |
| 347 | + unfold diagonalMoment | |
| 348 | + congr 1 | |
| 349 | + apply Finset.sum_congr rfl | |
| 350 | + intro n _ | |
| 351 | + split_ifs <;> simp [c, mul_pow] | |
| 352 | + have hG : (N : ℝ)⁻¹ * (∑ n ∈ Finset.range (N + 1), | |
| 353 | + if 0 < n ∧ n < N ∧ Nat.Coprime (n * (N - n)) N then c n * c (N - n) else 0) = | |
| 354 | + goldbach N φ := by | |
| 355 | + unfold goldbach | |
| 356 | + congr 1 | |
| 357 | + apply Finset.sum_congr rfl | |
| 358 | + intro n _ | |
| 359 | + split_ifs | |
| 360 | + · dsimp [c] | |
| 361 | + ring | |
| 362 | + · rfl | |
| 363 | + have hproj : characterMoment N φ = diagonalMoment N φ - goldbach N φ := by | |
| 364 | + rw [hP, finite_odd_projection N hN hN4 c h0 hNz, mul_sub, hD, hG] | |
| 365 | + linarith | |
| 366 | + | |
| 367 | +/-- Lemma 3.1, including all four clauses and a uniform explicit Chebyshev constant. -/ | |
| 368 | +theorem lemma_3_1 (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 369 | + ∃ C : ℝ, 0 < C ∧ ∀ (N : ℕ) (_ : NeZero N), Even N → 4 ≤ N → | |
| 370 | + goldbach N φ = diagonalMoment N φ - characterMoment N φ ∧ | |
| 371 | + 0 ≤ characterMoment N φ ∧ characterMoment N φ ≤ diagonalMoment N φ ∧ | |
| 372 | + diagonalMoment N φ ≤ C * Real.log N := by | |
| 373 | + refine ⟨Real.log 4 + 4, by positivity, ?_⟩ | |
| 374 | + intro N hNZ hN hN4 | |
| 375 | + have hproj := goldbach_eq_diagonal_sub_character N hN hN4 φ hφ | |
| 376 | + refine ⟨hproj, characterMoment_nonneg N φ, ?_, diagonalMoment_le_log N (by omega) φ hφ⟩ | |
| 377 | + have hnonneg := goldbach_nonneg N φ hφ | |
| 378 | + linarith | |
| 379 | + | |
| 380 | +end ConditionalGoldbach | |
+79 −0 ConditionalGoldbach/Proofs/CompletedLZeros.lean added View file
| @@ -0,0 +1,79 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterZeroReflection | |
| 4 | + | |
| 5 | +/-! The completed function is entire and has exactly the multiplicity-indexed nontrivial zeros. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open Set Complex Metric Filter | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma completedL_differentiable {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) : | |
| 15 | + Differentiable ℂ (completedL χ) := by | |
| 16 | + have hd : (d : ℂ) ≠ 0 := by exact_mod_cast NeZero.ne d | |
| 17 | + exact (((differentiable_id.add_const 1).div_const 2).const_cpow (Or.inl hd)).mul | |
| 18 | + (χ.differentiable_completedLFunction hχ) | |
| 19 | + | |
| 20 | +lemma completedLFunction_ne_zero_right {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) | |
| 21 | + {u : ℂ} (hu : 1 ≤ u.re) : χ.completedLFunction u ≠ 0 := by | |
| 22 | + have hL := χ.LFunction_ne_zero_of_one_le_re (Or.inl hχ) hu | |
| 23 | + have hu0 : u ≠ 0 := by intro he; rw [he,zero_re] at hu; norm_num at hu | |
| 24 | + intro hz | |
| 25 | + apply hL | |
| 26 | + rw [χ.LFunction_eq_completed_div_gammaFactor u (Or.inl hu0),hz,zero_div] | |
| 27 | + | |
| 28 | +lemma completedLFunction_ne_zero_left {d : ℕ} [NeZero d] (χ : Character d) | |
| 29 | + (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) {u : ℂ} (hu : u.re ≤ 0) : | |
| 30 | + χ.completedLFunction u ≠ 0 := by | |
| 31 | + have hh := hprim.completedLFunction_one_sub (1-u) | |
| 32 | + rw [sub_sub_cancel] at hh | |
| 33 | + rw [hh] | |
| 34 | + have hd : (d : ℂ) ≠ 0 := by exact_mod_cast NeZero.ne d | |
| 35 | + exact mul_ne_zero (mul_ne_zero (Complex.cpow_ne_zero_iff.mpr (Or.inl hd)) | |
| 36 | + (primitive_rootNumber_ne_zero χ hχ hprim)) | |
| 37 | + (completedLFunction_ne_zero_right χ⁻¹ (inv_ne_one.mpr hχ) | |
| 38 | + (by simp only [sub_re,one_re]; linarith)) | |
| 39 | + | |
| 40 | +lemma completedL_eq_zero_iff {d : ℕ} [NeZero d] (χ : Character d) | |
| 41 | + (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) (u : ℂ) : | |
| 42 | + completedL χ u = 0 ↔ 0 < u.re ∧ u.re < 1 ∧ χ.LFunction u = 0 := by | |
| 43 | + have hd : (d : ℂ) ≠ 0 := by exact_mod_cast NeZero.ne d | |
| 44 | + have hpow : (d : ℂ)^((u+1)/2) ≠ 0 := Complex.cpow_ne_zero_iff.mpr (Or.inl hd) | |
| 45 | + rw [completedL,mul_eq_zero,or_iff_right hpow] | |
| 46 | + constructor | |
| 47 | + · intro hz | |
| 48 | + have h0 : 0 < u.re := by | |
| 49 | + by_contra h | |
| 50 | + exact completedLFunction_ne_zero_left χ hχ hprim (le_of_not_gt h) hz | |
| 51 | + have h1 : u.re < 1 := by | |
| 52 | + by_contra h | |
| 53 | + exact completedLFunction_ne_zero_right χ hχ (le_of_not_gt h) hz | |
| 54 | + refine ⟨h0,h1,?_⟩ | |
| 55 | + rw [χ.LFunction_eq_completed_div_gammaFactor u | |
| 56 | + (Or.inl (by intro he; rw [he,zero_re] at h0; exact lt_irrefl _ h0)),hz,zero_div] | |
| 57 | + · rintro ⟨h0,h1,hz⟩ | |
| 58 | + have hu0 : u ≠ 0 := by intro he; rw [he,zero_re] at h0; exact lt_irrefl _ h0 | |
| 59 | + rw [χ.LFunction_eq_completed_div_gammaFactor u (Or.inl hu0)] at hz | |
| 60 | + exact (div_eq_zero_iff.mp hz).resolve_right (gammaFactor_ne_zero_re_pos χ h0) | |
| 61 | + | |
| 62 | +lemma completedL_zero_ne_zero {d : ℕ} [NeZero d] (χ : Character d) | |
| 63 | + (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) : completedL χ 0 ≠ 0 := by | |
| 64 | + intro h | |
| 65 | + have hh := ((completedL_eq_zero_iff χ hχ hprim 0).mp h).1 | |
| 66 | + norm_num at hh | |
| 67 | + | |
| 68 | +lemma completedL_order_eq_LFunction {d : ℕ} [NeZero d] (χ : Character d) | |
| 69 | + (hχ : χ ≠ 1) {u : ℂ} (hu : 0 < u.re) : | |
| 70 | + analyticOrderAt (completedL χ) u = analyticOrderAt χ.LFunction u := by | |
| 71 | + have hd : (d : ℂ) ≠ 0 := by exact_mod_cast NeZero.ne d | |
| 72 | + have hp : AnalyticAt ℂ (fun z : ℂ => (d : ℂ)^((z+1)/2)) u := | |
| 73 | + (((differentiable_id.add_const 1).div_const 2).const_cpow (Or.inl hd)).analyticAt u | |
| 74 | + have hpn : (d : ℂ)^((u+1)/2) ≠ 0 := Complex.cpow_ne_zero_iff.mpr (Or.inl hd) | |
| 75 | + change analyticOrderAt ((fun z : ℂ => (d : ℂ)^((z+1)/2))*χ.completedLFunction) u = _ | |
| 76 | + rw [analyticOrderAt_mul hp ((χ.differentiable_completedLFunction hχ).analyticAt u), | |
| 77 | + hp.analyticOrderAt_eq_zero.mpr hpn,zero_add,LFunction_order_eq_completed χ hχ hu] | |
| 78 | + | |
| 79 | +end ConditionalGoldbach | |
+70 −0 ConditionalGoldbach/Proofs/ComponentNormBounds.lean added View file
| @@ -0,0 +1,70 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.VariableComponentOperators | |
| 4 | +public import ConditionalGoldbach.Proofs.CharacterStripTrace | |
| 5 | +public import ConditionalGoldbach.Proofs.SpectralDiagonalBound | |
| 6 | +public import ConditionalGoldbach.Proofs.HilbertSchmidtTriangle | |
| 7 | + | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma component_bounds_of_average (A : ℝ) (hA : 0<A) : | |
| 15 | + ∃ C : ℝ, 0<C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), 4≤N → GRH N → | |
| 16 | + (∀ σ : ℝ, 0<σ → σ≤beta → averagedLogDerivative N σ≤A*(Real.log N^2+σ⁻¹^2)) → | |
| 17 | + ∀ a : ℝ, 0<a → ∀ ha : a<beta, | |
| 18 | + IsPositiveTraceClass (arithmeticOperator ha N) ∧ | |
| 19 | + IsPositiveTraceClass (diagonalOperator ha N) ∧ | |
| 20 | + IsHilbertSchmidt (modelOperator ha N) ∧ | |
| 21 | + (hsNorm (arithmeticOperator ha N)≤positiveTrace (arithmeticOperator ha N) ∧ | |
| 22 | + positiveTrace (arithmeticOperator ha N)≤C*(Real.log N^2+a⁻¹^2)) ∧ | |
| 23 | + (hsNorm (diagonalOperator ha N)≤positiveTrace (diagonalOperator ha N) ∧ | |
| 24 | + positiveTrace (diagonalOperator ha N)≤C*a⁻¹^2) ∧ | |
| 25 | + hsNorm (modelOperator ha N)≤C*a⁻¹^2 := by | |
| 26 | + obtain ⟨K,hK,hmodel⟩ := modelOperator_uniform_hs_bound | |
| 27 | + let D := 2*Real.pi*(Real.log 4+4) | |
| 28 | + have hD : 0<D := by dsimp [D]; positivity | |
| 29 | + refine ⟨2*A+D+K,by positivity,?_⟩ | |
| 30 | + intro N _ hN4 hGRH havg a ha0 ha | |
| 31 | + obtain ⟨hp,hps,hpt⟩ := arithmeticOperator_trace_bound_of_average_on_strip N hN4 hGRH ha0 ha A hA.le havg | |
| 32 | + obtain ⟨hd,hds,hdt⟩ := diagonalOperator_trace_bound ha ha0 N | |
| 33 | + obtain ⟨hk,hks⟩ := hmodel a ha0 ha N inferInstance | |
| 34 | + refine ⟨hp,hd,hk,⟨hps,?_⟩,⟨hds,?_⟩,?_⟩ | |
| 35 | + · exact hpt.trans (mul_le_mul_of_nonneg_right (by linarith) (by positivity)) | |
| 36 | + · exact hdt.trans (mul_le_mul_of_nonneg_right (by dsimp [D] at *; linarith) (by positivity)) | |
| 37 | + · exact hks.trans (mul_le_mul_of_nonneg_right (by linarith) (by positivity)) | |
| 38 | + | |
| 39 | +lemma residual_bound_of_components (a : ℝ) (N : ℕ) [NeZero N] | |
| 40 | + (ha0 : 0<a) (hN4 : 4≤N) (hGRH : GRH N) (ha : a<beta) (C : ℝ) (hC : 0≤C) | |
| 41 | + (hP : IsPositiveTraceClass (arithmeticOperator ha N)) | |
| 42 | + (hD : IsPositiveTraceClass (diagonalOperator ha N)) | |
| 43 | + (hK : IsHilbertSchmidt (modelOperator ha N)) | |
| 44 | + (hp : positiveTrace (arithmeticOperator ha N)≤C*(Real.log N^2+a⁻¹^2)) | |
| 45 | + (hd : positiveTrace (diagonalOperator ha N)≤C*a⁻¹^2) | |
| 46 | + (hk : hsNorm (modelOperator ha N)≤C*a⁻¹^2) : | |
| 47 | + IsHilbertSchmidt (residualOperator ha N) ∧ | |
| 48 | + ‖residualOperator ha N‖≤hsNorm (residualOperator ha N) ∧ | |
| 49 | + hsNorm (residualOperator ha N)≤12*C*(Real.log N^2+a⁻¹^2) := by | |
| 50 | + rw [residualOperator_components_at a N ha0 hN4 hGRH ha] | |
| 51 | + obtain ⟨hR,hr⟩ := hilbertSchmidt_sub_sub_bound hP.isHilbertSchmidt hD.isHilbertSchmidt hK | |
| 52 | + refine ⟨hR,hR.norm_le_hsNorm,?_⟩ | |
| 53 | + have hp' := hP.hsNorm_le_trace.trans hp | |
| 54 | + have hd' := hD.hsNorm_le_trace.trans hd | |
| 55 | + nlinarith [mul_nonneg hC (sq_nonneg (Real.log N))] | |
| 56 | + | |
| 57 | +lemma residual_bound_of_average (A : ℝ) (hA : 0<A) : | |
| 58 | + ∃ C : ℝ, 0<C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), 4≤N → GRH N → | |
| 59 | + (∀ σ : ℝ, 0<σ → σ≤beta → averagedLogDerivative N σ≤A*(Real.log N^2+σ⁻¹^2)) → | |
| 60 | + ∀ a : ℝ, 0<a → ∀ ha : a<beta, | |
| 61 | + IsHilbertSchmidt (residualOperator ha N) ∧ | |
| 62 | + ‖residualOperator ha N‖≤hsNorm (residualOperator ha N) ∧ | |
| 63 | + hsNorm (residualOperator ha N)≤C*(Real.log N^2+a⁻¹^2) := by | |
| 64 | + obtain ⟨C,hC,hcomp⟩ := component_bounds_of_average A hA | |
| 65 | + refine ⟨12*C,by positivity,?_⟩ | |
| 66 | + intro N _ hN4 hGRH havg a ha0 ha | |
| 67 | + obtain ⟨hP,hD,hK,hp,hd,hk⟩ := hcomp N inferInstance hN4 hGRH havg a ha0 ha | |
| 68 | + exact residual_bound_of_components a N ha0 hN4 hGRH ha C hC.le hP hD hK hp.2 hd.2 hk | |
| 69 | + | |
| 70 | +end ConditionalGoldbach | |
+111 −0 ConditionalGoldbach/Proofs/CutoffSmooth.lean added View file
| @@ -0,0 +1,111 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Experiment | |
| 4 | +public import Mathlib.Analysis.Calculus.Deriv.Slope | |
| 5 | +import Mathlib.Tactic.NormNum.RealSqrt | |
| 6 | + | |
| 7 | +@[expose] public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators Topology | |
| 12 | +open Filter Set | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +def positivePartPower (m : ℕ) (x : ℝ) : ℝ := (max x 0)^m | |
| 16 | + | |
| 17 | +lemma positivePartPower_hasDerivAt (m : ℕ) (hm : 2 ≤ m) (x : ℝ) : | |
| 18 | + HasDerivAt (positivePartPower m) ((m:ℝ)*positivePartPower (m - 1) x) x := by | |
| 19 | + rcases lt_trichotomy x 0 with hx|hx|hx | |
| 20 | + · have he : positivePartPower m =ᶠ[𝓝 x] fun _ => (0:ℝ) := by | |
| 21 | + filter_upwards [Iio_mem_nhds hx] with y hy | |
| 22 | + change y < 0 at hy | |
| 23 | + simp [positivePartPower,max_eq_right hy.le,Nat.ne_of_gt (by omega : 0 < m)] | |
| 24 | + have hd := (hasDerivAt_const x (0:ℝ)).congr_of_eventuallyEq he | |
| 25 | + simpa [positivePartPower,max_eq_right hx.le,Nat.ne_of_gt (by omega : 0 < m - 1)] using hd | |
| 26 | + · subst x | |
| 27 | + have hcont : Tendsto (positivePartPower (m - 1)) (𝓝[≠] (0:ℝ)) (𝓝 0) := by | |
| 28 | + have hc : Continuous (positivePartPower (m - 1)) := (continuous_id.max continuous_const).pow _ | |
| 29 | + simpa [positivePartPower,Nat.ne_of_gt (by omega : 0 < m - 1)] using (hc.continuousAt (x := 0)).tendsto.mono_left nhdsWithin_le_nhds | |
| 30 | + have he : slope (positivePartPower m) 0 =ᶠ[𝓝[≠] (0:ℝ)] positivePartPower (m - 1) := by | |
| 31 | + filter_upwards [self_mem_nhdsWithin] with y hy | |
| 32 | + have hy0 : y≠0 := hy | |
| 33 | + rw [slope_fun_def_field] | |
| 34 | + simp only [positivePartPower,max_self,zero_pow (by omega : m≠0),sub_zero] | |
| 35 | + rcases lt_or_gt_of_ne hy0 with hy|hy | |
| 36 | + · simp [max_eq_right hy.le,Nat.ne_of_gt (by omega : 0 < m - 1),Nat.ne_of_gt (by omega : 0 < m)] | |
| 37 | + · rw [max_eq_left hy.le,show m = (m - 1)+1 by omega,pow_succ] | |
| 38 | + field_simp | |
| 39 | + simp | |
| 40 | + have hd := hasDerivAt_iff_tendsto_slope.mpr (hcont.congr' he.symm) | |
| 41 | + simpa [positivePartPower,Nat.ne_of_gt (by omega : 0 < m - 1)] using hd | |
| 42 | + · have he : positivePartPower m =ᶠ[𝓝 x] fun y => y^m := by | |
| 43 | + filter_upwards [Ioi_mem_nhds hx] with y hy | |
| 44 | + change 0 < y at hy | |
| 45 | + simp [positivePartPower,max_eq_left hy.le] | |
| 46 | + simpa [positivePartPower,max_eq_left hx.le] using ((hasDerivAt_id x).pow m).congr_of_eventuallyEq he | |
| 47 | + | |
| 48 | +lemma positivePartPower_contDiff (k m : ℕ) (hkm : k < m) : ContDiff ℝ k (positivePartPower m) := by | |
| 49 | + induction k generalizing m with | |
| 50 | + | zero => exact contDiff_zero.mpr ((continuous_id.max continuous_const).pow m) | |
| 51 | + | succ k ih => | |
| 52 | + have hm : 2 ≤ m := by omega | |
| 53 | + rw [Nat.cast_add_one,contDiff_succ_iff_deriv] | |
| 54 | + simp only [WithTop.natCast_ne_top,analyticOn_univ,IsEmpty.forall_iff,true_and] | |
| 55 | + refine ⟨fun x => (positivePartPower_hasDerivAt m hm x).differentiableAt,?_⟩ | |
| 56 | + have he : deriv (positivePartPower m) = fun x => (m:ℝ)*positivePartPower (m - 1) x := | |
| 57 | + funext (fun x => (positivePartPower_hasDerivAt m hm x).deriv) | |
| 58 | + rw [he] | |
| 59 | + exact contDiff_const.mul (ih (m - 1) (by omega)) | |
| 60 | + | |
| 61 | +def cutoffPolynomialCore (t : ℝ) : ℝ := | |
| 62 | + 1716*t^7-9009*t^8+20020*t^9-24024*t^10+16380*t^11-6006*t^12+924*t^13 | |
| 63 | + | |
| 64 | +lemma cutoffPolynomialCore_sum (t : ℝ) : | |
| 65 | + (∑ j ∈ Finset.Icc 7 13, (Nat.choose 13 j:ℝ)*t^j*(1-t)^(13-j))=cutoffPolynomialCore t := by | |
| 66 | + norm_num [Finset.sum_Icc_succ_top,Nat.choose,cutoffPolynomialCore]; | |
| 67 | + ring | |
| 68 | + | |
| 69 | +lemma cutoffPolynomialCore_reflection (t : ℝ) : cutoffPolynomialCore t+cutoffPolynomialCore (1-t)=1 := by | |
| 70 | + unfold cutoffPolynomialCore | |
| 71 | + ring | |
| 72 | + | |
| 73 | +lemma cutoffPolynomial_eq_positive_parts (t : ℝ) : | |
| 74 | + cutoffPolynomial t = cutoffPolynomialCore (max t 0)+cutoffPolynomialCore (-(max (t-1) 0)) := by | |
| 75 | + unfold cutoffPolynomial | |
| 76 | + split_ifs with ht ht' | |
| 77 | + · rw [max_eq_right ht,max_eq_right (by linarith : t-1≤0)] | |
| 78 | + norm_num [cutoffPolynomialCore] | |
| 79 | + · rw [max_eq_left (by linarith : 0≤t),max_eq_left (by linarith : 0≤t-1)] | |
| 80 | + convert (cutoffPolynomialCore_reflection t).symm using 1; congr 1; ring_nf | |
| 81 | + · rw [max_eq_left (by linarith : 0≤t),max_eq_right (by linarith : t-1≤0)] | |
| 82 | + simp only [neg_zero,cutoffPolynomialCore_sum] | |
| 83 | + norm_num [cutoffPolynomialCore] | |
| 84 | + | |
| 85 | +lemma cutoffPolynomial_contDiff : ContDiff ℝ 6 cutoffPolynomial := by | |
| 86 | + have h7 := positivePartPower_contDiff 6 7 (by norm_num) | |
| 87 | + have h8 := positivePartPower_contDiff 6 8 (by norm_num) | |
| 88 | + have h9 := positivePartPower_contDiff 6 9 (by norm_num) | |
| 89 | + have h10 := positivePartPower_contDiff 6 10 (by norm_num) | |
| 90 | + have h11 := positivePartPower_contDiff 6 11 (by norm_num) | |
| 91 | + have h12 := positivePartPower_contDiff 6 12 (by norm_num) | |
| 92 | + have h13 := positivePartPower_contDiff 6 13 (by norm_num) | |
| 93 | + have hleft : ContDiff ℝ 6 (fun t => cutoffPolynomialCore (max t 0)) := by | |
| 94 | + exact ((((((contDiff_const.mul h7).sub (contDiff_const.mul h8)).add (contDiff_const.mul h9)).sub | |
| 95 | + (contDiff_const.mul h10)).add (contDiff_const.mul h11)).sub (contDiff_const.mul h12)).add (contDiff_const.mul h13) | |
| 96 | + have hright : ContDiff ℝ 6 (fun t => cutoffPolynomialCore (-(max t 0))) := by | |
| 97 | + have hh : ContDiff ℝ 6 (fun t => -1716*positivePartPower 7 t-9009*positivePartPower 8 t- | |
| 98 | + 20020*positivePartPower 9 t-24024*positivePartPower 10 t-16380*positivePartPower 11 t- | |
| 99 | + 6006*positivePartPower 12 t-924*positivePartPower 13 t) := | |
| 100 | + ((((((contDiff_const.mul h7).sub (contDiff_const.mul h8)).sub (contDiff_const.mul h9)).sub | |
| 101 | + (contDiff_const.mul h10)).sub (contDiff_const.mul h11)).sub (contDiff_const.mul h12)).sub (contDiff_const.mul h13) | |
| 102 | + convert hh using 1 | |
| 103 | + funext t | |
| 104 | + unfold cutoffPolynomialCore positivePartPower | |
| 105 | + ring | |
| 106 | + have he : cutoffPolynomial = fun t => cutoffPolynomialCore (max t 0)+cutoffPolynomialCore (-(max (t-1) 0)) := | |
| 107 | + funext cutoffPolynomial_eq_positive_parts | |
| 108 | + rw [he] | |
| 109 | + exact hleft.add (hright.comp (contDiff_id.sub contDiff_const)) | |
| 110 | + | |
| 111 | +end ConditionalGoldbach | |
+125 −0 ConditionalGoldbach/Proofs/DensityArithmetic.lean added View file
| @@ -0,0 +1,125 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.DensityConvergence | |
| 4 | + | |
| 5 | +/-! Multiplicative coefficients of the density Euler product. -/ | |
| 6 | +@[expose] public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff LSeries.notation | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | +open MathlibNt.SieveTheory.SingularSeries hiding singularSeries | |
| 14 | + | |
| 15 | +def densityMultiplier (N k : ℕ) : ℝ := | |
| 16 | + ∏ p ∈ k.primeFactors.filter (fun p => 2 < p ∧ ¬p ∣ N), liuCorrectionFactor p | |
| 17 | + | |
| 18 | +lemma densityMultiplier_pos (N k : ℕ) : 0 < densityMultiplier N k := by | |
| 19 | + apply Finset.prod_pos | |
| 20 | + intro p hp | |
| 21 | + exact liuCorrectionFactor_pos (Finset.mem_filter.mp hp).2.1 | |
| 22 | + | |
| 23 | +lemma densityMultiplier_one (N : ℕ) : densityMultiplier N 1 = 1 := by | |
| 24 | + simp [densityMultiplier] | |
| 25 | + | |
| 26 | +lemma oddPrimeFactors_mul_disjoint (N k : ℕ) (hN : 0 < N) (hk : 0 < k) : | |
| 27 | + (k*N).primeFactors.filter (fun p => 2 < p) = | |
| 28 | + N.primeFactors.filter (fun p => 2 < p) ∪ | |
| 29 | + k.primeFactors.filter (fun p => 2 < p ∧ ¬p ∣ N) := by | |
| 30 | + have hN0 := hN.ne' | |
| 31 | + have hk0 := hk.ne' | |
| 32 | + have hkN0 := (Nat.mul_pos hk hN).ne' | |
| 33 | + ext p | |
| 34 | + simp only [Finset.mem_filter, Finset.mem_union, Nat.mem_primeFactors] | |
| 35 | + by_cases hp : p.Prime | |
| 36 | + · rw [hp.dvd_mul] | |
| 37 | + tauto | |
| 38 | + · simp [hp] | |
| 39 | + | |
| 40 | +lemma oddPrimeFactors_mul_disjointness (N k : ℕ) : | |
| 41 | + Disjoint (N.primeFactors.filter (fun p => 2 < p)) | |
| 42 | + (k.primeFactors.filter (fun p => 2 < p ∧ ¬p ∣ N)) := by | |
| 43 | + apply Finset.disjoint_left.mpr | |
| 44 | + intro p hpN hpk | |
| 45 | + exact (Finset.mem_filter.mp hpk).2.2 | |
| 46 | + (Nat.dvd_of_mem_primeFactors (Finset.mem_filter.mp hpN).1) | |
| 47 | + | |
| 48 | +lemma singularSeries_mul_factorization (N k : ℕ) (hN : 0 < N) (hk : 0 < k) : | |
| 49 | + singularSeries (k*N) = singularSeries N * densityMultiplier N k := by | |
| 50 | + unfold singularSeries liuSingularSeries liuCorrection densityMultiplier | |
| 51 | + rw [oddPrimeFactors_mul_disjoint N k hN hk, | |
| 52 | + Finset.prod_union (oddPrimeFactors_mul_disjointness N k)] | |
| 53 | + ring | |
| 54 | + | |
| 55 | +lemma densityMultiplier_mul {k l : ℕ} (N : ℕ) (hkl : Nat.Coprime k l) | |
| 56 | + (hk : 0 < k) (hl : 0 < l) : | |
| 57 | + densityMultiplier N (k*l) = densityMultiplier N k * densityMultiplier N l := by | |
| 58 | + unfold densityMultiplier | |
| 59 | + rw [Nat.primeFactors_mul hk.ne' hl.ne', Finset.filter_union] | |
| 60 | + apply Finset.prod_union | |
| 61 | + exact hkl.disjoint_primeFactors.mono (Finset.filter_subset _ _) (Finset.filter_subset _ _) | |
| 62 | + | |
| 63 | +lemma densityMultiplier_prime_pow (N p e : ℕ) (hp : p.Prime) (he : 0 < e) : | |
| 64 | + densityMultiplier N (p^e) = if 2 < p ∧ ¬p ∣ N then liuCorrectionFactor p else 1 := by | |
| 65 | + unfold densityMultiplier | |
| 66 | + rw [Nat.primeFactors_prime_pow he.ne' hp] | |
| 67 | + rw [Finset.filter_singleton] | |
| 68 | + by_cases hh : 2 < p ∧ ¬p ∣ N <;> simp [hh] | |
| 69 | + | |
| 70 | +def densityMultiplicativeTerm (N : ℕ) (w : ℂ) (k : ℕ) : ℂ := | |
| 71 | + if k = 0 then 0 else (densityMultiplier N k : ℂ) / (k : ℂ)^w | |
| 72 | + | |
| 73 | +lemma densityMultiplicativeTerm_zero (N : ℕ) (w : ℂ) : densityMultiplicativeTerm N w 0 = 0 := by | |
| 74 | + simp [densityMultiplicativeTerm] | |
| 75 | + | |
| 76 | +lemma densityMultiplicativeTerm_one (N : ℕ) (w : ℂ) : densityMultiplicativeTerm N w 1 = 1 := by | |
| 77 | + simp [densityMultiplicativeTerm, densityMultiplier_one] | |
| 78 | + | |
| 79 | +lemma densityMultiplicativeTerm_mul {k l : ℕ} (N : ℕ) (w : ℂ) (hkl : Nat.Coprime k l) : | |
| 80 | + densityMultiplicativeTerm N w (k*l) = | |
| 81 | + densityMultiplicativeTerm N w k * densityMultiplicativeTerm N w l := by | |
| 82 | + by_cases hk : k = 0 | |
| 83 | + · simp [hk, densityMultiplicativeTerm_zero] | |
| 84 | + by_cases hl : l = 0 | |
| 85 | + · simp [hl, densityMultiplicativeTerm_zero] | |
| 86 | + simp only [densityMultiplicativeTerm, hk, hl, Nat.mul_eq_zero, or_self, ite_false, | |
| 87 | + densityMultiplier_mul N hkl (Nat.pos_of_ne_zero hk) (Nat.pos_of_ne_zero hl), | |
| 88 | + Complex.ofReal_mul, Nat.cast_mul] | |
| 89 | + rw [show ((k : ℂ)*(l : ℂ))^w = (k : ℂ)^w*(l : ℂ)^w by | |
| 90 | + exact_mod_cast Complex.mul_cpow_ofReal_nonneg (Nat.cast_nonneg k) (Nat.cast_nonneg l) w] | |
| 91 | + ring | |
| 92 | + | |
| 93 | +lemma densitySeries_term_factorization (N : ℕ) (hN : 0 < N) (w : ℂ) (k : ℕ) : | |
| 94 | + (if 0 < k then (singularSeries (k*N) : ℂ)/(k : ℂ)^w else 0) = | |
| 95 | + (singularSeries N : ℂ) * densityMultiplicativeTerm N w k := by | |
| 96 | + by_cases hk : k = 0 | |
| 97 | + · simp [hk, densityMultiplicativeTerm_zero] | |
| 98 | + · rw [ite_eq_left (Nat.pos_of_ne_zero hk), singularSeries_mul_factorization N k hN (Nat.pos_of_ne_zero hk)] | |
| 99 | + simp [densityMultiplicativeTerm, hk, mul_div_assoc] | |
| 100 | + | |
| 101 | +lemma densityMultiplicativeTerm_summable_norm (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 102 | + {w : ℂ} (hw : 1 < w.re) : | |
| 103 | + Summable (fun k => ‖densityMultiplicativeTerm N w k‖) := by | |
| 104 | + have hn : ‖(singularSeries N : ℂ)‖ ≠ 0 := norm_ne_zero_iff.mpr | |
| 105 | + (Complex.ofReal_ne_zero.mpr (singularSeries_pos N).ne') | |
| 106 | + have hf := (densitySeries_summable_norm N hN hpos hw).mul_right (‖(singularSeries N : ℂ)‖⁻¹) | |
| 107 | + apply hf.congr | |
| 108 | + intro k | |
| 109 | + have he := congrArg norm (densitySeries_term_factorization N hpos w k) | |
| 110 | + simp only [norm_mul] at he | |
| 111 | + by_cases hk : 0 < k | |
| 112 | + · rw [ite_eq_left hk] at he ⊢ | |
| 113 | + rw [he] | |
| 114 | + field_simp | |
| 115 | + · have hk0 : k = 0 := by omega | |
| 116 | + subst k | |
| 117 | + simp [densityMultiplicativeTerm_zero] | |
| 118 | + | |
| 119 | +lemma densitySeries_eq_multiplier_tsum (N : ℕ) (hN : 0 < N) (w : ℂ) : | |
| 120 | + densitySeries N w = (singularSeries N : ℂ) * ∑' k, densityMultiplicativeTerm N w k := by | |
| 121 | + unfold densitySeries | |
| 122 | + simp_rw [densitySeries_term_factorization N hN w] | |
| 123 | + exact tsum_mul_left | |
| 124 | + | |
| 125 | +end ConditionalGoldbach | |
+86 −0 ConditionalGoldbach/Proofs/DensityConvergence.lean added View file
| @@ -0,0 +1,86 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.DensityResidue | |
| 4 | +public import ConditionalGoldbach.Proofs.SingularLower | |
| 5 | + | |
| 6 | +/-! Absolute convergence of the density Dirichlet series via a divisor majorant. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff LSeries.notation | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma totient_ratio_le_divisorCount (n : ℕ) (hn : 0 < n) : | |
| 16 | + (n : ℝ)/n.totient ≤ n.divisors.card := by | |
| 17 | + rw [totient_ratio_prod n hn, Nat.card_divisors hn.ne', Nat.cast_prod] | |
| 18 | + apply Finset.prod_le_prod₀ | |
| 19 | + · intro p hp | |
| 20 | + have hp2 : (2 : ℝ) ≤ p := by exact_mod_cast (Nat.prime_of_mem_primeFactors hp).two_le | |
| 21 | + exact div_nonneg (by positivity) (by linarith) | |
| 22 | + · intro p hp | |
| 23 | + have hprime := Nat.prime_of_mem_primeFactors hp | |
| 24 | + have hp2 : (2 : ℝ) ≤ p := by exact_mod_cast hprime.two_le | |
| 25 | + have hf : 0 < n.factorization p := hprime.factorization_pos_of_dvd hn.ne' | |
| 26 | + (Nat.dvd_of_mem_primeFactors hp) | |
| 27 | + have hleft : (p : ℝ)/(p-1) ≤ 2 := by | |
| 28 | + rw [div_le_iff₀ (by linarith)] | |
| 29 | + linarith | |
| 30 | + exact hleft.trans (by exact_mod_cast (show 2 ≤ n.factorization p+1 by omega)) | |
| 31 | + | |
| 32 | +lemma singularSeries_mul_le_divisorCount (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 33 | + (k : ℕ) (hk : 0 < k) : | |
| 34 | + singularSeries (k*N) ≤ ((N : ℝ)/N.totient) * k.divisors.card := by | |
| 35 | + have hφk : 0 < (k.totient : ℝ) := by exact_mod_cast Nat.totient_pos.mpr hk | |
| 36 | + have hφN : 0 < (N.totient : ℝ) := by exact_mod_cast Nat.totient_pos.mpr hpos | |
| 37 | + have hφ : (k.totient : ℝ) * N.totient ≤ (k*N).totient := by | |
| 38 | + exact_mod_cast Nat.totient_super_multiplicative k N | |
| 39 | + calc | |
| 40 | + _ ≤ ((k*N : ℕ) : ℝ)/(k*N).totient := | |
| 41 | + singularSeries_upper_totient (k*N) (hN.mul_left k) (Nat.mul_pos hk hpos) | |
| 42 | + _ ≤ ((k*N : ℕ) : ℝ)/(k.totient*N.totient : ℝ) := | |
| 43 | + div_le_div_of_nonneg_left (by positivity) (mul_pos hφk hφN) hφ | |
| 44 | + _ = ((N : ℝ)/N.totient) * ((k : ℝ)/k.totient) := by push_cast; ring | |
| 45 | + _ ≤ _ := mul_le_mul_of_nonneg_left (totient_ratio_le_divisorCount k hk) (by positivity) | |
| 46 | + | |
| 47 | +lemma LSeriesSummable_divisorCount {w : ℂ} (hw : 1 < w.re) : | |
| 48 | + LSeriesSummable (fun n : ℕ => (n.divisors.card : ℂ)) w := by | |
| 49 | + have h := (LSeriesSummable_one_iff.mpr hw).convolution (LSeriesSummable_one_iff.mpr hw) | |
| 50 | + have he : LSeries.convolution (1 : ℕ → ℂ) 1 = fun n : ℕ => (n.divisors.card : ℂ) := by | |
| 51 | + funext n | |
| 52 | + rw [LSeries.convolution_def] | |
| 53 | + simp only [Pi.one_apply, one_mul] | |
| 54 | + rw [Nat.sum_divisorsAntidiagonal (fun _ _ => (1 : ℂ))] | |
| 55 | + simp | |
| 56 | + rwa [he] at h | |
| 57 | + | |
| 58 | +lemma densitySeries_summable_norm (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 59 | + {w : ℂ} (hw : 1 < w.re) : | |
| 60 | + Summable (fun k : ℕ => if 0 < k then ‖(singularSeries (k*N) : ℂ)/(k : ℂ)^w‖ else 0) := by | |
| 61 | + have hmajor := (LSeriesSummable_divisorCount hw).norm.mul_left ((N : ℝ)/N.totient) | |
| 62 | + apply hmajor.of_nonneg_of_le | |
| 63 | + · intro k | |
| 64 | + split_ifs <;> positivity | |
| 65 | + · intro k | |
| 66 | + by_cases hk : 0 < k | |
| 67 | + · rw [ite_eq_left hk, LSeries.norm_term_eq, ite_eq_right hk.ne'] | |
| 68 | + simp only [norm_div, Complex.norm_natCast, Complex.norm_real, Real.norm_eq_abs, | |
| 69 | + abs_of_pos (singularSeries_pos (k*N)), Complex.norm_natCast_cpow_of_pos hk] | |
| 70 | + have hb := singularSeries_mul_le_divisorCount N hN hpos k hk | |
| 71 | + calc | |
| 72 | + _ ≤ (((N : ℝ)/N.totient) * k.divisors.card)/(k : ℝ)^w.re := | |
| 73 | + div_le_div_of_nonneg_right hb (Real.rpow_nonneg (Nat.cast_nonneg k) _) | |
| 74 | + _ = _ := by ring | |
| 75 | + · have hk0 : k = 0 := by omega | |
| 76 | + subst k | |
| 77 | + simp [LSeries.term] | |
| 78 | + | |
| 79 | +theorem lemma_4_3_density_convergence (N : ℕ) (hN : Even N) (hN4 : 4 ≤ N) : | |
| 80 | + (∀ w : ℂ, 1 < w.re → Summable (fun k : ℕ => | |
| 81 | + if 0 < k then ‖(singularSeries (k * N) : ℂ) / (k : ℂ) ^ w‖ else 0)) ∧ | |
| 82 | + DifferentiableOn ℂ (continuedDensity N) {w | 0 < w.re ∧ w ≠ 1} := by | |
| 83 | + exact ⟨fun w hw => densitySeries_summable_norm N hN (by omega) hw, | |
| 84 | + continuedDensity_differentiableOn N⟩ | |
| 85 | + | |
| 86 | +end ConditionalGoldbach | |
+165 −0 ConditionalGoldbach/Proofs/DensityEuler.lean added View file
| @@ -0,0 +1,165 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Asymptotics | |
| 4 | +public import Mathlib.Analysis.Normed.Module.MultipliableUniformlyOn | |
| 5 | +public import ConditionalGoldbach.Proofs.DensitySeries | |
| 6 | + | |
| 7 | +/-! Normal convergence of the density Euler correction in the full right half-plane. -/ | |
| 8 | +@[expose] public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | +attribute [local instance] Classical.propDecidable | |
| 16 | + | |
| 17 | +def densityEulerTerm (N p : ℕ) (w : ℂ) : ℂ := | |
| 18 | + if p.Prime ∧ 2 < p ∧ ¬p ∣ N then (p : ℂ)^(-w) / ((p : ℂ)-2) else 0 | |
| 19 | + | |
| 20 | +lemma densityEulerTerm_bound (N p : ℕ) (δ : ℝ) (w : ℂ) (hw : δ ≤ w.re) : | |
| 21 | + ‖densityEulerTerm N p w‖ ≤ 3 * ‖LSeries.term 1 (1 + (δ : ℂ)) p‖ := by | |
| 22 | + unfold densityEulerTerm | |
| 23 | + split_ifs with hp | |
| 24 | + · have hp0 : (p : ℂ) ≠ 0 := by exact_mod_cast (show p ≠ 0 by omega) | |
| 25 | + have hp2 : (2 : ℝ) < p := by exact_mod_cast hp.2.1 | |
| 26 | + have hpden : (p : ℂ) - 2 ≠ 0 := by | |
| 27 | + intro he | |
| 28 | + have he' := congrArg Complex.re he | |
| 29 | + simp at he' | |
| 30 | + linarith | |
| 31 | + have heq : (p : ℂ)^(-w) / ((p : ℂ)-2) = | |
| 32 | + ((p : ℂ) / ((p : ℂ)-2)) * LSeries.term 1 (1+w) p := by | |
| 33 | + rw [LSeries.term_of_ne_zero (show p ≠ 0 by omega)] | |
| 34 | + simp only [Pi.one_apply, Complex.cpow_add _ _ hp0, Complex.cpow_one, | |
| 35 | + Complex.cpow_neg, div_eq_mul_inv] | |
| 36 | + field_simp | |
| 37 | + rw [heq, norm_mul] | |
| 38 | + have hr : ‖(p : ℂ) / ((p : ℂ)-2)‖ ≤ 3 := by | |
| 39 | + rw [norm_div, Complex.norm_natCast] | |
| 40 | + have he : ‖(p : ℂ) - 2‖ = (p : ℝ) - 2 := by | |
| 41 | + rw [show (p : ℂ) - 2 = (((p : ℝ) - 2 : ℝ) : ℂ) by push_cast; rfl, | |
| 42 | + Complex.norm_real, Real.norm_eq_abs, abs_of_pos (by linarith)] | |
| 43 | + rw [he, div_le_iff₀ (by linarith)] | |
| 44 | + have : (3 : ℝ) ≤ p := by exact_mod_cast (show 3 ≤ p by omega) | |
| 45 | + linarith | |
| 46 | + exact mul_le_mul hr (LSeries.norm_term_le_of_re_le_re 1 (by simpa using hw) p) | |
| 47 | + (norm_nonneg _) (by norm_num) | |
| 48 | + · simp | |
| 49 | + | |
| 50 | +lemma densityEulerTerm_continuous (N p : ℕ) : Continuous (densityEulerTerm N p) := by | |
| 51 | + unfold densityEulerTerm | |
| 52 | + split_ifs with hp | |
| 53 | + · have hp0 : (p : ℂ) ≠ 0 := by exact_mod_cast (show p ≠ 0 by omega) | |
| 54 | + exact (continuous_neg.const_cpow (Or.inl hp0)).div_const _ | |
| 55 | + · fun_prop | |
| 56 | + | |
| 57 | +lemma densityEulerTerm_differentiable (N p : ℕ) : Differentiable ℂ (densityEulerTerm N p) := by | |
| 58 | + unfold densityEulerTerm | |
| 59 | + split_ifs with hp | |
| 60 | + · have hp0 : (p : ℂ) ≠ 0 := by exact_mod_cast (show p ≠ 0 by omega) | |
| 61 | + intro w | |
| 62 | + exact ((differentiableAt_id.neg.const_cpow (Or.inl hp0))).div_const _ | |
| 63 | + · fun_prop | |
| 64 | + | |
| 65 | +lemma densityEuler_compact_majorant (N : ℕ) (K : Set ℂ) (hK : IsCompact K) | |
| 66 | + (hKU : K ⊆ {w | 0 < w.re}) : | |
| 67 | + ∃ b : ℕ → ℝ, Summable b ∧ ∀ p w, w ∈ K → ‖densityEulerTerm N p w‖ ≤ b p := by | |
| 68 | + by_cases hne : K.Nonempty | |
| 69 | + · obtain ⟨w₀, hw₀, hmin⟩ := hK.exists_isMinOn hne Complex.continuous_re.continuousOn | |
| 70 | + refine ⟨fun p => 3 * ‖LSeries.term 1 (1 + (w₀.re : ℂ)) p‖, | |
| 71 | + ?_, fun p w hw => densityEulerTerm_bound N p w₀.re w (hmin hw)⟩ | |
| 72 | + apply Summable.mul_left | |
| 73 | + exact (LSeriesSummable_one_iff.mpr (by simpa using hKU hw₀)).norm | |
| 74 | + · refine ⟨0, summable_zero, ?_⟩ | |
| 75 | + intro p w hw | |
| 76 | + exact (hne ⟨w, hw⟩).elim | |
| 77 | + | |
| 78 | +lemma normallySummableOn_of_compact_majorant {ι X : Type*} [TopologicalSpace X] | |
| 79 | + (f : ι → X → ℂ) (U : Set X) | |
| 80 | + (h : ∀ K : Set X, IsCompact K → K ⊆ U → | |
| 81 | + ∃ b : ι → ℝ, Summable b ∧ ∀ i x, x ∈ K → ‖f i x‖ ≤ b i) : | |
| 82 | + NormallySummableOn f U := by | |
| 83 | + intro K hK hKU | |
| 84 | + obtain ⟨b, hb, hbound⟩ := h K hK hKU | |
| 85 | + have hB (i : ι) : BddAbove {r : ℝ | ∃ x ∈ K, r = ‖f i x‖} := by | |
| 86 | + refine ⟨b i, ?_⟩ | |
| 87 | + rintro r ⟨x, hx, rfl⟩ | |
| 88 | + exact hbound i x hx | |
| 89 | + refine ⟨hB, ?_⟩ | |
| 90 | + by_cases hne : K.Nonempty | |
| 91 | + · obtain ⟨x, hx⟩ := hne | |
| 92 | + apply hb.of_nonneg_of_le | |
| 93 | + · intro i | |
| 94 | + exact (norm_nonneg _).trans (le_csSup (hB i) ⟨x, hx, rfl⟩) | |
| 95 | + · intro i | |
| 96 | + exact csSup_le ⟨‖f i x‖, x, hx, rfl⟩ (by | |
| 97 | + rintro r ⟨y, hy, rfl⟩ | |
| 98 | + exact hbound i y hy) | |
| 99 | + · have he : K = ∅ := Set.not_nonempty_iff_eq_empty.mp hne | |
| 100 | + simp [he] | |
| 101 | + | |
| 102 | +lemma densityEulerTerm_normallySummable (N : ℕ) : | |
| 103 | + NormallySummableOn (densityEulerTerm N) {w | 0 < w.re} := | |
| 104 | + normallySummableOn_of_compact_majorant _ _ (densityEuler_compact_majorant N) | |
| 105 | + | |
| 106 | +lemma densityEulerProduct_eq_tprod (N : ℕ) (w : ℂ) : | |
| 107 | + densityEulerProduct N w = ∏' p : ℕ, (1 + densityEulerTerm N p w) := by | |
| 108 | + apply tprod_congr | |
| 109 | + intro p | |
| 110 | + unfold densityEulerTerm | |
| 111 | + split_ifs <;> simp | |
| 112 | + | |
| 113 | +lemma densityEulerTerm_summable_norm (N : ℕ) {w : ℂ} (hw : 0 < w.re) : | |
| 114 | + Summable (fun p => ‖densityEulerTerm N p w‖) := by | |
| 115 | + have hb : Summable (fun p => 3 * ‖LSeries.term 1 (1 + (w.re : ℂ)) p‖) := | |
| 116 | + ((LSeriesSummable_one_iff.mpr (by simpa using hw)).norm).mul_left 3 | |
| 117 | + exact hb.of_nonneg_of_le (fun _ => norm_nonneg _) (fun p => densityEulerTerm_bound N p w.re w le_rfl) | |
| 118 | + | |
| 119 | +lemma densityEulerProduct_multipliable (N : ℕ) {w : ℂ} (hw : 0 < w.re) : | |
| 120 | + Multipliable (fun p : ℕ => if p.Prime ∧ 2 < p ∧ ¬p ∣ N then | |
| 121 | + 1 + (p : ℂ)^(-w) / ((p : ℂ)-2) else 1) := by | |
| 122 | + convert multipliable_one_add_of_summable (densityEulerTerm_summable_norm N hw) using 1 | |
| 123 | + ext p | |
| 124 | + unfold densityEulerTerm | |
| 125 | + split_ifs <;> simp | |
| 126 | + | |
| 127 | +lemma densityEulerProduct_hasProdUniformlyOn (N : ℕ) (K : Set ℂ) | |
| 128 | + (hK : IsCompact K) (hKU : K ⊆ {w | 0 < w.re}) : | |
| 129 | + HasProdUniformlyOn (fun p w => 1 + densityEulerTerm N p w) (densityEulerProduct N) K := by | |
| 130 | + obtain ⟨b, hb, hbound⟩ := densityEuler_compact_majorant N K hK hKU | |
| 131 | + have hu := hb.hasProdUniformlyOn_nat_one_add hK | |
| 132 | + (Filter.Eventually.of_forall hbound) | |
| 133 | + (fun p => (densityEulerTerm_continuous N p).continuousOn) | |
| 134 | + simpa only [← densityEulerProduct_eq_tprod] using hu | |
| 135 | + | |
| 136 | +lemma densityEulerProduct_differentiableOn (N : ℕ) : | |
| 137 | + DifferentiableOn ℂ (densityEulerProduct N) {w | 0 < w.re} := by | |
| 138 | + have ho : IsOpen {w : ℂ | 0 < w.re} := isOpen_lt continuous_const Complex.continuous_re | |
| 139 | + have hu : TendstoLocallyUniformlyOn | |
| 140 | + (fun k w => ∏ p ∈ Finset.range k, (1 + densityEulerTerm N p w)) | |
| 141 | + (densityEulerProduct N) atTop {w | 0 < w.re} := by | |
| 142 | + apply (tendstoLocallyUniformlyOn_iff_forall_isCompact ho).2 | |
| 143 | + intro K hKU hK | |
| 144 | + exact (densityEulerProduct_hasProdUniformlyOn N K hK hKU).tendstoUniformlyOn_finsetRange | |
| 145 | + apply hu.differentiableOn _ ho | |
| 146 | + filter_upwards with k | |
| 147 | + apply Differentiable.differentiableOn | |
| 148 | + apply Differentiable.fun_finsetProd | |
| 149 | + intro p hp | |
| 150 | + exact (differentiable_const (1 : ℂ)).add (densityEulerTerm_differentiable N p) | |
| 151 | + | |
| 152 | +theorem lemma_4_3_euler_product_convergence (N : ℕ) (_hN : Even N) (_hN4 : 4 ≤ N) : | |
| 153 | + NormallySummableOn (fun p : ℕ => fun w : ℂ => | |
| 154 | + if p.Prime ∧ 2 < p ∧ ¬p ∣ N then (p : ℂ) ^ (-w) / ((p : ℂ) - 2) else 0) | |
| 155 | + {w | 0 < w.re} ∧ | |
| 156 | + (∀ w : ℂ, 0 < w.re → Multipliable (fun p : ℕ => | |
| 157 | + if p.Prime ∧ 2 < p ∧ ¬p ∣ N then | |
| 158 | + 1 + (p : ℂ) ^ (-w) / ((p : ℂ) - 2) else 1)) ∧ | |
| 159 | + DifferentiableOn ℂ (densityEulerProduct N) {w | 0 < w.re} ∧ | |
| 160 | + DifferentiableOn ℂ (diagonalSeries N) {w | 0 < w.re} := by | |
| 161 | + exact ⟨densityEulerTerm_normallySummable N, | |
| 162 | + fun w hw => densityEulerProduct_multipliable N hw, | |
| 163 | + densityEulerProduct_differentiableOn N, diagonalSeries_differentiableOn N⟩ | |
| 164 | + | |
| 165 | +end ConditionalGoldbach | |
+117 −0 ConditionalGoldbach/Proofs/DensityEulerIdentity.lean added View file
| @@ -0,0 +1,117 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.Meromorphic.Basic | |
| 4 | +public import ConditionalGoldbach.Proofs.DensityArithmetic | |
| 5 | + | |
| 6 | +/-! The exact Euler product identity and the complete density lemma. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff LSeries.notation | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | +open MathlibNt.SieveTheory.SingularSeries hiding singularSeries | |
| 15 | +attribute [local instance] Classical.propDecidable | |
| 16 | + | |
| 17 | +lemma density_prime_power_term (N p e : ℕ) (hp : p.Prime) (w : ℂ) (hw : w ≠ 0) : | |
| 18 | + densityMultiplicativeTerm N w (p^(e+1)) = | |
| 19 | + ((if 2 < p ∧ ¬p ∣ N then liuCorrectionFactor p else 1 : ℝ) : ℂ) * | |
| 20 | + ((p : ℂ)^(-w))^(e+1) := by | |
| 21 | + have hp0 : p^(e+1) ≠ 0 := pow_ne_zero _ hp.ne_zero | |
| 22 | + rw [densityMultiplicativeTerm, ite_eq_right hp0, | |
| 23 | + densityMultiplier_prime_pow N p (e+1) hp (by omega), div_eq_mul_inv, ← Complex.cpow_neg] | |
| 24 | + congr 1 | |
| 25 | + exact (riemannZetaSummandHom hw).map_pow p (e+1) | |
| 26 | + | |
| 27 | +lemma density_prime_power_sum (N p : ℕ) (hp : p.Prime) {w : ℂ} (hw : 1 < w.re) : | |
| 28 | + (∑' e : ℕ, densityMultiplicativeTerm N w (p^e)) = | |
| 29 | + (1-(p : ℂ)^(-w))⁻¹ * (1+densityEulerTerm N p w) := by | |
| 30 | + let q := (p : ℂ)^(-w) | |
| 31 | + let c : ℂ := ((if 2 < p ∧ ¬p ∣ N then liuCorrectionFactor p else 1 : ℝ) : ℂ) | |
| 32 | + have hw0 : w ≠ 0 := by intro he; norm_num [he] at hw | |
| 33 | + have hq : ‖q‖ < 1 := by | |
| 34 | + dsimp [q] | |
| 35 | + rw [Complex.norm_natCast_cpow_of_pos hp.pos, Complex.neg_re] | |
| 36 | + exact Real.rpow_lt_one_of_one_lt_of_neg (by exact_mod_cast hp.one_lt) (by linarith) | |
| 37 | + have hshift : HasSum (fun e : ℕ => densityMultiplicativeTerm N w (p^(e+1))) | |
| 38 | + (c*q*(1-q)⁻¹) := by | |
| 39 | + convert (hasSum_geometric_of_norm_lt_one hq).mul_left (c*q) using 1 | |
| 40 | + ext e | |
| 41 | + rw [density_prime_power_term N p e hp w hw0, pow_succ] | |
| 42 | + dsimp [c, q] | |
| 43 | + ring | |
| 44 | + have hf : Summable (fun e : ℕ => densityMultiplicativeTerm N w (p^e)) := | |
| 45 | + (summable_nat_add_iff 1).mp hshift.summable | |
| 46 | + rw [hf.tsum_eq_zero_add, pow_zero, densityMultiplicativeTerm_one, hshift.tsum_eq] | |
| 47 | + have hqn : 1-q ≠ 0 := by | |
| 48 | + intro he | |
| 49 | + have : q = 1 := by linear_combination -he | |
| 50 | + simp [this] at hq | |
| 51 | + by_cases hactive : 2 < p ∧ ¬p ∣ N | |
| 52 | + · have hp2 : (2 : ℝ) < p := by exact_mod_cast hactive.1 | |
| 53 | + have hden : (p : ℂ)-2 ≠ 0 := by | |
| 54 | + intro he | |
| 55 | + have hr := congrArg Complex.re he | |
| 56 | + simp at hr | |
| 57 | + linarith | |
| 58 | + change 1+c*q*(1-q)⁻¹ = (1-q)⁻¹*(1+densityEulerTerm N p w) | |
| 59 | + simp only [densityEulerTerm, hp, hactive.1, hactive.2, not_false_eq_true, and_self, ite_true, | |
| 60 | + c, liuCorrectionFactor, Complex.ofReal_div, Complex.ofReal_sub, Complex.ofReal_natCast, | |
| 61 | + Complex.ofReal_one, Complex.ofReal_ofNat] | |
| 62 | + change 1+((p : ℂ)-1)/((p : ℂ)-2)*q*(1-q)⁻¹ = (1-q)⁻¹*(1+q/((p : ℂ)-2)) | |
| 63 | + field_simp | |
| 64 | + ring | |
| 65 | + · have he : densityEulerTerm N p w = 0 := by simp [densityEulerTerm, hp, hactive] | |
| 66 | + rw [he] | |
| 67 | + change 1+c*q*(1-q)⁻¹ = (1-q)⁻¹*(1+0) | |
| 68 | + simp only [c, ite_eq_right hactive, Complex.ofReal_one, one_mul, add_zero] | |
| 69 | + field_simp | |
| 70 | + ring | |
| 71 | + | |
| 72 | +lemma densityMultiplier_eulerProduct (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 73 | + {w : ℂ} (hw : 1 < w.re) : | |
| 74 | + (∑' k, densityMultiplicativeTerm N w k) = riemannZeta w * densityEulerProduct N w := by | |
| 75 | + have hf := EulerProduct.eulerProduct_hasProd_mulIndicator | |
| 76 | + (densityMultiplicativeTerm_one N w) (fun {k l} hkl => densityMultiplicativeTerm_mul N w hkl) | |
| 77 | + (densityMultiplicativeTerm_summable_norm N hN hpos hw) (densityMultiplicativeTerm_zero N w) | |
| 78 | + have hz : HasProd (fun p : ℕ => if p.Prime then (1-(p : ℂ)^(-w))⁻¹ else 1) (riemannZeta w) := by | |
| 79 | + convert | |
| 80 | + ((hasProd_subtype_iff_mulIndicator | |
| 81 | + (f := fun p : ℕ => (1-(p : ℂ)^(-w))⁻¹) (s := {p : ℕ | p.Prime})).mp | |
| 82 | + (riemannZeta_eulerProduct_hasProd hw)) using 1 | |
| 83 | + ext p | |
| 84 | + by_cases hp : p.Prime <;> simp [Set.mulIndicator, hp] | |
| 85 | + have he : HasProd (fun p => 1+densityEulerTerm N p w) (densityEulerProduct N w) := by | |
| 86 | + rw [densityEulerProduct_eq_tprod] | |
| 87 | + exact (multipliable_one_add_of_summable (densityEulerTerm_summable_norm N (by linarith))).hasProd | |
| 88 | + apply hf.unique | |
| 89 | + convert hz.mul he using 1 | |
| 90 | + ext p | |
| 91 | + by_cases hp : p.Prime | |
| 92 | + · simp only [Set.mulIndicator, Set.mem_ofPred_eq, hp, ite_true, | |
| 93 | + density_prime_power_sum N p hp hw] | |
| 94 | + · simp [Set.mulIndicator, hp, densityEulerTerm] | |
| 95 | + | |
| 96 | +lemma densitySeries_eq_continuedDensity (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 97 | + {w : ℂ} (hw : 1 < w.re) : densitySeries N w = continuedDensity N w := by | |
| 98 | + rw [densitySeries_eq_multiplier_tsum N hpos w, | |
| 99 | + densityMultiplier_eulerProduct N hN hpos hw] | |
| 100 | + unfold continuedDensity | |
| 101 | + ring | |
| 102 | + | |
| 103 | +theorem lemma_4_3 (N : ℕ) (hN : Even N) (hN4 : 4 ≤ N) : | |
| 104 | + (∀ w : ℂ, 0 < w.re → Summable (fun n : ℕ => | |
| 105 | + if 0 < n ∧ Nat.Coprime n N then ‖(mangoldt n : ℂ) ^ 2 / (n : ℂ) ^ (1 + w)‖ else 0)) ∧ | |
| 106 | + (∀ w : ℂ, 1 < w.re → densitySeries N w = continuedDensity N w) ∧ | |
| 107 | + MeromorphicOn (continuedDensity N) {w | 0 < w.re} ∧ | |
| 108 | + Tendsto (fun w : ℂ => (w - 1) * continuedDensity N w) (𝓝[≠] 1) (𝓝 ((N : ℂ) / N.totient)) ∧ | |
| 109 | + 1 < singularSeries N ∧ C2 * N / N.totient ≤ singularSeries N ∧ | |
| 110 | + singularSeries N ≤ (N : ℝ) / N.totient := by | |
| 111 | + exact ⟨fun w hw => diagonalSeries_summable N hw, | |
| 112 | + fun w hw => densitySeries_eq_continuedDensity N hN (by omega) hw, | |
| 113 | + continuedDensity_meromorphicOn N, continuedDensity_residue_one N hN (by omega), | |
| 114 | + singularSeries_gt_one N, singularSeries_lower_totient N hN (by omega), | |
| 115 | + singularSeries_upper_totient N hN (by omega)⟩ | |
| 116 | + | |
| 117 | +end ConditionalGoldbach | |
+159 −0 ConditionalGoldbach/Proofs/DensityResidue.lean added View file
| @@ -0,0 +1,159 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.Meromorphic.Basic | |
| 4 | +public import ConditionalGoldbach.Proofs.DensityEuler | |
| 5 | +public import ConditionalGoldbach.Proofs.SingularBounds | |
| 6 | + | |
| 7 | +/-! Exact Euler-factor cancellation at one and the density residue. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | +open MathlibNt.SieveTheory.SingularSeries hiding singularSeries | |
| 16 | +attribute [local instance] Classical.propDecidable | |
| 17 | + | |
| 18 | +lemma densityEuler_factor_at_one (N p : ℕ) (hN : 0 < N) : | |
| 19 | + (1 + densityEulerTerm N p 1) * ((1 + liuBaseDeviation p : ℝ) : ℂ) = | |
| 20 | + if p ∈ N.primeFactors.filter (fun p => 2 < p) then | |
| 21 | + ((1 + liuBaseDeviation p : ℝ) : ℂ) else 1 := by | |
| 22 | + by_cases hp : p.Prime ∧ 2 < p | |
| 23 | + · have hp2 : (2 : ℝ) < p := by exact_mod_cast hp.2 | |
| 24 | + have hpC : (p : ℂ) ≠ 0 := by exact_mod_cast (show p ≠ 0 by omega) | |
| 25 | + have hpm1 : (p : ℂ) - 1 ≠ 0 := by | |
| 26 | + intro he | |
| 27 | + have hr := congrArg Complex.re he | |
| 28 | + simp at hr | |
| 29 | + linarith | |
| 30 | + have hpm2 : (p : ℂ) - 2 ≠ 0 := by | |
| 31 | + intro he | |
| 32 | + have hr := congrArg Complex.re he | |
| 33 | + simp at hr | |
| 34 | + linarith | |
| 35 | + by_cases hpd : p ∣ N | |
| 36 | + · simp [densityEulerTerm, hp.1, hp.2, hpd, Nat.mem_primeFactors, hN.ne'] | |
| 37 | + · simp only [densityEulerTerm, hp.1, hp.2, hpd, not_false_eq_true, and_self, | |
| 38 | + ite_true, Complex.cpow_neg, Complex.cpow_one] | |
| 39 | + rw [ite_eq_right (by simp [Finset.mem_filter, Nat.mem_primeFactors, hpd]), | |
| 40 | + one_add_liuBaseDeviation_eq_baseFactor hp.1 hp.2] | |
| 41 | + push_cast | |
| 42 | + field_simp | |
| 43 | + ring | |
| 44 | + · have hpm : p ∉ N.primeFactors.filter (fun p => 2 < p) := by | |
| 45 | + intro hm | |
| 46 | + exact hp ⟨Nat.prime_of_mem_primeFactors (Finset.mem_filter.mp hm).1, | |
| 47 | + (Finset.mem_filter.mp hm).2⟩ | |
| 48 | + simp only [densityEulerTerm, liuBaseDeviation, hp, ite_false, add_zero, Complex.ofReal_one, | |
| 49 | + hpm] | |
| 50 | + rw [ite_eq_right (by tauto)] | |
| 51 | + norm_num | |
| 52 | + | |
| 53 | +lemma densityEuler_at_one_mul_C2 (N : ℕ) (hN : 0 < N) : | |
| 54 | + densityEulerProduct N 1 * (C2 : ℂ) = | |
| 55 | + ∏ p ∈ N.primeFactors.filter (fun p => 2 < p), ((1 + liuBaseDeviation p : ℝ) : ℂ) := by | |
| 56 | + have he : HasProd (fun p => 1 + densityEulerTerm N p 1) (densityEulerProduct N 1) := by | |
| 57 | + rw [densityEulerProduct_eq_tprod] | |
| 58 | + exact (multipliable_one_add_of_summable (densityEulerTerm_summable_norm N (by norm_num))).hasProd | |
| 59 | + have hb : HasProd (fun p => ((1 + liuBaseDeviation p : ℝ) : ℂ)) (C2 : ℂ) := | |
| 60 | + multipliable_one_add_liuBaseDeviation.hasProd.map Complex.ofRealHom Complex.continuous_ofReal | |
| 61 | + have hp := he.mul hb | |
| 62 | + have heq := hp.tprod_eq | |
| 63 | + rw [← heq] | |
| 64 | + simp_rw [densityEuler_factor_at_one N _ hN] | |
| 65 | + rw [tprod_eq_prod (s := N.primeFactors.filter (fun p => 2 < p)) | |
| 66 | + (fun p hp => ite_eq_right hp)] | |
| 67 | + apply Finset.prod_congr rfl | |
| 68 | + intro p hp | |
| 69 | + simp only [hp, ite_true] | |
| 70 | + | |
| 71 | +lemma singularSeries_mul_densityEuler_one (N : ℕ) (hN : Even N) (hpos : 0 < N) : | |
| 72 | + (singularSeries N : ℂ) * densityEulerProduct N 1 = (N : ℂ)/N.totient := by | |
| 73 | + have he : liuCorrection N * | |
| 74 | + (∏ p ∈ N.primeFactors.filter (fun p => 2 < p), (1 + liuBaseDeviation p)) = | |
| 75 | + ∏ p ∈ N.primeFactors.filter (fun p => 2 < p), (p : ℝ)/(p-1) := by | |
| 76 | + unfold liuCorrection | |
| 77 | + rw [← Finset.prod_mul_distrib] | |
| 78 | + apply Finset.prod_congr rfl | |
| 79 | + intro p hp | |
| 80 | + have hp2 := (Finset.mem_filter.mp hp).2 | |
| 81 | + have hprime := Nat.prime_of_mem_primeFactors (Finset.mem_filter.mp hp).1 | |
| 82 | + rw [one_add_liuBaseDeviation_eq_baseFactor hprime hp2, liuCorrectionFactor, | |
| 83 | + ← liuLocalFactor_of_dvd hp2 (Nat.dvd_of_mem_primeFactors (Finset.mem_filter.mp hp).1)] | |
| 84 | + simp [liuLocalFactor, Nat.dvd_of_mem_primeFactors (Finset.mem_filter.mp hp).1] | |
| 85 | + have hreal : 2 * (liuCorrection N * | |
| 86 | + (∏ p ∈ N.primeFactors.filter (fun p => 2 < p), (1 + liuBaseDeviation p))) = | |
| 87 | + (N : ℝ)/N.totient := by rw [he, totient_ratio_odd_prod N hN hpos] | |
| 88 | + have heuler := densityEuler_at_one_mul_C2 N hpos | |
| 89 | + unfold singularSeries liuSingularSeries | |
| 90 | + push_cast | |
| 91 | + calc | |
| 92 | + _ = 2 * (liuCorrection N : ℂ) * (densityEulerProduct N 1 * (C2 : ℂ)) := by dsimp only [C2]; ring | |
| 93 | + _ = _ := by | |
| 94 | + rw [heuler] | |
| 95 | + have hc := congrArg Complex.ofReal hreal | |
| 96 | + push_cast at hc | |
| 97 | + simpa only [mul_assoc, Complex.ofReal_add, Complex.ofReal_one] using hc | |
| 98 | + | |
| 99 | +lemma continuedDensity_residue_one (N : ℕ) (hN : Even N) (hpos : 0 < N) : | |
| 100 | + Tendsto (fun w : ℂ => (w-1)*continuedDensity N w) (𝓝[≠] 1) | |
| 101 | + (𝓝 ((N : ℂ)/N.totient)) := by | |
| 102 | + have ho : IsOpen {w : ℂ | 0 < w.re} := isOpen_lt continuous_const Complex.continuous_re | |
| 103 | + have hd : ContinuousAt (densityEulerProduct N) 1 := | |
| 104 | + ((densityEulerProduct_differentiableOn N).differentiableAt | |
| 105 | + (ho.mem_nhds (by norm_num))).continuousAt | |
| 106 | + have h := (riemannZeta_residue_one.mul hd.continuousWithinAt.tendsto).const_mul (singularSeries N : ℂ) | |
| 107 | + simp only [one_mul, singularSeries_mul_densityEuler_one N hN hpos] at h | |
| 108 | + convert h using 1 | |
| 109 | + funext w | |
| 110 | + unfold continuedDensity | |
| 111 | + ring | |
| 112 | + | |
| 113 | +lemma riemannZeta_meromorphicAt_re_pos {w : ℂ} (hw : 0 < w.re) : | |
| 114 | + MeromorphicAt riemannZeta w := by | |
| 115 | + have ho : IsOpen {z : ℂ | 0 < z.re} := isOpen_lt continuous_const Complex.continuous_re | |
| 116 | + have hΓ : AnalyticAt ℂ Gamma (w/2) := | |
| 117 | + (show DifferentiableOn ℂ Gamma {z | 0 < z.re} from | |
| 118 | + fun z hz => (Complex.hasDerivAt_Gamma_of_re_pos hz).differentiableAt.differentiableWithinAt).analyticAt | |
| 119 | + (ho.mem_nhds (by simp; linarith)) | |
| 120 | + have hG : AnalyticAt ℂ (fun z : ℂ => Gamma (z/2)) w := AnalyticAt.comp (g := Gamma) (f := fun z : ℂ => z/2) hΓ (by fun_prop) | |
| 121 | + have hP : Differentiable ℂ (fun z : ℂ => (Real.pi : ℂ)^(-z/2)) := by | |
| 122 | + intro z | |
| 123 | + exact (show DifferentiableAt ℂ (fun z : ℂ => -z/2) z from by fun_prop).const_cpow | |
| 124 | + (Or.inl (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero)) | |
| 125 | + have hm : MeromorphicAt (fun z : ℂ => | |
| 126 | + (completedRiemannZeta₀ z - 1/z - 1/(1-z)) / | |
| 127 | + ((Real.pi : ℂ)^(-z/2) * Gamma (z/2))) w := by | |
| 128 | + apply MeromorphicAt.div | |
| 129 | + · apply MeromorphicAt.sub | |
| 130 | + · exact (differentiable_completedZeta₀.analyticAt w).meromorphicAt.sub | |
| 131 | + ((MeromorphicAt.const 1 w).div (analyticAt_id.meromorphicAt)) | |
| 132 | + · exact (MeromorphicAt.const 1 w).div | |
| 133 | + ((show AnalyticAt ℂ (fun z : ℂ => 1-z) w from by fun_prop).meromorphicAt) | |
| 134 | + · exact ((hP.analyticAt w).mul hG).meromorphicAt | |
| 135 | + apply hm.congr | |
| 136 | + have hn : w ≠ 0 := by intro he; simp [he] at hw | |
| 137 | + have he : ∀ᶠ z in 𝓝 w, z ≠ (0 : ℂ) := eventually_ne_nhds hn | |
| 138 | + filter_upwards [he.filter_mono nhdsWithin_le_nhds] with z hz | |
| 139 | + exact (riemannZeta_eq_completedRiemannZeta₀ hz).symm | |
| 140 | + | |
| 141 | +lemma continuedDensity_meromorphicOn (N : ℕ) : | |
| 142 | + MeromorphicOn (continuedDensity N) {w | 0 < w.re} := by | |
| 143 | + intro w hw | |
| 144 | + have ho : IsOpen {w : ℂ | 0 < w.re} := isOpen_lt continuous_const Complex.continuous_re | |
| 145 | + have hD : DifferentiableAt ℂ (densityEulerProduct N) w := | |
| 146 | + (densityEulerProduct_differentiableOn N).differentiableAt (ho.mem_nhds hw) | |
| 147 | + exact ((MeromorphicAt.const (singularSeries N : ℂ) w).mul | |
| 148 | + (riemannZeta_meromorphicAt_re_pos hw)).mul | |
| 149 | + ((densityEulerProduct_differentiableOn N).analyticAt (ho.mem_nhds hw)).meromorphicAt | |
| 150 | + | |
| 151 | +lemma continuedDensity_differentiableOn (N : ℕ) : | |
| 152 | + DifferentiableOn ℂ (continuedDensity N) {w | 0 < w.re ∧ w ≠ 1} := by | |
| 153 | + intro w hw | |
| 154 | + have ho : IsOpen {w : ℂ | 0 < w.re} := isOpen_lt continuous_const Complex.continuous_re | |
| 155 | + have hD : DifferentiableAt ℂ (densityEulerProduct N) w := | |
| 156 | + (densityEulerProduct_differentiableOn N).differentiableAt (ho.mem_nhds hw.1) | |
| 157 | + exact (((differentiableAt_riemannZeta hw.2).const_mul (singularSeries N : ℂ)).mul hD).differentiableWithinAt | |
| 158 | + | |
| 159 | +end ConditionalGoldbach | |
+73 −0 ConditionalGoldbach/Proofs/DensitySeries.lean added View file
| @@ -0,0 +1,73 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Model | |
| 4 | +import Mathlib.Tactic.NormNum.RealSqrt | |
| 5 | + | |
| 6 | +/-! Absolute convergence and holomorphy of the diagonal Dirichlet series. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma LSeriesSummable_mangoldt_sq (N : ℕ) {s : ℂ} (hs : 1 < s.re) : | |
| 16 | + LSeriesSummable (fun n : ℕ => if Nat.Coprime n N then (mangoldt n : ℂ)^2 else 0) s := by | |
| 17 | + have hf := LSeriesSummable_logMul_of_lt_re (f := LSeries.logMul 1) | |
| 18 | + (s := s) (by rw [LSeries.abscissaOfAbsConv_logMul, LSeries.abscissaOfAbsConv_one]; exact_mod_cast hs) | |
| 19 | + rw [LSeriesSummable, ← summable_norm_iff] at hf ⊢ | |
| 20 | + refine hf.of_nonneg_of_le (fun _ => norm_nonneg _) (fun n => LSeries.norm_term_le (n := n) s ?_) | |
| 21 | + change ‖(if Nat.Coprime n N then (mangoldt n : ℂ)^2 else 0)‖ ≤ | |
| 22 | + ‖Complex.log n * (Complex.log n * 1)‖ | |
| 23 | + by_cases hn : Nat.Coprime n N | |
| 24 | + · rw [ite_eq_left hn] | |
| 25 | + simp only [norm_pow, mul_one, norm_mul] | |
| 26 | + have hΛ : ‖(mangoldt n : ℂ)‖ ≤ ‖Complex.log n‖ := by | |
| 27 | + simpa [mangoldt, abs_of_nonneg, ArithmeticFunction.vonMangoldt_nonneg, | |
| 28 | + ← Complex.natCast_log, Real.log_natCast_nonneg] | |
| 29 | + using (ArithmeticFunction.vonMangoldt_le_log (n := n)) | |
| 30 | + nlinarith [norm_nonneg (mangoldt n : ℂ), norm_nonneg (Complex.log n)] | |
| 31 | + · simp only [hn, ite_false, norm_zero] | |
| 32 | + positivity | |
| 33 | + | |
| 34 | +lemma diagonalSeries_eq_LSeries (N : ℕ) (w : ℂ) : | |
| 35 | + diagonalSeries N w = | |
| 36 | + LSeries (fun n : ℕ => if Nat.Coprime n N then (mangoldt n : ℂ)^2 else 0) (1 + w) := by | |
| 37 | + apply tsum_congr | |
| 38 | + intro n | |
| 39 | + by_cases hn : n = 0 | |
| 40 | + · subst n | |
| 41 | + simp [LSeries.term] | |
| 42 | + · simp only [LSeries.term, ite_false, Nat.pos_iff_ne_zero, hn] | |
| 43 | + split_ifs <;> simp_all | |
| 44 | + | |
| 45 | +lemma diagonalSeries_summable (N : ℕ) {w : ℂ} (hw : 0 < w.re) : | |
| 46 | + Summable (fun n : ℕ => if 0 < n ∧ Nat.Coprime n N then | |
| 47 | + ‖(mangoldt n : ℂ)^2 / (n : ℂ) ^ (1 + w)‖ else 0) := by | |
| 48 | + have h := (LSeriesSummable_mangoldt_sq N (s := 1 + w) (by simpa using hw)).norm | |
| 49 | + apply h.congr | |
| 50 | + intro n | |
| 51 | + by_cases hn : n = 0 | |
| 52 | + · subst n | |
| 53 | + simp [LSeries.term] | |
| 54 | + · simp only [LSeries.term, ite_false, Nat.pos_iff_ne_zero, hn] | |
| 55 | + split_ifs <;> simp_all | |
| 56 | + | |
| 57 | +lemma diagonalSeries_differentiableAt (N : ℕ) {w : ℂ} (hw : 0 < w.re) : | |
| 58 | + DifferentiableAt ℂ (diagonalSeries N) w := by | |
| 59 | + have hab : LSeries.abscissaOfAbsConv | |
| 60 | + (fun n : ℕ => if Nat.Coprime n N then (mangoldt n : ℂ)^2 else 0) ≤ (1 : ℝ) := by | |
| 61 | + exact LSeries.abscissaOfAbsConv_le_of_forall_lt_LSeriesSummable | |
| 62 | + (fun s hs => LSeriesSummable_mangoldt_sq N hs) | |
| 63 | + have ht : (1 : EReal) < ((1 + w).re : ℝ) := by | |
| 64 | + exact_mod_cast (show (1 : ℝ) < (1 + w).re by simpa using hw) | |
| 65 | + have hd := (LSeries_hasDerivAt (lt_of_le_of_lt hab ht)).differentiableAt | |
| 66 | + simpa only [Function.comp_def, ← diagonalSeries_eq_LSeries] using | |
| 67 | + hd.comp w ((differentiableAt_const (1 : ℂ)).add differentiableAt_id) | |
| 68 | + | |
| 69 | +lemma diagonalSeries_differentiableOn (N : ℕ) : | |
| 70 | + DifferentiableOn ℂ (diagonalSeries N) {w | 0 < w.re} := | |
| 71 | + fun _ hw => (diagonalSeries_differentiableAt N hw).differentiableWithinAt | |
| 72 | + | |
| 73 | +end ConditionalGoldbach | |
+65 −0 ConditionalGoldbach/Proofs/DictionaryApplication.lean added View file
| @@ -0,0 +1,65 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.SpectralDictionary | |
| 4 | +public import ConditionalGoldbach.AnalyticPrerequisites | |
| 5 | + | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff Quaternion | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | +attribute [local instance] Classical.propDecidable | |
| 14 | + | |
| 15 | +theorem spectralWidthFromBound_spec (N : ℕ) (M : ℝ) | |
| 16 | + (hδ : 0 < spectralScale N) (hM : spectralScale N < M) : | |
| 17 | + 0 < spectralWidthFromBound N M ∧ spectralWidthFromBound N M < 1 / 2 ∧ | |
| 18 | + spectralWidthFromBound N M * (1 - spectralWidthFromBound N M) = | |
| 19 | + spectralScale N ^ 2 / (4 * M ^ 2) := by | |
| 20 | + have hMpos : 0 < M := lt_trans hδ hM | |
| 21 | + have hM2 : 0 < M ^ 2 := sq_pos_of_pos hMpos | |
| 22 | + have hratio : 0 < spectralScale N ^ 2 / M ^ 2 := div_pos (sq_pos_of_pos hδ) hM2 | |
| 23 | + have hratio_one : spectralScale N ^ 2 / M ^ 2 < 1 := by | |
| 24 | + apply (div_lt_one hM2).2 | |
| 25 | + exact (sq_lt_sq₀ hδ.le hMpos.le).2 hM | |
| 26 | + have harg : 0 < 1 - spectralScale N ^ 2 / M ^ 2 := sub_pos.mpr hratio_one | |
| 27 | + have hr : 0 < Real.sqrt (1 - spectralScale N ^ 2 / M ^ 2) := Real.sqrt_pos.2 harg | |
| 28 | + have hr2 := Real.sq_sqrt harg.le | |
| 29 | + have hrlt : Real.sqrt (1 - spectralScale N ^ 2 / M ^ 2) < 1 := by | |
| 30 | + nlinarith | |
| 31 | + unfold spectralWidthFromBound | |
| 32 | + refine ⟨by linarith, by linarith, ?_⟩ | |
| 33 | + rw [show spectralScale N ^ 2 / (4 * M ^ 2) = (spectralScale N ^ 2 / M ^ 2) / 4 by ring] | |
| 34 | + nlinarith | |
| 35 | + | |
| 36 | + | |
| 37 | +/-- The paper's Hardy-space dictionary, obtained from its spectral realization. -/ | |
| 38 | +theorem theorem_6_1 (N : ℕ) [NeZero N] (hN : Even N) (hlarge : Real.exp 10 < (N : ℝ)) | |
| 39 | + (hGRH : GRH N) (ha : alpha N < beta) : | |
| 40 | + (SpectralR N (alpha N) ha ↔ ‖residualOperator ha N‖ ≤ spectralScale N) ∧ | |
| 41 | + (∀ η : ℝ, 0 < η → η < 1 / 2 → | |
| 42 | + (SpectralZeroFree N (alpha N) ha η ↔ | |
| 43 | + ‖residualOperator ha N‖ ≤ spectralScale N / (2 * Real.sqrt (η * (1 - η))))) ∧ | |
| 44 | + (∀ M : ℝ, spectralScale N < M → ‖residualOperator ha N‖ ≤ M → | |
| 45 | + 0 < spectralWidthFromBound N M ∧ spectralWidthFromBound N M < 1 / 2 ∧ | |
| 46 | + SpectralZeroFree N (alpha N) ha (spectralWidthFromBound N M)) := by | |
| 47 | + have hparam := large_parameters hlarge | |
| 48 | + have hNpos : 0 < (N : ℝ) := by exact_mod_cast (show 0 < N by omega) | |
| 49 | + have hδ := spectralScale_pos N hNpos (singularSeries_pos N) hparam.2.1 | |
| 50 | + have hT := residualOperator_has_spectral_data N hN hlarge hGRH ha | |
| 51 | + have hd := theorem_6_1_abstract_dictionary N (residualOperator ha N) hT hδ | |
| 52 | + refine ⟨hd.1, hd.2, ?_⟩ | |
| 53 | + intro M hM hnorm | |
| 54 | + obtain ⟨hηpos, hηhalf, hidentity⟩ := spectralWidthFromBound_spec N M hδ hM | |
| 55 | + refine ⟨hηpos, hηhalf, ?_⟩ | |
| 56 | + apply (hd.2 _ hηpos hηhalf).2 | |
| 57 | + apply hnorm.trans | |
| 58 | + have hMpos : 0 < M := lt_trans hδ hM | |
| 59 | + have hprod : 0 < spectralWidthFromBound N M * (1 - spectralWidthFromBound N M) := | |
| 60 | + mul_pos hηpos (by linarith) | |
| 61 | + have hh := (eigenvalue_bound_iff_parameter (spectralScale N) M _ hδ hMpos.ne' hprod).2 | |
| 62 | + (le_of_eq hidentity) | |
| 63 | + simpa only [abs_of_pos hMpos] using hh | |
| 64 | + | |
| 65 | +end ConditionalGoldbach | |
+59 −0 ConditionalGoldbach/Proofs/Elementary.lean added View file
| @@ -0,0 +1,59 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Asymptotics | |
| 4 | +public import ConditionalGoldbach.Definitions.Characters | |
| 5 | +import Mathlib.Tactic.NormNum.RealSqrt | |
| 6 | + | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | +attribute [local instance] Classical.propDecidable conductorNeZero | |
| 15 | + | |
| 16 | +theorem singularSeries_eq_existing (N : ℕ) : | |
| 17 | + singularSeries N = 2 * MathlibNt.SieveTheory.SingularSeries.liuSingularSeries N := rfl | |
| 18 | + | |
| 19 | +theorem singularSeries_pos (N : ℕ) : 0 < singularSeries N := by | |
| 20 | + exact mul_pos (by norm_num) (MathlibNt.SieveTheory.SingularSeries.liuSingularSeries_pos N) | |
| 21 | + | |
| 22 | +theorem singularSeries_uniform_lower (N : ℕ) : 2 * C2 ≤ singularSeries N := by | |
| 23 | + exact mul_le_mul_of_nonneg_left | |
| 24 | + (MathlibNt.SieveTheory.SingularSeries.liuUniversalProduct_le_liuSingularSeries N) (by norm_num) | |
| 25 | + | |
| 26 | +theorem C2_pos : 0 < C2 := MathlibNt.SieveTheory.SingularSeries.liuUniversalProduct_pos | |
| 27 | + | |
| 28 | +theorem EvenEventually.mono {P Q : ℕ → Prop} (hP : EvenEventually P) | |
| 29 | + (hPQ : ∀ N, P N → Q N) : EvenEventually Q := by | |
| 30 | + obtain ⟨n, hn⟩ := hP | |
| 31 | + exact ⟨n, fun N hN he => hPQ N (hn N hN he)⟩ | |
| 32 | + | |
| 33 | +theorem EvenEventually.and {P Q : ℕ → Prop} (hP : EvenEventually P) | |
| 34 | + (hQ : EvenEventually Q) : EvenEventually (fun N => P N ∧ Q N) := by | |
| 35 | + obtain ⟨p, hp⟩ := hP | |
| 36 | + obtain ⟨q, hq⟩ := hQ | |
| 37 | + exact ⟨max p q, fun N hN he => | |
| 38 | + ⟨hp N (le_trans (le_max_left _ _) hN) he, | |
| 39 | + hq N (le_trans (le_max_right _ _) hN) he⟩⟩ | |
| 40 | + | |
| 41 | +theorem EvenEventually.of_forall {P : ℕ → Prop} (h : ∀ N, P N) : EvenEventually P := | |
| 42 | + ⟨0, fun N _ _ => h N⟩ | |
| 43 | + | |
| 44 | +theorem evenEventually_large : EvenEventually (fun N => Real.exp 10 < (N : ℝ)) := by | |
| 45 | + obtain ⟨n, hn⟩ := exists_nat_gt (Real.exp 10) | |
| 46 | + exact ⟨n, fun N hN _ => lt_of_lt_of_le hn (by exact_mod_cast hN)⟩ | |
| 47 | + | |
| 48 | +theorem large_parameters {N : ℕ} (hlarge : Real.exp 10 < (N : ℝ)) : | |
| 49 | + 4 ≤ N ∧ 0 < Real.log (N : ℝ) ∧ alpha N < beta := by | |
| 50 | + have hten : (10 : ℝ) < Real.log (N : ℝ) := by | |
| 51 | + have h := Real.log_lt_log (Real.exp_pos 10) hlarge | |
| 52 | + simpa using h | |
| 53 | + have hexp : (11 : ℝ) ≤ Real.exp 10 := by simpa only [show (10 : ℝ) + 1 = 11 by norm_num] using Real.add_one_le_exp (10 : ℝ) | |
| 54 | + have hN4 : 4 ≤ N := by exact_mod_cast (show (4 : ℝ) ≤ N by linarith) | |
| 55 | + refine ⟨hN4, by linarith, ?_⟩ | |
| 56 | + dsimp [alpha, beta] | |
| 57 | + exact (div_lt_div_iff₀ (by linarith : (0 : ℝ) < Real.log N) (by norm_num : (0 : ℝ) < 8)).2 (by linarith) | |
| 58 | + | |
| 59 | +end ConditionalGoldbach | |
+98 −0 ConditionalGoldbach/Proofs/FiniteCharacterMoments.lean added View file
| @@ -0,0 +1,98 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.Characters | |
| 4 | + | |
| 5 | +public section | |
| 6 | + | |
| 7 | +set_option autoImplicit false | |
| 8 | +noncomputable section | |
| 9 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 10 | +open MeasureTheory Filter Set Complex | |
| 11 | +namespace ConditionalGoldbach | |
| 12 | +attribute [local instance] Classical.propDecidable | |
| 13 | + | |
| 14 | +lemma full_character_selector {N : ℕ} [NeZero N] (n m : ℕ) : | |
| 15 | + (N.totient:ℂ)⁻¹ * ∑ χ : Character N, χ n*conj (χ m) = | |
| 16 | + if Nat.Coprime (n*m) N then (if (n:ZMod N)=m then 1 else 0) else 0 := by | |
| 17 | + have hφ : (N.totient:ℂ)≠0 := by exact_mod_cast (NeZero.ne N.totient) | |
| 18 | + by_cases hc : Nat.Coprime (n*m) N | |
| 19 | + · have hm := (Nat.coprime_mul_iff_left.mp hc).2 | |
| 20 | + rw [full_character_orthogonality _ _ ((ZMod.isUnit_iff_coprime m N).mpr hm),ite_eq_left hc] | |
| 21 | + split_ifs <;> simp [hφ] | |
| 22 | + · rw [ite_eq_right hc] | |
| 23 | + suffices (∑ χ : Character N, χ n*conj (χ m))=0 by rw [this,mul_zero] | |
| 24 | + apply Finset.sum_eq_zero | |
| 25 | + intro χ _ | |
| 26 | + have hh : ¬Nat.Coprime n N ∨ ¬Nat.Coprime m N := by simpa only [Nat.coprime_mul_iff_left,not_and_or] using hc | |
| 27 | + rcases hh with hn|hm | |
| 28 | + · have hz : χ (n:ZMod N)=0 := MulChar.map_nonunit χ (by simpa [ZMod.isUnit_iff_coprime] using hn) | |
| 29 | + simp [hz] | |
| 30 | + · have hz : χ (m:ZMod N)=0 := MulChar.map_nonunit χ (by simpa [ZMod.isUnit_iff_coprime] using hm) | |
| 31 | + simp [hz] | |
| 32 | + | |
| 33 | +lemma full_character_quadratic (N : ℕ) [NeZero N] (s : Finset ℕ) (c : ℕ → ℝ) : | |
| 34 | + (N.totient:ℝ)⁻¹ * ∑ χ : Character N, ‖∑ n ∈ s, (c n:ℂ)*χ n‖^2 = | |
| 35 | + ∑ n ∈ s, ∑ m ∈ s, c n*c m * | |
| 36 | + (if Nat.Coprime (n*m) N then (if (n:ZMod N)=m then (1:ℝ) else 0) else 0) := by | |
| 37 | + apply Complex.ofReal_injective | |
| 38 | + simp only [Complex.ofReal_mul,Complex.ofReal_inv,Complex.ofReal_natCast,Complex.ofReal_sum] | |
| 39 | + simp_rw [character_sum_norm_sq_complex] | |
| 40 | + rw [Finset.sum_comm] | |
| 41 | + simp_rw [Finset.sum_comm (s := Finset.univ) (t := s),Finset.mul_sum] | |
| 42 | + apply Finset.sum_congr rfl | |
| 43 | + intro n _ | |
| 44 | + apply Finset.sum_congr rfl | |
| 45 | + intro m _ | |
| 46 | + calc | |
| 47 | + (∑ χ : Character N, (N.totient:ℂ)⁻¹*((c n:ℂ)*c m*(χ n*conj (χ m)))) = | |
| 48 | + (c n:ℂ)*c m*((N.totient:ℂ)⁻¹*∑ χ : Character N, χ n*conj (χ m)) := by | |
| 49 | + simp only [Finset.mul_sum] | |
| 50 | + apply Finset.sum_congr rfl | |
| 51 | + intro χ _ | |
| 52 | + ring | |
| 53 | + _ = _ := by rw [full_character_selector]; split_ifs <;> norm_num | |
| 54 | + | |
| 55 | +lemma finite_full_projection (N : ℕ) [NeZero N] (c : ℕ → ℝ) (h0 : c 0=0) (hN : c N=0) : | |
| 56 | + (N.totient:ℝ)⁻¹ * ∑ χ : Character N, ‖∑ n ∈ Finset.range (N+1), (c n:ℂ)*χ n‖^2 = | |
| 57 | + ∑ n ∈ Finset.range (N+1), if Nat.Coprime n N then c n^2 else 0 := by | |
| 58 | + rw [full_character_quadratic] | |
| 59 | + apply Finset.sum_congr rfl | |
| 60 | + intro n hn | |
| 61 | + have hnn : n≤N := by simpa only [Finset.mem_range,Nat.lt_succ_iff] using hn | |
| 62 | + have he (m : ℕ) (hm : m∈Finset.range (N+1)) : | |
| 63 | + c n*c m*(if Nat.Coprime (n*m) N then (if (n:ZMod N)=m then (1:ℝ) else 0) else 0)= | |
| 64 | + if n=m then (if Nat.Coprime n N then c n^2 else 0) else 0 := by | |
| 65 | + by_cases hcn : c n=0 | |
| 66 | + · simp [hcn] | |
| 67 | + by_cases hcm : c m=0 | |
| 68 | + · by_cases hnm : n=m | |
| 69 | + · subst m; exact (hcn hcm).elim | |
| 70 | + · simp [hcm,hnm] | |
| 71 | + have hn0 : 0<n := Nat.pos_of_ne_zero (by intro hz; subst n; exact hcn h0) | |
| 72 | + have hm0 : 0 < m := Nat.pos_of_ne_zero (by intro hz; subst m; exact hcm h0) | |
| 73 | + have hnN : n<N := lt_of_le_of_ne hnn (by intro hz; subst n; exact hcn hN) | |
| 74 | + have hmN : m<N := by | |
| 75 | + have hh : m≤N := by simpa only [Finset.mem_range,Nat.lt_succ_iff] using hm | |
| 76 | + exact lt_of_le_of_ne hh (by intro hz; subst m; exact hcm hN) | |
| 77 | + simp only [(residue_diagonals (NeZero.pos N) hn0 hnN hm0 hmN).1] | |
| 78 | + by_cases hnm : n=m | |
| 79 | + · subst m | |
| 80 | + simp only [ite_true,Nat.coprime_mul_iff_left,and_self] | |
| 81 | + split_ifs <;> simp [pow_two] | |
| 82 | + · simp [hnm] | |
| 83 | + rw [Finset.sum_congr rfl he,Finset.sum_ite_eq,ite_eq_left hn] | |
| 84 | + | |
| 85 | +lemma signed_character_energy (N : ℕ) [NeZero N] (v : Character N → ℝ) : | |
| 86 | + (∑ χ : Character N, (χ (-1)).re*v χ) = ∑ χ : Character N, v χ - 2*∑ χ ∈ oddCharacters N, v χ := by | |
| 87 | + rw [oddCharacters,Finset.sum_filter,Finset.mul_sum,← Finset.sum_sub_distrib] | |
| 88 | + apply Finset.sum_congr rfl | |
| 89 | + intro χ _ | |
| 90 | + rcases χ.even_or_odd with he|ho | |
| 91 | + · have hnot : χ (-1)≠-1 := he.not_odd | |
| 92 | + have hv : χ (-1)=1 := he | |
| 93 | + norm_num [hv] | |
| 94 | + · have hv : χ (-1)=-1 := ho | |
| 95 | + simp [hv] | |
| 96 | + ring | |
| 97 | + | |
| 98 | +end ConditionalGoldbach | |
+78 −0 ConditionalGoldbach/Proofs/FiniteCharacterShift.lean added View file
| @@ -0,0 +1,78 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteMellinProjection | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinCharacterShift | |
| 5 | + | |
| 6 | +/-! Character Mellin contour shifts requiring only four derivatives. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma finite_mellin_character_uniform_bound (N : ℕ) (hN : 4 ≤ N) (f : ℝ → ℝ) | |
| 16 | + (hf : ContDiff ℝ 4 f) (l r : ℝ) (hsupp : Function.support f ⊆ Icc l r) | |
| 17 | + (lo A : ℝ) (hlo : 0<lo) (hlo1 : lo≤1) (hA : 0 ≤ A) (g : ℂ → ℂ) | |
| 18 | + (hg : ∀ x ∈ Icc lo 1, ∀ t : ℝ, | |
| 19 | + ‖g (line x t)‖ ≤ A * Real.log (N * (|t| + 2)) ^ 2) : | |
| 20 | + ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc lo 1, ∀ t : ℝ, | |
| 21 | + ‖(N : ℂ) ^ (line x t) * mellin (fun u => (f u:ℂ)) (line x t) * g (line x t)‖ ≤ | |
| 22 | + C * (1 + |t|)⁻¹ ^ 2 := by | |
| 23 | + obtain ⟨B, hB, hb⟩ := compact_mellin_finite_decay 4 f hf l r hsupp lo 1 hlo hlo1 | |
| 24 | + refine ⟨(N : ℝ) * B * (4 * A * (N : ℝ) ^ 2), by positivity, ?_⟩ | |
| 25 | + intro x hx t | |
| 26 | + have hN1 : (1 : ℝ) ≤ N := by exact_mod_cast (by omega : 1 ≤ N) | |
| 27 | + have hNpos : 0 < (N : ℝ) := by exact_mod_cast (by omega : 0 < N) | |
| 28 | + have hNpow : ‖(N : ℂ) ^ (line x t)‖ ≤ N := by | |
| 29 | + rw [← Complex.ofReal_natCast, Complex.norm_cpow_eq_rpow_re_of_pos hNpos] | |
| 30 | + have hline : (line x t).re = x := by simp [line] | |
| 31 | + rw [hline] | |
| 32 | + simpa using Real.rpow_le_rpow_of_exponent_le hN1 hx.2 | |
| 33 | + have hm : ‖mellin (fun u => (f u:ℂ)) (line x t)‖ ≤ B * (1 + |t|)⁻¹ ^ 4 := by | |
| 34 | + simpa only [line, add_re, ofReal_re, mul_re, ofReal_im, I_re, | |
| 35 | + I_im, mul_zero, zero_mul, sub_self, add_zero, add_im, mul_im, mul_one, | |
| 36 | + zero_add] using hb (line x t) (by simpa [line] using hx) | |
| 37 | + have hg' : ‖g (line x t)‖ ≤ (4 * A * (N : ℝ) ^ 2) * (1 + |t|) ^ 2 := by | |
| 38 | + have h := (hg x hx t).trans (mul_le_mul_of_nonneg_left (log_square_polynomial_bound N hN t) hA) | |
| 39 | + convert h using 1; ring | |
| 40 | + rw [norm_mul, norm_mul] | |
| 41 | + calc | |
| 42 | + _ ≤ ((N : ℝ) * (B * (1 + |t|)⁻¹ ^ 4)) * | |
| 43 | + ((4 * A * (N : ℝ) ^ 2) * (1 + |t|) ^ 2) := | |
| 44 | + mul_le_mul (mul_le_mul hNpow hm (norm_nonneg _) hNpos.le) hg' | |
| 45 | + (norm_nonneg _) (by positivity) | |
| 46 | + _ = _ := by | |
| 47 | + have ht : (1 + |t|) ≠ 0 := by positivity | |
| 48 | + field_simp | |
| 49 | + | |
| 50 | + | |
| 51 | +lemma finite_character_mellin_shift {N : ℕ} [NeZero N] (hN4 : 4≤N) (hGRH : GRH N) | |
| 52 | + (χ : Character N) (hχ : χ∈oddCharacters N) | |
| 53 | + (f : ℝ → ℝ) (hf : ContDiff ℝ 4 f) (l r : ℝ) (hsupp : Function.support f ⊆ Icc l r) | |
| 54 | + (σ : ℝ) (hσ : 0<σ) (hσ1 : σ≤1) : | |
| 55 | + Integrable (fun t : ℝ => (N:ℂ)^(line σ t)*mellin (fun u => (f u:ℂ)) (line σ t)*logDerivative χ (line σ t)) ∧ | |
| 56 | + verticalMellin σ (fun s => (N:ℂ)^s*mellin (fun u => (f u:ℂ)) s*logDerivative χ s)= | |
| 57 | + verticalMellin 1 (fun s => (N:ℂ)^s*mellin (fun u => (f u:ℂ)) s*logDerivative χ s) := by | |
| 58 | + obtain ⟨A,hA,hlog⟩ := logDerivative_uniform_bound σ 1 hσ hσ1 | |
| 59 | + have hg := hlog N inferInstance hN4 hGRH χ (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2) | |
| 60 | + obtain ⟨C,hC,hbound⟩ := finite_mellin_character_uniform_bound N hN4 f hf l r hsupp σ A hσ hσ1 hA.le (logDerivative χ) hg | |
| 61 | + let F : ℂ → ℂ := fun s => (N:ℂ)^s*mellin (fun u => (f u:ℂ)) s*logDerivative χ s | |
| 62 | + have hNz : (N:ℂ) ≠ 0 := by exact_mod_cast NeZero.ne N | |
| 63 | + have hd : ∀z : ℂ, z.re∈Icc σ 1 → DifferentiableAt ℂ F z := by | |
| 64 | + intro z hz | |
| 65 | + have hz0 := hσ.trans_le hz.1 | |
| 66 | + exact ((differentiableAt_id.const_cpow (Or.inl hNz)).mul | |
| 67 | + (compact_mellin_regular f hf.continuous l r hsupp z hz0).2).mul | |
| 68 | + (odd_logDerivative_analyticAt_of_GRH hGRH χ hχ hz0).differentiableAt | |
| 69 | + have hcF : Continuous (fun t : ℝ => F (line σ t)) := by | |
| 70 | + apply continuous_iff_continuousAt.mpr | |
| 71 | + intro t | |
| 72 | + exact (hd _ (by simpa [line] using (show σ∈Icc σ 1 from ⟨le_rfl,hσ1⟩))).continuousAt.comp | |
| 73 | + (f := fun t : ℝ => line σ t) (by unfold line; fun_prop) | |
| 74 | + have hi := integrable_of_uniform_vertical_decay F σ C hcF (hbound σ ⟨le_rfl,hσ1⟩) | |
| 75 | + exact ⟨hi,verticalMellin_eq_of_uniform_decay F σ 1 C hσ1 hd hi | |
| 76 | + (finite_character_mellin_initial_integrable χ f (hf.of_le (by norm_num)) l r hsupp 1 (by norm_num)) hbound⟩ | |
| 77 | + | |
| 78 | +end ConditionalGoldbach | |
+162 −0 ConditionalGoldbach/Proofs/FiniteExperimentSpectrum.lean added View file
| @@ -0,0 +1,162 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.FiniteSpectrum | |
| 4 | +public import ConditionalGoldbach.Proofs.KernelRegularity | |
| 5 | +public import ConditionalGoldbach.Proofs.SpectralDictionary | |
| 6 | +public import Mathlib.Analysis.Matrix.Spectrum | |
| 7 | + | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology | |
| 13 | +open Matrix Set Complex | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | +attribute [local instance] Classical.propDecidable | |
| 16 | + | |
| 17 | +lemma finiteSpectralMatrix_isHermitian : finiteSpectralMatrix.IsHermitian := by | |
| 18 | + ext i j | |
| 19 | + change conj (finiteSpectralMatrix j i) = finiteSpectralMatrix i j | |
| 20 | + simp only [finiteSpectralMatrix,map_mul,Complex.conj_ofReal] | |
| 21 | + rw [weightedKernel_hermitian experimentN] | |
| 22 | + simp only [Complex.conj_conj] | |
| 23 | + ring | |
| 24 | + | |
| 25 | +lemma finiteEigenvalues_spec : IsFiniteSpectrum finiteEigenvalues := by | |
| 26 | + have h := finiteSpectralMatrix_isHermitian | |
| 27 | + have hex : ∃ ev, IsFiniteSpectrum ev := by | |
| 28 | + refine ⟨h.eigenvalues,h.eigenvectorUnitary,Unitary.coe_star_mul_self _,Unitary.coe_mul_star_self _,?_⟩ | |
| 29 | + simpa only [Unitary.conjStarAlgAut_apply,Function.comp_def,RCLike.ofReal_eq_complex_ofReal] using h.spectral_theorem | |
| 30 | + simpa only [finiteEigenvalues, dite_eq_left hex] using Classical.choose_spec hex | |
| 31 | + | |
| 32 | +lemma unitary_column_norm {n : Type*} [Fintype n] [DecidableEq n] | |
| 33 | + (U : Matrix n n ℂ) (hU : star U * U = 1) (j : n) : | |
| 34 | + ‖(WithLp.toLp 2 (fun i => U i j) : EuclideanSpace ℂ n)‖ = 1 := by | |
| 35 | + have hh := congrArg (fun A : Matrix n n ℂ => (A j j).re) hU | |
| 36 | + simp only [Matrix.mul_apply,Matrix.star_apply,Matrix.one_apply_eq,star_def,Complex.one_re] at hh | |
| 37 | + change Complex.reCLM (∑ k, conj (U k j)*U k j)=1 at hh | |
| 38 | + rw [map_sum] at hh | |
| 39 | + simp only [Complex.reCLM_apply,Complex.mul_re,Complex.conj_re,Complex.conj_im] at hh | |
| 40 | + have hs : ‖(WithLp.toLp 2 (fun i => U i j) : EuclideanSpace ℂ n)‖^2 = 1 := by | |
| 41 | + rw [EuclideanSpace.norm_sq_eq] | |
| 42 | + change (∑ i, ‖U i j‖^2)=1 | |
| 43 | + simpa only [Complex.sq_norm,Complex.normSq_apply,neg_mul,sub_neg_eq_add] using hh | |
| 44 | + nlinarith [norm_nonneg (WithLp.toLp 2 (fun i => U i j) : EuclideanSpace ℂ n)] | |
| 45 | + | |
| 46 | +lemma unitary_column_eigenvector {n : Type*} [Fintype n] [DecidableEq n] | |
| 47 | + (A U : Matrix n n ℂ) (ev : n → ℝ) (hU : star U * U = 1) | |
| 48 | + (hA : A = U * Matrix.diagonal (fun i => (ev i : ℂ)) * star U) (j : n) : | |
| 49 | + A.mulVec (fun i => U i j) = (ev j : ℂ) • (fun i => U i j) := by | |
| 50 | + have hh : A*U = U*Matrix.diagonal (fun i => (ev i : ℂ)) := by | |
| 51 | + rw [hA] | |
| 52 | + simp only [mul_assoc,hU,mul_one] | |
| 53 | + ext i | |
| 54 | + have hi := congrArg (fun M : Matrix n n ℂ => M i j) hh | |
| 55 | + simpa [Matrix.mul_apply,Matrix.mulVec,dotProduct,Matrix.diagonal_apply,Pi.smul_apply,smul_eq_mul,mul_comm] using hi | |
| 56 | + | |
| 57 | +private lemma matrix_toEuclidean_apply {n : Type*} [Fintype n] [DecidableEq n] | |
| 58 | + (A : Matrix n n ℂ) (x : EuclideanSpace ℂ n) : | |
| 59 | + A.toEuclideanLin.toContinuousLinearMap x = WithLp.toLp 2 (A.mulVec (WithLp.ofLp x)) := rfl | |
| 60 | + | |
| 61 | +lemma finiteEigenvalue_le_norm (j : Fin 2562) : |finiteEigenvalues j| ≤ finiteMatrixOpNorm := by | |
| 62 | + obtain ⟨U,hU,hU',hA⟩ := finiteEigenvalues_spec | |
| 63 | + let T : EuclideanSpace ℂ (Fin 2562) →L[ℂ] EuclideanSpace ℂ (Fin 2562) := | |
| 64 | + finiteSpectralMatrix.toEuclideanLin.toContinuousLinearMap | |
| 65 | + have hT (x : EuclideanSpace ℂ (Fin 2562)) : | |
| 66 | + T x = WithLp.toLp 2 (finiteSpectralMatrix.mulVec (WithLp.ofLp x)) := | |
| 67 | + matrix_toEuclidean_apply finiteSpectralMatrix x | |
| 68 | + have hb : BddAbove {r : ℝ | ∃ x : EuclideanSpace ℂ (Fin 2562), ‖x‖=1 ∧ | |
| 69 | + r=‖(WithLp.toLp 2 (finiteSpectralMatrix.mulVec (WithLp.ofLp x)) : EuclideanSpace ℂ (Fin 2562))‖} := by | |
| 70 | + refine ⟨‖T‖,?_⟩ | |
| 71 | + rintro r ⟨x,hx,rfl⟩ | |
| 72 | + rw [← hT] | |
| 73 | + simpa [hx] using T.le_opNorm x | |
| 74 | + apply le_csSup hb | |
| 75 | + let x : EuclideanSpace ℂ (Fin 2562) := WithLp.toLp 2 (fun i => U i j) | |
| 76 | + refine ⟨x,unitary_column_norm U hU j,?_⟩ | |
| 77 | + have he := unitary_column_eigenvector finiteSpectralMatrix U finiteEigenvalues hU hA j | |
| 78 | + change |finiteEigenvalues j| = ‖(WithLp.toLp 2 (finiteSpectralMatrix.mulVec (fun i => U i j)) : EuclideanSpace ℂ (Fin 2562))‖ | |
| 79 | + rw [he] | |
| 80 | + change |finiteEigenvalues j| = ‖(finiteEigenvalues j : ℂ) • x‖ | |
| 81 | + rw [norm_smul,Complex.norm_real,Real.norm_eq_abs,unitary_column_norm U hU j,mul_one] | |
| 82 | + | |
| 83 | + | |
| 84 | +lemma finiteSpectralFunction_product (q : ℂ) : | |
| 85 | + finiteSpectralFunction q = ∏ j : Fin 2562, | |
| 86 | + (1-(4*finiteEigenvalues j^2/spectralScale experimentN^2 : ℝ)*q*(1-q)) := by | |
| 87 | + obtain ⟨U,hU,hU',hA⟩ := finiteEigenvalues_spec | |
| 88 | + let D := Matrix.diagonal (fun i => (finiteEigenvalues i : ℂ)) | |
| 89 | + let k := 4*q*(1-q)/(spectralScale experimentN : ℂ)^2 | |
| 90 | + have hAA : finiteSpectralMatrix*finiteSpectralMatrix = U*(D*D)*star U := by | |
| 91 | + rw [hA] | |
| 92 | + change (U*D*star U)*(U*D*star U)=_ | |
| 93 | + calc | |
| 94 | + _ = U*D*(star U*U)*D*star U := by noncomm_ring | |
| 95 | + _ = _ := by rw [hU]; noncomm_ring | |
| 96 | + have he : 1-k • (finiteSpectralMatrix*finiteSpectralMatrix) = U*(1-k • (D*D))*star U := by | |
| 97 | + rw [hAA] | |
| 98 | + simp only [mul_sub,sub_mul,mul_one,hU',Matrix.mul_smul,Matrix.smul_mul] | |
| 99 | + have hdet : Matrix.det U*Matrix.det (star U)=1 := by rw [← Matrix.det_mul,hU',Matrix.det_one] | |
| 100 | + change Matrix.det (1-k • (finiteSpectralMatrix*finiteSpectralMatrix))=_ | |
| 101 | + rw [he,Matrix.det_mul,Matrix.det_mul] | |
| 102 | + have hdiag : 1-k • (D*D) = Matrix.diagonal (fun i => 1-k*(finiteEigenvalues i : ℂ)^2) := by | |
| 103 | + dsimp only [D] | |
| 104 | + rw [Matrix.diagonal_mul_diagonal, ← Matrix.diagonal_smul, ← Matrix.diagonal_one, | |
| 105 | + Matrix.diagonal_sub] | |
| 106 | + apply congrArg (Matrix.diagonal (n := Fin 2562)) | |
| 107 | + funext i | |
| 108 | + simp only [Pi.smul_apply, smul_eq_mul, pow_two] | |
| 109 | + rw [hdiag,Matrix.det_diagonal] | |
| 110 | + calc | |
| 111 | + _ = (∏ i, (1-k*(finiteEigenvalues i : ℂ)^2))*(Matrix.det U*Matrix.det (star U)) := by ring | |
| 112 | + _ = ∏ i, (1-k*(finiteEigenvalues i : ℂ)^2) := by rw [hdet,mul_one] | |
| 113 | + _ = _ := by | |
| 114 | + apply Finset.prod_congr rfl | |
| 115 | + intro i _ | |
| 116 | + dsimp [k] | |
| 117 | + push_cast | |
| 118 | + ring | |
| 119 | + | |
| 120 | +lemma finiteSpectralFunction_reflection (q : ℂ) : finiteSpectralFunction (1-q)=finiteSpectralFunction q := by | |
| 121 | + simp only [finiteSpectralFunction_product,sub_sub_cancel] | |
| 122 | + apply Finset.prod_congr rfl | |
| 123 | + intro i _ | |
| 124 | + ring | |
| 125 | + | |
| 126 | +lemma finiteSpectralFunction_zero_critical (hb : finiteMatrixOpNorm ≤ spectralScale experimentN) | |
| 127 | + (q : ℂ) (hz : finiteSpectralFunction q=0) : q.re=1/2 := by | |
| 128 | + have hδ : 0 < spectralScale experimentN := spectralScale_pos experimentN (by norm_num [experimentN]) | |
| 129 | + (singularSeries_pos experimentN) (Real.log_pos (by norm_num [experimentN])) | |
| 130 | + rw [finiteSpectralFunction_product] at hz | |
| 131 | + obtain ⟨j,_,hj⟩ := Finset.prod_eq_zero_iff.mp hz | |
| 132 | + obtain ⟨hμ,hroot⟩ := (complex_quadratic_factor_zero_iff _ _ hδ.ne' q).mp hj | |
| 133 | + have hμb := (finiteEigenvalue_le_norm j).trans hb | |
| 134 | + have hs : finiteEigenvalues j^2 ≤ spectralScale experimentN^2 := by | |
| 135 | + simpa only [sq_abs] using pow_le_pow_left₀ (abs_nonneg (finiteEigenvalues j)) hμb 2 | |
| 136 | + have hc : (1:ℝ)/4 ≤ spectralScale experimentN^2/(4*finiteEigenvalues j^2) := by | |
| 137 | + apply (le_div_iff₀ (by positivity : 0<4*finiteEigenvalues j^2)).2 | |
| 138 | + nlinarith | |
| 139 | + by_contra hn | |
| 140 | + have hi := congrArg Complex.im hroot | |
| 141 | + simp only [Complex.mul_im,Complex.sub_im,Complex.one_im,Complex.sub_re,Complex.one_re, | |
| 142 | + Complex.ofReal_im,zero_sub] at hi | |
| 143 | + have hi0 : q.im=0 := by | |
| 144 | + have hh : (1-2*q.re)*q.im=0 := by nlinarith | |
| 145 | + exact (mul_eq_zero.mp hh).resolve_left (by intro h; apply hn; linarith) | |
| 146 | + have hr := congrArg Complex.re hroot | |
| 147 | + simp only [Complex.mul_re,Complex.sub_re,Complex.one_re,Complex.sub_im,Complex.one_im, | |
| 148 | + Complex.ofReal_re,hi0,mul_zero,sub_zero] at hr | |
| 149 | + have hh : (q.re-1/2)^2=0 := by nlinarith [sq_nonneg (q.re-1/2)] | |
| 150 | + exact hn (by nlinarith [sq_eq_zero_iff.mp hh]) | |
| 151 | + | |
| 152 | +theorem proposition_B_5 (_hGRH : GRH experimentN) : | |
| 153 | + IsFiniteSpectrum finiteEigenvalues ∧ | |
| 154 | + (∀ q : ℂ, finiteSpectralFunction q = | |
| 155 | + ∏ j : Fin 2562, (1 - (4 * finiteEigenvalues j ^ 2 / spectralScale experimentN ^ 2 : ℝ) * q * (1 - q))) ∧ | |
| 156 | + (∀ q : ℂ, finiteSpectralFunction (1 - q) = finiteSpectralFunction q) ∧ | |
| 157 | + (finiteMatrixOpNorm ≤ spectralScale experimentN → | |
| 158 | + ∀ q : ℂ, finiteSpectralFunction q = 0 → q.re = 1 / 2) := by | |
| 159 | + exact ⟨finiteEigenvalues_spec,finiteSpectralFunction_product,finiteSpectralFunction_reflection, | |
| 160 | + finiteSpectralFunction_zero_critical⟩ | |
| 161 | + | |
| 162 | +end ConditionalGoldbach | |
+162 −0 ConditionalGoldbach/Proofs/FiniteFunctional.lean added View file
| @@ -0,0 +1,162 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteMellin | |
| 4 | +public import ConditionalGoldbach.Proofs.QuadraticRiesz | |
| 5 | + | |
| 6 | +/-! An absolutely convergent density formula for the Mellin functional. -/ | |
| 7 | +@[expose] public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +def finiteFunctionalValue {a b : ℝ} (N : ℕ) (f : ℝ → ℝ) (σ : ℝ) | |
| 16 | + (ψ : HardySpace a b) : ℂ := verticalMellin σ (fun s => | |
| 17 | + (N : ℂ)^s * mellin (fun u => (f u : ℂ)) s * (1+s) * fourierLaplace ψ s) | |
| 18 | + | |
| 19 | + | |
| 20 | +lemma finite_functional_mellin_coefficient_integrable (N : ℕ) (hN : 0 < N) | |
| 21 | + (φ : ℝ → ℝ) (hφ : ContDiff ℝ 3 φ) (A B : ℝ) | |
| 22 | + (hsupp : Function.support φ ⊆ Icc A B) (σ : ℝ) (hσ0 : 0 < σ) : | |
| 23 | + Integrable (fun t : ℝ => (N : ℂ) ^ (line σ t) * mellin (fun u => (φ u : ℂ)) (line σ t) * (1 + line σ t)) := by | |
| 24 | + have hNc : (N : ℂ) ≠ 0 := by exact_mod_cast hN.ne' | |
| 25 | + have hNr : 0 < (N : ℝ) := by exact_mod_cast hN | |
| 26 | + have hc : Continuous (fun t : ℝ => (N : ℂ) ^ (line σ t)) := by | |
| 27 | + apply Continuous.const_cpow | |
| 28 | + · unfold line | |
| 29 | + fun_prop | |
| 30 | + · exact Or.inl hNc | |
| 31 | + have hbound : ∀ᵐ t : ℝ, ‖(N : ℂ) ^ (line σ t)‖ ≤ Real.rpow N σ := by | |
| 32 | + filter_upwards [] with t | |
| 33 | + rw [← Complex.ofReal_natCast, Complex.norm_cpow_eq_rpow_re_of_pos hNr] | |
| 34 | + simp [line, Real.rpow_eq_pow] | |
| 35 | + have hi := (compact_mellin_finite_verticalIntegrable (mellinD φ) | |
| 36 | + (mellinD_contDiff_finite 2 hφ) A B (mellinD_support_Icc hsupp) σ hσ0).bdd_mul hc.aestronglyMeasurable hbound | |
| 37 | + convert hi using 1 | |
| 38 | + ext t | |
| 39 | + rw [mellinD_transform_finite φ (hφ.of_le (by norm_num)) A B hsupp _ (by simpa [line] using hσ0)] | |
| 40 | + dsimp [line] | |
| 41 | + ring | |
| 42 | + | |
| 43 | +lemma finite_functional_double_integrable {a b : ℝ} (N : ℕ) (hN : 0 < N) | |
| 44 | + (φ : ℝ → ℝ) (hφ : ContDiff ℝ 3 φ) (A B : ℝ) | |
| 45 | + (hsupp : Function.support φ ⊆ Icc A B) (σ : ℝ) (hσ0 : 0 < σ) (hσ : σ ∈ Ioo a b) | |
| 46 | + (ψ : HardySpace a b) : | |
| 47 | + Integrable (fun p : ℝ × ℝ => | |
| 48 | + ((N : ℂ) ^ (line σ p.1) * mellin (fun u => (φ u : ℂ)) (line σ p.1) * (1 + line σ p.1)) * | |
| 49 | + ψ p.2 * Complex.exp (line σ p.1 * p.2)) := by | |
| 50 | + let M : ℝ → ℂ := fun t => (N : ℂ) ^ (line σ t) * mellin (fun u => (φ u : ℂ)) (line σ t) * (1 + line σ t) | |
| 51 | + have hA : Integrable M := finite_functional_mellin_coefficient_integrable N hN φ hφ A B hsupp σ hσ0 | |
| 52 | + have hψ := hardy_weighted_line_integrable hσ ψ | |
| 53 | + have he : Continuous (fun p : ℝ × ℝ => Complex.exp (line σ p.1 * p.2)) := by | |
| 54 | + unfold line | |
| 55 | + fun_prop | |
| 56 | + have hm := (hA.aestronglyMeasurable.comp_fst.mul | |
| 57 | + (hardySpace_aestronglyMeasurable ψ).comp_snd).mul he.aestronglyMeasurable | |
| 58 | + apply (hA.norm.mul_prod hψ.norm).mono' hm | |
| 59 | + filter_upwards [] with p | |
| 60 | + apply le_of_eq | |
| 61 | + simp only [Pi.mul_apply, norm_mul, Complex.norm_exp, line, mul_re, add_re, ofReal_re, | |
| 62 | + ofReal_im, I_re, I_im, mul_zero, zero_mul, sub_zero, sub_self, add_zero, | |
| 63 | + Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _)] | |
| 64 | + ring | |
| 65 | + | |
| 66 | + | |
| 67 | +lemma finiteFunctionalValue_integrable {a : ℝ} (N : ℕ) (hN : 0 < N) | |
| 68 | + (φ : ℝ → ℝ) (hφ : ContDiff ℝ 3 φ) (A B : ℝ) | |
| 69 | + (hsupp : Function.support φ ⊆ Icc A B) (σ : ℝ) (hσ0 : 0 < σ) (hσ : σ ∈ Ioo a beta) | |
| 70 | + (ψ : HardySpace a beta) : | |
| 71 | + Integrable (fun t : ℝ => (N : ℂ) ^ (line σ t) * mellin (fun u => (φ u : ℂ)) (line σ t) * | |
| 72 | + (1 + line σ t) * fourierLaplace ψ (line σ t)) := by | |
| 73 | + have hF := finite_functional_double_integrable N hN φ hφ A B hsupp σ hσ0 hσ ψ | |
| 74 | + have h := hF.integral_prod_left.const_mul ((Real.sqrt (2 * Real.pi) : ℂ)⁻¹) | |
| 75 | + convert h using 1 | |
| 76 | + ext t | |
| 77 | + unfold fourierLaplace | |
| 78 | + simp only [mul_assoc, integral_const_mul] | |
| 79 | + ring | |
| 80 | + | |
| 81 | + | |
| 82 | +/-- All interchanges are absolutely convergent for every Hardy vector. -/ | |
| 83 | +theorem finiteFunctionalValue_density {a : ℝ} (N : ℕ) (hN : 0 < N) | |
| 84 | + (φ : ℝ → ℝ) (hφ : ContDiff ℝ 3 φ) (A B : ℝ) | |
| 85 | + (hsupp : Function.support φ ⊆ Icc A B) (σ : ℝ) (hσ0 : 0 < σ) (hσ : σ ∈ Ioo a beta) | |
| 86 | + (ψ : HardySpace a beta) : | |
| 87 | + finiteFunctionalValue N φ σ ψ = (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * | |
| 88 | + ∫ τ : ℝ, ψ τ * (mellinD φ (Real.exp (-τ) / N) : ℂ) := by | |
| 89 | + let M : ℝ → ℂ := fun t => (N : ℂ) ^ (line σ t) * mellin (fun u => (φ u : ℂ)) (line σ t) * (1 + line σ t) | |
| 90 | + let F : ℝ → ℝ → ℂ := fun t τ => M t * ψ τ * Complex.exp (line σ t * τ) | |
| 91 | + let K : ℂ := (2 * (Real.pi : ℂ))⁻¹ | |
| 92 | + let L : ℂ := (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ | |
| 93 | + have hF : Integrable (Function.uncurry F) := finite_functional_double_integrable N hN φ hφ A B hsupp σ hσ0 hσ ψ | |
| 94 | + have hi (τ : ℝ) : K * (∫ t : ℝ, F t τ) = | |
| 95 | + ψ τ * (mellinD φ (Real.exp (-τ) / N) : ℂ) := by | |
| 96 | + have hNu : 0 < Real.exp (-τ) / N := by positivity | |
| 97 | + rw [compact_mellin_finite_inversion (mellinD φ) (mellinD_contDiff_finite 2 hφ) | |
| 98 | + A B (mellinD_support_Icc hsupp) σ hσ0 _ hNu] | |
| 99 | + unfold verticalMellin | |
| 100 | + simp_rw [mellinD_transform_finite φ (hφ.of_le (by norm_num)) A B hsupp | |
| 101 | + (line σ _) (by simpa [line] using hσ0)] | |
| 102 | + simp_rw [mellin_exponential_kernel N hN τ] | |
| 103 | + dsimp [F, M, K] | |
| 104 | + simp_rw [← integral_const_mul] | |
| 105 | + apply integral_congr_ae | |
| 106 | + filter_upwards [] with t | |
| 107 | + ring | |
| 108 | + calc | |
| 109 | + finiteFunctionalValue N φ σ ψ = K * L * ∫ t : ℝ, ∫ τ : ℝ, F t τ := by | |
| 110 | + have hinner (t : ℝ) : (∫ τ : ℝ, F t τ) = | |
| 111 | + M t * ∫ τ : ℝ, ψ τ * Complex.exp (line σ t * τ) := by | |
| 112 | + simp only [F, mul_assoc, integral_const_mul] | |
| 113 | + change K * (∫ t : ℝ, M t * (L * ∫ τ : ℝ, ψ τ * Complex.exp (line σ t * τ))) = _ | |
| 114 | + simp_rw [hinner] | |
| 115 | + simp_rw [← integral_const_mul] | |
| 116 | + apply integral_congr_ae | |
| 117 | + filter_upwards [] with t | |
| 118 | + ring_nf | |
| 119 | + _ = K * L * ∫ τ : ℝ, ∫ t : ℝ, F t τ := by rw [integral_integral_swap hF] | |
| 120 | + _ = L * ∫ τ : ℝ, K * (∫ t : ℝ, F t τ) := by rw [integral_const_mul]; ring | |
| 121 | + _ = _ := by simp_rw [hi]; rfl | |
| 122 | + | |
| 123 | + | |
| 124 | +lemma finite_derivativeDensity_hasCompactSupport (N : ℕ) (hN : 0 < N) | |
| 125 | + (φ : ℝ → ℝ) (A B : ℝ) (hA : 0 < A) (hsupp : Function.support φ ⊆ Icc A B) : | |
| 126 | + HasCompactSupport (fun τ : ℝ => mellinD φ (Real.exp (-τ)/N)) := by | |
| 127 | + have hNr : 0 < (N : ℝ) := by exact_mod_cast hN | |
| 128 | + apply HasCompactSupport.of_support_subset_isCompact | |
| 129 | + (isCompact_Icc (a := -Real.log (B*N)) (b := -Real.log (A*N))) | |
| 130 | + intro τ hτ | |
| 131 | + have hs := mellinD_support_Icc hsupp hτ | |
| 132 | + have hlo := (le_div_iff₀ hNr).1 hs.1 | |
| 133 | + have hhi := (div_le_iff₀ hNr).1 hs.2 | |
| 134 | + have hl := Real.log_le_log (mul_pos hA hNr) hlo | |
| 135 | + have hr := Real.log_le_log (Real.exp_pos (-τ)) hhi | |
| 136 | + rw [Real.log_exp] at hl hr | |
| 137 | + constructor <;> linarith | |
| 138 | + | |
| 139 | +lemma finite_functional_riesz_exists {a : ℝ} (N : ℕ) (hN : 0 < N) | |
| 140 | + (φ : ℝ → ℝ) (hφ : ContDiff ℝ 3 φ) (A B : ℝ) | |
| 141 | + (hA : 0 < A) (hsupp : Function.support φ ⊆ Icc A B) : | |
| 142 | + ∃ v : HardySpace a beta, ∀ σ : ℝ, 0 < σ → σ ∈ Ioo a beta → ∀ ψ, | |
| 143 | + finiteFunctionalValue N φ σ ψ = paperInner ψ v := by | |
| 144 | + let c : ℝ := (Real.sqrt (2*Real.pi))⁻¹ | |
| 145 | + let g : ℝ → ℝ := fun τ => c*mellinD φ (Real.exp (-τ)/N) | |
| 146 | + have hg : Continuous g := by | |
| 147 | + apply Continuous.const_mul | |
| 148 | + apply (mellinD_contDiff_finite 2 hφ).continuous.comp | |
| 149 | + fun_prop | |
| 150 | + have hgs : HasCompactSupport g := | |
| 151 | + (finite_derivativeDensity_hasCompactSupport N hN φ A B hA hsupp).mul_left | |
| 152 | + refine ⟨weightedTestVector a beta g hg hgs, ?_⟩ | |
| 153 | + intro σ hσ0 hσ ψ | |
| 154 | + rw [weightedTestVector_pairing,finiteFunctionalValue_density N hN φ hφ A B hsupp σ hσ0 hσ] | |
| 155 | + dsimp [g,c] | |
| 156 | + push_cast | |
| 157 | + rw [← integral_const_mul] | |
| 158 | + apply integral_congr_ae | |
| 159 | + filter_upwards [] with τ | |
| 160 | + ring | |
| 161 | + | |
| 162 | +end ConditionalGoldbach | |
+172 −0 ConditionalGoldbach/Proofs/FiniteMellin.lean added View file
| @@ -0,0 +1,172 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.MellinInversion | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinCompactPositive | |
| 5 | + | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma mellinD_contDiff_finite (n : ℕ) {f : ℝ → ℝ} (hf : ContDiff ℝ (n+1) f) : | |
| 15 | + ContDiff ℝ n (mellinD f) := by | |
| 16 | + have hg : ContDiff ℝ n (deriv f) := hf.deriv' | |
| 17 | + exact (hf.of_le (by exact_mod_cast (Nat.le_succ n))).sub (contDiff_id.mul hg) | |
| 18 | + | |
| 19 | +lemma mellinD_iterate_regular_finite (n k : ℕ) (f : ℝ → ℝ) (hf : ContDiff ℝ (n+k) f) | |
| 20 | + (A B : ℝ) (hsupp : Function.support f ⊆ Icc A B) : | |
| 21 | + ContDiff ℝ n (mellinD^[k] f) ∧ Function.support (mellinD^[k] f) ⊆ Icc A B := by | |
| 22 | + induction k generalizing f with | |
| 23 | + | zero => simpa using And.intro hf hsupp | |
| 24 | + | succ k ih => | |
| 25 | + rw [Function.iterate_succ_apply] | |
| 26 | + apply ih | |
| 27 | + · apply mellinD_contDiff_finite (n+k) | |
| 28 | + simpa only [Nat.cast_add,Nat.cast_one,add_assoc] using hf | |
| 29 | + · exact mellinD_support_Icc hsupp | |
| 30 | + | |
| 31 | +lemma mellinD_transform_finite (f : ℝ → ℝ) (hf : ContDiff ℝ 1 f) (A B : ℝ) | |
| 32 | + (hsupp : Function.support f ⊆ Icc A B) (s : ℂ) (hs : 0 < s.re) : | |
| 33 | + mellin (fun u => (mellinD f u : ℂ)) s = (1 + s) * mellin (fun u => (f u : ℂ)) s := by | |
| 34 | + let F : ℝ → ℂ := fun u => (u : ℂ) ^ (s - 1) * (f u : ℂ) | |
| 35 | + let G : ℝ → ℂ := fun u => (u : ℂ) ^ s * ((deriv f u : ℝ) : ℂ) | |
| 36 | + have hdf : ContDiff ℝ 0 (deriv f) := hf.deriv' | |
| 37 | + have hdfs : Function.support (deriv f) ⊆ Icc A B := | |
| 38 | + support_deriv_subset.trans (closure_minimal hsupp isClosed_Icc) | |
| 39 | + have hF : IntegrableOn F (Ioi 0) := (compact_mellin_regular f hf.continuous A B hsupp s hs).1 | |
| 40 | + have hG : IntegrableOn G (Ioi 0) := by | |
| 41 | + have h := (compact_mellin_regular (deriv f) hdf.continuous A B hdfs (s + 1) (by simpa using hs.trans (lt_add_one s.re))).1 | |
| 42 | + simpa only [MellinConvergent, add_sub_cancel_right, smul_eq_mul, G] using h | |
| 43 | + have hs0 : s ≠ 0 := by intro h; simp [h] at hs | |
| 44 | + have hFTC : (∫ u in Ioi (0 : ℝ), s * F u + G u) = 0 := by | |
| 45 | + have hd (u : ℝ) (hu : u ∈ Ioi (0 : ℝ)) : | |
| 46 | + HasDerivAt (fun u : ℝ => (u : ℂ) ^ s * (f u : ℂ)) (s * F u + G u) u := by | |
| 47 | + have hcp := hasDerivAt_ofReal_cpow_const (ne_of_gt hu) hs0 | |
| 48 | + convert hcp.mul ((hf.differentiable (by norm_num) u).hasDerivAt.ofReal_comp) using 1 | |
| 49 | + dsimp [F, G] | |
| 50 | + ring | |
| 51 | + have hc : ContinuousWithinAt (fun u : ℝ => (u : ℂ) ^ s * (f u : ℂ)) (Ici 0) 0 := | |
| 52 | + ((Complex.continuousAt_ofReal_cpow_const 0 s (Or.inl hs)).mul | |
| 53 | + (Complex.continuous_ofReal.continuousAt.comp hf.continuous.continuousAt)).continuousWithinAt | |
| 54 | + have htop : Tendsto (fun u : ℝ => (u : ℂ) ^ s * (f u : ℂ)) atTop (𝓝 0) := by | |
| 55 | + apply tendsto_const_nhds.congr' | |
| 56 | + filter_upwards [eventually_gt_atTop B] with u hu | |
| 57 | + have hz : f u = 0 := by | |
| 58 | + by_contra hn | |
| 59 | + exact (not_lt_of_ge (hsupp hn).2) hu | |
| 60 | + simp [hz] | |
| 61 | + have heq := integral_Ioi_of_hasDerivAt_of_tendsto hc hd ((hF.const_mul s).add hG) htop | |
| 62 | + simpa only [ofReal_zero, zero_cpow hs0, zero_mul, sub_self] using heq | |
| 63 | + rw [integral_add (hF.const_mul s) hG, integral_const_mul] at hFTC | |
| 64 | + have heq : (∫ u in Ioi (0 : ℝ), (u : ℂ) ^ (s - 1) * (mellinD f u : ℂ)) = | |
| 65 | + ∫ u in Ioi (0 : ℝ), F u - G u := by | |
| 66 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 67 | + intro u hu | |
| 68 | + have hu0 : (u : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hu.ne' | |
| 69 | + have hp : (u : ℂ) ^ (s - 1) * u = (u : ℂ) ^ s := by | |
| 70 | + calc | |
| 71 | + _ = (u : ℂ) ^ (s - 1) * (u : ℂ) ^ (1 : ℂ) := by rw [cpow_one] | |
| 72 | + _ = (u : ℂ) ^ ((s - 1) + 1) := (cpow_add _ _ hu0).symm | |
| 73 | + _ = _ := by rw [sub_add_cancel] | |
| 74 | + dsimp [F, G, mellinD] | |
| 75 | + push_cast | |
| 76 | + rw [mul_sub, ← mul_assoc, hp] | |
| 77 | + unfold mellin | |
| 78 | + simp only [smul_eq_mul] | |
| 79 | + rw [heq, integral_sub hF hG] | |
| 80 | + change (∫ u in Ioi (0 : ℝ), F u) - (∫ u in Ioi (0 : ℝ), G u) = | |
| 81 | + (1 + s) * ∫ u in Ioi (0 : ℝ), F u | |
| 82 | + linear_combination -hFTC | |
| 83 | + | |
| 84 | +lemma mellinD_iterate_transform_finite (k : ℕ) (f : ℝ → ℝ) (hf : ContDiff ℝ k f) | |
| 85 | + (A B : ℝ) (hsupp : Function.support f ⊆ Icc A B) (s : ℂ) (hs : 0<s.re) : | |
| 86 | + mellin (fun u => (mellinD^[k] f u : ℂ)) s = (1+s)^k*mellin (fun u => (f u : ℂ)) s := by | |
| 87 | + induction k with | |
| 88 | + | zero => simp | |
| 89 | + | succ k ih => | |
| 90 | + have hk := mellinD_iterate_regular_finite 1 k f (by simpa only [Nat.cast_add,Nat.cast_one,add_comm] using hf) A B hsupp | |
| 91 | + rw [Function.iterate_succ_apply',mellinD_transform_finite _ hk.1 A B hk.2 s hs, | |
| 92 | + ih (hf.of_le (by exact_mod_cast Nat.le_succ k)),pow_succ] | |
| 93 | + ring | |
| 94 | + | |
| 95 | +lemma compact_mellin_finite_decay (k : ℕ) (f : ℝ → ℝ) (hf : ContDiff ℝ k f) | |
| 96 | + (A B : ℝ) (hsupp : Function.support f ⊆ Icc A B) | |
| 97 | + (lo hi : ℝ) (hlo : 0 < lo) (hlohi : lo ≤ hi) : | |
| 98 | + ∃ C : ℝ, 0 < C ∧ ∀ s : ℂ, s.re ∈ Icc lo hi → | |
| 99 | + ‖mellin (fun u => (f u : ℂ)) s‖ ≤ C * (1 + |s.im|)⁻¹ ^ k := by | |
| 100 | + obtain ⟨C₀, hC₀, hzero⟩ := compact_mellin_uniform_bound f hf.continuous A B hsupp lo hi hlo hlohi | |
| 101 | + obtain ⟨Ck, hCk, hk⟩ := compact_mellin_uniform_bound (mellinD^[k] f) | |
| 102 | + (mellinD_iterate_regular_finite 0 k f (by simpa using hf) A B hsupp).1.continuous A B | |
| 103 | + (mellinD_iterate_regular_finite 0 k f (by simpa using hf) A B hsupp).2 lo hi hlo hlohi | |
| 104 | + refine ⟨2 ^ k * (C₀ + Ck), by positivity, fun s hsl => ?_⟩ | |
| 105 | + have hnorm := hk s hsl | |
| 106 | + rw [mellinD_iterate_transform_finite k f hf A B hsupp s (hlo.trans_le hsl.1), norm_mul, norm_pow] at hnorm | |
| 107 | + have him : |s.im| ≤ ‖1 + s‖ := by simpa only [add_im, one_im, zero_add] using Complex.abs_im_le_norm (1 + s) | |
| 108 | + have hpower : |s.im| ^ k * ‖mellin (fun u => (f u : ℂ)) s‖ ≤ Ck := | |
| 109 | + (mul_le_mul_of_nonneg_right (pow_le_pow_left₀ (abs_nonneg _) him k) (norm_nonneg _)).trans hnorm | |
| 110 | + have hden : 0 < (1 + |s.im|) ^ k := by positivity | |
| 111 | + rw [inv_pow, ← div_eq_mul_inv, le_div_iff₀ hden] | |
| 112 | + by_cases hsmall : |s.im| ≤ 1 | |
| 113 | + · have hpow : (1 + |s.im|) ^ k ≤ (2 : ℝ) ^ k := | |
| 114 | + pow_le_pow_left₀ (by positivity) (by linarith) k | |
| 115 | + calc | |
| 116 | + _ ≤ C₀ * (2 : ℝ) ^ k := mul_le_mul (hzero s hsl) hpow (by positivity) hC₀.le | |
| 117 | + _ ≤ _ := by nlinarith [mul_nonneg (show 0 ≤ (2 : ℝ) ^ k by positivity) hCk.le] | |
| 118 | + · have hlarge : 1 < |s.im| := lt_of_not_ge hsmall | |
| 119 | + have hpow : (1 + |s.im|) ^ k ≤ (2 * |s.im|) ^ k := | |
| 120 | + pow_le_pow_left₀ (by positivity) (by linarith) k | |
| 121 | + calc | |
| 122 | + _ ≤ ‖mellin (fun u => (f u : ℂ)) s‖ * (2 * |s.im|) ^ k := | |
| 123 | + mul_le_mul_of_nonneg_left hpow (norm_nonneg _) | |
| 124 | + _ = (2 : ℝ) ^ k * (|s.im| ^ k * ‖mellin (fun u => (f u : ℂ)) s‖) := by rw [mul_pow]; ring | |
| 125 | + _ ≤ (2 : ℝ) ^ k * Ck := mul_le_mul_of_nonneg_left hpower (by positivity) | |
| 126 | + _ ≤ _ := mul_le_mul_of_nonneg_left (by linarith) (by positivity) | |
| 127 | + | |
| 128 | +lemma compact_mellin_finite_verticalIntegrable (f : ℝ → ℝ) (hf : ContDiff ℝ 2 f) (A B : ℝ) | |
| 129 | + (hsupp : Function.support f ⊆ Icc A B) (σ : ℝ) (hσ : 0 < σ) : | |
| 130 | + VerticalIntegrable (mellin (fun u => (f u : ℂ))) σ := by | |
| 131 | + obtain ⟨C, _, hC⟩ := compact_mellin_finite_decay 2 f hf A B hsupp σ σ hσ le_rfl | |
| 132 | + apply integrable_of_uniform_vertical_decay _ σ C | |
| 133 | + · apply continuous_iff_continuousAt.mpr | |
| 134 | + intro t | |
| 135 | + apply (compact_mellin_regular f hf.continuous A B hsupp (line σ t) | |
| 136 | + (by simpa [line] using hσ)).2.continuousAt.comp | |
| 137 | + unfold line | |
| 138 | + fun_prop | |
| 139 | + · intro t | |
| 140 | + simpa [line] using hC (line σ t) (by simp [line]) | |
| 141 | + | |
| 142 | +lemma compact_mellin_finite_inversion (f : ℝ → ℝ) (hf : ContDiff ℝ 2 f) (A B : ℝ) | |
| 143 | + (hsupp : Function.support f ⊆ Icc A B) (σ : ℝ) (hσ : 0 < σ) (u : ℝ) (hu : 0 < u) : | |
| 144 | + (f u : ℂ) = verticalMellin σ (fun s => mellin (fun y => (f y : ℂ)) s * (u : ℂ) ^ (-s)) := by | |
| 145 | + have h := mellinInv_mellin_eq σ (fun u => (f u : ℂ)) hu | |
| 146 | + (compact_mellin_regular f hf.continuous A B hsupp σ hσ).1 | |
| 147 | + (compact_mellin_finite_verticalIntegrable f hf A B hsupp σ hσ) | |
| 148 | + (Complex.continuous_ofReal.continuousAt.comp hf.continuous.continuousAt) | |
| 149 | + rw [← h] | |
| 150 | + unfold mellinInv verticalMellin | |
| 151 | + simp only [Complex.real_smul, Complex.ofReal_mul, Complex.ofReal_ofNat, one_div, Complex.ofReal_inv] | |
| 152 | + congr 1 | |
| 153 | + apply integral_congr_ae | |
| 154 | + exact Eventually.of_forall (fun t => mul_comm _ _) | |
| 155 | + | |
| 156 | +lemma compact_mellin_finite_inversion_integrable (f : ℝ → ℝ) (hf : ContDiff ℝ 2 f) (A B : ℝ) | |
| 157 | + (hsupp : Function.support f ⊆ Icc A B) (σ : ℝ) (hσ : 0 < σ) (u : ℝ) (hu : 0 < u) : | |
| 158 | + Integrable (fun t : ℝ => mellin (fun y => (f y : ℂ)) (line σ t) * (u : ℂ) ^ (-line σ t)) := by | |
| 159 | + have hpow : Continuous (fun t : ℝ => (u : ℂ) ^ (-line σ t)) := by | |
| 160 | + apply Continuous.const_cpow | |
| 161 | + · unfold line | |
| 162 | + fun_prop | |
| 163 | + · exact Or.inl (Complex.ofReal_ne_zero.mpr hu.ne') | |
| 164 | + have hb : ∀ᵐ t : ℝ, ‖(u : ℂ) ^ (-line σ t)‖ ≤ Real.rpow u (-σ) := by | |
| 165 | + filter_upwards [] with t | |
| 166 | + rw [Complex.norm_cpow_eq_rpow_re_of_pos hu] | |
| 167 | + simp [line] | |
| 168 | + simpa only [line, mul_comm] using | |
| 169 | + (compact_mellin_finite_verticalIntegrable f hf A B hsupp σ hσ).bdd_mul hpow.aestronglyMeasurable hb | |
| 170 | + | |
| 171 | + | |
| 172 | +end ConditionalGoldbach | |
+77 −0 ConditionalGoldbach/Proofs/FiniteMellinDouble.lean added View file
| @@ -0,0 +1,77 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteMellinProjection | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinMoment | |
| 5 | + | |
| 6 | +/-! Absolutely convergent double Mellin inversion for a common sampling sequence. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma finite_double_mellin_inversion_series {ι : Type*} [Countable ι] | |
| 16 | + (f : ℝ → ℝ) (hf : ContDiff ℝ 2 f) (l r : ℝ) | |
| 17 | + (hsupp : Function.support f ⊆ Icc l r) (σ : ℝ) (hσ : 0<σ) (u : ι → ℝ) (b : ι → ℂ) | |
| 18 | + (hu : ∀ i, 0 < u i) | |
| 19 | + (hb : Summable (fun i => ‖b i‖ * Real.rpow (u i) (-σ) ^ 2)) : | |
| 20 | + Integrable (fun p : ℝ × ℝ => ∑' i, | |
| 21 | + b i * (mellin (fun u => (f u:ℂ)) (line σ p.1) * (u i : ℂ) ^ (-line σ p.1)) * | |
| 22 | + (mellin (fun u => (f u:ℂ)) (line σ p.2) * (u i : ℂ) ^ (-line σ p.2))) ∧ | |
| 23 | + HasSum (fun i => b i * (f (u i) : ℂ) ^ 2) | |
| 24 | + (verticalMellin σ (fun s => verticalMellin σ (fun z => ∑' i, | |
| 25 | + b i * (mellin (fun u => (f u:ℂ)) s * (u i : ℂ) ^ (-s)) * | |
| 26 | + (mellin (fun u => (f u:ℂ)) z * (u i : ℂ) ^ (-z))))) := by | |
| 27 | + let F : ι → ℝ × ℝ → ℂ := fun i p => | |
| 28 | + b i * (mellin (fun u => (f u:ℂ)) (line σ p.1) * (u i : ℂ) ^ (-line σ p.1)) * | |
| 29 | + (mellin (fun u => (f u:ℂ)) (line σ p.2) * (u i : ℂ) ^ (-line σ p.2)) | |
| 30 | + let B : ι → ℝ × ℝ → ℝ := fun i p => | |
| 31 | + (‖b i‖ * Real.rpow (u i) (-σ) ^ 2) * | |
| 32 | + (‖mellin (fun u => (f u:ℂ)) (line σ p.1)‖ * ‖mellin (fun u => (f u:ℂ)) (line σ p.2)‖) | |
| 33 | + have hi (i : ι) : Integrable (F i) := | |
| 34 | + ((compact_mellin_finite_inversion_integrable f hf l r hsupp σ hσ (u i) (hu i)).const_mul (b i)).mul_prod | |
| 35 | + (compact_mellin_finite_inversion_integrable f hf l r hsupp σ hσ (u i) (hu i)) | |
| 36 | + have heq (i : ι) (p : ℝ × ℝ) : ‖F i p‖ = B i p := by | |
| 37 | + simp only [F, B, norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos (hu i)] | |
| 38 | + simp only [line, neg_re, add_re, ofReal_re, mul_re, ofReal_im, I_re, I_im, | |
| 39 | + mul_zero, zero_mul, sub_self, add_zero, Real.rpow_eq_pow] | |
| 40 | + ring | |
| 41 | + have hBi : Integrable (fun p : ℝ × ℝ => ∑' i, B i p) := by | |
| 42 | + simp only [B, tsum_mul_right] | |
| 43 | + exact ((compact_mellin_finite_verticalIntegrable f hf l r hsupp σ hσ).norm.mul_prod | |
| 44 | + (compact_mellin_finite_verticalIntegrable f hf l r hsupp σ hσ).norm).const_mul _ | |
| 45 | + have hsum : ∀ p : ℝ × ℝ, Summable (fun i => F i p) := by | |
| 46 | + intro p | |
| 47 | + apply Summable.of_norm | |
| 48 | + simpa only [heq, B] using hb.mul_right | |
| 49 | + (‖mellin (fun u => (f u:ℂ)) (line σ p.1)‖ * ‖mellin (fun u => (f u:ℂ)) (line σ p.2)‖) | |
| 50 | + have hInt : Integrable (fun p : ℝ × ℝ => ∑' i, F i p) := by | |
| 51 | + apply hBi.mono' (AEStronglyMeasurable.tsum (fun i => (hi i).aestronglyMeasurable)) | |
| 52 | + filter_upwards [] with p | |
| 53 | + simpa only [heq] using norm_tsum_le_tsum_norm (hsum p).norm | |
| 54 | + refine ⟨hInt, ?_⟩ | |
| 55 | + have h := hasSum_integral_of_dominated_convergence B | |
| 56 | + (fun i => (hi i).aestronglyMeasurable) | |
| 57 | + (fun i => Eventually.of_forall (fun p => (heq i p).le)) | |
| 58 | + (Eventually.of_forall (fun p => hb.mul_right _)) hBi | |
| 59 | + (Eventually.of_forall (fun p => (hsum p).hasSum)) | |
| 60 | + let c : ℂ := (2 * (Real.pi : ℂ))⁻¹ | |
| 61 | + have hscaled := h.mul_left (c * c) | |
| 62 | + convert hscaled using 1 | |
| 63 | + · ext i | |
| 64 | + dsimp [F] | |
| 65 | + rw [Measure.volume_eq_prod, integral_prod_mul | |
| 66 | + (fun x : ℝ => b i * (mellin (fun u => (f u:ℂ)) (line σ x) * (u i : ℂ) ^ (-line σ x))) | |
| 67 | + (fun y : ℝ => mellin (fun u => (f u:ℂ)) (line σ y) * (u i : ℂ) ^ (-line σ y)), integral_const_mul] | |
| 68 | + rw [compact_mellin_finite_inversion f hf l r hsupp σ hσ (u i) (hu i)] | |
| 69 | + unfold verticalMellin | |
| 70 | + dsimp [c] | |
| 71 | + ring | |
| 72 | + · rw [Measure.volume_eq_prod, integral_prod _ hInt] | |
| 73 | + simp only [verticalMellin, integral_const_mul] | |
| 74 | + dsimp [c, F] | |
| 75 | + ring | |
| 76 | + | |
| 77 | +end ConditionalGoldbach | |
+116 −0 ConditionalGoldbach/Proofs/FiniteMellinProjection.lean added View file
| @@ -0,0 +1,116 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteMellin | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinProjection | |
| 5 | + | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +theorem finite_mellin_inversion_hasSum {ι : Type*} [Countable ι] | |
| 15 | + (f : ℝ → ℝ) (hf : ContDiff ℝ 2 f) (l r : ℝ) (hsupp : Function.support f ⊆ Icc l r) (σ : ℝ) (hσ : 0<σ) (u : ι → ℝ) (b : ι → ℂ) | |
| 16 | + (hu : ∀ i, 0 < u i) | |
| 17 | + (hb : Summable (fun i => ‖b i‖ * Real.rpow (u i) (-σ))) : | |
| 18 | + HasSum (fun i => b i * (f (u i) : ℂ)) | |
| 19 | + (verticalMellin σ (fun s => ∑' i, b i * mellin (fun u => (f u:ℂ)) s * (u i : ℂ) ^ (-s))) := by | |
| 20 | + let F : ι → ℝ → ℂ := fun i t => | |
| 21 | + b i * mellin (fun u => (f u:ℂ)) (line σ t) * (u i : ℂ) ^ (-line σ t) | |
| 22 | + let B : ι → ℝ → ℝ := fun i t => | |
| 23 | + (‖b i‖ * Real.rpow (u i) (-σ)) * ‖mellin (fun u => (f u:ℂ)) (line σ t)‖ | |
| 24 | + have hint (i : ι) : Integrable (F i) := by | |
| 25 | + simpa only [F, mul_assoc] using | |
| 26 | + (compact_mellin_finite_inversion_integrable f hf l r hsupp σ hσ (u i) (hu i)).const_mul (b i) | |
| 27 | + have heq (i : ι) (t : ℝ) : ‖F i t‖ = B i t := by | |
| 28 | + simp only [F, B, norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos (hu i)] | |
| 29 | + simp only [line, neg_re, add_re, ofReal_re, mul_re, ofReal_im, | |
| 30 | + I_re, I_im, mul_zero, zero_mul, sub_self, add_zero] | |
| 31 | + rw [Real.rpow_eq_pow] | |
| 32 | + ring | |
| 33 | + have hBi : Integrable (fun t => ∑' i, B i t) := by | |
| 34 | + simp only [B, tsum_mul_right] | |
| 35 | + exact (compact_mellin_finite_verticalIntegrable f hf l r hsupp σ hσ).norm.const_mul _ | |
| 36 | + have h := hasSum_integral_of_dominated_convergence B | |
| 37 | + (fun i => (hint i).aestronglyMeasurable) | |
| 38 | + (fun i => Eventually.of_forall (fun t => (heq i t).le)) | |
| 39 | + (Eventually.of_forall (fun t => hb.mul_right _)) hBi | |
| 40 | + (Eventually.of_forall (fun t => | |
| 41 | + (Summable.of_norm (by simpa only [heq] using hb.mul_right ‖mellin (fun u => (f u:ℂ)) (line σ t)‖)).hasSum)) | |
| 42 | + have hscaled := h.mul_left ((2 * (Real.pi : ℂ))⁻¹) | |
| 43 | + convert hscaled using 1 | |
| 44 | + · ext i | |
| 45 | + rw [compact_mellin_finite_inversion f hf l r hsupp σ hσ (u i) (hu i)] | |
| 46 | + simp only [verticalMellin, F, mul_assoc, integral_const_mul] | |
| 47 | + ring | |
| 48 | + · rfl | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | +theorem finite_mellin_inversion_sum_integrable {ι : Type*} [Countable ι] | |
| 53 | + (f : ℝ → ℝ) (hf : ContDiff ℝ 2 f) (l r : ℝ) (hsupp : Function.support f ⊆ Icc l r) (σ : ℝ) (hσ : 0<σ) (u : ι → ℝ) (b : ι → ℂ) | |
| 54 | + (hu : ∀ i, 0 < u i) | |
| 55 | + (hb : Summable (fun i => ‖b i‖ * Real.rpow (u i) (-σ))) : | |
| 56 | + Integrable (fun t : ℝ => ∑' i, | |
| 57 | + b i * mellin (fun u => (f u:ℂ)) (line σ t) * (u i : ℂ) ^ (-line σ t)) := by | |
| 58 | + let F : ι → ℝ → ℂ := fun i t => | |
| 59 | + b i * mellin (fun u => (f u:ℂ)) (line σ t) * (u i : ℂ) ^ (-line σ t) | |
| 60 | + have hint (i : ι) : Integrable (F i) := by | |
| 61 | + simpa only [F, mul_assoc] using | |
| 62 | + (compact_mellin_finite_inversion_integrable f hf l r hsupp σ hσ (u i) (hu i)).const_mul (b i) | |
| 63 | + have hnorm (i : ι) (t : ℝ) : ‖F i t‖ = | |
| 64 | + (‖b i‖ * Real.rpow (u i) (-σ)) * ‖mellin (fun u => (f u:ℂ)) (line σ t)‖ := by | |
| 65 | + simp only [F, norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos (hu i)] | |
| 66 | + simp only [line, neg_re, add_re, ofReal_re, mul_re, ofReal_im, | |
| 67 | + I_re, I_im, mul_zero, zero_mul, sub_self, add_zero, Real.rpow_eq_pow] | |
| 68 | + ring | |
| 69 | + apply ((compact_mellin_finite_verticalIntegrable f hf l r hsupp σ hσ).norm.const_mul | |
| 70 | + (∑' i, ‖b i‖ * Real.rpow (u i) (-σ))).mono' | |
| 71 | + (AEStronglyMeasurable.tsum (fun i => (hint i).aestronglyMeasurable)) | |
| 72 | + filter_upwards [] with t | |
| 73 | + have hs : Summable (fun i => ‖F i t‖) := by | |
| 74 | + simpa only [hnorm] using hb.mul_right ‖mellin (fun u => (f u:ℂ)) (line σ t)‖ | |
| 75 | + calc | |
| 76 | + ‖∑' i, F i t‖ ≤ ∑' i, ‖F i t‖ := norm_tsum_le_tsum_norm hs | |
| 77 | + _ = _ := by simp only [hnorm, tsum_mul_right, line] | |
| 78 | + | |
| 79 | + | |
| 80 | +lemma finite_character_mellin_series {N : ℕ} [NeZero N] (χ : Character N) | |
| 81 | + (f : ℝ → ℝ) (s : ℂ) (hs : 1 / 2 < s.re) : | |
| 82 | + (∑' n : ℕ, ((mangoldt (n + 1) : ℂ) * χ (n + 1) / | |
| 83 | + (n + 1 : ℕ) ^ (1 / 2 : ℂ)) * mellin (fun u => (f u:ℂ)) s * | |
| 84 | + (((n + 1 : ℕ) / (N : ℝ) : ℝ) : ℂ) ^ (-s)) = | |
| 85 | + -((N : ℂ) ^ s * mellin (fun u => (f u:ℂ)) s * logDerivative χ s) := by | |
| 86 | + rw [logDerivative_eq_neg_tsum χ hs, mul_neg, neg_neg, | |
| 87 | + (summable_logDerivative_terms χ hs).tsum_eq_zero_add] | |
| 88 | + simp only [mangoldt, ArithmeticFunction.map_zero, | |
| 89 | + Complex.ofReal_zero, zero_mul, zero_div, zero_add] | |
| 90 | + rw [← tsum_mul_left] | |
| 91 | + apply tsum_congr | |
| 92 | + intro n | |
| 93 | + calc | |
| 94 | + _ = mellin (fun u => (f u:ℂ)) s * | |
| 95 | + (((mangoldt (n + 1) : ℂ) * χ (n + 1) / | |
| 96 | + (n + 1 : ℕ) ^ (1 / 2 : ℂ)) * | |
| 97 | + (((n + 1 : ℕ) / (N : ℝ) : ℝ) : ℂ) ^ (-s)) := by ring | |
| 98 | + _ = _ := by | |
| 99 | + rw [mellin_dirichlet_rescale (n + 1) N (by omega) (NeZero.pos _)] | |
| 100 | + push_cast | |
| 101 | + ring | |
| 102 | + | |
| 103 | +lemma finite_character_mellin_initial_integrable {N : ℕ} [NeZero N] | |
| 104 | + (χ : Character N) (f : ℝ → ℝ) (hf : ContDiff ℝ 2 f) (l r : ℝ) | |
| 105 | + (hsupp : Function.support f ⊆ Icc l r) (σ : ℝ) (hσ : 1/2<σ) : | |
| 106 | + Integrable (fun t : ℝ => (N:ℂ)^(line σ t)*mellin (fun u => (f u:ℂ)) (line σ t)*logDerivative χ (line σ t)) := by | |
| 107 | + have hint := finite_mellin_inversion_sum_integrable f hf l r hsupp σ (by linarith) | |
| 108 | + (fun n : ℕ => (n+1:ℕ)/(N:ℝ)) | |
| 109 | + (fun n : ℕ => (mangoldt (n+1):ℂ)*χ (n+1)/(n+1:ℕ)^(1/2:ℂ)) | |
| 110 | + (fun n => by have := NeZero.pos N; positivity) (character_mellin_coeff_summable χ σ hσ) | |
| 111 | + convert hint.neg using 1 | |
| 112 | + ext t | |
| 113 | + simp only [Pi.neg_apply] | |
| 114 | + rw [finite_character_mellin_series χ f (line σ t) (by simpa [line] using hσ),neg_neg] | |
| 115 | + | |
| 116 | +end ConditionalGoldbach | |
+135 −0 ConditionalGoldbach/Proofs/FiniteModelBasic.lean added View file
| @@ -0,0 +1,135 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteMellinProjection | |
| 4 | +public import ConditionalGoldbach.Proofs.WideWeight | |
| 5 | + | |
| 6 | +/-! Finite C6 model weights with arbitrary compact support strictly inside (0,1). -/ | |
| 7 | +@[expose] public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +structure FiniteModelWeight (φ : ℝ → ℝ) where | |
| 16 | + smooth : ContDiff ℝ 6 φ | |
| 17 | + lower : ℝ | |
| 18 | + upper : ℝ | |
| 19 | + lower_pos : 0 < lower | |
| 20 | + upper_lt_one : upper < 1 | |
| 21 | + lower_le_upper : lower ≤ upper | |
| 22 | + support_subset : Function.support φ ⊆ Icc lower upper | |
| 23 | + | |
| 24 | +namespace FiniteModelWeight | |
| 25 | +lemma continuous {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) : Continuous φ := hφ.smooth.continuous | |
| 26 | +lemma hasCompactSupport {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) : HasCompactSupport φ := | |
| 27 | + HasCompactSupport.of_support_subset_isCompact isCompact_Icc hφ.support_subset | |
| 28 | +lemma mem_support_interval {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) {u : ℝ} | |
| 29 | + (hu : φ u ≠ 0) : u ∈ Icc hφ.lower hφ.upper := hφ.support_subset hu | |
| 30 | +lemma mem_support_unit {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) {u : ℝ} | |
| 31 | + (hu : φ u ≠ 0) : u ∈ Ioo (0 : ℝ) 1 := | |
| 32 | + ⟨hφ.lower_pos.trans_le (hφ.mem_support_interval hu).1, | |
| 33 | + (hφ.mem_support_interval hu).2.trans_lt hφ.upper_lt_one⟩ | |
| 34 | +lemma eq_zero_of_nonpos {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) {u : ℝ} | |
| 35 | + (hu : u ≤ 0) : φ u = 0 := by | |
| 36 | + by_contra hn | |
| 37 | + exact (not_lt_of_ge hu) (hφ.mem_support_unit hn).1 | |
| 38 | +lemma norm_bounded {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) : | |
| 39 | + ∃ B : ℝ, ∀ u : ℝ, ‖(φ u : ℂ)‖ ≤ B := by | |
| 40 | + obtain ⟨B,hB⟩ := (isCompact_Icc (a := hφ.lower) (b := hφ.upper)).exists_bound_of_continuousOn | |
| 41 | + hφ.continuous.continuousOn | |
| 42 | + refine ⟨|B|+1,fun u => ?_⟩ | |
| 43 | + by_cases hu : φ u = 0 | |
| 44 | + · simp [hu]; positivity | |
| 45 | + · simpa only [Complex.norm_real,Real.norm_eq_abs] using | |
| 46 | + (hB u (hφ.mem_support_interval hu)).trans (by linarith [le_abs_self B]) | |
| 47 | +end FiniteModelWeight | |
| 48 | + | |
| 49 | +namespace FiniteModel | |
| 50 | + | |
| 51 | +def modelMass (φ : ℝ → ℝ) : ℝ := ∫ u in (0 : ℝ)..1, φ u * φ (1-u) | |
| 52 | + | |
| 53 | +lemma companion_contDiff {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) : | |
| 54 | + ContDiff ℝ 6 (companion φ) := by | |
| 55 | + rw [contDiff_iff_contDiffAt] | |
| 56 | + intro x | |
| 57 | + by_cases hx : x ≠ 0 | |
| 58 | + · exact (Real.contDiffAt_sqrt hx).mul hφ.smooth.contDiffAt | |
| 59 | + · have hx0 : x = 0 := by simpa using hx | |
| 60 | + subst x | |
| 61 | + apply (contDiffAt_const (c := (0 : ℝ))).congr_of_eventuallyEq | |
| 62 | + filter_upwards [Iio_mem_nhds hφ.lower_pos] with u hu | |
| 63 | + have hz : φ u = 0 := by | |
| 64 | + by_contra hn | |
| 65 | + exact (not_lt_of_ge (hφ.mem_support_interval hn).1) hu | |
| 66 | + simp [companion,hz] | |
| 67 | + | |
| 68 | +lemma companion_support_subset {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) : | |
| 69 | + Function.support (companion φ) ⊆ Icc hφ.lower hφ.upper := by | |
| 70 | + intro x hx | |
| 71 | + exact hφ.mem_support_interval (mul_ne_zero_iff.mp hx).2 | |
| 72 | + | |
| 73 | +theorem mellinWeight_convergent {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) (s : ℂ) : | |
| 74 | + MellinConvergent (fun u => (companion φ u : ℂ)) s := by | |
| 75 | + have hsupp : Function.support (fun u : ℝ => (u : ℂ) ^ (s - 1) * | |
| 76 | + (companion φ u : ℂ)) ⊆ Icc hφ.lower hφ.upper := by | |
| 77 | + intro u hu | |
| 78 | + apply companion_support_subset hφ | |
| 79 | + intro hzero | |
| 80 | + exact hu (by simp [hzero]) | |
| 81 | + change IntegrableOn (fun u : ℝ => (u : ℂ) ^ (s - 1) * (companion φ u : ℂ)) (Ioi 0) | |
| 82 | + apply Integrable.integrableOn | |
| 83 | + apply (integrableOn_iff_integrable_of_support_subset hsupp).mp | |
| 84 | + apply ContinuousOn.integrableOn_Icc | |
| 85 | + intro u hu | |
| 86 | + have hu0 : u ≠ 0 := by linarith [hu.1, hφ.lower_pos] | |
| 87 | + exact ((Complex.continuousAt_ofReal_cpow_const u (s - 1) (Or.inr hu0)).mul | |
| 88 | + (Complex.continuous_ofReal.continuousAt.comp (companion_contDiff hφ).continuous.continuousAt)).continuousWithinAt | |
| 89 | + | |
| 90 | +lemma mellinWeight_verticalIntegrable {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) | |
| 91 | + (σ : ℝ) (hσ : 0 < σ) : VerticalIntegrable (mellinWeight φ) σ := | |
| 92 | + compact_mellin_finite_verticalIntegrable (companion φ) | |
| 93 | + ((companion_contDiff hφ).of_le (by norm_num)) _ _ (companion_support_subset hφ) σ hσ | |
| 94 | + | |
| 95 | +lemma mellinWeight_inversion {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) | |
| 96 | + (σ : ℝ) (hσ : 0 < σ) (u : ℝ) (hu : 0 < u) : | |
| 97 | + (companion φ u : ℂ) = verticalMellin σ (fun s => mellinWeight φ s * (u : ℂ)^(-s)) := | |
| 98 | + compact_mellin_finite_inversion (companion φ) | |
| 99 | + ((companion_contDiff hφ).of_le (by norm_num)) _ _ (companion_support_subset hφ) σ hσ u hu | |
| 100 | + | |
| 101 | +lemma mellinWeight_uniform_decay (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 102 | + (lo hi : ℝ) (hlo : 0 < lo) (hlh : lo ≤ hi) : | |
| 103 | + ∃ C : ℝ, 0 < C ∧ ∀ x ∈ Icc lo hi, ∀ t : ℝ, | |
| 104 | + ‖mellinWeight φ (line x t)‖ ≤ C*(1+|t|)⁻¹^6 := by | |
| 105 | + obtain ⟨C,hC,hbound⟩ := compact_mellin_finite_decay 6 (companion φ) | |
| 106 | + (companion_contDiff hφ) _ _ (companion_support_subset hφ) lo hi hlo hlh | |
| 107 | + refine ⟨C,hC,fun x hx t => ?_⟩ | |
| 108 | + simpa [mellinWeight,line] using hbound (line x t) (by simpa [line] using hx) | |
| 109 | + | |
| 110 | +theorem mellinWeight_differentiable {φ : ℝ → ℝ} (hφ : FiniteModelWeight φ) : | |
| 111 | + Differentiable ℂ (mellinWeight φ) := by | |
| 112 | + have hc : Continuous (fun u : ℝ => (companion φ u : ℂ)) := | |
| 113 | + Complex.continuous_ofReal.comp (companion_contDiff hφ).continuous | |
| 114 | + have htop : (fun u : ℝ => (companion φ u : ℂ)) =ᶠ[atTop] 0 := by | |
| 115 | + filter_upwards [eventually_gt_atTop hφ.upper] with u hu | |
| 116 | + have hz : companion φ u = 0 := by | |
| 117 | + by_contra hn | |
| 118 | + exact (not_lt_of_ge (companion_support_subset hφ hn).2) hu | |
| 119 | + simp [hz] | |
| 120 | + have hbot : (fun u : ℝ => (companion φ u : ℂ)) =ᶠ[𝓝[>] (0 : ℝ)] 0 := by | |
| 121 | + filter_upwards [nhdsWithin_le_nhds (Iio_mem_nhds (show (0 : ℝ) < hφ.lower from hφ.lower_pos))] with u hu | |
| 122 | + have hz : companion φ u = 0 := by | |
| 123 | + by_contra hn | |
| 124 | + exact (not_lt_of_ge (companion_support_subset hφ hn).1) hu | |
| 125 | + simp [hz] | |
| 126 | + intro s | |
| 127 | + apply mellin_differentiableAt_of_isBigO_rpow (a := s.re + 1) (b := s.re - 1) | |
| 128 | + (hc.locallyIntegrable.locallyIntegrableOn _) | |
| 129 | + · exact htop.trans_isBigO (Asymptotics.isBigO_zero _ _) | |
| 130 | + · linarith | |
| 131 | + · exact hbot.trans_isBigO (Asymptotics.isBigO_zero _ _) | |
| 132 | + · linarith | |
| 133 | + | |
| 134 | +end FiniteModel | |
| 135 | +end ConditionalGoldbach | |
+94 −0 ConditionalGoldbach/Proofs/FiniteModelBetaConvolution.lean added View file
| @@ -0,0 +1,94 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteModelBetaPairing | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinBetaConvolutionCore | |
| 5 | + | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | +namespace FiniteModel | |
| 14 | + | |
| 15 | +lemma mellinWeight_eq_phi_integral (φ : ℝ → ℝ) (s : ℂ) : | |
| 16 | + mellinWeight φ s = ∫ u in Ioi (0 : ℝ), (u : ℂ)^(s-1/2) * (φ u : ℂ) := | |
| 17 | + ConditionalGoldbach.mellinWeight_eq_phi_integral φ s | |
| 18 | + | |
| 19 | +lemma difference_slice_mellin (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 20 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) | |
| 21 | + (r : ℝ) (hr : 0 < r) : | |
| 22 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 23 | + (r : ℂ)^(w-1/2-line σ t) * betaIntegral (1/2-line σ t) w) ∧ | |
| 24 | + (∫ u in Ioo (0 : ℝ) r, (φ u : ℂ) * (r-u : ℂ)^(w-1)) = | |
| 25 | + verticalMellin σ (fun s => mellinWeight φ s * | |
| 26 | + (r : ℂ)^(w-1/2-s) * betaIntegral (1/2-s) w) := | |
| 27 | + MellinConvolution.difference_slice_mellin φ σ | |
| 28 | + (mellin_phi_kernel_pairing φ hφ σ hσ) hσ hσupper w hw r hr | |
| 29 | + | |
| 30 | +lemma sum_slice_mellin (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 31 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) | |
| 32 | + (r : ℝ) (hr : 0 < r) : | |
| 33 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 34 | + (r : ℂ)^(w-1/2-line σ t) * betaIntegral (1/2-line σ t) (1/2+line σ t-w)) ∧ | |
| 35 | + (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * (u+r : ℂ)^(w-1)) = | |
| 36 | + verticalMellin σ (fun s => mellinWeight φ s * | |
| 37 | + (r : ℂ)^(w-1/2-s) * betaIntegral (1/2-s) (1/2+s-w)) := | |
| 38 | + MellinConvolution.sum_slice_mellin φ σ | |
| 39 | + (mellin_phi_kernel_pairing φ hφ σ hσ) hσ hσupper w hw r hr | |
| 40 | + | |
| 41 | +lemma mellin_phi_integrable (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (s : ℂ) : | |
| 42 | + IntegrableOn (fun u : ℝ => (u : ℂ)^(s-1/2) * (φ u : ℂ)) (Ioi 0) := | |
| 43 | + MellinConvolution.mellin_phi_integrable φ s (mellinWeight_convergent hφ s) | |
| 44 | + | |
| 45 | +lemma measurable_betaIntegral {α : Type*} [MeasurableSpace α] (f g : α → ℂ) | |
| 46 | + (hf : Measurable f) (hg : Measurable g) : Measurable (fun x => betaIntegral (f x) (g x)) := | |
| 47 | + ConditionalGoldbach.measurable_betaIntegral f g hf hg | |
| 48 | + | |
| 49 | +lemma mellin_beta_outer_integrable (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (σ : ℝ) (hσ : 0 < σ) (w : ℂ) | |
| 50 | + (B : ℂ → ℂ) (hBm : Measurable (fun t : ℝ => B (line σ t))) | |
| 51 | + (C : ℝ) (hB : ∀ t : ℝ, ‖B (line σ t)‖ ≤ C) : | |
| 52 | + Integrable (fun p : ℝ × ℝ => mellinWeight φ (line σ p.1) * | |
| 53 | + (p.2 : ℂ)^(w-1/2-line σ p.1) * B (line σ p.1) * (φ p.2 : ℂ)) | |
| 54 | + (volume.prod (volume.restrict (Ioi 0))) := | |
| 55 | + MellinConvolution.mellin_beta_outer_integrable φ σ w | |
| 56 | + hφ.continuous.measurable (mellinWeight_differentiable hφ).continuous.measurable | |
| 57 | + (mellinWeight_verticalIntegrable hφ σ hσ) (mellinWeight_convergent hφ _) B hBm C hB | |
| 58 | + | |
| 59 | +lemma mellin_beta_outer_pairing (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (σ : ℝ) (hσ : 0 < σ) (w : ℂ) | |
| 60 | + (B : ℂ → ℂ) (hBm : Measurable (fun t : ℝ => B (line σ t))) | |
| 61 | + (C : ℝ) (hB : ∀ t : ℝ, ‖B (line σ t)‖ ≤ C) : | |
| 62 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 63 | + mellinWeight φ (w-line σ t) * B (line σ t)) ∧ | |
| 64 | + (∫ r in Ioi (0 : ℝ), | |
| 65 | + verticalMellin σ (fun s => mellinWeight φ s * (r : ℂ)^(w-1/2-s) * B s) * (φ r : ℂ)) = | |
| 66 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * B s) := | |
| 67 | + MellinConvolution.mellin_beta_outer_pairing φ σ w | |
| 68 | + hφ.continuous.measurable (mellinWeight_differentiable hφ).continuous.measurable | |
| 69 | + (mellinWeight_verticalIntegrable hφ σ hσ) (mellinWeight_convergent hφ _) B hBm C hB | |
| 70 | + | |
| 71 | +lemma difference_convolution_slices_mellin (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 72 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) : | |
| 73 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 74 | + mellinWeight φ (w-line σ t) * betaIntegral (1/2-line σ t) w) ∧ | |
| 75 | + (∫ r in Ioi (0 : ℝ), (∫ u in Ioo (0 : ℝ) r, (φ u : ℂ) * (r-u : ℂ)^(w-1)) * (φ r : ℂ)) = | |
| 76 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) w) := | |
| 77 | + MellinConvolution.difference_convolution_slices_mellin φ σ | |
| 78 | + (mellin_phi_kernel_pairing φ hφ σ hσ) hσ hσupper w hw | |
| 79 | + hφ.continuous.measurable (mellinWeight_differentiable hφ).continuous.measurable | |
| 80 | + (mellinWeight_verticalIntegrable hφ σ hσ) (mellinWeight_convergent hφ _) | |
| 81 | + | |
| 82 | +lemma sum_convolution_slices_mellin (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 83 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) : | |
| 84 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 85 | + mellinWeight φ (w-line σ t) * betaIntegral (1/2-line σ t) (1/2+line σ t-w)) ∧ | |
| 86 | + (∫ r in Ioi (0 : ℝ), (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * (u+r : ℂ)^(w-1)) * (φ r : ℂ)) = | |
| 87 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) (1/2+s-w)) := | |
| 88 | + MellinConvolution.sum_convolution_slices_mellin φ σ | |
| 89 | + (mellin_phi_kernel_pairing φ hφ σ hσ) hσ hσupper w hw | |
| 90 | + hφ.continuous.measurable (mellinWeight_differentiable hφ).continuous.measurable | |
| 91 | + (mellinWeight_verticalIntegrable hφ σ hσ) (mellinWeight_convergent hφ _) | |
| 92 | + | |
| 93 | +end FiniteModel | |
| 94 | +end ConditionalGoldbach | |
+114 −0 ConditionalGoldbach/Proofs/FiniteModelBetaPairing.lean added View file
| @@ -0,0 +1,114 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteModelBasic | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinBetaPairing | |
| 5 | + | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | +namespace FiniteModel | |
| 14 | + | |
| 15 | +lemma measurable_complex_cpow {α : Type*} [MeasurableSpace α] (f g : α → ℂ) | |
| 16 | + (hf : Measurable f) (hg : Measurable g) : Measurable (fun x => f x ^ g x) := by | |
| 17 | + simp_rw [Complex.cpow_def] | |
| 18 | + exact Measurable.ite (hf (measurableSet_singleton 0)) | |
| 19 | + (Measurable.ite (hg (measurableSet_singleton 0)) measurable_const measurable_const) | |
| 20 | + (Complex.continuous_exp.measurable.comp ((Complex.measurable_log.comp hf).mul hg)) | |
| 21 | + | |
| 22 | +lemma mellinWeight_pairing_integrable (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 23 | + (σ : ℝ) (hσ : 0 < σ) (g : ℝ → ℂ) (hg : Measurable g) | |
| 24 | + (hi : IntegrableOn (fun u : ℝ => (u : ℂ) ^ (-(σ : ℂ)) * g u) (Ioi 0)) : | |
| 25 | + Integrable (fun p : ℝ × ℝ => mellinWeight φ (line σ p.1) * | |
| 26 | + (p.2 : ℂ) ^ (-line σ p.1) * g p.2) (volume.prod (volume.restrict (Ioi 0))) := by | |
| 27 | + have hm : Measurable (fun p : ℝ × ℝ => mellinWeight φ (line σ p.1) * | |
| 28 | + (p.2 : ℂ) ^ (-line σ p.1) * g p.2) := by | |
| 29 | + apply Measurable.mul | |
| 30 | + · apply Measurable.mul | |
| 31 | + · exact (mellinWeight_differentiable hφ).continuous.measurable.comp (by unfold line; fun_prop) | |
| 32 | + · exact measurable_complex_cpow _ _ (by fun_prop) (by unfold line; fun_prop) | |
| 33 | + · exact hg.comp measurable_snd | |
| 34 | + apply ((mellinWeight_verticalIntegrable hφ σ hσ).norm.mul_prod hi.norm).mono' hm.aestronglyMeasurable | |
| 35 | + filter_upwards [Measure.quasiMeasurePreserving_snd.ae | |
| 36 | + (ae_restrict_mem measurableSet_Ioi)] with p hu | |
| 37 | + rcases p with ⟨t, u⟩ | |
| 38 | + simp only [norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos hu, neg_re, ofReal_re] | |
| 39 | + simp only [line, add_re, ofReal_re, mul_re, ofReal_im, I_re, I_im, mul_zero, | |
| 40 | + zero_mul, sub_self, add_zero] | |
| 41 | + exact (mul_assoc _ _ _).le | |
| 42 | + | |
| 43 | +lemma mellinWeight_pairing (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 44 | + (σ : ℝ) (hσ : 0 < σ) (g : ℝ → ℂ) (hg : Measurable g) | |
| 45 | + (hi : IntegrableOn (fun u : ℝ => (u : ℂ) ^ (-(σ : ℂ)) * g u) (Ioi 0)) : | |
| 46 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 47 | + ∫ u in Ioi (0 : ℝ), (u : ℂ) ^ (-line σ t) * g u) ∧ | |
| 48 | + (∫ u in Ioi (0 : ℝ), (companion φ u : ℂ) * g u) = | |
| 49 | + verticalMellin σ (fun s => mellinWeight φ s * | |
| 50 | + ∫ u in Ioi (0 : ℝ), (u : ℂ) ^ (-s) * g u) := by | |
| 51 | + have hF := mellinWeight_pairing_integrable φ hφ σ hσ g hg hi | |
| 52 | + constructor | |
| 53 | + · simpa only [mul_assoc, integral_const_mul] using hF.integral_prod_left | |
| 54 | + · have hs := integral_integral_swap (f := fun t u : ℝ => | |
| 55 | + mellinWeight φ (line σ t) * (u : ℂ) ^ (-line σ t) * g u) hF | |
| 56 | + simp only [integral_mul_const] at hs | |
| 57 | + unfold verticalMellin | |
| 58 | + simp only [mul_assoc, integral_const_mul] at hs | |
| 59 | + rw [hs] | |
| 60 | + rw [← integral_const_mul] | |
| 61 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 62 | + intro u hu | |
| 63 | + dsimp only | |
| 64 | + rw [mellinWeight_inversion hφ σ hσ u hu] | |
| 65 | + simp only [verticalMellin, mul_assoc] | |
| 66 | + | |
| 67 | +lemma companion_mul_neg_half (φ : ℝ → ℝ) (u : ℝ) (hu : 0 < u) : | |
| 68 | + (companion φ u : ℂ) * (u : ℂ)^(-1/2 : ℂ) = (φ u : ℂ) := by | |
| 69 | + have hh : (u : ℂ)^(1/2 : ℂ) = (Real.sqrt u : ℂ) := by | |
| 70 | + rw [Real.sqrt_eq_rpow, Complex.ofReal_cpow hu.le] | |
| 71 | + congr 1 | |
| 72 | + norm_num | |
| 73 | + have he : (-1/2 : ℂ) = -(1/2) := by ring | |
| 74 | + rw [he, cpow_neg, hh, companion, ofReal_mul] | |
| 75 | + field_simp [Complex.ofReal_ne_zero.mpr (Real.sqrt_pos.mpr hu).ne'] | |
| 76 | + | |
| 77 | +lemma mellin_phi_kernel_pairing (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 78 | + (σ : ℝ) (hσ : 0 < σ) (g : ℝ → ℂ) (hg : Measurable g) | |
| 79 | + (hi : IntegrableOn (fun u : ℝ => (u : ℂ)^(-1/2-(σ : ℂ)) * g u) (Ioi 0)) : | |
| 80 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 81 | + ∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-line σ t) * g u) ∧ | |
| 82 | + (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * g u) = | |
| 83 | + verticalMellin σ (fun s => mellinWeight φ s * | |
| 84 | + ∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-s) * g u) := by | |
| 85 | + have hp (s : ℂ) (u : ℝ) (hu : 0 < u) : | |
| 86 | + (u : ℂ)^(-s) * ((u : ℂ)^(-1/2 : ℂ) * g u) = | |
| 87 | + (u : ℂ)^(-1/2-s) * g u := by | |
| 88 | + rw [← mul_assoc, ← cpow_add _ _ (Complex.ofReal_ne_zero.mpr hu.ne')] | |
| 89 | + congr 2 | |
| 90 | + ring | |
| 91 | + have hg' : Measurable (fun u : ℝ => (u : ℂ)^(-1/2 : ℂ) * g u) := | |
| 92 | + (measurable_complex_cpow _ _ (by fun_prop) measurable_const).mul hg | |
| 93 | + have hi' : IntegrableOn (fun u : ℝ => (u : ℂ)^(-(σ : ℂ)) * | |
| 94 | + ((u : ℂ)^(-1/2 : ℂ) * g u)) (Ioi 0) := by | |
| 95 | + apply hi.congr_fun _ measurableSet_Ioi | |
| 96 | + intro u hu | |
| 97 | + exact (hp σ u hu).symm | |
| 98 | + have h := mellinWeight_pairing φ hφ σ hσ _ hg' hi' | |
| 99 | + have he (s : ℂ) : (∫ u in Ioi (0 : ℝ), (u : ℂ)^(-s) * | |
| 100 | + ((u : ℂ)^(-1/2 : ℂ) * g u)) = | |
| 101 | + ∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-s) * g u := by | |
| 102 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 103 | + intro u hu | |
| 104 | + exact hp s u hu | |
| 105 | + simp only [he] at h | |
| 106 | + refine ⟨h.1, ?_⟩ | |
| 107 | + rw [← h.2] | |
| 108 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 109 | + intro u hu | |
| 110 | + dsimp only | |
| 111 | + rw [← mul_assoc, companion_mul_neg_half φ u hu] | |
| 112 | + | |
| 113 | +end FiniteModel | |
| 114 | +end ConditionalGoldbach | |
+90 −0 ConditionalGoldbach/Proofs/FiniteModelBetaRelation.lean added View file
| @@ -0,0 +1,90 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteModelBetaTransform | |
| 4 | + | |
| 5 | +public section | |
| 6 | + | |
| 7 | +set_option autoImplicit false | |
| 8 | +noncomputable section | |
| 9 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 10 | +open MeasureTheory Filter Set Complex | |
| 11 | +namespace ConditionalGoldbach | |
| 12 | +namespace FiniteModel | |
| 13 | + | |
| 14 | +lemma line_sub_line_reflection (σ : ℝ) (w : ℂ) (hw : w.re = 2*σ) (t : ℝ) : | |
| 15 | + w-line σ t = line σ (w.im-t) := by | |
| 16 | + apply Complex.ext <;> simp [line, hw]; ring | |
| 17 | + | |
| 18 | +lemma verticalMellin_reflection (f : ℂ → ℂ) (σ : ℝ) (w : ℂ) (hw : w.re = 2*σ) : | |
| 19 | + verticalMellin σ (fun s => f (w-s)) = verticalMellin σ f := by | |
| 20 | + unfold verticalMellin | |
| 21 | + simp_rw [line_sub_line_reflection σ w hw] | |
| 22 | + rw [integral_sub_left_eq_self (fun t : ℝ => f (line σ t)) volume w.im] | |
| 23 | + | |
| 24 | +lemma mellin_signedConvolution_eq (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (w : ℂ) (hw : 0 < w.re) : | |
| 25 | + mellin (fun y => (signedConvolution φ y : ℂ)) w = | |
| 26 | + 2 * mellin (fun y => (differenceConvolution φ y : ℂ)) w - | |
| 27 | + mellin (fun y => (sumConvolution φ y : ℂ)) w := by | |
| 28 | + have hC := (compact_mellin_regular (differenceConvolution φ) | |
| 29 | + (differenceConvolution_contDiff φ hφ).continuous _ _ (differenceConvolution_support φ hφ) w hw).1 | |
| 30 | + have hJ := (compact_mellin_regular (sumConvolution φ) | |
| 31 | + (sumConvolution_contDiff φ hφ).continuous _ _ (sumConvolution_support φ hφ) w hw).1 | |
| 32 | + simp only [MellinConvergent, smul_eq_mul] at hC hJ | |
| 33 | + unfold mellin | |
| 34 | + simp only [smul_eq_mul, signedConvolution, ofReal_sub, ofReal_mul, ofReal_ofNat, mul_sub] | |
| 35 | + simp_rw [show ∀ a b : ℂ, a * (2*b) = 2*(a*b) by intros; ring] | |
| 36 | + rw [integral_sub (hC.const_mul 2) hJ, integral_const_mul] | |
| 37 | + | |
| 38 | +lemma signedConvolution_mellin_beta (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 39 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) : | |
| 40 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 41 | + mellinWeight φ (w-line σ t) * betaKernel (line σ t) (w-line σ t)) ∧ | |
| 42 | + mellin (fun y => (signedConvolution φ y : ℂ)) w = | |
| 43 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaKernel s (w-s)) := by | |
| 44 | + obtain ⟨hCi,hC⟩ := differenceConvolution_mellin_beta φ hφ σ hσ hσupper w hw | |
| 45 | + obtain ⟨hJi,hJ⟩ := sumConvolution_mellin_beta φ hφ σ hσ hσupper w hw | |
| 46 | + let C₁ : ℂ → ℂ := fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) w | |
| 47 | + let C₂ : ℂ → ℂ := fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-(w-s)) w | |
| 48 | + let J : ℂ → ℂ := fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) (1/2+s-w) | |
| 49 | + change Integrable (fun t : ℝ => C₁ (line σ t)) at hCi | |
| 50 | + change Integrable (fun t : ℝ => J (line σ t)) at hJi | |
| 51 | + have hflip (s : ℂ) : C₂ s = C₁ (w-s) := by | |
| 52 | + dsimp [C₁,C₂] | |
| 53 | + rw [sub_sub_cancel] | |
| 54 | + ring | |
| 55 | + have hC₂i : Integrable (fun t : ℝ => C₂ (line σ t)) := by | |
| 56 | + apply (hCi.comp_sub_left w.im).congr | |
| 57 | + filter_upwards [] with t | |
| 58 | + change C₁ (line σ (w.im-t)) = C₂ (line σ t) | |
| 59 | + rw [hflip, line_sub_line_reflection σ w hw] | |
| 60 | + have hC₂ : verticalMellin σ C₂ = mellin (fun y => (differenceConvolution φ y : ℂ)) w := by | |
| 61 | + have hefun : C₂ = fun s => C₁ (w-s) := funext hflip | |
| 62 | + rw [hefun, verticalMellin_reflection C₁ σ w hw] | |
| 63 | + exact hC.symm | |
| 64 | + have hk (s : ℂ) : mellinWeight φ s * mellinWeight φ (w-s) * betaKernel s (w-s) = | |
| 65 | + C₁ s + C₂ s - J s := by | |
| 66 | + dsimp [betaKernel, C₁,C₂,J] | |
| 67 | + rw [add_sub_cancel] | |
| 68 | + have he : (1/2 : ℂ)-(w-s) = 1/2+s-w := by ring | |
| 69 | + rw [he] | |
| 70 | + ring | |
| 71 | + constructor | |
| 72 | + · simp_rw [hk] | |
| 73 | + exact (hCi.add hC₂i).sub hJi | |
| 74 | + · rw [mellin_signedConvolution_eq φ hφ w (by linarith)] | |
| 75 | + simp_rw [hk] | |
| 76 | + unfold verticalMellin | |
| 77 | + dsimp only | |
| 78 | + rw [integral_sub (f := fun t : ℝ => C₁ (line σ t) + C₂ (line σ t)) | |
| 79 | + (g := fun t : ℝ => J (line σ t)) (hCi.add hC₂i) hJi, | |
| 80 | + integral_add (f := fun t : ℝ => C₁ (line σ t)) (g := fun t : ℝ => C₂ (line σ t)) hCi hC₂i] | |
| 81 | + have he : (2*(Real.pi : ℂ))⁻¹ * | |
| 82 | + ((∫ t : ℝ, C₁ (line σ t)) + (∫ t : ℝ, C₂ (line σ t)) - (∫ t : ℝ, J (line σ t))) = | |
| 83 | + verticalMellin σ C₁ + verticalMellin σ C₂ - verticalMellin σ J := by | |
| 84 | + unfold verticalMellin | |
| 85 | + ring | |
| 86 | + rw [he, ← hC, hC₂, ← hJ] | |
| 87 | + ring | |
| 88 | + | |
| 89 | +end FiniteModel | |
| 90 | +end ConditionalGoldbach | |
+200 −0 ConditionalGoldbach/Proofs/FiniteModelBetaTransform.lean added View file
| @@ -0,0 +1,200 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteModelBetaConvolution | |
| 4 | +public import ConditionalGoldbach.Proofs.FiniteModelConvolution | |
| 5 | + | |
| 6 | +@[expose] public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff Convolution | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | +namespace FiniteModel | |
| 14 | + | |
| 15 | +lemma weight_complex_integrable (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 16 | + Integrable (fun u => (φ u : ℂ)) := | |
| 17 | + Complex.ofRealCLM.integrable_comp (hφ.continuous.integrable_of_hasCompactSupport hφ.hasCompactSupport) | |
| 18 | + | |
| 19 | +lemma difference_convolution_integral_pairing (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 20 | + (h : ℝ → ℂ) (hi : Integrable h) : | |
| 21 | + (∫ y : ℝ, h y * (differenceConvolution φ y : ℂ)) = | |
| 22 | + ∫ r : ℝ, (∫ u : ℝ, (φ u : ℂ) * h (r-u)) * (φ r : ℂ) := by | |
| 23 | + obtain ⟨B,hB⟩ := hφ.norm_bounded | |
| 24 | + have hF : Integrable (fun p : ℝ × ℝ => h p.1 * (φ p.2 : ℂ) * (φ (p.2+p.1) : ℂ)) | |
| 25 | + (volume.prod volume) := | |
| 26 | + (hi.mul_prod (weight_complex_integrable φ hφ)).mul_bdd | |
| 27 | + (by apply Continuous.aestronglyMeasurable; exact Complex.continuous_ofReal.comp (hφ.continuous.comp (by fun_prop))) | |
| 28 | + (Eventually.of_forall (fun p => hB (p.2+p.1))) | |
| 29 | + have hG : Integrable (fun p : ℝ × ℝ => h (p.1-p.2) * (φ p.2 : ℂ) * (φ p.1 : ℂ)) | |
| 30 | + (volume.prod volume) := by | |
| 31 | + convert (measurePreserving_sub_prod volume volume).integrable_comp_of_integrable hF using 1 | |
| 32 | + ext p | |
| 33 | + dsimp only [Function.comp_apply] | |
| 34 | + rw [add_sub_cancel] | |
| 35 | + have hsF := integral_integral_swap (f := fun y u : ℝ => h y * (φ u : ℂ) * (φ (u+y) : ℂ)) hF | |
| 36 | + have hsG := integral_integral_swap (f := fun r u : ℝ => h (r-u) * (φ u : ℂ) * (φ r : ℂ)) hG | |
| 37 | + calc | |
| 38 | + _ = ∫ y : ℝ, ∫ u : ℝ, h y * (φ u : ℂ) * (φ (u+y) : ℂ) := by | |
| 39 | + apply integral_congr_ae | |
| 40 | + filter_upwards [] with y | |
| 41 | + rw [differenceConvolution_eq_real_integral φ hφ] | |
| 42 | + rw [← integral_complex_ofReal] | |
| 43 | + simp only [ofReal_mul, mul_assoc, integral_const_mul] | |
| 44 | + _ = ∫ u : ℝ, ∫ y : ℝ, h y * (φ u : ℂ) * (φ (u+y) : ℂ) := hsF | |
| 45 | + _ = ∫ u : ℝ, ∫ r : ℝ, h (r-u) * (φ u : ℂ) * (φ r : ℂ) := by | |
| 46 | + apply integral_congr_ae | |
| 47 | + filter_upwards [] with u | |
| 48 | + have ht := integral_add_right_eq_self (μ := volume) (fun r : ℝ => h (r-u) * (φ u : ℂ) * (φ r : ℂ)) u | |
| 49 | + simpa only [add_sub_cancel_right, add_comm, add_sub_cancel_left] using ht | |
| 50 | + _ = ∫ r : ℝ, ∫ u : ℝ, h (r-u) * (φ u : ℂ) * (φ r : ℂ) := hsG.symm | |
| 51 | + _ = _ := by | |
| 52 | + simp only [integral_mul_const] | |
| 53 | + congr 1 | |
| 54 | + ext r | |
| 55 | + congr 1 | |
| 56 | + apply integral_congr_ae | |
| 57 | + filter_upwards [] with u | |
| 58 | + ring | |
| 59 | + | |
| 60 | +lemma sum_convolution_integral_pairing (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 61 | + (h : ℝ → ℂ) (hi : Integrable h) : | |
| 62 | + (∫ y : ℝ, h y * (sumConvolution φ y : ℂ)) = | |
| 63 | + ∫ r : ℝ, (∫ u : ℝ, (φ u : ℂ) * h (u+r)) * (φ r : ℂ) := by | |
| 64 | + obtain ⟨B,hB⟩ := hφ.norm_bounded | |
| 65 | + have hF : Integrable (fun p : ℝ × ℝ => h p.1 * (φ p.2 : ℂ) * (φ (p.1-p.2) : ℂ)) | |
| 66 | + (volume.prod volume) := | |
| 67 | + (hi.mul_prod (weight_complex_integrable φ hφ)).mul_bdd | |
| 68 | + (by apply Continuous.aestronglyMeasurable; exact Complex.continuous_ofReal.comp (hφ.continuous.comp (by fun_prop))) | |
| 69 | + (Eventually.of_forall (fun p => hB (p.1-p.2))) | |
| 70 | + have hG : Integrable (fun p : ℝ × ℝ => h (p.1+p.2) * (φ p.2 : ℂ) * (φ p.1 : ℂ)) | |
| 71 | + (volume.prod volume) := by | |
| 72 | + convert (measurePreserving_add_prod volume volume).integrable_comp_of_integrable hF using 1 | |
| 73 | + ext p | |
| 74 | + dsimp only [Function.comp_apply] | |
| 75 | + rw [add_sub_cancel_right] | |
| 76 | + have hsF := integral_integral_swap (f := fun y u : ℝ => h y * (φ u : ℂ) * (φ (y-u) : ℂ)) hF | |
| 77 | + have hsG := integral_integral_swap (f := fun r u : ℝ => h (r+u) * (φ u : ℂ) * (φ r : ℂ)) hG | |
| 78 | + calc | |
| 79 | + _ = ∫ y : ℝ, ∫ u : ℝ, h y * (φ u : ℂ) * (φ (y-u) : ℂ) := by | |
| 80 | + apply integral_congr_ae | |
| 81 | + filter_upwards [] with y | |
| 82 | + rw [sumConvolution_eq_convolution φ hφ] | |
| 83 | + simp only [convolution_def, ContinuousLinearMap.lsmul_apply, smul_eq_mul] | |
| 84 | + rw [← integral_complex_ofReal] | |
| 85 | + simp only [ofReal_mul, mul_assoc, integral_const_mul] | |
| 86 | + _ = ∫ u : ℝ, ∫ y : ℝ, h y * (φ u : ℂ) * (φ (y-u) : ℂ) := hsF | |
| 87 | + _ = ∫ u : ℝ, ∫ r : ℝ, h (r+u) * (φ u : ℂ) * (φ r : ℂ) := by | |
| 88 | + apply integral_congr_ae | |
| 89 | + filter_upwards [] with u | |
| 90 | + have ht := integral_sub_right_eq_self (μ := volume) (fun r : ℝ => h (r+u) * (φ u : ℂ) * (φ r : ℂ)) u | |
| 91 | + simpa only [sub_add_cancel] using ht | |
| 92 | + _ = ∫ r : ℝ, ∫ u : ℝ, h (r+u) * (φ u : ℂ) * (φ r : ℂ) := hsG.symm | |
| 93 | + _ = _ := by | |
| 94 | + simp only [integral_mul_const] | |
| 95 | + congr 1 | |
| 96 | + ext r | |
| 97 | + congr 1 | |
| 98 | + apply integral_congr_ae | |
| 99 | + filter_upwards [] with u | |
| 100 | + rw [add_comm r u, mul_comm (h (u+r)) (φ u : ℂ)] | |
| 101 | + | |
| 102 | +def truncatedPositiveMellinKernel (w : ℂ) : ℝ → ℂ := | |
| 103 | + (Ioo (0 : ℝ) 2).indicator (fun y : ℝ => (y : ℂ)^(w-1)) | |
| 104 | + | |
| 105 | +lemma truncatedPositiveMellinKernel_integrable (w : ℂ) (hw : 0 < w.re) : | |
| 106 | + Integrable (truncatedPositiveMellinKernel w) := by | |
| 107 | + apply IntegrableOn.integrable_indicator _ measurableSet_Ioo | |
| 108 | + exact (intervalIntegral.integrableOn_Ioo_cpow_iff (by norm_num : (0 : ℝ) < 2)).2 | |
| 109 | + (by simp only [sub_re, one_re]; linarith) | |
| 110 | + | |
| 111 | +lemma mellin_eq_truncated_kernel (f : ℝ → ℝ) (A B : ℝ) (hB : B < 2) | |
| 112 | + (hf : Function.support f ⊆ Icc A B) (w : ℂ) : | |
| 113 | + mellin (fun y => (f y : ℂ)) w = | |
| 114 | + ∫ y : ℝ, truncatedPositiveMellinKernel w y * (f y : ℂ) := by | |
| 115 | + unfold mellin | |
| 116 | + rw [← integral_indicator measurableSet_Ioi] | |
| 117 | + apply integral_congr_ae | |
| 118 | + filter_upwards [] with y | |
| 119 | + by_cases hz : f y = 0 | |
| 120 | + · simp [hz, smul_eq_mul] | |
| 121 | + · have hs := hf hz | |
| 122 | + have hy2 : y < 2 := hs.2.trans_lt hB | |
| 123 | + by_cases hy : 0 < y <;> simp [truncatedPositiveMellinKernel, Set.indicator, hy, hy2, smul_eq_mul] | |
| 124 | + | |
| 125 | +lemma differenceConvolution_mellin_physical (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 126 | + (w : ℂ) (hw : 0 < w.re) : | |
| 127 | + mellin (fun y => (differenceConvolution φ y : ℂ)) w = | |
| 128 | + ∫ r in Ioi (0 : ℝ), (∫ u in Ioo (0 : ℝ) r, (φ u : ℂ) * (r-u : ℂ)^(w-1)) * (φ r : ℂ) := by | |
| 129 | + rw [mellin_eq_truncated_kernel _ _ _ (by linarith [hφ.lower_pos,hφ.upper_lt_one] : hφ.upper-hφ.lower < 2) | |
| 130 | + (differenceConvolution_support φ hφ), | |
| 131 | + difference_convolution_integral_pairing φ hφ _ (truncatedPositiveMellinKernel_integrable w hw)] | |
| 132 | + rw [← setIntegral_eq_integral_of_forall_compl_eq_zero (s := Ioi (0 : ℝ)) (fun r hr => by | |
| 133 | + rw [hφ.eq_zero_of_nonpos (by simpa only [mem_Ioi, not_lt] using hr), ofReal_zero, mul_zero])] | |
| 134 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 135 | + intro r hr | |
| 136 | + dsimp only | |
| 137 | + by_cases hzr : φ r = 0 | |
| 138 | + · simp [hzr] | |
| 139 | + · congr 1 | |
| 140 | + rw [← integral_indicator measurableSet_Ioo] | |
| 141 | + apply integral_congr_ae | |
| 142 | + filter_upwards [] with u | |
| 143 | + by_cases hzu : φ u = 0 | |
| 144 | + · simp [hzu, Set.indicator] | |
| 145 | + · have hrs := hφ.mem_support_unit hzr | |
| 146 | + have hus := hφ.mem_support_unit hzu | |
| 147 | + have hu : 0 < u := by linarith [hus.1] | |
| 148 | + have hru : r-u < 2 := by linarith [hrs.2, hus.1] | |
| 149 | + by_cases hur : u < r | |
| 150 | + · have hpos : 0 < r-u := sub_pos.mpr hur | |
| 151 | + simp [truncatedPositiveMellinKernel, Set.indicator, hu, hur, hpos, hru, ofReal_sub] | |
| 152 | + · have hnon : ¬0 < r-u := by linarith | |
| 153 | + simp [truncatedPositiveMellinKernel, Set.indicator, hu, hur, hnon] | |
| 154 | + | |
| 155 | +lemma sumConvolution_mellin_physical (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 156 | + (w : ℂ) (hw : 0 < w.re) : | |
| 157 | + mellin (fun y => (sumConvolution φ y : ℂ)) w = | |
| 158 | + ∫ r in Ioi (0 : ℝ), (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * (u+r : ℂ)^(w-1)) * (φ r : ℂ) := by | |
| 159 | + rw [mellin_eq_truncated_kernel _ _ _ (by linarith [hφ.upper_lt_one] : 2*hφ.upper < 2) | |
| 160 | + (sumConvolution_support φ hφ), | |
| 161 | + sum_convolution_integral_pairing φ hφ _ (truncatedPositiveMellinKernel_integrable w hw)] | |
| 162 | + rw [← setIntegral_eq_integral_of_forall_compl_eq_zero (s := Ioi (0 : ℝ)) (fun r hr => by | |
| 163 | + rw [hφ.eq_zero_of_nonpos (by simpa only [mem_Ioi, not_lt] using hr), ofReal_zero, mul_zero])] | |
| 164 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 165 | + intro r hr | |
| 166 | + dsimp only | |
| 167 | + by_cases hzr : φ r = 0 | |
| 168 | + · simp [hzr] | |
| 169 | + · congr 1 | |
| 170 | + rw [← integral_indicator measurableSet_Ioi] | |
| 171 | + apply integral_congr_ae | |
| 172 | + filter_upwards [] with u | |
| 173 | + by_cases hzu : φ u = 0 | |
| 174 | + · simp [hzu, Set.indicator] | |
| 175 | + · have hrs := hφ.mem_support_unit hzr | |
| 176 | + have hus := hφ.mem_support_unit hzu | |
| 177 | + have hu : 0 < u := by linarith [hus.1] | |
| 178 | + have hsum : 0 < u+r ∧ u+r < 2 := by constructor <;> linarith [hrs.1, hrs.2, hus.1, hus.2] | |
| 179 | + simp [truncatedPositiveMellinKernel, Set.indicator, hu, hsum.1, hsum.2, ofReal_add] | |
| 180 | + | |
| 181 | +lemma differenceConvolution_mellin_beta (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 182 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) : | |
| 183 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 184 | + mellinWeight φ (w-line σ t) * betaIntegral (1/2-line σ t) w) ∧ | |
| 185 | + mellin (fun y => (differenceConvolution φ y : ℂ)) w = | |
| 186 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) w) := by | |
| 187 | + rw [differenceConvolution_mellin_physical φ hφ w (by linarith)] | |
| 188 | + exact difference_convolution_slices_mellin φ hφ σ hσ hσupper w hw | |
| 189 | + | |
| 190 | +lemma sumConvolution_mellin_beta (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 191 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) : | |
| 192 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 193 | + mellinWeight φ (w-line σ t) * betaIntegral (1/2-line σ t) (1/2+line σ t-w)) ∧ | |
| 194 | + mellin (fun y => (sumConvolution φ y : ℂ)) w = | |
| 195 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) (1/2+s-w)) := by | |
| 196 | + rw [sumConvolution_mellin_physical φ hφ w (by linarith)] | |
| 197 | + exact sum_convolution_slices_mellin φ hφ σ hσ hσupper w hw | |
| 198 | + | |
| 199 | +end FiniteModel | |
| 200 | +end ConditionalGoldbach | |
+81 −0 ConditionalGoldbach/Proofs/FiniteModelBound.lean added View file
| @@ -0,0 +1,81 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteModelBasic | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinModelBound | |
| 5 | + | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach.FiniteModel | |
| 13 | + | |
| 14 | +lemma mellinWeight_first_moment_integrable (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (σ : ℝ) (hσ : 0<σ) : | |
| 15 | + Integrable (fun t : ℝ => (1+|t|) * ‖mellinWeight φ (line σ t)‖) := by | |
| 16 | + obtain ⟨C,hC,hdec⟩ := mellinWeight_uniform_decay φ hφ σ σ hσ (le_refl σ) | |
| 17 | + have hi : Integrable (fun t : ℝ => (1+|t|)⁻¹ ^ 2) := by | |
| 18 | + have h := integrable_one_add_norm (E := ℝ) (μ := volume) (r := 2) (by simp) | |
| 19 | + convert h using 1 | |
| 20 | + ext t | |
| 21 | + rw [Real.norm_eq_abs, Real.rpow_neg (by positivity), Real.rpow_two, inv_pow] | |
| 22 | + have hcont : Continuous (fun t : ℝ => mellinWeight φ (line σ t)) := | |
| 23 | + (mellinWeight_differentiable hφ).continuous.comp (by unfold line; fun_prop) | |
| 24 | + apply (hi.const_mul C).mono' ((show Continuous (fun t : ℝ => 1+|t|) by fun_prop).mul hcont.norm).aestronglyMeasurable | |
| 25 | + filter_upwards [] with t | |
| 26 | + dsimp only [Pi.mul_apply] | |
| 27 | + rw [Real.norm_eq_abs, abs_of_nonneg (mul_nonneg (by positivity) (norm_nonneg _))] | |
| 28 | + have hp : 0 < 1+|t| := by positivity | |
| 29 | + have ht := hdec σ ⟨le_rfl,le_rfl⟩ t | |
| 30 | + have hm := mul_le_mul_of_nonneg_left ht hp.le | |
| 31 | + have hinv : 0 ≤ (1+|t|)⁻¹ := inv_nonneg.mpr hp.le | |
| 32 | + have hinv1 : (1+|t|)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ (by linarith [abs_nonneg t]) | |
| 33 | + have hpow := pow_le_pow_of_le_one hinv hinv1 (show 2 ≤ 5 by norm_num) | |
| 34 | + have he : (1+|t|) * (C*(1+|t|)⁻¹ ^ 6) = C*(1+|t|)⁻¹ ^ 5 := by field_simp | |
| 35 | + rw [he] at hm | |
| 36 | + exact hm.trans (mul_le_mul_of_nonneg_left hpow hC.le) | |
| 37 | + | |
| 38 | +lemma model_double_integrable (N : ℕ) (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 39 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) : | |
| 40 | + Integrable (fun p : ℝ × ℝ => | |
| 41 | + mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * | |
| 42 | + continuedDensity N (line σ p.1 + line σ p.2) * betaKernel (line σ p.1) (line σ p.2)) := by | |
| 43 | + obtain ⟨D,hD,hDb⟩ := continuedDensity_line_growth N (2*σ) (by linarith) (by linarith) | |
| 44 | + let B : ℝ := ‖2 * betaIntegral (1/2-(σ : ℂ)) (2*σ) + betaIntegral (1/2-(σ : ℂ)) (1/2-(σ : ℂ))‖ | |
| 45 | + have hM : Continuous (fun t : ℝ => mellinWeight φ (line σ t)) := | |
| 46 | + (mellinWeight_differentiable hφ).continuous.comp (by unfold line; fun_prop) | |
| 47 | + have hDcont := continuedDensity_line_continuous N (2*σ) (by linarith) (by linarith) | |
| 48 | + have hline (v y : ℝ) : line σ v + line σ y = line (2*σ) (v+y) := by | |
| 49 | + unfold line | |
| 50 | + push_cast | |
| 51 | + ring | |
| 52 | + have hbm : Measurable (fun p : ℝ × ℝ => betaKernel (line σ p.1) (line σ p.2)) := by | |
| 53 | + unfold betaKernel | |
| 54 | + exact ((measurable_betaIntegral _ _ (by unfold line; fun_prop) (by unfold line; fun_prop)).add | |
| 55 | + (measurable_betaIntegral _ _ (by unfold line; fun_prop) (by unfold line; fun_prop))).sub | |
| 56 | + (measurable_betaIntegral _ _ (by unfold line; fun_prop) (by unfold line; fun_prop)) | |
| 57 | + have hm : Measurable (fun p : ℝ × ℝ => mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * | |
| 58 | + continuedDensity N (line σ p.1 + line σ p.2) * betaKernel (line σ p.1) (line σ p.2)) := by | |
| 59 | + simp_rw [hline] | |
| 60 | + exact (((hM.measurable.comp measurable_fst).mul (hM.measurable.comp measurable_snd)).mul | |
| 61 | + (hDcont.measurable.comp (by fun_prop))).mul hbm | |
| 62 | + rw [Measure.volume_eq_prod] | |
| 63 | + apply (((mellinWeight_first_moment_integrable φ hφ σ hσ).mul_prod | |
| 64 | + (mellinWeight_first_moment_integrable φ hφ σ hσ)).const_mul (D*B)).mono' hm.aestronglyMeasurable | |
| 65 | + filter_upwards [] with p | |
| 66 | + rcases p with ⟨v,y⟩ | |
| 67 | + simp only [norm_mul] | |
| 68 | + have hb : ‖betaKernel (line σ v) (line σ y)‖ ≤ B := | |
| 69 | + betaKernel_vertical_bound _ _ σ (by simp [line]) (by simp [line]) | |
| 70 | + have hd : ‖continuedDensity N (line σ v + line σ y)‖ ≤ D*(1+|v+y|) := by rw [hline]; exact hDb _ | |
| 71 | + have hadd : 1+|v+y| ≤ (1+|v|)*(1+|y|) := by | |
| 72 | + nlinarith [abs_add_le v y, mul_nonneg (abs_nonneg v) (abs_nonneg y)] | |
| 73 | + calc | |
| 74 | + _ ≤ (‖mellinWeight φ (line σ v)‖ * ‖mellinWeight φ (line σ y)‖) * (D*(1+|v+y|)) * B := by | |
| 75 | + exact mul_le_mul (mul_le_mul_of_nonneg_left hd (mul_nonneg (norm_nonneg _) (norm_nonneg _))) hb | |
| 76 | + (norm_nonneg _) (by positivity) | |
| 77 | + _ ≤ (‖mellinWeight φ (line σ v)‖ * ‖mellinWeight φ (line σ y)‖) * | |
| 78 | + (D*((1+|v|)*(1+|y|))) * B := by gcongr | |
| 79 | + _ = _ := by ring | |
| 80 | + | |
| 81 | +end ConditionalGoldbach.FiniteModel | |
+255 −0 ConditionalGoldbach/Proofs/FiniteModelConvolution.lean added View file
| @@ -0,0 +1,255 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteModelBasic | |
| 4 | + | |
| 5 | +/-! C6 convolution densities with general positive compact support and nonsymmetric mass. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff Convolution | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach.FiniteModel | |
| 13 | + | |
| 14 | +theorem lemma_7_2_convolutions (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 15 | + (∀ y : ℝ, | |
| 16 | + IntegrableOn (fun u : ℝ => φ u * φ (u + y)) (Ioi 0) ∧ | |
| 17 | + IntegrableOn (fun u : ℝ => φ u * φ (y - u)) (Ioi 0) ∧ | |
| 18 | + sumConvolution φ y = ∫ u in (0 : ℝ)..y, φ u * φ (y - u)) ∧ | |
| 19 | + sumConvolution φ 1 = modelMass φ ∧ IntegrableOn φ (Ioi 0) := by | |
| 20 | + have hlo := hφ.lower_pos | |
| 21 | + have hcompact (g : ℝ → ℝ) : HasCompactSupport (fun u => φ u * g u) := by | |
| 22 | + apply HasCompactSupport.of_support_subset_isCompact isCompact_Icc | |
| 23 | + intro u hu | |
| 24 | + apply hφ.mem_support_interval | |
| 25 | + exact (mul_ne_zero_iff.mp hu).1 | |
| 26 | + have hsum (y : ℝ) : | |
| 27 | + sumConvolution φ y = ∫ u in (0 : ℝ)..y, φ u * φ (y - u) := by | |
| 28 | + have hs : Function.support (fun u => φ u * φ (y - u)) ⊆ Ioc 0 y := by | |
| 29 | + intro u hu | |
| 30 | + obtain ⟨hu1, hu2⟩ := mul_ne_zero_iff.mp hu | |
| 31 | + have hs1 := hφ.mem_support_interval hu1 | |
| 32 | + have hs2 := hφ.mem_support_interval hu2 | |
| 33 | + constructor <;> linarith [hs1.1, hs2.1] | |
| 34 | + unfold sumConvolution | |
| 35 | + rw [intervalIntegral.integral_eq_integral_of_support_subset hs] | |
| 36 | + apply setIntegral_eq_integral_of_forall_compl_eq_zero | |
| 37 | + intro u hu | |
| 38 | + simp only [mem_Ioi, not_lt] at hu | |
| 39 | + rw [hφ.eq_zero_of_nonpos hu, zero_mul] | |
| 40 | + refine ⟨?_, ?_, hφ.continuous.integrable_of_hasCompactSupport | |
| 41 | + hφ.hasCompactSupport |>.integrableOn⟩ | |
| 42 | + · intro y | |
| 43 | + refine ⟨?_, ?_, hsum y⟩ | |
| 44 | + · apply Integrable.integrableOn | |
| 45 | + exact (hφ.continuous.mul (hφ.continuous.comp (continuous_id.add continuous_const))).integrable_of_hasCompactSupport (hcompact _) | |
| 46 | + · apply Integrable.integrableOn | |
| 47 | + exact (hφ.continuous.mul (hφ.continuous.comp (continuous_const.sub continuous_id))).integrable_of_hasCompactSupport (hcompact _) | |
| 48 | + · rw [hsum] | |
| 49 | + rfl | |
| 50 | + | |
| 51 | + | |
| 52 | +lemma differenceConvolution_support (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 53 | + Function.support (differenceConvolution φ) ⊆ Icc (hφ.lower-hφ.upper) (hφ.upper-hφ.lower) := by | |
| 54 | + intro y hy | |
| 55 | + by_contra h | |
| 56 | + apply hy | |
| 57 | + unfold differenceConvolution | |
| 58 | + apply integral_eq_zero_of_ae | |
| 59 | + filter_upwards [] with u | |
| 60 | + by_contra hn | |
| 61 | + obtain ⟨hu, huy⟩ := mul_ne_zero_iff.mp hn | |
| 62 | + have h₁ := hφ.mem_support_interval hu | |
| 63 | + have h₂ := hφ.mem_support_interval huy | |
| 64 | + apply h | |
| 65 | + constructor <;> linarith [h₁.1, h₁.2, h₂.1, h₂.2] | |
| 66 | + | |
| 67 | +lemma sumConvolution_support (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 68 | + Function.support (sumConvolution φ) ⊆ Icc (2*hφ.lower) (2*hφ.upper) := by | |
| 69 | + intro y hy | |
| 70 | + by_contra h | |
| 71 | + apply hy | |
| 72 | + unfold sumConvolution | |
| 73 | + apply integral_eq_zero_of_ae | |
| 74 | + filter_upwards [] with u | |
| 75 | + by_contra hn | |
| 76 | + obtain ⟨hu, huy⟩ := mul_ne_zero_iff.mp hn | |
| 77 | + have h₁ := hφ.mem_support_interval hu | |
| 78 | + have h₂ := hφ.mem_support_interval huy | |
| 79 | + apply h | |
| 80 | + constructor <;> linarith [h₁.1, h₁.2, h₂.1, h₂.2] | |
| 81 | + | |
| 82 | +lemma differenceConvolution_eq_real_integral (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (y : ℝ) : | |
| 83 | + differenceConvolution φ y = ∫ u : ℝ, φ u * φ (u + y) := by | |
| 84 | + unfold differenceConvolution | |
| 85 | + apply setIntegral_eq_integral_of_forall_compl_eq_zero | |
| 86 | + intro u hu | |
| 87 | + rw [hφ.eq_zero_of_nonpos (by simpa only [mem_Ioi, not_lt] using hu), zero_mul] | |
| 88 | + | |
| 89 | +lemma sumConvolution_eq_convolution (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 90 | + sumConvolution φ = φ ⋆ φ := by | |
| 91 | + funext y | |
| 92 | + unfold sumConvolution convolution | |
| 93 | + apply setIntegral_eq_integral_of_forall_compl_eq_zero | |
| 94 | + intro u hu | |
| 95 | + rw [hφ.eq_zero_of_nonpos (by simpa only [mem_Ioi, not_lt] using hu), zero_mul] | |
| 96 | + | |
| 97 | +lemma differenceConvolution_eq_convolution (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (y : ℝ) : | |
| 98 | + differenceConvolution φ y = (φ ⋆ (fun u => φ (-u))) (-y) := by | |
| 99 | + rw [differenceConvolution_eq_real_integral φ hφ] | |
| 100 | + unfold convolution | |
| 101 | + apply integral_congr_ae | |
| 102 | + filter_upwards [] with u | |
| 103 | + simp only [ContinuousLinearMap.lsmul_apply, smul_eq_mul] | |
| 104 | + congr 2 | |
| 105 | + ring | |
| 106 | + | |
| 107 | +lemma sumConvolution_contDiff (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 108 | + ContDiff ℝ 6 (sumConvolution φ) := by | |
| 109 | + rw [sumConvolution_eq_convolution φ hφ] | |
| 110 | + exact hφ.hasCompactSupport.contDiff_convolution_right (ContinuousLinearMap.lsmul ℝ ℝ) | |
| 111 | + hφ.continuous.locallyIntegrable hφ.smooth | |
| 112 | + | |
| 113 | +lemma differenceConvolution_contDiff (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 114 | + ContDiff ℝ 6 (differenceConvolution φ) := by | |
| 115 | + have heq : differenceConvolution φ = fun y => (φ ⋆ (fun u => φ (-u))) (-y) := | |
| 116 | + funext (differenceConvolution_eq_convolution φ hφ) | |
| 117 | + rw [heq] | |
| 118 | + have hc : HasCompactSupport (fun u : ℝ => φ (-u)) := by | |
| 119 | + apply HasCompactSupport.of_support_subset_isCompact (isCompact_Icc (a := -hφ.upper) (b := -hφ.lower)) | |
| 120 | + intro u hu | |
| 121 | + have hs := hφ.mem_support_interval hu | |
| 122 | + constructor <;> linarith [hs.1, hs.2] | |
| 123 | + exact (hc.contDiff_convolution_right (ContinuousLinearMap.lsmul ℝ ℝ) | |
| 124 | + hφ.continuous.locallyIntegrable (hφ.smooth.comp contDiff_neg)).comp contDiff_neg | |
| 125 | + | |
| 126 | +lemma differenceConvolution_even (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (y : ℝ) : | |
| 127 | + differenceConvolution φ (-y) = differenceConvolution φ y := by | |
| 128 | + rw [differenceConvolution_eq_real_integral φ hφ, differenceConvolution_eq_real_integral φ hφ] | |
| 129 | + rw [← integral_add_right_eq_self (fun u : ℝ => φ u * φ (u + -y)) y] | |
| 130 | + apply integral_congr_ae | |
| 131 | + filter_upwards [] with u | |
| 132 | + simp only [add_neg_cancel_right] | |
| 133 | + ring | |
| 134 | + | |
| 135 | +lemma convolution_integer_values (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 136 | + (∀ k : ℕ, 1 ≤ k → differenceConvolution φ k = 0) ∧ | |
| 137 | + (∀ k : ℕ, 2 ≤ k → sumConvolution φ k = 0) ∧ | |
| 138 | + signedConvolution φ 1 = -modelMass φ := by | |
| 139 | + have hlo := hφ.lower_pos | |
| 140 | + have hhi := hφ.upper_lt_one | |
| 141 | + have hC : ∀ k : ℕ, 1 ≤ k → differenceConvolution φ k = 0 := by | |
| 142 | + intro k hk | |
| 143 | + by_contra hn | |
| 144 | + have hh := differenceConvolution_support φ hφ hn | |
| 145 | + have hkr : (1 : ℝ) ≤ k := by exact_mod_cast hk | |
| 146 | + linarith [hh.2] | |
| 147 | + refine ⟨hC, ?_, ?_⟩ | |
| 148 | + · intro k hk | |
| 149 | + by_contra hn | |
| 150 | + have hh := sumConvolution_support φ hφ hn | |
| 151 | + have hkr : (2 : ℝ) ≤ k := by exact_mod_cast hk | |
| 152 | + linarith [hh.2] | |
| 153 | + · unfold signedConvolution | |
| 154 | + rw [show differenceConvolution φ 1 = 0 from by simpa using hC 1 le_rfl, | |
| 155 | + (lemma_7_2_convolutions φ hφ).2.1] | |
| 156 | + ring | |
| 157 | + | |
| 158 | +lemma differenceConvolution_integral (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 159 | + (∫ y in Ioi (0 : ℝ), differenceConvolution φ y) = | |
| 160 | + (∫ u in Ioi (0 : ℝ), φ u) ^ 2 / 2 := by | |
| 161 | + have hi : Integrable φ := hφ.continuous.integrable_of_hasCompactSupport hφ.hasCompactSupport | |
| 162 | + have hφint : (∫ u in Ioi (0 : ℝ), φ u) = ∫ u : ℝ, φ u := by | |
| 163 | + apply setIntegral_eq_integral_of_forall_compl_eq_zero | |
| 164 | + intro u hu | |
| 165 | + exact hφ.eq_zero_of_nonpos (by simpa only [mem_Ioi, not_lt] using hu) | |
| 166 | + have hCabs : (fun y : ℝ => differenceConvolution φ |y|) = differenceConvolution φ := by | |
| 167 | + funext y | |
| 168 | + by_cases hy : 0 ≤ y | |
| 169 | + · rw [abs_of_nonneg hy] | |
| 170 | + · rw [abs_of_neg (lt_of_not_ge hy), differenceConvolution_even φ hφ] | |
| 171 | + have htotal : (∫ y : ℝ, differenceConvolution φ y) = (∫ u : ℝ, φ u) ^ 2 := by | |
| 172 | + simp_rw [differenceConvolution_eq_convolution φ hφ] | |
| 173 | + rw [integral_neg_eq_self, integral_convolution (ContinuousLinearMap.lsmul ℝ ℝ) hi hi.comp_neg, | |
| 174 | + integral_neg_eq_self] | |
| 175 | + simp [pow_two] | |
| 176 | + have habs := integral_comp_abs (f := differenceConvolution φ) | |
| 177 | + rw [hCabs, htotal] at habs | |
| 178 | + rw [hφint] | |
| 179 | + linarith | |
| 180 | + | |
| 181 | +lemma sumConvolution_integral (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 182 | + (∫ y in Ioi (0 : ℝ), sumConvolution φ y) = (∫ u in Ioi (0 : ℝ), φ u) ^ 2 := by | |
| 183 | + have hi := (lemma_7_2_convolutions φ hφ).2.2 | |
| 184 | + simp_rw [fun y => ((lemma_7_2_convolutions φ hφ).1 y).2.2] | |
| 185 | + simpa only [ContinuousLinearMap.lsmul_apply, smul_eq_mul, pow_two] using | |
| 186 | + integral_posConvolution hi hi (ContinuousLinearMap.lsmul ℝ ℝ) | |
| 187 | + | |
| 188 | +lemma signedConvolution_contDiff (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 189 | + ContDiff ℝ 6 (signedConvolution φ) := by | |
| 190 | + unfold signedConvolution | |
| 191 | + exact (contDiff_const.mul (differenceConvolution_contDiff φ hφ)).sub (sumConvolution_contDiff φ hφ) | |
| 192 | + | |
| 193 | +lemma signedConvolution_support (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 194 | + Function.support (signedConvolution φ) ⊆ Icc (hφ.lower-hφ.upper) (2*hφ.upper) := by | |
| 195 | + have hlo := hφ.lower_pos | |
| 196 | + have hlu := hφ.lower_le_upper | |
| 197 | + intro y hy | |
| 198 | + by_cases hc : differenceConvolution φ y = 0 | |
| 199 | + · have hj : sumConvolution φ y ≠ 0 := by | |
| 200 | + intro hj | |
| 201 | + apply hy | |
| 202 | + simp [signedConvolution, hc, hj] | |
| 203 | + have hs := sumConvolution_support φ hφ hj | |
| 204 | + constructor <;> linarith [hs.1, hs.2] | |
| 205 | + · have hs := differenceConvolution_support φ hφ hc | |
| 206 | + constructor <;> linarith [hs.1, hs.2] | |
| 207 | + | |
| 208 | +lemma signedConvolution_hasCompactSupport (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 209 | + HasCompactSupport (signedConvolution φ) := | |
| 210 | + HasCompactSupport.of_support_subset_isCompact isCompact_Icc (signedConvolution_support φ hφ) | |
| 211 | + | |
| 212 | +lemma signedConvolution_integral_zero (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 213 | + (∫ y in Ioi (0 : ℝ), signedConvolution φ y) = 0 := by | |
| 214 | + have hC : Integrable (differenceConvolution φ) := | |
| 215 | + (differenceConvolution_contDiff φ hφ).continuous.integrable_of_hasCompactSupport | |
| 216 | + (HasCompactSupport.of_support_subset_isCompact isCompact_Icc (differenceConvolution_support φ hφ)) | |
| 217 | + have hJ : Integrable (sumConvolution φ) := | |
| 218 | + (sumConvolution_contDiff φ hφ).continuous.integrable_of_hasCompactSupport | |
| 219 | + (HasCompactSupport.of_support_subset_isCompact isCompact_Icc (sumConvolution_support φ hφ)) | |
| 220 | + unfold signedConvolution | |
| 221 | + rw [integral_sub ((hC.const_mul 2).integrableOn) hJ.integrableOn, integral_const_mul, | |
| 222 | + differenceConvolution_integral φ hφ, sumConvolution_integral φ hφ] | |
| 223 | + ring | |
| 224 | + | |
| 225 | +lemma signedConvolution_mellin_one (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 226 | + mellin (fun y => (signedConvolution φ y : ℂ)) 1 = 0 := by | |
| 227 | + unfold mellin | |
| 228 | + simp only [sub_self, cpow_zero, one_smul] | |
| 229 | + have h := integral_ofReal (𝕜 := ℂ) (μ := volume.restrict (Ioi (0 : ℝ))) | |
| 230 | + (f := signedConvolution φ) | |
| 231 | + rw [signedConvolution_integral_zero φ hφ] at h | |
| 232 | + simpa using h | |
| 233 | + | |
| 234 | +lemma signedConvolution_mellin_regular (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 235 | + (s : ℂ) (hs : 0 < s.re) : | |
| 236 | + MellinConvergent (fun y => (signedConvolution φ y : ℂ)) s ∧ | |
| 237 | + DifferentiableAt ℂ (mellin (fun y => (signedConvolution φ y : ℂ))) s := by | |
| 238 | + have hc : Continuous (fun y => (signedConvolution φ y : ℂ)) := | |
| 239 | + Complex.continuous_ofReal.comp (signedConvolution_contDiff φ hφ).continuous | |
| 240 | + have htop : (fun y => (signedConvolution φ y : ℂ)) =ᶠ[atTop] 0 := by | |
| 241 | + filter_upwards [eventually_gt_atTop (2*hφ.upper)] with y hy | |
| 242 | + have hz : signedConvolution φ y = 0 := by | |
| 243 | + by_contra hn | |
| 244 | + exact (not_lt_of_ge (signedConvolution_support φ hφ hn).2) hy | |
| 245 | + simp [hz] | |
| 246 | + have hbot : (fun y => (signedConvolution φ y : ℂ)) =O[𝓝[>] (0 : ℝ)] | |
| 247 | + (fun y : ℝ => y ^ (-(0 : ℝ))) := by | |
| 248 | + simpa using (hc.continuousAt.tendsto.mono_left nhdsWithin_le_nhds).isBigO_one ℝ | |
| 249 | + have hloc := (hc.locallyIntegrable (μ := volume)).locallyIntegrableOn (Ioi (0 : ℝ)) | |
| 250 | + exact ⟨mellinConvergent_of_isBigO_rpow (a := s.re + 1) (b := 0) hloc | |
| 251 | + (htop.trans_isBigO (Asymptotics.isBigO_zero _ _)) (by linarith) hbot hs, | |
| 252 | + mellin_differentiableAt_of_isBigO_rpow (a := s.re + 1) (b := 0) hloc | |
| 253 | + (htop.trans_isBigO (Asymptotics.isBigO_zero _ _)) (by linarith) hbot hs⟩ | |
| 254 | + | |
| 255 | +end ConditionalGoldbach.FiniteModel | |
+27 −0 ConditionalGoldbach/Proofs/FiniteModelDouble.lean added View file
| @@ -0,0 +1,27 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteModelBetaRelation | |
| 4 | +public import ConditionalGoldbach.Proofs.FiniteModelBound | |
| 5 | +public import ConditionalGoldbach.Proofs.FiniteModelSingle | |
| 6 | +public import ConditionalGoldbach.Proofs.MellinDoubleDiagonal | |
| 7 | + | |
| 8 | +/-! The double model inversion for general C6 weights, without a symmetry assumption. -/ | |
| 9 | +public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 14 | +open MeasureTheory Filter Set Complex | |
| 15 | +namespace ConditionalGoldbach.FiniteModel | |
| 16 | + | |
| 17 | +lemma model_double_mellin (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 18 | + (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) : | |
| 19 | + verticalMellin σ (fun s => verticalMellin σ (fun z => | |
| 20 | + mellinWeight φ s * mellinWeight φ z * continuedDensity N (s+z) * betaKernel s z)) = | |
| 21 | + -(modelMass φ * singularSeries N : ℝ) := by | |
| 22 | + rw [model_double_mellin_eq_single N φ σ | |
| 23 | + (model_double_integrable N φ hφ σ hσ hσupper) | |
| 24 | + (fun w hw => (signedConvolution_mellin_beta φ hφ σ hσ hσupper w hw).2)] | |
| 25 | + exact (model_single_mellin N hN hpos φ hφ (2 * σ) (by linarith)).2 | |
| 26 | + | |
| 27 | +end ConditionalGoldbach.FiniteModel | |
+81 −0 ConditionalGoldbach/Proofs/FiniteModelRemovable.lean added View file
| @@ -0,0 +1,81 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteModelSampling | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinModelRemovable | |
| 5 | + | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach.FiniteModel | |
| 13 | + | |
| 14 | +lemma regularizedModelMellin_eq (N : ℕ) (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 15 | + {w : ℂ} (hw : w ≠ 1) : | |
| 16 | + regularizedModelMellin N φ w = | |
| 17 | + continuedDensity N w * mellin (fun y => (signedConvolution φ y : ℂ)) w := by | |
| 18 | + rw [regularizedModelMellin, dslope_of_ne _ hw, slope, | |
| 19 | + signedConvolution_mellin_one φ hφ, vsub_eq_sub, sub_zero, smul_eq_mul, | |
| 20 | + continuedDensity, riemannZeta_eq_inv_sub_mul hw] | |
| 21 | + ring | |
| 22 | + | |
| 23 | +lemma regularizedModelMellin_one (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 24 | + (φ : ℝ → ℝ) : | |
| 25 | + regularizedModelMellin N φ 1 = (N : ℂ) / N.totient * | |
| 26 | + deriv (mellin (fun y => (signedConvolution φ y : ℂ))) 1 := by | |
| 27 | + simp only [regularizedModelMellin, riemannZeta₁_one, mul_one, dslope_same, | |
| 28 | + singularSeries_mul_densityEuler_one N hN hpos] | |
| 29 | + | |
| 30 | +lemma regularizedModelMellin_differentiableOn (N : ℕ) (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 31 | + DifferentiableOn ℂ (regularizedModelMellin N φ) {w : ℂ | 0 < w.re} := by | |
| 32 | + have ho : IsOpen {w : ℂ | 0 < w.re} := isOpen_lt continuous_const Complex.continuous_re | |
| 33 | + have hh : DifferentiableOn ℂ (mellin (fun y => (signedConvolution φ y : ℂ))) | |
| 34 | + {w : ℂ | 0 < w.re} := | |
| 35 | + fun w hw => (signedConvolution_mellin_regular φ hφ w hw).2.differentiableWithinAt | |
| 36 | + have hs := (Complex.differentiableOn_dslope (ho.mem_nhds (by norm_num : (1 : ℂ) ∈ | |
| 37 | + {w : ℂ | 0 < w.re}))).mpr hh | |
| 38 | + exact (((differentiable_riemannZeta₁.differentiableOn).const_mul _).mul | |
| 39 | + (densityEulerProduct_differentiableOn N)).mul hs | |
| 40 | + | |
| 41 | +lemma regularizedModelMellin_differentiableAt (N : ℕ) (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 42 | + {w : ℂ} (hw : 0 < w.re) : DifferentiableAt ℂ (regularizedModelMellin N φ) w := by | |
| 43 | + have ho : IsOpen {w : ℂ | 0 < w.re} := isOpen_lt continuous_const Complex.continuous_re | |
| 44 | + exact (regularizedModelMellin_differentiableOn N φ hφ).differentiableAt (ho.mem_nhds hw) | |
| 45 | + | |
| 46 | +lemma regularizedModelMellin_line_ae (N : ℕ) (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (σ : ℝ) : | |
| 47 | + (fun t : ℝ => regularizedModelMellin N φ (line σ t)) =ᵐ[volume] | |
| 48 | + (fun t : ℝ => continuedDensity N (line σ t) * | |
| 49 | + mellin (fun y => (signedConvolution φ y : ℂ)) (line σ t)) := by | |
| 50 | + filter_upwards [ae_iff.mpr (show volume {t : ℝ | ¬ t ≠ 0} = 0 by simp)] with t ht | |
| 51 | + apply regularizedModelMellin_eq N φ hφ | |
| 52 | + intro he | |
| 53 | + have hi := congrArg Complex.im he | |
| 54 | + simp only [line, add_im, ofReal_im, mul_im, ofReal_re, I_im, I_re, | |
| 55 | + mul_one, mul_zero, add_zero, zero_add, one_im] at hi | |
| 56 | + exact ht hi | |
| 57 | + | |
| 58 | +lemma regularizedModelMellin_verticalMellin (N : ℕ) (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (σ : ℝ) : | |
| 59 | + verticalMellin σ (regularizedModelMellin N φ) = | |
| 60 | + verticalMellin σ (fun w => continuedDensity N w * | |
| 61 | + mellin (fun y => (signedConvolution φ y : ℂ)) w) := by | |
| 62 | + unfold verticalMellin | |
| 63 | + rw [integral_congr_ae (regularizedModelMellin_line_ae N φ hφ σ)] | |
| 64 | + | |
| 65 | +lemma regularizedModelMellin_initial (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 66 | + (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (σ : ℝ) (hσ : 1 < σ) : | |
| 67 | + Integrable (fun t : ℝ => regularizedModelMellin N φ (line σ t)) ∧ | |
| 68 | + verticalMellin σ (regularizedModelMellin N φ) = | |
| 69 | + -(modelMass φ * singularSeries N : ℝ) := by | |
| 70 | + have he (t : ℝ) : regularizedModelMellin N φ (line σ t) = | |
| 71 | + densitySeries N (line σ t) * mellin (fun y => (signedConvolution φ y : ℂ)) (line σ t) := by | |
| 72 | + rw [regularizedModelMellin_eq N φ hφ (by | |
| 73 | + intro he | |
| 74 | + have hr := congrArg Complex.re he | |
| 75 | + simp only [line, add_re, ofReal_re, mul_re, ofReal_im, I_re, I_im, | |
| 76 | + mul_zero, zero_mul, sub_self, add_zero, one_re] at hr | |
| 77 | + linarith)] | |
| 78 | + rw [densitySeries_eq_continuedDensity N hN hpos (by simpa [line] using hσ)] | |
| 79 | + simpa only [he, verticalMellin] using density_signedConvolution_mellin_initial N hN hpos φ hφ σ hσ | |
| 80 | + | |
| 81 | +end ConditionalGoldbach.FiniteModel | |
+67 −0 ConditionalGoldbach/Proofs/FiniteModelSampling.lean added View file
| @@ -0,0 +1,67 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteModelConvolution | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinModelSampling | |
| 5 | + | |
| 6 | +/-! C6 Mellin sampling with the nonsymmetric cross mass. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach.FiniteModel | |
| 14 | + | |
| 15 | +lemma signedConvolution_mellin_decay (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 16 | + (a b : ℝ) (ha : 0<a) (hab : a≤b) : | |
| 17 | + ∃ C : ℝ, 0<C ∧ ∀ x ∈ Icc a b, ∀ t : ℝ, | |
| 18 | + ‖mellin (fun u => (signedConvolution φ u : ℂ)) (line x t)‖ ≤ C*(1+|t|)⁻¹^6 := by | |
| 19 | + obtain ⟨C,hC,hbound⟩ := compact_mellin_finite_decay 6 (signedConvolution φ) | |
| 20 | + (signedConvolution_contDiff φ hφ) _ _ (signedConvolution_support φ hφ) a b ha hab | |
| 21 | + refine ⟨C,hC,fun x hx t => ?_⟩ | |
| 22 | + simpa [line] using hbound (line x t) (by simpa [line] using hx) | |
| 23 | + | |
| 24 | +lemma signedConvolution_integer_sample (N : ℕ) (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) : | |
| 25 | + (∑' k : ℕ, (singularSeries ((k + 1) * N) : ℂ) * (signedConvolution φ (k + 1 : ℕ) : ℂ)) = | |
| 26 | + -(modelMass φ * singularSeries N : ℝ) := by | |
| 27 | + rw [tsum_eq_single 0] | |
| 28 | + · simp only [zero_add, one_mul, Nat.cast_one, (convolution_integer_values φ hφ).2.2, ofReal_neg, | |
| 29 | + ofReal_mul] | |
| 30 | + ring | |
| 31 | + · intro k hk | |
| 32 | + have hC := (convolution_integer_values φ hφ).1 (k + 1) (by omega) | |
| 33 | + have hJ := (convolution_integer_values φ hφ).2.1 (k + 1) (by omega) | |
| 34 | + simp only [signedConvolution, hC, hJ, mul_zero, sub_self, ofReal_zero] | |
| 35 | + | |
| 36 | +lemma density_signedConvolution_mellin_initial (N : ℕ) (hN : Even N) (hNpos : 0 < N) | |
| 37 | + (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (σ : ℝ) (hσ : 1 < σ) : | |
| 38 | + Integrable (fun t : ℝ => densitySeries N (line σ t) * | |
| 39 | + mellin (fun y => (signedConvolution φ y : ℂ)) (line σ t)) ∧ | |
| 40 | + verticalMellin σ (fun s => densitySeries N s * mellin (fun y => (signedConvolution φ y : ℂ)) s) = | |
| 41 | + -(modelMass φ * singularSeries N : ℝ) := by | |
| 42 | + have hσ0 : 0 < σ := lt_trans zero_lt_one hσ | |
| 43 | + have hb := density_sampling_coeff_summable N hN hNpos σ hσ | |
| 44 | + have hi := finite_mellin_inversion_sum_integrable (signedConvolution φ) | |
| 45 | + ((signedConvolution_contDiff φ hφ).of_le (by norm_num)) (hφ.lower-hφ.upper) (2*hφ.upper) | |
| 46 | + (signedConvolution_support φ hφ) σ hσ0 | |
| 47 | + (fun k : ℕ => (k + 1 : ℕ)) (fun k => (singularSeries ((k + 1) * N) : ℂ)) | |
| 48 | + (fun k => by positivity) hb | |
| 49 | + have hv := finite_mellin_inversion_hasSum (signedConvolution φ) | |
| 50 | + ((signedConvolution_contDiff φ hφ).of_le (by norm_num)) (hφ.lower-hφ.upper) (2*hφ.upper) | |
| 51 | + (signedConvolution_support φ hφ) σ hσ0 | |
| 52 | + (fun k : ℕ => (k + 1 : ℕ)) (fun k => (singularSeries ((k + 1) * N) : ℂ)) | |
| 53 | + (fun k => by positivity) hb | |
| 54 | + constructor | |
| 55 | + · apply hi.congr | |
| 56 | + filter_upwards [] with t | |
| 57 | + simpa only [Complex.ofReal_natCast] using density_mellin_integrand_series N hN hNpos | |
| 58 | + (signedConvolution φ) (line σ t) (by simpa [line] using hσ) | |
| 59 | + · rw [← signedConvolution_integer_sample N φ hφ, hv.tsum_eq] | |
| 60 | + unfold verticalMellin | |
| 61 | + congr 1 | |
| 62 | + apply integral_congr_ae | |
| 63 | + filter_upwards [] with t | |
| 64 | + exact (density_mellin_integrand_series N hN hNpos (signedConvolution φ) (line σ t) | |
| 65 | + (by simpa [line] using hσ)).symm | |
| 66 | + | |
| 67 | +end ConditionalGoldbach.FiniteModel | |
+44 −0 ConditionalGoldbach/Proofs/FiniteModelShift.lean added View file
| @@ -0,0 +1,44 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteModelRemovable | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinModelShift | |
| 5 | + | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach.FiniteModel | |
| 13 | + | |
| 14 | +lemma regularizedModelMellin_uniform_decay (N : ℕ) (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) | |
| 15 | + (a b : ℝ) (ha : 0 < a) (hab : a ≤ b) (D : ℝ) (hD : 0 ≤ D) | |
| 16 | + (hgrowth : ∀ w : ℂ, w.re ∈ Icc a b → 1 ≤ |w.im| → | |
| 17 | + ‖continuedDensity N w‖ ≤ D * (1 + |w.im|)) : | |
| 18 | + ∃ C : ℝ, 0 < C ∧ ∀ x ∈ Icc a b, ∀ t : ℝ, | |
| 19 | + ‖regularizedModelMellin N φ (line x t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2 := by | |
| 20 | + obtain ⟨B, hB, hdec⟩ := signedConvolution_mellin_decay φ hφ a b ha hab | |
| 21 | + exact regularized_mellin_product_decay (regularizedModelMellin N φ) (continuedDensity N) | |
| 22 | + (mellin fun y => (signedConvolution φ y : ℂ)) a b | |
| 23 | + (fun w hw => regularizedModelMellin_differentiableAt N φ hφ (ha.trans_le hw.1)) | |
| 24 | + (fun w hw => regularizedModelMellin_eq N φ hφ hw) D B hD hB.le hgrowth hdec | |
| 25 | + | |
| 26 | +lemma model_single_mellin_shift_of_growth (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 27 | + (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (a b : ℝ) (ha : 0 < a) (hab : a ≤ b) | |
| 28 | + (hb : 1 < b) (D : ℝ) (hD : 0 ≤ D) | |
| 29 | + (hgrowth : ∀ w : ℂ, w.re ∈ Icc a b → 1 ≤ |w.im| → | |
| 30 | + ‖continuedDensity N w‖ ≤ D * (1 + |w.im|)) : | |
| 31 | + Integrable (fun t : ℝ => continuedDensity N (line a t) * | |
| 32 | + mellin (fun y => (signedConvolution φ y : ℂ)) (line a t)) ∧ | |
| 33 | + verticalMellin a (fun w => continuedDensity N w * | |
| 34 | + mellin (fun y => (signedConvolution φ y : ℂ)) w) = | |
| 35 | + -(modelMass φ * singularSeries N : ℝ) := by | |
| 36 | + obtain ⟨C, _, hbound⟩ := regularizedModelMellin_uniform_decay N φ hφ a b ha hab D hD hgrowth | |
| 37 | + obtain ⟨hint, hshift⟩ := verticalMellin_shift_of_ae_eq (regularizedModelMellin N φ) | |
| 38 | + (fun w => continuedDensity N w * mellin (fun y => (signedConvolution φ y : ℂ)) w) | |
| 39 | + a b C hab | |
| 40 | + (fun w hw => regularizedModelMellin_differentiableAt N φ hφ (ha.trans_le hw.1)) | |
| 41 | + hbound (regularizedModelMellin_line_ae N φ hφ a) | |
| 42 | + exact ⟨hint, hshift.trans (regularizedModelMellin_initial N hN hpos φ hφ b hb).2⟩ | |
| 43 | + | |
| 44 | +end ConditionalGoldbach.FiniteModel | |
+24 −0 ConditionalGoldbach/Proofs/FiniteModelSingle.lean added View file
| @@ -0,0 +1,24 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteModelShift | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinModelSingle | |
| 5 | + | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach.FiniteModel | |
| 13 | + | |
| 14 | +lemma model_single_mellin (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 15 | + (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (a : ℝ) (ha : 0 < a) : | |
| 16 | + Integrable (fun t : ℝ => continuedDensity N (line a t) * | |
| 17 | + mellin (fun y => (signedConvolution φ y : ℂ)) (line a t)) ∧ | |
| 18 | + verticalMellin a (fun w => continuedDensity N w * | |
| 19 | + mellin (fun y => (signedConvolution φ y : ℂ)) w) = | |
| 20 | + -(modelMass φ * singularSeries N : ℝ) := by | |
| 21 | + obtain ⟨b, D, hab, hb, hD, hgrowth⟩ := exists_mellin_comparison_line N a ha | |
| 22 | + exact model_single_mellin_shift_of_growth N hN hpos φ hφ a b ha hab hb D hD hgrowth | |
| 23 | + | |
| 24 | +end ConditionalGoldbach.FiniteModel | |
+105 −0 ConditionalGoldbach/Proofs/FiniteQuadratic.lean added View file
| @@ -0,0 +1,105 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.FiniteFunctional | |
| 4 | +public import ConditionalGoldbach.Proofs.QuadraticIdentity | |
| 5 | + | |
| 6 | +/-! Recovery of a kernel quadratic form from any represented finite-smooth Mellin functional. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma real_mellin_conj (f : ℝ → ℝ) (s : ℂ) : | |
| 16 | + mellin (fun u => (f u : ℂ)) (conj s) = conj (mellin (fun u => (f u : ℂ)) s) := by | |
| 17 | + unfold mellin | |
| 18 | + rw [← integral_conj] | |
| 19 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 20 | + intro u hu | |
| 21 | + simp only [smul_eq_mul,map_mul,conj_ofReal] | |
| 22 | + rw [← ofReal_cpow_conj u hu,map_sub,map_one] | |
| 23 | + | |
| 24 | +lemma finite_mellin_coefficient_conj (N : ℕ) (hN : 0 < N) (f : ℝ → ℝ) (s : ℂ) : | |
| 25 | + (N : ℂ)^conj s * mellin (fun u => (f u : ℂ)) (conj s) * (1+conj s) = | |
| 26 | + conj ((N : ℂ)^s*mellin (fun u => (f u : ℂ)) s*(1+s)) := by | |
| 27 | + rw [← ofReal_natCast,ofReal_cpow_conj (N : ℝ) (by exact_mod_cast hN),real_mellin_conj] | |
| 28 | + simp only [map_mul,map_add,map_one] | |
| 29 | + | |
| 30 | +lemma finite_functional_kernel_recovery {a : ℝ} (N : ℕ) (hN : 0 < N) | |
| 31 | + (f : ℝ → ℝ) (σ : ℝ) (hσ : σ ∈ Ioo a beta) | |
| 32 | + (v : HardySpace a beta) | |
| 33 | + (hv : ∀ ψ, finiteFunctionalValue N f σ ψ = paperInner ψ v) | |
| 34 | + (T : HardySpace a beta →L[ℂ] HardySpace a beta) (K : ℂ → ℂ → ℂ) | |
| 35 | + (hK : ∀ s z : ℂ, s ∈ strip a beta → z ∈ strip a beta → | |
| 36 | + K s z = paperInner (T (evaluationVector z)) (evaluationVector s)) | |
| 37 | + (s : ℂ) (hs : s ∈ strip a beta) : | |
| 38 | + fourierLaplace (T v) s = verticalMellin σ (fun z => | |
| 39 | + (N : ℂ)^z*mellin (fun u => (f u : ℂ)) z*(1+z)*K s (conj z)) := by | |
| 40 | + have hstart : fourierLaplace (T v) s = | |
| 41 | + conj (finiteFunctionalValue N f σ (T.adjoint (evaluationVector s))) := by | |
| 42 | + rw [hv,evaluationVector_spec hs] | |
| 43 | + unfold paperInner | |
| 44 | + rw [inner_conj_symm] | |
| 45 | + exact (T.adjoint_inner_left v (evaluationVector s)).symm | |
| 46 | + rw [hstart,finiteFunctionalValue,verticalMellin_conj] | |
| 47 | + unfold verticalMellin | |
| 48 | + congr 1 | |
| 49 | + apply integral_congr_ae | |
| 50 | + filter_upwards [] with t | |
| 51 | + let z := line σ t | |
| 52 | + have hz : conj z ∈ strip a beta := by simpa [z,strip,line] using hσ | |
| 53 | + change conj ((N : ℂ)^conj z*mellin (fun u => (f u : ℂ)) (conj z)*(1+conj z)* | |
| 54 | + fourierLaplace (T.adjoint (evaluationVector s)) (conj z)) = _ | |
| 55 | + rw [map_mul,finite_mellin_coefficient_conj N hN f z,conj_conj, | |
| 56 | + evaluationVector_spec hz,hK s (conj z) hs hz] | |
| 57 | + congr 1 | |
| 58 | + unfold paperInner | |
| 59 | + rw [inner_conj_symm] | |
| 60 | + exact T.adjoint_inner_left (evaluationVector (conj z)) (evaluationVector s) | |
| 61 | + | |
| 62 | +lemma finite_quadratic_residual_integral {a : ℝ} (N : ℕ) [NeZero N] | |
| 63 | + (f : ℝ → ℝ) (σ : ℝ) (hσ : σ ∈ Ioo a beta) (hσ0 : 0 < σ) | |
| 64 | + (v : HardySpace a beta) | |
| 65 | + (hv : ∀ ψ, finiteFunctionalValue N f σ ψ = paperInner ψ v) | |
| 66 | + (T : HardySpace a beta →L[ℂ] HardySpace a beta) | |
| 67 | + (hK : ∀ s z : ℂ, s ∈ strip a beta → z ∈ strip a beta → | |
| 68 | + weightedKernel N s z = paperInner (T (evaluationVector z)) (evaluationVector s)) : | |
| 69 | + paperInner (T v) v = verticalMellin σ (fun s => verticalMellin σ (fun z => | |
| 70 | + (N : ℂ)^(s+z)*mellin (fun u => (f u : ℂ)) s*mellin (fun u => (f u : ℂ)) z* | |
| 71 | + residual N s z)) := by | |
| 72 | + have hN : 0 < N := Nat.pos_of_ne_zero (NeZero.ne N) | |
| 73 | + have hNz : (N : ℂ) ≠ 0 := by exact_mod_cast hN.ne' | |
| 74 | + rw [← hv (T v)] | |
| 75 | + unfold finiteFunctionalValue verticalMellin | |
| 76 | + congr 1 | |
| 77 | + apply integral_congr_ae | |
| 78 | + filter_upwards [] with t | |
| 79 | + let s := line σ t | |
| 80 | + have hs : s ∈ strip a beta := by simpa [s,strip,line] using hσ | |
| 81 | + change (N : ℂ)^s*mellin (fun u => (f u : ℂ)) s*(1+s)*fourierLaplace (T v) s = _ | |
| 82 | + rw [finite_functional_kernel_recovery N hN f σ hσ v hv T (weightedKernel N) hK s hs] | |
| 83 | + unfold verticalMellin | |
| 84 | + rw [mul_left_comm _ ((2*(Real.pi : ℂ))⁻¹),← integral_const_mul] | |
| 85 | + congr 1 | |
| 86 | + apply integral_congr_ae | |
| 87 | + filter_upwards [] with y | |
| 88 | + let z := line σ y | |
| 89 | + have hs0 : 1+s ≠ 0 := by | |
| 90 | + intro h | |
| 91 | + have hr := congrArg Complex.re h | |
| 92 | + simp [s,line] at hr | |
| 93 | + linarith | |
| 94 | + have hz0 : 1+z ≠ 0 := by | |
| 95 | + intro h | |
| 96 | + have hr := congrArg Complex.re h | |
| 97 | + simp [z,line] at hr | |
| 98 | + linarith | |
| 99 | + change (N : ℂ)^s*mellin (fun u => (f u : ℂ)) s*(1+s)* | |
| 100 | + ((N : ℂ)^z*mellin (fun u => (f u : ℂ)) z*(1+z)*weightedKernel N s (conj z)) = _ | |
| 101 | + simp only [weightedKernel,conj_conj] | |
| 102 | + rw [cpow_add _ _ hNz] | |
| 103 | + field_simp; ring | |
| 104 | + | |
| 105 | +end ConditionalGoldbach | |
+80 −0 ConditionalGoldbach/Proofs/GammaDerivativeLimit.lean added View file
| @@ -0,0 +1,80 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.GammaSequenceBounds | |
| 4 | +public import ConditionalGoldbach.Proofs.CauchyBoundedLimit | |
| 5 | + | |
| 6 | +/-! Euler's Gamma products converge also at the level of logarithmic derivatives. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators Topology | |
| 12 | +open Set Complex Metric Filter | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma GammaSeq_deriv_tendsto {s : ℂ} (hs : 0 < s.re) : | |
| 16 | + Tendsto (fun n => deriv (fun z => Complex.GammaSeq z n) s) atTop (𝓝 (deriv Gamma s)) := by | |
| 17 | + let r : ℝ := s.re/2 | |
| 18 | + have hr : 0 < r := by dsimp [r]; positivity | |
| 19 | + have hre : ∀z ∈ closedBall s r, z.re ∈ Icc r (3*s.re/2) := by | |
| 20 | + intro z hz | |
| 21 | + have hh := abs_re_le_norm (z-s) | |
| 22 | + have hh' := Metric.mem_closedBall.mp hz | |
| 23 | + rw [dist_eq_norm] at hh' | |
| 24 | + simp only [sub_re,abs_le] at hh | |
| 25 | + dsimp [r] at * | |
| 26 | + constructor <;> linarith | |
| 27 | + apply deriv_tendsto_of_bounded_circle (fun n z => Complex.GammaSeq z n) Gamma s r | |
| 28 | + (max (Real.Gamma r) (Real.Gamma (3*s.re/2))) hr | |
| 29 | + · filter_upwards [eventually_ne_atTop 0] with n hn | |
| 30 | + intro z hz | |
| 31 | + exact (GammaSeq_differentiableAt (lt_of_lt_of_le hr (hre z hz).1) hn).differentiableWithinAt | |
| 32 | + · intro z hz | |
| 33 | + exact (hasDerivAt_Gamma_of_re_pos (lt_of_lt_of_le hr (hre z hz).1)).differentiableAt.differentiableWithinAt | |
| 34 | + · filter_upwards [eventually_ne_atTop 0] with n hn z hz | |
| 35 | + have hz' := hre z (sphere_subset_closedBall hz) | |
| 36 | + apply (GammaSeq_norm_le_Gamma_re (lt_of_lt_of_le hr hz'.1) hn).trans | |
| 37 | + exact Real.convexOn_Gamma.le_max_of_mem_Icc hr (by change 0 < 3*s.re/2; positivity) hz' | |
| 38 | + · intro z hz | |
| 39 | + exact GammaSeq_tendsto_Gamma z | |
| 40 | + | |
| 41 | +lemma GammaSeq_logDeriv_tendsto {s : ℂ} (hs : 0 < s.re) : | |
| 42 | + Tendsto (fun n => logDeriv (fun z => Complex.GammaSeq z n) s) atTop | |
| 43 | + (𝓝 (logDeriv Gamma s)) := | |
| 44 | + (GammaSeq_deriv_tendsto hs).div (GammaSeq_tendsto_Gamma s) (Gamma_ne_zero_of_re_pos hs) | |
| 45 | + | |
| 46 | +lemma GammaSeq_logDeriv {s : ℂ} (hs : 0 < s.re) {n : ℕ} (hn : n ≠ 0) : | |
| 47 | + logDeriv (fun z => Complex.GammaSeq z n) s = | |
| 48 | + Complex.log (n:ℂ) - ∑ j ∈ Finset.range (n+1), 1/(s+(j:ℂ)) := by | |
| 49 | + have hnC : (n:ℂ) ≠ 0 := by exact_mod_cast hn | |
| 50 | + have hpn : ∀j : ℕ, s+(j:ℂ) ≠ 0 := by | |
| 51 | + intro j he | |
| 52 | + have hh := congrArg Complex.re he | |
| 53 | + simp only [add_re,natCast_re,zero_re] at hh | |
| 54 | + have hj : (0:ℝ) ≤ j := Nat.cast_nonneg j | |
| 55 | + linarith | |
| 56 | + let P : ℂ → ℂ := fun z => ∏ j ∈ Finset.range (n+1), (z+(j:ℂ)) | |
| 57 | + have hP : DifferentiableAt ℂ P s := | |
| 58 | + DifferentiableAt.fun_finsetProd (fun j _ => differentiableAt_id.add_const _) | |
| 59 | + have hPn : P s ≠ 0 := Finset.prod_ne_zero_iff.mpr (fun j _ => hpn j) | |
| 60 | + have hQ := (differentiableAt_id.const_cpow (Or.inl hnC) : DifferentiableAt ℂ (fun z : ℂ => (n:ℂ)^z) s) | |
| 61 | + have hQn : (n:ℂ)^s ≠ 0 := Complex.cpow_ne_zero_iff.mpr (Or.inl hnC) | |
| 62 | + have hfact : (n.factorial:ℂ) ≠ 0 := by exact_mod_cast Nat.factorial_ne_zero n | |
| 63 | + change logDeriv (fun z => ((n:ℂ)^z*(n.factorial:ℂ))/P z) s = _ | |
| 64 | + rw [logDeriv_fun_div (f := fun z : ℂ => (n:ℂ)^z*(n.factorial:ℂ)) (g := P) s (mul_ne_zero hQn hfact) hPn (hQ.mul_const _) hP, | |
| 65 | + logDeriv_fun_mul (f := fun z : ℂ => (n:ℂ)^z) (g := fun _ : ℂ => (n.factorial:ℂ)) s hQn hfact hQ (differentiableAt_const _)] | |
| 66 | + have hcp : logDeriv (fun z : ℂ => (n:ℂ)^z) s = Complex.log (n:ℂ) := by | |
| 67 | + simpa using logDeriv_cpow_affine (n:ℂ) 1 0 s hnC | |
| 68 | + rw [hcp,logDeriv_const] | |
| 69 | + simp only [Pi.zero_apply,add_zero] | |
| 70 | + congr 1 | |
| 71 | + have hPe : P = ∏ j ∈ Finset.range (n+1), fun z : ℂ => z+(j:ℂ) := by | |
| 72 | + funext z | |
| 73 | + simp [P] | |
| 74 | + rw [hPe] | |
| 75 | + rw [logDeriv_prod (fun j _ => hpn j) (fun j _ => differentiableAt_id.add_const _)] | |
| 76 | + apply Finset.sum_congr rfl | |
| 77 | + intro j hj | |
| 78 | + rw [logDeriv_apply,((hasDerivAt_id' s).add_const (j:ℂ)).deriv] | |
| 79 | + | |
| 80 | +end ConditionalGoldbach | |
+55 −0 ConditionalGoldbach/Proofs/GammaDifference.lean added View file
| @@ -0,0 +1,55 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.GammaDerivativeLimit | |
| 4 | +public import ConditionalGoldbach.Proofs.GammaResolventBounds | |
| 5 | + | |
| 6 | +/-! The absolutely convergent digamma difference series, derived from Euler's Gamma limit. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators Topology | |
| 12 | +open Set Complex Filter | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma Gamma_logDeriv_difference_hasSum {u v : ℂ} (hu : 0 < u.re) (hv : 0 < v.re) : | |
| 16 | + HasSum (fun n : ℕ => 1/(v+(n:ℂ))-1/(u+(n:ℂ))) | |
| 17 | + (logDeriv Gamma u-logDeriv Gamma v) := by | |
| 18 | + have hs := (gamma_resolvent_summable_norm hu hv).of_norm | |
| 19 | + have hlim := (GammaSeq_logDeriv_tendsto hu).sub (GammaSeq_logDeriv_tendsto hv) | |
| 20 | + have he : ∀ᶠ n : ℕ in atTop, | |
| 21 | + logDeriv (fun z => GammaSeq z n) u-logDeriv (fun z => GammaSeq z n) v = | |
| 22 | + ∑ j ∈ Finset.range (n+1), (1/(v+(j:ℂ))-1/(u+(j:ℂ))) := by | |
| 23 | + filter_upwards [eventually_ne_atTop 0] with n hn | |
| 24 | + rw [GammaSeq_logDeriv hu hn,GammaSeq_logDeriv hv hn,Finset.sum_sub_distrib] | |
| 25 | + ring | |
| 26 | + have hsum := hs.hasSum.tendsto_sum_nat.comp (tendsto_add_atTop_nat 1) | |
| 27 | + have heq := tendsto_nhds_unique (hlim.congr' he) hsum | |
| 28 | + simpa only [heq] using hs.hasSum | |
| 29 | + | |
| 30 | +lemma Gamma_logDeriv_difference {u v : ℂ} (hu : 0 < u.re) (hv : 0 < v.re) : | |
| 31 | + logDeriv Gamma u-logDeriv Gamma v = | |
| 32 | + ∑' n : ℕ, (1/(v+(n:ℂ))-1/(u+(n:ℂ))) := | |
| 33 | + (Gamma_logDeriv_difference_hasSum hu hv).tsum_eq.symm | |
| 34 | + | |
| 35 | +lemma Gamma_logDeriv_difference_norm_le {u v : ℂ} | |
| 36 | + (hu : 1/2 ≤ u.re) (hv : 1/2 ≤ v.re) : | |
| 37 | + ‖logDeriv Gamma u-logDeriv Gamma v‖ ≤ 8*‖u-v‖ := by | |
| 38 | + have hu0 : 0 < u.re := lt_of_lt_of_le (by norm_num) hu | |
| 39 | + have hv0 : 0 < v.re := lt_of_lt_of_le (by norm_num) hv | |
| 40 | + have hs := Gamma_logDeriv_difference_hasSum hu0 hv0 | |
| 41 | + apply le_of_tendsto hs.tendsto_sum_nat.norm | |
| 42 | + apply Filter.Eventually.of_forall | |
| 43 | + intro n | |
| 44 | + calc | |
| 45 | + ‖∑ j ∈ Finset.range n, (1/(v+(j:ℂ))-1/(u+(j:ℂ)))‖ ≤ | |
| 46 | + ∑ j ∈ Finset.range n, ‖1/(v+(j:ℂ))-1/(u+(j:ℂ))‖ := norm_sum_le _ _ | |
| 47 | + _ ≤ ∑ j ∈ Finset.range n, (‖u-v‖/(1/2:ℝ)^2)*(1/((j:ℝ)+1)^2) := | |
| 48 | + Finset.sum_le_sum (fun j _ => gamma_resolvent_norm_bound u v (1/2) (by norm_num) (by norm_num) hu hv j) | |
| 49 | + _ = (‖u-v‖/(1/2:ℝ)^2)*(∑ j ∈ Finset.range n, 1/((j:ℝ)+1)^2) := by rw [Finset.mul_sum] | |
| 50 | + _ ≤ (‖u-v‖/(1/2:ℝ)^2)*2 := by | |
| 51 | + gcongr | |
| 52 | + exact (sum_one_div_nat_add_one_sq_le n).trans (sub_le_self _ (by positivity)) | |
| 53 | + _ = _ := by ring | |
| 54 | + | |
| 55 | +end ConditionalGoldbach | |
+79 −0 ConditionalGoldbach/Proofs/GammaQuotientBound.lean added View file
| @@ -0,0 +1,79 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.ModelContinuation | |
| 4 | + | |
| 5 | +/-! Uniform boundedness of the Gamma quotient from the convergent Beta integral. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex | |
| 11 | +open scoped Topology ComplexConjugate | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma betaIntegral_norm_bound_lower_re {p q : ℝ} (hp : 0 < p) (hq : 0 < q) | |
| 15 | + (u v : ℂ) (hu : p ≤ u.re) (hv : q ≤ v.re) : | |
| 16 | + ‖betaIntegral u v‖ ≤ | |
| 17 | + ∫ t : ℝ in 0..1, ‖(t : ℂ) ^ ((p : ℂ) - 1) * (1 - (t : ℂ)) ^ ((q : ℂ) - 1)‖ := by | |
| 18 | + calc | |
| 19 | + ‖betaIntegral u v‖ ≤ | |
| 20 | + ∫ t : ℝ in 0..1, ‖(t : ℂ) ^ (u - 1) * (1 - (t : ℂ)) ^ (v - 1)‖ := | |
| 21 | + intervalIntegral.norm_integral_le_integral_norm (by norm_num) | |
| 22 | + _ ≤ _ := by | |
| 23 | + apply intervalIntegral.integral_mono_on_of_le_Ioo (by norm_num) | |
| 24 | + (Complex.betaIntegral_convergent (hp.trans_le hu) (hq.trans_le hv)).norm | |
| 25 | + (Complex.betaIntegral_convergent (by simpa using hp) (by simpa using hq)).norm | |
| 26 | + intro t ht | |
| 27 | + rw [norm_mul, norm_mul] | |
| 28 | + have h1 : 0 < 1 - t := sub_pos.mpr ht.2 | |
| 29 | + have he : 1 - (t : ℂ) = ((1 - t : ℝ) : ℂ) := by push_cast; rfl | |
| 30 | + rw [he, Complex.norm_cpow_eq_rpow_re_of_pos ht.1, | |
| 31 | + Complex.norm_cpow_eq_rpow_re_of_pos ht.1, | |
| 32 | + Complex.norm_cpow_eq_rpow_re_of_pos h1, | |
| 33 | + Complex.norm_cpow_eq_rpow_re_of_pos h1] | |
| 34 | + simp only [Complex.sub_re, Complex.one_re, Complex.ofReal_re] | |
| 35 | + exact mul_le_mul (Real.rpow_le_rpow_of_exponent_ge ht.1 ht.2.le (by linarith)) | |
| 36 | + (Real.rpow_le_rpow_of_exponent_ge h1 (by linarith [ht.1]) (by linarith)) | |
| 37 | + (Real.rpow_nonneg h1.le _) (Real.rpow_nonneg ht.1.le _) | |
| 38 | + | |
| 39 | +lemma gammaQuotient_norm_beta (s : ℂ) (hs : 0 < s.re) (hs' : s.re < 3 / 2) : | |
| 40 | + ‖gammaQuotient s‖ = | |
| 41 | + ‖betaIntegral ((3 / 2 - conj s) / 2) (s.re : ℂ)‖ * ‖(Gamma (s.re : ℂ))⁻¹‖ := by | |
| 42 | + have hu : 0 < ((3 / 2 - conj s) / 2).re := by simp; linarith | |
| 43 | + have hv : 0 < (s.re : ℂ).re := hs | |
| 44 | + have he : (3 / 2 - conj s) / 2 + (s.re : ℂ) = (3 / 2 + s) / 2 := by | |
| 45 | + apply Complex.ext <;> simp; ring | |
| 46 | + rw [Complex.betaIntegral_eq_Gamma_mul_div _ _ hu hv, he, ← norm_mul] | |
| 47 | + have hΓ : Gamma (s.re : ℂ) ≠ 0 := Complex.Gamma_ne_zero_of_re_pos hs | |
| 48 | + rw [show Gamma ((3 / 2 - conj s) / 2) * Gamma (s.re : ℂ) / | |
| 49 | + Gamma ((3 / 2 + s) / 2) * (Gamma (s.re : ℂ))⁻¹ = | |
| 50 | + Gamma ((3 / 2 - conj s) / 2) / Gamma ((3 / 2 + s) / 2) by field_simp] | |
| 51 | + rw [gammaQuotient, norm_div, norm_div] | |
| 52 | + congr 1 | |
| 53 | + have hc : (3 / 2 - conj s) / 2 = conj ((3 / 2 - s) / 2) := by simp only [map_div₀, map_sub, map_ofNat] | |
| 54 | + rw [hc, Complex.Gamma_conj, Complex.norm_conj] | |
| 55 | + | |
| 56 | +lemma gammaQuotient_uniform_bound {a b : ℝ} (ha : 0 < a) (hb : b < 3 / 2) : | |
| 57 | + ∃ C : ℝ, 0 ≤ C ∧ ∀ s : ℂ, s.re ∈ Icc a b → ‖gammaQuotient s‖ ≤ C := by | |
| 58 | + let p : ℝ := (3 / 2 - b) / 2 | |
| 59 | + have hp : 0 < p := by dsimp [p]; linarith | |
| 60 | + let A : ℝ := ∫ t : ℝ in 0..1, | |
| 61 | + ‖(t : ℂ) ^ ((p : ℂ) - 1) * (1 - (t : ℂ)) ^ ((a : ℂ) - 1)‖ | |
| 62 | + have hA : 0 ≤ A := intervalIntegral.integral_nonneg (by norm_num) (fun _ _ => norm_nonneg _) | |
| 63 | + have hc : Continuous (fun x : ℝ => (Gamma (x : ℂ))⁻¹) := | |
| 64 | + Complex.differentiable_one_div_Gamma.continuous.comp Complex.continuous_ofReal | |
| 65 | + obtain ⟨D, hD⟩ := (isCompact_Icc : IsCompact (Icc a b)).exists_bound_of_continuousOn hc.continuousOn | |
| 66 | + refine ⟨A * max D 0, mul_nonneg hA (le_max_right _ _), ?_⟩ | |
| 67 | + intro s hs | |
| 68 | + rw [gammaQuotient_norm_beta s (ha.trans_le hs.1) (hs.2.trans_lt hb)] | |
| 69 | + apply mul_le_mul | |
| 70 | + · apply betaIntegral_norm_bound_lower_re hp ha | |
| 71 | + · dsimp [p] | |
| 72 | + simp | |
| 73 | + linarith [hs.2] | |
| 74 | + · exact hs.1 | |
| 75 | + · exact (hD s.re hs).trans (le_max_left _ _) | |
| 76 | + · exact norm_nonneg _ | |
| 77 | + · exact hA | |
| 78 | + | |
| 79 | +end ConditionalGoldbach | |
+68 −0 ConditionalGoldbach/Proofs/GammaResolventBounds.lean added View file
| @@ -0,0 +1,68 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterGammaFactor | |
| 4 | +public import Mathlib.Analysis.PSeries | |
| 5 | + | |
| 6 | +/-! Summable quantitative bounds for differences of Gamma resolvents. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators Topology | |
| 12 | +open Set Complex Filter | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma gamma_resolvent_norm_bound (u v : ℂ) (a : ℝ) (ha : 0 < a) (ha1 : a ≤ 1) | |
| 16 | + (hu : a ≤ u.re) (hv : a ≤ v.re) (n : ℕ) : | |
| 17 | + ‖1/(v+(n:ℂ))-1/(u+(n:ℂ))‖ ≤ (‖u-v‖/a^2) * (1/((n:ℝ)+1)^2) := by | |
| 18 | + have hn : (0:ℝ) ≤ n := Nat.cast_nonneg n | |
| 19 | + have hual : a*((n:ℝ)+1) ≤ ‖u+(n:ℂ)‖ := by | |
| 20 | + have hh := Complex.re_le_norm (u+(n:ℂ)) | |
| 21 | + simp only [add_re,natCast_re] at hh | |
| 22 | + nlinarith | |
| 23 | + have hval : a*((n:ℝ)+1) ≤ ‖v+(n:ℂ)‖ := by | |
| 24 | + have hh := Complex.re_le_norm (v+(n:ℂ)) | |
| 25 | + simp only [add_re,natCast_re] at hh | |
| 26 | + nlinarith | |
| 27 | + have hun : u+(n:ℂ) ≠ 0 := norm_pos_iff.mp (lt_of_lt_of_le (by positivity) hual) | |
| 28 | + have hvn : v+(n:ℂ) ≠ 0 := norm_pos_iff.mp (lt_of_lt_of_le (by positivity) hval) | |
| 29 | + have he : 1/(v+(n:ℂ))-1/(u+(n:ℂ)) = (u-v)/((v+(n:ℂ))*(u+(n:ℂ))) := by | |
| 30 | + field_simp | |
| 31 | + ring | |
| 32 | + rw [he,norm_div,norm_mul] | |
| 33 | + have hden : a^2*((n:ℝ)+1)^2 ≤ ‖v+(n:ℂ)‖*‖u+(n:ℂ)‖ := by | |
| 34 | + nlinarith [mul_le_mul hval hual (by positivity : 0 ≤ a*((n:ℝ)+1)) (norm_nonneg (v+(n:ℂ)))] | |
| 35 | + calc | |
| 36 | + _ ≤ ‖u-v‖/(a^2*((n:ℝ)+1)^2) := div_le_div_of_nonneg_left (norm_nonneg _) (by positivity) hden | |
| 37 | + _ = _ := by rw [div_mul_eq_div_div]; ring | |
| 38 | + | |
| 39 | +lemma gamma_resolvent_summable_norm {u v : ℂ} (hu : 0 < u.re) (hv : 0 < v.re) : | |
| 40 | + Summable (fun n : ℕ => ‖1/(v+(n:ℂ))-1/(u+(n:ℂ))‖) := by | |
| 41 | + let a : ℝ := min 1 (min u.re v.re) | |
| 42 | + have ha : 0 < a := lt_min zero_lt_one (lt_min hu hv) | |
| 43 | + have hs : Summable (fun n : ℕ => 1/((n:ℝ)+1)^2) := by | |
| 44 | + simpa only [Nat.cast_add,Nat.cast_one] using | |
| 45 | + (summable_nat_add_iff (f := fun n : ℕ => 1/(n:ℝ)^2) 1).mpr | |
| 46 | + (Real.summable_one_div_nat_pow.mpr (by norm_num : 1 < (2:ℕ))) | |
| 47 | + exact (hs.mul_left (‖u-v‖/a^2)).of_nonneg_of_le (fun _ => norm_nonneg _) | |
| 48 | + (gamma_resolvent_norm_bound u v a ha (min_le_left _ _) | |
| 49 | + ((min_le_right _ _).trans (min_le_left _ _)) | |
| 50 | + ((min_le_right _ _).trans (min_le_right _ _))) | |
| 51 | + | |
| 52 | +lemma sum_one_div_nat_add_one_sq_le (n : ℕ) : | |
| 53 | + ∑ j ∈ Finset.range n, 1/((j:ℝ)+1)^2 ≤ 2-2/((n:ℝ)+1) := by | |
| 54 | + induction n with | |
| 55 | + | zero => norm_num | |
| 56 | + | succ n ih => | |
| 57 | + rw [Finset.sum_range_succ] | |
| 58 | + push_cast | |
| 59 | + have hn : (0:ℝ) ≤ n := Nat.cast_nonneg n | |
| 60 | + have hstep : 1/((n:ℝ)+1)^2 ≤ 2/((n:ℝ)+1)-2/((n:ℝ)+2) := by | |
| 61 | + apply (div_le_iff₀ (by positivity : 0 < ((n:ℝ)+1)^2)).mpr | |
| 62 | + field_simp | |
| 63 | + nlinarith | |
| 64 | + have he : (n:ℝ)+1+1 = (n:ℝ)+2 := by ring | |
| 65 | + rw [he] | |
| 66 | + linarith | |
| 67 | + | |
| 68 | +end ConditionalGoldbach | |
+70 −0 ConditionalGoldbach/Proofs/GammaSequenceBounds.lean added View file
| @@ -0,0 +1,70 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterGammaFactor | |
| 4 | +public import Mathlib.Analysis.SpecialFunctions.Gamma.BohrMollerup | |
| 5 | +public import Mathlib.Analysis.SpecialFunctions.Gamma.Beta | |
| 6 | + | |
| 7 | +/-! Uniform majorants for Euler's finite Gamma products. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators Topology | |
| 13 | +open Set Complex Filter | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +lemma real_GammaSeq_le_Gamma {x : ℝ} (hx : 0 < x) {n : ℕ} (hn : n ≠ 0) : | |
| 17 | + Real.GammaSeq x n ≤ Real.Gamma x := by | |
| 18 | + have hnp : (0 : ℝ) < n := by exact_mod_cast Nat.pos_of_ne_zero hn | |
| 19 | + have hf : ∀ {y : ℝ}, 0 < y → (Real.log ∘ Real.Gamma) (y+1) = | |
| 20 | + (Real.log ∘ Real.Gamma) y + Real.log y := by | |
| 21 | + intro y hy | |
| 22 | + simp only [Function.comp_apply, Real.Gamma_add_one hy.ne', | |
| 23 | + Real.log_mul hy.ne' (Real.Gamma_pos_of_pos hy).ne'] | |
| 24 | + ring | |
| 25 | + have hb := Real.BohrMollerup.ge_logGammaSeq Real.convexOn_log_Gamma hf hx hn | |
| 26 | + have hp : 0 < ∏ j ∈ Finset.range (n+1), (x+(j:ℝ)) := | |
| 27 | + Finset.prod_pos (fun j _ => by positivity) | |
| 28 | + have hs : 0 < Real.GammaSeq x n := by | |
| 29 | + unfold Real.GammaSeq | |
| 30 | + exact div_pos (mul_pos (Real.rpow_pos_of_pos hnp _) (by positivity)) hp | |
| 31 | + have he : Real.log (Real.GammaSeq x n) = Real.BohrMollerup.logGammaSeq x n := by | |
| 32 | + unfold Real.GammaSeq Real.BohrMollerup.logGammaSeq | |
| 33 | + rw [Real.log_div (mul_ne_zero (Real.rpow_pos_of_pos hnp _).ne' (by positivity)) hp.ne', | |
| 34 | + Real.log_mul (Real.rpow_pos_of_pos hnp _).ne' (by positivity), Real.log_rpow hnp] | |
| 35 | + rw [Real.log_prod (fun j _ => by positivity)] | |
| 36 | + apply (Real.log_le_log_iff hs (Real.Gamma_pos_of_pos hx)).mp | |
| 37 | + simpa [Function.comp_apply, Real.Gamma_one, he] using hb | |
| 38 | + | |
| 39 | +lemma GammaSeq_norm_le_Gamma_re {s : ℂ} (hs : 0 < s.re) {n : ℕ} (hn : n ≠ 0) : | |
| 40 | + ‖Complex.GammaSeq s n‖ ≤ Real.Gamma s.re := by | |
| 41 | + have hnp : (0 : ℝ) < n := by exact_mod_cast Nat.pos_of_ne_zero hn | |
| 42 | + have hp : 0 < ∏ j ∈ Finset.range (n+1), (s.re+(j:ℝ)) := | |
| 43 | + Finset.prod_pos (fun j _ => by positivity) | |
| 44 | + have hb : (∏ j ∈ Finset.range (n+1), (s.re+(j:ℝ))) ≤ | |
| 45 | + ∏ j ∈ Finset.range (n+1), ‖s+(j:ℂ)‖ := by | |
| 46 | + apply Finset.prod_le_prod₀ | |
| 47 | + · intro j hj; positivity | |
| 48 | + · intro j hj | |
| 49 | + simpa using (Complex.re_le_norm (s+(j:ℂ))) | |
| 50 | + apply le_trans (b := Real.GammaSeq s.re n) ?_ (real_GammaSeq_le_Gamma hs hn) | |
| 51 | + unfold Complex.GammaSeq Real.GammaSeq | |
| 52 | + rw [norm_div, norm_mul, norm_prod, ← Complex.ofReal_natCast n, Complex.norm_cpow_eq_rpow_re_of_pos hnp] | |
| 53 | + simp only [Complex.norm_natCast] | |
| 54 | + exact div_le_div_of_nonneg_left (by positivity) hp hb | |
| 55 | + | |
| 56 | +lemma GammaSeq_differentiableAt {s : ℂ} (hs : 0 < s.re) {n : ℕ} (hn : n ≠ 0) : | |
| 57 | + DifferentiableAt ℂ (fun z => Complex.GammaSeq z n) s := by | |
| 58 | + have hd : DifferentiableAt ℂ (fun z : ℂ => (n:ℂ)^z * (n.factorial:ℂ)) s := | |
| 59 | + (differentiableAt_id.const_cpow (Or.inl (by exact_mod_cast hn))).mul_const _ | |
| 60 | + have hp : DifferentiableAt ℂ (fun z : ℂ => ∏ j ∈ Finset.range (n+1), (z+(j:ℂ))) s := | |
| 61 | + DifferentiableAt.fun_finsetProd (fun j _ => differentiableAt_id.add_const _) | |
| 62 | + apply hd.div hp | |
| 63 | + apply Finset.prod_ne_zero_iff.mpr | |
| 64 | + intro j hj he | |
| 65 | + have := congrArg Complex.re he | |
| 66 | + simp only [add_re,natCast_re,zero_re] at this | |
| 67 | + have hj0 : (0 : ℝ) ≤ j := Nat.cast_nonneg j | |
| 68 | + linarith | |
| 69 | + | |
| 70 | +end ConditionalGoldbach | |
+84 −0 ConditionalGoldbach/Proofs/HadamardApproximation.lean added View file
| @@ -0,0 +1,84 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HadamardDiskFactor | |
| 4 | + | |
| 5 | +/-! Quantitative finite-zero approximation to the logarithmic-derivative difference. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open Set Complex Metric Filter MeromorphicOn | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma logarithmicDerivative_disk_approximation (f : ℂ → ℂ) (hf : Differentiable ℂ f) | |
| 15 | + (hf0 : f 0 ≠ 0) (R M : ℝ) (hR : 0 < R) (hM : ‖f 0‖ < M) | |
| 16 | + (hbound : ∀ z ∈ sphere (0 : ℂ) (8*R), ‖f z‖ ≤ M) | |
| 17 | + (u v : ℂ) (hu : u ∈ ball (0 : ℂ) R) (hv : v ∈ ball (0 : ℂ) R) | |
| 18 | + (hfu : f u ≠ 0) (hfv : f v ≠ 0) : | |
| 19 | + let D := divisor f (closedBall (0 : ℂ) (4*R)) | |
| 20 | + let hfin := D.finiteSupport (isCompact_closedBall ..) | |
| 21 | + ‖(logDeriv f u-logDeriv f v) - | |
| 22 | + ∑ ρ ∈ hfin.toFinset, (D ρ : ℂ)*(1/(u-ρ)-1/(v-ρ))‖ ≤ | |
| 23 | + (4*Real.log (M/‖f 0‖)/R^2)*‖u-v‖ := by | |
| 24 | + intro D hfin | |
| 25 | + let P : ℂ → ℂ := ∏ᶠ ρ, (·-ρ)^D ρ | |
| 26 | + have ha : AnalyticOnNhd ℂ f (closedBall (0 : ℂ) (4*R)) := fun z _ => hf.analyticAt z | |
| 27 | + have hD : ∀ z, 0 ≤ D z := ha.divisor_nonneg | |
| 28 | + have hP : Differentiable ℂ P := fun z => (Function.FactorizedRational.analyticAt (hD z)).differentiableAt | |
| 29 | + obtain ⟨g,hg,he,hgn⟩ := entire_disk_factorization f hf hf0 (4*R) | |
| 30 | + have he' (z : ℂ) : f z = P z*g z := he z | |
| 31 | + have hP0 : P 0 ≠ 0 := fun h => hf0 (by rw [he',h,zero_mul]) | |
| 32 | + have hg0 : g 0 ≠ 0 := fun h => hf0 (by rw [he',h,mul_zero]) | |
| 33 | + have hPg0 : ‖f 0‖ = ‖P 0‖*‖g 0‖ := by rw [he',norm_mul] | |
| 34 | + have hPboundary (z : ℂ) (hz : z ∈ sphere (0 : ℂ) (8*R)) : ‖P 0‖ ≤ ‖P z‖ := by | |
| 35 | + apply factorizedRational_norm_lower D hfin hD (4*R) | |
| 36 | + · intro ρ hρ | |
| 37 | + exact mem_closedBall_zero_iff.mp (D.supportWithinDomain hρ) | |
| 38 | + · have hz' := mem_sphere_zero_iff_norm.mp hz | |
| 39 | + linarith | |
| 40 | + have hgBoundary (z : ℂ) (hz : z ∈ sphere (0 : ℂ) (8*R)) : ‖g z‖ ≤ M/‖P 0‖ := by | |
| 41 | + apply (le_div_iff₀ (norm_pos_iff.mpr hP0)).mpr | |
| 42 | + calc | |
| 43 | + _ = ‖P 0‖*‖g z‖ := mul_comm _ _ | |
| 44 | + _ ≤ ‖P z‖*‖g z‖ := mul_le_mul_of_nonneg_right (hPboundary z hz) (norm_nonneg _) | |
| 45 | + _ = ‖f z‖ := by rw [he',norm_mul] | |
| 46 | + _ ≤ M := hbound z hz | |
| 47 | + have hgb (z : ℂ) (hz : z ∈ ball (0 : ℂ) (4*R)) : ‖g z‖ ≤ M/‖P 0‖ := by | |
| 48 | + apply Complex.norm_le_of_forall_mem_frontier_norm_le isBounded_ball | |
| 49 | + (show DiffContOnCl ℂ g (ball (0 : ℂ) (8*R)) from ⟨hg.differentiableOn,hg.continuous.continuousOn⟩) | |
| 50 | + · rw [frontier_ball (0 : ℂ) (by linarith : (8*R) ≠ 0)] | |
| 51 | + exact hgBoundary | |
| 52 | + · rw [closure_ball (0 : ℂ) (by linarith : (8*R) ≠ 0)] | |
| 53 | + exact mem_closedBall_zero_iff.mpr (by have hh := mem_ball_zero_iff.mp hz; linarith) | |
| 54 | + obtain ⟨q,hq0,hqd,hqe⟩ := zero_free_disk_log g (4*R) (by linarith) | |
| 55 | + (fun z _ => hg.analyticAt z) (fun z hz => hgn z (ball_subset_closedBall hz)) | |
| 56 | + have hqDiff : DifferentiableOn ℂ q (ball (0 : ℂ) (4*R)) := | |
| 57 | + fun z hz => (hqd z hz).differentiableAt.differentiableWithinAt | |
| 58 | + have hq : AnalyticOnNhd ℂ q (ball (0 : ℂ) (4*R)) := hqDiff.analyticOnNhd isOpen_ball | |
| 59 | + have hL : 0 < Real.log (M/‖f 0‖) := Real.log_pos ((one_lt_div (norm_pos_iff.mpr hf0)).mpr hM) | |
| 60 | + have hqBound (z : ℂ) (hz : z ∈ ball (0 : ℂ) (4*R)) : (q z).re ≤ Real.log (M/‖f 0‖) := by | |
| 61 | + have hh := logarithm_re_le_of_bounds g q (M/‖P 0‖) ‖g 0‖ (norm_pos_iff.mpr hg0) le_rfl z | |
| 62 | + (hgn z (ball_subset_closedBall hz)) (hgb z hz) (hqe z hz) | |
| 63 | + simpa only [div_div, ← hPg0] using hh | |
| 64 | + have hvar := logarithm_derivative_variation q R (Real.log (M/‖f 0‖)) hR hL hq hq0 hqBound u v hu hv | |
| 65 | + have hu4 : u ∈ ball (0 : ℂ) (4*R) := ball_subset_ball (by linarith) hu | |
| 66 | + have hv4 : v ∈ ball (0 : ℂ) (4*R) := ball_subset_ball (by linarith) hv | |
| 67 | + rw [(hqd u hu4).deriv,(hqd v hv4).deriv] at hvar | |
| 68 | + have huP : P u ≠ 0 := fun h => hfu (by rw [he',h,zero_mul]) | |
| 69 | + have hvP : P v ≠ 0 := fun h => hfv (by rw [he',h,zero_mul]) | |
| 70 | + have hfEq : f = P*g := funext he' | |
| 71 | + have hdu := logDeriv_mul u huP (hgn u (ball_subset_closedBall hu4)) (hP u) (hg u) | |
| 72 | + have hdv := logDeriv_mul v hvP (hgn v (ball_subset_closedBall hv4)) (hP v) (hg v) | |
| 73 | + rw [← hfEq,factorizedRational_logDeriv D hfin hD u huP] at hdu | |
| 74 | + rw [← hfEq,factorizedRational_logDeriv D hfin hD v hvP] at hdv | |
| 75 | + have heq : (logDeriv f u-logDeriv f v) - | |
| 76 | + ∑ ρ ∈ hfin.toFinset, (D ρ : ℂ)*(1/(u-ρ)-1/(v-ρ)) = deriv g u/g u-deriv g v/g v := by | |
| 77 | + simp_rw [mul_sub,mul_one_div,Finset.sum_sub_distrib] | |
| 78 | + rw [hdu,hdv] | |
| 79 | + change (_+deriv g u/g u)-(_+deriv g v/g v)-(_-_) = _ | |
| 80 | + ring | |
| 81 | + rw [heq] | |
| 82 | + exact hvar | |
| 83 | + | |
| 84 | +end ConditionalGoldbach | |
+43 −0 ConditionalGoldbach/Proofs/HadamardDiskFactor.lean added View file
| @@ -0,0 +1,43 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HadamardFactors | |
| 4 | + | |
| 5 | +/-! Remove exactly the zeros in a disk, retaining an entire quotient and correct point values. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open Set Complex Metric Filter MeromorphicOn | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma entire_disk_factorization (f : ℂ → ℂ) (hf : Differentiable ℂ f) (hf0 : f 0 ≠ 0) | |
| 15 | + (r : ℝ) : | |
| 16 | + ∃ g : ℂ → ℂ, Differentiable ℂ g ∧ | |
| 17 | + (∀ z, f z = (∏ᶠ u, (·-u)^(divisor f (closedBall 0 r) u)) z * g z) ∧ | |
| 18 | + (∀ z ∈ closedBall (0 : ℂ) r, g z ≠ 0) := by | |
| 19 | + let D := divisor f (closedBall (0 : ℂ) r) | |
| 20 | + have ha : AnalyticOnNhd ℂ f (closedBall (0 : ℂ) r) := fun z _ => hf.analyticAt z | |
| 21 | + have hfin : D.support.Finite := D.finiteSupport (isCompact_closedBall ..) | |
| 22 | + have hD : ∀ z, 0 ≤ D z := ha.divisor_nonneg | |
| 23 | + have hDeq (z : ℂ) (hz : z ∈ closedBall (0 : ℂ) r) : | |
| 24 | + (D z : WithTop ℤ) = meromorphicOrderAt f z := by | |
| 25 | + change ((divisor f (closedBall (0 : ℂ) r) z : ℤ) : WithTop ℤ) = _ | |
| 26 | + rw [ha.meromorphicOn.divisor_apply hz] | |
| 27 | + lift meromorphicOrderAt f z to ℤ using entire_order_ne_top f hf hf0 z with n hn | |
| 28 | + simp | |
| 29 | + have hord (z : ℂ) : (D z : WithTop ℤ) ≤ meromorphicOrderAt f z := by | |
| 30 | + by_cases hz : z ∈ closedBall (0 : ℂ) r | |
| 31 | + · exact (hDeq z hz).le | |
| 32 | + · rw [D.apply_eq_zero_of_notMem hz,WithTop.coe_zero] | |
| 33 | + exact (hf.analyticAt z).meromorphicOrderAt_nonneg | |
| 34 | + obtain ⟨g,hg,he,hgo⟩ := entire_factorized_quotient f hf hf0 D hfin hD hord | |
| 35 | + refine ⟨g,hg,he,?_⟩ | |
| 36 | + intro z hz | |
| 37 | + apply (hg.analyticAt z).meromorphicNFAt.meromorphicOrderAt_eq_zero_iff.mp | |
| 38 | + rw [hgo, hDeq z hz] | |
| 39 | + lift meromorphicOrderAt f z to ℤ using entire_order_ne_top f hf hf0 z with n hn | |
| 40 | + norm_cast | |
| 41 | + exact sub_self n | |
| 42 | + | |
| 43 | +end ConditionalGoldbach | |
+100 −0 ConditionalGoldbach/Proofs/HadamardFactors.lean added View file
| @@ -0,0 +1,100 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HadamardLog | |
| 4 | +public import Mathlib.Analysis.Meromorphic.FactorizedRational | |
| 5 | + | |
| 6 | +/-! Finite removal of zeros with an actual entire quotient, including removable point values. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology | |
| 12 | +open Set Complex Metric Filter MeromorphicOn | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma entire_order_ne_top (f : ℂ → ℂ) (hf : Differentiable ℂ f) (hf0 : f 0 ≠ 0) (z : ℂ) : | |
| 16 | + meromorphicOrderAt f z ≠ ⊤ := by | |
| 17 | + have ha : AnalyticOnNhd ℂ f univ := fun z _ => hf.analyticAt z | |
| 18 | + exact ha.meromorphicOn.meromorphicOrderAt_ne_top_of_isPreconnected isPreconnected_univ trivial trivial | |
| 19 | + (by rw [(hf.analyticAt 0).meromorphicNFAt.meromorphicOrderAt_eq_zero_iff.mpr hf0]; simp) | |
| 20 | + | |
| 21 | +lemma entire_factorized_quotient (f : ℂ → ℂ) (hf : Differentiable ℂ f) (hf0 : f 0 ≠ 0) | |
| 22 | + (D : ℂ → ℤ) (hfin : D.HasFiniteSupport) (hD : ∀ z, 0 ≤ D z) | |
| 23 | + (hord : ∀ z, (D z : WithTop ℤ) ≤ meromorphicOrderAt f z) : | |
| 24 | + ∃ g : ℂ → ℂ, Differentiable ℂ g ∧ | |
| 25 | + (∀ z, f z = (∏ᶠ u, (·-u)^D u) z * g z) ∧ | |
| 26 | + (∀ z, meromorphicOrderAt g z = meromorphicOrderAt f z - (D z : WithTop ℤ)) := by | |
| 27 | + let P : ℂ → ℂ := ∏ᶠ u, (·-u)^D u | |
| 28 | + have hP : Differentiable ℂ P := fun z => (Function.FactorizedRational.analyticAt (hD z)).differentiableAt | |
| 29 | + have hPf (z : ℂ) : meromorphicOrderAt P z ≠ ⊤ := Function.FactorizedRational.meromorphicOrderAt_ne_top D | |
| 30 | + have hPo (z : ℂ) : meromorphicOrderAt P z = (D z : WithTop ℤ) := | |
| 31 | + Function.FactorizedRational.meromorphicOrderAt_eq D hfin | |
| 32 | + have hmero : MeromorphicOn (f/P) univ := | |
| 33 | + fun z _ => (hf.analyticAt z).meromorphicAt.div (hP.analyticAt z).meromorphicAt | |
| 34 | + let g : ℂ → ℂ := toMeromorphicNFOn (f/P) univ | |
| 35 | + have hgNF : MeromorphicNFOn g univ := meromorphicNFOn_toMeromorphicNFOn _ _ | |
| 36 | + have hgo (z : ℂ) : meromorphicOrderAt g z = meromorphicOrderAt f z - (D z : WithTop ℤ) := by | |
| 37 | + rw [show g = toMeromorphicNFOn (f/P) univ from rfl, | |
| 38 | + meromorphicOrderAt_toMeromorphicNFOn hmero (mem_univ z), | |
| 39 | + meromorphicOrderAt_div (hf.analyticAt z).meromorphicAt (hP.analyticAt z).meromorphicAt,hPo] | |
| 40 | + have hg : Differentiable ℂ g := by | |
| 41 | + intro z | |
| 42 | + apply AnalyticAt.differentiableAt | |
| 43 | + apply (hgNF (mem_univ z)).meromorphicOrderAt_nonneg_iff_analyticAt.mp | |
| 44 | + rw [hgo] | |
| 45 | + have hz := hord z | |
| 46 | + lift meromorphicOrderAt f z to ℤ using entire_order_ne_top f hf hf0 z with n hn | |
| 47 | + norm_cast at hz ⊢ | |
| 48 | + omega | |
| 49 | + refine ⟨g,hg,?_,hgo⟩ | |
| 50 | + intro z | |
| 51 | + have he : (fun w => P w*g w) =ᶠ[𝓝[≠] z] f := by | |
| 52 | + filter_upwards [hmero.toMeromorphicNFOn_eq_self_on_nhdsNE (mem_univ z), | |
| 53 | + (meromorphicOrderAt_ne_top_iff_eventually_ne_zero (hP.analyticAt z).meromorphicAt).mp (hPf z)] with w hw hn | |
| 54 | + change g w = f w/P w at hw | |
| 55 | + rw [hw] | |
| 56 | + field_simp | |
| 57 | + have h1 : Tendsto (fun w => P w*g w) (𝓝[≠] z) (𝓝 (P z*g z)) := | |
| 58 | + ((hP.continuous.continuousAt).mul hg.continuous.continuousAt).tendsto.mono_left nhdsWithin_le_nhds | |
| 59 | + have h2 : Tendsto (fun w => P w*g w) (𝓝[≠] z) (𝓝 (f z)) := | |
| 60 | + (hf.continuous.continuousAt.tendsto.mono_left nhdsWithin_le_nhds).congr' he.symm | |
| 61 | + exact (tendsto_nhds_unique h1 h2).symm | |
| 62 | + | |
| 63 | +lemma factorizedRational_eq_prod (D : ℂ → ℤ) (hfin : D.HasFiniteSupport) : | |
| 64 | + (∏ᶠ u, (·-u)^D u) = ∏ u ∈ hfin.toFinset, (·-u)^D u := by | |
| 65 | + apply finprod_eq_prod_of_mulSupport_subset | |
| 66 | + rw [Function.FactorizedRational.mulSupport] | |
| 67 | + intro z hz | |
| 68 | + exact hfin.mem_toFinset.mpr hz | |
| 69 | + | |
| 70 | +lemma factorizedRational_logDeriv (D : ℂ → ℤ) (hfin : D.HasFiniteSupport) | |
| 71 | + (hD : ∀ u, 0 ≤ D u) (z : ℂ) (hz : (∏ᶠ u, (·-u)^D u) z ≠ 0) : | |
| 72 | + logDeriv (∏ᶠ u, (·-u)^D u) z = ∑ u ∈ hfin.toFinset, (D u : ℂ)/(z-u) := by | |
| 73 | + rw [factorizedRational_eq_prod D hfin] at hz ⊢ | |
| 74 | + have hn : ∀ u ∈ hfin.toFinset, ((·-u)^D u) z ≠ 0 := by | |
| 75 | + simpa only [Finset.prod_apply,Finset.prod_ne_zero_iff] using hz | |
| 76 | + rw [logDeriv_prod hn (fun u _ => | |
| 77 | + ((analyticAt_id.sub analyticAt_const).fun_zpow_nonneg (hD u)).differentiableAt)] | |
| 78 | + apply Finset.sum_congr rfl | |
| 79 | + intro u hu | |
| 80 | + change logDeriv (fun z : ℂ => (z-u)^D u) z = _ | |
| 81 | + rw [logDeriv_fun_zpow (show DifferentiableAt ℂ (fun z : ℂ => z-u) z from differentiableAt_id.sub_const u) (D u),logDeriv_apply, | |
| 82 | + show deriv (fun z : ℂ => z-u) z = 1 by simpa only [id_eq] using ((hasDerivAt_id z).sub_const u).deriv] | |
| 83 | + ring | |
| 84 | + | |
| 85 | +lemma factorizedRational_norm_lower (D : ℂ → ℤ) (hfin : D.HasFiniteSupport) | |
| 86 | + (hD : ∀ u, 0 ≤ D u) (r : ℝ) (hsupport : ∀ u ∈ D.support, ‖u‖ ≤ r) | |
| 87 | + (z : ℂ) (hz : 2*r ≤ ‖z‖) : | |
| 88 | + ‖(∏ᶠ u, (·-u)^D u) 0‖ ≤ ‖(∏ᶠ u, (·-u)^D u) z‖ := by | |
| 89 | + rw [factorizedRational_eq_prod D hfin] | |
| 90 | + simp only [Finset.prod_apply,norm_prod,Pi.pow_apply,norm_zpow,zero_sub,norm_neg] | |
| 91 | + apply Finset.prod_le_prod₀ | |
| 92 | + · intro u hu; positivity | |
| 93 | + intro u hu | |
| 94 | + apply zpow_le_zpow_left₀ (hD u) (norm_nonneg _) | |
| 95 | + have hh := norm_add_le (z-u) u | |
| 96 | + rw [sub_add_cancel] at hh | |
| 97 | + have huR := hsupport u (hfin.mem_toFinset.mp hu) | |
| 98 | + linarith | |
| 99 | + | |
| 100 | +end ConditionalGoldbach | |
+131 −0 ConditionalGoldbach/Proofs/HadamardLimit.lean added View file
| @@ -0,0 +1,131 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HadamardApproximation | |
| 4 | +public import ConditionalGoldbach.Proofs.CharacterZeroMultiplicity | |
| 5 | +public import ConditionalGoldbach.Proofs.SpectralCompletedLGrowth | |
| 6 | + | |
| 7 | +/-! The full Hadamard difference identity, as the limit of actual finite zero factorizations. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology | |
| 13 | +open Set Complex Metric Filter MeromorphicOn | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +lemma log_scaled_radius_div_tendsto : | |
| 17 | + Tendsto (fun R : ℝ => Real.log (8*R+2)/R) atTop (𝓝 0) := by | |
| 18 | + have hlin : Tendsto (fun R : ℝ => 8*R+2) atTop atTop := by | |
| 19 | + apply Filter.tendsto_atTop.2 | |
| 20 | + intro b | |
| 21 | + filter_upwards [eventually_ge_atTop ((b-2)/8)] with R hR | |
| 22 | + linarith | |
| 23 | + have hh := (Real.tendsto_pow_log_div_mul_add_atTop (1/8) (-1/4) 1 (by norm_num)).comp hlin | |
| 24 | + convert hh using 1 | |
| 25 | + funext R | |
| 26 | + simp only [Function.comp_def,pow_one] | |
| 27 | + congr 1 | |
| 28 | + ring | |
| 29 | + | |
| 30 | +lemma hadamard_error_tendsto (A B d : ℝ) : | |
| 31 | + Tendsto (fun R : ℝ => (4*(A*(8*R)*Real.log (8*R+2)+B)/R^2)*d) atTop (𝓝 0) := by | |
| 32 | + have hi : Tendsto (fun R : ℝ => R⁻¹) atTop (𝓝 0) := tendsto_inv_atTop_zero | |
| 33 | + have hh := ((log_scaled_radius_div_tendsto.const_mul (32*A)).add | |
| 34 | + ((hi.pow 2).const_mul (4*B))).mul_const d | |
| 35 | + simp only [mul_zero,zero_pow (by decide : (2 : ℕ)≠0),zero_add,zero_mul] at hh | |
| 36 | + apply hh.congr' | |
| 37 | + filter_upwards [eventually_gt_atTop (0 : ℝ)] with R hR | |
| 38 | + field_simp | |
| 39 | + ring | |
| 40 | + | |
| 41 | +lemma zeroIndex_disk_exhaustion {d : ℕ} [NeZero d] (χ : Character d) (hχ : χ ≠ 1) : | |
| 42 | + Tendsto (fun R : ℝ => (zeroIndex_preimage_compact_finite χ hχ | |
| 43 | + (isCompact_closedBall (0 : ℂ) (4*R))).toFinset) atTop atTop := by | |
| 44 | + classical | |
| 45 | + apply Filter.tendsto_atTop.2 | |
| 46 | + intro S | |
| 47 | + let B : ℝ := 1+∑ p ∈ S, ‖p.val.1‖ | |
| 48 | + have hB : 0 < B := by dsimp [B]; positivity | |
| 49 | + filter_upwards [eventually_ge_atTop B] with R hR | |
| 50 | + intro p hp | |
| 51 | + apply (zeroIndex_preimage_compact_finite χ hχ (isCompact_closedBall (0 : ℂ) (4*R))).mem_toFinset.mpr | |
| 52 | + apply mem_closedBall_zero_iff.mpr | |
| 53 | + have hh : ‖p.val.1‖ ≤ ∑ q ∈ S, ‖q.val.1‖ := Finset.single_le_sum (f := fun q : ZeroIndex χ => ‖q.val.1‖) (fun q _ => norm_nonneg q.val.1) hp | |
| 54 | + dsimp [B] at hR hB | |
| 55 | + linarith | |
| 56 | + | |
| 57 | +lemma completedL_logDerivative_difference {d : ℕ} [NeZero d] (χ : Character d) | |
| 58 | + (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) (u v : ℂ) | |
| 59 | + (hu : completedL χ u ≠ 0) (hv : completedL χ v ≠ 0) : | |
| 60 | + deriv (completedL χ) u/completedL χ u - deriv (completedL χ) v/completedL χ v = | |
| 61 | + zeroDifference χ u v := by | |
| 62 | + let f := completedL χ | |
| 63 | + have hf : Differentiable ℂ f := completedL_differentiable χ hχ | |
| 64 | + have hf0 : f 0 ≠ 0 := completedL_zero_ne_zero χ hχ hprim | |
| 65 | + let F : ZeroIndex χ → ℂ := fun p => 1/(u-p.val.1)-1/(v-p.val.1) | |
| 66 | + let S : ℝ → Finset (ZeroIndex χ) := fun R => | |
| 67 | + (zeroIndex_preimage_compact_finite χ hχ (isCompact_closedBall (0 : ℂ) (4*R))).toFinset | |
| 68 | + have hsum : Tendsto (fun R : ℝ => ∑ p ∈ S R, F p) atTop (𝓝 (zeroDifference χ u v)) := by | |
| 69 | + have hh := (primitive_zero_difference_summable_norm χ hχ hprim u v hu hv).of_norm.hasSum | |
| 70 | + exact hh.comp (zeroIndex_disk_exhaustion χ hχ) | |
| 71 | + obtain ⟨A,hA,hgrowth⟩ := completedL_disk_growth χ hχ hprim | |
| 72 | + let B : ℝ := ‖f 0‖+1-Real.log ‖f 0‖ | |
| 73 | + have hlim := hadamard_error_tendsto A B ‖u-v‖ | |
| 74 | + have happrox : ∀ᶠ R : ℝ in atTop, | |
| 75 | + ‖(∑ p ∈ S R, F p)-(logDeriv f u-logDeriv f v)‖ ≤ | |
| 76 | + (4*(A*(8*R)*Real.log (8*R+2)+B)/R^2)*‖u-v‖ := by | |
| 77 | + filter_upwards [eventually_gt_atTop (max 1 (max ‖u‖ ‖v‖))] with R hR | |
| 78 | + have hR1 : 1 < R := lt_of_le_of_lt (le_max_left _ _) hR | |
| 79 | + have hRp : 0 < R := by linarith | |
| 80 | + let E : ℝ := A*(8*R)*Real.log (8*R+2)+‖f 0‖+1 | |
| 81 | + let M : ℝ := Real.exp E | |
| 82 | + have hE : ‖f 0‖ < E := by | |
| 83 | + have hl : 0 < Real.log (8*R+2) := Real.log_pos (by linarith) | |
| 84 | + dsimp [E] | |
| 85 | + nlinarith [mul_pos (mul_pos hA (by linarith : 0 < 8*R)) hl] | |
| 86 | + have hM : ‖f 0‖ < M := by | |
| 87 | + have hh := Real.add_one_le_exp E | |
| 88 | + dsimp [M] | |
| 89 | + linarith | |
| 90 | + have hbound : ∀ z ∈ sphere (0 : ℂ) (8*R), ‖f z‖ ≤ M := by | |
| 91 | + intro z hz | |
| 92 | + apply (hgrowth (8*R) (by linarith) z (mem_sphere_zero_iff_norm.mp hz).le).trans | |
| 93 | + apply Real.exp_le_exp.mpr | |
| 94 | + dsimp [E] | |
| 95 | + linarith [norm_nonneg (f 0)] | |
| 96 | + have hh := logarithmicDerivative_disk_approximation f hf hf0 R M hRp hM hbound u v | |
| 97 | + (mem_ball_zero_iff.mpr ((le_max_left ‖u‖ ‖v‖).trans (le_max_right 1 _)|>.trans_lt hR)) | |
| 98 | + (mem_ball_zero_iff.mpr ((le_max_right ‖u‖ ‖v‖).trans (le_max_right 1 _)|>.trans_lt hR)) hu hv | |
| 99 | + dsimp only at hh | |
| 100 | + rw [completed_divisor_sum_eq_zeroIndex_sum χ hχ hprim (4*R) | |
| 101 | + (fun z => 1/(u-z)-1/(v-z))] at hh | |
| 102 | + have hlog : Real.log (M/‖f 0‖) = A*(8*R)*Real.log (8*R+2)+B := by | |
| 103 | + rw [Real.log_div (Real.exp_ne_zero E) (norm_ne_zero_iff.mpr hf0),Real.log_exp] | |
| 104 | + dsimp [E,B] | |
| 105 | + ring | |
| 106 | + rw [hlog,norm_sub_rev] at hh | |
| 107 | + exact hh | |
| 108 | + have hlimsum : Tendsto (fun R : ℝ => ∑ p ∈ S R, F p) atTop | |
| 109 | + (𝓝 (logDeriv f u-logDeriv f v)) := by | |
| 110 | + apply tendsto_iff_norm_sub_tendsto_zero.mpr | |
| 111 | + exact squeeze_zero' (Eventually.of_forall (fun _ => norm_nonneg _)) happrox hlim | |
| 112 | + exact (tendsto_nhds_unique hlimsum hsum) | |
| 113 | + | |
| 114 | +theorem lemma_3_3 : ∃ C : ℝ, 0 < C ∧ ∀ d : ℕ, ∀ (_ : NeZero d), ∀ χ : Character d, | |
| 115 | + χ.IsPrimitive → χ (-1) = -1 → | |
| 116 | + (∀ u u₀ : ℂ, completedL χ u ≠ 0 → completedL χ u₀ ≠ 0 → | |
| 117 | + deriv (completedL χ) u / completedL χ u - | |
| 118 | + deriv (completedL χ) u₀ / completedL χ u₀ = zeroDifference χ u u₀) ∧ | |
| 119 | + NormallySummableOn (fun p : ZeroIndex χ => fun u : ℂ × ℂ => | |
| 120 | + 1 / (u.1 - p.val.1) - 1 / (u.2 - p.val.1)) | |
| 121 | + {u | completedL χ u.1 ≠ 0 ∧ completedL χ u.2 ≠ 0} ∧ | |
| 122 | + (∀ t, (zeroWindow χ t).Finite ∧ | |
| 123 | + ((zeroWindow χ t).ncard : ℝ) ≤ C * Real.log (d * (|t| + 2))) := by | |
| 124 | + obtain ⟨C,hC,hcount⟩ := primitive_local_zero_count | |
| 125 | + refine ⟨C,hC,fun d _ χ hprim hodd => ?_⟩ | |
| 126 | + have hχ := odd_character_ne_one χ hodd | |
| 127 | + exact ⟨completedL_logDerivative_difference χ hχ hprim, | |
| 128 | + primitive_zero_difference_normallySummable χ hχ hprim, | |
| 129 | + hcount d inferInstance χ hχ hprim⟩ | |
| 130 | + | |
| 131 | +end ConditionalGoldbach | |
+52 −0 ConditionalGoldbach/Proofs/HadamardLog.lean added View file
| @@ -0,0 +1,52 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.LogDerivativeDisk | |
| 4 | + | |
| 5 | +/-! The vanishing error in Hadamard's difference formula: Cauchy estimates for a holomorphic logarithm. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open Set Complex Metric Filter | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma logarithm_derivative_variation (g : ℂ → ℂ) (R M : ℝ) (hR : 0 < R) (hM : 0 < M) | |
| 15 | + (hg : AnalyticOnNhd ℂ g (ball 0 (4*R))) (hg0 : g 0 = 0) | |
| 16 | + (hb : ∀ z ∈ ball (0 : ℂ) (4*R), (g z).re ≤ M) | |
| 17 | + (u v : ℂ) (hu : u ∈ ball (0 : ℂ) R) (hv : v ∈ ball (0 : ℂ) R) : | |
| 18 | + ‖deriv g u-deriv g v‖ ≤ (4*M/R^2)*‖u-v‖ := by | |
| 19 | + have hnorm (z : ℂ) (hz : ‖z‖ ≤ 2*R) : ‖g z‖ ≤ 2*M := by | |
| 20 | + have hzr : z ∈ ball (0 : ℂ) (4*R) := mem_ball_zero_iff.mpr (by linarith) | |
| 21 | + have hh := Complex.borelCaratheodory_zero hM hg.differentiableOn hb (by linarith) hzr hg0 | |
| 22 | + apply hh.trans | |
| 23 | + apply (div_le_iff₀ (by linarith : 0 < 4*R-‖z‖)).mpr | |
| 24 | + nlinarith | |
| 25 | + have hsecond (z : ℂ) (hz : z ∈ ball (0 : ℂ) R) : ‖deriv (deriv g) z‖ ≤ 4*M/R^2 := by | |
| 26 | + have hzR := mem_ball_zero_iff.mp hz | |
| 27 | + have hsub : closedBall z R ⊆ ball (0 : ℂ) (4*R) := by | |
| 28 | + intro w hw | |
| 29 | + have hdist : ‖w-z‖ ≤ R := by simpa only [mem_closedBall,dist_eq_norm] using hw | |
| 30 | + have hh := norm_add_le (w-z) z | |
| 31 | + rw [sub_add_cancel] at hh | |
| 32 | + apply mem_ball_zero_iff.mpr | |
| 33 | + linarith | |
| 34 | + have hdiff : DiffContOnCl ℂ g (ball z R) := by | |
| 35 | + apply DifferentiableOn.diffContOnCl | |
| 36 | + rw [closure_ball z hR.ne'] | |
| 37 | + exact hg.differentiableOn.mono hsub | |
| 38 | + have hh := Complex.norm_iteratedDeriv_le_of_forall_mem_sphere_norm_le 2 hR hdiff | |
| 39 | + (C := 2*M) (by | |
| 40 | + intro w hw | |
| 41 | + apply hnorm | |
| 42 | + have hd : ‖w-z‖ = R := by simpa only [mem_sphere,dist_eq_norm] using hw | |
| 43 | + have hn := norm_add_le (w-z) z | |
| 44 | + rw [sub_add_cancel,hd] at hn | |
| 45 | + linarith) | |
| 46 | + norm_num [iteratedDeriv_succ, Nat.factorial, ← mul_assoc] at hh | |
| 47 | + exact hh | |
| 48 | + apply (convex_ball (0 : ℂ) R).norm_image_sub_le_of_norm_deriv_le _ hsecond hv hu | |
| 49 | + intro z hz | |
| 50 | + exact (hg.deriv z (ball_subset_ball (by linarith : R ≤ 4*R) hz)).differentiableAt | |
| 51 | + | |
| 52 | +end ConditionalGoldbach | |
+193 −0 ConditionalGoldbach/Proofs/HalfPlanePoisson.lean added View file
| @@ -0,0 +1,193 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HalfPlaneWeightedCauchy | |
| 4 | +public import ConditionalGoldbach.Proofs.SpectralPoissonConvolution | |
| 5 | + | |
| 6 | +/-! Poisson representation and the square majorant on a right half-plane. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +open scoped Topology ComplexConjugate BigOperators | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma halfPlane_affine_cauchy (f : ℂ → ℂ) | |
| 16 | + (hd : ∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ f z) | |
| 17 | + (hg : ∀ R : ℝ, 0 ≤ R → ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, | |
| 18 | + ‖f (line x t)‖ ≤ C * (1 + |t|) ^ (1/2 : ℝ)) | |
| 19 | + (hb : ∃ R₀ B : ℝ, ∀ z : ℂ, R₀ ≤ z.re → ‖f z‖ ≤ B) | |
| 20 | + {ℓ : ℝ} (hℓ : 0 < ℓ) (t : ℝ) : | |
| 21 | + Integrable (fun v : ℝ => f (line 0 (ℓ*v+t)) / (1 + (v : ℂ)^2)) ∧ | |
| 22 | + (∫ v : ℝ, f (line 0 (ℓ*v+t)) / (1 + (v : ℂ)^2)) = (Real.pi : ℂ) * f (line ℓ t) := by | |
| 23 | + let F : ℂ → ℂ := fun z => f ((ℓ : ℂ)*z+(t : ℂ)*I) | |
| 24 | + have he (x v : ℝ) : (ℓ : ℂ)*line x v+(t : ℂ)*I = line (ℓ*x) (ℓ*v+t) := by | |
| 25 | + unfold line; push_cast; ring | |
| 26 | + have hF := halfPlane_weighted_cauchy F (by | |
| 27 | + intro z hz | |
| 28 | + apply (hd ((ℓ : ℂ)*z+(t : ℂ)*I) (by simpa using mul_nonneg hℓ.le hz)).comp z | |
| 29 | + exact (differentiableAt_id.const_mul (ℓ : ℂ)).add_const ((t : ℂ)*I)) (by | |
| 30 | + intro R hR | |
| 31 | + obtain ⟨C,hC,hg⟩ := hg (ℓ*R) (mul_nonneg hℓ.le hR) | |
| 32 | + refine ⟨C * (1+ℓ+|t|) ^ (1/2 : ℝ), by positivity, ?_⟩ | |
| 33 | + intro x hx v | |
| 34 | + dsimp [F] | |
| 35 | + rw [he] | |
| 36 | + apply (hg (ℓ*x) ⟨mul_nonneg hℓ.le hx.1, mul_le_mul_of_nonneg_left hx.2 hℓ.le⟩ _).trans | |
| 37 | + have hv : 1+|ℓ*v+t| ≤ (1+ℓ+|t|)*(1+|v|) := by | |
| 38 | + have hh := abs_add_le (ℓ*v) t | |
| 39 | + rw [abs_mul, abs_of_pos hℓ] at hh | |
| 40 | + nlinarith [abs_nonneg v, abs_nonneg t, mul_nonneg (abs_nonneg t) (abs_nonneg v)] | |
| 41 | + have hp := Real.rpow_le_rpow (by positivity) hv (by norm_num : (0 : ℝ) ≤ 1/2) | |
| 42 | + rw [Real.mul_rpow (by positivity) (by positivity)] at hp | |
| 43 | + convert mul_le_mul_of_nonneg_left hp hC using 1; ring) (by | |
| 44 | + obtain ⟨R₀,B,hb⟩ := hb | |
| 45 | + refine ⟨R₀/ℓ, B, ?_⟩ | |
| 46 | + intro z hz | |
| 47 | + apply hb | |
| 48 | + simp only [Complex.add_re, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, | |
| 49 | + Complex.I_re, Complex.I_im, mul_zero, zero_mul, sub_zero, sub_self, add_zero] | |
| 50 | + simpa only [mul_comm] using (div_le_iff₀ hℓ).mp hz) | |
| 51 | + have hz : (ℓ : ℂ)*1+(t : ℂ)*I = line ℓ t := by simp [line] | |
| 52 | + simpa only [F, he, mul_zero, hz] using hF | |
| 53 | + | |
| 54 | +lemma halfPlane_poisson (f : ℂ → ℂ) | |
| 55 | + (hd : ∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ f z) | |
| 56 | + (hg : ∀ R : ℝ, 0 ≤ R → ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, | |
| 57 | + ‖f (line x t)‖ ≤ C * (1 + |t|) ^ (1/2 : ℝ)) | |
| 58 | + (hb : ∃ R₀ B : ℝ, ∀ z : ℂ, R₀ ≤ z.re → ‖f z‖ ≤ B) | |
| 59 | + {ℓ : ℝ} (hℓ : 0 < ℓ) (t : ℝ) : | |
| 60 | + Integrable (fun v : ℝ => (poissonKernelReal ℓ (t-v) : ℂ) * f (line 0 v)) ∧ | |
| 61 | + (∫ v : ℝ, (poissonKernelReal ℓ (t-v) : ℂ) * f (line 0 v)) = f (line ℓ t) := by | |
| 62 | + obtain ⟨hI,hE⟩ := halfPlane_affine_cauchy f hd hg hb hℓ t | |
| 63 | + let g (v : ℝ) := f (line 0 (ℓ*v+t)) / (1 + (v : ℂ)^2) | |
| 64 | + let k (v : ℝ) := (poissonKernelReal ℓ (t-v) : ℂ) * f (line 0 v) | |
| 65 | + have he (v : ℝ) : k (ℓ*v+t) = ((Real.pi * ℓ : ℝ) : ℂ)⁻¹ * g v := by | |
| 66 | + dsimp [k,g,poissonKernelReal] | |
| 67 | + push_cast | |
| 68 | + have hℓc : (ℓ : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hℓ.ne' | |
| 69 | + have hπ : (Real.pi : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr Real.pi_ne_zero | |
| 70 | + have hv : 1+(v : ℂ)^2 ≠ 0 := by exact_mod_cast (by positivity : (1 : ℝ)+v^2 ≠ 0) | |
| 71 | + have hd : (ℓ : ℂ)^2+((t : ℂ)-((ℓ : ℂ)*v+t))^2 ≠ 0 := by | |
| 72 | + have hr : ℓ^2+(t-(ℓ*v+t))^2 ≠ 0 := by positivity | |
| 73 | + exact_mod_cast hr | |
| 74 | + field_simp [hℓc,hπ,hv,hd] | |
| 75 | + ring | |
| 76 | + have hinv (v : ℝ) : k v = ((Real.pi * ℓ : ℝ) : ℂ)⁻¹ * g (ℓ⁻¹*(v-t)) := by | |
| 77 | + convert he (ℓ⁻¹*(v-t)) using 1 | |
| 78 | + congr 1 | |
| 79 | + field_simp [hℓ.ne'] | |
| 80 | + ring | |
| 81 | + have hki : Integrable k := by | |
| 82 | + have hi : Integrable (fun v : ℝ => g (ℓ⁻¹*(v-t))) := by | |
| 83 | + simpa only [g, sub_eq_add_neg] using (hI.comp_mul_left' (inv_ne_zero hℓ.ne')).comp_add_right (-t) | |
| 84 | + exact (hi.const_mul _).congr (Eventually.of_forall (fun v => (hinv v).symm)) | |
| 85 | + refine ⟨hki, ?_⟩ | |
| 86 | + change (∫ v : ℝ, k v) = _ | |
| 87 | + have hint : (∫ v : ℝ, k (ℓ*v+t)) = (ℓ⁻¹ : ℝ) • ∫ v : ℝ, k v := by | |
| 88 | + rw [Measure.integral_comp_mul_left (fun v => k (v+t)) ℓ, integral_add_right_eq_self, | |
| 89 | + abs_of_pos (inv_pos.mpr hℓ)] | |
| 90 | + simp_rw [he] at hint | |
| 91 | + rw [integral_const_mul] at hint | |
| 92 | + change ((Real.pi * ℓ : ℝ) : ℂ)⁻¹ * (∫ v : ℝ, g v) = _ at hint | |
| 93 | + rw [show (∫ v : ℝ, g v) = (Real.pi : ℂ)*f (line ℓ t) from hE] at hint | |
| 94 | + simp only [Complex.real_smul, Complex.ofReal_inv, Complex.ofReal_mul] at hint | |
| 95 | + have hℓc : (ℓ : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hℓ.ne' | |
| 96 | + have hπ : (Real.pi : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr Real.pi_ne_zero | |
| 97 | + field_simp [hℓc,hπ] at hint | |
| 98 | + linear_combination -hint | |
| 99 | + | |
| 100 | +lemma weighted_complex_square_mean_le (p : ℝ → ℝ) (f : ℝ → ℂ) | |
| 101 | + (hp : ∀ t, 0 ≤ p t) (hpi : Integrable p) (hpm : (∫ t, p t) = 1) | |
| 102 | + (hfi : Integrable (fun t => (p t : ℂ)*f t)) | |
| 103 | + (hsi : Integrable (fun t => p t * ‖f t‖ ^ 2)) : | |
| 104 | + ‖∫ t, (p t : ℂ)*f t‖ ^ 2 ≤ ∫ t, p t * ‖f t‖ ^ 2 := by | |
| 105 | + let m := ∫ t, (p t : ℂ)*f t | |
| 106 | + have hi : Integrable (fun t => (conj m * ((p t : ℂ)*f t)).re) := (hfi.const_mul (conj m)).re | |
| 107 | + have he (t : ℝ) : p t * ‖f t - m‖ ^ 2 = | |
| 108 | + p t * ‖f t‖ ^ 2 + p t * ‖m‖ ^ 2 - 2 * (conj m * ((p t : ℂ)*f t)).re := by | |
| 109 | + simp only [← Complex.normSq_eq_norm_sq, Complex.normSq_apply, Complex.sub_re, Complex.sub_im, | |
| 110 | + Complex.mul_re, Complex.mul_im, Complex.conj_re, Complex.conj_im, Complex.ofReal_re, Complex.ofReal_im] | |
| 111 | + ring | |
| 112 | + have hpos : 0 ≤ ∫ t, p t * ‖f t‖ ^ 2 + p t * ‖m‖ ^ 2 - 2 * (conj m * ((p t : ℂ)*f t)).re := by | |
| 113 | + apply integral_nonneg | |
| 114 | + intro t | |
| 115 | + change 0 ≤ p t * ‖f t‖ ^ 2 + p t * ‖m‖ ^ 2 - 2 * (conj m * ((p t : ℂ)*f t)).re | |
| 116 | + rw [← he] | |
| 117 | + exact mul_nonneg (hp t) (sq_nonneg _) | |
| 118 | + have hsum : Integrable (fun t => p t * ‖f t‖ ^ 2 + p t * ‖m‖ ^ 2) := hsi.add (hpi.mul_const _) | |
| 119 | + rw [integral_sub hsum (hi.const_mul 2), | |
| 120 | + integral_add hsi (hpi.mul_const _), integral_mul_const, hpm, one_mul, integral_const_mul] at hpos | |
| 121 | + have hei : (∫ t, (conj m * ((p t : ℂ)*f t)).re) = (conj m*m).re := by | |
| 122 | + have hh : (∫ t, (conj m * ((p t : ℂ)*f t)).re) = (∫ t, conj m * ((p t : ℂ)*f t)).re := | |
| 123 | + integral_re (hfi.const_mul (conj m)) | |
| 124 | + rw [hh, integral_const_mul] | |
| 125 | + rw [hei, ← Complex.normSq_eq_conj_mul_self, Complex.ofReal_re, Complex.normSq_eq_norm_sq] at hpos | |
| 126 | + dsimp [m] at hpos | |
| 127 | + linarith | |
| 128 | + | |
| 129 | +lemma poissonKernelReal_weight_bound {ℓ : ℝ} (hℓ : 0 < ℓ) (t : ℝ) : | |
| 130 | + ∃ C : ℝ, 0 ≤ C ∧ ∀ v : ℝ, poissonKernelReal ℓ (t-v) ≤ C / (1+v^2) := by | |
| 131 | + let A : ℝ := 2 * (1+t^2+ℓ^2) / ℓ^2 | |
| 132 | + have hA : 0 ≤ A := by dsimp [A]; positivity | |
| 133 | + refine ⟨(ℓ / Real.pi) * A, by positivity, ?_⟩ | |
| 134 | + intro v | |
| 135 | + have hp : 0 < ℓ^2+(t-v)^2 := by positivity | |
| 136 | + have hv : 1+v^2 ≤ A*(ℓ^2+(t-v)^2) := by | |
| 137 | + dsimp [A] | |
| 138 | + rw [div_mul_eq_mul_div] | |
| 139 | + apply (le_div_iff₀ (sq_pos_of_pos hℓ)).mpr | |
| 140 | + have hbase : 1+v^2 ≤ 2*(1+t^2)+2*(t-v)^2 := by nlinarith [sq_nonneg (2*t-v)] | |
| 141 | + have hm := mul_le_mul_of_nonneg_right hbase (sq_nonneg ℓ) | |
| 142 | + nlinarith [mul_nonneg (show 0 ≤ 1+t^2 by positivity) (sq_nonneg (t-v)), sq_nonneg (ℓ^2)] | |
| 143 | + unfold poissonKernelReal | |
| 144 | + have hh := div_le_div_of_nonneg_left (show 0 ≤ ℓ / Real.pi by positivity) | |
| 145 | + (show 0 < (1+v^2)/A from div_pos (by positivity) (by dsimp [A]; positivity)) | |
| 146 | + ((div_le_iff₀ (by dsimp [A]; positivity : 0 < A)).mpr (by simpa only [mul_comm] using hv)) | |
| 147 | + convert hh using 1 <;> field_simp | |
| 148 | + | |
| 149 | +lemma poissonKernelReal_translate_integral {ℓ : ℝ} (hℓ : 0 < ℓ) (t : ℝ) : | |
| 150 | + Integrable (fun v : ℝ => poissonKernelReal ℓ (t-v)) ∧ | |
| 151 | + (∫ v : ℝ, poissonKernelReal ℓ (t-v)) = 1 := by | |
| 152 | + have he (v : ℝ) : poissonKernelReal ℓ (t-v) = poissonKernelReal ℓ (v-t) := by | |
| 153 | + unfold poissonKernelReal | |
| 154 | + congr 2 | |
| 155 | + ring | |
| 156 | + constructor | |
| 157 | + · apply ((poissonKernelReal_integral ℓ hℓ).1.comp_add_right (-t)).congr | |
| 158 | + filter_upwards [] with v | |
| 159 | + simpa only [sub_eq_add_neg] using (he v).symm | |
| 160 | + · simp_rw [he] | |
| 161 | + rw [integral_sub_right_eq_self] | |
| 162 | + exact (poissonKernelReal_integral ℓ hℓ).2 | |
| 163 | + | |
| 164 | +lemma halfPlane_poisson_square_bound (f : ℂ → ℂ) | |
| 165 | + (hd : ∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ f z) | |
| 166 | + (hg : ∀ R : ℝ, 0 ≤ R → ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, | |
| 167 | + ‖f (line x t)‖ ≤ C * (1 + |t|) ^ (1/2 : ℝ)) | |
| 168 | + (hb : ∃ R₀ B : ℝ, ∀ z : ℂ, R₀ ≤ z.re → ‖f z‖ ≤ B) | |
| 169 | + (hI : Integrable (fun t : ℝ => ‖f (line 0 t)‖ ^ 2 / (1+t^2))) | |
| 170 | + {ℓ : ℝ} (hℓ : 0 < ℓ) (t : ℝ) : | |
| 171 | + Integrable (fun v : ℝ => poissonKernelReal ℓ (t-v) * ‖f (line 0 v)‖ ^ 2) ∧ | |
| 172 | + ‖f (line ℓ t)‖ ^ 2 ≤ ∫ v : ℝ, poissonKernelReal ℓ (t-v) * ‖f (line 0 v)‖ ^ 2 := by | |
| 173 | + obtain ⟨hfi,hf⟩ := halfPlane_poisson f hd hg hb hℓ t | |
| 174 | + have hc : Continuous (fun v : ℝ => f (line 0 v)) := by | |
| 175 | + apply continuous_iff_continuousAt.mpr | |
| 176 | + intro v | |
| 177 | + exact (hd (line 0 v) (by simp [line])).continuousAt.comp | |
| 178 | + (show ContinuousAt (fun v : ℝ => line 0 v) v by unfold line; fun_prop) | |
| 179 | + have hi : Integrable (fun v : ℝ => poissonKernelReal ℓ (t-v) * ‖f (line 0 v)‖ ^ 2) := by | |
| 180 | + obtain ⟨C,hC,hbound⟩ := poissonKernelReal_weight_bound hℓ t | |
| 181 | + refine (hI.const_mul C).mono' ?_ ?_ | |
| 182 | + · exact (((poissonKernelReal_continuous ℓ hℓ).comp (continuous_const.sub continuous_id)).mul | |
| 183 | + (hc.norm.pow 2)).aestronglyMeasurable | |
| 184 | + · filter_upwards [] with v | |
| 185 | + rw [Real.norm_eq_abs, abs_of_nonneg (by unfold poissonKernelReal; positivity)] | |
| 186 | + convert mul_le_mul_of_nonneg_right (hbound v) (sq_nonneg ‖f (line 0 v)‖) using 1; ring | |
| 187 | + refine ⟨hi, ?_⟩ | |
| 188 | + rw [← hf] | |
| 189 | + exact weighted_complex_square_mean_le (fun v => poissonKernelReal ℓ (t-v)) (fun v => f (line 0 v)) | |
| 190 | + (fun v => (poissonKernelReal_bounds ℓ hℓ (t-v)).1) | |
| 191 | + (poissonKernelReal_translate_integral hℓ t).1 (poissonKernelReal_translate_integral hℓ t).2 hfi hi | |
| 192 | + | |
| 193 | +end ConditionalGoldbach | |
+345 −0 ConditionalGoldbach/Proofs/HalfPlaneWeightedCauchy.lean added View file
| @@ -0,0 +1,345 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterTraceBounds | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinContourShift | |
| 5 | +public import Mathlib.Analysis.Complex.RemovableSingularity | |
| 6 | + | |
| 7 | +/-! A weighted Cauchy formula on a right half-plane, proved by removing the interior pole. -/ | |
| 8 | +@[expose] public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open MeasureTheory Filter Set Complex Metric | |
| 13 | +open scoped Topology ComplexConjugate BigOperators | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +def halfPlaneDifference (f : ℂ → ℂ) (z : ℂ) : ℂ := -dslope f 1 z / (z + 1) | |
| 17 | + | |
| 18 | +lemma halfPlaneDifference_eq (f : ℂ → ℂ) {z : ℂ} (hz : z ≠ 1) : | |
| 19 | + halfPlaneDifference f z = (f z - f 1) / (1 - z ^ 2) := by | |
| 20 | + rw [halfPlaneDifference, dslope_of_ne f hz, slope_def_field] | |
| 21 | + by_cases hm : z + 1 = 0 | |
| 22 | + · have he : z = -1 := by linear_combination hm | |
| 23 | + subst z | |
| 24 | + norm_num | |
| 25 | + · have hp : 1 - z ^ 2 ≠ 0 := by | |
| 26 | + have h : (z - 1) * (z + 1) ≠ 0 := mul_ne_zero (sub_ne_zero.mpr hz) hm | |
| 27 | + intro he | |
| 28 | + apply h | |
| 29 | + linear_combination -he | |
| 30 | + field_simp [sub_ne_zero.mpr hz, hm, hp] | |
| 31 | + ring | |
| 32 | + | |
| 33 | +lemma halfPlaneDifference_differentiableAt (f : ℂ → ℂ) | |
| 34 | + (hd : ∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ f z) | |
| 35 | + (z : ℂ) (hz : 0 ≤ z.re) : DifferentiableAt ℂ (halfPlaneDifference f) z := by | |
| 36 | + have hds : DifferentiableAt ℂ (dslope f 1) z := by | |
| 37 | + by_cases he : z = 1 | |
| 38 | + · subst z | |
| 39 | + have hU : {w : ℂ | 0 < w.re} ∈ 𝓝 (1 : ℂ) := | |
| 40 | + (isOpen_lt continuous_const Complex.continuous_re).mem_nhds (by simp) | |
| 41 | + exact ((Complex.differentiableOn_dslope hU).mpr | |
| 42 | + (fun w hw => (hd w hw.le).differentiableWithinAt)).differentiableAt hU | |
| 43 | + · exact (differentiableAt_dslope_of_ne he).mpr (hd z hz) | |
| 44 | + apply hds.neg.div (differentiableAt_id.add_const 1) | |
| 45 | + intro he | |
| 46 | + have hh := congrArg Complex.re he | |
| 47 | + simp only [id_eq, add_re, one_re, zero_re] at hh | |
| 48 | + linarith | |
| 49 | + | |
| 50 | +lemma halfPlaneDifference_boundary (f : ℂ → ℂ) (t : ℝ) : | |
| 51 | + halfPlaneDifference f (line 0 t) = (f (line 0 t) - f 1) / (1 + (t : ℂ) ^ 2) := by | |
| 52 | + rw [halfPlaneDifference_eq f (by intro he; have := congrArg Complex.re he; simp [line] at this)] | |
| 53 | + congr 1 | |
| 54 | + simp [line, mul_pow, Complex.I_sq] | |
| 55 | + | |
| 56 | +lemma norm_line_sub_one_sq (x t : ℝ) : ‖line x t - 1‖ ^ 2 = (x - 1) ^ 2 + t ^ 2 := by | |
| 57 | + rw [← Complex.normSq_eq_norm_sq, Complex.normSq_apply] | |
| 58 | + simp [line] | |
| 59 | + ring | |
| 60 | + | |
| 61 | +lemma halfPlaneDifference_far_bound (f : ℂ → ℂ) (B : ℝ) | |
| 62 | + {x : ℝ} (hx : 2 ≤ x) (t : ℝ) (hb : ‖f (line x t)‖ ≤ B) : | |
| 63 | + ‖halfPlaneDifference f (line x t)‖ ≤ (B + ‖f 1‖) / ((x - 1) ^ 2 + t ^ 2) := by | |
| 64 | + have hz : line x t ≠ (1 : ℂ) := by | |
| 65 | + intro he | |
| 66 | + have hh := congrArg Complex.re he | |
| 67 | + simp [line] at hh | |
| 68 | + linarith | |
| 69 | + rw [halfPlaneDifference, dslope_of_ne f hz, slope_def_field, norm_div, norm_neg, norm_div] | |
| 70 | + have hnum : ‖f (line x t) - f 1‖ ≤ B + ‖f 1‖ := | |
| 71 | + (norm_sub_le _ _).trans (add_le_add hb le_rfl) | |
| 72 | + have hnorm : ‖line x t - 1‖ ≤ ‖line x t + 1‖ := by | |
| 73 | + apply (sq_le_sq₀ (norm_nonneg _) (norm_nonneg _)).mp | |
| 74 | + rw [norm_line_sub_one_sq, add_comm (line x t) 1, norm_one_add_line_sq] | |
| 75 | + nlinarith | |
| 76 | + have hp : 0 < ‖line x t - 1‖ := norm_pos_iff.mpr (sub_ne_zero.mpr hz) | |
| 77 | + calc | |
| 78 | + _ ≤ (B + ‖f 1‖) / ‖line x t - 1‖ / ‖line x t + 1‖ := | |
| 79 | + div_le_div_of_nonneg_right (div_le_div_of_nonneg_right hnum (norm_nonneg _)) (norm_nonneg _) | |
| 80 | + _ ≤ (B + ‖f 1‖) / ‖line x t - 1‖ / ‖line x t - 1‖ := by | |
| 81 | + apply div_le_div_of_nonneg_left _ hp hnorm | |
| 82 | + exact div_nonneg ((norm_nonneg _).trans hnum) hp.le | |
| 83 | + _ = _ := by rw [div_div, ← sq, norm_line_sub_one_sq] | |
| 84 | + | |
| 85 | +lemma horizontal_tendsto_of_three_halves_decay (f : ℂ → ℂ) (a b C : ℝ) (hab : a ≤ b) | |
| 86 | + (hb : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ≤ C * (1 + |t|) ^ (-(3/2 : ℝ))) : | |
| 87 | + Tendsto (fun T : ℝ => ∫ x in a..b, f (line x T)) atTop (𝓝 0) ∧ | |
| 88 | + Tendsto (fun T : ℝ => ∫ x in a..b, f (line x (-T))) atTop (𝓝 0) := by | |
| 89 | + have hpow : Tendsto (fun T : ℝ => (1 + T) ^ (-(3/2 : ℝ))) atTop (𝓝 0) := | |
| 90 | + (tendsto_rpow_neg_atTop (by norm_num : (0 : ℝ) < 3/2)).comp | |
| 91 | + (tendsto_atTop_add_const_left atTop 1 tendsto_id) | |
| 92 | + have hmajor : Tendsto (fun T : ℝ => C * (1 + T) ^ (-(3/2 : ℝ)) * |b-a|) atTop (𝓝 0) := by | |
| 93 | + simpa using (hpow.const_mul C).mul_const |b-a| | |
| 94 | + constructor | |
| 95 | + · apply squeeze_zero_norm' _ hmajor | |
| 96 | + filter_upwards [eventually_ge_atTop (0 : ℝ)] with T hT | |
| 97 | + apply intervalIntegral.norm_integral_le_of_norm_le_const | |
| 98 | + intro x hx | |
| 99 | + rw [uIoc_of_le hab] at hx | |
| 100 | + simpa only [abs_of_nonneg hT] using hb x ⟨hx.1.le, hx.2⟩ T | |
| 101 | + · apply squeeze_zero_norm' _ hmajor | |
| 102 | + filter_upwards [eventually_ge_atTop (0 : ℝ)] with T hT | |
| 103 | + apply intervalIntegral.norm_integral_le_of_norm_le_const | |
| 104 | + intro x hx | |
| 105 | + rw [uIoc_of_le hab] at hx | |
| 106 | + simpa only [abs_neg, abs_of_nonneg hT] using hb x ⟨hx.1.le, hx.2⟩ (-T) | |
| 107 | + | |
| 108 | +lemma halfPlaneDifference_tail_bound (f : ℂ → ℂ) {x C : ℝ} (hC : 0 ≤ C) | |
| 109 | + (hb : ∀ t : ℝ, ‖f (line x t)‖ ≤ C * (1 + |t|) ^ (1/2 : ℝ)) | |
| 110 | + (t : ℝ) (ht : 1 ≤ |t|) : | |
| 111 | + ‖halfPlaneDifference f (line x t)‖ ≤ | |
| 112 | + (4 * (C + ‖f 1‖)) * (1 + |t|) ^ (-(3/2 : ℝ)) := by | |
| 113 | + have ht0 : 0 < |t| := by linarith | |
| 114 | + have hz : line x t ≠ (1 : ℂ) := by | |
| 115 | + intro he | |
| 116 | + have hh := congrArg Complex.im he | |
| 117 | + simp [line] at hh | |
| 118 | + norm_num [hh] at ht | |
| 119 | + rw [halfPlaneDifference, dslope_of_ne f hz, slope_def_field, norm_div, norm_neg, norm_div, div_div] | |
| 120 | + have hn1 : |t| ≤ ‖line x t - 1‖ := by simpa [line] using Complex.abs_im_le_norm (line x t - 1) | |
| 121 | + have hn2 : |t| ≤ ‖line x t + 1‖ := by simpa [line] using Complex.abs_im_le_norm (line x t + 1) | |
| 122 | + have hden : (1 + |t|) ^ 2 / 4 ≤ ‖line x t - 1‖ * ‖line x t + 1‖ := by | |
| 123 | + have hh := mul_le_mul hn1 hn2 (abs_nonneg t) (norm_nonneg _) | |
| 124 | + nlinarith [sq_nonneg (|t| - 1)] | |
| 125 | + have hr : 1 ≤ (1 + |t|) ^ (1/2 : ℝ) := Real.one_le_rpow (by linarith) (by norm_num) | |
| 126 | + have hnum : ‖f (line x t) - f 1‖ ≤ (C + ‖f 1‖) * (1 + |t|) ^ (1/2 : ℝ) := by | |
| 127 | + calc | |
| 128 | + _ ≤ ‖f (line x t)‖ + ‖f 1‖ := norm_sub_le _ _ | |
| 129 | + _ ≤ C * (1 + |t|) ^ (1/2 : ℝ) + ‖f 1‖ * (1 + |t|) ^ (1/2 : ℝ) := | |
| 130 | + add_le_add (hb t) (by nlinarith [norm_nonneg (f 1)]) | |
| 131 | + _ = _ := by ring | |
| 132 | + calc | |
| 133 | + _ ≤ ((C + ‖f 1‖) * (1 + |t|) ^ (1/2 : ℝ)) / (‖line x t - 1‖ * ‖line x t + 1‖) := | |
| 134 | + div_le_div_of_nonneg_right hnum (by positivity) | |
| 135 | + _ ≤ ((C + ‖f 1‖) * (1 + |t|) ^ (1/2 : ℝ)) / ((1 + |t|) ^ 2 / 4) := | |
| 136 | + div_le_div_of_nonneg_left (by positivity) (by positivity) hden | |
| 137 | + _ = _ := by | |
| 138 | + rw [show (1 + |t|) ^ (2 : ℕ) = (1 + |t|) ^ (2 : ℝ) by rw [Real.rpow_two]] | |
| 139 | + calc | |
| 140 | + _ = (4 * (C + ‖f 1‖)) * ((1 + |t|) ^ (1/2 : ℝ) / (1 + |t|) ^ (2 : ℝ)) := by ring | |
| 141 | + _ = _ := by rw [← Real.rpow_sub (by positivity : 0 < 1 + |t|)]; norm_num | |
| 142 | + | |
| 143 | +lemma halfPlaneDifference_strip_bound (f : ℂ → ℂ) | |
| 144 | + (hd : ∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ f z) | |
| 145 | + {R C : ℝ} (_hR : 0 ≤ R) (hC : 0 ≤ C) | |
| 146 | + (hb : ∀ x ∈ Icc 0 R, ∀ t : ℝ, ‖f (line x t)‖ ≤ C * (1 + |t|) ^ (1/2 : ℝ)) : | |
| 147 | + ∃ M : ℝ, 0 ≤ M ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, | |
| 148 | + ‖halfPlaneDifference f (line x t)‖ ≤ M * (1 + |t|) ^ (-(3/2 : ℝ)) := by | |
| 149 | + have hc : ContinuousOn (fun p : ℝ × ℝ => halfPlaneDifference f (line p.1 p.2)) | |
| 150 | + (Icc 0 R ×ˢ Icc (-1 : ℝ) 1) := by | |
| 151 | + intro p hp | |
| 152 | + have hh : ContinuousAt (halfPlaneDifference f) (line p.1 p.2) := | |
| 153 | + (halfPlaneDifference_differentiableAt f hd (line p.1 p.2) (by simpa [line] using hp.1.1)).continuousAt | |
| 154 | + have hl : Continuous (fun q : ℝ × ℝ => line q.1 q.2) := by unfold line; fun_prop | |
| 155 | + exact (hh.comp (x := p) hl.continuousAt).continuousWithinAt | |
| 156 | + obtain ⟨K, hK⟩ := (isCompact_Icc.prod isCompact_Icc).exists_bound_of_continuousOn hc | |
| 157 | + let M := max (4 * (C + ‖f 1‖)) (max K 0 * (2 : ℝ) ^ (3/2 : ℝ)) | |
| 158 | + have hM : 0 ≤ M := le_max_of_le_left (by positivity) | |
| 159 | + refine ⟨M, hM, ?_⟩ | |
| 160 | + intro x hx t | |
| 161 | + by_cases ht : 1 ≤ |t| | |
| 162 | + · exact (halfPlaneDifference_tail_bound f hC (hb x hx) t ht).trans | |
| 163 | + (mul_le_mul_of_nonneg_right (le_max_left _ _) (Real.rpow_nonneg (by positivity) _)) | |
| 164 | + · have ht' : t ∈ Icc (-1 : ℝ) 1 := by | |
| 165 | + have hh := abs_lt.mp (lt_of_not_ge ht) | |
| 166 | + exact ⟨hh.1.le, hh.2.le⟩ | |
| 167 | + have hh := hK (x,t) ⟨hx, ht'⟩ | |
| 168 | + have hp : (1 + |t|) ^ (3/2 : ℝ) ≤ (2 : ℝ) ^ (3/2 : ℝ) := | |
| 169 | + Real.rpow_le_rpow (by positivity) (by linarith) (by norm_num) | |
| 170 | + have hpp : 0 < (1 + |t|) ^ (3/2 : ℝ) := Real.rpow_pos_of_pos (by positivity) _ | |
| 171 | + rw [Real.rpow_neg (by positivity : 0 ≤ 1 + |t|), ← div_eq_mul_inv] | |
| 172 | + apply (le_div_iff₀ hpp).mpr | |
| 173 | + calc | |
| 174 | + _ ≤ max K 0 * (1 + |t|) ^ (3/2 : ℝ) := | |
| 175 | + mul_le_mul_of_nonneg_right (hh.trans (le_max_left _ _)) hpp.le | |
| 176 | + _ ≤ max K 0 * (2 : ℝ) ^ (3/2 : ℝ) := mul_le_mul_of_nonneg_left hp (le_max_right _ _) | |
| 177 | + _ ≤ M := le_max_right _ _ | |
| 178 | + | |
| 179 | +lemma cauchy_weight_integral {a : ℝ} (ha : 0 < a) : | |
| 180 | + Integrable (fun t : ℝ => (a ^ 2 + t ^ 2)⁻¹) ∧ | |
| 181 | + (∫ t : ℝ, (a ^ 2 + t ^ 2)⁻¹) = Real.pi / a := by | |
| 182 | + have he : (fun t : ℝ => (a ^ 2 + t ^ 2)⁻¹) = | |
| 183 | + fun t : ℝ => a⁻¹ ^ 2 * (1 + (a⁻¹ * t) ^ 2)⁻¹ := by | |
| 184 | + funext t | |
| 185 | + have h1 : a ^ 2 + t ^ 2 ≠ 0 := by positivity | |
| 186 | + have h2 : 1 + (a⁻¹ * t) ^ 2 ≠ 0 := by positivity | |
| 187 | + field_simp [ha.ne', h1, h2] | |
| 188 | + rw [he] | |
| 189 | + refine ⟨(integrable_inv_one_add_mul_sq (inv_ne_zero ha.ne')).const_mul _, ?_⟩ | |
| 190 | + rw [integral_const_mul, integral_univ_inv_one_add_mul_sq, abs_of_pos (inv_pos.mpr ha)] | |
| 191 | + field_simp [ha.ne'] | |
| 192 | + | |
| 193 | +lemma halfPlaneDifference_line_integrable (f : ℂ → ℂ) | |
| 194 | + (hd : ∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ f z) | |
| 195 | + (hg : ∀ R : ℝ, 0 ≤ R → ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, | |
| 196 | + ‖f (line x t)‖ ≤ C * (1 + |t|) ^ (1/2 : ℝ)) | |
| 197 | + {x : ℝ} (hx : 0 ≤ x) : Integrable (fun t : ℝ => halfPlaneDifference f (line x t)) := by | |
| 198 | + obtain ⟨C, hC, hb⟩ := hg x hx | |
| 199 | + obtain ⟨M, hM, hm⟩ := halfPlaneDifference_strip_bound f hd hx hC hb | |
| 200 | + apply (hardy_decay_integrable.const_mul M).mono' ?_ (Eventually.of_forall (hm x ⟨hx, le_rfl⟩)) | |
| 201 | + apply Continuous.aestronglyMeasurable | |
| 202 | + apply continuous_iff_continuousAt.mpr | |
| 203 | + intro t | |
| 204 | + have hh : ContinuousAt (halfPlaneDifference f) (line x t) := | |
| 205 | + (halfPlaneDifference_differentiableAt f hd _ (by simpa [line] using hx)).continuousAt | |
| 206 | + exact hh.comp (show ContinuousAt (fun t : ℝ => line x t) t by unfold line; fun_prop) | |
| 207 | + | |
| 208 | +lemma halfPlaneDifference_integral_eq (f : ℂ → ℂ) | |
| 209 | + (hd : ∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ f z) | |
| 210 | + (hg : ∀ R : ℝ, 0 ≤ R → ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, | |
| 211 | + ‖f (line x t)‖ ≤ C * (1 + |t|) ^ (1/2 : ℝ)) | |
| 212 | + {R : ℝ} (hR : 0 ≤ R) : | |
| 213 | + (∫ t : ℝ, halfPlaneDifference f (line 0 t)) = ∫ t : ℝ, halfPlaneDifference f (line R t) := by | |
| 214 | + obtain ⟨C, hC, hb⟩ := hg R hR | |
| 215 | + obtain ⟨M, hM, hm⟩ := halfPlaneDifference_strip_bound f hd hR hC hb | |
| 216 | + obtain ⟨htop, hbot⟩ := horizontal_tendsto_of_three_halves_decay (halfPlaneDifference f) 0 R M hR hm | |
| 217 | + have he := verticalMellin_eq_of_horizontal_tendsto (halfPlaneDifference f) 0 R hR | |
| 218 | + (fun z hz => halfPlaneDifference_differentiableAt f hd z hz.1) | |
| 219 | + (halfPlaneDifference_line_integrable f hd hg le_rfl) | |
| 220 | + (halfPlaneDifference_line_integrable f hd hg hR) hbot htop | |
| 221 | + unfold verticalMellin at he | |
| 222 | + apply mul_left_cancel₀ (show ((2 * Real.pi : ℝ) : ℂ)⁻¹ ≠ 0 by | |
| 223 | + apply inv_ne_zero; exact_mod_cast (mul_ne_zero (by norm_num : (2 : ℝ) ≠ 0) Real.pi_ne_zero)) | |
| 224 | + simpa only [Complex.ofReal_inv, Complex.ofReal_mul, Complex.ofReal_ofNat] using he | |
| 225 | + | |
| 226 | +lemma halfPlaneDifference_integral_zero (f : ℂ → ℂ) | |
| 227 | + (hd : ∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ f z) | |
| 228 | + (hg : ∀ R : ℝ, 0 ≤ R → ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, | |
| 229 | + ‖f (line x t)‖ ≤ C * (1 + |t|) ^ (1/2 : ℝ)) | |
| 230 | + (hb : ∃ R₀ B : ℝ, ∀ z : ℂ, R₀ ≤ z.re → ‖f z‖ ≤ B) : | |
| 231 | + (∫ t : ℝ, halfPlaneDifference f (line 0 t)) = 0 := by | |
| 232 | + obtain ⟨R₀, B, hB⟩ := hb | |
| 233 | + have hbpos : 0 ≤ B := (norm_nonneg (f R₀)).trans (hB R₀ (by simp)) | |
| 234 | + have hbound (R : ℝ) (hR : max 2 R₀ ≤ R) : | |
| 235 | + ‖∫ t : ℝ, halfPlaneDifference f (line R t)‖ ≤ (B + ‖f 1‖) * (Real.pi / (R-1)) := by | |
| 236 | + have hR2 : 2 ≤ R := (le_max_left _ _).trans hR | |
| 237 | + have hr : 0 < R - 1 := by linarith | |
| 238 | + have hI := (cauchy_weight_integral hr).1.const_mul (B + ‖f 1‖) | |
| 239 | + calc | |
| 240 | + _ ≤ ∫ t : ℝ, (B + ‖f 1‖) * ((R-1)^2+t^2)⁻¹ := | |
| 241 | + norm_integral_le_of_norm_le hI (by | |
| 242 | + filter_upwards [] with t | |
| 243 | + simpa only [div_eq_mul_inv] using halfPlaneDifference_far_bound f B hR2 t (hB (line R t) (by simpa [line] using (le_max_right 2 R₀).trans hR))) | |
| 244 | + _ = _ := by rw [integral_const_mul, (cauchy_weight_integral hr).2] | |
| 245 | + have ht : Tendsto (fun R : ℝ => (B + ‖f 1‖) * (Real.pi / (R-1))) atTop (𝓝 0) := by | |
| 246 | + have hi : Tendsto (fun R : ℝ => (R-1)⁻¹) atTop (𝓝 0) := | |
| 247 | + tendsto_inv_atTop_zero.comp (tendsto_atTop_add_const_right atTop (-1) tendsto_id) | |
| 248 | + simpa only [sub_eq_add_neg, div_eq_mul_inv, mul_zero] using (hi.const_mul Real.pi).const_mul (B + ‖f 1‖) | |
| 249 | + have hc : Tendsto (fun _R : ℝ => ∫ t : ℝ, halfPlaneDifference f (line 0 t)) atTop (𝓝 0) := by | |
| 250 | + apply squeeze_zero_norm' _ ht | |
| 251 | + filter_upwards [eventually_ge_atTop (max (2 : ℝ) R₀)] with R hR | |
| 252 | + rw [halfPlaneDifference_integral_eq f hd hg (by have := (le_max_left 2 R₀).trans hR; linarith : 0 ≤ R)] | |
| 253 | + exact hbound R hR | |
| 254 | + exact tendsto_nhds_unique tendsto_const_nhds hc | |
| 255 | + | |
| 256 | +lemma halfPlane_weighted_cauchy (f : ℂ → ℂ) | |
| 257 | + (hd : ∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ f z) | |
| 258 | + (hg : ∀ R : ℝ, 0 ≤ R → ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, | |
| 259 | + ‖f (line x t)‖ ≤ C * (1 + |t|) ^ (1/2 : ℝ)) | |
| 260 | + (hb : ∃ R₀ B : ℝ, ∀ z : ℂ, R₀ ≤ z.re → ‖f z‖ ≤ B) : | |
| 261 | + Integrable (fun t : ℝ => f (line 0 t) / (1 + (t : ℂ) ^ 2)) ∧ | |
| 262 | + (∫ t : ℝ, f (line 0 t) / (1 + (t : ℂ) ^ 2)) = (Real.pi : ℂ) * f 1 := by | |
| 263 | + have hconst : Integrable (fun t : ℝ => f 1 * (((1 + t ^ 2)⁻¹ : ℝ) : ℂ)) := | |
| 264 | + integrable_inv_one_add_sq.ofReal.const_mul _ | |
| 265 | + have he (t : ℝ) : f (line 0 t) / (1 + (t : ℂ) ^ 2) = | |
| 266 | + halfPlaneDifference f (line 0 t) + f 1 * (((1 + t ^ 2)⁻¹ : ℝ) : ℂ) := by | |
| 267 | + rw [halfPlaneDifference_boundary] | |
| 268 | + push_cast | |
| 269 | + ring | |
| 270 | + have hi := halfPlaneDifference_line_integrable f hd hg (x := 0) le_rfl | |
| 271 | + refine ⟨(hi.add hconst).congr (Eventually.of_forall (fun t => (he t).symm)), ?_⟩ | |
| 272 | + simp_rw [he] | |
| 273 | + rw [integral_add hi hconst, halfPlaneDifference_integral_zero f hd hg hb, zero_add, | |
| 274 | + integral_const_mul, integral_complex_ofReal, integral_univ_inv_one_add_sq, mul_comm] | |
| 275 | + | |
| 276 | +lemma complex_norm_sq_eq_twice_re_sq_sub_sq_re (z : ℂ) : | |
| 277 | + ‖z‖ ^ 2 = 2 * z.re ^ 2 - (z ^ 2).re := by | |
| 278 | + rw [← Complex.normSq_eq_norm_sq, Complex.normSq_apply] | |
| 279 | + simp only [pow_two, Complex.mul_re] | |
| 280 | + ring | |
| 281 | + | |
| 282 | +lemma halfPlane_weighted_realPart (f : ℂ → ℂ) | |
| 283 | + (hd : ∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ f z) | |
| 284 | + (hg : ∀ R : ℝ, 0 ≤ R → ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, | |
| 285 | + ‖f (line x t)‖ ≤ C * (1 + |t|) ^ (1/4 : ℝ)) | |
| 286 | + (hb : ∃ R₀ B : ℝ, 0 ≤ B ∧ ∀ z : ℂ, R₀ ≤ z.re → ‖f z‖ ≤ B) | |
| 287 | + (hI : Integrable (fun t : ℝ => ‖f (line 0 t)‖ ^ 2 / (1 + t ^ 2))) : | |
| 288 | + Integrable (fun t : ℝ => (f (line 0 t)).re ^ 2 / (1 + t ^ 2)) ∧ | |
| 289 | + (∫ t : ℝ, ‖f (line 0 t)‖ ^ 2 / (1 + t ^ 2)) ≤ | |
| 290 | + 2 * (∫ t : ℝ, (f (line 0 t)).re ^ 2 / (1 + t ^ 2)) + Real.pi * ‖f 1‖ ^ 2 := by | |
| 291 | + have hsq := halfPlane_weighted_cauchy (fun z => f z ^ 2) | |
| 292 | + (fun z hz => (hd z hz).pow 2) (by | |
| 293 | + intro R hR | |
| 294 | + obtain ⟨C,hC,hg⟩ := hg R hR | |
| 295 | + refine ⟨C ^ 2, sq_nonneg _, ?_⟩ | |
| 296 | + intro x hx t | |
| 297 | + rw [norm_pow] | |
| 298 | + have hh := (sq_le_sq₀ (norm_nonneg _) (by positivity)).mpr (hg x hx t) | |
| 299 | + have hp : ((1 + |t|) ^ (1/4 : ℝ)) ^ 2 = (1 + |t|) ^ (1/2 : ℝ) := by | |
| 300 | + rw [← Real.rpow_natCast ((1 + |t|) ^ (1/4 : ℝ)) 2, | |
| 301 | + ← Real.rpow_mul (by positivity : 0 ≤ 1 + |t|)] | |
| 302 | + norm_num | |
| 303 | + simpa only [mul_pow, hp] using hh) (by | |
| 304 | + obtain ⟨R₀,B,hB,hb⟩ := hb | |
| 305 | + refine ⟨R₀, B ^ 2, ?_⟩ | |
| 306 | + intro z hz | |
| 307 | + rw [norm_pow] | |
| 308 | + exact (sq_le_sq₀ (norm_nonneg _) hB).mpr (hb z hz)) | |
| 309 | + have hir : Integrable (fun t : ℝ => (f (line 0 t)).re ^ 2 / (1 + t ^ 2)) := by | |
| 310 | + apply hI.mono' ?_ (Eventually.of_forall (fun t => ?_)) | |
| 311 | + · apply Continuous.aestronglyMeasurable | |
| 312 | + have hc : Continuous (fun t : ℝ => f (line 0 t)) := by | |
| 313 | + apply continuous_iff_continuousAt.mpr | |
| 314 | + intro t | |
| 315 | + exact (hd (line 0 t) (by simp [line])).continuousAt.comp | |
| 316 | + (show ContinuousAt (fun t : ℝ => line 0 t) t by unfold line; fun_prop) | |
| 317 | + exact ((Complex.continuous_re.comp hc).pow 2).div (by fun_prop) (by intro t; positivity) | |
| 318 | + · rw [Real.norm_eq_abs, abs_of_nonneg (by positivity)] | |
| 319 | + apply div_le_div_of_nonneg_right _ (by positivity) | |
| 320 | + have hh := Complex.abs_re_le_norm (f (line 0 t)) | |
| 321 | + simpa only [sq_abs] using (sq_le_sq₀ (abs_nonneg _) (norm_nonneg _)).mpr hh | |
| 322 | + have he (t : ℝ) : ‖f (line 0 t)‖ ^ 2 / (1 + t ^ 2) = | |
| 323 | + 2 * ((f (line 0 t)).re ^ 2 / (1 + t ^ 2)) - | |
| 324 | + (f (line 0 t) ^ 2 / (1 + (t : ℂ) ^ 2)).re := by | |
| 325 | + rw [complex_norm_sq_eq_twice_re_sq_sub_sq_re] | |
| 326 | + have hh : (f (line 0 t) ^ 2 / (1 + (t : ℂ) ^ 2)).re = | |
| 327 | + (f (line 0 t) ^ 2).re / (1 + t ^ 2) := by | |
| 328 | + rw [show (1 + (t : ℂ) ^ 2) = ((1 + t ^ 2 : ℝ) : ℂ) by push_cast; rfl] | |
| 329 | + exact Complex.div_ofReal_re _ _ | |
| 330 | + rw [hh] | |
| 331 | + ring | |
| 332 | + refine ⟨hir, ?_⟩ | |
| 333 | + simp_rw [he] | |
| 334 | + have hsqre : Integrable (fun t : ℝ => (f (line 0 t) ^ 2 / (1 + (t : ℂ) ^ 2)).re) := hsq.1.re | |
| 335 | + have heint : (∫ t : ℝ, (f (line 0 t) ^ 2 / (1 + (t : ℂ) ^ 2)).re) = | |
| 336 | + (∫ t : ℝ, f (line 0 t) ^ 2 / (1 + (t : ℂ) ^ 2)).re := integral_re hsq.1 | |
| 337 | + rw [integral_sub (hir.const_mul 2) hsqre, integral_const_mul, heint, hsq.2] | |
| 338 | + simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero] | |
| 339 | + have hr : -(f 1 ^ 2).re ≤ ‖f 1‖ ^ 2 := by | |
| 340 | + have hh := (neg_le_abs (f 1 ^ 2).re).trans (Complex.abs_re_le_norm (f 1 ^ 2)) | |
| 341 | + simpa only [norm_pow] using hh | |
| 342 | + have hh := mul_le_mul_of_nonneg_left hr Real.pi_pos.le | |
| 343 | + linarith | |
| 344 | + | |
| 345 | +end ConditionalGoldbach | |
+98 −0 ConditionalGoldbach/Proofs/HardyArithmeticTheorems.lean added View file
| @@ -0,0 +1,98 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.ArithmeticKernelRealization | |
| 4 | +public import ConditionalGoldbach.Proofs.HardyKernelResidual | |
| 5 | +public import ConditionalGoldbach.Proofs.CharacterGrowth | |
| 6 | +public import ConditionalGoldbach.Proofs.ZetaTruncation | |
| 7 | + | |
| 8 | +/-! Full arithmetic realization and point-evaluation conclusions from the proved growth estimates. | |
| 9 | +The generic kernel foundations are independent of the application theorems. -/ | |
| 10 | +public section | |
| 11 | + | |
| 12 | +set_option autoImplicit false | |
| 13 | +noncomputable section | |
| 14 | +open MeasureTheory Filter Set Complex | |
| 15 | +open scoped Topology ComplexConjugate BigOperators | |
| 16 | +namespace ConditionalGoldbach | |
| 17 | + | |
| 18 | +lemma arithmeticKernel_growth_inputs (N : ℕ) [NeZero N] | |
| 19 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) : | |
| 20 | + ∃ L Z : ℝ, 0 ≤ L ∧ 0 ≤ Z ∧ | |
| 21 | + (∀ χ ∈ oddCharacters N, ∀ s : ℂ, s.re ∈ Icc (alpha N) beta → | |
| 22 | + ‖logDerivative χ s‖ ≤ L * Real.log (N * (|s.im| + 2)) ^ 2) ∧ | |
| 23 | + (∀ w : ℂ, w.re ∈ Icc (3 / 4) (1 - 2 * alpha N) → | |
| 24 | + ‖riemannZeta w‖ ≤ Z * (1 + |w.im|) ^ (1 / 4 : ℝ)) := by | |
| 25 | + obtain ⟨L, hL, hlog⟩ := logDerivative_uniform_bound (alpha N) beta (large_alpha_pos hlarge) ha.le | |
| 26 | + obtain ⟨Z, hZ, hζ⟩ := riemannZeta_three_quarter_uniform | |
| 27 | + (by linarith [large_alpha_pos hlarge] : 1 - 2 * alpha N < 1) | |
| 28 | + refine ⟨L, Z, hL.le, hZ, ?_, hζ⟩ | |
| 29 | + intro χ hχ s hs | |
| 30 | + have hh := hlog N inferInstance (large_parameters hlarge).1 hGRH χ | |
| 31 | + (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2) s.re hs s.im | |
| 32 | + have he : line s.re s.im = s := by apply Complex.ext <;> simp [line] | |
| 33 | + simpa only [he] using hh | |
| 34 | + | |
| 35 | +theorem proposition_5_3 (N : ℕ) [NeZero N] (_hN : Even N) | |
| 36 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) : | |
| 37 | + (∀ x ∈ ({alpha N, beta} : Finset ℝ), ∀ y ∈ ({alpha N, beta} : Finset ℝ), | |
| 38 | + MemLp (fun p : ℝ × ℝ => weightedKernel N (line x p.1) (line y p.2)) 2 volume) ∧ | |
| 39 | + RepresentsKernel ha N (weightedKernel N) (residualOperator ha N) ∧ | |
| 40 | + IsCompactOperator (residualOperator ha N) ∧ IsSelfAdjoint (residualOperator ha N) ∧ | |
| 41 | + IsHilbertSchmidt (residualOperator ha N) ∧ Nonempty (SpectralData (residualOperator ha N)) ∧ | |
| 42 | + (∑' j, eigenvalues (residualOperator ha N) j ^ 2) = hsNorm (residualOperator ha N) ^ 2 ∧ | |
| 43 | + hsNorm (residualOperator ha N) ^ 2 = BoundaryKernelSquareIntegral (alpha N) beta (weightedKernel N) ∧ | |
| 44 | + ‖residualOperator ha N‖ = sSup (Set.range (fun j => |eigenvalues (residualOperator ha N) j|)) ∧ | |
| 45 | + (residualOperator ha N ≠ 0 → ∃ j, |eigenvalues (residualOperator ha N) j| = ‖residualOperator ha N‖) := by | |
| 46 | + obtain ⟨L, Z, hL, hZ, hlog, hζ⟩ := arithmeticKernel_growth_inputs N hlarge hGRH ha | |
| 47 | + exact residualOperator_spec_of_growth N hlarge hGRH ha L Z hL hZ hlog hζ | |
| 48 | + | |
| 49 | +/-- The spectral realization of the arithmetic residual operator from Proposition 5.3. -/ | |
| 50 | +theorem residualOperator_has_spectral_data (N : ℕ) [NeZero N] (hN : Even N) | |
| 51 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) : | |
| 52 | + Nonempty (SpectralData (residualOperator ha N)) := by | |
| 53 | + obtain ⟨_, _, _, _, _, hspectral, _⟩ := proposition_5_3 N hN hlarge hGRH ha | |
| 54 | + exact hspectral | |
| 55 | + | |
| 56 | +theorem proposition_5_4_kernel_pairing (N : ℕ) [NeZero N] (_hN : Even N) | |
| 57 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) | |
| 58 | + (s z : ℂ) (hs : s ∈ strip (alpha N) beta) (hz : z ∈ strip (alpha N) beta) : | |
| 59 | + weightedKernel N s z = | |
| 60 | + paperInner (residualOperator ha N (evaluationVector z)) (evaluationVector s) := by | |
| 61 | + obtain ⟨L, Z, hL, hZ, hlog, hζ⟩ := arithmeticKernel_growth_inputs N hlarge hGRH ha | |
| 62 | + exact residualOperator_pairing_of_growth N hlarge hGRH ha L Z hL hZ hlog hζ s z hs hz | |
| 63 | + | |
| 64 | +theorem proposition_5_3_kernel_integrability (N : ℕ) [NeZero N] (_hN : Even N) | |
| 65 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) : | |
| 66 | + ∀ (h : HardySpace (alpha N) beta) (s : ℂ), s ∈ strip (alpha N) beta → | |
| 67 | + Integrable (fun t : ℝ => weightedKernel N s (line (alpha N) t) * | |
| 68 | + (boundaryTraces ha h).1 t) ∧ | |
| 69 | + Integrable (fun t : ℝ => weightedKernel N s (line beta t) * | |
| 70 | + (boundaryTraces ha h).2 t) := by | |
| 71 | + obtain ⟨L, Z, hL, hZ, hlog, hζ⟩ := arithmeticKernel_growth_inputs N hlarge hGRH ha | |
| 72 | + obtain ⟨_, hcol⟩ := weightedKernel_inputs_of_growth N hlarge hGRH ha L Z hL hZ hlog hζ | |
| 73 | + exact kernelAction_integrable_of_hardyColumns ha (weightedKernel N) (weightedKernel_hermitian N) hcol | |
| 74 | + | |
| 75 | +theorem proposition_5_4 (N : ℕ) [NeZero N] (hN : Even N) | |
| 76 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) | |
| 77 | + (s z : ℂ) (hs : s ∈ strip (alpha N) beta) (hz : z ∈ strip (alpha N) beta) : | |
| 78 | + (∀ h : HardySpace (alpha N) beta, fourierLaplace h s = paperInner h (evaluationVector s)) ∧ | |
| 79 | + fourierLaplace (evaluationVector z : HardySpace (alpha N) beta) s = reproducingKernel (alpha N) beta s z ∧ | |
| 80 | + ‖(evaluationVector s : HardySpace (alpha N) beta)‖ ^ 2 ≤ 1 / (8 * pointDistance (alpha N) beta s) ∧ | |
| 81 | + ‖residual N s (conj z)‖ ≤ ‖residualOperator ha N‖ * ‖1 + s‖ * ‖1 + z‖ / | |
| 82 | + (8 * Real.sqrt (pointDistance (alpha N) beta s * pointDistance (alpha N) beta z)) := by | |
| 83 | + exact ⟨evaluationVector_spec hs, evaluationVector_reproducingKernel ha hs hz, | |
| 84 | + evaluationVector_norm_sq_le ha hs, | |
| 85 | + residual_norm_le_of_kernel_pairing ha (large_alpha_pos hlarge).le N (residualOperator ha N) | |
| 86 | + s z hs hz (proposition_5_4_kernel_pairing N hN hlarge hGRH ha s z hs hz)⟩ | |
| 87 | + | |
| 88 | +theorem proposition_5_4_fixed_contour : ∃ C : ℝ, 0 < C ∧ | |
| 89 | + ∀ (N : ℕ) (_ : NeZero N), Even N → Real.exp 10 < (N : ℝ) → GRH N → | |
| 90 | + ∀ ha : alpha N < beta, ∀ v t : ℝ, | |
| 91 | + ‖residual N (line sigmaStar v) (line sigmaStar t)‖ ≤ | |
| 92 | + C * ‖residualOperator ha N‖ * (1 + |v| + |t|) ^ 2 := by | |
| 93 | + refine ⟨45, by norm_num, ?_⟩ | |
| 94 | + intro N hNZ hN hlarge hGRH ha v t | |
| 95 | + exact residual_fixed_contour_bound_of_pairing N hlarge ha (residualOperator ha N) | |
| 96 | + (proposition_5_4_kernel_pairing N hN hlarge hGRH ha) v t | |
| 97 | + | |
| 98 | +end ConditionalGoldbach | |
+170 −0 ConditionalGoldbach/Proofs/HardyBoundary.lean added View file
| @@ -0,0 +1,170 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyInterior | |
| 4 | + | |
| 5 | +/-! Construction of the endpoint Fourier–Laplace traces by L² limits. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | +open MeasureTheory Filter Set Complex FourierTransform | |
| 10 | +open scoped Topology | |
| 11 | +namespace ConditionalGoldbach | |
| 12 | +open Analysis | |
| 13 | + | |
| 14 | +private def hardyLineDensity {a b : ℝ} (ψ : HardySpace a b) (x : Icc a b) : | |
| 15 | + Lp ℂ 2 (volume : Measure ℝ) := | |
| 16 | + (hardy_weighted_line_memLp x.property ψ).toLp _ | |
| 17 | + | |
| 18 | +private lemma hardyLineDensity_diff_bound {a b : ℝ} (ψ : HardySpace a b) | |
| 19 | + (x y : Icc a b) (τ : ℝ) : | |
| 20 | + ‖(Real.exp (x.val * τ) : ℂ) * ψ τ - (Real.exp (y.val * τ) : ℂ) * ψ τ‖ ^ 2 ≤ | |
| 21 | + 4 * (‖ψ τ‖ ^ 2 * hardyWeight a b τ) := by | |
| 22 | + have hx := mul_le_mul_of_nonneg_right (hardy_exp_sq_le_weight x.property τ) (sq_nonneg ‖ψ τ‖) | |
| 23 | + have hy := mul_le_mul_of_nonneg_right (hardy_exp_sq_le_weight y.property τ) (sq_nonneg ‖ψ τ‖) | |
| 24 | + have hn := norm_sub_le ((Real.exp (x.val * τ) : ℂ) * ψ τ) | |
| 25 | + ((Real.exp (y.val * τ) : ℂ) * ψ τ) | |
| 26 | + have hn0 := norm_nonneg ((Real.exp (x.val * τ) : ℂ) * ψ τ - (Real.exp (y.val * τ) : ℂ) * ψ τ) | |
| 27 | + simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs, | |
| 28 | + abs_of_pos (Real.exp_pos _)] at hn | |
| 29 | + have hp : 0 ≤ (Real.exp (x.val * τ) + Real.exp (y.val * τ)) * ‖ψ τ‖ := by positivity | |
| 30 | + have hs := (sq_le_sq₀ hn0 hp).mpr (by nlinarith [hn]) | |
| 31 | + nlinarith [sq_nonneg ((Real.exp (x.val * τ) - Real.exp (y.val * τ)) * ‖ψ τ‖)] | |
| 32 | + | |
| 33 | +private lemma hardyLineDensity_continuous {a b : ℝ} (ψ : HardySpace a b) : | |
| 34 | + Continuous (hardyLineDensity ψ) := by | |
| 35 | + apply continuous_iff_continuousAt.mpr | |
| 36 | + intro y | |
| 37 | + rw [ContinuousAt, tendsto_iff_norm_sub_tendsto_zero] | |
| 38 | + have hdct : Tendsto (fun x : Icc a b => ∫ τ : ℝ, | |
| 39 | + ‖(Real.exp (x.val * τ) : ℂ) * ψ τ - (Real.exp (y.val * τ) : ℂ) * ψ τ‖ ^ 2) | |
| 40 | + (𝓝 y) (𝓝 0) := by | |
| 41 | + convert tendsto_integral_filter_of_dominated_convergence (l := 𝓝 y) | |
| 42 | + (fun τ : ℝ => 4 * (‖ψ τ‖ ^ 2 * hardyWeight a b τ)) | |
| 43 | + (F := fun x : Icc a b => fun τ : ℝ => | |
| 44 | + ‖(Real.exp (x.val * τ) : ℂ) * ψ τ - (Real.exp (y.val * τ) : ℂ) * ψ τ‖ ^ 2) | |
| 45 | + (f := fun _ : ℝ => (0 : ℝ)) ?_ ?_ | |
| 46 | + ((hardySpace_integrable_weighted_sq ψ).const_mul 4) ?_ using 1 <;> try simp only [integral_zero] | |
| 47 | + · exact Eventually.of_forall (fun x : Icc a b => | |
| 48 | + ((hardy_weighted_line_memLp x.property ψ).sub | |
| 49 | + (hardy_weighted_line_memLp y.property ψ)).aestronglyMeasurable.norm.pow 2) | |
| 50 | + · exact Eventually.of_forall (fun x => Eventually.of_forall (fun τ => by | |
| 51 | + rw [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg _)] | |
| 52 | + exact hardyLineDensity_diff_bound ψ x y τ)) | |
| 53 | + · apply Eventually.of_forall | |
| 54 | + intro τ | |
| 55 | + have h : Continuous (fun x : Icc a b => | |
| 56 | + ‖(Real.exp (x.val * τ) : ℂ) * ψ τ - (Real.exp (y.val * τ) : ℂ) * ψ τ‖ ^ 2) := by fun_prop | |
| 57 | + simpa only [sub_self, norm_zero, zero_pow (by norm_num : (2 : ℕ) ≠ 0)] using h.tendsto y | |
| 58 | + have hs := Real.continuous_sqrt.continuousAt.tendsto.comp hdct | |
| 59 | + simp only [Real.sqrt_zero] at hs | |
| 60 | + convert hs using 1 | |
| 61 | + funext x | |
| 62 | + have hfx := hardy_weighted_line_memLp x.property ψ | |
| 63 | + have hfy := hardy_weighted_line_memLp y.property ψ | |
| 64 | + change ‖hfx.toLp _ - hfy.toLp _‖ = _ | |
| 65 | + rw [← MemLp.toLp_sub] | |
| 66 | + exact toLp_norm_eq_sqrt_integral (hfx.sub hfy) | |
| 67 | + | |
| 68 | + | |
| 69 | +private def hardyCompletedLine {a b : ℝ} (ψ : HardySpace a b) (x : Icc a b) : | |
| 70 | + Lp ℂ 2 (volume : Measure ℝ) := physicalFourierL2 (hardyLineDensity ψ x) | |
| 71 | + | |
| 72 | +private lemma hardyCompletedLine_continuous {a b : ℝ} (ψ : HardySpace a b) : | |
| 73 | + Continuous (hardyCompletedLine ψ) := | |
| 74 | + physicalFourierL2_continuous.comp (hardyLineDensity_continuous ψ) | |
| 75 | + | |
| 76 | +private lemma hardyCompletedLine_interior {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) | |
| 77 | + (x : Ioo a b) : | |
| 78 | + hardyCompletedLine ψ ⟨x.val, ⟨x.property.1.le, x.property.2.le⟩⟩ = | |
| 79 | + (hardy_interiorLine_memLp hab x.property ψ).toLp _ := by | |
| 80 | + apply Lp.ext | |
| 81 | + have h := physicalFourierL2_coe_classical (hardy_weighted_line_integrable x.property ψ) | |
| 82 | + (hardy_weighted_line_memLp ⟨x.property.1.le, x.property.2.le⟩ ψ) | |
| 83 | + filter_upwards [h, (hardy_interiorLine_memLp hab x.property ψ).coeFn_toLp] with t ht ht' | |
| 84 | + change physicalFourierL2 _ t = _ | |
| 85 | + dsimp only [hardyLineDensity] | |
| 86 | + rw [ht, ht', fourierLaplace_line_eq_classical_fourier] | |
| 87 | + | |
| 88 | +/-- Endpoint `L²` limits of the Fourier–Laplace representation, with the original filters. -/ | |
| 89 | +theorem hardy_boundaryTraces_exist {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) : | |
| 90 | + ∃ p : Lp ℂ 2 (volume : Measure ℝ) × Lp ℂ 2 (volume : Measure ℝ), | |
| 91 | + Tendsto (fun x : Ioo a b => (hardy_interiorLine_memLp hab x.property ψ).toLp | |
| 92 | + (fun t : ℝ => fourierLaplace ψ (line x t))) | |
| 93 | + (comap Subtype.val (nhdsWithin a (Ioo a b))) (𝓝 p.1) ∧ | |
| 94 | + Tendsto (fun x : Ioo a b => (hardy_interiorLine_memLp hab x.property ψ).toLp | |
| 95 | + (fun t : ℝ => fourierLaplace ψ (line x t))) | |
| 96 | + (comap Subtype.val (nhdsWithin b (Ioo a b))) (𝓝 p.2) := by | |
| 97 | + refine ⟨(hardyCompletedLine ψ ⟨a, ⟨le_rfl, hab.le⟩⟩, | |
| 98 | + hardyCompletedLine ψ ⟨b, ⟨hab.le, le_rfl⟩⟩), ?_, ?_⟩ | |
| 99 | + · have he : Tendsto (fun x : Ioo a b => | |
| 100 | + (⟨x.val, ⟨x.property.1.le, x.property.2.le⟩⟩ : Icc a b)) | |
| 101 | + (comap Subtype.val (nhdsWithin a (Ioo a b))) (𝓝 ⟨a, ⟨le_rfl, hab.le⟩⟩) := by | |
| 102 | + rw [tendsto_subtype_rng] | |
| 103 | + exact (tendsto_comap.mono_right nhdsWithin_le_nhds) | |
| 104 | + have h := ((hardyCompletedLine_continuous ψ).tendsto ⟨a, ⟨le_rfl, hab.le⟩⟩).comp he | |
| 105 | + simpa only [Function.comp_def, hardyCompletedLine_interior hab ψ] using h | |
| 106 | + · have he : Tendsto (fun x : Ioo a b => | |
| 107 | + (⟨x.val, ⟨x.property.1.le, x.property.2.le⟩⟩ : Icc a b)) | |
| 108 | + (comap Subtype.val (nhdsWithin b (Ioo a b))) (𝓝 ⟨b, ⟨hab.le, le_rfl⟩⟩) := by | |
| 109 | + rw [tendsto_subtype_rng] | |
| 110 | + exact (tendsto_comap.mono_right nhdsWithin_le_nhds) | |
| 111 | + have h := ((hardyCompletedLine_continuous ψ).tendsto ⟨b, ⟨hab.le, le_rfl⟩⟩).comp he | |
| 112 | + simpa only [Function.comp_def, hardyCompletedLine_interior hab ψ] using h | |
| 113 | + | |
| 114 | + | |
| 115 | +private lemma hardyCompletedLine_norm_sq {a b : ℝ} (ψ : HardySpace a b) (x : Icc a b) : | |
| 116 | + ‖hardyCompletedLine ψ x‖ ^ 2 = ∫ τ : ℝ, ‖ψ τ‖ ^ 2 * Real.exp (2 * x.val * τ) := by | |
| 117 | + rw [hardyCompletedLine, physicalFourierL2_norm_sq, L2_norm_sq_integral] | |
| 118 | + apply integral_congr_ae | |
| 119 | + filter_upwards [(hardy_weighted_line_memLp x.property ψ).coeFn_toLp] with τ ht | |
| 120 | + dsimp only [hardyLineDensity] | |
| 121 | + rw [ht] | |
| 122 | + simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs, | |
| 123 | + abs_of_pos (Real.exp_pos _), mul_pow, ← Real.exp_nat_mul, Nat.cast_ofNat] | |
| 124 | + rw [show 2 * (x.val * τ) = 2 * x.val * τ by ring] | |
| 125 | + exact mul_comm _ _ | |
| 126 | + | |
| 127 | +/-- The two endpoint norms have exactly the paper's sum normalization. -/ | |
| 128 | +theorem hardy_boundary_norm_of_traces {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) | |
| 129 | + (left right : Lp ℂ 2 (volume : Measure ℝ)) | |
| 130 | + (hl : Tendsto (fun x : Ioo a b => (hardy_interiorLine_memLp hab x.property ψ).toLp | |
| 131 | + (fun t : ℝ => fourierLaplace ψ (line x t))) | |
| 132 | + (comap Subtype.val (nhdsWithin a (Ioo a b))) (𝓝 left)) | |
| 133 | + (hr : Tendsto (fun x : Ioo a b => (hardy_interiorLine_memLp hab x.property ψ).toLp | |
| 134 | + (fun t : ℝ => fourierLaplace ψ (line x t))) | |
| 135 | + (comap Subtype.val (nhdsWithin b (Ioo a b))) (𝓝 right)) : | |
| 136 | + ‖ψ‖ ^ 2 = ‖left‖ ^ 2 + ‖right‖ ^ 2 := by | |
| 137 | + have ha : NeBot (comap (Subtype.val : Ioo a b → ℝ) (nhdsWithin a (Ioo a b))) := | |
| 138 | + (left_nhdsWithin_Ioo_neBot hab).comap_of_range_mem (by simpa only [Subtype.range_coe] using (self_mem_nhdsWithin : Ioo a b ∈ nhdsWithin a (Ioo a b))) | |
| 139 | + have hb : NeBot (comap (Subtype.val : Ioo a b → ℝ) (nhdsWithin b (Ioo a b))) := | |
| 140 | + (right_nhdsWithin_Ioo_neBot hab).comap_of_range_mem (by simpa only [Subtype.range_coe] using (self_mem_nhdsWithin : Ioo a b ∈ nhdsWithin b (Ioo a b))) | |
| 141 | + let := ha | |
| 142 | + let := hb | |
| 143 | + have hleft : Tendsto (fun x : Ioo a b => | |
| 144 | + (⟨x.val, ⟨x.property.1.le, x.property.2.le⟩⟩ : Icc a b)) | |
| 145 | + (comap Subtype.val (nhdsWithin a (Ioo a b))) (𝓝 ⟨a, ⟨le_rfl, hab.le⟩⟩) := by | |
| 146 | + rw [tendsto_subtype_rng] | |
| 147 | + exact tendsto_comap.mono_right nhdsWithin_le_nhds | |
| 148 | + have hright : Tendsto (fun x : Ioo a b => | |
| 149 | + (⟨x.val, ⟨x.property.1.le, x.property.2.le⟩⟩ : Icc a b)) | |
| 150 | + (comap Subtype.val (nhdsWithin b (Ioo a b))) (𝓝 ⟨b, ⟨hab.le, le_rfl⟩⟩) := by | |
| 151 | + rw [tendsto_subtype_rng] | |
| 152 | + exact tendsto_comap.mono_right nhdsWithin_le_nhds | |
| 153 | + have hl' := ((hardyCompletedLine_continuous ψ).tendsto ⟨a, ⟨le_rfl, hab.le⟩⟩).comp hleft | |
| 154 | + have hr' := ((hardyCompletedLine_continuous ψ).tendsto ⟨b, ⟨hab.le, le_rfl⟩⟩).comp hright | |
| 155 | + simp only [Function.comp_def, hardyCompletedLine_interior hab ψ] at hl' hr' | |
| 156 | + rw [tendsto_nhds_unique hl hl', tendsto_nhds_unique hr hr', | |
| 157 | + hardyCompletedLine_norm_sq, hardyCompletedLine_norm_sq, hardySpace_norm_sq_integral] | |
| 158 | + have hia := (hardy_weighted_line_memLp (x := a) ⟨le_rfl, hab.le⟩ ψ).norm.integrable_sq | |
| 159 | + have hib := (hardy_weighted_line_memLp (x := b) ⟨hab.le, le_rfl⟩ ψ).norm.integrable_sq | |
| 160 | + have ha' : Integrable (fun τ : ℝ => ‖ψ τ‖ ^ 2 * Real.exp (2 * a * τ)) := by | |
| 161 | + simpa only [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), | |
| 162 | + mul_pow, ← Real.exp_nat_mul, Nat.cast_ofNat, mul_assoc, mul_comm, mul_left_comm] using hia | |
| 163 | + have hb' : Integrable (fun τ : ℝ => ‖ψ τ‖ ^ 2 * Real.exp (2 * b * τ)) := by | |
| 164 | + simpa only [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), | |
| 165 | + mul_pow, ← Real.exp_nat_mul, Nat.cast_ofNat, mul_assoc, mul_comm, mul_left_comm] using hib | |
| 166 | + rw [← integral_add ha' hb'] | |
| 167 | + apply integral_congr_ae | |
| 168 | + exact Eventually.of_forall (fun τ => by simp only [hardyWeight, mul_add]) | |
| 169 | + | |
| 170 | +end ConditionalGoldbach | |
+149 −0 ConditionalGoldbach/Proofs/HardyContinuousBoundary.lean added View file
| @@ -0,0 +1,149 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyConverse | |
| 4 | + | |
| 5 | +/-! Exact traces for holomorphic strip functions with a common integrable square majorant. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex | |
| 11 | +open scoped Topology ComplexConjugate | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma continuous_closedStrip_line {a b : ℝ} {f : ℂ → ℂ} | |
| 15 | + (hf : ContinuousOn f {s : ℂ | s.re ∈ Icc a b}) (x : Icc a b) : | |
| 16 | + Continuous (fun t : ℝ => f (line x t)) := by | |
| 17 | + apply hf.comp_continuous (by unfold line; fun_prop) | |
| 18 | + intro t | |
| 19 | + simpa only [Set.mem_ofPred_eq, line, Complex.add_re, Complex.ofReal_re, | |
| 20 | + Complex.mul_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, | |
| 21 | + zero_mul, sub_zero, add_zero] using x.property | |
| 22 | + | |
| 23 | +lemma closedStrip_line_memLp_of_majorant {a b : ℝ} {f : ℂ → ℂ} {M : ℝ → ℝ} | |
| 24 | + (hf : ContinuousOn f {s : ℂ | s.re ∈ Icc a b}) (hM : Integrable M) | |
| 25 | + (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ^ 2 ≤ M t) (x : Icc a b) : | |
| 26 | + MemLp (fun t : ℝ => f (line x t)) 2 volume := by | |
| 27 | + apply (memLp_two_iff_integrable_sq_norm (continuous_closedStrip_line hf x).aestronglyMeasurable).mpr | |
| 28 | + apply hM.mono' ((continuous_closedStrip_line hf x).norm.pow 2).aestronglyMeasurable | |
| 29 | + filter_upwards [] with t | |
| 30 | + simpa only [Pi.pow_apply, Real.norm_eq_abs, abs_sq] using hbound x x.property t | |
| 31 | + | |
| 32 | +lemma closedStrip_toLp_continuous {a b : ℝ} {f : ℂ → ℂ} {M : ℝ → ℝ} | |
| 33 | + (hf : ContinuousOn f {s : ℂ | s.re ∈ Icc a b}) (hM : Integrable M) | |
| 34 | + (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ^ 2 ≤ M t) : | |
| 35 | + Continuous (fun x : Icc a b => (closedStrip_line_memLp_of_majorant hf hM hbound x).toLp _) := by | |
| 36 | + apply continuous_iff_continuousAt.mpr | |
| 37 | + intro y | |
| 38 | + rw [ContinuousAt, tendsto_iff_norm_sub_tendsto_zero] | |
| 39 | + have hdct : Tendsto (fun x : Icc a b => ∫ t : ℝ, ‖f (line x t) - f (line y t)‖ ^ 2) | |
| 40 | + (𝓝 y) (𝓝 0) := by | |
| 41 | + convert tendsto_integral_filter_of_dominated_convergence (l := 𝓝 y) (fun t : ℝ => 4 * M t) | |
| 42 | + (F := fun x : Icc a b => fun t : ℝ => ‖f (line x t) - f (line y t)‖ ^ 2) | |
| 43 | + (f := fun _ : ℝ => (0 : ℝ)) ?_ ?_ (hM.const_mul 4) ?_ using 1 <;> try simp only [integral_zero] | |
| 44 | + · exact Eventually.of_forall (fun x => | |
| 45 | + ((continuous_closedStrip_line hf x).sub (continuous_closedStrip_line hf y)).norm.pow 2 |>.aestronglyMeasurable) | |
| 46 | + · apply Eventually.of_forall | |
| 47 | + intro x | |
| 48 | + filter_upwards [] with t | |
| 49 | + rw [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg _)] | |
| 50 | + have hn := norm_sub_le (f (line x t)) (f (line y t)) | |
| 51 | + have hs := (sq_le_sq₀ (norm_nonneg _) (add_nonneg (norm_nonneg _) (norm_nonneg _))).mpr hn | |
| 52 | + nlinarith [hbound x x.property t, hbound y y.property t, | |
| 53 | + sq_nonneg (‖f (line x t)‖ - ‖f (line y t)‖)] | |
| 54 | + · apply Eventually.of_forall | |
| 55 | + intro t | |
| 56 | + have hc : Continuous (fun x : Icc a b => f (line x t)) := by | |
| 57 | + apply hf.comp_continuous (by unfold line; fun_prop) | |
| 58 | + intro x | |
| 59 | + simpa only [Set.mem_ofPred_eq, line, Complex.add_re, Complex.ofReal_re, | |
| 60 | + Complex.mul_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, | |
| 61 | + zero_mul, sub_zero, add_zero] using x.property | |
| 62 | + have hct : Continuous (fun x : Icc a b => ‖f (line x t) - f (line y t)‖ ^ 2) := | |
| 63 | + (hc.sub continuous_const).norm.pow 2 | |
| 64 | + simpa only [sub_self, norm_zero, zero_pow (by norm_num : (2 : ℕ) ≠ 0)] using hct.tendsto y | |
| 65 | + have hs := Real.continuous_sqrt.continuousAt.tendsto.comp hdct | |
| 66 | + simp only [Real.sqrt_zero] at hs | |
| 67 | + convert hs using 1 | |
| 68 | + funext x | |
| 69 | + let fx := (closedStrip_line_memLp_of_majorant hf hM hbound x).toLp (fun t : ℝ => f (line x t)) | |
| 70 | + let fy := (closedStrip_line_memLp_of_majorant hf hM hbound y).toLp (fun t : ℝ => f (line y t)) | |
| 71 | + have he : ‖fx - fy‖ ^ 2 = ∫ t : ℝ, ‖f (line x t) - f (line y t)‖ ^ 2 := by | |
| 72 | + rw [l2_norm_sq_integral] | |
| 73 | + apply integral_congr_ae | |
| 74 | + filter_upwards [Lp.coeFn_sub fx fy, | |
| 75 | + (closedStrip_line_memLp_of_majorant hf hM hbound x).coeFn_toLp, | |
| 76 | + (closedStrip_line_memLp_of_majorant hf hM hbound y).coeFn_toLp] with t ht hx hy | |
| 77 | + simp only [ht, Pi.sub_apply, fx, fy, hx, hy] | |
| 78 | + change ‖fx - fy‖ = Real.sqrt (∫ t : ℝ, ‖f (line x t) - f (line y t)‖ ^ 2) | |
| 79 | + rw [← he, Real.sqrt_sq (norm_nonneg _)] | |
| 80 | + | |
| 81 | +lemma rawHardy_of_closedStrip_majorant {a b : ℝ} (_hab : a < b) {f : ℂ → ℂ} {M : ℝ → ℝ} | |
| 82 | + (hhol : DifferentiableOn ℂ f (strip a b)) | |
| 83 | + (hc : ContinuousOn f {s : ℂ | s.re ∈ Icc a b}) (hM : Integrable M) | |
| 84 | + (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ^ 2 ≤ M t) : IsRawHardy a b f := by | |
| 85 | + refine ⟨hhol, ⟨2 * ∫ t : ℝ, M t, ?_⟩⟩ | |
| 86 | + intro ε hε hε' | |
| 87 | + have hl : a + ε ∈ Icc a b := ⟨by linarith, by linarith⟩ | |
| 88 | + have hr : b - ε ∈ Icc a b := ⟨by linarith, by linarith⟩ | |
| 89 | + have hil := (closedStrip_line_memLp_of_majorant hc hM hbound ⟨a + ε, hl⟩).norm.integrable_sq | |
| 90 | + have hir := (closedStrip_line_memLp_of_majorant hc hM hbound ⟨b - ε, hr⟩).norm.integrable_sq | |
| 91 | + refine ⟨hil.add hir, ?_⟩ | |
| 92 | + rw [integral_add hil hir] | |
| 93 | + have hleft := integral_mono hil hM (hbound (a + ε) hl) | |
| 94 | + have hright := integral_mono hir hM (hbound (b - ε) hr) | |
| 95 | + linarith | |
| 96 | + | |
| 97 | +lemma hardy_representation_exact_boundary {a b : ℝ} (hab : a < b) {f : ℂ → ℂ} {M : ℝ → ℝ} | |
| 98 | + (hc : ContinuousOn f {s : ℂ | s.re ∈ Icc a b}) (hM : Integrable M) | |
| 99 | + (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ^ 2 ≤ M t) | |
| 100 | + (ψ : HardySpace a b) (hψ : ∀ s ∈ strip a b, fourierLaplace ψ s = f s) : | |
| 101 | + ((boundaryTraces hab ψ).1 =ᵐ[volume] fun t => f (line a t)) ∧ | |
| 102 | + ((boundaryTraces hab ψ).2 =ᵐ[volume] fun t => f (line b t)) := by | |
| 103 | + let F := fun x : Icc a b => (closedStrip_line_memLp_of_majorant hc hM hbound x).toLp _ | |
| 104 | + have hF : Continuous F := closedStrip_toLp_continuous hc hM hbound | |
| 105 | + have hi : ∀ x : Ioo a b, interiorLine hab ψ x x.property = | |
| 106 | + F ⟨x, ⟨x.property.1.le, x.property.2.le⟩⟩ := by | |
| 107 | + intro x | |
| 108 | + apply Lp.ext | |
| 109 | + filter_upwards [(interiorLine_memLp hab x.property ψ).coeFn_toLp, | |
| 110 | + (closedStrip_line_memLp_of_majorant hc hM hbound ⟨x, ⟨x.property.1.le, x.property.2.le⟩⟩).coeFn_toLp] | |
| 111 | + with t ht ht' | |
| 112 | + change ((interiorLine_memLp hab x.property ψ).toLp _) t = _ | |
| 113 | + rw [ht] | |
| 114 | + change fourierLaplace ψ (line x t) = | |
| 115 | + ((closedStrip_line_memLp_of_majorant hc hM hbound ⟨x, ⟨x.property.1.le, x.property.2.le⟩⟩).toLp _) t | |
| 116 | + rw [ht'] | |
| 117 | + apply hψ | |
| 118 | + simpa only [strip, Set.mem_ofPred_eq, line, Complex.add_re, Complex.ofReal_re, | |
| 119 | + Complex.mul_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, | |
| 120 | + zero_mul, sub_zero, add_zero, Set.mem_Ioo] using x.property | |
| 121 | + have he : boundaryTraces hab ψ = (F ⟨a, ⟨le_rfl, hab.le⟩⟩, F ⟨b, ⟨hab.le, le_rfl⟩⟩) := by | |
| 122 | + apply boundaryTraces_unique hab ψ _ _ (boundaryTraces_spec hab ψ) | |
| 123 | + constructor | |
| 124 | + · have ht : Tendsto (fun x : Ioo a b => (⟨x.val, ⟨x.property.1.le, x.property.2.le⟩⟩ : Icc a b)) | |
| 125 | + (comap Subtype.val (nhdsWithin a (Ioo a b))) (𝓝 ⟨a, ⟨le_rfl, hab.le⟩⟩) := by | |
| 126 | + rw [tendsto_subtype_rng] | |
| 127 | + exact tendsto_comap.mono_right nhdsWithin_le_nhds | |
| 128 | + simpa only [Function.comp_def, ← hi] using (hF.tendsto ⟨a, ⟨le_rfl, hab.le⟩⟩).comp ht | |
| 129 | + · have ht : Tendsto (fun x : Ioo a b => (⟨x.val, ⟨x.property.1.le, x.property.2.le⟩⟩ : Icc a b)) | |
| 130 | + (comap Subtype.val (nhdsWithin b (Ioo a b))) (𝓝 ⟨b, ⟨hab.le, le_rfl⟩⟩) := by | |
| 131 | + rw [tendsto_subtype_rng] | |
| 132 | + exact tendsto_comap.mono_right nhdsWithin_le_nhds | |
| 133 | + simpa only [Function.comp_def, ← hi] using (hF.tendsto ⟨b, ⟨hab.le, le_rfl⟩⟩).comp ht | |
| 134 | + rw [he] | |
| 135 | + exact ⟨(closedStrip_line_memLp_of_majorant hc hM hbound ⟨a, ⟨le_rfl, hab.le⟩⟩).coeFn_toLp, | |
| 136 | + (closedStrip_line_memLp_of_majorant hc hM hbound ⟨b, ⟨hab.le, le_rfl⟩⟩).coeFn_toLp⟩ | |
| 137 | + | |
| 138 | +lemma hardy_column_of_closedStrip_majorant {a b : ℝ} (hab : a < b) {f : ℂ → ℂ} {M : ℝ → ℝ} | |
| 139 | + (hhol : DifferentiableOn ℂ f (strip a b)) | |
| 140 | + (hc : ContinuousOn f {s : ℂ | s.re ∈ Icc a b}) (hM : Integrable M) | |
| 141 | + (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ^ 2 ≤ M t) : | |
| 142 | + ∃ ψ : HardySpace a b, (∀ s ∈ strip a b, fourierLaplace ψ s = f s) ∧ | |
| 143 | + ((boundaryTraces hab ψ).1 =ᵐ[volume] fun t => f (line a t)) ∧ | |
| 144 | + ((boundaryTraces hab ψ).2 =ᵐ[volume] fun t => f (line b t)) := by | |
| 145 | + obtain ⟨ψ, hψ⟩ := rawHardy_fourierLaplace_exists hab | |
| 146 | + (rawHardy_of_closedStrip_majorant hab hhol hc hM hbound) | |
| 147 | + exact ⟨ψ, hψ, hardy_representation_exact_boundary hab hc hM hbound ψ hψ⟩ | |
| 148 | + | |
| 149 | +end ConditionalGoldbach | |
+92 −0 ConditionalGoldbach/Proofs/HardyContourShift.lean added View file
| @@ -0,0 +1,92 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyRawLines | |
| 4 | + | |
| 5 | +/-! Contour shifting with integrable horizontal slices, used for Gaussian regularizations. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex | |
| 11 | +open scoped Topology ComplexConjugate | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma integrable_exists_sequence_norm_zero {g : ℝ → ℂ} (hg : Integrable g) : | |
| 15 | + ∃ t : ℕ → ℝ, Tendsto t atTop atTop ∧ Tendsto (fun n => ‖g (t n)‖) atTop (𝓝 0) := by | |
| 16 | + have he : ∀ n : ℕ, ∃ t : ℝ, n < t ∧ ‖g t‖ < 1 / (n + 1) := by | |
| 17 | + intro n | |
| 18 | + by_contra hn | |
| 19 | + push Not at hn | |
| 20 | + have hpos : (0 : ℝ) < 1 / (n + 1) := by positivity | |
| 21 | + have hs : Ioi (n : ℝ) ⊆ {t | 1 / (n + 1 : ℝ) ≤ ‖g t‖} := fun t ht => hn t ht | |
| 22 | + have hlt := lt_of_le_of_lt (measure_mono hs) (hg.measure_norm_ge_lt_top hpos) | |
| 23 | + simp only [Real.volume_Ioi, lt_self_iff_false] at hlt | |
| 24 | + choose t ht hnorm using he | |
| 25 | + refine ⟨t, tendsto_atTop_mono (fun n => (ht n).le) tendsto_natCast_atTop_atTop, ?_⟩ | |
| 26 | + have hlim : Tendsto (fun n : ℕ => 1 / (n + 1 : ℝ)) atTop (𝓝 0) := | |
| 27 | + (tendsto_atTop_add_const_right atTop 1 tendsto_natCast_atTop_atTop).const_div_atTop 1 | |
| 28 | + exact squeeze_zero (fun n => norm_nonneg _) (fun n => (hnorm n).le) hlim | |
| 29 | + | |
| 30 | +lemma integrable_exists_sequence_both_ends_zero {g : ℝ → ℂ} (hg : Integrable g) : | |
| 31 | + ∃ t : ℕ → ℝ, Tendsto t atTop atTop ∧ | |
| 32 | + Tendsto (fun n => g (t n)) atTop (𝓝 0) ∧ | |
| 33 | + Tendsto (fun n => g (-t n)) atTop (𝓝 0) := by | |
| 34 | + have hneg : Integrable (fun t : ℝ => g (-t)) := by | |
| 35 | + simpa only [neg_one_mul] using | |
| 36 | + (integrable_comp_mul_left_iff g (by norm_num : (-1 : ℝ) ≠ 0)).mpr hg | |
| 37 | + let G : ℝ → ℂ := fun t => ((‖g t‖ + ‖g (-t)‖ : ℝ) : ℂ) | |
| 38 | + have hG : Integrable G := (hg.norm.add hneg.norm).ofReal | |
| 39 | + obtain ⟨t, ht, hGt⟩ := integrable_exists_sequence_norm_zero hG | |
| 40 | + have hGnorm : ∀ u, ‖G u‖ = ‖g u‖ + ‖g (-u)‖ := by | |
| 41 | + intro u | |
| 42 | + simp only [G, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg (add_nonneg (norm_nonneg _) (norm_nonneg _))] | |
| 43 | + simp only [hGnorm] at hGt | |
| 44 | + refine ⟨t, ht, ?_, ?_⟩ | |
| 45 | + · apply tendsto_zero_iff_norm_tendsto_zero.mpr | |
| 46 | + exact squeeze_zero (fun n => norm_nonneg _) (fun n => le_add_of_nonneg_right (norm_nonneg _)) hGt | |
| 47 | + · apply tendsto_zero_iff_norm_tendsto_zero.mpr | |
| 48 | + exact squeeze_zero (fun n => norm_nonneg _) (fun n => le_add_of_nonneg_left (norm_nonneg _)) hGt | |
| 49 | + | |
| 50 | +lemma holomorphic_vertical_integral_eq {a b x y : ℝ} (hxy : x ≤ y) | |
| 51 | + (hx : a < x) (hy : y < b) (F : ℂ → ℂ) | |
| 52 | + (hF : DifferentiableOn ℂ F (strip a b)) | |
| 53 | + (hIx : Integrable (fun t : ℝ => F (line x t))) | |
| 54 | + (hIy : Integrable (fun t : ℝ => F (line y t))) | |
| 55 | + (hH : Integrable (fun t : ℝ => ∫ u in x..y, F (line u t))) : | |
| 56 | + (∫ t : ℝ, F (line x t)) = ∫ t : ℝ, F (line y t) := by | |
| 57 | + obtain ⟨t, ht, htop, hbot⟩ := integrable_exists_sequence_both_ends_zero hH | |
| 58 | + have hrect : ∀ n, (∫ u in x..y, F (line u (-t n))) - | |
| 59 | + (∫ u in x..y, F (line u (t n))) + | |
| 60 | + Complex.I * (∫ v in -t n..t n, F (line y v)) - | |
| 61 | + Complex.I * (∫ v in -t n..t n, F (line x v)) = 0 := by | |
| 62 | + intro n | |
| 63 | + have hd : DifferentiableOn ℂ F | |
| 64 | + (uIcc (line x (-t n)).re (line y (t n)).re ×ℂ | |
| 65 | + uIcc (line x (-t n)).im (line y (t n)).im) := by | |
| 66 | + apply hF.mono | |
| 67 | + intro z hz | |
| 68 | + have hre : z.re ∈ Icc x y := by | |
| 69 | + simpa only [line, Complex.add_re, Complex.ofReal_re, Complex.mul_re, Complex.ofReal_im, | |
| 70 | + Complex.I_re, Complex.I_im, mul_zero, zero_mul, sub_zero, add_zero, uIcc_of_le hxy, Set.mem_preimage] | |
| 71 | + using hz.1 | |
| 72 | + exact ⟨hx.trans_le hre.1, hre.2.trans_lt hy⟩ | |
| 73 | + have h := Complex.integral_boundary_rect_eq_zero_of_differentiableOn F | |
| 74 | + (line x (-t n)) (line y (t n)) hd | |
| 75 | + simpa only [line, Complex.add_re, Complex.ofReal_re, Complex.mul_re, Complex.ofReal_im, | |
| 76 | + Complex.I_re, Complex.I_im, mul_zero, zero_mul, sub_zero, add_zero, Complex.add_im, | |
| 77 | + Complex.mul_im, mul_one, zero_add, smul_eq_mul] using h | |
| 78 | + have hneg : Tendsto (fun n => -t n) atTop atBot := tendsto_neg_atTop_atBot.comp ht | |
| 79 | + have hL := ((hbot.sub htop).add | |
| 80 | + ((intervalIntegral_tendsto_integral hIy hneg ht).const_mul Complex.I)).sub | |
| 81 | + ((intervalIntegral_tendsto_integral hIx hneg ht).const_mul Complex.I) | |
| 82 | + have he : Complex.I * (∫ v : ℝ, F (line y v)) - | |
| 83 | + Complex.I * (∫ v : ℝ, F (line x v)) = 0 := by | |
| 84 | + have hzero : Tendsto (fun n => (∫ u in x..y, F (line u (-t n))) - | |
| 85 | + (∫ u in x..y, F (line u (t n))) + | |
| 86 | + Complex.I * (∫ v in -t n..t n, F (line y v)) - | |
| 87 | + Complex.I * (∫ v in -t n..t n, F (line x v))) atTop (𝓝 0) := by | |
| 88 | + simpa only [hrect] using tendsto_const_nhds (x := (0 : ℂ)) (f := atTop) | |
| 89 | + simpa only [sub_self, zero_add] using tendsto_nhds_unique hL hzero | |
| 90 | + exact (mul_left_cancel₀ Complex.I_ne_zero (sub_eq_zero.mp he)).symm | |
| 91 | + | |
| 92 | +end ConditionalGoldbach | |
+60 −0 ConditionalGoldbach/Proofs/HardyConverse.lean added View file
| @@ -0,0 +1,60 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyGaussianRepresentation | |
| 4 | +public import ConditionalGoldbach.Proofs.HardyWeakLimit | |
| 5 | + | |
| 6 | +/-! The full strip Paley–Wiener theorem, including surjectivity from the original raw Hardy condition. | |
| 7 | +The inverse direction uses Gaussian regularization, contour shifting, Fourier inversion, Fatou, | |
| 8 | +and weak compactness. No boundary regularity or distributional identity is assumed. -/ | |
| 9 | +public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +open scoped Topology ComplexConjugate | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | + | |
| 17 | +lemma rawHardy_fourierLaplace_exists {a b : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 18 | + (hf : IsRawHardy a b f) : | |
| 19 | + ∃ ψ : HardySpace a b, ∀ s ∈ strip a b, fourierLaplace ψ s = f s := by | |
| 20 | + let ε : ℕ → ℝ := fun n => 1 / (n + 1) | |
| 21 | + have hε : ∀ n, 0 < ε n := by intro n; dsimp [ε]; positivity | |
| 22 | + have hε' : ∀ n, ε n ≤ 1 := by | |
| 23 | + intro n | |
| 24 | + dsimp [ε] | |
| 25 | + apply (div_le_one (by positivity : (0 : ℝ) < n + 1)).mpr | |
| 26 | + have := Nat.cast_nonneg (α := ℝ) n | |
| 27 | + linarith | |
| 28 | + have hεlim : Tendsto ε atTop (𝓝 0) := | |
| 29 | + (tendsto_atTop_add_const_right atTop 1 tendsto_natCast_atTop_atTop).const_div_atTop 1 | |
| 30 | + let ψ : ℕ → HardySpace a b := fun n => hardyGaussianVector hab hf (hε n) (hε' n) | |
| 31 | + obtain ⟨C, hC⟩ := hardyGaussianVector_uniform_norm_bound hab hf | |
| 32 | + have hb : ∀ n, ‖ψ n‖ ≤ C := fun n => hC (ε n) (hε n) (hε' n) | |
| 33 | + have hlim : ∀ s ∈ strip a b, Tendsto (fun n => fourierLaplace (ψ n) s) atTop (𝓝 (f s)) := by | |
| 34 | + intro s hs | |
| 35 | + have h := ((hεlim.ofReal.mul_const (s ^ 2)).cexp).const_mul (f s) | |
| 36 | + have he : (fun n => fourierLaplace (ψ n) s) = | |
| 37 | + fun n => f s * Complex.exp ((ε n : ℂ) * s ^ 2) := by | |
| 38 | + funext n | |
| 39 | + exact hardyGaussianVector_representation hab hf (hε n) (hε' n) hs | |
| 40 | + rw [he] | |
| 41 | + simpa only [Complex.ofReal_zero, zero_mul, Complex.exp_zero, mul_one] using h | |
| 42 | + obtain ⟨χ, hχ, hχspec⟩ := hardy_bounded_pointwise_limit ψ hb f hlim | |
| 43 | + exact ⟨χ, hχspec⟩ | |
| 44 | + | |
| 45 | +theorem lemma_5_2 (a b : ℝ) (hab : a < b) : | |
| 46 | + (∀ ψ : HardySpace a b, IsRawHardy a b (fourierLaplace ψ) ∧ | |
| 47 | + rawHardyNormSq a b (fourierLaplace ψ) = ‖ψ‖ ^ 2 ∧ | |
| 48 | + ‖ψ‖ ^ 2 = ‖(boundaryTraces hab ψ).1‖ ^ 2 + ‖(boundaryTraces hab ψ).2‖ ^ 2) ∧ | |
| 49 | + (∀ f : ℂ → ℂ, IsRawHardy a b f → | |
| 50 | + ∃! ψ : HardySpace a b, ∀ s ∈ strip a b, fourierLaplace ψ s = f s) := by | |
| 51 | + refine ⟨lemma_5_2_forward a b hab, ?_⟩ | |
| 52 | + intro f hf | |
| 53 | + obtain ⟨ψ, hψ⟩ := rawHardy_fourierLaplace_exists hab hf | |
| 54 | + refine ⟨ψ, hψ, ?_⟩ | |
| 55 | + intro χ hχ | |
| 56 | + apply fourierLaplace_injective_strip hab | |
| 57 | + intro s hs | |
| 58 | + exact (hχ s hs).trans (hψ s hs).symm | |
| 59 | + | |
| 60 | +end ConditionalGoldbach | |
+195 −0 ConditionalGoldbach/Proofs/HardyEvaluation.lean added View file
| @@ -0,0 +1,195 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Operators | |
| 4 | +public import ConditionalGoldbach.Proofs.HardyRawNorm | |
| 5 | + | |
| 6 | +/-! Evaluation vectors in the weighted Fourier realization of the strip Hardy space. -/ | |
| 7 | +@[expose] public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +open scoped Topology ComplexConjugate | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma hardy_evaluation_quotient_le (a b x c τ : ℝ) (hc : c = a ∨ c = b) : | |
| 16 | + Real.exp (2 * x * τ) / hardyWeight a b τ ≤ Real.exp (2 * (x - c) * τ) := by | |
| 17 | + apply (div_le_iff₀ (hardyWeight_pos a b τ)).mpr | |
| 18 | + have he : Real.exp (2 * x * τ) = | |
| 19 | + Real.exp (2 * (x - c) * τ) * Real.exp (2 * c * τ) := by | |
| 20 | + rw [← Real.exp_add] | |
| 21 | + congr 1 | |
| 22 | + ring | |
| 23 | + rw [he] | |
| 24 | + apply mul_le_mul_of_nonneg_left _ (Real.exp_pos _).le | |
| 25 | + rcases hc with rfl | rfl | |
| 26 | + · exact le_add_of_nonneg_right (Real.exp_pos _).le | |
| 27 | + · exact le_add_of_nonneg_left (Real.exp_pos _).le | |
| 28 | + | |
| 29 | +lemma hardy_evaluation_quotient_integrable {a b x : ℝ} (hx : x ∈ Ioo a b) : | |
| 30 | + Integrable (fun τ : ℝ => Real.exp (2 * x * τ) / hardyWeight a b τ) := by | |
| 31 | + have hm : Continuous (fun τ : ℝ => Real.exp (2 * x * τ) / hardyWeight a b τ) := | |
| 32 | + (by fun_prop : Continuous (fun τ : ℝ => Real.exp (2 * x * τ))).div (hardyWeight_continuous a b) (fun τ => (hardyWeight_pos a b τ).ne') | |
| 33 | + have hl : IntegrableOn (fun τ : ℝ => Real.exp (2 * x * τ) / hardyWeight a b τ) (Iic 0) := by | |
| 34 | + apply (integrableOn_exp_mul_Iic (show 0 < 2 * (x - a) by linarith [hx.1]) 0).mono' | |
| 35 | + hm.aestronglyMeasurable | |
| 36 | + filter_upwards [] with τ | |
| 37 | + simpa only [Real.norm_eq_abs, abs_of_pos (div_pos (Real.exp_pos _) (hardyWeight_pos a b τ))] | |
| 38 | + using hardy_evaluation_quotient_le a b x a τ (Or.inl rfl) | |
| 39 | + have hr : IntegrableOn (fun τ : ℝ => Real.exp (2 * x * τ) / hardyWeight a b τ) (Ioi 0) := by | |
| 40 | + apply (integrableOn_exp_mul_Ioi (show 2 * (x - b) < 0 by linarith [hx.2]) 0).mono' | |
| 41 | + hm.aestronglyMeasurable | |
| 42 | + filter_upwards [] with τ | |
| 43 | + simpa only [Real.norm_eq_abs, abs_of_pos (div_pos (Real.exp_pos _) (hardyWeight_pos a b τ))] | |
| 44 | + using hardy_evaluation_quotient_le a b x b τ (Or.inr rfl) | |
| 45 | + simpa only [Iic_union_Ioi, integrableOn_univ] using hl.union hr | |
| 46 | + | |
| 47 | +/-- The unnormalized density of an evaluation vector; normalization is applied as a scalar. -/ | |
| 48 | +def hardyEvaluationDensity (a b : ℝ) (s : ℂ) (τ : ℝ) : ℂ := | |
| 49 | + Complex.exp (conj s * τ) / (hardyWeight a b τ : ℂ) | |
| 50 | + | |
| 51 | +lemma hardyEvaluationDensity_continuous (a b : ℝ) (s : ℂ) : | |
| 52 | + Continuous (hardyEvaluationDensity a b s) := by | |
| 53 | + unfold hardyEvaluationDensity | |
| 54 | + apply (by fun_prop : Continuous (fun τ : ℝ => Complex.exp (conj s * τ))).div | |
| 55 | + (Complex.continuous_ofReal.comp (hardyWeight_continuous a b)) | |
| 56 | + intro τ | |
| 57 | + exact Complex.ofReal_ne_zero.mpr (hardyWeight_pos a b τ).ne' | |
| 58 | + | |
| 59 | +lemma hardyEvaluationDensity_weighted_norm_sq (a b : ℝ) (s : ℂ) (τ : ℝ) : | |
| 60 | + ‖hardyEvaluationDensity a b s τ‖ ^ 2 * hardyWeight a b τ = | |
| 61 | + Real.exp (2 * s.re * τ) / hardyWeight a b τ := by | |
| 62 | + simp only [hardyEvaluationDensity, norm_div, Complex.norm_exp, Complex.mul_re, | |
| 63 | + Complex.conj_re, Complex.ofReal_re, Complex.ofReal_im, mul_zero, sub_zero, | |
| 64 | + Complex.norm_real, Real.norm_eq_abs, abs_of_pos (hardyWeight_pos a b τ), div_pow] | |
| 65 | + rw [← Real.exp_nat_mul] | |
| 66 | + norm_num only [Nat.cast_ofNat] | |
| 67 | + rw [show 2 * (s.re * τ) = 2 * s.re * τ by ring] | |
| 68 | + field_simp | |
| 69 | + | |
| 70 | +lemma hardyEvaluationDensity_memLp {a b : ℝ} {s : ℂ} (hs : s ∈ strip a b) : | |
| 71 | + MemLp (hardyEvaluationDensity a b s) 2 (hardyMeasure a b) := by | |
| 72 | + apply (memLp_two_iff_integrable_sq_norm (hardyEvaluationDensity_continuous a b s).aestronglyMeasurable).mpr | |
| 73 | + change Integrable _ (volume.withDensity (fun τ => ENNReal.ofReal (hardyWeight a b τ))) | |
| 74 | + rw [integrable_withDensity_iff (hardyWeight_continuous a b).measurable.ennreal_ofReal | |
| 75 | + (Eventually.of_forall (fun _ => ENNReal.ofReal_lt_top))] | |
| 76 | + simpa only [ENNReal.toReal_ofReal (hardyWeight_pos a b _).le, smul_eq_mul, | |
| 77 | + mul_comm (hardyWeight a b _) _, hardyEvaluationDensity_weighted_norm_sq] using | |
| 78 | + hardy_evaluation_quotient_integrable hs | |
| 79 | + | |
| 80 | +lemma hardyEvaluationDensity_pairing {a b : ℝ} {s : ℂ} (hs : s ∈ strip a b) | |
| 81 | + (ψ : HardySpace a b) : | |
| 82 | + paperInner ψ ((hardyEvaluationDensity_memLp hs).toLp _) = | |
| 83 | + ∫ τ : ℝ, ψ τ * Complex.exp (s * τ) := by | |
| 84 | + unfold paperInner | |
| 85 | + rw [L2.inner_def] | |
| 86 | + calc | |
| 87 | + (∫ τ : ℝ, inner ℂ (((hardyEvaluationDensity_memLp hs).toLp _) τ) (ψ τ) | |
| 88 | + ∂hardyMeasure a b) = | |
| 89 | + ∫ τ : ℝ, ψ τ * (Complex.exp (s * τ) / (hardyWeight a b τ : ℂ)) ∂hardyMeasure a b := by | |
| 90 | + apply integral_congr_ae | |
| 91 | + filter_upwards [(hardyEvaluationDensity_memLp hs).coeFn_toLp] with τ hτ | |
| 92 | + rw [hτ] | |
| 93 | + simp only [RCLike.inner_apply, hardyEvaluationDensity, map_div₀, ← Complex.exp_conj, | |
| 94 | + map_mul, Complex.conj_conj, Complex.conj_ofReal] | |
| 95 | + _ = _ := by | |
| 96 | + change (∫ τ : ℝ, ψ τ * (Complex.exp (s * τ) / (hardyWeight a b τ : ℂ)) | |
| 97 | + ∂(volume.withDensity (fun τ => ENNReal.ofReal (hardyWeight a b τ)))) = _ | |
| 98 | + rw [integral_withDensity_eq_integral_toReal_smul | |
| 99 | + (hardyWeight_continuous a b).measurable.ennreal_ofReal | |
| 100 | + (Eventually.of_forall (fun _ => ENNReal.ofReal_lt_top))] | |
| 101 | + apply integral_congr_ae | |
| 102 | + filter_upwards [] with τ | |
| 103 | + simp only [ENNReal.toReal_ofReal (hardyWeight_pos a b τ).le, Complex.real_smul] | |
| 104 | + have hw : (hardyWeight a b τ : ℂ) ≠ 0 := | |
| 105 | + Complex.ofReal_ne_zero.mpr (hardyWeight_pos a b τ).ne' | |
| 106 | + field_simp | |
| 107 | + | |
| 108 | +lemma evaluationVector_exists {a b : ℝ} {s : ℂ} (hs : s ∈ strip a b) : | |
| 109 | + ∃ v : HardySpace a b, ∀ ψ, fourierLaplace ψ s = paperInner ψ v := by | |
| 110 | + refine ⟨(Real.sqrt (2 * Real.pi) : ℂ)⁻¹ • (hardyEvaluationDensity_memLp hs).toLp _, ?_⟩ | |
| 111 | + intro ψ | |
| 112 | + rw [paperInner, inner_smul_left] | |
| 113 | + change _ = _ * paperInner ψ ((hardyEvaluationDensity_memLp hs).toLp _) | |
| 114 | + rw [hardyEvaluationDensity_pairing hs] | |
| 115 | + simp only [map_inv₀, Complex.conj_ofReal, fourierLaplace] | |
| 116 | + | |
| 117 | +lemma evaluationVector_spec {a b : ℝ} {s : ℂ} (hs : s ∈ strip a b) | |
| 118 | + (ψ : HardySpace a b) : fourierLaplace ψ s = paperInner ψ (evaluationVector s) := by | |
| 119 | + have h := evaluationVector_exists hs | |
| 120 | + unfold evaluationVector | |
| 121 | + rw [dite_eq_left h] | |
| 122 | + exact Classical.choose_spec h ψ | |
| 123 | + | |
| 124 | +lemma evaluationVector_eq_density {a b : ℝ} {s : ℂ} (hs : s ∈ strip a b) : | |
| 125 | + (evaluationVector s : HardySpace a b) = | |
| 126 | + (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ • (hardyEvaluationDensity_memLp hs).toLp _ := by | |
| 127 | + apply ext_inner_right ℂ | |
| 128 | + intro ψ | |
| 129 | + change paperInner ψ (evaluationVector s) = _ | |
| 130 | + rw [← evaluationVector_spec hs] | |
| 131 | + change fourierLaplace ψ s = inner ℂ (_ • _) ψ | |
| 132 | + rw [inner_smul_left] | |
| 133 | + change _ = _ * paperInner ψ ((hardyEvaluationDensity_memLp hs).toLp _) | |
| 134 | + rw [hardyEvaluationDensity_pairing hs] | |
| 135 | + simp only [map_inv₀, Complex.conj_ofReal, fourierLaplace] | |
| 136 | + | |
| 137 | +lemma evaluationVector_norm_sq_integral {a b : ℝ} {s : ℂ} (hs : s ∈ strip a b) : | |
| 138 | + ‖(evaluationVector s : HardySpace a b)‖ ^ 2 = | |
| 139 | + (2 * Real.pi)⁻¹ * ∫ τ : ℝ, Real.exp (2 * s.re * τ) / hardyWeight a b τ := by | |
| 140 | + rw [evaluationVector_eq_density hs, norm_smul, mul_pow] | |
| 141 | + have hc : ‖(Real.sqrt (2 * Real.pi) : ℂ)⁻¹‖ ^ 2 = (2 * Real.pi)⁻¹ := by | |
| 142 | + rw [norm_inv, Complex.norm_real, Real.norm_eq_abs, | |
| 143 | + abs_of_nonneg (Real.sqrt_nonneg _), inv_pow, Real.sq_sqrt (by positivity)] | |
| 144 | + rw [hc, hardySpace_norm_sq_integral] | |
| 145 | + congr 1 | |
| 146 | + apply integral_congr_ae | |
| 147 | + filter_upwards [(volume_absolutelyContinuous_hardyMeasure a b).ae_eq | |
| 148 | + (hardyEvaluationDensity_memLp hs).coeFn_toLp] with τ hτ | |
| 149 | + rw [hτ, hardyEvaluationDensity_weighted_norm_sq] | |
| 150 | + | |
| 151 | +lemma norm_fourierLaplace_le {a b : ℝ} {s : ℂ} (hs : s ∈ strip a b) | |
| 152 | + (ψ : HardySpace a b) : | |
| 153 | + ‖fourierLaplace ψ s‖ ≤ ‖ψ‖ * ‖(evaluationVector s : HardySpace a b)‖ := by | |
| 154 | + rw [evaluationVector_spec hs, paperInner, mul_comm] | |
| 155 | + exact norm_inner_le_norm _ _ | |
| 156 | + | |
| 157 | +/-- Evaluation at an interior point is a bounded linear functional on the Fourier realization. -/ | |
| 158 | +def hardyEvaluationFunctional {a b : ℝ} (s : ℂ) : HardySpace a b →L[ℂ] ℂ := | |
| 159 | + innerSL ℂ (evaluationVector s) | |
| 160 | + | |
| 161 | +lemma hardyEvaluationFunctional_apply {a b : ℝ} {s : ℂ} (hs : s ∈ strip a b) | |
| 162 | + (ψ : HardySpace a b) : hardyEvaluationFunctional s ψ = fourierLaplace ψ s := by | |
| 163 | + exact (evaluationVector_spec hs ψ).symm | |
| 164 | + | |
| 165 | +lemma fourierLaplace_continuous_eval {a b : ℝ} {s : ℂ} (hs : s ∈ strip a b) : | |
| 166 | + Continuous (fun ψ : HardySpace a b => fourierLaplace ψ s) := by | |
| 167 | + have he : (fun ψ : HardySpace a b => fourierLaplace ψ s) = | |
| 168 | + (hardyEvaluationFunctional s : HardySpace a b → ℂ) := | |
| 169 | + funext (fun ψ => (hardyEvaluationFunctional_apply hs ψ).symm) | |
| 170 | + rw [he] | |
| 171 | + exact (hardyEvaluationFunctional s).continuous | |
| 172 | + | |
| 173 | +lemma evaluationVector_fourierLaplace_integral {a b : ℝ} {s z : ℂ} | |
| 174 | + (hs : s ∈ strip a b) (hz : z ∈ strip a b) : | |
| 175 | + fourierLaplace (evaluationVector z : HardySpace a b) s = | |
| 176 | + (2 * Real.pi : ℂ)⁻¹ * ∫ τ : ℝ, | |
| 177 | + Complex.exp ((s + conj z) * τ) / (hardyWeight a b τ : ℂ) := by | |
| 178 | + rw [evaluationVector_eq_density hz, fourierLaplace_smul _ _ hs, fourierLaplace] | |
| 179 | + have hc : (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ = | |
| 180 | + (2 * Real.pi : ℂ)⁻¹ := by | |
| 181 | + rw [← mul_inv, ← pow_two, ← Complex.ofReal_pow, Real.sq_sqrt (by positivity)] | |
| 182 | + push_cast | |
| 183 | + rfl | |
| 184 | + rw [← mul_assoc, hc] | |
| 185 | + congr 1 | |
| 186 | + apply integral_congr_ae | |
| 187 | + filter_upwards [(volume_absolutelyContinuous_hardyMeasure a b).ae_eq | |
| 188 | + (hardyEvaluationDensity_memLp hz).coeFn_toLp] with τ hτ | |
| 189 | + rw [hτ] | |
| 190 | + simp only [hardyEvaluationDensity] | |
| 191 | + rw [div_mul_eq_mul_div, ← Complex.exp_add] | |
| 192 | + congr 2 | |
| 193 | + ring | |
| 194 | + | |
| 195 | +end ConditionalGoldbach | |
+60 −0 ConditionalGoldbach/Proofs/HardyFiniteGram.lean added View file
| @@ -0,0 +1,60 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterHardyVectors | |
| 4 | + | |
| 5 | +/-! Finite Gram kernels are represented by finite sums of positive rank-one maps. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex InnerProductSpace | |
| 11 | +open scoped Topology ComplexConjugate BigOperators | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma hardyFiniteGram_represents {ι : Type*} [Fintype ι] {a : ℝ} (ha : a < beta) | |
| 15 | + (N : ℕ) [NeZero N] (v : ι → HardySpace a beta) (f : ι → ℂ → ℂ) (K : ℂ → ℂ → ℂ) | |
| 16 | + (hf : ∀ j s, s ∈ strip a beta → fourierLaplace (v j) s = f j s) | |
| 17 | + (hl : ∀ j, (boundaryTraces ha (v j)).1 =ᵐ[volume] fun t => f j (line a t)) | |
| 18 | + (hr : ∀ j, (boundaryTraces ha (v j)).2 =ᵐ[volume] fun t => f j (line beta t)) | |
| 19 | + (hK : ∀ s z, K s z = ∑ j, f j s * conj (f j z)) : | |
| 20 | + RepresentsKernel ha N K (∑ j, rankOne ℂ (v j) (v j)) := by | |
| 21 | + classical | |
| 22 | + intro h s hs | |
| 23 | + have hIl (j : ι) : Integrable (fun t : ℝ => f j s * | |
| 24 | + ((boundaryTraces ha h).1 t * conj ((boundaryTraces ha (v j)).1 t))) := by | |
| 25 | + simpa only [RCLike.inner_apply] using | |
| 26 | + (L2.integrable_inner (𝕜 := ℂ) (boundaryTraces ha (v j)).1 (boundaryTraces ha h).1).const_mul (f j s) | |
| 27 | + have hIr (j : ι) : Integrable (fun t : ℝ => f j s * | |
| 28 | + ((boundaryTraces ha h).2 t * conj ((boundaryTraces ha (v j)).2 t))) := by | |
| 29 | + simpa only [RCLike.inner_apply] using | |
| 30 | + (L2.integrable_inner (𝕜 := ℂ) (boundaryTraces ha (v j)).2 (boundaryTraces ha h).2).const_mul (f j s) | |
| 31 | + have heL : (fun t : ℝ => K s (line a t) * (boundaryTraces ha h).1 t) =ᵐ[volume] | |
| 32 | + (fun t => ∑ j, f j s * ((boundaryTraces ha h).1 t * conj ((boundaryTraces ha (v j)).1 t))) := by | |
| 33 | + filter_upwards [ae_all_iff.mpr hl] with t ht | |
| 34 | + rw [hK, Finset.sum_mul] | |
| 35 | + apply Finset.sum_congr rfl | |
| 36 | + intro j _ | |
| 37 | + rw [ht j] | |
| 38 | + ring | |
| 39 | + have heR : (fun t : ℝ => K s (line beta t) * (boundaryTraces ha h).2 t) =ᵐ[volume] | |
| 40 | + (fun t => ∑ j, f j s * ((boundaryTraces ha h).2 t * conj ((boundaryTraces ha (v j)).2 t))) := by | |
| 41 | + filter_upwards [ae_all_iff.mpr hr] with t ht | |
| 42 | + rw [hK, Finset.sum_mul] | |
| 43 | + apply Finset.sum_congr rfl | |
| 44 | + intro j _ | |
| 45 | + rw [ht j] | |
| 46 | + ring | |
| 47 | + rw [← hardyEvaluationFunctional_apply hs, sum_apply, map_sum] | |
| 48 | + simp only [rankOne_apply, hardyEvaluationFunctional_apply hs] | |
| 49 | + unfold kernelAction | |
| 50 | + rw [integral_congr_ae heL, integral_congr_ae heR, | |
| 51 | + MeasureTheory.integral_finsetSum _ (fun j _ => hIl j), MeasureTheory.integral_finsetSum _ (fun j _ => hIr j), | |
| 52 | + ← Finset.sum_add_distrib] | |
| 53 | + apply Finset.sum_congr rfl | |
| 54 | + intro j _ | |
| 55 | + rw [integral_const_mul, integral_const_mul, ← mul_add, | |
| 56 | + ← lemma_5_2_boundary_inner a beta ha h (v j)] | |
| 57 | + rw [fourierLaplace_smul _ _ hs, hf j s hs] | |
| 58 | + exact mul_comm _ _ | |
| 59 | + | |
| 60 | +end ConditionalGoldbach | |
+33 −0 ConditionalGoldbach/Proofs/HardyFourier.lean added View file
| @@ -0,0 +1,33 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Analysis.L2Fourier | |
| 4 | + | |
| 5 | +/-! Compatibility names for the shared L² Fourier interface. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | +open MeasureTheory FourierTransform SchwartzMap | |
| 10 | +namespace ConditionalGoldbach | |
| 11 | + | |
| 12 | +lemma classical_fourier_continuous {f : ℝ → ℂ} (hf : Integrable f) : | |
| 13 | + Continuous (𝓕 f) := | |
| 14 | + Analysis.classical_fourier_continuous hf | |
| 15 | + | |
| 16 | +lemma classical_fourier_integral_test {f : ℝ → ℂ} (hf : Integrable f) | |
| 17 | + (g : 𝓢(ℝ, ℂ)) : | |
| 18 | + (∫ t : ℝ, g t * 𝓕 f t) = ∫ t : ℝ, 𝓕 g t * f t := | |
| 19 | + Analysis.classical_fourier_integral_test hf g | |
| 20 | + | |
| 21 | +lemma classical_fourier_eq_L2_ae {f : ℝ → ℂ} (hf : Integrable f) (hf2 : MemLp f 2) : | |
| 22 | + (𝓕 f) =ᵐ[volume] (𝓕 (hf2.toLp f) : Lp ℂ 2) := | |
| 23 | + Analysis.classical_fourier_eq_L2_ae hf hf2 | |
| 24 | + | |
| 25 | +lemma classical_fourier_memLp {f : ℝ → ℂ} (hf : Integrable f) (hf2 : MemLp f 2) : | |
| 26 | + MemLp (𝓕 f) 2 := | |
| 27 | + Analysis.classical_fourier_memLp hf hf2 | |
| 28 | + | |
| 29 | +lemma memLp_comp_real_mul {f : ℝ → ℂ} (hf : MemLp f 2) {c : ℝ} (hc : c ≠ 0) : | |
| 30 | + MemLp (fun t : ℝ => f (c * t)) 2 := | |
| 31 | + Analysis.memLp_comp_real_mul hf hc | |
| 32 | + | |
| 33 | +end ConditionalGoldbach | |
+141 −0 ConditionalGoldbach/Proofs/HardyGaussian.lean added View file
| @@ -0,0 +1,141 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyContourShift | |
| 4 | + | |
| 5 | +/-! Gaussian regularization of raw strip-Hardy functions. -/ | |
| 6 | +@[expose] public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex | |
| 11 | +open scoped Topology ComplexConjugate | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma rawHardy_slab_continuousOn {a b x y : ℝ} {f : ℂ → ℂ} (hf : IsRawHardy a b f) | |
| 15 | + (hx : a < x) (hy : y < b) : | |
| 16 | + ContinuousOn (fun p : ℝ × ℝ => f (line p.1 p.2)) (Icc x y ×ˢ univ) := by | |
| 17 | + apply hf.1.continuousOn.comp (by unfold line; fun_prop) | |
| 18 | + intro p hp | |
| 19 | + change a < (line p.1 p.2).re ∧ (line p.1 p.2).re < b | |
| 20 | + simp only [line, Complex.add_re, Complex.ofReal_re, Complex.mul_re, Complex.ofReal_im, | |
| 21 | + Complex.I_re, Complex.I_im, mul_zero, zero_mul, sub_zero, add_zero] | |
| 22 | + exact ⟨hx.trans_le hp.1.1, hp.1.2.trans_lt hy⟩ | |
| 23 | + | |
| 24 | +lemma rawHardy_slab_memLp {a b x y : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 25 | + (hf : IsRawHardy a b f) (hx : a < x) (hy : y < b) : | |
| 26 | + MemLp (fun p : ℝ × ℝ => f (line p.1 p.2)) 2 | |
| 27 | + ((volume.restrict (Icc x y)).prod volume) := by | |
| 28 | + have hm : AEStronglyMeasurable (fun p : ℝ × ℝ => f (line p.1 p.2)) | |
| 29 | + ((volume.restrict (Icc x y)).prod volume) := by | |
| 30 | + rw [Measure.restrict_prod_eq_prod_univ] | |
| 31 | + exact (rawHardy_slab_continuousOn hf hx hy).aestronglyMeasurable (measurableSet_Icc.prod MeasurableSet.univ) | |
| 32 | + apply (memLp_two_iff_integrable_sq_norm hm).mpr | |
| 33 | + obtain ⟨C, hC, hbound⟩ := rawHardy_uniform_line_bound hab hf | |
| 34 | + apply (integrable_prod_iff (hm.norm.pow 2)).mpr | |
| 35 | + constructor | |
| 36 | + · filter_upwards [ae_restrict_mem measurableSet_Icc] with u hu | |
| 37 | + exact (hbound u ⟨hx.trans_le hu.1, hu.2.trans_lt hy⟩).1 | |
| 38 | + · apply Integrable.of_bound (hm.norm.pow 2).norm.integral_prod_right' C | |
| 39 | + filter_upwards [ae_restrict_mem measurableSet_Icc] with u hu | |
| 40 | + have hnonneg : 0 ≤ ∫ t : ℝ, ‖f (line u t)‖ ^ 2 := integral_nonneg (fun t => sq_nonneg _) | |
| 41 | + simpa only [Pi.pow_apply, Real.norm_eq_abs, abs_sq, abs_of_nonneg hnonneg] using | |
| 42 | + (hbound u ⟨hx.trans_le hu.1, hu.2.trans_lt hy⟩).2 | |
| 43 | + | |
| 44 | +lemma gaussian_real_memLp {ε : ℝ} (hε : 0 < ε) : | |
| 45 | + MemLp (fun t : ℝ => Real.exp (-ε * t ^ 2)) 2 volume := by | |
| 46 | + apply (memLp_two_iff_integrable_sq_norm (by fun_prop : | |
| 47 | + Continuous (fun t : ℝ => Real.exp (-ε * t ^ 2))).aestronglyMeasurable).mpr | |
| 48 | + have h := integrable_exp_neg_mul_sq (show 0 < 2 * ε by positivity) | |
| 49 | + convert h using 1 | |
| 50 | + funext t | |
| 51 | + rw [Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), ← Real.exp_nat_mul] | |
| 52 | + congr 1 | |
| 53 | + ring | |
| 54 | + | |
| 55 | +def hardyGaussian (f : ℂ → ℂ) (ε τ : ℝ) (s : ℂ) : ℂ := | |
| 56 | + f s * Complex.exp ((ε : ℂ) * s ^ 2 - (τ : ℂ) * s) | |
| 57 | + | |
| 58 | +lemma hardyGaussian_line_norm (f : ℂ → ℂ) (ε τ x t : ℝ) : | |
| 59 | + ‖hardyGaussian f ε τ (line x t)‖ = | |
| 60 | + Real.exp (ε * x ^ 2 - τ * x) * (‖f (line x t)‖ * Real.exp (-ε * t ^ 2)) := by | |
| 61 | + simp only [hardyGaussian, norm_mul, Complex.norm_exp, Complex.sub_re, Complex.mul_re, | |
| 62 | + Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero] | |
| 63 | + have hre : (line x t ^ 2).re = x ^ 2 - t ^ 2 := by | |
| 64 | + simp only [pow_two, Complex.mul_re, line, Complex.add_re, Complex.ofReal_re, | |
| 65 | + Complex.mul_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, | |
| 66 | + sub_zero, add_zero, Complex.add_im, Complex.mul_im, mul_one, zero_add] | |
| 67 | + rw [hre] | |
| 68 | + simp only [line, Complex.add_re, Complex.ofReal_re, Complex.mul_re, Complex.ofReal_im, | |
| 69 | + Complex.I_re, Complex.I_im, mul_zero, zero_mul, sub_zero, add_zero] | |
| 70 | + rw [mul_left_comm, ← Real.exp_add] | |
| 71 | + congr 2 | |
| 72 | + ring | |
| 73 | + | |
| 74 | +lemma hardyGaussian_line_integrable {a b x ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 75 | + (hf : IsRawHardy a b f) (hx : x ∈ Ioo a b) (hε : 0 < ε) (τ : ℝ) : | |
| 76 | + Integrable (fun t : ℝ => hardyGaussian f ε τ (line x t)) := by | |
| 77 | + have hi := ((rawHardy_line_memLp hab hf hx).norm.integrable_mul (gaussian_real_memLp hε)).const_mul | |
| 78 | + (Real.exp (ε * x ^ 2 - τ * x)) | |
| 79 | + apply hi.mono' ((rawHardy_line_continuous hf hx).mul | |
| 80 | + (by unfold line; fun_prop : Continuous (fun t : ℝ => Complex.exp | |
| 81 | + ((ε : ℂ) * line x t ^ 2 - (τ : ℂ) * line x t)))).aestronglyMeasurable | |
| 82 | + filter_upwards [] with t | |
| 83 | + exact le_of_eq (hardyGaussian_line_norm f ε τ x t) | |
| 84 | + | |
| 85 | +lemma hardyGaussian_slab_integrable {a b x y ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 86 | + (hf : IsRawHardy a b f) (hx : a < x) (hy : y < b) (hε : 0 < ε) (τ : ℝ) : | |
| 87 | + Integrable (fun p : ℝ × ℝ => hardyGaussian f ε τ (line p.1 p.2)) | |
| 88 | + ((volume.restrict (Icc x y)).prod volume) := by | |
| 89 | + have hcont : ContinuousOn (fun p : ℝ × ℝ => hardyGaussian f ε τ (line p.1 p.2)) | |
| 90 | + (Icc x y ×ˢ univ) := (rawHardy_slab_continuousOn hf hx hy).mul (by unfold line; fun_prop) | |
| 91 | + have hm : AEStronglyMeasurable (fun p : ℝ × ℝ => hardyGaussian f ε τ (line p.1 p.2)) | |
| 92 | + ((volume.restrict (Icc x y)).prod volume) := by | |
| 93 | + rw [Measure.restrict_prod_eq_prod_univ] | |
| 94 | + exact hcont.aestronglyMeasurable (measurableSet_Icc.prod MeasurableSet.univ) | |
| 95 | + obtain ⟨B, hB⟩ := isCompact_Icc.bddAbove_image | |
| 96 | + (show ContinuousOn (fun u : ℝ => Real.exp (ε * u ^ 2 - τ * u)) (Icc x y) by fun_prop) | |
| 97 | + have hi := ((rawHardy_slab_memLp hab hf hx hy).norm.integrable_mul | |
| 98 | + ((gaussian_real_memLp hε).comp_snd (volume.restrict (Icc x y)))).const_mul B | |
| 99 | + apply hi.mono' hm | |
| 100 | + have hae : ∀ᵐ p : ℝ × ℝ ∂((volume.restrict (Icc x y)).prod volume), p.1 ∈ Icc x y := by | |
| 101 | + rw [Measure.restrict_prod_eq_prod_univ] | |
| 102 | + filter_upwards [ae_restrict_mem (measurableSet_Icc.prod MeasurableSet.univ)] with p hp | |
| 103 | + exact hp.1 | |
| 104 | + filter_upwards [hae] with p hp | |
| 105 | + rw [hardyGaussian_line_norm] | |
| 106 | + exact mul_le_mul_of_nonneg_right (hB ⟨p.1, hp, rfl⟩) | |
| 107 | + (mul_nonneg (norm_nonneg _) (Real.exp_pos _).le) | |
| 108 | + | |
| 109 | +lemma hardyGaussian_horizontal_integrable {a b x y ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 110 | + (hf : IsRawHardy a b f) (hxy : x ≤ y) (hx : a < x) (hy : y < b) | |
| 111 | + (hε : 0 < ε) (τ : ℝ) : | |
| 112 | + Integrable (fun t : ℝ => ∫ u in x..y, hardyGaussian f ε τ (line u t)) := by | |
| 113 | + have h := (hardyGaussian_slab_integrable hab hf hx hy hε τ).integral_prod_right | |
| 114 | + simpa only [intervalIntegral.integral_of_le hxy, integral_Icc_eq_integral_Ioc] using h | |
| 115 | + | |
| 116 | +lemma hardyGaussian_differentiableOn {a b : ℝ} {f : ℂ → ℂ} | |
| 117 | + (hf : DifferentiableOn ℂ f (strip a b)) (ε τ : ℝ) : | |
| 118 | + DifferentiableOn ℂ (hardyGaussian f ε τ) (strip a b) := by | |
| 119 | + have hfactor : Differentiable ℂ (fun s : ℂ => | |
| 120 | + Complex.exp ((ε : ℂ) * s ^ 2 - (τ : ℂ) * s)) := | |
| 121 | + ((differentiable_id.pow 2).const_mul (ε : ℂ) |>.sub | |
| 122 | + (differentiable_id.const_mul (τ : ℂ))).cexp | |
| 123 | + exact hf.mul hfactor.differentiableOn | |
| 124 | + | |
| 125 | +/-- The Gaussian-regularized inverse Laplace density is independent of the vertical line. -/ | |
| 126 | +lemma hardyGaussian_vertical_integral_eq {a b x y ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 127 | + (hf : IsRawHardy a b f) (hx : x ∈ Ioo a b) (hy : y ∈ Ioo a b) | |
| 128 | + (hε : 0 < ε) (τ : ℝ) : | |
| 129 | + (∫ t : ℝ, hardyGaussian f ε τ (line x t)) = | |
| 130 | + ∫ t : ℝ, hardyGaussian f ε τ (line y t) := by | |
| 131 | + have hIx := hardyGaussian_line_integrable hab hf hx hε τ | |
| 132 | + have hIy := hardyGaussian_line_integrable hab hf hy hε τ | |
| 133 | + rcases le_total x y with hxy | hyx | |
| 134 | + · exact holomorphic_vertical_integral_eq hxy hx.1 hy.2 _ | |
| 135 | + (hardyGaussian_differentiableOn hf.1 ε τ) hIx hIy | |
| 136 | + (hardyGaussian_horizontal_integrable hab hf hxy hx.1 hy.2 hε τ) | |
| 137 | + · exact (holomorphic_vertical_integral_eq hyx hy.1 hx.2 _ | |
| 138 | + (hardyGaussian_differentiableOn hf.1 ε τ) hIy hIx | |
| 139 | + (hardyGaussian_horizontal_integrable hab hf hyx hy.1 hx.2 hε τ)).symm | |
| 140 | + | |
| 141 | +end ConditionalGoldbach | |
+154 −0 ConditionalGoldbach/Proofs/HardyGaussianDensity.lean added View file
| @@ -0,0 +1,154 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyGaussian | |
| 4 | + | |
| 5 | +/-! The classical Fourier density of a Gaussian-regularized Hardy function. -/ | |
| 6 | +@[expose] public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex FourierTransform | |
| 11 | +open scoped Topology ComplexConjugate | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma hardyGaussian_norm_sq_le (f : ℂ → ℂ) {ε : ℝ} (hε : 0 ≤ ε) (x t : ℝ) : | |
| 15 | + ‖hardyGaussian f ε 0 (line x t)‖ ^ 2 ≤ | |
| 16 | + Real.exp (2 * ε * x ^ 2) * ‖f (line x t)‖ ^ 2 := by | |
| 17 | + rw [hardyGaussian_line_norm] | |
| 18 | + simp only [zero_mul, sub_zero, mul_pow] | |
| 19 | + have hdecay : Real.exp (-ε * t ^ 2) ^ 2 ≤ 1 := by | |
| 20 | + rw [← Real.exp_nat_mul] | |
| 21 | + apply Real.exp_le_one_iff.mpr | |
| 22 | + apply mul_nonpos_of_nonneg_of_nonpos (by norm_num) | |
| 23 | + exact mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr hε) (sq_nonneg t) | |
| 24 | + have he : Real.exp (ε * x ^ 2) ^ 2 = Real.exp (2 * ε * x ^ 2) := by | |
| 25 | + rw [← Real.exp_nat_mul] | |
| 26 | + congr 1 | |
| 27 | + ring | |
| 28 | + rw [he] | |
| 29 | + have hn := mul_le_mul_of_nonneg_left hdecay (sq_nonneg (‖f (line x t)‖)) | |
| 30 | + simpa only [mul_one] using mul_le_mul_of_nonneg_left hn (Real.exp_pos _).le | |
| 31 | + | |
| 32 | +lemma hardyGaussian_line_memLp {a b x ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 33 | + (hf : IsRawHardy a b f) (hx : x ∈ Ioo a b) (hε : 0 ≤ ε) : | |
| 34 | + MemLp (fun t : ℝ => hardyGaussian f ε 0 (line x t)) 2 volume := by | |
| 35 | + have hc : Continuous (fun t : ℝ => hardyGaussian f ε 0 (line x t)) := | |
| 36 | + (rawHardy_line_continuous hf hx).mul (by unfold line; fun_prop) | |
| 37 | + apply (memLp_two_iff_integrable_sq_norm hc.aestronglyMeasurable).mpr | |
| 38 | + have hi := ((rawHardy_line_memLp hab hf hx).norm.integrable_sq).const_mul | |
| 39 | + (Real.exp (2 * ε * x ^ 2)) | |
| 40 | + apply hi.mono' (hc.norm.pow 2).aestronglyMeasurable | |
| 41 | + filter_upwards [] with t | |
| 42 | + simpa only [Pi.pow_apply, Real.norm_eq_abs, abs_sq] using hardyGaussian_norm_sq_le f hε x t | |
| 43 | + | |
| 44 | +def hardyGaussianDensity (a b : ℝ) (f : ℂ → ℂ) (ε τ : ℝ) : ℂ := | |
| 45 | + (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * | |
| 46 | + ∫ t : ℝ, hardyGaussian f ε τ (line ((a + b) / 2) t) | |
| 47 | + | |
| 48 | +lemma hardyGaussian_frequency_factor (f : ℂ → ℂ) (ε τ x t : ℝ) : | |
| 49 | + hardyGaussian f ε τ (line x t) = | |
| 50 | + (Real.exp (-x * τ) : ℂ) * | |
| 51 | + (Complex.exp ((-t * τ : ℝ) * Complex.I) * hardyGaussian f ε 0 (line x t)) := by | |
| 52 | + simp only [hardyGaussian, Complex.ofReal_zero, zero_mul, sub_zero, Complex.ofReal_exp] | |
| 53 | + have he : (ε : ℂ) * line x t ^ 2 - (τ : ℂ) * line x t = | |
| 54 | + (-x * τ : ℝ) + ((-t * τ : ℝ) * Complex.I + (ε : ℂ) * line x t ^ 2) := by | |
| 55 | + simp only [line, Complex.ofReal_neg, Complex.ofReal_mul] | |
| 56 | + ring | |
| 57 | + rw [he, Complex.exp_add, Complex.exp_add] | |
| 58 | + ring | |
| 59 | + | |
| 60 | +lemma hardyGaussianDensity_eq_fourier {a b x ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 61 | + (hf : IsRawHardy a b f) (hx : x ∈ Ioo a b) (hε : 0 < ε) (τ : ℝ) : | |
| 62 | + hardyGaussianDensity a b f ε τ = | |
| 63 | + (Real.exp (-x * τ) : ℂ) * (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * | |
| 64 | + 𝓕 (fun t : ℝ => hardyGaussian f ε 0 (line x t)) (τ / (2 * Real.pi)) := by | |
| 65 | + have hfourier : 𝓕 (fun t : ℝ => hardyGaussian f ε 0 (line x t)) (τ / (2 * Real.pi)) = | |
| 66 | + ∫ t : ℝ, Complex.exp ((-t * τ : ℝ) * Complex.I) * hardyGaussian f ε 0 (line x t) := by | |
| 67 | + rw [Real.fourier_eq'] | |
| 68 | + apply integral_congr_ae | |
| 69 | + filter_upwards [] with t | |
| 70 | + have hphase : -2 * Real.pi * inner ℝ t (τ / (2 * Real.pi)) = -t * τ := by | |
| 71 | + simp only [Real.inner_apply] | |
| 72 | + field_simp | |
| 73 | + rw [hphase, smul_eq_mul] | |
| 74 | + rw [hfourier] | |
| 75 | + unfold hardyGaussianDensity | |
| 76 | + rw [hardyGaussian_vertical_integral_eq hab hf (show (a + b) / 2 ∈ Ioo a b by constructor <;> linarith) | |
| 77 | + hx hε τ] | |
| 78 | + calc | |
| 79 | + _ = (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * ∫ t : ℝ, (Real.exp (-x * τ) : ℂ) * | |
| 80 | + (Complex.exp ((-t * τ : ℝ) * Complex.I) * hardyGaussian f ε 0 (line x t)) := by | |
| 81 | + congr 1 | |
| 82 | + apply integral_congr_ae | |
| 83 | + exact Eventually.of_forall (hardyGaussian_frequency_factor f ε τ x) | |
| 84 | + _ = _ := by rw [integral_const_mul]; ring | |
| 85 | + | |
| 86 | +lemma hardyGaussianDensity_continuous {a b ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 87 | + (hf : IsRawHardy a b f) (hε : 0 < ε) : Continuous (hardyGaussianDensity a b f ε) := by | |
| 88 | + have hc : (a + b) / 2 ∈ Ioo a b := by constructor <;> linarith | |
| 89 | + have he : hardyGaussianDensity a b f ε = fun τ => | |
| 90 | + (Real.exp (-((a + b) / 2) * τ) : ℂ) * (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * | |
| 91 | + 𝓕 (fun t : ℝ => hardyGaussian f ε 0 (line ((a + b) / 2) t)) (τ / (2 * Real.pi)) := | |
| 92 | + funext (hardyGaussianDensity_eq_fourier hab hf hc hε) | |
| 93 | + rw [he] | |
| 94 | + exact ((by fun_prop : Continuous (fun τ : ℝ => (Real.exp (-((a + b) / 2) * τ) : ℂ))).mul_const _).mul | |
| 95 | + ((classical_fourier_continuous (hardyGaussian_line_integrable hab hf hc hε 0)).comp (by fun_prop)) | |
| 96 | + | |
| 97 | +lemma hardyGaussianDensity_weighted_line {a b x ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 98 | + (hf : IsRawHardy a b f) (hx : x ∈ Ioo a b) (hε : 0 < ε) (τ : ℝ) : | |
| 99 | + (Real.exp (x * τ) : ℂ) * hardyGaussianDensity a b f ε τ = | |
| 100 | + (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * | |
| 101 | + 𝓕 (fun t : ℝ => hardyGaussian f ε 0 (line x t)) (τ / (2 * Real.pi)) := by | |
| 102 | + rw [hardyGaussianDensity_eq_fourier hab hf hx hε] | |
| 103 | + have he : (Real.exp (x * τ) : ℂ) * (Real.exp (-x * τ) : ℂ) = 1 := by | |
| 104 | + rw [← Complex.ofReal_mul, ← Real.exp_add] | |
| 105 | + simp | |
| 106 | + rw [← mul_assoc, ← mul_assoc, he, one_mul] | |
| 107 | + | |
| 108 | +lemma hardyGaussianDensity_weighted_memLp {a b x ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 109 | + (hf : IsRawHardy a b f) (hx : x ∈ Ioo a b) (hε : 0 < ε) : | |
| 110 | + MemLp (fun τ : ℝ => (Real.exp (x * τ) : ℂ) * hardyGaussianDensity a b f ε τ) 2 volume := by | |
| 111 | + have hF := classical_fourier_memLp (hardyGaussian_line_integrable hab hf hx hε 0) | |
| 112 | + (hardyGaussian_line_memLp hab hf hx hε.le) | |
| 113 | + have hs := memLp_comp_real_mul hF (c := (2 * Real.pi)⁻¹) (by positivity) | |
| 114 | + have hm := hs.const_mul ((Real.sqrt (2 * Real.pi) : ℂ)⁻¹) | |
| 115 | + convert hm using 1 | |
| 116 | + funext τ | |
| 117 | + rw [hardyGaussianDensity_weighted_line hab hf hx hε] | |
| 118 | + congr 2 | |
| 119 | + ring_nf | |
| 120 | + | |
| 121 | +lemma hardyGaussianDensity_line_integral {a b x ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 122 | + (hf : IsRawHardy a b f) (hx : x ∈ Ioo a b) (hε : 0 < ε) : | |
| 123 | + (∫ τ : ℝ, ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * Real.exp (2 * x * τ)) = | |
| 124 | + ∫ t : ℝ, ‖hardyGaussian f ε 0 (line x t)‖ ^ 2 := by | |
| 125 | + let g : ℝ → ℂ := fun t => hardyGaussian f ε 0 (line x t) | |
| 126 | + let c : ℝ := (2 * Real.pi)⁻¹ | |
| 127 | + let k : ℂ := (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ | |
| 128 | + calc | |
| 129 | + _ = ∫ τ : ℝ, ‖(Real.exp (x * τ) : ℂ) * hardyGaussianDensity a b f ε τ‖ ^ 2 := by | |
| 130 | + apply integral_congr_ae | |
| 131 | + filter_upwards [] with τ | |
| 132 | + simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), | |
| 133 | + mul_pow, ← Real.exp_nat_mul, Nat.cast_ofNat, mul_comm, mul_assoc, mul_left_comm] | |
| 134 | + _ = ‖k‖ ^ 2 * ∫ τ : ℝ, ‖𝓕 g (c * τ)‖ ^ 2 := by | |
| 135 | + rw [← integral_const_mul] | |
| 136 | + apply integral_congr_ae | |
| 137 | + filter_upwards [] with τ | |
| 138 | + rw [hardyGaussianDensity_weighted_line hab hf hx hε, norm_mul, mul_pow] | |
| 139 | + rw [show τ / (2 * Real.pi) = c * τ by dsimp [c]; ring] | |
| 140 | + _ = ‖k‖ ^ 2 * (|c⁻¹| * ∫ τ : ℝ, ‖𝓕 g τ‖ ^ 2) := by | |
| 141 | + congr 1 | |
| 142 | + simpa only [smul_eq_mul] using | |
| 143 | + (Measure.integral_comp_mul_left (fun τ : ℝ => ‖𝓕 g τ‖ ^ 2) c) | |
| 144 | + _ = _ := by | |
| 145 | + rw [classical_fourier_norm_sq_integral (hardyGaussian_line_integrable hab hf hx hε 0) | |
| 146 | + (hardyGaussian_line_memLp hab hf hx hε.le)] | |
| 147 | + dsimp [k, c, g] | |
| 148 | + simp only [norm_inv, Complex.norm_real, Real.norm_eq_abs, | |
| 149 | + abs_of_nonneg (Real.sqrt_nonneg _), inv_pow, | |
| 150 | + Real.sq_sqrt (by positivity : 0 ≤ 2 * Real.pi), inv_inv, | |
| 151 | + abs_of_pos (by positivity : 0 < 2 * Real.pi)] | |
| 152 | + field_simp | |
| 153 | + | |
| 154 | +end ConditionalGoldbach | |
+97 −0 ConditionalGoldbach/Proofs/HardyGaussianRepresentation.lean added View file
| @@ -0,0 +1,97 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyGaussianSpace | |
| 4 | + | |
| 5 | +/-! Fourier inversion identifies each Gaussian density with its holomorphic regularization. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex FourierTransform | |
| 11 | +open scoped Topology ComplexConjugate | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma classical_fourier_real_rescale (g : ℝ → ℂ) {c : ℝ} (hc : c ≠ 0) (w : ℝ) : | |
| 15 | + 𝓕 (fun t : ℝ => g (c * t)) w = |c⁻¹| • 𝓕 g (w / c) := by | |
| 16 | + rw [Real.fourier_eq', Real.fourier_eq'] | |
| 17 | + rw [← Measure.integral_comp_mul_left | |
| 18 | + (fun t : ℝ => Complex.exp ((-2 * Real.pi * inner ℝ t (w / c) : ℝ) * Complex.I) • g t) c] | |
| 19 | + apply integral_congr_ae | |
| 20 | + filter_upwards [] with t | |
| 21 | + have he : inner ℝ (c * t) (w / c) = inner ℝ t w := by | |
| 22 | + simp only [Real.inner_apply] | |
| 23 | + field_simp | |
| 24 | + rw [he] | |
| 25 | + | |
| 26 | +lemma classical_fourier_const_mul (g : ℝ → ℂ) (k : ℂ) (w : ℝ) : | |
| 27 | + 𝓕 (fun t : ℝ => k * g t) w = k * 𝓕 g w := by | |
| 28 | + rw [Real.fourier_eq', Real.fourier_eq', ← integral_const_mul] | |
| 29 | + apply integral_congr_ae | |
| 30 | + filter_upwards [] with t | |
| 31 | + simp only [smul_eq_mul] | |
| 32 | + ring | |
| 33 | + | |
| 34 | +lemma fourierLaplace_of_classical_fourier_density {a b x : ℝ} (hx : x ∈ Ioo a b) | |
| 35 | + (ψ : HardySpace a b) (g : ℝ → ℂ) (hg : Integrable g) (hgc : Continuous g) | |
| 36 | + (hcoef : (fun τ : ℝ => (Real.exp (x * τ) : ℂ) * ψ τ) =ᵐ[volume] | |
| 37 | + fun τ => (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * 𝓕 g (τ / (2 * Real.pi))) (t : ℝ) : | |
| 38 | + fourierLaplace ψ (line x t) = g t := by | |
| 39 | + let k : ℂ := (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ | |
| 40 | + let c : ℝ := (2 * Real.pi)⁻¹ | |
| 41 | + have hk : k ≠ 0 := by | |
| 42 | + apply inv_ne_zero | |
| 43 | + exact Complex.ofReal_ne_zero.mpr (Real.sqrt_pos.mpr (by positivity)).ne' | |
| 44 | + have hc : c ≠ 0 := by dsimp [c]; positivity | |
| 45 | + have hscaled : Integrable (fun τ : ℝ => 𝓕 g (τ / (2 * Real.pi))) := by | |
| 46 | + apply (integrable_const_mul_iff (isUnit_iff_ne_zero.mpr hk) _).mp | |
| 47 | + exact (hardy_weighted_line_integrable hx ψ).congr hcoef | |
| 48 | + have hFT : Integrable (𝓕 g) := by | |
| 49 | + apply (integrable_comp_mul_left_iff (𝓕 g) hc).mp | |
| 50 | + convert hscaled using 1 | |
| 51 | + funext τ | |
| 52 | + dsimp [c] | |
| 53 | + ring_nf | |
| 54 | + have hf : 𝓕 (fun τ : ℝ => (Real.exp (x * τ) : ℂ) * ψ τ) (-t / (2 * Real.pi)) = | |
| 55 | + k * ((|c⁻¹| : ℝ) : ℂ) * 𝓕 (𝓕 g) (-t) := by | |
| 56 | + rw [Real.fourier_congr_ae hcoef] | |
| 57 | + have hfun : (fun τ : ℝ => (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * 𝓕 g (τ / (2 * Real.pi))) = | |
| 58 | + (fun τ : ℝ => k * 𝓕 g (c * τ)) := by | |
| 59 | + funext τ | |
| 60 | + congr 2 | |
| 61 | + dsimp [c] | |
| 62 | + ring_nf | |
| 63 | + rw [hfun, classical_fourier_const_mul] | |
| 64 | + rw [classical_fourier_real_rescale (𝓕 g) hc] | |
| 65 | + have he : (-t / (2 * Real.pi)) / c = -t := by dsimp [c]; field_simp | |
| 66 | + rw [he, Complex.real_smul, mul_assoc] | |
| 67 | + rw [fourierLaplace_line_eq_classical_fourier, hf, | |
| 68 | + ← Real.fourierInv_eq_fourier_neg, hg.fourierInv_fourier_eq hFT hgc.continuousAt] | |
| 69 | + have hnorm : k * k * ((|c⁻¹| : ℝ) : ℂ) = 1 := by | |
| 70 | + dsimp [k, c] | |
| 71 | + rw [inv_inv, abs_of_pos (by positivity : 0 < 2 * Real.pi), | |
| 72 | + ← pow_two, inv_pow, ← Complex.ofReal_pow, Real.sq_sqrt (by positivity)] | |
| 73 | + push_cast | |
| 74 | + field_simp | |
| 75 | + change k * (k * ((|c⁻¹| : ℝ) : ℂ) * g t) = g t | |
| 76 | + rw [← mul_assoc, ← mul_assoc, hnorm, one_mul] | |
| 77 | + | |
| 78 | +lemma hardyGaussianVector_representation_line {a b x ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 79 | + (hf : IsRawHardy a b f) (hx : x ∈ Ioo a b) (hε : 0 < ε) (hε' : ε ≤ 1) (t : ℝ) : | |
| 80 | + fourierLaplace (hardyGaussianVector hab hf hε hε') (line x t) = | |
| 81 | + hardyGaussian f ε 0 (line x t) := by | |
| 82 | + apply fourierLaplace_of_classical_fourier_density hx _ _ | |
| 83 | + (hardyGaussian_line_integrable hab hf hx hε 0) | |
| 84 | + ((rawHardy_line_continuous hf hx).mul (by unfold line; fun_prop)) | |
| 85 | + filter_upwards [(volume_absolutelyContinuous_hardyMeasure a b).ae_eq | |
| 86 | + (hardyGaussianDensity_memLp hab hf hε hε').coeFn_toLp] with τ hτ | |
| 87 | + rw [hardyGaussianVector, hτ] | |
| 88 | + exact hardyGaussianDensity_weighted_line hab hf hx hε τ | |
| 89 | + | |
| 90 | +lemma hardyGaussianVector_representation {a b ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 91 | + (hf : IsRawHardy a b f) (hε : 0 < ε) (hε' : ε ≤ 1) {s : ℂ} (hs : s ∈ strip a b) : | |
| 92 | + fourierLaplace (hardyGaussianVector hab hf hε hε') s = f s * Complex.exp ((ε : ℂ) * s ^ 2) := by | |
| 93 | + have hline : line s.re s.im = s := Complex.re_add_im s | |
| 94 | + have h := hardyGaussianVector_representation_line hab hf hs hε hε' s.im | |
| 95 | + simpa only [hline, hardyGaussian, Complex.ofReal_zero, zero_mul, sub_zero] using h | |
| 96 | + | |
| 97 | +end ConditionalGoldbach | |
+135 −0 ConditionalGoldbach/Proofs/HardyGaussianSpace.lean added View file
| @@ -0,0 +1,135 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyGaussianDensity | |
| 4 | + | |
| 5 | +/-! Weighted square-integrability of the Gaussian Fourier density, obtained by Fatou at both ends. -/ | |
| 6 | +@[expose] public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex FourierTransform | |
| 11 | +open scoped Topology ComplexConjugate | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma hardyGaussian_uniform_line_bound {a b : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 15 | + (hf : IsRawHardy a b f) : ∃ C : ℝ, 0 ≤ C ∧ ∀ ε : ℝ, 0 < ε → ε ≤ 1 → | |
| 16 | + ∀ x ∈ Ioo a b, (∫ t : ℝ, ‖hardyGaussian f ε 0 (line x t)‖ ^ 2) ≤ C := by | |
| 17 | + obtain ⟨C, hC, hbound⟩ := rawHardy_uniform_line_bound hab hf | |
| 18 | + let B : ℝ := Real.exp (2 * (|a| + |b|) ^ 2) | |
| 19 | + refine ⟨B * C, mul_nonneg (Real.exp_pos _).le hC, ?_⟩ | |
| 20 | + intro ε hε hε' x hx | |
| 21 | + have hxa : |x| ≤ |a| + |b| := by | |
| 22 | + apply abs_le.mpr | |
| 23 | + constructor | |
| 24 | + · have h := neg_abs_le a | |
| 25 | + have hb := abs_nonneg b | |
| 26 | + linarith [hx.1] | |
| 27 | + · have h := le_abs_self b | |
| 28 | + have ha := abs_nonneg a | |
| 29 | + linarith [hx.2] | |
| 30 | + have hsq : x ^ 2 ≤ (|a| + |b|) ^ 2 := by | |
| 31 | + nlinarith [sq_abs x, abs_nonneg x, abs_nonneg a, abs_nonneg b] | |
| 32 | + have hexp : Real.exp (2 * ε * x ^ 2) ≤ B := by | |
| 33 | + apply Real.exp_le_exp.mpr | |
| 34 | + have h := mul_le_mul_of_nonneg_right hε' (sq_nonneg x) | |
| 35 | + nlinarith | |
| 36 | + calc | |
| 37 | + _ ≤ ∫ t : ℝ, B * ‖f (line x t)‖ ^ 2 := by | |
| 38 | + apply integral_mono ((hardyGaussian_line_memLp hab hf hx hε.le).norm.integrable_sq) | |
| 39 | + ((hbound x hx).1.const_mul B) | |
| 40 | + intro t | |
| 41 | + exact (hardyGaussian_norm_sq_le f hε.le x t).trans | |
| 42 | + (mul_le_mul_of_nonneg_right hexp (sq_nonneg _)) | |
| 43 | + _ = B * ∫ t : ℝ, ‖f (line x t)‖ ^ 2 := integral_const_mul _ _ | |
| 44 | + _ ≤ _ := mul_le_mul_of_nonneg_left (hbound x hx).2 (Real.exp_pos _).le | |
| 45 | + | |
| 46 | +lemma hardyGaussianDensity_line_integrable {a b x ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 47 | + (hf : IsRawHardy a b f) (hx : x ∈ Ioo a b) (hε : 0 < ε) : | |
| 48 | + Integrable (fun τ : ℝ => ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * Real.exp (2 * x * τ)) := by | |
| 49 | + have h := (hardyGaussianDensity_weighted_memLp hab hf hx hε).norm.integrable_sq | |
| 50 | + convert h using 1 | |
| 51 | + funext τ | |
| 52 | + simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), | |
| 53 | + mul_pow, ← Real.exp_nat_mul, Nat.cast_ofNat, mul_comm, mul_assoc, mul_left_comm] | |
| 54 | + | |
| 55 | +lemma hardyGaussianDensity_uniform_weighted_bound {a b : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 56 | + (hf : IsRawHardy a b f) : ∃ C : ℝ, 0 ≤ C ∧ ∀ ε : ℝ, 0 < ε → ε ≤ 1 → | |
| 57 | + Integrable (fun τ : ℝ => ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * hardyWeight a b τ) ∧ | |
| 58 | + (∫ τ : ℝ, ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * hardyWeight a b τ) ≤ C := by | |
| 59 | + obtain ⟨C, hC, hbound⟩ := hardyGaussian_uniform_line_bound hab hf | |
| 60 | + refine ⟨2 * C, by positivity, ?_⟩ | |
| 61 | + intro ε hε hε' | |
| 62 | + let δ : ℕ → ℝ := fun n => (b - a) / (n + 3) | |
| 63 | + have hδ : ∀ n, 0 < δ n ∧ δ n < (b - a) / 2 := by | |
| 64 | + intro n | |
| 65 | + have hn : (0 : ℝ) < n + 3 := by positivity | |
| 66 | + have hn' : (2 : ℝ) < n + 3 := by have := Nat.cast_nonneg (α := ℝ) n; linarith | |
| 67 | + refine ⟨div_pos (sub_pos.mpr hab) hn, ?_⟩ | |
| 68 | + exact div_lt_div_of_pos_left (sub_pos.mpr hab) (by norm_num) hn' | |
| 69 | + have hδlim : Tendsto δ atTop (𝓝 0) := | |
| 70 | + (tendsto_atTop_add_const_right atTop 3 tendsto_natCast_atTop_atTop).const_div_atTop (b - a) | |
| 71 | + have hleft : ∀ n, a + δ n ∈ Ioo a b := fun n => ⟨by linarith [(hδ n).1], by linarith [(hδ n).2]⟩ | |
| 72 | + have hright : ∀ n, b - δ n ∈ Ioo a b := fun n => ⟨by linarith [(hδ n).2], by linarith [(hδ n).1]⟩ | |
| 73 | + let F : ℕ → ℝ → ℝ := fun n τ => ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * | |
| 74 | + (Real.exp (2 * (a + δ n) * τ) + Real.exp (2 * (b - δ n) * τ)) | |
| 75 | + have hfun : ∀ n, F n = fun τ : ℝ => | |
| 76 | + ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * Real.exp (2 * (a + δ n) * τ) + | |
| 77 | + ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * Real.exp (2 * (b - δ n) * τ) := by | |
| 78 | + intro n | |
| 79 | + funext τ | |
| 80 | + exact mul_add _ _ _ | |
| 81 | + have hi : ∀ n, Integrable (F n) := by | |
| 82 | + intro n | |
| 83 | + rw [hfun] | |
| 84 | + exact (hardyGaussianDensity_line_integrable hab hf (hleft n) hε).add | |
| 85 | + (hardyGaussianDensity_line_integrable hab hf (hright n) hε) | |
| 86 | + have hb : ∀ n, (∫ τ : ℝ, F n τ) ≤ 2 * C := by | |
| 87 | + intro n | |
| 88 | + rw [hfun, integral_add (hardyGaussianDensity_line_integrable hab hf (hleft n) hε) | |
| 89 | + (hardyGaussianDensity_line_integrable hab hf (hright n) hε), | |
| 90 | + hardyGaussianDensity_line_integral hab hf (hleft n) hε, | |
| 91 | + hardyGaussianDensity_line_integral hab hf (hright n) hε] | |
| 92 | + linarith [hbound ε hε hε' (a + δ n) (hleft n), hbound ε hε hε' (b - δ n) (hright n)] | |
| 93 | + apply nonnegative_integral_bound_of_tendsto (F := F) (by positivity) hi | |
| 94 | + (fun n τ => by dsimp [F]; positivity) hb | |
| 95 | + (((hardyGaussianDensity_continuous hab hf hε).norm.pow 2).mul | |
| 96 | + (hardyWeight_continuous a b)).aestronglyMeasurable | |
| 97 | + (fun τ => mul_nonneg (sq_nonneg _) (hardyWeight_pos a b τ).le) | |
| 98 | + intro τ | |
| 99 | + have hc : Continuous (fun d : ℝ => ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * | |
| 100 | + (Real.exp (2 * (a + d) * τ) + Real.exp (2 * (b - d) * τ))) := by fun_prop | |
| 101 | + simpa only [Function.comp_def, Pi.pow_apply, Pi.mul_apply, F, hardyWeight, add_zero, sub_zero] using hc.continuousAt.tendsto.comp hδlim | |
| 102 | + | |
| 103 | +lemma hardyGaussianDensity_memLp {a b ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 104 | + (hf : IsRawHardy a b f) (hε : 0 < ε) (hε' : ε ≤ 1) : | |
| 105 | + MemLp (hardyGaussianDensity a b f ε) 2 (hardyMeasure a b) := by | |
| 106 | + apply (memLp_two_iff_integrable_sq_norm (hardyGaussianDensity_continuous hab hf hε).aestronglyMeasurable).mpr | |
| 107 | + obtain ⟨C, hC, hb⟩ := hardyGaussianDensity_uniform_weighted_bound hab hf | |
| 108 | + change Integrable _ (volume.withDensity (fun τ => ENNReal.ofReal (hardyWeight a b τ))) | |
| 109 | + rw [integrable_withDensity_iff (hardyWeight_continuous a b).measurable.ennreal_ofReal | |
| 110 | + (Eventually.of_forall (fun _ => ENNReal.ofReal_lt_top))] | |
| 111 | + simpa only [ENNReal.toReal_ofReal (hardyWeight_pos a b _).le, smul_eq_mul, mul_comm] using | |
| 112 | + (hb ε hε hε').1 | |
| 113 | + | |
| 114 | +def hardyGaussianVector {a b ε : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 115 | + (hf : IsRawHardy a b f) (hε : 0 < ε) (hε' : ε ≤ 1) : HardySpace a b := | |
| 116 | + (hardyGaussianDensity_memLp hab hf hε hε').toLp _ | |
| 117 | + | |
| 118 | +lemma hardyGaussianVector_uniform_norm_bound {a b : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 119 | + (hf : IsRawHardy a b f) : ∃ C : ℝ, ∀ ε : ℝ, ∀ hε : 0 < ε, ∀ hε' : ε ≤ 1, | |
| 120 | + ‖hardyGaussianVector hab hf hε hε'‖ ≤ C := by | |
| 121 | + obtain ⟨C, hC, hb⟩ := hardyGaussianDensity_uniform_weighted_bound hab hf | |
| 122 | + refine ⟨Real.sqrt C, ?_⟩ | |
| 123 | + intro ε hε hε' | |
| 124 | + have he : ‖hardyGaussianVector hab hf hε hε'‖ ^ 2 = | |
| 125 | + ∫ τ : ℝ, ‖hardyGaussianDensity a b f ε τ‖ ^ 2 * hardyWeight a b τ := by | |
| 126 | + rw [hardySpace_norm_sq_integral] | |
| 127 | + apply integral_congr_ae | |
| 128 | + filter_upwards [(volume_absolutelyContinuous_hardyMeasure a b).ae_eq | |
| 129 | + (hardyGaussianDensity_memLp hab hf hε hε').coeFn_toLp] with τ hτ | |
| 130 | + rw [hardyGaussianVector, hτ] | |
| 131 | + have h := (hb ε hε hε').2 | |
| 132 | + rw [← he] at h | |
| 133 | + exact (Real.le_sqrt (norm_nonneg _) hC).mpr h | |
| 134 | + | |
| 135 | +end ConditionalGoldbach | |
+87 −0 ConditionalGoldbach/Proofs/HardyHolomorphic.lean added View file
| @@ -0,0 +1,87 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.Calculus.ParametricIntegral | |
| 4 | +public import ConditionalGoldbach.Proofs.HardyTraceAlgebra | |
| 5 | + | |
| 6 | +/-! Holomorphy of the Fourier–Laplace representation on its open strip. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +open scoped Topology | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma hardy_derivative_exp_bound (u v δ τ : ℝ) (hδ : 0 < δ) (hu : |u - v| ≤ δ) : | |
| 16 | + |τ| * Real.exp (u * τ) ≤ | |
| 17 | + δ⁻¹ * (Real.exp ((v - 2 * δ) * τ) + Real.exp ((v + 2 * δ) * τ)) := by | |
| 18 | + have habs : δ * |τ| ≤ Real.exp (δ * |τ|) := by | |
| 19 | + linarith [Real.add_one_le_exp (δ * |τ|)] | |
| 20 | + have h := mul_le_mul_of_nonneg_right habs (Real.exp_pos (u * τ)).le | |
| 21 | + rw [← Real.exp_add] at h | |
| 22 | + have hb : Real.exp (δ * |τ| + u * τ) ≤ | |
| 23 | + Real.exp ((v - 2 * δ) * τ) + Real.exp ((v + 2 * δ) * τ) := by | |
| 24 | + by_cases hτ : 0 ≤ τ | |
| 25 | + · rw [abs_of_nonneg hτ] | |
| 26 | + apply le_trans (Real.exp_le_exp.mpr ?_) (le_add_of_nonneg_left (Real.exp_pos _).le) | |
| 27 | + nlinarith [(abs_le.mp hu).2] | |
| 28 | + · rw [abs_of_neg (lt_of_not_ge hτ)] | |
| 29 | + apply le_trans (Real.exp_le_exp.mpr ?_) (le_add_of_nonneg_right (Real.exp_pos _).le) | |
| 30 | + nlinarith [(abs_le.mp hu).1] | |
| 31 | + have hh := le_trans h hb | |
| 32 | + calc | |
| 33 | + _ = δ⁻¹ * (δ * |τ| * Real.exp (u * τ)) := by field_simp | |
| 34 | + _ ≤ _ := mul_le_mul_of_nonneg_left hh (inv_nonneg.mpr hδ.le) | |
| 35 | + | |
| 36 | +lemma fourierLaplace_differentiableAt {a b : ℝ} (ψ : HardySpace a b) {s : ℂ} | |
| 37 | + (hs : s ∈ strip a b) : DifferentiableAt ℂ (fourierLaplace ψ) s := by | |
| 38 | + have hsa : 0 < s.re - a := sub_pos.mpr hs.1 | |
| 39 | + have hsb : 0 < b - s.re := sub_pos.mpr hs.2 | |
| 40 | + obtain ⟨δ, hδ, hδa, hδb⟩ : ∃ δ : ℝ, 0 < δ ∧ a < s.re - 2 * δ ∧ s.re + 2 * δ < b := by | |
| 41 | + refine ⟨min (s.re - a) (b - s.re) / 4, by positivity, ?_, ?_⟩ | |
| 42 | + · have hm := min_le_left (s.re - a) (b - s.re) | |
| 43 | + have ha : a < s.re := hs.1 | |
| 44 | + linarith | |
| 45 | + · have hm := min_le_right (s.re - a) (b - s.re) | |
| 46 | + have hb : s.re < b := hs.2 | |
| 47 | + linarith | |
| 48 | + let B : ℝ → ℝ := fun τ => δ⁻¹ * | |
| 49 | + (Real.exp ((s.re - 2 * δ) * τ) + Real.exp ((s.re + 2 * δ) * τ)) * ‖ψ τ‖ | |
| 50 | + have hB : Integrable B := by | |
| 51 | + have h1 := (hardy_weighted_line_integrable (a := a) (b := b) | |
| 52 | + (x := s.re - 2 * δ) ⟨hδa, by linarith [hs.2]⟩ ψ).norm | |
| 53 | + have h2 := (hardy_weighted_line_integrable (a := a) (b := b) | |
| 54 | + (x := s.re + 2 * δ) ⟨by linarith [hs.1], hδb⟩ ψ).norm | |
| 55 | + have h := (h1.add h2).const_mul δ⁻¹ | |
| 56 | + simpa only [B, Pi.add_apply, norm_mul, Complex.norm_real, Real.norm_eq_abs, | |
| 57 | + abs_of_pos (Real.exp_pos _), add_mul, mul_add, mul_assoc] using h | |
| 58 | + have hmain := hasDerivAt_integral_of_dominated_loc_of_deriv_le | |
| 59 | + (F := fun z : ℂ => fun τ : ℝ => ψ τ * Complex.exp (z * τ)) | |
| 60 | + (F' := fun z : ℂ => fun τ : ℝ => ψ τ * (Complex.exp (z * τ) * τ)) | |
| 61 | + (bound := B) (Metric.ball_mem_nhds s hδ) | |
| 62 | + (Eventually.of_forall (fun z => (hardySpace_aestronglyMeasurable ψ).mul | |
| 63 | + (by fun_prop : Continuous (fun τ : ℝ => Complex.exp (z * τ))).aestronglyMeasurable)) | |
| 64 | + (fourierLaplace_integrable ψ hs) | |
| 65 | + ((hardySpace_aestronglyMeasurable ψ).mul | |
| 66 | + (by fun_prop : Continuous (fun τ : ℝ => Complex.exp (s * τ) * τ)).aestronglyMeasurable) | |
| 67 | + ?_ hB ?_ | |
| 68 | + · exact hmain.2.differentiableAt.const_mul _ | |
| 69 | + · apply Eventually.of_forall | |
| 70 | + intro τ z hz | |
| 71 | + have hz' : |z.re - s.re| ≤ δ := by | |
| 72 | + rw [Metric.mem_ball, dist_eq_norm] at hz | |
| 73 | + have h := (Complex.abs_re_le_norm (z - s)).trans (le_of_lt hz) | |
| 74 | + simpa only [Complex.sub_re, dist_eq_norm] using h | |
| 75 | + have h := mul_le_mul_of_nonneg_right (hardy_derivative_exp_bound z.re s.re δ τ hδ hz') (norm_nonneg (ψ τ)) | |
| 76 | + simpa only [B, Pi.add_apply, norm_mul, Complex.norm_exp, Complex.mul_re, Complex.ofReal_re, | |
| 77 | + Complex.ofReal_im, mul_zero, sub_zero, Complex.norm_real, Real.norm_eq_abs, | |
| 78 | + mul_assoc, mul_comm, mul_left_comm] using h | |
| 79 | + · exact Eventually.of_forall (fun τ z _ => by | |
| 80 | + simpa only [id_eq, one_mul] using | |
| 81 | + ((((hasDerivAt_id z).mul_const (τ : ℂ)).cexp).const_mul (ψ τ))) | |
| 82 | + | |
| 83 | +lemma fourierLaplace_differentiableOn {a b : ℝ} (ψ : HardySpace a b) : | |
| 84 | + DifferentiableOn ℂ (fourierLaplace ψ) (strip a b) := | |
| 85 | + fun _ hs => (fourierLaplace_differentiableAt ψ hs).differentiableWithinAt | |
| 86 | + | |
| 87 | +end ConditionalGoldbach | |
+45 −0 ConditionalGoldbach/Proofs/HardyInterior.lean added View file
| @@ -0,0 +1,45 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyFourier | |
| 4 | +public import ConditionalGoldbach.Proofs.HardyWeights | |
| 5 | + | |
| 6 | +/-! The Fourier–Laplace transform has an L² restriction to every interior vertical line. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex FourierTransform | |
| 11 | +namespace ConditionalGoldbach | |
| 12 | + | |
| 13 | +lemma fourierLaplace_line_eq_classical_fourier {a b : ℝ} (ψ : HardySpace a b) (x t : ℝ) : | |
| 14 | + fourierLaplace ψ (line x t) = (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * | |
| 15 | + 𝓕 (fun τ : ℝ => (Real.exp (x * τ) : ℂ) * ψ τ) (-t / (2 * Real.pi)) := by | |
| 16 | + unfold fourierLaplace | |
| 17 | + congr 1 | |
| 18 | + rw [Real.fourier_eq'] | |
| 19 | + apply integral_congr_ae | |
| 20 | + filter_upwards [] with τ | |
| 21 | + have phase : -2 * Real.pi * inner ℝ τ (-t / (2 * Real.pi)) = τ * t := by | |
| 22 | + simp only [Real.inner_apply] | |
| 23 | + field_simp | |
| 24 | + rw [phase, smul_eq_mul, Complex.ofReal_exp, ← mul_assoc, ← Complex.exp_add] | |
| 25 | + rw [mul_comm (ψ τ)] | |
| 26 | + congr 1 | |
| 27 | + congr 1 | |
| 28 | + simp only [line, Complex.ofReal_mul] | |
| 29 | + ring | |
| 30 | + | |
| 31 | +lemma hardy_interiorLine_memLp {a b x : ℝ} (_hab : a < b) | |
| 32 | + (hx : x ∈ Ioo a b) (ψ : HardySpace a b) : | |
| 33 | + MemLp (fun t : ℝ => fourierLaplace ψ (line x t)) 2 volume := by | |
| 34 | + have hf := classical_fourier_memLp (hardy_weighted_line_integrable hx ψ) | |
| 35 | + (hardy_weighted_line_memLp ⟨hx.1.le, hx.2.le⟩ ψ) | |
| 36 | + have hs := memLp_comp_real_mul hf (c := -(2 * Real.pi)⁻¹) | |
| 37 | + (neg_ne_zero.mpr (inv_ne_zero (mul_ne_zero (by norm_num) Real.pi_ne_zero))) | |
| 38 | + have hm := hs.const_mul ((Real.sqrt (2 * Real.pi) : ℂ)⁻¹) | |
| 39 | + convert hm using 1 | |
| 40 | + funext t | |
| 41 | + rw [fourierLaplace_line_eq_classical_fourier] | |
| 42 | + congr 2 | |
| 43 | + ring_nf | |
| 44 | + | |
| 45 | +end ConditionalGoldbach | |
+224 −0 ConditionalGoldbach/Proofs/HardyKernelColumns.lean added View file
| @@ -0,0 +1,224 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyContinuousBoundary | |
| 4 | +public import ConditionalGoldbach.Proofs.HardyKernelPairing | |
| 5 | +public import ConditionalGoldbach.Proofs.SpectralL2BasisExistence | |
| 6 | + | |
| 7 | +/-! Hardy kernel columns determine the entire range and the exact action of the boundary operator. -/ | |
| 8 | +@[expose] public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +open scoped Topology ComplexConjugate | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +/-- Every column, including those indexed by boundary points, is a Hardy function with its | |
| 17 | +literal boundary restrictions as traces. -/ | |
| 18 | +def HasHardyKernelColumns {a b : ℝ} (hab : a < b) (K : ℂ → ℂ → ℂ) : Prop := | |
| 19 | + ∀ s : ℂ, s.re ∈ Icc a b → ∃ g : HardySpace a b, | |
| 20 | + (∀ z ∈ strip a b, fourierLaplace g z = K z s) ∧ | |
| 21 | + ((boundaryTraces hab g).1 =ᵐ[volume] fun t => K (line a t) s) ∧ | |
| 22 | + ((boundaryTraces hab g).2 =ᵐ[volume] fun t => K (line b t) s) | |
| 23 | + | |
| 24 | +lemma hardyKernelColumns_of_majorant {a b : ℝ} (hab : a < b) (K : ℂ → ℂ → ℂ) | |
| 25 | + (hhol : ∀ s : ℂ, s.re ∈ Icc a b → DifferentiableOn ℂ (fun z => K z s) (strip a b)) | |
| 26 | + (hc : ∀ s : ℂ, s.re ∈ Icc a b → ContinuousOn (fun z => K z s) {z : ℂ | z.re ∈ Icc a b}) | |
| 27 | + (hbound : ∀ s : ℂ, s.re ∈ Icc a b → ∃ M : ℝ → ℝ, | |
| 28 | + Integrable M ∧ ∀ x ∈ Icc a b, ∀ t : ℝ, ‖K (line x t) s‖ ^ 2 ≤ M t) : | |
| 29 | + HasHardyKernelColumns hab K := by | |
| 30 | + intro s hs | |
| 31 | + obtain ⟨M, hM, hbound⟩ := hbound s hs | |
| 32 | + exact hardy_column_of_closedStrip_majorant hab (hhol s hs) (hc s hs) hM hbound | |
| 33 | + | |
| 34 | +lemma hardyBoundary_inner_column {a b : ℝ} (hab : a < b) (K : ℂ → ℂ → ℂ) | |
| 35 | + (hK : HermitianKernel K) (g : HardySpace a b) (s : ℂ) | |
| 36 | + (hga : (boundaryTraces hab g).1 =ᵐ[volume] fun t => K (line a t) s) | |
| 37 | + (hgb : (boundaryTraces hab g).2 =ᵐ[volume] fun t => K (line b t) s) | |
| 38 | + (f : HardyBoundarySpace) : | |
| 39 | + inner ℂ (hardyTraceIsometry hab g) f = | |
| 40 | + (∫ t : ℝ, K s (line a t) * f.fst t) + ∫ t : ℝ, K s (line b t) * f.snd t := by | |
| 41 | + change inner ℂ (WithLp.toLp 2 (boundaryTraces hab g)) f = _ | |
| 42 | + rw [WithLp.prod_inner_apply, L2.inner_def, L2.inner_def] | |
| 43 | + congr 1 | |
| 44 | + · apply integral_congr_ae | |
| 45 | + filter_upwards [hga] with t ht | |
| 46 | + simp only [RCLike.inner_apply] | |
| 47 | + rw [ht, ← hK s (line a t), mul_comm] | |
| 48 | + rfl | |
| 49 | + · apply integral_congr_ae | |
| 50 | + filter_upwards [hgb] with t ht | |
| 51 | + simp only [RCLike.inner_apply] | |
| 52 | + rw [ht, ← hK s (line b t), mul_comm] | |
| 53 | + rfl | |
| 54 | + | |
| 55 | +lemma boundaryKernelOperator_kills_trace_orthogonal {a b : ℝ} (hab : a < b) | |
| 56 | + (K : ℂ → ℂ → ℂ) (hherm : HermitianKernel K) | |
| 57 | + (hK : ∀ x ∈ ({a, b} : Finset ℝ), ∀ y ∈ ({a, b} : Finset ℝ), | |
| 58 | + MemLp (fun p : ℝ × ℝ => K (line x p.1) (line y p.2)) 2 volume) | |
| 59 | + (hcol : HasHardyKernelColumns hab K) | |
| 60 | + (f : HardyBoundarySpace) | |
| 61 | + (hf : f ∈ (hardyTraceIsometry hab).toLinearMap.rangeᗮ) : | |
| 62 | + boundaryKernelOperator a b K hK f = 0 := by | |
| 63 | + have hp (x : ℝ) (hx : x ∈ Icc a b) (t : ℝ) : | |
| 64 | + (∫ u : ℝ, K (line x t) (line a u) * f.fst u) + | |
| 65 | + ∫ u : ℝ, K (line x t) (line b u) * f.snd u = 0 := by | |
| 66 | + have hs : (line x t).re ∈ Icc a b := by simpa [line] using hx | |
| 67 | + obtain ⟨g, _, hga, hgb⟩ := hcol (line x t) hs | |
| 68 | + rw [← hardyBoundary_inner_column hab K hherm g (line x t) hga hgb f] | |
| 69 | + exact (Submodule.mem_orthogonal _ _).mp hf _ ⟨g, rfl⟩ | |
| 70 | + obtain ⟨ha, hb⟩ := boundaryKernelOperator_coeFn a b K hK f | |
| 71 | + apply WithLp.ofLp_injective 2 | |
| 72 | + apply Prod.ext | |
| 73 | + · apply Lp.ext | |
| 74 | + filter_upwards [ha, Lp.coeFn_zero ℂ 2 (volume : Measure ℝ)] with t ht hz | |
| 75 | + change (boundaryKernelOperator a b K hK f).fst t = _ | |
| 76 | + rw [ht, hp a ⟨le_rfl, hab.le⟩ t] | |
| 77 | + exact hz.symm | |
| 78 | + · apply Lp.ext | |
| 79 | + filter_upwards [hb, Lp.coeFn_zero ℂ 2 (volume : Measure ℝ)] with t ht hz | |
| 80 | + change (boundaryKernelOperator a b K hK f).snd t = _ | |
| 81 | + rw [ht, hp b ⟨hab.le, le_rfl⟩ t] | |
| 82 | + exact hz.symm | |
| 83 | + | |
| 84 | +lemma boundaryKernelOperator_range_hardy {a b : ℝ} (hab : a < b) | |
| 85 | + (K : ℂ → ℂ → ℂ) (hherm : HermitianKernel K) | |
| 86 | + (hK : ∀ x ∈ ({a, b} : Finset ℝ), ∀ y ∈ ({a, b} : Finset ℝ), | |
| 87 | + MemLp (fun p : ℝ × ℝ => K (line x p.1) (line y p.2)) 2 volume) | |
| 88 | + (hcol : HasHardyKernelColumns hab K) (f : HardyBoundarySpace) : | |
| 89 | + boundaryKernelOperator a b K hK f ∈ Set.range (hardyTraceIsometry hab) := by | |
| 90 | + let S := (hardyTraceIsometry hab).toLinearMap.range | |
| 91 | + have hclosed : IsClosed (S : Set HardyBoundarySpace) := (hardyTraceIsometry hab).isometry.isClosedEmbedding.isClosed_range | |
| 92 | + have he : Sᗮᗮ = S := by | |
| 93 | + rw [Submodule.orthogonal_orthogonal_eq_closure, hclosed.submodule_topologicalClosure_eq] | |
| 94 | + change boundaryKernelOperator a b K hK f ∈ S | |
| 95 | + rw [← he, Submodule.mem_orthogonal] | |
| 96 | + intro g hg | |
| 97 | + have hs := (boundaryKernelOperator_isSelfAdjoint a b K hK | |
| 98 | + (fun x _ y _ t u => hherm (line y u) (line x t))).isSymmetric | |
| 99 | + calc | |
| 100 | + inner ℂ g (boundaryKernelOperator a b K hK f) = | |
| 101 | + inner ℂ (boundaryKernelOperator a b K hK g) f := (hs g f).symm | |
| 102 | + _ = 0 := by rw [boundaryKernelOperator_kills_trace_orthogonal hab K hherm hK hcol g hg, | |
| 103 | + inner_zero_left] | |
| 104 | + | |
| 105 | +lemma boundaryKernelOperator_trace_evaluation {a b : ℝ} (hab : a < b) | |
| 106 | + (K : ℂ → ℂ → ℂ) (hherm : HermitianKernel K) | |
| 107 | + (hK : ∀ x ∈ ({a, b} : Finset ℝ), ∀ y ∈ ({a, b} : Finset ℝ), | |
| 108 | + MemLp (fun p : ℝ × ℝ => K (line x p.1) (line y p.2)) 2 volume) | |
| 109 | + (hcol : HasHardyKernelColumns hab K) (s : ℂ) (hs : s ∈ strip a b) | |
| 110 | + (g : HardySpace a b) | |
| 111 | + (hga : (boundaryTraces hab g).1 =ᵐ[volume] fun t => K (line a t) s) | |
| 112 | + (hgb : (boundaryTraces hab g).2 =ᵐ[volume] fun t => K (line b t) s) : | |
| 113 | + boundaryKernelOperator a b K hK (hardyTraceIsometry hab (evaluationVector s)) = | |
| 114 | + hardyTraceIsometry hab g := by | |
| 115 | + have hp (x : ℝ) (hx : x ∈ Icc a b) (t : ℝ) : | |
| 116 | + (∫ u : ℝ, K (line x t) (line a u) * (boundaryTraces hab (evaluationVector s)).1 u) + | |
| 117 | + ∫ u : ℝ, K (line x t) (line b u) * (boundaryTraces hab (evaluationVector s)).2 u = | |
| 118 | + K (line x t) s := by | |
| 119 | + have hz : (line x t).re ∈ Icc a b := by simpa [line] using hx | |
| 120 | + obtain ⟨gz, hgz, hgza, hgzb⟩ := hcol (line x t) hz | |
| 121 | + change (∫ u : ℝ, K (line x t) (line a u) * | |
| 122 | + (hardyTraceIsometry hab (evaluationVector s)).fst u) + | |
| 123 | + ∫ u : ℝ, K (line x t) (line b u) * | |
| 124 | + (hardyTraceIsometry hab (evaluationVector s)).snd u = _ | |
| 125 | + rw [← hardyBoundary_inner_column hab K hherm gz (line x t) hgza hgzb, | |
| 126 | + (hardyTraceIsometry hab).inner_map_map] | |
| 127 | + calc | |
| 128 | + inner ℂ gz (evaluationVector s) = conj (inner ℂ (evaluationVector s) gz) := | |
| 129 | + (inner_conj_symm _ _).symm | |
| 130 | + _ = conj (fourierLaplace gz s) := by rw [evaluationVector_spec hs]; rfl | |
| 131 | + _ = K (line x t) s := by rw [hgz s hs, ← hherm (line x t) s] | |
| 132 | + obtain ⟨ha, hb⟩ := boundaryKernelOperator_coeFn a b K hK | |
| 133 | + (hardyTraceIsometry hab (evaluationVector s)) | |
| 134 | + apply WithLp.ofLp_injective 2 | |
| 135 | + apply Prod.ext | |
| 136 | + · apply Lp.ext | |
| 137 | + filter_upwards [ha, hga] with t ht hg | |
| 138 | + change (boundaryKernelOperator a b K hK (hardyTraceIsometry hab (evaluationVector s))).fst t = _ | |
| 139 | + rw [ht] | |
| 140 | + exact (hp a ⟨le_rfl, hab.le⟩ t).trans hg.symm | |
| 141 | + · apply Lp.ext | |
| 142 | + filter_upwards [hb, hgb] with t ht hg | |
| 143 | + change (boundaryKernelOperator a b K hK (hardyTraceIsometry hab (evaluationVector s))).snd t = _ | |
| 144 | + rw [ht] | |
| 145 | + exact (hp b ⟨hab.le, le_rfl⟩ t).trans hg.symm | |
| 146 | + | |
| 147 | +lemma hardyBoundaryCompression_represents {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] | |
| 148 | + (K : ℂ → ℂ → ℂ) (hherm : HermitianKernel K) | |
| 149 | + (hK : ∀ x ∈ ({a, beta} : Finset ℝ), ∀ y ∈ ({a, beta} : Finset ℝ), | |
| 150 | + MemLp (fun p : ℝ × ℝ => K (line x p.1) (line y p.2)) 2 volume) | |
| 151 | + (hcol : HasHardyKernelColumns ha K) : | |
| 152 | + RepresentsKernel ha N K (hardyBoundaryCompression ha (boundaryKernelOperator a beta K hK)) := by | |
| 153 | + intro f s hs | |
| 154 | + obtain ⟨g, hg, hga, hgb⟩ := hcol s ⟨hs.1.le, hs.2.le⟩ | |
| 155 | + rw [evaluationVector_spec hs] | |
| 156 | + change inner ℂ (evaluationVector s) | |
| 157 | + (hardyBoundaryCompression ha (boundaryKernelOperator a beta K hK) f) = _ | |
| 158 | + rw [hardyBoundaryCompression_inner] | |
| 159 | + have hself := (boundaryKernelOperator_isSelfAdjoint a beta K hK | |
| 160 | + (fun x _ y _ t u => hherm (line y u) (line x t))).isSymmetric | |
| 161 | + calc | |
| 162 | + inner ℂ (hardyTraceIsometry ha (evaluationVector s)) | |
| 163 | + (boundaryKernelOperator a beta K hK (hardyTraceIsometry ha f)) = | |
| 164 | + inner ℂ (boundaryKernelOperator a beta K hK (hardyTraceIsometry ha (evaluationVector s))) | |
| 165 | + (hardyTraceIsometry ha f) := (hself _ _).symm | |
| 166 | + _ = inner ℂ (hardyTraceIsometry ha g) (hardyTraceIsometry ha f) := by | |
| 167 | + rw [boundaryKernelOperator_trace_evaluation ha K hherm hK hcol s hs g hga hgb] | |
| 168 | + _ = kernelAction ha N K f s := hardyBoundary_inner_column ha K hherm g s hga hgb _ | |
| 169 | + | |
| 170 | +lemma kernelOperator_eq_boundaryCompression {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] | |
| 171 | + (K : ℂ → ℂ → ℂ) (hherm : HermitianKernel K) | |
| 172 | + (hK : ∀ x ∈ ({a, beta} : Finset ℝ), ∀ y ∈ ({a, beta} : Finset ℝ), | |
| 173 | + MemLp (fun p : ℝ × ℝ => K (line x p.1) (line y p.2)) 2 volume) | |
| 174 | + (hcol : HasHardyKernelColumns ha K) : | |
| 175 | + kernelOperator ha N K = hardyBoundaryCompression ha (boundaryKernelOperator a beta K hK) := | |
| 176 | + kernelOperator_eq_of_represents ha N (hardyBoundaryCompression_represents ha N K hherm hK hcol) | |
| 177 | + | |
| 178 | +lemma kernelOperator_pairing_of_hardyColumns {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] | |
| 179 | + (K : ℂ → ℂ → ℂ) (hherm : HermitianKernel K) | |
| 180 | + (hK : ∀ x ∈ ({a, beta} : Finset ℝ), ∀ y ∈ ({a, beta} : Finset ℝ), | |
| 181 | + MemLp (fun p : ℝ × ℝ => K (line x p.1) (line y p.2)) 2 volume) | |
| 182 | + (hcol : HasHardyKernelColumns ha K) (s z : ℂ) | |
| 183 | + (hs : s ∈ strip a beta) (hz : z ∈ strip a beta) : | |
| 184 | + K s z = paperInner (kernelOperator ha N K (evaluationVector z)) (evaluationVector s) := by | |
| 185 | + apply kernelOperator_pairing_of_columns ha N K hherm | |
| 186 | + ⟨_, hardyBoundaryCompression_represents ha N K hherm hK hcol⟩ | |
| 187 | + (fun w hw => hcol w ⟨hw.1.le, hw.2.le⟩) s z hs hz | |
| 188 | + | |
| 189 | +lemma kernelAction_integrable_of_hardyColumns {a : ℝ} (ha : a < beta) | |
| 190 | + (K : ℂ → ℂ → ℂ) (hherm : HermitianKernel K) (hcol : HasHardyKernelColumns ha K) | |
| 191 | + (h : HardySpace a beta) (s : ℂ) (hs : s ∈ strip a beta) : | |
| 192 | + Integrable (fun t : ℝ => K s (line a t) * (boundaryTraces ha h).1 t) ∧ | |
| 193 | + Integrable (fun t : ℝ => K s (line beta t) * (boundaryTraces ha h).2 t) := by | |
| 194 | + obtain ⟨g, _, hga, hgb⟩ := hcol s ⟨hs.1.le, hs.2.le⟩ | |
| 195 | + constructor | |
| 196 | + · apply (L2.integrable_inner (𝕜 := ℂ) (boundaryTraces ha g).1 (boundaryTraces ha h).1).congr | |
| 197 | + filter_upwards [hga] with t ht | |
| 198 | + simp only [RCLike.inner_apply, ht] | |
| 199 | + rw [← hherm s (line a t), mul_comm] | |
| 200 | + · apply (L2.integrable_inner (𝕜 := ℂ) (boundaryTraces ha g).2 (boundaryTraces ha h).2).congr | |
| 201 | + filter_upwards [hgb] with t ht | |
| 202 | + simp only [RCLike.inner_apply, ht] | |
| 203 | + rw [← hherm s (line beta t), mul_comm] | |
| 204 | + | |
| 205 | +lemma kernelOperator_spec_of_hardyColumns {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] | |
| 206 | + (K : ℂ → ℂ → ℂ) (hherm : HermitianKernel K) | |
| 207 | + (hK : ∀ x ∈ ({a, beta} : Finset ℝ), ∀ y ∈ ({a, beta} : Finset ℝ), | |
| 208 | + MemLp (fun p : ℝ × ℝ => K (line x p.1) (line y p.2)) 2 volume) | |
| 209 | + (hcol : HasHardyKernelColumns ha K) : | |
| 210 | + let T := kernelOperator ha N K | |
| 211 | + RepresentsKernel ha N K T ∧ IsCompactOperator T ∧ IsSelfAdjoint T ∧ | |
| 212 | + IsHilbertSchmidt T ∧ Nonempty (SpectralData T) ∧ | |
| 213 | + (∑' j, eigenvalues T j ^ 2) = hsNorm T ^ 2 ∧ | |
| 214 | + hsNorm T ^ 2 = BoundaryKernelSquareIntegral a beta K ∧ | |
| 215 | + ‖T‖ = sSup (Set.range (fun j => |eigenvalues T j|)) ∧ | |
| 216 | + (T ≠ 0 → ∃ j, |eigenvalues T j| = ‖T‖) := by | |
| 217 | + dsimp only | |
| 218 | + rw [kernelOperator_eq_boundaryCompression ha N K hherm hK hcol] | |
| 219 | + exact ⟨hardyBoundaryCompression_represents ha N K hherm hK hcol, | |
| 220 | + hardyBoundaryKernel_spectral_spec_no_basis ha K hK | |
| 221 | + (fun x _ y _ t u => hherm (line y u) (line x t)) | |
| 222 | + (boundaryKernelOperator_range_hardy ha K hherm hK hcol)⟩ | |
| 223 | + | |
| 224 | +end ConditionalGoldbach | |
+80 −0 ConditionalGoldbach/Proofs/HardyKernelMajorant.lean added View file
| @@ -0,0 +1,80 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyKernelColumns | |
| 4 | +public import Mathlib.Analysis.SpecialFunctions.JapaneseBracket | |
| 5 | + | |
| 6 | +/-! A product majorant supplies both the four boundary L² blocks and all closed-strip Hardy columns. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +open scoped Topology ComplexConjugate | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma hardyKernel_inputs_of_majorant {a b : ℝ} (hab : a < b) (K : ℂ → ℂ → ℂ) | |
| 16 | + (hc : ContinuousOn (Function.uncurry K) | |
| 17 | + {p : ℂ × ℂ | p.1.re ∈ Icc a b ∧ p.2.re ∈ Icc a b}) | |
| 18 | + (hhol : ∀ s : ℂ, s.re ∈ Icc a b → DifferentiableOn ℂ (fun z => K z s) (strip a b)) | |
| 19 | + (M : ℝ → ℝ) (hM : Integrable M) | |
| 20 | + (hbound : ∀ x ∈ Icc a b, ∀ y ∈ Icc a b, ∀ v t : ℝ, | |
| 21 | + ‖K (line x v) (line y t)‖ ^ 2 ≤ M v * M t) : | |
| 22 | + (∀ x ∈ ({a, b} : Finset ℝ), ∀ y ∈ ({a, b} : Finset ℝ), | |
| 23 | + MemLp (fun p : ℝ × ℝ => K (line x p.1) (line y p.2)) 2 volume) ∧ | |
| 24 | + HasHardyKernelColumns hab K := by | |
| 25 | + constructor | |
| 26 | + · intro x hx y hy | |
| 27 | + have hxi : x ∈ Icc a b := by | |
| 28 | + simp only [Finset.mem_insert, Finset.mem_singleton] at hx | |
| 29 | + rcases hx with rfl | rfl <;> exact ⟨by linarith, by linarith⟩ | |
| 30 | + have hyi : y ∈ Icc a b := by | |
| 31 | + simp only [Finset.mem_insert, Finset.mem_singleton] at hy | |
| 32 | + rcases hy with rfl | rfl <;> exact ⟨by linarith, by linarith⟩ | |
| 33 | + have hcont : Continuous (fun p : ℝ × ℝ => K (line x p.1) (line y p.2)) := by | |
| 34 | + apply hc.comp_continuous (show Continuous (fun p : ℝ × ℝ => (line x p.1, line y p.2)) by | |
| 35 | + unfold line; fun_prop) | |
| 36 | + intro p | |
| 37 | + simpa [line] using And.intro hxi hyi | |
| 38 | + apply (memLp_two_iff_integrable_sq_norm hcont.aestronglyMeasurable).mpr | |
| 39 | + have hi : Integrable (fun p : ℝ × ℝ => M p.1 * M p.2) volume := by | |
| 40 | + simpa only [smul_eq_mul, Measure.volume_eq_prod] using hM.smul_prod hM | |
| 41 | + apply hi.mono' (hcont.norm.pow 2).aestronglyMeasurable | |
| 42 | + filter_upwards [] with p | |
| 43 | + simpa only [Pi.pow_apply, Real.norm_eq_abs, abs_sq] using hbound x hxi y hyi p.1 p.2 | |
| 44 | + · apply hardyKernelColumns_of_majorant hab K hhol | |
| 45 | + · intro s hs | |
| 46 | + exact hc.comp (f := fun z : ℂ => (z, s)) (by fun_prop) | |
| 47 | + (by intro z hz; exact ⟨hz, hs⟩) | |
| 48 | + · intro s hs | |
| 49 | + refine ⟨fun t => M t * M s.im, hM.mul_const _, ?_⟩ | |
| 50 | + intro x hx t | |
| 51 | + have he : line s.re s.im = s := by apply Complex.ext <;> simp [line] | |
| 52 | + simpa only [he] using hbound x hx s.re hs t s.im | |
| 53 | + | |
| 54 | +lemma hardy_decay_integrable : Integrable (fun t : ℝ => (1 + |t|) ^ (- (3 / 2 : ℝ))) := by | |
| 55 | + simpa only [Real.norm_eq_abs] using | |
| 56 | + (integrable_one_add_norm (μ := (volume : Measure ℝ)) (by norm_num : | |
| 57 | + (Module.finrank ℝ ℝ : ℝ) < (3 / 2 : ℝ))) | |
| 58 | + | |
| 59 | +lemma hardyKernel_inputs_of_power_bound {a b : ℝ} (hab : a < b) (K : ℂ → ℂ → ℂ) | |
| 60 | + (hc : ContinuousOn (Function.uncurry K) | |
| 61 | + {p : ℂ × ℂ | p.1.re ∈ Icc a b ∧ p.2.re ∈ Icc a b}) | |
| 62 | + (hhol : ∀ s : ℂ, s.re ∈ Icc a b → DifferentiableOn ℂ (fun z => K z s) (strip a b)) | |
| 63 | + (C : ℝ) (hC : 0 ≤ C) | |
| 64 | + (hbound : ∀ x ∈ Icc a b, ∀ y ∈ Icc a b, ∀ v t : ℝ, | |
| 65 | + ‖K (line x v) (line y t)‖ ^ 2 ≤ | |
| 66 | + C * (1 + |v|) ^ (- (3 / 2 : ℝ)) * (1 + |t|) ^ (- (3 / 2 : ℝ))) : | |
| 67 | + (∀ x ∈ ({a, b} : Finset ℝ), ∀ y ∈ ({a, b} : Finset ℝ), | |
| 68 | + MemLp (fun p : ℝ × ℝ => K (line x p.1) (line y p.2)) 2 volume) ∧ | |
| 69 | + HasHardyKernelColumns hab K := by | |
| 70 | + apply hardyKernel_inputs_of_majorant hab K hc hhol | |
| 71 | + (fun t => Real.sqrt C * (1 + |t|) ^ (- (3 / 2 : ℝ))) | |
| 72 | + (hardy_decay_integrable.const_mul _) | |
| 73 | + intro x hx y hy v t | |
| 74 | + convert hbound x hx y hy v t using 1 | |
| 75 | + rw [show Real.sqrt C * (1 + |v|) ^ (- (3 / 2 : ℝ)) * | |
| 76 | + (Real.sqrt C * (1 + |t|) ^ (- (3 / 2 : ℝ))) = | |
| 77 | + (Real.sqrt C)^2 * (1 + |v|) ^ (- (3 / 2 : ℝ)) * (1 + |t|) ^ (- (3 / 2 : ℝ)) by ring, | |
| 78 | + Real.sq_sqrt hC] | |
| 79 | + | |
| 80 | +end ConditionalGoldbach | |
+110 −0 ConditionalGoldbach/Proofs/HardyKernelOperator.lean added View file
| @@ -0,0 +1,110 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Operators | |
| 4 | +public import ConditionalGoldbach.Proofs.HardyRawNorm | |
| 5 | +public import Mathlib.Analysis.InnerProductSpace.Adjoint | |
| 6 | +public import Mathlib.Analysis.Normed.Operator.Compact.Basic | |
| 7 | + | |
| 8 | +/-! The uniquely represented Hardy kernel operator and compression from the boundary Hilbert space. | |
| 9 | +These results keep the paper's chosen `kernelOperator` definition: the existence of an operator | |
| 10 | +representing the actual kernel is a separate analytic obligation. -/ | |
| 11 | +@[expose] public section | |
| 12 | + | |
| 13 | +set_option autoImplicit false | |
| 14 | +noncomputable section | |
| 15 | +open MeasureTheory Filter Set Complex | |
| 16 | +open scoped Topology ComplexConjugate | |
| 17 | +namespace ConditionalGoldbach | |
| 18 | + | |
| 19 | +lemma RepresentsKernel.unique {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] | |
| 20 | + {K : ℂ → ℂ → ℂ} {S T : HardySpace a beta →L[ℂ] HardySpace a beta} | |
| 21 | + (hS : RepresentsKernel ha N K S) (hT : RepresentsKernel ha N K T) : S = T := by | |
| 22 | + apply ContinuousLinearMap.ext | |
| 23 | + intro ψ | |
| 24 | + apply fourierLaplace_injective_strip ha | |
| 25 | + intro s hs | |
| 26 | + exact (hS ψ s hs).trans (hT ψ s hs).symm | |
| 27 | + | |
| 28 | +lemma kernelOperator_eq_of_represents {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] | |
| 29 | + {K : ℂ → ℂ → ℂ} {T : HardySpace a beta →L[ℂ] HardySpace a beta} | |
| 30 | + (hT : RepresentsKernel ha N K T) : kernelOperator ha N K = T := by | |
| 31 | + have h : ∃ S, RepresentsKernel ha N K S := ⟨T, hT⟩ | |
| 32 | + rw [kernelOperator, dite_eq_left h] | |
| 33 | + exact RepresentsKernel.unique ha N (Classical.choose_spec h) hT | |
| 34 | + | |
| 35 | +lemma kernelOperator_represents_of_exists {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] | |
| 36 | + {K : ℂ → ℂ → ℂ} (h : ∃ T, RepresentsKernel ha N K T) : | |
| 37 | + RepresentsKernel ha N K (kernelOperator ha N K) := by | |
| 38 | + rw [kernelOperator, dite_eq_left h] | |
| 39 | + exact Classical.choose_spec h | |
| 40 | + | |
| 41 | +/-- The two vertical boundaries, equipped with the Hilbert sum norm. -/ | |
| 42 | +abbrev HardyBoundarySpace := | |
| 43 | + WithLp 2 (Lp ℂ 2 (volume : Measure ℝ) × Lp ℂ 2 (volume : Measure ℝ)) | |
| 44 | + | |
| 45 | +/-- The adjoint of the trace embedding is a left inverse on all Hardy traces. -/ | |
| 46 | +lemma hardyTrace_adjoint_apply {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) : | |
| 47 | + (hardyTraceIsometry hab).toContinuousLinearMap.adjoint (hardyTraceIsometry hab ψ) = ψ := by | |
| 48 | + have h := congrArg (fun T : HardySpace a b →L[ℂ] HardySpace a b => T ψ) | |
| 49 | + (hardyTraceIsometry hab).adjoint_comp_self | |
| 50 | + exact h | |
| 51 | + | |
| 52 | +/-- Compress a bounded boundary operator to the Fourier realization of the Hardy space. -/ | |
| 53 | +def hardyBoundaryCompression {a b : ℝ} (hab : a < b) | |
| 54 | + (B : HardyBoundarySpace →L[ℂ] HardyBoundarySpace) : HardySpace a b →L[ℂ] HardySpace a b := | |
| 55 | + (hardyTraceIsometry hab).toContinuousLinearMap.adjoint ∘L B ∘L | |
| 56 | + (hardyTraceIsometry hab).toContinuousLinearMap | |
| 57 | + | |
| 58 | +lemma hardyBoundaryCompression_inner {a b : ℝ} (hab : a < b) | |
| 59 | + (B : HardyBoundarySpace →L[ℂ] HardyBoundarySpace) (ψ χ : HardySpace a b) : | |
| 60 | + inner ℂ ψ (hardyBoundaryCompression hab B χ) = | |
| 61 | + inner ℂ (hardyTraceIsometry hab ψ) (B (hardyTraceIsometry hab χ)) := by | |
| 62 | + change inner ℂ ψ ((hardyTraceIsometry hab).toContinuousLinearMap.adjoint | |
| 63 | + (B (hardyTraceIsometry hab χ))) = _ | |
| 64 | + exact (hardyTraceIsometry hab).toContinuousLinearMap.adjoint_inner_right ψ | |
| 65 | + (B (hardyTraceIsometry hab χ)) | |
| 66 | + | |
| 67 | +lemma hardyBoundaryCompression_selfAdjoint {a b : ℝ} (hab : a < b) | |
| 68 | + {B : HardyBoundarySpace →L[ℂ] HardyBoundarySpace} (hB : IsSelfAdjoint B) : | |
| 69 | + IsSelfAdjoint (hardyBoundaryCompression hab B) := | |
| 70 | + hB.adjoint_conj (hardyTraceIsometry hab).toContinuousLinearMap | |
| 71 | + | |
| 72 | +lemma hardyBoundaryCompression_compact {a b : ℝ} (hab : a < b) | |
| 73 | + {B : HardyBoundarySpace →L[ℂ] HardyBoundarySpace} (hB : IsCompactOperator B) : | |
| 74 | + IsCompactOperator (hardyBoundaryCompression hab B) := by | |
| 75 | + exact (hB.comp_clm (hardyTraceIsometry hab).toContinuousLinearMap).clm_comp | |
| 76 | + (hardyTraceIsometry hab).toContinuousLinearMap.adjoint | |
| 77 | + | |
| 78 | +/-- When the boundary operator preserves Hardy traces, compression agrees with restriction. -/ | |
| 79 | +lemma hardyBoundaryCompression_trace {a b : ℝ} (hab : a < b) | |
| 80 | + (B : HardyBoundarySpace →L[ℂ] HardyBoundarySpace) | |
| 81 | + (hB : ∀ ψ : HardySpace a b, | |
| 82 | + B (hardyTraceIsometry hab ψ) ∈ Set.range (hardyTraceIsometry hab)) | |
| 83 | + (ψ : HardySpace a b) : | |
| 84 | + hardyTraceIsometry hab (hardyBoundaryCompression hab B ψ) = | |
| 85 | + B (hardyTraceIsometry hab ψ) := by | |
| 86 | + obtain ⟨χ, hχ⟩ := hB ψ | |
| 87 | + change hardyTraceIsometry hab | |
| 88 | + ((hardyTraceIsometry hab).toContinuousLinearMap.adjoint (B (hardyTraceIsometry hab ψ))) = _ | |
| 89 | + rw [← hχ, hardyTrace_adjoint_apply] | |
| 90 | + | |
| 91 | +lemma hardyBoundaryCompression_norm_le {a b : ℝ} (hab : a < b) | |
| 92 | + (B : HardyBoundarySpace →L[ℂ] HardyBoundarySpace) : | |
| 93 | + ‖hardyBoundaryCompression hab B‖ ≤ ‖B‖ := by | |
| 94 | + have hJ : ‖(hardyTraceIsometry hab).toContinuousLinearMap‖ ≤ 1 := by | |
| 95 | + apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one | |
| 96 | + intro ψ | |
| 97 | + simp only [LinearIsometry.coe_toContinuousLinearMap, LinearIsometry.norm_map, one_mul, le_refl] | |
| 98 | + have hJa : ‖(hardyTraceIsometry hab).toContinuousLinearMap.adjoint‖ ≤ 1 := by | |
| 99 | + simpa using hJ | |
| 100 | + refine ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _) fun ψ => ?_ | |
| 101 | + change ‖(hardyTraceIsometry hab).toContinuousLinearMap.adjoint | |
| 102 | + (B (hardyTraceIsometry hab ψ))‖ ≤ _ | |
| 103 | + calc | |
| 104 | + _ ≤ ‖(hardyTraceIsometry hab).toContinuousLinearMap.adjoint‖ * ‖B (hardyTraceIsometry hab ψ)‖ := | |
| 105 | + ContinuousLinearMap.le_opNorm _ _ | |
| 106 | + _ ≤ ‖B (hardyTraceIsometry hab ψ)‖ := by | |
| 107 | + simpa only [one_mul] using mul_le_mul_of_nonneg_right hJa (norm_nonneg _) | |
| 108 | + _ ≤ ‖B‖ * ‖ψ‖ := by simpa using B.le_opNorm (hardyTraceIsometry hab ψ) | |
| 109 | + | |
| 110 | +end ConditionalGoldbach | |
+60 −0 ConditionalGoldbach/Proofs/HardyKernelPairing.lean added View file
| @@ -0,0 +1,60 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Asymptotics | |
| 4 | +public import ConditionalGoldbach.Proofs.HardyEvaluation | |
| 5 | +public import ConditionalGoldbach.Proofs.HardyKernelOperator | |
| 6 | + | |
| 7 | +/-! Double evaluation of a represented Hermitian kernel. | |
| 8 | +The Hardy membership and exact boundary traces of each column are explicit hypotheses: | |
| 9 | +these are the analytic inputs required before double reproduction can be used. -/ | |
| 10 | +public section | |
| 11 | + | |
| 12 | +set_option autoImplicit false | |
| 13 | +noncomputable section | |
| 14 | +open MeasureTheory Filter Set Complex | |
| 15 | +open scoped Topology ComplexConjugate | |
| 16 | +namespace ConditionalGoldbach | |
| 17 | + | |
| 18 | +lemma represented_kernel_pairing_of_columns {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] | |
| 19 | + (K : ℂ → ℂ → ℂ) (hK : HermitianKernel K) | |
| 20 | + (T : HardySpace a beta →L[ℂ] HardySpace a beta) (hT : RepresentsKernel ha N K T) | |
| 21 | + (hcol : ∀ s ∈ strip a beta, ∃ g : HardySpace a beta, | |
| 22 | + (∀ z ∈ strip a beta, fourierLaplace g z = K z s) ∧ | |
| 23 | + ((boundaryTraces ha g).1 =ᵐ[volume] fun t => K (line a t) s) ∧ | |
| 24 | + ((boundaryTraces ha g).2 =ᵐ[volume] fun t => K (line beta t) s)) | |
| 25 | + (s z : ℂ) (hs : s ∈ strip a beta) (hz : z ∈ strip a beta) : | |
| 26 | + K s z = paperInner (T (evaluationVector z)) (evaluationVector s) := by | |
| 27 | + obtain ⟨g, hg, hga, hgb⟩ := hcol s hs | |
| 28 | + rw [← evaluationVector_spec hs, hT _ s hs] | |
| 29 | + have hi := lemma_5_2_boundary_inner a beta ha (evaluationVector z) g | |
| 30 | + have hk : kernelAction ha N K (evaluationVector z) s = | |
| 31 | + paperInner (evaluationVector z) g := by | |
| 32 | + rw [hi] | |
| 33 | + unfold kernelAction | |
| 34 | + congr 1 | |
| 35 | + · apply integral_congr_ae | |
| 36 | + filter_upwards [hga] with t ht | |
| 37 | + rw [ht, hK s (line a t), mul_comm] | |
| 38 | + · apply integral_congr_ae | |
| 39 | + filter_upwards [hgb] with t ht | |
| 40 | + rw [ht, hK s (line beta t), mul_comm] | |
| 41 | + rw [hk] | |
| 42 | + calc | |
| 43 | + K s z = conj (K z s) := hK s z | |
| 44 | + _ = conj (paperInner g (evaluationVector z)) := by rw [← evaluationVector_spec hz, hg z hz] | |
| 45 | + _ = paperInner (evaluationVector z) g := by | |
| 46 | + exact inner_conj_symm _ _ | |
| 47 | + | |
| 48 | +lemma kernelOperator_pairing_of_columns {a : ℝ} (ha : a < beta) (N : ℕ) [NeZero N] | |
| 49 | + (K : ℂ → ℂ → ℂ) (hK : HermitianKernel K) | |
| 50 | + (hex : ∃ T, RepresentsKernel ha N K T) | |
| 51 | + (hcol : ∀ s ∈ strip a beta, ∃ g : HardySpace a beta, | |
| 52 | + (∀ z ∈ strip a beta, fourierLaplace g z = K z s) ∧ | |
| 53 | + ((boundaryTraces ha g).1 =ᵐ[volume] fun t => K (line a t) s) ∧ | |
| 54 | + ((boundaryTraces ha g).2 =ᵐ[volume] fun t => K (line beta t) s)) | |
| 55 | + (s z : ℂ) (hs : s ∈ strip a beta) (hz : z ∈ strip a beta) : | |
| 56 | + K s z = paperInner (kernelOperator ha N K (evaluationVector z)) (evaluationVector s) := | |
| 57 | + represented_kernel_pairing_of_columns ha N K hK _ | |
| 58 | + (kernelOperator_represents_of_exists ha N hex) hcol s z hs hz | |
| 59 | + | |
| 60 | +end ConditionalGoldbach | |
+115 −0 ConditionalGoldbach/Proofs/HardyKernelResidual.lean added View file
| @@ -0,0 +1,115 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyReproducing | |
| 4 | +public import ConditionalGoldbach.Proofs.KernelRegularity | |
| 5 | + | |
| 6 | +/-! The residual estimate and fixed-contour bound obtained from exact kernel reproduction. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +open scoped Topology ComplexConjugate | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma residual_norm_le_of_kernel_pairing {a : ℝ} (ha : a < beta) (ha0 : 0 ≤ a) | |
| 16 | + (N : ℕ) [NeZero N] (T : HardySpace a beta →L[ℂ] HardySpace a beta) | |
| 17 | + (s z : ℂ) (hs : s ∈ strip a beta) (hz : z ∈ strip a beta) | |
| 18 | + (hpair : weightedKernel N s z = paperInner (T (evaluationVector z)) (evaluationVector s)) : | |
| 19 | + ‖residual N s (conj z)‖ ≤ ‖T‖ * ‖1 + s‖ * ‖1 + z‖ / | |
| 20 | + (8 * Real.sqrt (pointDistance a beta s * pointDistance a beta z)) := by | |
| 21 | + have hns : 1 + s ≠ 0 := by | |
| 22 | + intro he | |
| 23 | + have hr := congrArg Complex.re he | |
| 24 | + simp only [Complex.add_re, Complex.one_re, Complex.zero_re] at hr | |
| 25 | + linarith [hs.1] | |
| 26 | + have hnz : 1 + conj z ≠ 0 := by | |
| 27 | + intro he | |
| 28 | + have hr := congrArg Complex.re he | |
| 29 | + simp only [Complex.add_re, Complex.one_re, Complex.zero_re, Complex.conj_re] at hr | |
| 30 | + linarith [hz.1] | |
| 31 | + have hrecover : residual N s (conj z) = weightedKernel N s z * ((1 + s) * (1 + conj z)) := by | |
| 32 | + rw [weightedKernel, div_mul_cancel₀ _ (mul_ne_zero hns hnz)] | |
| 33 | + have hk : ‖weightedKernel N s z‖ ≤ | |
| 34 | + ‖T‖ * (‖(evaluationVector s : HardySpace a beta)‖ * ‖(evaluationVector z : HardySpace a beta)‖) := by | |
| 35 | + rw [hpair, paperInner] | |
| 36 | + calc | |
| 37 | + _ ≤ ‖(evaluationVector s : HardySpace a beta)‖ * ‖T (evaluationVector z)‖ := norm_inner_le_norm _ _ | |
| 38 | + _ ≤ ‖(evaluationVector s : HardySpace a beta)‖ * (‖T‖ * ‖evaluationVector z‖) := | |
| 39 | + mul_le_mul_of_nonneg_left (T.le_opNorm _) (norm_nonneg _) | |
| 40 | + _ = _ := by ring | |
| 41 | + have hbound := hk.trans (mul_le_mul_of_nonneg_left (evaluationVector_norm_product_le ha hs hz) (norm_nonneg T)) | |
| 42 | + rw [hrecover, norm_mul, norm_mul] | |
| 43 | + have hconj : ‖1 + conj z‖ = ‖1 + z‖ := by | |
| 44 | + simpa only [map_add, map_one] using Complex.norm_conj (1 + z) | |
| 45 | + rw [hconj] | |
| 46 | + calc | |
| 47 | + _ ≤ (‖T‖ * (1 / (8 * Real.sqrt (pointDistance a beta s * pointDistance a beta z)))) * | |
| 48 | + (‖1 + s‖ * ‖1 + z‖) := mul_le_mul_of_nonneg_right hbound (by positivity) | |
| 49 | + _ = _ := by ring | |
| 50 | + | |
| 51 | +lemma norm_one_add_line_upper (x t : ℝ) : ‖1 + line x t‖ ≤ 1 + |x| + |t| := by | |
| 52 | + calc | |
| 53 | + _ ≤ 1 + ‖line x t‖ := by simpa only [norm_one] using norm_add_le (1 : ℂ) (line x t) | |
| 54 | + _ ≤ 1 + (|x| + |t|) := by | |
| 55 | + apply add_le_add_right | |
| 56 | + simpa [line, Complex.norm_real, norm_mul] using norm_add_le (x : ℂ) ((t : ℂ) * I) | |
| 57 | + _ = _ := by ring | |
| 58 | + | |
| 59 | +lemma fixed_contour_distance {N : ℕ} (hlarge : Real.exp 10 < (N : ℝ)) (t : ℝ) : | |
| 60 | + 1 / 90 ≤ pointDistance (alpha N) beta (line sigmaStar t) := by | |
| 61 | + have hlog : (10 : ℝ) < Real.log N := by simpa using Real.log_lt_log (Real.exp_pos 10) hlarge | |
| 62 | + have hα : alpha N < 1 / 10 := one_div_lt_one_div_of_lt (by norm_num) hlog | |
| 63 | + unfold pointDistance | |
| 64 | + simp only [line, Complex.add_re, Complex.ofReal_re, Complex.mul_re, Complex.ofReal_im, | |
| 65 | + Complex.I_re, Complex.I_im, mul_zero, zero_mul, sub_zero, add_zero] | |
| 66 | + apply le_min <;> dsimp [sigmaStar, beta] <;> linarith | |
| 67 | + | |
| 68 | +lemma fixed_contour_mem_strip {N : ℕ} (hlarge : Real.exp 10 < (N : ℝ)) (t : ℝ) : | |
| 69 | + line sigmaStar t ∈ strip (alpha N) beta := by | |
| 70 | + have hd := fixed_contour_distance hlarge t | |
| 71 | + unfold pointDistance at hd | |
| 72 | + have hh := le_min_iff.mp hd | |
| 73 | + exact ⟨by linarith [hh.1], by linarith [hh.2]⟩ | |
| 74 | + | |
| 75 | +lemma residual_fixed_contour_bound_of_pairing (N : ℕ) [NeZero N] | |
| 76 | + (hlarge : Real.exp 10 < (N : ℝ)) (ha : alpha N < beta) | |
| 77 | + (T : HardySpace (alpha N) beta →L[ℂ] HardySpace (alpha N) beta) | |
| 78 | + (hpair : ∀ s z : ℂ, s ∈ strip (alpha N) beta → z ∈ strip (alpha N) beta → | |
| 79 | + weightedKernel N s z = paperInner (T (evaluationVector z)) (evaluationVector s)) (v t : ℝ) : | |
| 80 | + ‖residual N (line sigmaStar v) (line sigmaStar t)‖ ≤ | |
| 81 | + 45 * ‖T‖ * (1 + |v| + |t|) ^ 2 := by | |
| 82 | + have hv := fixed_contour_mem_strip hlarge v | |
| 83 | + have ht := fixed_contour_mem_strip hlarge (-t) | |
| 84 | + have hb := residual_norm_le_of_kernel_pairing ha (large_alpha_pos hlarge).le N T | |
| 85 | + (line sigmaStar v) (line sigmaStar (-t)) hv ht (hpair _ _ hv ht) | |
| 86 | + have he : conj (line sigmaStar (-t)) = line sigmaStar t := by | |
| 87 | + apply Complex.ext <;> simp [line] | |
| 88 | + rw [he] at hb | |
| 89 | + have hds := fixed_contour_distance hlarge v | |
| 90 | + have hdt := fixed_contour_distance hlarge (-t) | |
| 91 | + have hprod : (1 / 90 : ℝ) ^ 2 ≤ pointDistance (alpha N) beta (line sigmaStar v) * | |
| 92 | + pointDistance (alpha N) beta (line sigmaStar (-t)) := by | |
| 93 | + simpa only [pow_two] using mul_le_mul hds hdt (by norm_num : (0 : ℝ) ≤ 1 / 90) | |
| 94 | + (by linarith : 0 ≤ pointDistance (alpha N) beta (line sigmaStar v)) | |
| 95 | + have hsqrt := Real.sqrt_le_sqrt hprod | |
| 96 | + rw [Real.sqrt_sq (by norm_num : (0 : ℝ) ≤ 1 / 90)] at hsqrt | |
| 97 | + have hnsv : ‖1 + line sigmaStar v‖ ≤ 2 * (1 + |v| + |t|) := by | |
| 98 | + have hh := norm_one_add_line_upper sigmaStar v | |
| 99 | + norm_num [sigmaStar] at hh | |
| 100 | + dsimp only [sigmaStar] | |
| 101 | + linarith [abs_nonneg v, abs_nonneg t] | |
| 102 | + have hnst : ‖1 + line sigmaStar (-t)‖ ≤ 2 * (1 + |v| + |t|) := by | |
| 103 | + have hh := norm_one_add_line_upper sigmaStar (-t) | |
| 104 | + norm_num [sigmaStar, abs_neg] at hh | |
| 105 | + dsimp only [sigmaStar] | |
| 106 | + linarith [abs_nonneg v, abs_nonneg t] | |
| 107 | + apply hb.trans | |
| 108 | + apply (div_le_iff₀ (by positivity)).mpr | |
| 109 | + have hm := mul_le_mul hnsv hnst (norm_nonneg _) (by positivity) | |
| 110 | + have hm' := mul_le_mul_of_nonneg_left hm (norm_nonneg T) | |
| 111 | + have hd := mul_le_mul_of_nonneg_left hsqrt | |
| 112 | + (by positivity : 0 ≤ 45 * ‖T‖ * (1 + |v| + |t|) ^ 2 * 8) | |
| 113 | + nlinarith | |
| 114 | + | |
| 115 | +end ConditionalGoldbach | |
+125 −0 ConditionalGoldbach/Proofs/HardyRawLines.lean added View file
| @@ -0,0 +1,125 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyReproducing | |
| 4 | + | |
| 5 | +/-! Interior-line estimates for the converse Paley–Wiener theorem. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex | |
| 11 | +open scoped Topology ComplexConjugate | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma rawHardy_line_continuous {a b : ℝ} {f : ℂ → ℂ} (hf : IsRawHardy a b f) | |
| 15 | + {x : ℝ} (hx : x ∈ Ioo a b) : Continuous (fun t : ℝ => f (line x t)) := by | |
| 16 | + apply hf.1.continuousOn.comp_continuous (by unfold line; fun_prop) | |
| 17 | + intro t | |
| 18 | + simpa only [strip, Set.mem_ofPred_eq, line, Complex.add_re, Complex.ofReal_re, | |
| 19 | + Complex.mul_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, | |
| 20 | + zero_mul, sub_zero, add_zero, Set.mem_Ioo] using hx | |
| 21 | + | |
| 22 | +lemma rawHardy_line_integral_bound_of_ne_midpoint {a b C : ℝ} (_hab : a < b) | |
| 23 | + (f : ℂ → ℂ) (hf : DifferentiableOn ℂ f (strip a b)) | |
| 24 | + (hC : ∀ ε : ℝ, 0 < ε → ε < (b - a) / 2 → | |
| 25 | + Integrable (fun t : ℝ => ‖f (line (a + ε) t)‖ ^ 2 + ‖f (line (b - ε) t)‖ ^ 2) ∧ | |
| 26 | + (∫ t : ℝ, ‖f (line (a + ε) t)‖ ^ 2 + ‖f (line (b - ε) t)‖ ^ 2) ≤ C) | |
| 27 | + {x : ℝ} (hx : x ∈ Ioo a b) (hxm : x ≠ (a + b) / 2) : | |
| 28 | + Integrable (fun t : ℝ => ‖f (line x t)‖ ^ 2) ∧ | |
| 29 | + (∫ t : ℝ, ‖f (line x t)‖ ^ 2) ≤ C := by | |
| 30 | + have hmeas : AEStronglyMeasurable (fun t : ℝ => ‖f (line x t)‖ ^ 2) volume := | |
| 31 | + ((rawHardy_line_continuous ⟨hf, ⟨C, hC⟩⟩ hx).norm.pow 2).aestronglyMeasurable | |
| 32 | + by_cases hleft : x < (a + b) / 2 | |
| 33 | + · obtain ⟨hi, hb⟩ := hC (x - a) (sub_pos.mpr hx.1) (by linarith) | |
| 34 | + have hxa : a + (x - a) = x := by ring | |
| 35 | + rw [hxa] at hi hb | |
| 36 | + have hil : Integrable (fun t : ℝ => ‖f (line x t)‖ ^ 2) := by | |
| 37 | + apply hi.mono' hmeas | |
| 38 | + filter_upwards [] with t | |
| 39 | + simpa only [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg (‖f (line x t)‖))] using | |
| 40 | + (le_add_of_nonneg_right (sq_nonneg (‖f (line (b - (x - a)) t)‖))) | |
| 41 | + exact ⟨hil, (integral_mono hil hi (fun t => le_add_of_nonneg_right (sq_nonneg _))).trans hb⟩ | |
| 42 | + · obtain ⟨hi, hb⟩ := hC (b - x) (sub_pos.mpr hx.2) (by | |
| 43 | + have : (a + b) / 2 < x := lt_of_le_of_ne (le_of_not_gt hleft) (Ne.symm hxm) | |
| 44 | + linarith) | |
| 45 | + have hxb : b - (b - x) = x := by ring | |
| 46 | + rw [hxb] at hi hb | |
| 47 | + have hil : Integrable (fun t : ℝ => ‖f (line x t)‖ ^ 2) := by | |
| 48 | + apply hi.mono' hmeas | |
| 49 | + filter_upwards [] with t | |
| 50 | + simpa only [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg (‖f (line x t)‖))] using | |
| 51 | + (le_add_of_nonneg_left (sq_nonneg (‖f (line (a + (b - x)) t)‖))) | |
| 52 | + exact ⟨hil, (integral_mono hil hi (fun t => le_add_of_nonneg_left (sq_nonneg _))).trans hb⟩ | |
| 53 | + | |
| 54 | +lemma nonnegative_integral_bound_of_tendsto {F : ℕ → ℝ → ℝ} {g : ℝ → ℝ} {C : ℝ} | |
| 55 | + (hC : 0 ≤ C) (hF : ∀ n, Integrable (F n)) (hFpos : ∀ n t, 0 ≤ F n t) | |
| 56 | + (hbound : ∀ n, ∫ t, F n t ≤ C) (hg : AEStronglyMeasurable g volume) | |
| 57 | + (hgpos : ∀ t, 0 ≤ g t) (hlim : ∀ t, Tendsto (fun n => F n t) atTop (𝓝 (g t))) : | |
| 58 | + Integrable g ∧ (∫ t, g t) ≤ C := by | |
| 59 | + have hFnorm : ∀ n, eLpNorm (F n) 1 volume ≤ ENNReal.ofReal C := by | |
| 60 | + intro n | |
| 61 | + rw [(memLp_one_iff_integrable.mpr (hF n)).eLpNorm_eq_integral_rpow_norm (by norm_num) (by norm_num)] | |
| 62 | + simpa only [ENNReal.toReal_one, inv_one, Real.rpow_one, Real.norm_eq_abs, | |
| 63 | + abs_of_nonneg (hFpos n _)] using ENNReal.ofReal_le_ofReal (hbound n) | |
| 64 | + have hnorm := Lp.eLpNorm_le_of_ae_tendsto (p := 1) (Eventually.of_forall hFnorm) | |
| 65 | + (fun n => (hF n).aestronglyMeasurable) hg (Eventually.of_forall hlim) | |
| 66 | + have hgi : Integrable g := memLp_one_iff_integrable.mp | |
| 67 | + (lt_of_le_of_lt hnorm ENNReal.ofReal_lt_top) | |
| 68 | + refine ⟨hgi, ?_⟩ | |
| 69 | + rw [(memLp_one_iff_integrable.mpr hgi).eLpNorm_eq_integral_rpow_norm (by norm_num) (by norm_num)] at hnorm | |
| 70 | + simp only [ENNReal.toReal_one, inv_one, Real.rpow_one, Real.norm_eq_abs, | |
| 71 | + abs_of_nonneg (hgpos _)] at hnorm | |
| 72 | + exact (ENNReal.ofReal_le_ofReal_iff hC).mp hnorm | |
| 73 | + | |
| 74 | +lemma rawHardy_uniform_line_bound {a b : ℝ} (hab : a < b) {f : ℂ → ℂ} | |
| 75 | + (hf : IsRawHardy a b f) : | |
| 76 | + ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Ioo a b, | |
| 77 | + Integrable (fun t : ℝ => ‖f (line x t)‖ ^ 2) ∧ | |
| 78 | + (∫ t : ℝ, ‖f (line x t)‖ ^ 2) ≤ C := by | |
| 79 | + obtain ⟨C, hC⟩ := hf.2 | |
| 80 | + have hCpos : 0 ≤ C := by | |
| 81 | + have h := (hC ((b - a) / 4) (by linarith) (by linarith)).2 | |
| 82 | + exact (integral_nonneg (fun t => add_nonneg (sq_nonneg _) (sq_nonneg _))).trans h | |
| 83 | + refine ⟨C, hCpos, ?_⟩ | |
| 84 | + intro x hx | |
| 85 | + by_cases hxm : x = (a + b) / 2 | |
| 86 | + · subst x | |
| 87 | + let xseq : ℕ → ℝ := fun n => (a + b) / 2 - (b - a) / (n + 4) | |
| 88 | + have hseq : ∀ n, xseq n ∈ Ioo a b ∧ xseq n ≠ (a + b) / 2 := by | |
| 89 | + intro n | |
| 90 | + have hn : (4 : ℝ) ≤ n + 4 := by have := Nat.cast_nonneg (α := ℝ) n; linarith | |
| 91 | + have hnpos : (0 : ℝ) < n + 4 := by positivity | |
| 92 | + have hepos : 0 < (b - a) / (n + 4) := div_pos (sub_pos.mpr hab) hnpos | |
| 93 | + have hele : (b - a) / (n + 4) ≤ (b - a) / 4 := | |
| 94 | + div_le_div_of_nonneg_left (sub_nonneg.mpr hab.le) (by norm_num) hn | |
| 95 | + dsimp [xseq] | |
| 96 | + exact ⟨⟨by linarith, by linarith⟩, by linarith⟩ | |
| 97 | + have hseqLim : Tendsto xseq atTop (𝓝 ((a + b) / 2)) := by | |
| 98 | + have hn : Tendsto (fun n : ℕ => (n : ℝ) + 4) atTop atTop := | |
| 99 | + tendsto_atTop_add_const_right atTop 4 tendsto_natCast_atTop_atTop | |
| 100 | + simpa only [sub_zero] using tendsto_const_nhds.sub (hn.const_div_atTop (b - a)) | |
| 101 | + have hfi := fun n => rawHardy_line_integral_bound_of_ne_midpoint hab f hf.1 hC | |
| 102 | + (hseq n).1 (hseq n).2 | |
| 103 | + apply nonnegative_integral_bound_of_tendsto (F := fun n t => ‖f (line (xseq n) t)‖ ^ 2) | |
| 104 | + hCpos (fun n => (hfi n).1) (fun n t => sq_nonneg _) (fun n => (hfi n).2) | |
| 105 | + ((rawHardy_line_continuous hf hx).norm.pow 2).aestronglyMeasurable (fun t => sq_nonneg _) | |
| 106 | + intro t | |
| 107 | + have hs : line ((a + b) / 2) t ∈ strip a b := by | |
| 108 | + simpa only [strip, Set.mem_ofPred_eq, line, Complex.add_re, Complex.ofReal_re, | |
| 109 | + Complex.mul_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, | |
| 110 | + zero_mul, sub_zero, add_zero, Set.mem_Ioo] using hx | |
| 111 | + have hopen : IsOpen (strip a b) := isOpen_Ioo.preimage Complex.continuous_re | |
| 112 | + have hc : ContinuousAt f (line ((a + b) / 2) t) := | |
| 113 | + hf.1.continuousOn.continuousAt (hopen.mem_nhds hs) | |
| 114 | + have hline : Tendsto (fun n => line (xseq n) t) atTop (𝓝 (line ((a + b) / 2) t)) := by | |
| 115 | + exact (show Continuous (fun x : ℝ => line x t) by unfold line; fun_prop).continuousAt.tendsto.comp hseqLim | |
| 116 | + exact ((hc.tendsto.comp hline).norm).pow 2 | |
| 117 | + · exact rawHardy_line_integral_bound_of_ne_midpoint hab f hf.1 hC hx hxm | |
| 118 | + | |
| 119 | +lemma rawHardy_line_memLp {a b : ℝ} (hab : a < b) {f : ℂ → ℂ} (hf : IsRawHardy a b f) | |
| 120 | + {x : ℝ} (hx : x ∈ Ioo a b) : MemLp (fun t : ℝ => f (line x t)) 2 volume := by | |
| 121 | + obtain ⟨C, hC, hbound⟩ := rawHardy_uniform_line_bound hab hf | |
| 122 | + exact (memLp_two_iff_integrable_sq_norm (rawHardy_line_continuous hf hx).aestronglyMeasurable).mpr | |
| 123 | + (hbound x hx).1 | |
| 124 | + | |
| 125 | +end ConditionalGoldbach | |
+199 −0 ConditionalGoldbach/Proofs/HardyRawNorm.lean added View file
| @@ -0,0 +1,199 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyHolomorphic | |
| 4 | + | |
| 5 | +/-! Paired vertical means and the original Hardy supremum norm. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open MeasureTheory Filter Set Complex FourierTransform | |
| 11 | +open scoped Topology | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma l2_norm_sq_integral {μ : Measure ℝ} (f : Lp ℂ 2 μ) : | |
| 15 | + ‖f‖ ^ 2 = ∫ t : ℝ, ‖f t‖ ^ 2 ∂μ := by | |
| 16 | + rw [← real_inner_self_eq_norm_sq, L2.inner_def] | |
| 17 | + simp only [real_inner_self_eq_norm_sq] | |
| 18 | + | |
| 19 | +lemma classical_fourier_norm_sq_integral {f : ℝ → ℂ} (hf : Integrable f) (hf2 : MemLp f 2) : | |
| 20 | + (∫ t : ℝ, ‖𝓕 f t‖ ^ 2) = ∫ t : ℝ, ‖f t‖ ^ 2 := by | |
| 21 | + calc | |
| 22 | + _ = ∫ t : ℝ, ‖(𝓕 (hf2.toLp f) : Lp ℂ 2 (volume : Measure ℝ)) t‖ ^ 2 := | |
| 23 | + integral_congr_ae ((classical_fourier_eq_L2_ae hf hf2).fun_comp (fun z : ℂ => ‖z‖ ^ 2)) | |
| 24 | + _ = ‖(𝓕 (hf2.toLp f) : Lp ℂ 2 (volume : Measure ℝ))‖ ^ 2 := (l2_norm_sq_integral _).symm | |
| 25 | + _ = ‖hf2.toLp f‖ ^ 2 := by rw [Lp.norm_fourier_eq] | |
| 26 | + _ = ∫ t : ℝ, ‖(hf2.toLp f) t‖ ^ 2 := l2_norm_sq_integral _ | |
| 27 | + _ = _ := integral_congr_ae (hf2.coeFn_toLp.fun_comp (fun z : ℂ => ‖z‖ ^ 2)) | |
| 28 | + | |
| 29 | +lemma fourierLaplace_line_normIntegral {a b x : ℝ} (hx : x ∈ Ioo a b) (ψ : HardySpace a b) : | |
| 30 | + (∫ t : ℝ, ‖fourierLaplace ψ (line x t)‖ ^ 2) = | |
| 31 | + ∫ τ : ℝ, ‖ψ τ‖ ^ 2 * Real.exp (2 * x * τ) := by | |
| 32 | + let f : ℝ → ℂ := fun τ => (Real.exp (x * τ) : ℂ) * ψ τ | |
| 33 | + let c : ℝ := -(2 * Real.pi)⁻¹ | |
| 34 | + let k : ℂ := (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ | |
| 35 | + have hf : Integrable f := hardy_weighted_line_integrable hx ψ | |
| 36 | + have hf2 : MemLp f 2 := hardy_weighted_line_memLp ⟨hx.1.le, hx.2.le⟩ ψ | |
| 37 | + calc | |
| 38 | + _ = ‖k‖ ^ 2 * ∫ t : ℝ, ‖𝓕 f (c * t)‖ ^ 2 := by | |
| 39 | + rw [← integral_const_mul] | |
| 40 | + apply integral_congr_ae | |
| 41 | + exact Eventually.of_forall (fun t => by | |
| 42 | + dsimp only | |
| 43 | + rw [fourierLaplace_line_eq_classical_fourier, norm_mul, mul_pow] | |
| 44 | + change ‖k‖ ^ 2 * ‖𝓕 f (-t / (2 * Real.pi))‖ ^ 2 = _ | |
| 45 | + rw [show -t / (2 * Real.pi) = c * t by dsimp [c]; ring]) | |
| 46 | + _ = ‖k‖ ^ 2 * (|c⁻¹| * ∫ t : ℝ, ‖𝓕 f t‖ ^ 2) := by | |
| 47 | + congr 1 | |
| 48 | + simpa only [smul_eq_mul] using (Measure.integral_comp_mul_left (fun t : ℝ => ‖𝓕 f t‖ ^ 2) c) | |
| 49 | + _ = ∫ τ : ℝ, ‖f τ‖ ^ 2 := by | |
| 50 | + rw [classical_fourier_norm_sq_integral hf hf2] | |
| 51 | + dsimp [k, c] | |
| 52 | + simp only [norm_inv, Complex.norm_real, Real.norm_eq_abs, | |
| 53 | + abs_of_nonneg (Real.sqrt_nonneg _), inv_pow, | |
| 54 | + Real.sq_sqrt (by positivity : 0 ≤ 2 * Real.pi), inv_neg, inv_inv, | |
| 55 | + abs_neg, abs_of_pos (by positivity : 0 < 2 * Real.pi)] | |
| 56 | + field_simp | |
| 57 | + _ = _ := by | |
| 58 | + apply integral_congr_ae | |
| 59 | + exact Eventually.of_forall (fun τ => by | |
| 60 | + dsimp [f] | |
| 61 | + simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), | |
| 62 | + mul_pow, ← Real.exp_nat_mul, Nat.cast_ofNat, mul_assoc, mul_comm, mul_left_comm]) | |
| 63 | + | |
| 64 | +lemma hardy_paired_exp_le {a b ε : ℝ} (hab : a < b) (hε : 0 ≤ ε) (hε' : ε ≤ b - a) (τ : ℝ) : | |
| 65 | + Real.exp (2 * (a + ε) * τ) + Real.exp (2 * (b - ε) * τ) ≤ hardyWeight a b τ := by | |
| 66 | + let t : ℝ := ε / (b - a) | |
| 67 | + have ht : 0 ≤ t := div_nonneg hε (sub_pos.mpr hab).le | |
| 68 | + have ht' : t ≤ 1 := (div_le_one (sub_pos.mpr hab)).mpr hε' | |
| 69 | + have hx := convexOn_exp.2 (mem_univ (2 * a * τ)) (mem_univ (2 * b * τ)) | |
| 70 | + (show 0 ≤ 1 - t by linarith) ht (by ring : 1 - t + t = 1) | |
| 71 | + have hy := convexOn_exp.2 (mem_univ (2 * a * τ)) (mem_univ (2 * b * τ)) | |
| 72 | + ht (show 0 ≤ 1 - t by linarith) (by ring : t + (1 - t) = 1) | |
| 73 | + have hxarg : (1 - t) * (2 * a * τ) + t * (2 * b * τ) = 2 * (a + ε) * τ := by | |
| 74 | + dsimp [t] | |
| 75 | + field_simp | |
| 76 | + ring | |
| 77 | + have hyarg : t * (2 * a * τ) + (1 - t) * (2 * b * τ) = 2 * (b - ε) * τ := by | |
| 78 | + dsimp [t] | |
| 79 | + field_simp | |
| 80 | + ring | |
| 81 | + simp only [smul_eq_mul, hxarg, hyarg] at hx hy | |
| 82 | + unfold hardyWeight | |
| 83 | + linarith | |
| 84 | + | |
| 85 | +lemma fourierLaplace_paired_integral_le {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) | |
| 86 | + {ε : ℝ} (hε : 0 < ε) (hε' : ε < (b - a) / 2) : | |
| 87 | + Integrable (fun t : ℝ => ‖fourierLaplace ψ (line (a + ε) t)‖ ^ 2 + | |
| 88 | + ‖fourierLaplace ψ (line (b - ε) t)‖ ^ 2) ∧ | |
| 89 | + (∫ t : ℝ, ‖fourierLaplace ψ (line (a + ε) t)‖ ^ 2 + | |
| 90 | + ‖fourierLaplace ψ (line (b - ε) t)‖ ^ 2) ≤ ‖ψ‖ ^ 2 := by | |
| 91 | + have hxa : a + ε ∈ Ioo a b := ⟨by linarith, by linarith⟩ | |
| 92 | + have hxb : b - ε ∈ Ioo a b := ⟨by linarith, by linarith⟩ | |
| 93 | + have hia := (interiorLine_memLp hab hxa ψ).norm.integrable_sq | |
| 94 | + have hib := (interiorLine_memLp hab hxb ψ).norm.integrable_sq | |
| 95 | + refine ⟨hia.add hib, ?_⟩ | |
| 96 | + rw [integral_add hia hib, fourierLaplace_line_normIntegral hxa, | |
| 97 | + fourierLaplace_line_normIntegral hxb, hardySpace_norm_sq_integral] | |
| 98 | + have hga := (hardy_weighted_line_memLp ⟨hxa.1.le, hxa.2.le⟩ ψ).norm.integrable_sq | |
| 99 | + have hgb := (hardy_weighted_line_memLp ⟨hxb.1.le, hxb.2.le⟩ ψ).norm.integrable_sq | |
| 100 | + simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), mul_pow, | |
| 101 | + ← Real.exp_nat_mul, Nat.cast_ofNat] at hga hgb | |
| 102 | + have hga' : Integrable (fun τ : ℝ => ‖ψ τ‖ ^ 2 * Real.exp (2 * (a + ε) * τ)) := by | |
| 103 | + simpa only [mul_assoc, mul_comm, mul_left_comm] using hga | |
| 104 | + have hgb' : Integrable (fun τ : ℝ => ‖ψ τ‖ ^ 2 * Real.exp (2 * (b - ε) * τ)) := by | |
| 105 | + simpa only [mul_assoc, mul_comm, mul_left_comm] using hgb | |
| 106 | + rw [← integral_add hga' hgb'] | |
| 107 | + apply integral_mono_ae (hga'.add hgb') (hardySpace_integrable_weighted_sq ψ) | |
| 108 | + exact Eventually.of_forall (fun τ => by | |
| 109 | + dsimp only [Pi.add_apply] | |
| 110 | + rw [← mul_add] | |
| 111 | + exact mul_le_mul_of_nonneg_left (hardy_paired_exp_le hab hε.le (by linarith) τ) (sq_nonneg _)) | |
| 112 | + | |
| 113 | +lemma fourierLaplace_isRawHardy {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) : | |
| 114 | + IsRawHardy a b (fourierLaplace ψ) := | |
| 115 | + ⟨fourierLaplace_differentiableOn ψ, ‖ψ‖ ^ 2, | |
| 116 | + fun _ε hε hε' => fourierLaplace_paired_integral_le hab ψ hε hε'⟩ | |
| 117 | + | |
| 118 | + | |
| 119 | +lemma hardy_density_line_integrable {a b x : ℝ} (hx : x ∈ Icc a b) (ψ : HardySpace a b) : | |
| 120 | + Integrable (fun τ : ℝ => ‖ψ τ‖ ^ 2 * Real.exp (2 * x * τ)) := by | |
| 121 | + have h := (hardy_weighted_line_memLp hx ψ).norm.integrable_sq | |
| 122 | + simpa only [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), | |
| 123 | + mul_pow, ← Real.exp_nat_mul, Nat.cast_ofNat, mul_assoc, mul_comm, mul_left_comm] using h | |
| 124 | + | |
| 125 | +lemma fourierLaplace_paired_integral_eq {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) | |
| 126 | + {ε : ℝ} (hε : 0 < ε) (hε' : ε < (b - a) / 2) : | |
| 127 | + (∫ t : ℝ, ‖fourierLaplace ψ (line (a + ε) t)‖ ^ 2 + | |
| 128 | + ‖fourierLaplace ψ (line (b - ε) t)‖ ^ 2) = | |
| 129 | + ∫ τ : ℝ, ‖ψ τ‖ ^ 2 * (Real.exp (2 * (a + ε) * τ) + Real.exp (2 * (b - ε) * τ)) := by | |
| 130 | + have hxa : a + ε ∈ Ioo a b := ⟨by linarith, by linarith⟩ | |
| 131 | + have hxb : b - ε ∈ Ioo a b := ⟨by linarith, by linarith⟩ | |
| 132 | + rw [integral_add (interiorLine_memLp hab hxa ψ).norm.integrable_sq | |
| 133 | + (interiorLine_memLp hab hxb ψ).norm.integrable_sq, | |
| 134 | + fourierLaplace_line_normIntegral hxa, fourierLaplace_line_normIntegral hxb, | |
| 135 | + ← integral_add (hardy_density_line_integrable ⟨hxa.1.le, hxa.2.le⟩ ψ) | |
| 136 | + (hardy_density_line_integrable ⟨hxb.1.le, hxb.2.le⟩ ψ)] | |
| 137 | + apply integral_congr_ae | |
| 138 | + exact Eventually.of_forall (fun τ => by simp only [mul_add]) | |
| 139 | + | |
| 140 | +lemma fourierLaplace_paired_integral_tendsto {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) : | |
| 141 | + Tendsto (fun ε : ℝ => ∫ t : ℝ, ‖fourierLaplace ψ (line (a + ε) t)‖ ^ 2 + | |
| 142 | + ‖fourierLaplace ψ (line (b - ε) t)‖ ^ 2) (𝓝[>] 0) (𝓝 (‖ψ‖ ^ 2)) := by | |
| 143 | + have hsmall : ∀ᶠ ε : ℝ in 𝓝[>] 0, 0 < ε ∧ ε < (b - a) / 2 := by | |
| 144 | + filter_upwards [self_mem_nhdsWithin, | |
| 145 | + (nhdsWithin_le_nhds (Iio_mem_nhds (show (0 : ℝ) < (b - a) / 2 by linarith)))] with ε hε hε' | |
| 146 | + exact ⟨hε, hε'⟩ | |
| 147 | + have hdct := tendsto_integral_filter_of_dominated_convergence (l := 𝓝[>] (0 : ℝ)) | |
| 148 | + (F := fun ε : ℝ => fun τ : ℝ => ‖ψ τ‖ ^ 2 * | |
| 149 | + (Real.exp (2 * (a + ε) * τ) + Real.exp (2 * (b - ε) * τ))) | |
| 150 | + (f := fun τ : ℝ => ‖ψ τ‖ ^ 2 * hardyWeight a b τ) | |
| 151 | + (fun τ : ℝ => ‖ψ τ‖ ^ 2 * hardyWeight a b τ) | |
| 152 | + (Eventually.of_forall (fun ε => ((hardySpace_aestronglyMeasurable ψ).norm.pow 2).mul | |
| 153 | + (by fun_prop : Continuous (fun τ : ℝ => | |
| 154 | + Real.exp (2 * (a + ε) * τ) + Real.exp (2 * (b - ε) * τ))).aestronglyMeasurable)) | |
| 155 | + ?_ (hardySpace_integrable_weighted_sq ψ) ?_ | |
| 156 | + · have heq : (fun ε : ℝ => ∫ t : ℝ, ‖fourierLaplace ψ (line (a + ε) t)‖ ^ 2 + | |
| 157 | + ‖fourierLaplace ψ (line (b - ε) t)‖ ^ 2) =ᶠ[𝓝[>] 0] | |
| 158 | + (fun ε : ℝ => ∫ τ : ℝ, ‖ψ τ‖ ^ 2 * | |
| 159 | + (Real.exp (2 * (a + ε) * τ) + Real.exp (2 * (b - ε) * τ))) := | |
| 160 | + hsmall.mono (fun ε hε => fourierLaplace_paired_integral_eq hab ψ hε.1 hε.2) | |
| 161 | + rw [← hardySpace_norm_sq_integral] at hdct | |
| 162 | + exact hdct.congr' heq.symm | |
| 163 | + · filter_upwards [hsmall] with ε hε | |
| 164 | + exact Eventually.of_forall (fun τ => by | |
| 165 | + rw [Real.norm_eq_abs, abs_of_nonneg (by positivity)] | |
| 166 | + exact mul_le_mul_of_nonneg_left (hardy_paired_exp_le hab hε.1.le (by linarith [hε.2]) τ) | |
| 167 | + (sq_nonneg _)) | |
| 168 | + · exact Eventually.of_forall (fun τ => by | |
| 169 | + have hc : Continuous (fun ε : ℝ => ‖ψ τ‖ ^ 2 * | |
| 170 | + (Real.exp (2 * (a + ε) * τ) + Real.exp (2 * (b - ε) * τ))) := by fun_prop | |
| 171 | + simpa only [add_zero, sub_zero, hardyWeight] using | |
| 172 | + (hc.tendsto 0).mono_left nhdsWithin_le_nhds) | |
| 173 | + | |
| 174 | +lemma fourierLaplace_rawHardyNormSq {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) : | |
| 175 | + rawHardyNormSq a b (fourierLaplace ψ) = ‖ψ‖ ^ 2 := by | |
| 176 | + let S : Set ℝ := {r | ∃ ε : ℝ, 0 < ε ∧ ε < (b - a) / 2 ∧ | |
| 177 | + r = ∫ t : ℝ, ‖fourierLaplace ψ (line (a + ε) t)‖ ^ 2 + | |
| 178 | + ‖fourierLaplace ψ (line (b - ε) t)‖ ^ 2} | |
| 179 | + change sSup S = ‖ψ‖ ^ 2 | |
| 180 | + have hne : S.Nonempty := by | |
| 181 | + refine ⟨_, (b - a) / 4, by linarith, by linarith, rfl⟩ | |
| 182 | + have hbound : ∀ r ∈ S, r ≤ ‖ψ‖ ^ 2 := by | |
| 183 | + rintro r ⟨ε, hε, hε', rfl⟩ | |
| 184 | + exact (fourierLaplace_paired_integral_le hab ψ hε hε').2 | |
| 185 | + have hBdd : BddAbove S := ⟨‖ψ‖ ^ 2, hbound⟩ | |
| 186 | + apply le_antisymm (csSup_le hne hbound) | |
| 187 | + apply le_of_tendsto (fourierLaplace_paired_integral_tendsto hab ψ) | |
| 188 | + filter_upwards [self_mem_nhdsWithin, | |
| 189 | + (nhdsWithin_le_nhds (Iio_mem_nhds (show (0 : ℝ) < (b - a) / 2 by linarith)))] with ε hε hε' | |
| 190 | + exact le_csSup hBdd ⟨ε, hε, hε', rfl⟩ | |
| 191 | + | |
| 192 | +/-- The forward and isometric halves of the paper's Fourier–Laplace lemma. -/ | |
| 193 | +lemma lemma_5_2_forward (a b : ℝ) (hab : a < b) (ψ : HardySpace a b) : | |
| 194 | + IsRawHardy a b (fourierLaplace ψ) ∧ | |
| 195 | + rawHardyNormSq a b (fourierLaplace ψ) = ‖ψ‖ ^ 2 ∧ | |
| 196 | + ‖ψ‖ ^ 2 = ‖(boundaryTraces hab ψ).1‖ ^ 2 + ‖(boundaryTraces hab ψ).2‖ ^ 2 := | |
| 197 | + ⟨fourierLaplace_isRawHardy hab ψ, fourierLaplace_rawHardyNormSq hab ψ, boundaryTraces_norm_sq hab ψ⟩ | |
| 198 | + | |
| 199 | +end ConditionalGoldbach | |
+203 −0 ConditionalGoldbach/Proofs/HardyReproducing.lean added View file
| @@ -0,0 +1,203 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HardyEvaluation | |
| 4 | +public import ConditionalGoldbach.Proofs.BetaIntegrals | |
| 5 | + | |
| 6 | +/-! Exact evaluation of the strip reproducing kernel, including its normalization. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +open scoped Topology ComplexConjugate | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma euler_reflection_integral {v : ℂ} (hv : 0 < v.re) (hv' : v.re < 1) : | |
| 16 | + (∫ t in Ioi (0 : ℝ), (t : ℂ) ^ (v - 1) / (1 + t)) = | |
| 17 | + (Real.pi : ℂ) / Complex.sin (Real.pi * v) := by | |
| 18 | + have he1 : (-1 / 2 - (1 / 2 - v) : ℂ) = v - 1 := by ring | |
| 19 | + have he2 : (-1 / 2 - (1 / 2 : ℂ)) = -1 := by ring | |
| 20 | + have he3 : (1 / 2 - (1 / 2 - v) : ℂ) = v := by ring | |
| 21 | + have he4 : (1 / 2 - v + (1 / 2 : ℂ)) = 1 - v := by ring | |
| 22 | + have hi := beta_difference_integral 1 (by norm_num) (1 / 2 - v) (1 / 2) | |
| 23 | + simp only [he1, he2, he3, he4, Complex.ofReal_one, Complex.one_cpow, one_mul, | |
| 24 | + Complex.cpow_neg_one, ← div_eq_mul_inv] at hi | |
| 25 | + have hi' : (∫ t in Ioi (0 : ℝ), (t : ℂ) ^ (v - 1) / (1 + t)) = | |
| 26 | + betaIntegral v (1 - v) := by | |
| 27 | + convert hi using 1 | |
| 28 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 29 | + intro t ht | |
| 30 | + dsimp only | |
| 31 | + rw [add_comm (1 : ℂ)] | |
| 32 | + rw [hi', Complex.betaIntegral_eq_Gamma_mul_div v (1 - v) hv (by simp; linarith), | |
| 33 | + add_sub_cancel, Complex.Gamma_one, div_one, Complex.Gamma_mul_Gamma_one_sub] | |
| 34 | + | |
| 35 | +lemma exp_logistic_substitution (v : ℂ) (x : ℝ) : | |
| 36 | + Real.exp x • (((Real.exp x : ℝ) : ℂ) ^ (v - 1) / (1 + Real.exp x)) = | |
| 37 | + Complex.exp (v * x) / (1 + Real.exp x) := by | |
| 38 | + rw [Complex.real_smul, ← mul_div_assoc] | |
| 39 | + congr 1 | |
| 40 | + rw [Complex.cpow_def_of_ne_zero (Complex.ofReal_ne_zero.mpr (Real.exp_pos x).ne'), | |
| 41 | + ← Complex.ofReal_log (Real.exp_pos x).le, Real.log_exp, Complex.ofReal_exp, | |
| 42 | + ← Complex.exp_add] | |
| 43 | + congr 1 | |
| 44 | + ring | |
| 45 | + | |
| 46 | +lemma exp_logistic_integral {v : ℂ} (hv : 0 < v.re) (hv' : v.re < 1) : | |
| 47 | + (∫ x : ℝ, Complex.exp (v * x) / (1 + Real.exp x)) = | |
| 48 | + (Real.pi : ℂ) / Complex.sin (Real.pi * v) := by | |
| 49 | + rw [← euler_reflection_integral hv hv', ← integral_comp_exp] | |
| 50 | + apply integral_congr_ae | |
| 51 | + exact Eventually.of_forall (fun x => (exp_logistic_substitution v x).symm) | |
| 52 | + | |
| 53 | +lemma hardy_evaluation_integrand_scale (a b : ℝ) (u : ℂ) (τ : ℝ) (hab : a < b) : | |
| 54 | + Complex.exp (u * τ) / (hardyWeight a b τ : ℂ) = | |
| 55 | + Complex.exp (((u - 2 * a) / (2 * (b - a : ℝ))) * ((2 * (b - a) * τ : ℝ) : ℂ)) / | |
| 56 | + (1 + Real.exp (2 * (b - a) * τ)) := by | |
| 57 | + have hd : (2 * (b - a : ℝ) : ℂ) ≠ 0 := by | |
| 58 | + exact_mod_cast (show 2 * (b - a) ≠ 0 by linarith) | |
| 59 | + have he : ((u - 2 * a) / (2 * (b - a : ℝ))) * ((2 * (b - a) * τ : ℝ) : ℂ) = | |
| 60 | + u * τ - (2 * a * τ : ℝ) := by | |
| 61 | + have hba : (b : ℂ) - a ≠ 0 := by exact_mod_cast (sub_ne_zero.mpr hab.ne.symm) | |
| 62 | + push_cast | |
| 63 | + field_simp | |
| 64 | + rw [he, Complex.exp_sub] | |
| 65 | + have ha : (Real.exp (2 * a * τ) : ℂ) ≠ 0 := | |
| 66 | + Complex.ofReal_ne_zero.mpr (Real.exp_pos _).ne' | |
| 67 | + have hw : (hardyWeight a b τ : ℂ) = | |
| 68 | + (Real.exp (2 * a * τ) : ℂ) * (1 + Real.exp (2 * (b - a) * τ)) := by | |
| 69 | + unfold hardyWeight | |
| 70 | + push_cast | |
| 71 | + rw [mul_add, mul_one, ← Complex.exp_add] | |
| 72 | + congr 2 | |
| 73 | + ring | |
| 74 | + rw [hw, ← Complex.ofReal_exp, div_div] | |
| 75 | + | |
| 76 | +lemma hardy_evaluation_integral {a b : ℝ} (hab : a < b) (u : ℂ) | |
| 77 | + (hu : 2 * a < u.re) (hu' : u.re < 2 * b) : | |
| 78 | + (∫ τ : ℝ, Complex.exp (u * τ) / (hardyWeight a b τ : ℂ)) = | |
| 79 | + (2 * (b - a : ℝ) : ℂ)⁻¹ * | |
| 80 | + ((Real.pi : ℂ) / Complex.sin (Real.pi * ((u - 2 * a) / (2 * (b - a : ℝ))))) := by | |
| 81 | + let v : ℂ := (u - 2 * a) / (2 * (b - a : ℝ)) | |
| 82 | + have hd : 0 < 2 * (b - a) := by linarith | |
| 83 | + have hre : v.re = (u.re - 2 * a) / (2 * (b - a)) := by | |
| 84 | + dsimp [v] | |
| 85 | + have hc : (2 : ℂ) * ((b - a : ℝ) : ℂ) = ((2 * (b - a) : ℝ) : ℂ) := by push_cast; rfl | |
| 86 | + rw [hc, Complex.div_ofReal_re] | |
| 87 | + simp | |
| 88 | + have hv : 0 < v.re := by rw [hre]; exact div_pos (by linarith) hd | |
| 89 | + have hv' : v.re < 1 := by rw [hre]; exact (div_lt_one hd).mpr (by linarith) | |
| 90 | + calc | |
| 91 | + _ = ∫ τ : ℝ, Complex.exp (v * ((2 * (b - a) * τ : ℝ) : ℂ)) / | |
| 92 | + (1 + Real.exp (2 * (b - a) * τ)) := by | |
| 93 | + apply integral_congr_ae | |
| 94 | + exact Eventually.of_forall (fun τ => hardy_evaluation_integrand_scale a b u τ hab) | |
| 95 | + _ = |(2 * (b - a))⁻¹| • ∫ x : ℝ, Complex.exp (v * x) / (1 + Real.exp x) := | |
| 96 | + Measure.integral_comp_mul_left | |
| 97 | + (fun x : ℝ => Complex.exp (v * x) / (1 + Real.exp x)) (2 * (b - a)) | |
| 98 | + _ = _ := by | |
| 99 | + rw [abs_of_pos (inv_pos.mpr hd), exp_logistic_integral hv hv', Complex.real_smul, | |
| 100 | + Complex.ofReal_inv] | |
| 101 | + simp only [Complex.ofReal_mul, Complex.ofReal_ofNat, v] | |
| 102 | + | |
| 103 | +lemma evaluationVector_reproducingKernel {a b : ℝ} (hab : a < b) {s z : ℂ} | |
| 104 | + (hs : s ∈ strip a b) (hz : z ∈ strip a b) : | |
| 105 | + fourierLaplace (evaluationVector z : HardySpace a b) s = reproducingKernel a b s z := by | |
| 106 | + have hu : 2 * a < (s + conj z).re := by | |
| 107 | + simp only [Complex.add_re, Complex.conj_re] | |
| 108 | + linarith [hs.1, hz.1] | |
| 109 | + have hu' : (s + conj z).re < 2 * b := by | |
| 110 | + simp only [Complex.add_re, Complex.conj_re] | |
| 111 | + linarith [hs.2, hz.2] | |
| 112 | + rw [evaluationVector_fourierLaplace_integral hs hz, hardy_evaluation_integral hab _ hu hu'] | |
| 113 | + unfold reproducingKernel | |
| 114 | + have hc : (2 * Real.pi : ℂ)⁻¹ * (2 * (b - a : ℝ) : ℂ)⁻¹ * Real.pi = | |
| 115 | + (4 * (b - a : ℝ) : ℂ)⁻¹ := by | |
| 116 | + have hp : (Real.pi : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr Real.pi_ne_zero | |
| 117 | + have hd : ((b - a : ℝ) : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr (sub_ne_zero.mpr hab.ne.symm) | |
| 118 | + field_simp; ring | |
| 119 | + rw [← mul_assoc, ← mul_div_assoc, hc] | |
| 120 | + congr 2 | |
| 121 | + ring | |
| 122 | + | |
| 123 | +lemma reproducingKernel_diag {a b : ℝ} (hab : a < b) (s : ℂ) : | |
| 124 | + reproducingKernel a b s s = | |
| 125 | + ((1 / (4 * (b - a) * Real.sin (Real.pi * (s.re - a) / (b - a))) : ℝ) : ℂ) := by | |
| 126 | + have hs : s + conj s = (2 * s.re : ℝ) := by apply Complex.ext <;> simp; ring | |
| 127 | + unfold reproducingKernel | |
| 128 | + rw [hs] | |
| 129 | + have he : (Real.pi : ℂ) * ((2 * s.re : ℝ) - 2 * a) / (2 * (b - a : ℝ)) = | |
| 130 | + ((Real.pi * (s.re - a) / (b - a) : ℝ) : ℂ) := by | |
| 131 | + have hd : (b : ℂ) - a ≠ 0 := by exact_mod_cast (sub_ne_zero.mpr hab.ne.symm) | |
| 132 | + push_cast | |
| 133 | + field_simp | |
| 134 | + rw [he, ← Complex.ofReal_sin] | |
| 135 | + simp only [Complex.ofReal_mul, Complex.ofReal_sub, | |
| 136 | + Complex.ofReal_ofNat, Complex.ofReal_inv, one_mul, mul_inv, div_eq_mul_inv] | |
| 137 | + | |
| 138 | +theorem proposition_5_4_exact_norm (a b : ℝ) (hab : a < b) | |
| 139 | + (s : ℂ) (hs : s ∈ strip a b) : | |
| 140 | + ‖(evaluationVector s : HardySpace a b)‖ ^ 2 = | |
| 141 | + 1 / (4 * (b - a) * Real.sin (Real.pi * (s.re - a) / (b - a))) := by | |
| 142 | + have hv : (fourierLaplace (evaluationVector s : HardySpace a b) s).re = | |
| 143 | + ‖(evaluationVector s : HardySpace a b)‖ ^ 2 := by | |
| 144 | + rw [evaluationVector_spec hs, paperInner] | |
| 145 | + exact inner_self_eq_norm_sq (𝕜 := ℂ) (evaluationVector s : HardySpace a b) | |
| 146 | + rw [← hv, evaluationVector_reproducingKernel hab hs hs, reproducingKernel_diag hab] | |
| 147 | + rfl | |
| 148 | + | |
| 149 | +lemma sin_pi_mul_lower {t : ℝ} (ht : 0 ≤ t) (ht' : t ≤ 1) : | |
| 150 | + 2 * min t (1 - t) ≤ Real.sin (Real.pi * t) := by | |
| 151 | + by_cases hhalf : t ≤ 1 / 2 | |
| 152 | + · rw [min_eq_left (by linarith)] | |
| 153 | + convert Real.le_sin_mul (show 0 ≤ 2 * t by linarith) (show 2 * t ≤ 1 by linarith) using 1 | |
| 154 | + congr 1 | |
| 155 | + ring | |
| 156 | + · rw [min_eq_right (by linarith)] | |
| 157 | + have h := Real.le_sin_mul (show 0 ≤ 2 * (1 - t) by linarith) | |
| 158 | + (show 2 * (1 - t) ≤ 1 by linarith) | |
| 159 | + have he : Real.pi / 2 * (2 * (1 - t)) = Real.pi - Real.pi * t := by ring | |
| 160 | + rwa [he, Real.sin_pi_sub] at h | |
| 161 | + | |
| 162 | +lemma evaluationVector_norm_sq_le {a b : ℝ} (hab : a < b) {s : ℂ} | |
| 163 | + (hs : s ∈ strip a b) : | |
| 164 | + ‖(evaluationVector s : HardySpace a b)‖ ^ 2 ≤ 1 / (8 * pointDistance a b s) := by | |
| 165 | + rw [proposition_5_4_exact_norm a b hab s hs] | |
| 166 | + let t : ℝ := (s.re - a) / (b - a) | |
| 167 | + have hd : 0 < b - a := sub_pos.mpr hab | |
| 168 | + have ht : 0 < t := div_pos (sub_pos.mpr hs.1) hd | |
| 169 | + have ht' : t < 1 := (div_lt_one hd).mpr (by linarith [hs.2]) | |
| 170 | + have hsine := sin_pi_mul_lower ht.le ht'.le | |
| 171 | + have hdist : pointDistance a b s = (b - a) * min t (1 - t) := by | |
| 172 | + rw [mul_min_of_nonneg _ _ hd.le] | |
| 173 | + unfold pointDistance | |
| 174 | + congr 1 <;> dsimp [t] <;> field_simp; ring | |
| 175 | + have hp : 0 < pointDistance a b s := lt_min (sub_pos.mpr hs.1) (sub_pos.mpr hs.2) | |
| 176 | + have hden : 8 * pointDistance a b s ≤ | |
| 177 | + 4 * (b - a) * Real.sin (Real.pi * (s.re - a) / (b - a)) := by | |
| 178 | + rw [hdist] | |
| 179 | + have h := mul_le_mul_of_nonneg_left hsine (show 0 ≤ 4 * (b - a) by positivity) | |
| 180 | + dsimp [t] at h | |
| 181 | + rw [← mul_div_assoc] at h | |
| 182 | + nlinarith | |
| 183 | + exact one_div_le_one_div_of_le (by positivity) hden | |
| 184 | + | |
| 185 | +lemma evaluationVector_norm_product_le {a b : ℝ} (hab : a < b) {s z : ℂ} | |
| 186 | + (hs : s ∈ strip a b) (hz : z ∈ strip a b) : | |
| 187 | + ‖(evaluationVector s : HardySpace a b)‖ * ‖(evaluationVector z : HardySpace a b)‖ ≤ | |
| 188 | + 1 / (8 * Real.sqrt (pointDistance a b s * pointDistance a b z)) := by | |
| 189 | + have hds : 0 < pointDistance a b s := lt_min (sub_pos.mpr hs.1) (sub_pos.mpr hs.2) | |
| 190 | + have hdz : 0 < pointDistance a b z := lt_min (sub_pos.mpr hz.1) (sub_pos.mpr hz.2) | |
| 191 | + have hn := mul_le_mul (evaluationVector_norm_sq_le hab hs) (evaluationVector_norm_sq_le hab hz) | |
| 192 | + (sq_nonneg _) (by positivity : 0 ≤ 1 / (8 * pointDistance a b s)) | |
| 193 | + have hr := Real.sqrt_le_sqrt hn | |
| 194 | + rw [← mul_pow, Real.sqrt_sq (mul_nonneg (norm_nonneg _) (norm_nonneg _))] at hr | |
| 195 | + calc | |
| 196 | + _ ≤ Real.sqrt ((1 / (8 * pointDistance a b s)) * (1 / (8 * pointDistance a b z))) := hr | |
| 197 | + _ = _ := by | |
| 198 | + have he : (1 / (8 * pointDistance a b s)) * (1 / (8 * pointDistance a b z)) = | |
| 199 | + 1 / ((8 : ℝ) ^ 2 * (pointDistance a b s * pointDistance a b z)) := by ring | |
| 200 | + rw [he, Real.sqrt_div zero_le_one, Real.sqrt_one, Real.sqrt_mul (by positivity), | |
| 201 | + Real.sqrt_sq (by norm_num : (0 : ℝ) ≤ 8)] | |
| 202 | + | |
| 203 | +end ConditionalGoldbach | |
+233 −0 ConditionalGoldbach/Proofs/HardyTraceAlgebra.lean added View file
| @@ -0,0 +1,233 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.HardyTraces | |
| 4 | +public import ConditionalGoldbach.Definitions.Hilbert | |
| 5 | + | |
| 6 | +/-! Linear boundary representation and its exact norm normalization. -/ | |
| 7 | +@[expose] public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +open scoped Topology ComplexConjugate | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma fourierLaplace_integrable {a b : ℝ} (ψ : HardySpace a b) {s : ℂ} | |
| 16 | + (hs : s ∈ strip a b) : Integrable (fun τ : ℝ => ψ τ * Complex.exp (s * τ)) := by | |
| 17 | + have hm : AEStronglyMeasurable (fun τ : ℝ => ψ τ * Complex.exp (s * τ)) volume := | |
| 18 | + (hardySpace_aestronglyMeasurable ψ).mul (by fun_prop : | |
| 19 | + Continuous (fun τ : ℝ => Complex.exp (s * τ))).aestronglyMeasurable | |
| 20 | + apply (hardy_weighted_line_integrable hs ψ).norm.mono' hm | |
| 21 | + filter_upwards [] with τ | |
| 22 | + simp only [norm_mul, Complex.norm_exp, Complex.mul_re, Complex.ofReal_re, | |
| 23 | + Complex.ofReal_im, mul_zero, sub_zero, Complex.norm_real, Real.norm_eq_abs, | |
| 24 | + abs_of_pos (Real.exp_pos _)] | |
| 25 | + exact le_of_eq (mul_comm _ _) | |
| 26 | + | |
| 27 | +lemma fourierLaplace_add {a b : ℝ} (ψ χ : HardySpace a b) {s : ℂ} | |
| 28 | + (hs : s ∈ strip a b) : | |
| 29 | + fourierLaplace (ψ + χ) s = fourierLaplace ψ s + fourierLaplace χ s := by | |
| 30 | + unfold fourierLaplace | |
| 31 | + rw [← mul_add, ← integral_add (fourierLaplace_integrable ψ hs) (fourierLaplace_integrable χ hs)] | |
| 32 | + congr 1 | |
| 33 | + apply integral_congr_ae | |
| 34 | + filter_upwards [(volume_absolutelyContinuous_hardyMeasure a b).ae_eq (Lp.coeFn_add ψ χ)] with τ ht | |
| 35 | + simp only [ht, Pi.add_apply, add_mul] | |
| 36 | + | |
| 37 | +lemma fourierLaplace_smul {a b : ℝ} (c : ℂ) (ψ : HardySpace a b) {s : ℂ} | |
| 38 | + (_hs : s ∈ strip a b) : fourierLaplace (c • ψ) s = c * fourierLaplace ψ s := by | |
| 39 | + unfold fourierLaplace | |
| 40 | + calc | |
| 41 | + _ = (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ * ∫ τ : ℝ, c * (ψ τ * Complex.exp (s * τ)) := by | |
| 42 | + congr 1 | |
| 43 | + apply integral_congr_ae | |
| 44 | + filter_upwards [(volume_absolutelyContinuous_hardyMeasure a b).ae_eq (Lp.coeFn_smul c ψ)] with τ ht | |
| 45 | + simp only [ht, Pi.smul_apply, smul_eq_mul, mul_assoc] | |
| 46 | + _ = _ := by rw [integral_const_mul]; ring | |
| 47 | + | |
| 48 | +lemma boundaryTraces_spec {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) : | |
| 49 | + IsBoundaryTrace hab ψ (boundaryTraces hab ψ).1 (boundaryTraces hab ψ).2 := | |
| 50 | + Classical.choose_spec (boundaryTraces_exist hab ψ) | |
| 51 | + | |
| 52 | +lemma boundaryTraces_norm_sq {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) : | |
| 53 | + ‖ψ‖ ^ 2 = ‖(boundaryTraces hab ψ).1‖ ^ 2 + ‖(boundaryTraces hab ψ).2‖ ^ 2 := by | |
| 54 | + have h := boundaryTraces_spec hab ψ | |
| 55 | + exact hardy_boundary_norm_of_traces hab ψ _ _ h.1 h.2 | |
| 56 | + | |
| 57 | +lemma interiorLine_add {a b : ℝ} (hab : a < b) (ψ χ : HardySpace a b) | |
| 58 | + (x : ℝ) (hx : x ∈ Ioo a b) : | |
| 59 | + interiorLine hab (ψ + χ) x hx = interiorLine hab ψ x hx + interiorLine hab χ x hx := by | |
| 60 | + apply Lp.ext | |
| 61 | + filter_upwards [(interiorLine_memLp hab hx (ψ + χ)).coeFn_toLp, | |
| 62 | + (interiorLine_memLp hab hx ψ).coeFn_toLp, (interiorLine_memLp hab hx χ).coeFn_toLp, | |
| 63 | + Lp.coeFn_add (interiorLine hab ψ x hx) (interiorLine hab χ x hx)] with t ht htψ htχ htadd | |
| 64 | + change ((interiorLine_memLp hab hx (ψ + χ)).toLp _) t = _ | |
| 65 | + rw [ht, htadd] | |
| 66 | + change fourierLaplace (ψ + χ) (line x t) = | |
| 67 | + ((interiorLine_memLp hab hx ψ).toLp _) t + ((interiorLine_memLp hab hx χ).toLp _) t | |
| 68 | + rw [htψ, htχ] | |
| 69 | + exact fourierLaplace_add ψ χ (by simpa only [strip, Set.mem_ofPred_eq, Set.mem_Ioo, line, Complex.add_re, Complex.ofReal_re, | |
| 70 | + Complex.mul_re, Complex.I_re, Complex.I_im, Complex.ofReal_im, mul_zero, zero_mul, sub_zero, | |
| 71 | + add_zero] using hx) | |
| 72 | + | |
| 73 | +lemma interiorLine_smul {a b : ℝ} (hab : a < b) (c : ℂ) (ψ : HardySpace a b) | |
| 74 | + (x : ℝ) (hx : x ∈ Ioo a b) : | |
| 75 | + interiorLine hab (c • ψ) x hx = c • interiorLine hab ψ x hx := by | |
| 76 | + apply Lp.ext | |
| 77 | + filter_upwards [(interiorLine_memLp hab hx (c • ψ)).coeFn_toLp, | |
| 78 | + (interiorLine_memLp hab hx ψ).coeFn_toLp, Lp.coeFn_smul c (interiorLine hab ψ x hx)] with t ht htψ htadd | |
| 79 | + change ((interiorLine_memLp hab hx (c • ψ)).toLp _) t = _ | |
| 80 | + rw [ht, htadd] | |
| 81 | + change fourierLaplace (c • ψ) (line x t) = c * ((interiorLine_memLp hab hx ψ).toLp _) t | |
| 82 | + rw [htψ] | |
| 83 | + exact fourierLaplace_smul c ψ (by simpa only [strip, Set.mem_ofPred_eq, Set.mem_Ioo, line, Complex.add_re, Complex.ofReal_re, | |
| 84 | + Complex.mul_re, Complex.I_re, Complex.I_im, Complex.ofReal_im, mul_zero, zero_mul, sub_zero, | |
| 85 | + add_zero] using hx) | |
| 86 | + | |
| 87 | +lemma boundaryTraces_unique {a b : ℝ} (hab : a < b) (ψ : HardySpace a b) | |
| 88 | + (p q : Lp ℂ 2 (volume : Measure ℝ) × Lp ℂ 2 (volume : Measure ℝ)) | |
| 89 | + (hp : IsBoundaryTrace hab ψ p.1 p.2) (hq : IsBoundaryTrace hab ψ q.1 q.2) : p = q := by | |
| 90 | + have : NeBot (comap (Subtype.val : Ioo a b → ℝ) (nhdsWithin a (Ioo a b))) := | |
| 91 | + (left_nhdsWithin_Ioo_neBot hab).comap_of_range_mem | |
| 92 | + (by simpa only [Subtype.range_coe] using (self_mem_nhdsWithin : Ioo a b ∈ nhdsWithin a (Ioo a b))) | |
| 93 | + have : NeBot (comap (Subtype.val : Ioo a b → ℝ) (nhdsWithin b (Ioo a b))) := | |
| 94 | + (right_nhdsWithin_Ioo_neBot hab).comap_of_range_mem | |
| 95 | + (by simpa only [Subtype.range_coe] using (self_mem_nhdsWithin : Ioo a b ∈ nhdsWithin b (Ioo a b))) | |
| 96 | + exact Prod.ext (tendsto_nhds_unique hp.1 hq.1) (tendsto_nhds_unique hp.2 hq.2) | |
| 97 | + | |
| 98 | +lemma boundaryTraces_add {a b : ℝ} (hab : a < b) (ψ χ : HardySpace a b) : | |
| 99 | + boundaryTraces hab (ψ + χ) = boundaryTraces hab ψ + boundaryTraces hab χ := by | |
| 100 | + apply boundaryTraces_unique hab (ψ + χ) _ _ (boundaryTraces_spec hab (ψ + χ)) | |
| 101 | + constructor | |
| 102 | + · simpa only [← interiorLine_add, Prod.fst_add] using | |
| 103 | + (boundaryTraces_spec hab ψ).1.add (boundaryTraces_spec hab χ).1 | |
| 104 | + · simpa only [← interiorLine_add, Prod.snd_add] using | |
| 105 | + (boundaryTraces_spec hab ψ).2.add (boundaryTraces_spec hab χ).2 | |
| 106 | + | |
| 107 | +lemma boundaryTraces_smul {a b : ℝ} (hab : a < b) (c : ℂ) (ψ : HardySpace a b) : | |
| 108 | + boundaryTraces hab (c • ψ) = c • boundaryTraces hab ψ := by | |
| 109 | + apply boundaryTraces_unique hab (c • ψ) _ _ (boundaryTraces_spec hab (c • ψ)) | |
| 110 | + constructor | |
| 111 | + · simpa only [← interiorLine_smul, Prod.smul_fst] using | |
| 112 | + (boundaryTraces_spec hab ψ).1.const_smul c | |
| 113 | + · simpa only [← interiorLine_smul, Prod.smul_snd] using | |
| 114 | + (boundaryTraces_spec hab ψ).2.const_smul c | |
| 115 | + | |
| 116 | +lemma boundaryTraces_sub {a b : ℝ} (hab : a < b) (ψ χ : HardySpace a b) : | |
| 117 | + boundaryTraces hab (ψ - χ) = boundaryTraces hab ψ - boundaryTraces hab χ := by | |
| 118 | + rw [sub_eq_add_neg, boundaryTraces_add, ← neg_one_smul ℂ χ, boundaryTraces_smul, neg_one_smul, | |
| 119 | + ← sub_eq_add_neg] | |
| 120 | + | |
| 121 | +lemma boundaryTraces_norm_sq_sub {a b : ℝ} (hab : a < b) (ψ χ : HardySpace a b) : | |
| 122 | + ‖ψ - χ‖ ^ 2 = ‖(boundaryTraces hab ψ).1 - (boundaryTraces hab χ).1‖ ^ 2 + | |
| 123 | + ‖(boundaryTraces hab ψ).2 - (boundaryTraces hab χ).2‖ ^ 2 := by | |
| 124 | + simpa only [boundaryTraces_sub, Prod.fst_sub, Prod.snd_sub] using boundaryTraces_norm_sq hab (ψ - χ) | |
| 125 | + | |
| 126 | +theorem lemma_5_2_representation_spec (a b : ℝ) (hab : a < b) : | |
| 127 | + (∀ ψ : HardySpace a b, | |
| 128 | + (∀ s ∈ strip a b, Integrable (fun τ : ℝ => ψ τ * Complex.exp (s * τ))) ∧ | |
| 129 | + IsBoundaryTrace hab ψ (boundaryTraces hab ψ).1 (boundaryTraces hab ψ).2 ∧ | |
| 130 | + Integrable (fun τ : ℝ => ‖ψ τ‖ ^ 2 * hardyWeight a b τ) ∧ | |
| 131 | + ‖ψ‖ ^ 2 = ∫ τ : ℝ, ‖ψ τ‖ ^ 2 * hardyWeight a b τ) ∧ | |
| 132 | + (∀ ψ χ : HardySpace a b, ∀ s ∈ strip a b, | |
| 133 | + fourierLaplace (ψ + χ) s = fourierLaplace ψ s + fourierLaplace χ s) ∧ | |
| 134 | + (∀ c : ℂ, ∀ ψ : HardySpace a b, ∀ s ∈ strip a b, | |
| 135 | + fourierLaplace (c • ψ) s = c * fourierLaplace ψ s) ∧ | |
| 136 | + (∀ ψ χ : HardySpace a b, | |
| 137 | + boundaryTraces hab (ψ + χ) = boundaryTraces hab ψ + boundaryTraces hab χ) ∧ | |
| 138 | + (∀ c : ℂ, ∀ ψ : HardySpace a b, | |
| 139 | + boundaryTraces hab (c • ψ) = c • boundaryTraces hab ψ) ∧ | |
| 140 | + (∀ ψ χ : HardySpace a b, ‖ψ - χ‖ ^ 2 = | |
| 141 | + ‖(boundaryTraces hab ψ).1 - (boundaryTraces hab χ).1‖ ^ 2 + | |
| 142 | + ‖(boundaryTraces hab ψ).2 - (boundaryTraces hab χ).2‖ ^ 2) := by | |
| 143 | + exact ⟨fun ψ => ⟨fun _ hs => fourierLaplace_integrable ψ hs, boundaryTraces_spec hab ψ, | |
| 144 | + hardySpace_integrable_weighted_sq ψ, hardySpace_norm_sq_integral ψ⟩, | |
| 145 | + fun ψ χ _ hs => fourierLaplace_add ψ χ hs, | |
| 146 | + fun c ψ _ hs => fourierLaplace_smul c ψ hs, | |
| 147 | + boundaryTraces_add hab, boundaryTraces_smul hab, boundaryTraces_norm_sq_sub hab⟩ | |
| 148 | + | |
| 149 | +lemma boundaryTraces_lipschitz {a b : ℝ} (hab : a < b) : | |
| 150 | + LipschitzWith 1 (boundaryTraces hab) := by | |
| 151 | + apply LipschitzWith.of_dist_le_mul | |
| 152 | + intro ψ χ | |
| 153 | + simp only [NNReal.coe_one, one_mul, dist_eq_norm, Prod.norm_def] | |
| 154 | + have h := boundaryTraces_norm_sq_sub hab ψ χ | |
| 155 | + apply max_le | |
| 156 | + · have h0 := norm_nonneg (ψ - χ) | |
| 157 | + have h1 := norm_nonneg ((boundaryTraces hab ψ).1 - (boundaryTraces hab χ).1) | |
| 158 | + simpa only [Prod.fst_sub] using (show ‖(boundaryTraces hab ψ).1 - (boundaryTraces hab χ).1‖ ≤ ‖ψ - χ‖ by | |
| 159 | + nlinarith [sq_nonneg (‖(boundaryTraces hab ψ).2 - (boundaryTraces hab χ).2‖)]) | |
| 160 | + · have h0 := norm_nonneg (ψ - χ) | |
| 161 | + have h1 := norm_nonneg ((boundaryTraces hab ψ).2 - (boundaryTraces hab χ).2) | |
| 162 | + simpa only [Prod.snd_sub] using (show ‖(boundaryTraces hab ψ).2 - (boundaryTraces hab χ).2‖ ≤ ‖ψ - χ‖ by | |
| 163 | + nlinarith [sq_nonneg (‖(boundaryTraces hab ψ).1 - (boundaryTraces hab χ).1‖)]) | |
| 164 | + | |
| 165 | +lemma boundaryTraces_antilipschitz {a b : ℝ} (hab : a < b) : | |
| 166 | + AntilipschitzWith 2 (boundaryTraces hab) := by | |
| 167 | + apply AntilipschitzWith.of_le_mul_dist | |
| 168 | + intro ψ χ | |
| 169 | + simp only [NNReal.coe_ofNat, dist_eq_norm, Prod.norm_def, Prod.fst_sub, Prod.snd_sub] | |
| 170 | + have h := boundaryTraces_norm_sq_sub hab ψ χ | |
| 171 | + have h0 := norm_nonneg (ψ - χ) | |
| 172 | + have h1 := norm_nonneg ((boundaryTraces hab ψ).1 - (boundaryTraces hab χ).1) | |
| 173 | + have h2 := norm_nonneg ((boundaryTraces hab ψ).2 - (boundaryTraces hab χ).2) | |
| 174 | + have hle1 := le_max_left ‖(boundaryTraces hab ψ).1 - (boundaryTraces hab χ).1‖ | |
| 175 | + ‖(boundaryTraces hab ψ).2 - (boundaryTraces hab χ).2‖ | |
| 176 | + have hle2 := le_max_right ‖(boundaryTraces hab ψ).1 - (boundaryTraces hab χ).1‖ | |
| 177 | + ‖(boundaryTraces hab ψ).2 - (boundaryTraces hab χ).2‖ | |
| 178 | + have hm0 := le_trans h1 hle1 | |
| 179 | + have hs1 := (sq_le_sq₀ h1 hm0).mpr hle1 | |
| 180 | + have hs2 := (sq_le_sq₀ h2 hm0).mpr hle2 | |
| 181 | + nlinarith | |
| 182 | + | |
| 183 | +theorem lemma_5_2_closed_trace_space (a b : ℝ) (hab : a < b) : | |
| 184 | + IsClosed (Set.range (fun ψ : HardySpace a b => boundaryTraces hab ψ)) := | |
| 185 | + (boundaryTraces_antilipschitz hab).isClosed_range (boundaryTraces_lipschitz hab).uniformContinuous | |
| 186 | + | |
| 187 | +/-- The original trace pair, now viewed with its Hilbert direct-sum norm. -/ | |
| 188 | +def hardyTraceIsometry {a b : ℝ} (hab : a < b) : | |
| 189 | + HardySpace a b →ₗᵢ[ℂ] WithLp 2 | |
| 190 | + (Lp ℂ 2 (volume : Measure ℝ) × Lp ℂ 2 (volume : Measure ℝ)) where | |
| 191 | + toFun ψ := WithLp.toLp 2 (boundaryTraces hab ψ) | |
| 192 | + map_add' ψ χ := by simp only [boundaryTraces_add, WithLp.toLp_add] | |
| 193 | + map_smul' c ψ := by simp only [boundaryTraces_smul, WithLp.toLp_smul, RingHom.id_apply] | |
| 194 | + norm_map' ψ := by | |
| 195 | + apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp | |
| 196 | + rw [WithLp.prod_norm_sq_eq_of_L2] | |
| 197 | + exact (boundaryTraces_norm_sq hab ψ).symm | |
| 198 | + | |
| 199 | +theorem lemma_5_2_boundary_inner (a b : ℝ) (hab : a < b) (h g : HardySpace a b) : | |
| 200 | + paperInner h g = | |
| 201 | + (∫ t : ℝ, (boundaryTraces hab h).1 t * conj ((boundaryTraces hab g).1 t)) + | |
| 202 | + ∫ t : ℝ, (boundaryTraces hab h).2 t * conj ((boundaryTraces hab g).2 t) := by | |
| 203 | + have hi := (hardyTraceIsometry hab).inner_map_map g h | |
| 204 | + change inner ℂ (WithLp.toLp 2 (boundaryTraces hab g)) | |
| 205 | + (WithLp.toLp 2 (boundaryTraces hab h)) = inner ℂ g h at hi | |
| 206 | + simp only [WithLp.prod_inner_apply] at hi | |
| 207 | + rw [paperInner, ← hi, L2.inner_def, L2.inner_def] | |
| 208 | + congr 1 | |
| 209 | + | |
| 210 | +lemma fourierLaplace_injective_strip {a b : ℝ} (hab : a < b) (ψ χ : HardySpace a b) | |
| 211 | + (h : ∀ s ∈ strip a b, fourierLaplace ψ s = fourierLaplace χ s) : ψ = χ := by | |
| 212 | + have hi : (fun x : Ioo a b => interiorLine hab ψ x x.property) = | |
| 213 | + (fun x : Ioo a b => interiorLine hab χ x x.property) := by | |
| 214 | + funext x | |
| 215 | + apply Lp.ext | |
| 216 | + filter_upwards [(interiorLine_memLp hab x.property ψ).coeFn_toLp, | |
| 217 | + (interiorLine_memLp hab x.property χ).coeFn_toLp] with t ht ht' | |
| 218 | + change ((interiorLine_memLp hab x.property ψ).toLp _) t = | |
| 219 | + ((interiorLine_memLp hab x.property χ).toLp _) t | |
| 220 | + rw [ht, ht'] | |
| 221 | + apply h | |
| 222 | + simpa only [strip, Set.mem_ofPred_eq, Set.mem_Ioo, line, Complex.add_re, | |
| 223 | + Complex.ofReal_re, Complex.mul_re, Complex.I_re, Complex.I_im, | |
| 224 | + Complex.ofReal_im, mul_zero, zero_mul, sub_zero, add_zero] using x.property | |
| 225 | + have hc := boundaryTraces_spec hab χ | |
| 226 | + change Tendsto _ _ _ ∧ Tendsto _ _ _ at hc | |
| 227 | + rw [← hi] at hc | |
| 228 | + have hb := boundaryTraces_unique hab ψ _ _ (boundaryTraces_spec hab ψ) hc | |
| 229 | + apply (hardyTraceIsometry hab).injective | |
| 230 | + change WithLp.toLp 2 (boundaryTraces hab ψ) = WithLp.toLp 2 (boundaryTraces hab χ) | |
| 231 | + rw [hb] | |
| 232 | + | |
| 233 | +end ConditionalGoldbach | |
+61 −0 ConditionalGoldbach/Proofs/HardyWeakLimit.lean added View file
| @@ -0,0 +1,61 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.InnerProductSpace.Dual | |
| 4 | + | |
| 5 | +public import ConditionalGoldbach.Proofs.HardyEvaluation | |
| 6 | +public import Mathlib.Analysis.Normed.Module.WeakDual | |
| 7 | + | |
| 8 | +/-! Weak compactness closes uniformly bounded Fourier–Laplace families under pointwise limits. -/ | |
| 9 | +public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +open scoped Topology ComplexConjugate | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | + | |
| 17 | +lemma hardy_bounded_pointwise_limit {a b C : ℝ} (ψ : ℕ → HardySpace a b) | |
| 18 | + (hbound : ∀ n, ‖ψ n‖ ≤ C) (f : ℂ → ℂ) | |
| 19 | + (hlim : ∀ s ∈ strip a b, Tendsto (fun n => fourierLaplace (ψ n) s) atTop (𝓝 (f s))) : | |
| 20 | + ∃ χ : HardySpace a b, ‖χ‖ ≤ C ∧ ∀ s ∈ strip a b, fourierLaplace χ s = f s := by | |
| 21 | + let u : ℕ → WeakDual ℂ (HardySpace a b) := fun n => | |
| 22 | + (InnerProductSpace.toDual ℂ (HardySpace a b) (ψ n)).toWeakDual | |
| 23 | + have hc := WeakDual.isCompact_closedBall (0 : StrongDual ℂ (HardySpace a b)) C | |
| 24 | + have hu : Filter.map u atTop ≤ 𝓟 (WeakDual.toStrongDual ⁻¹' Metric.closedBall 0 C) := by | |
| 25 | + apply le_principal_iff.mpr | |
| 26 | + change ∀ᶠ n : ℕ in atTop, (u n).toStrongDual ∈ Metric.closedBall 0 C | |
| 27 | + filter_upwards [] with n | |
| 28 | + simpa only [u, StrongDual.toStrongDual_toWeakDual, Metric.mem_closedBall, | |
| 29 | + dist_zero_right, LinearIsometryEquiv.norm_map] using hbound n | |
| 30 | + obtain ⟨v, hv, hcluster⟩ := hc.exists_mapClusterPt hu | |
| 31 | + let χ : HardySpace a b := (InnerProductSpace.toDual ℂ (HardySpace a b)).symm v.toStrongDual | |
| 32 | + refine ⟨χ, ?_, ?_⟩ | |
| 33 | + · change ‖(InnerProductSpace.toDual ℂ (HardySpace a b)).symm v.toStrongDual‖ ≤ C | |
| 34 | + rw [LinearIsometryEquiv.norm_map] | |
| 35 | + change v.toStrongDual ∈ Metric.closedBall (0 : StrongDual ℂ (HardySpace a b)) C at hv | |
| 36 | + simpa only [Metric.mem_closedBall, dist_zero_right] using hv | |
| 37 | + · intro s hs | |
| 38 | + let E : WeakDual ℂ (HardySpace a b) → ℂ := fun w => conj (w (evaluationVector s)) | |
| 39 | + have hE : Continuous E := Complex.continuous_conj.comp (WeakDual.eval_continuous _) | |
| 40 | + have hEψ : ∀ n, E (u n) = fourierLaplace (ψ n) s := by | |
| 41 | + intro n | |
| 42 | + change conj (inner ℂ (ψ n) (evaluationVector s)) = _ | |
| 43 | + rw [inner_conj_symm] | |
| 44 | + exact (evaluationVector_spec hs (ψ n)).symm | |
| 45 | + have hEχ : E v = fourierLaplace χ s := by | |
| 46 | + rw [evaluationVector_spec hs] | |
| 47 | + change conj (v.toStrongDual (evaluationVector s)) = inner ℂ (evaluationVector s) χ | |
| 48 | + rw [← InnerProductSpace.toDual_symm_apply (𝕜 := ℂ) | |
| 49 | + (x := evaluationVector s) (y := v.toStrongDual)] | |
| 50 | + exact inner_conj_symm _ _ | |
| 51 | + have hEf : Tendsto E (Filter.map u atTop) (𝓝 (f s)) := by | |
| 52 | + rw [tendsto_map'_iff] | |
| 53 | + have he : E ∘ u = (fun n => fourierLaplace (ψ n) s) := funext hEψ | |
| 54 | + rw [he] | |
| 55 | + exact hlim s hs | |
| 56 | + have : NeBot (𝓝 v ⊓ Filter.map u atTop) := hcluster | |
| 57 | + have heq : E v = f s := tendsto_nhds_unique | |
| 58 | + (hE.continuousAt.tendsto.mono_left inf_le_left) (hEf.mono_left inf_le_right) | |
| 59 | + exact hEχ.symm.trans heq | |
| 60 | + | |
| 61 | +end ConditionalGoldbach | |
+122 −0 ConditionalGoldbach/Proofs/HardyWeights.lean added View file
| @@ -0,0 +1,122 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Hardy | |
| 4 | +public import Mathlib.Analysis.SpecialFunctions.ImproperIntegrals | |
| 5 | +import Mathlib.Tactic.NormNum.RealSqrt | |
| 6 | + | |
| 7 | +/-! Weighted square-integrability on the closed Hardy strip. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +noncomputable section | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma hardyWeight_pos (a b τ : ℝ) : 0 < hardyWeight a b τ := by | |
| 15 | + unfold hardyWeight | |
| 16 | + positivity | |
| 17 | + | |
| 18 | +lemma hardyWeight_continuous (a b : ℝ) : Continuous (hardyWeight a b) := by | |
| 19 | + unfold hardyWeight | |
| 20 | + fun_prop | |
| 21 | + | |
| 22 | +lemma volume_absolutelyContinuous_hardyMeasure (a b : ℝ) : | |
| 23 | + (volume : Measure ℝ) ≪ hardyMeasure a b := by | |
| 24 | + apply withDensity_absolutelyContinuous' | |
| 25 | + · exact (hardyWeight_continuous a b).measurable.ennreal_ofReal.aemeasurable | |
| 26 | + · exact Eventually.of_forall (fun τ => (ENNReal.ofReal_pos.mpr (hardyWeight_pos a b τ)).ne') | |
| 27 | + | |
| 28 | +lemma hardySpace_aestronglyMeasurable {a b : ℝ} (ψ : HardySpace a b) : | |
| 29 | + AEStronglyMeasurable ψ (volume : Measure ℝ) := | |
| 30 | + (Lp.aestronglyMeasurable ψ).mono_ac (volume_absolutelyContinuous_hardyMeasure a b) | |
| 31 | + | |
| 32 | +lemma hardySpace_integrable_weighted_sq {a b : ℝ} (ψ : HardySpace a b) : | |
| 33 | + Integrable (fun τ : ℝ => ‖ψ τ‖ ^ 2 * hardyWeight a b τ) := by | |
| 34 | + have h : Integrable (fun τ : ℝ => ‖ψ τ‖ ^ 2) (hardyMeasure a b) := | |
| 35 | + (Lp.memLp ψ).norm.integrable_sq | |
| 36 | + have hw := (hardyWeight_continuous a b).measurable.ennreal_ofReal | |
| 37 | + have ht : ∀ᵐ τ : ℝ ∂volume, ENNReal.ofReal (hardyWeight a b τ) < ⊤ := | |
| 38 | + Eventually.of_forall (fun _ => ENNReal.ofReal_lt_top) | |
| 39 | + simpa [hardyMeasure, ENNReal.toReal_ofReal (hardyWeight_pos a b _).le] using | |
| 40 | + (integrable_withDensity_iff hw ht).mp h | |
| 41 | + | |
| 42 | +lemma hardy_exp_sq_le_weight {a b x : ℝ} (hx : x ∈ Icc a b) (τ : ℝ) : | |
| 43 | + Real.exp (x * τ) ^ 2 ≤ hardyWeight a b τ := by | |
| 44 | + rw [← Real.exp_nat_mul] | |
| 45 | + change Real.exp (2 * (x * τ)) ≤ Real.exp (2 * a * τ) + Real.exp (2 * b * τ) | |
| 46 | + by_cases ht : 0 ≤ τ | |
| 47 | + · calc | |
| 48 | + _ ≤ Real.exp (2 * b * τ) := Real.exp_le_exp.mpr (by nlinarith [hx.2]) | |
| 49 | + _ ≤ _ := le_add_of_nonneg_left (Real.exp_pos _).le | |
| 50 | + · calc | |
| 51 | + _ ≤ Real.exp (2 * a * τ) := Real.exp_le_exp.mpr (by nlinarith [hx.1]) | |
| 52 | + _ ≤ _ := le_add_of_nonneg_right (Real.exp_pos _).le | |
| 53 | + | |
| 54 | +lemma hardy_weighted_line_memLp {a b x : ℝ} (hx : x ∈ Icc a b) (ψ : HardySpace a b) : | |
| 55 | + MemLp (fun τ : ℝ => (Real.exp (x * τ) : ℂ) * ψ τ) 2 := by | |
| 56 | + have hm : AEStronglyMeasurable (fun τ : ℝ => (Real.exp (x * τ) : ℂ) * ψ τ) volume := | |
| 57 | + (by fun_prop : Continuous (fun τ : ℝ => (Real.exp (x * τ) : ℂ))).aestronglyMeasurable.mul | |
| 58 | + (hardySpace_aestronglyMeasurable ψ) | |
| 59 | + apply (memLp_two_iff_integrable_sq_norm hm).mpr | |
| 60 | + apply (hardySpace_integrable_weighted_sq ψ).mono' (hm.norm.pow 2) | |
| 61 | + filter_upwards [] with τ | |
| 62 | + change ‖‖(Real.exp (x * τ) : ℂ) * ψ τ‖ ^ 2‖ ≤ _ | |
| 63 | + simp only [Real.norm_eq_abs, | |
| 64 | + norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), mul_pow] | |
| 65 | + simp only [abs_of_nonneg (sq_nonneg (Real.exp (x * τ))), abs_of_nonneg (sq_nonneg (‖ψ τ‖))] | |
| 66 | + calc | |
| 67 | + Real.exp (x * τ) ^ 2 * ‖ψ τ‖ ^ 2 ≤ hardyWeight a b τ * ‖ψ τ‖ ^ 2 := | |
| 68 | + mul_le_mul_of_nonneg_right (hardy_exp_sq_le_weight hx τ) (sq_nonneg _) | |
| 69 | + _ = _ := mul_comm _ _ | |
| 70 | + | |
| 71 | +lemma hardy_exp_memLp_Iic {c : ℝ} (hc : 0 < c) : | |
| 72 | + MemLp (fun τ : ℝ => (Real.exp (c * τ) : ℂ)) 2 (volume.restrict (Iic 0)) := by | |
| 73 | + apply (memLp_two_iff_integrable_sq_norm | |
| 74 | + (by fun_prop : Continuous (fun τ : ℝ => (Real.exp (c * τ) : ℂ))).aestronglyMeasurable).mpr | |
| 75 | + have h := integrableOn_exp_mul_Iic (show 0 < 2 * c by positivity) 0 | |
| 76 | + simpa only [IntegrableOn, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), | |
| 77 | + ← Real.exp_nat_mul, Nat.cast_ofNat, mul_assoc] using h | |
| 78 | + | |
| 79 | +lemma hardy_exp_memLp_Ioi {c : ℝ} (hc : c < 0) : | |
| 80 | + MemLp (fun τ : ℝ => (Real.exp (c * τ) : ℂ)) 2 (volume.restrict (Ioi 0)) := by | |
| 81 | + apply (memLp_two_iff_integrable_sq_norm | |
| 82 | + (by fun_prop : Continuous (fun τ : ℝ => (Real.exp (c * τ) : ℂ))).aestronglyMeasurable).mpr | |
| 83 | + have h := integrableOn_exp_mul_Ioi (show 2 * c < 0 by linarith) 0 | |
| 84 | + simpa only [IntegrableOn, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), | |
| 85 | + ← Real.exp_nat_mul, Nat.cast_ofNat, mul_assoc] using h | |
| 86 | + | |
| 87 | +lemma hardy_exp_mul_factor (a x τ : ℝ) (z : ℂ) : | |
| 88 | + ((Real.exp (a * τ) : ℂ) * z) * (Real.exp ((x - a) * τ) : ℂ) = | |
| 89 | + (Real.exp (x * τ) : ℂ) * z := by | |
| 90 | + rw [mul_right_comm, ← Complex.ofReal_mul, ← Real.exp_add] | |
| 91 | + congr 3 | |
| 92 | + ring | |
| 93 | + | |
| 94 | +lemma hardy_weighted_line_integrable {a b x : ℝ} (hx : x ∈ Ioo a b) | |
| 95 | + (ψ : HardySpace a b) : | |
| 96 | + Integrable (fun τ : ℝ => (Real.exp (x * τ) : ℂ) * ψ τ) := by | |
| 97 | + have hab : a ≤ b := le_trans hx.1.le hx.2.le | |
| 98 | + have hl := ((hardy_weighted_line_memLp (x := a) ⟨le_rfl, hab⟩ ψ).restrict (Iic 0)).integrable_mul | |
| 99 | + (hardy_exp_memLp_Iic (show 0 < x - a by linarith [hx.1])) | |
| 100 | + have hr := ((hardy_weighted_line_memLp (x := b) ⟨hab, le_rfl⟩ ψ).restrict (Ioi 0)).integrable_mul | |
| 101 | + (hardy_exp_memLp_Ioi (show x - b < 0 by linarith [hx.2])) | |
| 102 | + change Integrable (fun τ : ℝ => ((Real.exp (a * τ) : ℂ) * ψ τ) * | |
| 103 | + (Real.exp ((x - a) * τ) : ℂ)) (volume.restrict (Iic 0)) at hl | |
| 104 | + change Integrable (fun τ : ℝ => ((Real.exp (b * τ) : ℂ) * ψ τ) * | |
| 105 | + (Real.exp ((x - b) * τ) : ℂ)) (volume.restrict (Ioi 0)) at hr | |
| 106 | + simp only [hardy_exp_mul_factor] at hl hr | |
| 107 | + have h := IntegrableOn.union hl hr | |
| 108 | + simpa only [Iic_union_Ioi, IntegrableOn, Measure.restrict_univ] using h | |
| 109 | + | |
| 110 | +lemma hardySpace_norm_sq_integral {a b : ℝ} (ψ : HardySpace a b) : | |
| 111 | + ‖ψ‖ ^ 2 = ∫ τ : ℝ, ‖ψ τ‖ ^ 2 * hardyWeight a b τ := by | |
| 112 | + have h : ‖ψ‖ ^ 2 = ∫ τ : ℝ, ‖ψ τ‖ ^ 2 ∂hardyMeasure a b := by | |
| 113 | + rw [← real_inner_self_eq_norm_sq, L2.inner_def] | |
| 114 | + simp only [real_inner_self_eq_norm_sq] | |
| 115 | + rw [h] | |
| 116 | + change (∫ τ : ℝ, ‖ψ τ‖ ^ 2 ∂(volume.withDensity (fun τ => ENNReal.ofReal (hardyWeight a b τ)))) = _ | |
| 117 | + rw [integral_withDensity_eq_integral_toReal_smul | |
| 118 | + (hardyWeight_continuous a b).measurable.ennreal_ofReal | |
| 119 | + (Eventually.of_forall (fun _ => ENNReal.ofReal_lt_top))] | |
| 120 | + simp only [ENNReal.toReal_ofReal (hardyWeight_pos a b _).le, smul_eq_mul, mul_comm] | |
| 121 | + | |
| 122 | +end ConditionalGoldbach | |
+45 −0 ConditionalGoldbach/Proofs/HilbertSchmidtTriangle.lean added View file
| @@ -0,0 +1,45 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.SpectralTraceBounds | |
| 4 | + | |
| 5 | +public section | |
| 6 | + | |
| 7 | +set_option autoImplicit false | |
| 8 | +noncomputable section | |
| 9 | +open scoped BigOperators | |
| 10 | +namespace ConditionalGoldbach | |
| 11 | +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] | |
| 12 | + | |
| 13 | +lemma hilbertSchmidt_sub_bound {T S : H →L[ℂ] H} | |
| 14 | + (hT : IsHilbertSchmidt T) (hS : IsHilbertSchmidt S) : | |
| 15 | + IsHilbertSchmidt (T-S) ∧ hsNorm (T-S)≤2*(hsNorm T+hsNorm S) := by | |
| 16 | + obtain ⟨b,hb⟩ := hT | |
| 17 | + have hT : IsHilbertSchmidt T := ⟨b,hb⟩ | |
| 18 | + obtain ⟨hST,hTS⟩ := proposition_5_3_hs_basis_independent T hT b | |
| 19 | + obtain ⟨hSS,hSSq⟩ := proposition_5_3_hs_basis_independent S hS b | |
| 20 | + have hpoint (j : ℕ) : ‖(T-S) (b j)‖^2≤2*(‖T (b j)‖^2+‖S (b j)‖^2) := by | |
| 21 | + change ‖T (b j)-S (b j)‖^2≤_ | |
| 22 | + have h := norm_sub_le (T (b j)) (S (b j)) | |
| 23 | + nlinarith [norm_nonneg (T (b j)-S (b j)),norm_nonneg (T (b j)),norm_nonneg (S (b j)),sq_nonneg (‖T (b j)‖-‖S (b j)‖)] | |
| 24 | + have hsum : Summable (fun j => ‖(T-S) (b j)‖^2) := | |
| 25 | + ((hST.add hSS).mul_left 2).of_nonneg_of_le (fun _ => sq_nonneg _) hpoint | |
| 26 | + have hsub : IsHilbertSchmidt (T-S) := ⟨b,hsum⟩ | |
| 27 | + refine ⟨hsub,?_⟩ | |
| 28 | + have he := (proposition_5_3_hs_basis_independent (T-S) hsub b).2 | |
| 29 | + have hsq : hsNorm (T-S)^2≤2*(hsNorm T^2+hsNorm S^2) := by | |
| 30 | + rw [he,hTS,hSSq] | |
| 31 | + convert Summable.tsum_le_tsum hpoint hsum ((hST.add hSS).mul_left 2) using 1 | |
| 32 | + rw [tsum_mul_left,hST.tsum_add hSS] | |
| 33 | + have ht := hsNorm_nonneg T | |
| 34 | + have hs := hsNorm_nonneg S | |
| 35 | + have hts := hsNorm_nonneg (T-S) | |
| 36 | + nlinarith [mul_nonneg ht hs] | |
| 37 | + | |
| 38 | +lemma hilbertSchmidt_sub_sub_bound {P D K : H →L[ℂ] H} | |
| 39 | + (hP : IsHilbertSchmidt P) (hD : IsHilbertSchmidt D) (hK : IsHilbertSchmidt K) : | |
| 40 | + IsHilbertSchmidt (P-D-K) ∧ hsNorm (P-D-K)≤4*(hsNorm P+hsNorm D+hsNorm K) := by | |
| 41 | + obtain ⟨hPD,hPDnorm⟩ := hilbertSchmidt_sub_bound hP hD | |
| 42 | + obtain ⟨hR,hRnorm⟩ := hilbertSchmidt_sub_bound hPD hK | |
| 43 | + exact ⟨hR,by linarith [hsNorm_nonneg K]⟩ | |
| 44 | + | |
| 45 | +end ConditionalGoldbach | |
+167 −0 ConditionalGoldbach/Proofs/KernelAlgebra.lean added View file
| @@ -0,0 +1,167 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Asymptotics | |
| 4 | +public import ConditionalGoldbach.Proofs.Characters | |
| 5 | + | |
| 6 | +/-! | |
| 7 | +# Algebraic properties of the character kernel | |
| 8 | + | |
| 9 | +These finite Gram arguments make no assumptions about the zeros of L-functions. | |
| 10 | +-/ | |
| 11 | +public section | |
| 12 | + | |
| 13 | +set_option autoImplicit false | |
| 14 | +noncomputable section | |
| 15 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 16 | +open MeasureTheory Filter Set Complex | |
| 17 | +namespace ConditionalGoldbach | |
| 18 | +attribute [local instance] Classical.propDecidable conductorNeZero | |
| 19 | + | |
| 20 | +lemma characterKernel_gram (N : ℕ) [NeZero N] (s z : ℂ) : | |
| 21 | + characterKernel N s (conj z) = | |
| 22 | + (2 / (N.totient : ℂ)) * ∑ χ ∈ oddCharacters N, | |
| 23 | + logDerivative χ s * conj (logDerivative χ z) := by | |
| 24 | + simp [characterKernel] | |
| 25 | + | |
| 26 | +lemma characterKernel_hermitian (N : ℕ) [NeZero N] : | |
| 27 | + HermitianKernel (fun s z => characterKernel N s (conj z)) := by | |
| 28 | + intro s z | |
| 29 | + simp only [characterKernel_gram, map_mul, map_sum, starRingEnd_self_apply] | |
| 30 | + have htwo : conj (2 : ℂ) = (2 : ℂ) := by | |
| 31 | + exact Complex.conj_ofReal 2 | |
| 32 | + have hscale : conj (2 / (N.totient : ℂ)) = 2 / N.totient := by | |
| 33 | + simp only [map_div₀, htwo, map_natCast] | |
| 34 | + rw [hscale] | |
| 35 | + congr 1 | |
| 36 | + apply Finset.sum_congr rfl | |
| 37 | + intro χ _ | |
| 38 | + ring | |
| 39 | + | |
| 40 | +/-- Every finite complex Gram kernel with nonnegative real scale is positive. -/ | |
| 41 | +lemma finite_gram_positive {ι : Type*} (s : Finset ι) (g : ι → ℂ → ℂ) | |
| 42 | + (c : ℝ) (hc : 0 ≤ c) : | |
| 43 | + PositiveKernel (fun z w => (c : ℂ) * ∑ k ∈ s, g k z * conj (g k w)) := by | |
| 44 | + intro n points coefficients | |
| 45 | + have hsq (k : ι) : | |
| 46 | + (∑ i : Fin n, ∑ j : Fin n, | |
| 47 | + coefficients i * conj (coefficients j) * (g k (points i) * conj (g k (points j)))) = | |
| 48 | + (‖∑ i : Fin n, coefficients i * g k (points i)‖ ^ 2 : ℝ) := by | |
| 49 | + rw [Complex.sq_norm, Complex.normSq_eq_conj_mul_self] | |
| 50 | + simp only [map_sum, map_mul, Finset.sum_mul, Finset.mul_sum] | |
| 51 | + apply Finset.sum_congr rfl | |
| 52 | + intro i _ | |
| 53 | + apply Finset.sum_congr rfl | |
| 54 | + intro j _ | |
| 55 | + ring | |
| 56 | + have heq : | |
| 57 | + (∑ i : Fin n, ∑ j : Fin n, coefficients i * conj (coefficients j) * | |
| 58 | + ((c : ℂ) * ∑ k ∈ s, g k (points i) * conj (g k (points j)))) = | |
| 59 | + (c : ℂ) * ∑ k ∈ s, (‖∑ i : Fin n, coefficients i * g k (points i)‖ ^ 2 : ℝ) := by | |
| 60 | + simp only [Complex.ofReal_sum] | |
| 61 | + simp_rw [← hsq] | |
| 62 | + calc | |
| 63 | + _ = (c : ℂ) * ∑ i : Fin n, ∑ j : Fin n, ∑ k ∈ s, | |
| 64 | + coefficients i * conj (coefficients j) * (g k (points i) * conj (g k (points j))) := by | |
| 65 | + simp only [Finset.mul_sum] | |
| 66 | + apply Finset.sum_congr rfl | |
| 67 | + intro i _ | |
| 68 | + apply Finset.sum_congr rfl | |
| 69 | + intro j _ | |
| 70 | + apply Finset.sum_congr rfl | |
| 71 | + intro k _ | |
| 72 | + ring | |
| 73 | + _ = _ := by | |
| 74 | + congr 1 | |
| 75 | + simp_rw [Finset.sum_comm (s := Finset.univ) (t := s)] | |
| 76 | + rw [heq] | |
| 77 | + simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero, | |
| 78 | + ] | |
| 79 | + apply mul_nonneg hc | |
| 80 | + exact Finset.sum_nonneg fun _ _ => sq_nonneg _ | |
| 81 | + | |
| 82 | +lemma characterKernel_positive (N : ℕ) [NeZero N] : | |
| 83 | + PositiveKernel (fun s z => characterKernel N s (conj z)) := by | |
| 84 | + have h := finite_gram_positive (oddCharacters N) (fun χ => logDerivative χ) | |
| 85 | + (2 / (N.totient : ℝ)) (by positivity) | |
| 86 | + simpa only [characterKernel_gram, Complex.ofReal_div, Complex.ofReal_ofNat, | |
| 87 | + Complex.ofReal_natCast] using h | |
| 88 | + | |
| 89 | +/-- The character-kernel sections lie in the finite span of logarithmic derivatives. -/ | |
| 90 | +lemma characterKernel_sections_le (N : ℕ) [NeZero N] : | |
| 91 | + Submodule.span ℂ (Set.range (fun z : ℂ => fun s : ℂ => characterKernel N s (conj z))) ≤ | |
| 92 | + Submodule.span ℂ (Set.range (fun χ : Character N => logDerivative χ)) := by | |
| 93 | + apply Submodule.span_le.mpr | |
| 94 | + rintro f ⟨z, rfl⟩ | |
| 95 | + have heq : (fun s : ℂ => characterKernel N s (conj z)) = | |
| 96 | + ∑ χ ∈ oddCharacters N, | |
| 97 | + ((2 / (N.totient : ℂ)) * conj (logDerivative χ z)) • logDerivative χ := by | |
| 98 | + ext s | |
| 99 | + simp only [characterKernel_gram, Finset.sum_apply, Pi.smul_apply, smul_eq_mul, | |
| 100 | + Finset.mul_sum] | |
| 101 | + apply Finset.sum_congr rfl | |
| 102 | + intro χ _ | |
| 103 | + ring | |
| 104 | + change (fun s : ℂ => characterKernel N s (conj z)) ∈ _ | |
| 105 | + rw [heq] | |
| 106 | + apply Submodule.sum_mem | |
| 107 | + intro χ _ | |
| 108 | + apply Submodule.smul_mem | |
| 109 | + exact Submodule.subset_span ⟨χ, rfl⟩ | |
| 110 | + | |
| 111 | +theorem proposition_3_2_finite_rank (N : ℕ) [NeZero N] | |
| 112 | + (_hN : Even N) (_hN4 : 4 ≤ N) : | |
| 113 | + FiniteDimensional ℂ (Submodule.span ℂ (Set.range | |
| 114 | + (fun z : ℂ => fun s : ℂ => characterKernel N s (conj z)))) := by | |
| 115 | + let : FiniteDimensional ℂ (Submodule.span ℂ | |
| 116 | + (Set.range (fun χ : Character N => logDerivative χ))) := | |
| 117 | + FiniteDimensional.span_of_finite ℂ (Set.finite_range _) | |
| 118 | + exact Submodule.finiteDimensional_of_le (characterKernel_sections_le N) | |
| 119 | + | |
| 120 | +/-- Evaluating the odd projector at `(1,1)` counts exactly half the characters. -/ | |
| 121 | +lemma oddCharacters_card (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) : | |
| 122 | + (oddCharacters N).card = N.totient / 2 := by | |
| 123 | + have hneg : (1 : ZMod N) ≠ -1 := by | |
| 124 | + intro h | |
| 125 | + have hh := ZMod.neg_one_eq_one_iff.mp h.symm | |
| 126 | + omega | |
| 127 | + have hp := lemma_3_1_odd_orthogonality N hN hN4 1 1 | |
| 128 | + simp [hneg] at hp | |
| 129 | + have htot : (N.totient : ℂ) ≠ 0 := by exact_mod_cast (NeZero.ne N.totient) | |
| 130 | + field_simp at hp | |
| 131 | + have hcard : 2 * (oddCharacters N).card = N.totient := by exact_mod_cast hp | |
| 132 | + omega | |
| 133 | + | |
| 134 | +/-- The numerical rank bound is controlled by odd characters, not all characters. -/ | |
| 135 | +lemma characterKernel_rank_le (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) : | |
| 136 | + Module.finrank ℂ (Submodule.span ℂ (Set.range | |
| 137 | + (fun z : ℂ => fun s : ℂ => characterKernel N s (conj z)))) ≤ N.totient / 2 := by | |
| 138 | + classical | |
| 139 | + let S : Finset (ℂ → ℂ) := (oddCharacters N).image (fun χ => logDerivative χ) | |
| 140 | + have hle : Submodule.span ℂ (Set.range | |
| 141 | + (fun z : ℂ => fun s : ℂ => characterKernel N s (conj z))) ≤ | |
| 142 | + Submodule.span ℂ (S : Set (ℂ → ℂ)) := by | |
| 143 | + apply Submodule.span_le.mpr | |
| 144 | + rintro f ⟨z, rfl⟩ | |
| 145 | + have heq : (fun s : ℂ => characterKernel N s (conj z)) = | |
| 146 | + ∑ χ ∈ oddCharacters N, | |
| 147 | + ((2 / (N.totient : ℂ)) * conj (logDerivative χ z)) • logDerivative χ := by | |
| 148 | + ext s | |
| 149 | + simp only [characterKernel_gram, Finset.sum_apply, Pi.smul_apply, smul_eq_mul, | |
| 150 | + Finset.mul_sum] | |
| 151 | + apply Finset.sum_congr rfl | |
| 152 | + intro χ _ | |
| 153 | + ring | |
| 154 | + change (fun s : ℂ => characterKernel N s (conj z)) ∈ _ | |
| 155 | + rw [heq] | |
| 156 | + apply Submodule.sum_mem | |
| 157 | + intro χ hχ | |
| 158 | + apply Submodule.smul_mem | |
| 159 | + apply Submodule.subset_span | |
| 160 | + exact Finset.mem_image.mpr ⟨χ, hχ, rfl⟩ | |
| 161 | + calc | |
| 162 | + _ ≤ Module.finrank ℂ (Submodule.span ℂ (S : Set (ℂ → ℂ))) := Submodule.finrank_mono hle | |
| 163 | + _ ≤ S.card := finrank_span_finset_le_card S | |
| 164 | + _ ≤ (oddCharacters N).card := Finset.card_image_le | |
| 165 | + _ = N.totient / 2 := oddCharacters_card N hN hN4 | |
| 166 | + | |
| 167 | +end ConditionalGoldbach | |
+227 −0 ConditionalGoldbach/Proofs/KernelGrowthBounds.lean added View file
| @@ -0,0 +1,227 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Operators | |
| 4 | +public import Mathlib.Analysis.Real.Pi.Bounds | |
| 5 | +public import ConditionalGoldbach.Proofs.GammaQuotientBound | |
| 6 | +public import ConditionalGoldbach.Proofs.ZetaGrowth | |
| 7 | + | |
| 8 | +/-! Quantitative component bounds for the Hardy kernel on a fixed closed strip. -/ | |
| 9 | +public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +open scoped Topology ComplexConjugate BigOperators | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | + | |
| 17 | +lemma logarithm_square_le_quarter_power {n : ℝ} (hn : 1 ≤ n) (t : ℝ) : | |
| 18 | + Real.log (n * (|t| + 2)) ^ 2 ≤ | |
| 19 | + (64 * (2 * n) ^ (1 / 4 : ℝ)) * (1 + |t|) ^ (1 / 4 : ℝ) := by | |
| 20 | + have hn0 : 0 < n := lt_of_lt_of_le zero_lt_one hn | |
| 21 | + have hx : 1 ≤ n * (|t| + 2) := by nlinarith [abs_nonneg t] | |
| 22 | + have hlog := Real.log_le_rpow_div (by positivity : 0 ≤ n * (|t| + 2)) | |
| 23 | + (by norm_num : (0 : ℝ) < 1 / 8) | |
| 24 | + have hs := (sq_le_sq₀ (Real.log_nonneg hx) (by positivity)).mpr hlog | |
| 25 | + have hp : (n * (|t| + 2)) ^ (1 / 4 : ℝ) ≤ | |
| 26 | + ((2 * n) * (1 + |t|)) ^ (1 / 4 : ℝ) := | |
| 27 | + Real.rpow_le_rpow (by positivity) (by nlinarith [abs_nonneg t]) (by norm_num) | |
| 28 | + have he : ((n * (|t| + 2)) ^ (1 / 8 : ℝ) / (1 / 8)) ^ 2 = | |
| 29 | + 64 * (n * (|t| + 2)) ^ (1 / 4 : ℝ) := by | |
| 30 | + rw [div_pow, ← Real.rpow_natCast, ← Real.rpow_mul (by positivity)] | |
| 31 | + norm_num | |
| 32 | + ring | |
| 33 | + rw [he] at hs | |
| 34 | + calc | |
| 35 | + _ ≤ 64 * (n * (|t| + 2)) ^ (1 / 4 : ℝ) := hs | |
| 36 | + _ ≤ 64 * (((2 * n) * (1 + |t|)) ^ (1 / 4 : ℝ)) := mul_le_mul_of_nonneg_left hp (by norm_num) | |
| 37 | + _ = _ := by rw [Real.mul_rpow (by positivity) (by positivity)]; ring | |
| 38 | + | |
| 39 | +lemma diagonalSeries_uniform_bound (N : ℕ) {a : ℝ} (ha : 0 < a) : | |
| 40 | + ∃ D : ℝ, 0 ≤ D ∧ ∀ w : ℂ, a ≤ w.re → ‖diagonalSeries N w‖ ≤ D := by | |
| 41 | + let d : ℕ → ℝ := fun n => if 0 < n ∧ Nat.Coprime n N then | |
| 42 | + ‖(mangoldt n : ℂ)^2 / (n : ℂ)^(1+(a : ℂ))‖ else 0 | |
| 43 | + have hd : Summable d := diagonalSeries_summable N (by simpa using ha) | |
| 44 | + refine ⟨∑' n, d n, tsum_nonneg (fun n => by dsimp [d]; split_ifs <;> positivity), ?_⟩ | |
| 45 | + intro w hw | |
| 46 | + have hw0 : 0 < w.re := ha.trans_le hw | |
| 47 | + have hs : Summable (fun n : ℕ => if 0 < n ∧ Nat.Coprime n N then | |
| 48 | + (mangoldt n : ℂ)^2 / (n : ℂ)^(1+w) else 0) := by | |
| 49 | + apply summable_norm_iff.mp | |
| 50 | + simpa only [apply_ite norm, norm_zero] using diagonalSeries_summable N hw0 | |
| 51 | + apply (norm_tsum_le_tsum_norm hs.norm).trans | |
| 52 | + apply Summable.tsum_le_tsum _ hs.norm hd | |
| 53 | + intro n | |
| 54 | + by_cases hn : 0 < n ∧ Nat.Coprime n N | |
| 55 | + · simp only [d, ite_eq_left hn, norm_div] | |
| 56 | + apply div_le_div_of_nonneg_left (norm_nonneg _) | |
| 57 | + (Complex.norm_natCast_cpow_pos_of_pos hn.1 _) | |
| 58 | + rw [Complex.norm_natCast_cpow_of_pos hn.1, Complex.norm_natCast_cpow_of_pos hn.1] | |
| 59 | + apply Real.rpow_le_rpow_of_exponent_le | |
| 60 | + · exact_mod_cast hn.1 | |
| 61 | + · simp only [Complex.add_re, Complex.one_re, Complex.ofReal_re] | |
| 62 | + linarith | |
| 63 | + · simp [hn, d] | |
| 64 | + | |
| 65 | +lemma characterKernel_power_bound {a b : ℝ} (N : ℕ) [NeZero N] (L : ℝ) (hL : 0 ≤ L) | |
| 66 | + (hlog : ∀ χ ∈ oddCharacters N, ∀ s : ℂ, s.re ∈ Icc a b → | |
| 67 | + ‖logDerivative χ s‖ ≤ L * (1 + |s.im|) ^ (1 / 4 : ℝ)) : | |
| 68 | + ∃ C : ℝ, 0 ≤ C ∧ ∀ s z : ℂ, s.re ∈ Icc a b → z.re ∈ Icc a b → | |
| 69 | + ‖characterKernel N s (conj z)‖ ≤ | |
| 70 | + C * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ) := by | |
| 71 | + let A : ℝ := ‖(2 : ℂ) / N.totient‖ | |
| 72 | + refine ⟨A * (oddCharacters N).card * L ^ 2, by dsimp [A]; positivity, ?_⟩ | |
| 73 | + intro s z hs hz | |
| 74 | + simp only [characterKernel, Complex.conj_conj, norm_mul] | |
| 75 | + calc | |
| 76 | + A * ‖∑ χ ∈ oddCharacters N, logDerivative χ s * conj (logDerivative χ z)‖ ≤ | |
| 77 | + A * ∑ χ ∈ oddCharacters N, ‖logDerivative χ s * conj (logDerivative χ z)‖ := | |
| 78 | + mul_le_mul_of_nonneg_left (norm_sum_le _ _) (norm_nonneg _) | |
| 79 | + _ ≤ A * ∑ _χ ∈ oddCharacters N, | |
| 80 | + (L * (1 + |s.im|) ^ (1 / 4 : ℝ)) * (L * (1 + |z.im|) ^ (1 / 4 : ℝ)) := by | |
| 81 | + apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) | |
| 82 | + apply Finset.sum_le_sum | |
| 83 | + intro χ hχ | |
| 84 | + rw [norm_mul, Complex.norm_conj] | |
| 85 | + exact mul_le_mul (hlog χ hχ s hs) (hlog χ hχ z hz) (norm_nonneg _) (by positivity) | |
| 86 | + _ = _ := by rw [Finset.sum_const]; simp only [nsmul_eq_mul]; ring | |
| 87 | + | |
| 88 | +lemma one_add_line_norm_lower {x : ℝ} (hx : 0 ≤ x) (t : ℝ) : | |
| 89 | + (1 + |t|) / 2 ≤ ‖1 + line x t‖ := by | |
| 90 | + have hr := Complex.abs_re_le_norm (1 + line x t) | |
| 91 | + have hi := Complex.abs_im_le_norm (1 + line x t) | |
| 92 | + simp only [line, Complex.add_re, Complex.one_re, Complex.ofReal_re, | |
| 93 | + Complex.mul_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, | |
| 94 | + sub_zero, add_zero, Complex.add_im, Complex.one_im, | |
| 95 | + Complex.mul_im, mul_one, zero_add] at hr hi | |
| 96 | + rw [abs_of_nonneg (by linarith : 0 ≤ 1 + x)] at hr | |
| 97 | + unfold line | |
| 98 | + linarith | |
| 99 | + | |
| 100 | +lemma weightedKernel_power_bound_of_residual {a b : ℝ} (ha : 0 ≤ a) | |
| 101 | + (N : ℕ) [NeZero N] (C : ℝ) (hC : 0 ≤ C) | |
| 102 | + (hR : ∀ s z : ℂ, s.re ∈ Icc a b → z.re ∈ Icc a b → | |
| 103 | + ‖residual N s (conj z)‖ ≤ | |
| 104 | + C * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ)) : | |
| 105 | + ∀ x ∈ Icc a b, ∀ y ∈ Icc a b, ∀ v t : ℝ, | |
| 106 | + ‖weightedKernel N (line x v) (line y t)‖ ^ 2 ≤ | |
| 107 | + (16 * C ^ 2) * (1 + |v|) ^ (- (3 / 2 : ℝ)) * | |
| 108 | + (1 + |t|) ^ (- (3 / 2 : ℝ)) := by | |
| 109 | + intro x hx y hy v t | |
| 110 | + have hv0 : 0 < 1 + |v| := by positivity | |
| 111 | + have ht0 : 0 < 1 + |t| := by positivity | |
| 112 | + have hvl := one_add_line_norm_lower (ha.trans hx.1) v | |
| 113 | + have htl := one_add_line_norm_lower (ha.trans hy.1) t | |
| 114 | + have hR' : ‖residual N (line x v) (conj (line y t))‖ ≤ | |
| 115 | + C * (1 + |v|) ^ (1 / 4 : ℝ) * (1 + |t|) ^ (1 / 4 : ℝ) := by | |
| 116 | + simpa [line] using hR (line x v) (line y t) (by simpa [line] using hx) (by simpa [line] using hy) | |
| 117 | + have hnorm : ‖weightedKernel N (line x v) (line y t)‖ ≤ | |
| 118 | + (4 * C) * (1 + |v|) ^ (- (3 / 4 : ℝ)) * (1 + |t|) ^ (- (3 / 4 : ℝ)) := by | |
| 119 | + rw [weightedKernel, norm_div, norm_mul] | |
| 120 | + have hc : ‖1 + conj (line y t)‖ = ‖1 + line y t‖ := by | |
| 121 | + simpa only [map_add, map_one] using Complex.norm_conj (1 + line y t) | |
| 122 | + rw [hc] | |
| 123 | + calc | |
| 124 | + _ ≤ (C * (1 + |v|) ^ (1 / 4 : ℝ) * (1 + |t|) ^ (1 / 4 : ℝ)) / | |
| 125 | + (((1 + |v|) / 2) * ((1 + |t|) / 2)) := | |
| 126 | + div_le_div₀ (by positivity) hR' (by positivity) | |
| 127 | + (mul_le_mul hvl htl (by positivity) (norm_nonneg _)) | |
| 128 | + _ = _ := by | |
| 129 | + have hv : (1 + |v|) ^ (- (3 / 4 : ℝ)) = | |
| 130 | + (1 + |v|) ^ (1 / 4 : ℝ) / (1 + |v|) := by | |
| 131 | + rw [show - (3 / 4 : ℝ) = 1 / 4 - 1 by norm_num, Real.rpow_sub hv0, Real.rpow_one] | |
| 132 | + have ht : (1 + |t|) ^ (- (3 / 4 : ℝ)) = | |
| 133 | + (1 + |t|) ^ (1 / 4 : ℝ) / (1 + |t|) := by | |
| 134 | + rw [show - (3 / 4 : ℝ) = 1 / 4 - 1 by norm_num, Real.rpow_sub ht0, Real.rpow_one] | |
| 135 | + rw [hv, ht] | |
| 136 | + field_simp; ring | |
| 137 | + have hsq := (sq_le_sq₀ (norm_nonneg _) (by positivity)).mpr hnorm | |
| 138 | + have hp (u : ℝ) (hu : 0 < 1 + |u|) : | |
| 139 | + ((1 + |u|) ^ (- (3 / 4 : ℝ))) ^ 2 = (1 + |u|) ^ (- (3 / 2 : ℝ)) := by | |
| 140 | + rw [← Real.rpow_natCast, ← Real.rpow_mul hu.le] | |
| 141 | + norm_num | |
| 142 | + simpa only [mul_pow, hp v hv0, hp t ht0, show (4 : ℝ)^2 = 16 by norm_num] using hsq | |
| 143 | + | |
| 144 | +lemma continuedModel_power_bound {a : ℝ} (ha : 0 < a) (_hab : a < beta) | |
| 145 | + (N : ℕ) (hN : 4 ≤ N) (Z : ℝ) (hZ : 0 ≤ Z) | |
| 146 | + (hζ : ∀ w : ℂ, w.re ∈ Icc (3 / 4) (1 - 2 * a) → | |
| 147 | + ‖riemannZeta w‖ ≤ Z * (1 + |w.im|) ^ (1 / 4 : ℝ)) : | |
| 148 | + ∃ C : ℝ, 0 ≤ C ∧ ∀ s z : ℂ, s.re ∈ Icc a beta → z.re ∈ Icc a beta → | |
| 149 | + ‖continuedModel N s (conj z)‖ ≤ | |
| 150 | + C * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ) := by | |
| 151 | + obtain ⟨G, hG, hGamma⟩ := gammaQuotient_uniform_bound ha (by norm_num [beta] : beta < 3 / 2) | |
| 152 | + let E : ℝ := Real.exp (∑' p : ℕ, 3 * ‖LSeries.term 1 (1 + ((2 * a : ℝ) : ℂ)) p‖) | |
| 153 | + have hE : 0 ≤ E := (Real.exp_pos _).le | |
| 154 | + have hS : 0 ≤ singularSeries N := (singularSeries_pos N).le | |
| 155 | + refine ⟨singularSeries N * E * Z * G ^ 2, by positivity, ?_⟩ | |
| 156 | + intro s z hs hz | |
| 157 | + have hw : 2 * a ≤ (s + conj z).re := by simp; linarith [hs.1, hz.1] | |
| 158 | + have hEuler : ‖densityEulerProduct N (s + conj z)‖ ≤ E := | |
| 159 | + densityEulerProduct_uniform_bound (by positivity) N hw | |
| 160 | + have hpow : ‖((Real.pi : ℂ) / N) ^ (s + conj z)‖ ≤ 1 := by | |
| 161 | + have hn : (0 : ℝ) < N := by exact_mod_cast (by omega : 0 < N) | |
| 162 | + rw [show (Real.pi : ℂ) / N = ((Real.pi / (N : ℝ) : ℝ) : ℂ) by push_cast; rfl, | |
| 163 | + Complex.norm_cpow_eq_rpow_re_of_pos (div_pos Real.pi_pos hn)] | |
| 164 | + apply Real.rpow_le_one (by positivity) | |
| 165 | + · apply (div_le_one hn).mpr | |
| 166 | + have hn4 : (4 : ℝ) ≤ N := by exact_mod_cast hN | |
| 167 | + linarith [Real.pi_lt_four] | |
| 168 | + · exact (by positivity : (0 : ℝ) ≤ 2 * a).trans hw | |
| 169 | + have hzet : ‖riemannZeta (1 - s - conj z)‖ ≤ | |
| 170 | + Z * ((1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ)) := by | |
| 171 | + have hw' : (1 - s - conj z).re ∈ Icc (3 / 4) (1 - 2 * a) := by | |
| 172 | + simp only [Complex.sub_re, Complex.one_re, Complex.conj_re] | |
| 173 | + constructor <;> dsimp [beta] at hs hz <;> linarith [hs.1, hs.2, hz.1, hz.2] | |
| 174 | + apply (hζ _ hw').trans | |
| 175 | + apply mul_le_mul_of_nonneg_left _ hZ | |
| 176 | + rw [← Real.mul_rpow (by positivity) (by positivity)] | |
| 177 | + apply Real.rpow_le_rpow (by positivity) _ (by norm_num) | |
| 178 | + have he : (1 - s - conj z).im = -(s.im - z.im) := by simp; ring | |
| 179 | + rw [he, abs_neg] | |
| 180 | + have hh := abs_sub s.im z.im | |
| 181 | + nlinarith [mul_nonneg (abs_nonneg s.im) (abs_nonneg z.im)] | |
| 182 | + have hGammaS := hGamma s hs | |
| 183 | + have hGammaZ := hGamma (conj z) (by simpa using hz) | |
| 184 | + simp only [continuedModel, norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg hS] | |
| 185 | + calc | |
| 186 | + singularSeries N * ‖((Real.pi : ℂ) / N) ^ (s + conj z)‖ * | |
| 187 | + ‖densityEulerProduct N (s + conj z)‖ * ‖riemannZeta (1 - s - conj z)‖ * | |
| 188 | + ‖gammaQuotient s‖ * ‖gammaQuotient (conj z)‖ ≤ | |
| 189 | + singularSeries N * 1 * E * | |
| 190 | + (Z * ((1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ))) * G * G := by | |
| 191 | + gcongr | |
| 192 | + _ = _ := by ring | |
| 193 | + | |
| 194 | +lemma residual_power_bound_of_components {a b : ℝ} (ha : 0 < a) | |
| 195 | + (N : ℕ) [NeZero N] (P Q : ℝ) (hP : 0 ≤ P) (hQ : 0 ≤ Q) | |
| 196 | + (hchar : ∀ s z : ℂ, s.re ∈ Icc a b → z.re ∈ Icc a b → | |
| 197 | + ‖characterKernel N s (conj z)‖ ≤ | |
| 198 | + P * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ)) | |
| 199 | + (hmodel : ∀ s z : ℂ, s.re ∈ Icc a b → z.re ∈ Icc a b → | |
| 200 | + ‖continuedModel N s (conj z)‖ ≤ | |
| 201 | + Q * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ)) : | |
| 202 | + ∃ C : ℝ, 0 ≤ C ∧ ∀ s z : ℂ, s.re ∈ Icc a b → z.re ∈ Icc a b → | |
| 203 | + ‖residual N s (conj z)‖ ≤ | |
| 204 | + C * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ) := by | |
| 205 | + obtain ⟨D, hD, hdiag⟩ := diagonalSeries_uniform_bound N (by positivity : 0 < 2 * a) | |
| 206 | + refine ⟨P + D + Q, by positivity, ?_⟩ | |
| 207 | + intro s z hs hz | |
| 208 | + have hS : 1 ≤ (1 + |s.im|) ^ (1 / 4 : ℝ) := Real.one_le_rpow (by linarith [abs_nonneg s.im]) (by norm_num) | |
| 209 | + have hT : 1 ≤ (1 + |z.im|) ^ (1 / 4 : ℝ) := Real.one_le_rpow (by linarith [abs_nonneg z.im]) (by norm_num) | |
| 210 | + have hd : ‖diagonalSeries N (s + conj z)‖ ≤ | |
| 211 | + D * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ) := by | |
| 212 | + apply (hdiag _ (by simp; linarith [hs.1, hz.1])).trans | |
| 213 | + calc | |
| 214 | + D = D * 1 * 1 := by ring | |
| 215 | + _ ≤ _ := by gcongr | |
| 216 | + calc | |
| 217 | + _ ≤ ‖characterKernel N s (conj z)‖ + ‖diagonalSeries N (s + conj z)‖ + | |
| 218 | + ‖continuedModel N s (conj z)‖ := by | |
| 219 | + unfold residual | |
| 220 | + exact (norm_sub_le _ _).trans (add_le_add (norm_sub_le _ _) le_rfl) | |
| 221 | + _ ≤ P * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ) + | |
| 222 | + D * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ) + | |
| 223 | + Q * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ) := | |
| 224 | + add_le_add (add_le_add (hchar s z hs hz) hd) (hmodel s z hs hz) | |
| 225 | + _ = _ := by ring | |
| 226 | + | |
| 227 | +end ConditionalGoldbach | |
+159 −0 ConditionalGoldbach/Proofs/KernelRegularity.lean added View file
| @@ -0,0 +1,159 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Operators | |
| 4 | +public import ConditionalGoldbach.Definitions.Spectral | |
| 5 | +public import ConditionalGoldbach.Proofs.ResidualAnalytic | |
| 6 | +public import ConditionalGoldbach.Proofs.Elementary | |
| 7 | + | |
| 8 | +/-! The complete strip geometry and the holomorphic/antiholomorphic kernel interface. -/ | |
| 9 | +public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 14 | +open MeasureTheory Filter Set Complex | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | +attribute [local instance] Classical.propDecidable conductorNeZero | |
| 17 | + | |
| 18 | +lemma analyticDomain_isOpen : IsOpen analyticDomain := by | |
| 19 | + unfold analyticDomain | |
| 20 | + exact (isOpen_lt continuous_const (Complex.continuous_re.comp continuous_fst)).inter | |
| 21 | + ((isOpen_lt (Complex.continuous_re.comp continuous_fst) continuous_const).inter | |
| 22 | + ((isOpen_lt continuous_const (Complex.continuous_re.comp continuous_snd)).inter | |
| 23 | + (isOpen_lt (Complex.continuous_re.comp continuous_snd) continuous_const))) | |
| 24 | + | |
| 25 | +lemma weightedKernel_hermitian (N : ℕ) [NeZero N] : HermitianKernel (weightedKernel N) := by | |
| 26 | + intro s z | |
| 27 | + unfold weightedKernel | |
| 28 | + rw [map_div₀, map_mul, map_add, map_add, map_one, residual_conj, Complex.conj_conj, | |
| 29 | + residual_symmetric] | |
| 30 | + congr 1 | |
| 31 | + ring | |
| 32 | + | |
| 33 | +lemma weightedKernel_conj_differentiableOn (N : ℕ) [NeZero N] (hN : 0 < N) (hGRH : GRH N) : | |
| 34 | + DifferentiableOn ℂ (fun p : ℂ × ℂ => weightedKernel N p.1 (conj p.2)) analyticDomain := by | |
| 35 | + have hr := residual_differentiableOn N hN hGRH | |
| 36 | + intro p hp | |
| 37 | + have hs : (1 : ℂ)+p.1 ≠ 0 := by | |
| 38 | + intro he | |
| 39 | + have he' := congrArg Complex.re he | |
| 40 | + simp only [add_re, one_re, zero_re] at he' | |
| 41 | + linarith [hp.1] | |
| 42 | + have hz : (1 : ℂ)+p.2 ≠ 0 := by | |
| 43 | + intro he | |
| 44 | + have he' := congrArg Complex.re he | |
| 45 | + simp only [add_re, one_re, zero_re] at he' | |
| 46 | + linarith [hp.2.2.1] | |
| 47 | + simp only [weightedKernel, Complex.conj_conj] | |
| 48 | + have hd : DifferentiableWithinAt ℂ (fun q : ℂ × ℂ => (1+q.1)*(1+q.2)) analyticDomain p := by fun_prop | |
| 49 | + simpa only [div_eq_mul_inv, Pi.mul_apply, Pi.inv_apply] using! (hr p hp).mul (hd.inv (mul_ne_zero hs hz)) | |
| 50 | + | |
| 51 | +lemma hasDerivAt_real_affine_comp {f : ℂ → ℂ} {s : ℂ} | |
| 52 | + (hf : DifferentiableAt ℂ f s) (v : ℂ) : | |
| 53 | + HasDerivAt (fun x : ℝ => f (s+x*v)) (deriv f s*v) 0 := by | |
| 54 | + have hf' : HasDerivAt f (deriv f s) (s+(0 : ℂ)*v) := by simpa using hf.hasDerivAt | |
| 55 | + have h := hf'.comp 0 (((hasDerivAt_id (0 : ℂ)).mul_const v).const_add s) | |
| 56 | + simpa using h.comp_ofReal | |
| 57 | + | |
| 58 | +lemma wirtingerBar_eq_zero_of_differentiableAt {f : ℂ → ℂ} {s : ℂ} | |
| 59 | + (hf : DifferentiableAt ℂ f s) : wirtingerBar f s = 0 := by | |
| 60 | + have hx := (hasDerivAt_real_affine_comp hf 1).deriv | |
| 61 | + simp only [mul_one] at hx | |
| 62 | + have hy := (hasDerivAt_real_affine_comp hf I).deriv | |
| 63 | + rw [wirtingerBar, hx, hy] | |
| 64 | + have hI := Complex.I_sq | |
| 65 | + linear_combination (deriv f s/2)*hI | |
| 66 | + | |
| 67 | +lemma wirtinger_comp_conj_eq_zero {f : ℂ → ℂ} {s : ℂ} | |
| 68 | + (hf : DifferentiableAt ℂ f (conj s)) : wirtinger (fun z => f (conj z)) s = 0 := by | |
| 69 | + have hx := (hasDerivAt_real_affine_comp hf 1).deriv | |
| 70 | + simp only [mul_one] at hx | |
| 71 | + have hy := (hasDerivAt_real_affine_comp hf (-I)).deriv | |
| 72 | + simp only [wirtinger, map_add, map_mul, Complex.conj_ofReal, Complex.conj_I, hx, hy] | |
| 73 | + have hI := Complex.I_sq | |
| 74 | + linear_combination (deriv f (conj s)/2)*hI | |
| 75 | + | |
| 76 | +lemma residual_wirtinger (N : ℕ) [NeZero N] (hN : 0 < N) (hGRH : GRH N) | |
| 77 | + (s z : ℂ) (hp : (s,conj z) ∈ analyticDomain) : | |
| 78 | + wirtingerBar (fun w => residual N w (conj z)) s = 0 ∧ | |
| 79 | + wirtinger (fun w => residual N s (conj w)) z = 0 := by | |
| 80 | + have hr : DifferentiableAt ℂ (fun p : ℂ × ℂ => residual N p.1 p.2) (s,conj z) := | |
| 81 | + (residual_differentiableOn N hN hGRH).differentiableAt (analyticDomain_isOpen.mem_nhds hp) | |
| 82 | + constructor | |
| 83 | + · exact wirtingerBar_eq_zero_of_differentiableAt | |
| 84 | + (DifferentiableAt.comp (g := fun p : ℂ × ℂ => residual N p.1 p.2) | |
| 85 | + (f := fun w : ℂ => (w,conj z)) s hr (by fun_prop)) | |
| 86 | + · exact wirtinger_comp_conj_eq_zero | |
| 87 | + (DifferentiableAt.comp (g := fun p : ℂ × ℂ => residual N p.1 p.2) | |
| 88 | + (f := fun w : ℂ => (s,w)) (conj z) hr (by fun_prop)) | |
| 89 | + | |
| 90 | +lemma large_alpha_pos {N : ℕ} (hlarge : Real.exp 10 < (N : ℝ)) : 0 < alpha N := | |
| 91 | + one_div_pos.mpr (large_parameters hlarge).2.1 | |
| 92 | + | |
| 93 | +lemma large_closed_strip_subset {N : ℕ} (hlarge : Real.exp 10 < (N : ℝ)) : | |
| 94 | + {p : ℂ × ℂ | alpha N ≤ p.1.re ∧ p.1.re ≤ beta ∧ | |
| 95 | + alpha N ≤ p.2.re ∧ p.2.re ≤ beta} ⊆ analyticDomain := by | |
| 96 | + intro p hp | |
| 97 | + have ha := large_alpha_pos hlarge | |
| 98 | + exact ⟨lt_of_lt_of_le ha hp.1, lt_of_le_of_lt hp.2.1 (by norm_num [beta]), | |
| 99 | + lt_of_lt_of_le ha hp.2.2.1, lt_of_le_of_lt hp.2.2.2 (by norm_num [beta])⟩ | |
| 100 | + | |
| 101 | +theorem proposition_5_1 (N : ℕ) [NeZero N] (_hN : Even N) | |
| 102 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) : | |
| 103 | + HermitianKernel (weightedKernel N) ∧ | |
| 104 | + HermitianKernel (fun s z => residual N s (conj z)) ∧ | |
| 105 | + DifferentiableOn ℂ (fun p : ℂ × ℂ => weightedKernel N p.1 (conj p.2)) analyticDomain ∧ | |
| 106 | + (∃ U : Set (ℂ × ℂ), IsOpen U ∧ | |
| 107 | + {p | alpha N ≤ p.1.re ∧ p.1.re ≤ beta ∧ | |
| 108 | + alpha N ≤ p.2.re ∧ p.2.re ≤ beta} ⊆ U ∧ | |
| 109 | + DifferentiableOn ℂ (fun p : ℂ × ℂ => residual N p.1 p.2) U ∧ | |
| 110 | + DifferentiableOn ℂ (fun p : ℂ × ℂ => weightedKernel N p.1 (conj p.2)) U) ∧ | |
| 111 | + (∀ s z : ℂ, (s, conj z) ∈ analyticDomain → | |
| 112 | + wirtingerBar (fun w => residual N w (conj z)) s = 0 ∧ | |
| 113 | + wirtinger (fun w => residual N s (conj w)) z = 0) ∧ | |
| 114 | + 1 / 90 < sigmaStar - alpha N ∧ beta - sigmaStar = 1 / 72 := by | |
| 115 | + have hpos : 0 < N := by have := (large_parameters hlarge).1; omega | |
| 116 | + have hd := weightedKernel_conj_differentiableOn N hpos hGRH | |
| 117 | + refine ⟨weightedKernel_hermitian N, residual_hermitian N, hd, | |
| 118 | + ⟨analyticDomain, analyticDomain_isOpen, large_closed_strip_subset hlarge, | |
| 119 | + residual_differentiableOn N hpos hGRH, hd⟩, | |
| 120 | + residual_wirtinger N hpos hGRH, ?_, by norm_num [beta, sigmaStar]⟩ | |
| 121 | + have hlog : (10 : ℝ) < Real.log N := by | |
| 122 | + simpa using Real.log_lt_log (Real.exp_pos 10) hlarge | |
| 123 | + have ha : alpha N < 1/10 := one_div_lt_one_div_of_lt (by norm_num) hlog | |
| 124 | + dsimp [sigmaStar] | |
| 125 | + linarith | |
| 126 | + | |
| 127 | +lemma weightedKernel_column_differentiableAt (N : ℕ) [NeZero N] (hN : 0 < N) (hGRH : GRH N) | |
| 128 | + (s z : ℂ) (hsz : (s,conj z) ∈ analyticDomain) : | |
| 129 | + DifferentiableAt ℂ (fun w => weightedKernel N w z) s := by | |
| 130 | + have hj : DifferentiableAt ℂ (fun p : ℂ × ℂ => weightedKernel N p.1 (conj p.2)) (s,conj z) := | |
| 131 | + (weightedKernel_conj_differentiableOn N hN hGRH).differentiableAt | |
| 132 | + (analyticDomain_isOpen.mem_nhds hsz) | |
| 133 | + simpa only [Function.comp_def, Complex.conj_conj] using | |
| 134 | + (DifferentiableAt.comp (g := fun p : ℂ × ℂ => weightedKernel N p.1 (conj p.2)) | |
| 135 | + (f := fun w : ℂ => (w,conj z)) s hj (by fun_prop)) | |
| 136 | + | |
| 137 | +lemma weightedKernel_closed_column_regular (N : ℕ) [NeZero N] | |
| 138 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (z : ℂ) | |
| 139 | + (hz : alpha N ≤ z.re ∧ z.re ≤ beta) : | |
| 140 | + DifferentiableOn ℂ (fun s => weightedKernel N s z) (strip (alpha N) beta) ∧ | |
| 141 | + ContinuousOn (fun s => weightedKernel N s z) {s | alpha N ≤ s.re ∧ s.re ≤ beta} := by | |
| 142 | + have hpos : 0 < N := by have := (large_parameters hlarge).1; omega | |
| 143 | + have hd (s : ℂ) (hs : alpha N ≤ s.re ∧ s.re ≤ beta) : | |
| 144 | + DifferentiableAt ℂ (fun w => weightedKernel N w z) s := | |
| 145 | + weightedKernel_column_differentiableAt N hpos hGRH s z | |
| 146 | + (large_closed_strip_subset hlarge ⟨hs.1, hs.2, hz.1, hz.2⟩) | |
| 147 | + refine ⟨fun s hs => (hd s ⟨hs.1.le, hs.2.le⟩).differentiableWithinAt, | |
| 148 | + fun s hs => (hd s hs).continuousAt.continuousWithinAt⟩ | |
| 149 | + | |
| 150 | +theorem proposition_5_1_fueter_equation (N : ℕ) [NeZero N] (_hN : Even N) | |
| 151 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (s z : ℂ) | |
| 152 | + (hsz : (s, conj z) ∈ analyticDomain) : | |
| 153 | + fueterOperator (fun u v => residual N u (conj v)) s z = 0 := by | |
| 154 | + have hpos : 0 < N := by have := (large_parameters hlarge).1; omega | |
| 155 | + have h := residual_wirtinger N hpos hGRH s z hsz | |
| 156 | + simp [fueterOperator, h.1, h.2, complexQuaternion] | |
| 157 | + rfl | |
| 158 | + | |
| 159 | +end ConditionalGoldbach | |
+142 −0 ConditionalGoldbach/Proofs/LFunctionDomain.lean added View file
| @@ -0,0 +1,142 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Characters | |
| 4 | +public import Mathlib.Analysis.Calculus.Deriv.Star | |
| 5 | +public import Mathlib.NumberTheory.LSeries.Nonvanishing | |
| 6 | +import Mathlib.Tactic.NormNum.RealSqrt | |
| 7 | + | |
| 8 | +/-! | |
| 9 | +# L-function nonvanishing on the GRH half-plane | |
| 10 | + | |
| 11 | +GRH is applied only to the primitive character at its conductor, whose divisibility | |
| 12 | +into the original modulus is explicit. Mathlib supplies nonvanishing on Re u ≥ 1. | |
| 13 | +The finite Euler product then transfers nonvanishing to an arbitrary nonprincipal | |
| 14 | +character at the original modulus. In particular, all odd characters are covered, | |
| 15 | +including imprimitive ones. | |
| 16 | + | |
| 17 | +This module also proves analyticity of the logarithmic derivative and the joint | |
| 18 | +holomorphy clause of Proposition 3.2 under GRH. It does not claim the remaining | |
| 19 | +Dirichlet-series or joint meromorphic continuation clauses of that proposition. | |
| 20 | +-/ | |
| 21 | + | |
| 22 | +public section | |
| 23 | + | |
| 24 | +set_option autoImplicit false | |
| 25 | +noncomputable section | |
| 26 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 27 | +open MeasureTheory Filter Set Complex | |
| 28 | +namespace ConditionalGoldbach | |
| 29 | +attribute [local instance] Classical.propDecidable conductorNeZero | |
| 30 | + | |
| 31 | +lemma odd_character_ne_one {N : ℕ} [NeZero N] (χ : Character N) | |
| 32 | + (hχ : χ (-1) = -1) : χ ≠ 1 := by | |
| 33 | + intro heq | |
| 34 | + have ht : (1 : ℂ) = -1 := by | |
| 35 | + simpa [heq, MulChar.one_apply isUnit_neg_one] using hχ | |
| 36 | + norm_num at ht | |
| 37 | + | |
| 38 | +/-- Induction from the conductor preserves nonprincipality in the needed direction. -/ | |
| 39 | +lemma primitiveCharacter_ne_one_of_ne_one {N : ℕ} [NeZero N] (χ : Character N) | |
| 40 | + (hχ : χ ≠ 1) : χ.primitiveCharacter ≠ 1 := by | |
| 41 | + intro hprim | |
| 42 | + apply hχ | |
| 43 | + rw [← χ.changeLevel_primitiveCharacter, hprim, DirichletCharacter.changeLevel_one] | |
| 44 | + | |
| 45 | +/-- The GRH hypothesis is used at the primitive level `d`, with `d ∣ N` retained. -/ | |
| 46 | +lemma primitive_LFunction_ne_zero_in_strip_of_GRH {N d : ℕ} [NeZero d] | |
| 47 | + (hGRH : GRH N) (hd : d ∣ N) (χ : Character d) (hχ : χ.IsPrimitive) | |
| 48 | + {u : ℂ} (hu : 1 / 2 < u.re) (hu1 : u.re < 1) : χ.LFunction u ≠ 0 := by | |
| 49 | + intro hzero | |
| 50 | + have hzero_re := hGRH d inferInstance hd χ hχ u (by linarith) hu1 hzero | |
| 51 | + linarith | |
| 52 | + | |
| 53 | +/-- Nonprincipality also covers the point `u = 1` in the closed right half-plane. -/ | |
| 54 | +lemma primitive_LFunction_ne_zero_of_GRH {N d : ℕ} [NeZero d] | |
| 55 | + (hGRH : GRH N) (hd : d ∣ N) (χ : Character d) (hχ : χ.IsPrimitive) | |
| 56 | + (hχ1 : χ ≠ 1) {u : ℂ} (hu : 1 / 2 < u.re) : χ.LFunction u ≠ 0 := by | |
| 57 | + by_cases hu1 : 1 ≤ u.re | |
| 58 | + · exact χ.LFunction_ne_zero_of_one_le_re (Or.inl hχ1) hu1 | |
| 59 | + · exact primitive_LFunction_ne_zero_in_strip_of_GRH hGRH hd χ hχ hu (lt_of_not_ge hu1) | |
| 60 | + | |
| 61 | +/-- Every removed Euler factor is nonzero as soon as the argument has positive real part. -/ | |
| 62 | +lemma eulerFactor_ne_zero {N : ℕ} [NeZero N] (χ : Character N) | |
| 63 | + {p : ℕ} (hp : p.Prime) {u : ℂ} (hu : 0 < u.re) : | |
| 64 | + 1 - χ p * (p : ℂ) ^ (-u) ≠ 0 := by | |
| 65 | + have hnorm : ‖χ p * (p : ℂ) ^ (-u)‖ < 1 := by | |
| 66 | + rw [norm_mul] | |
| 67 | + calc | |
| 68 | + ‖χ p‖ * ‖(p : ℂ) ^ (-u)‖ ≤ 1 * ‖(p : ℂ) ^ (-u)‖ := | |
| 69 | + mul_le_mul_of_nonneg_right (χ.norm_le_one p) (norm_nonneg _) | |
| 70 | + _ = (p : ℝ) ^ (-u.re) := by | |
| 71 | + rw [one_mul, Complex.norm_natCast_cpow_of_pos hp.pos, Complex.neg_re] | |
| 72 | + _ < 1 := Real.rpow_lt_one_of_one_lt_of_neg (by exact_mod_cast hp.one_lt) (by linarith) | |
| 73 | + intro hzero | |
| 74 | + have hone : χ p * (p : ℂ) ^ (-u) = 1 := (sub_eq_zero.mp hzero).symm | |
| 75 | + rw [hone, norm_one] at hnorm | |
| 76 | + exact (lt_irrefl (1 : ℝ)) hnorm | |
| 77 | + | |
| 78 | +/-- Transfer from the primitive conductor to the original, possibly imprimitive, character. -/ | |
| 79 | +lemma LFunction_ne_zero_of_GRH {N : ℕ} [NeZero N] | |
| 80 | + (hGRH : GRH N) (χ : Character N) (hχ : χ ≠ 1) | |
| 81 | + {u : ℂ} (hu : 1 / 2 < u.re) : χ.LFunction u ≠ 0 := by | |
| 82 | + have hprim : χ.primitiveCharacter ≠ 1 := primitiveCharacter_ne_one_of_ne_one χ hχ | |
| 83 | + have hLprim := primitive_LFunction_ne_zero_of_GRH hGRH χ.conductor_dvd_level | |
| 84 | + χ.primitiveCharacter χ.primitiveCharacter_isPrimitive hprim hu | |
| 85 | + have hprod : ∏ p ∈ N.primeFactors, (1 - χ.primitiveCharacter p * (p : ℂ) ^ (-u)) ≠ 0 := by | |
| 86 | + apply Finset.prod_ne_zero_iff.mpr | |
| 87 | + intro p hp | |
| 88 | + exact eulerFactor_ne_zero χ.primitiveCharacter (Nat.prime_of_mem_primeFactors hp) | |
| 89 | + (by linarith) | |
| 90 | + rw [← χ.changeLevel_primitiveCharacter, | |
| 91 | + DirichletCharacter.LFunction_changeLevel χ.conductor_dvd_level χ.primitiveCharacter | |
| 92 | + (Or.inl hprim)] | |
| 93 | + exact mul_ne_zero hLprim hprod | |
| 94 | + | |
| 95 | +lemma odd_LFunction_ne_zero_of_GRH {N : ℕ} [NeZero N] | |
| 96 | + (hGRH : GRH N) (χ : Character N) (hχ : χ ∈ oddCharacters N) | |
| 97 | + {u : ℂ} (hu : 1 / 2 < u.re) : χ.LFunction u ≠ 0 := by | |
| 98 | + apply LFunction_ne_zero_of_GRH hGRH χ _ hu | |
| 99 | + exact odd_character_ne_one χ (Finset.mem_filter.mp hχ).2 | |
| 100 | + | |
| 101 | +/-- The logarithmic derivative is analytic wherever the shifted L-function is nonzero. -/ | |
| 102 | +lemma logDerivative_analyticAt_of_ne_zero {N : ℕ} [NeZero N] | |
| 103 | + (χ : Character N) (hχ : χ ≠ 1) {s : ℂ} | |
| 104 | + (hs : χ.LFunction (1 / 2 + s) ≠ 0) : AnalyticAt ℂ (logDerivative χ) s := by | |
| 105 | + have hshift : AnalyticAt ℂ (fun z : ℂ => 1 / 2 + z) s := | |
| 106 | + analyticAt_const.add analyticAt_id | |
| 107 | + have hL := DirichletCharacter.differentiable_LFunction hχ | |
| 108 | + exact ((hL.deriv.analyticAt _).comp hshift).div ((hL.analyticAt _).comp hshift) hs | |
| 109 | + | |
| 110 | +lemma logDerivative_analyticAt_of_GRH {N : ℕ} [NeZero N] | |
| 111 | + (hGRH : GRH N) (χ : Character N) (hχ : χ ≠ 1) | |
| 112 | + {s : ℂ} (hs : 0 < s.re) : AnalyticAt ℂ (logDerivative χ) s := by | |
| 113 | + apply logDerivative_analyticAt_of_ne_zero χ hχ | |
| 114 | + apply LFunction_ne_zero_of_GRH hGRH χ hχ | |
| 115 | + norm_num | |
| 116 | + linarith | |
| 117 | + | |
| 118 | +lemma odd_logDerivative_analyticAt_of_GRH {N : ℕ} [NeZero N] | |
| 119 | + (hGRH : GRH N) (χ : Character N) (hχ : χ ∈ oddCharacters N) | |
| 120 | + {s : ℂ} (hs : 0 < s.re) : AnalyticAt ℂ (logDerivative χ) s := by | |
| 121 | + exact logDerivative_analyticAt_of_GRH hGRH χ | |
| 122 | + (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2) hs | |
| 123 | + | |
| 124 | +/-- The actual two-variable kernel, including the conjugation in its second argument. -/ | |
| 125 | +lemma characterKernel_differentiableOn_of_GRH {N : ℕ} [NeZero N] | |
| 126 | + (hGRH : GRH N) : | |
| 127 | + DifferentiableOn ℂ (fun p : ℂ × ℂ => characterKernel N p.1 p.2) | |
| 128 | + {p | 0 < p.1.re ∧ 0 < p.2.re} := by | |
| 129 | + intro p hp | |
| 130 | + apply DifferentiableAt.differentiableWithinAt | |
| 131 | + unfold characterKernel | |
| 132 | + apply DifferentiableAt.const_mul | |
| 133 | + apply DifferentiableAt.fun_sum | |
| 134 | + intro χ hχ | |
| 135 | + have hfirst := (odd_logDerivative_analyticAt_of_GRH hGRH χ hχ hp.1).differentiableAt | |
| 136 | + have hconj := (odd_logDerivative_analyticAt_of_GRH hGRH χ hχ | |
| 137 | + (show 0 < (conj p.2).re by simpa using hp.2)).differentiableAt.conj_conj | |
| 138 | + have hsecond : DifferentiableAt ℂ (fun z => conj (logDerivative χ (conj z))) p.2 := by | |
| 139 | + simpa only [Function.comp_def, Complex.conj_conj] using hconj | |
| 140 | + exact (hfirst.comp p differentiableAt_fst).mul (hsecond.comp p differentiableAt_snd) | |
| 141 | + | |
| 142 | +end ConditionalGoldbach | |
+108 −0 ConditionalGoldbach/Proofs/LogDerivativeDisk.lean added View file
| @@ -0,0 +1,108 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Algebra.Order.Star.Real | |
| 4 | +public import Mathlib.Analysis.CStarAlgebra.Classes | |
| 5 | +public import Mathlib.Analysis.Complex.BorelCaratheodory | |
| 6 | +public import Mathlib.Analysis.Complex.HasPrimitives | |
| 7 | +public import Mathlib.Analysis.Complex.Liouville | |
| 8 | +import Mathlib.Tactic.NormNum.RealSqrt | |
| 9 | + | |
| 10 | +/-! Quantitative logarithmic derivatives on a zero-free disk, via a genuine analytic logarithm. -/ | |
| 11 | +public section | |
| 12 | + | |
| 13 | +set_option autoImplicit false | |
| 14 | +noncomputable section | |
| 15 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 16 | +open MeasureTheory Filter Set Complex Metric | |
| 17 | +namespace ConditionalGoldbach | |
| 18 | + | |
| 19 | +lemma zero_free_disk_log (f : ℂ → ℂ) (R : ℝ) (hR : 0 < R) | |
| 20 | + (hf : AnalyticOnNhd ℂ f (ball 0 R)) (hn : ∀ z ∈ ball 0 R, f z ≠ 0) : | |
| 21 | + ∃ g : ℂ → ℂ, g 0 = 0 ∧ | |
| 22 | + (∀ z ∈ ball 0 R, HasDerivAt g (deriv f z / f z) z) ∧ | |
| 23 | + (∀ z ∈ ball 0 R, Complex.exp (g z) = f z / f 0) := by | |
| 24 | + have hld : DifferentiableOn ℂ (fun z => deriv f z / f z) (ball 0 R) := | |
| 25 | + hf.deriv.differentiableOn.div hf.differentiableOn hn | |
| 26 | + obtain ⟨g,hg0,hg⟩ := hld.isExactOn_ball.with_val_at 0 0 | |
| 27 | + have hzero (z : ℂ) (hz : z ∈ ball (0 : ℂ) R) : | |
| 28 | + HasDerivAt (fun z => Complex.exp (-g z) * f z) 0 z := by | |
| 29 | + convert ((hg z hz).neg.cexp).mul ((hf z hz).differentiableAt.hasDerivAt) using 1 | |
| 30 | + field_simp [hn z hz] | |
| 31 | + ring | |
| 32 | + have heq (z : ℂ) (hz : z ∈ ball (0 : ℂ) R) : | |
| 33 | + Complex.exp (-g z) * f z = f 0 := by | |
| 34 | + have h := isOpen_ball.is_const_of_deriv_eq_zero (convex_ball (0 : ℂ) R).isPreconnected | |
| 35 | + (fun z hz => (hzero z hz).differentiableAt.differentiableWithinAt) | |
| 36 | + (fun z hz => (hzero z hz).deriv) hz (mem_ball_self hR) | |
| 37 | + simpa only [hg0, neg_zero, Complex.exp_zero, one_mul] using h | |
| 38 | + refine ⟨g,hg0,hg,fun z hz => ?_⟩ | |
| 39 | + have hc := hn 0 (mem_ball_self hR) | |
| 40 | + have hh := heq z hz | |
| 41 | + rw [Complex.exp_neg] at hh | |
| 42 | + apply (eq_div_iff hc).mpr | |
| 43 | + field_simp [Complex.exp_ne_zero] at hh | |
| 44 | + linear_combination -hh | |
| 45 | + | |
| 46 | +lemma logarithm_re_le_of_bounds (f g : ℂ → ℂ) (U l : ℝ) (hl : 0 < l) | |
| 47 | + (hlf : l ≤ ‖f 0‖) (z : ℂ) (hn : f z ≠ 0) (hb : ‖f z‖ ≤ U) | |
| 48 | + (hg : Complex.exp (g z) = f z / f 0) : (g z).re ≤ Real.log (U/l) := by | |
| 49 | + have hf0 : 0 < ‖f 0‖ := hl.trans_le hlf | |
| 50 | + have hp : 0 < ‖f z‖ / ‖f 0‖ := div_pos (norm_pos_iff.mpr hn) hf0 | |
| 51 | + have he := congrArg (fun w : ℂ => Real.log ‖w‖) hg | |
| 52 | + rw [Complex.norm_exp, Real.log_exp, norm_div] at he | |
| 53 | + rw [he] | |
| 54 | + apply Real.log_le_log hp | |
| 55 | + calc | |
| 56 | + _ ≤ U / ‖f 0‖ := div_le_div_of_nonneg_right hb hf0.le | |
| 57 | + _ ≤ U / l := div_le_div_of_nonneg_left ((norm_nonneg _).trans hb) hl hlf | |
| 58 | + | |
| 59 | +lemma logDerivative_disk_bound (f : ℂ → ℂ) (R r U l : ℝ) | |
| 60 | + (hR : 0 < R) (_hr : 0 ≤ r) (hrR : r < R) (hl : 0 < l) (hlU : l < U) | |
| 61 | + (hf : AnalyticOnNhd ℂ f (ball 0 R)) (hn : ∀ z ∈ ball 0 R, f z ≠ 0) | |
| 62 | + (hlf : l ≤ ‖f 0‖) (hbound : ∀ z ∈ ball 0 R, ‖f z‖ ≤ U) | |
| 63 | + (z : ℂ) (hz : ‖z‖ ≤ r) : | |
| 64 | + ‖deriv f z / f z‖ ≤ 8 * R / (R-r)^2 * Real.log (U/l) := by | |
| 65 | + obtain ⟨g,hg0,hg,hge⟩ := zero_free_disk_log f R hR hf hn | |
| 66 | + let M : ℝ := Real.log (U/l) | |
| 67 | + let ρ : ℝ := (R-r)/2 | |
| 68 | + have hρ : 0 < ρ := by dsimp [ρ]; linarith | |
| 69 | + have hM : 0 < M := Real.log_pos ((one_lt_div hl).mpr hlU) | |
| 70 | + have hgd : DifferentiableOn ℂ g (ball 0 R) := | |
| 71 | + fun v hv => (hg v hv).differentiableAt.differentiableWithinAt | |
| 72 | + have hgB (v : ℂ) (hv : v ∈ ball (0 : ℂ) R) : | |
| 73 | + ‖g v‖ ≤ 2*M*‖v‖/(R-‖v‖) := | |
| 74 | + Complex.borelCaratheodory_zero hM hgd | |
| 75 | + (fun v hv => logarithm_re_le_of_bounds f g U l hl hlf v (hn v hv) (hbound v hv) (hge v hv)) hR hv hg0 | |
| 76 | + have hsub : closedBall z ρ ⊆ ball (0 : ℂ) R := by | |
| 77 | + intro v hv | |
| 78 | + have hdist : ‖v-z‖ ≤ ρ := by simpa only [mem_closedBall, dist_eq_norm] using hv | |
| 79 | + have hvn := norm_add_le (v-z) z | |
| 80 | + rw [sub_add_cancel] at hvn | |
| 81 | + apply mem_ball_zero_iff.mpr | |
| 82 | + dsimp [ρ] at hdist | |
| 83 | + linarith | |
| 84 | + have hnorm : ∀ v ∈ sphere z ρ, ‖g v‖ ≤ 4*M*R/(R-r) := by | |
| 85 | + intro v hv | |
| 86 | + have hclose : v ∈ closedBall z ρ := sphere_subset_closedBall hv | |
| 87 | + have hvball := hsub hclose | |
| 88 | + have hdist : ‖v-z‖ ≤ ρ := by simpa only [mem_closedBall, dist_eq_norm] using hclose | |
| 89 | + have hvn := norm_add_le (v-z) z | |
| 90 | + rw [sub_add_cancel] at hvn | |
| 91 | + have hvmax : ‖v‖ ≤ (R+r)/2 := by dsimp [ρ] at hdist; linarith | |
| 92 | + have hden : 0 < R-‖v‖ := by have := mem_ball_zero_iff.mp hvball; linarith | |
| 93 | + apply (hgB v hvball).trans | |
| 94 | + apply (div_le_div_iff₀ hden (sub_pos.mpr hrR)).mpr | |
| 95 | + nlinarith [norm_nonneg v, mul_nonneg hM.le (sub_nonneg.mpr hrR.le), | |
| 96 | + mul_nonneg hM.le (sub_nonneg.mpr hvmax)] | |
| 97 | + have hc : DiffContOnCl ℂ g (ball z ρ) := by | |
| 98 | + apply DifferentiableOn.diffContOnCl | |
| 99 | + rw [closure_ball z hρ.ne'] | |
| 100 | + exact hgd.mono hsub | |
| 101 | + have hd := Complex.norm_deriv_le_of_forall_mem_sphere_norm_le hρ hc hnorm | |
| 102 | + rw [(hg z (mem_ball_zero_iff.mpr (hz.trans_lt hrR))).deriv] at hd | |
| 103 | + convert hd using 1 | |
| 104 | + dsimp [ρ,M] | |
| 105 | + field_simp | |
| 106 | + ring | |
| 107 | + | |
| 108 | +end ConditionalGoldbach | |
+127 −0 ConditionalGoldbach/Proofs/Main.lean added View file
| @@ -0,0 +1,127 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.DictionaryApplication | |
| 4 | + | |
| 5 | +/-! Assembly of the audited main statements from the proved Hardy operator realization, | |
| 6 | +exact quadratic identity, and spectral dictionary. The paper's GRH and spectral | |
| 7 | +hypotheses remain explicit in the conclusions. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | +attribute [local instance] Classical.propDecidable conductorNeZero | |
| 16 | + | |
| 17 | +theorem theorem_7_1_uniform (N : ℕ) [NeZero N] (hN : Even N) | |
| 18 | + (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) | |
| 19 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (ha : alpha N < beta) : | |
| 20 | + |weightMass φ * singularSeries N - goldbach N φ| ≤ | |
| 21 | + Real.exp 2 * weightEnergy φ * ‖residualOperator ha N‖ := by | |
| 22 | + exact (theorem_7_1 N hN hlarge hGRH φ hφ ha).2.trans | |
| 23 | + (mul_le_mul_of_nonneg_right (normFunctional_le_exp2_weightEnergy N hlarge φ hφ) | |
| 24 | + (norm_nonneg _)) | |
| 25 | + | |
| 26 | +/-- Turning the uniform relative error into an asymptotic needs positive mass, | |
| 27 | +positive singular series, and the prescribed growth of h. -/ | |
| 28 | +theorem evenAsymptotic_of_error_bound (f S h : ℕ → ℝ) (m C : ℝ) | |
| 29 | + (hm : 0 < m) (hC : 0 < C) (hS : ∀ N, 0 < S N) | |
| 30 | + (hinfty : EvenTendstoInfinity h) | |
| 31 | + (hbound : EvenEventually (fun N => |f N - m * S N| ≤ C * S N / h N)) : | |
| 32 | + EvenAsymptotic f (fun N => m * S N) := by | |
| 33 | + intro ε hε | |
| 34 | + obtain ⟨n, hn⟩ := hbound | |
| 35 | + obtain ⟨k, hk⟩ := hinfty (C / (m * ε) + 1) | |
| 36 | + refine ⟨max n k, fun N hN he => ?_⟩ | |
| 37 | + have hb := hn N (le_trans (le_max_left _ _) hN) he | |
| 38 | + have hh := hk N (le_trans (le_max_right _ _) hN) he | |
| 39 | + have hmε : 0 < m * ε := mul_pos hm hε | |
| 40 | + have hhpos : 0 < h N := by | |
| 41 | + have := div_pos hC hmε | |
| 42 | + linarith | |
| 43 | + have hsmall : C / (m * h N) < ε := by | |
| 44 | + apply (div_lt_iff₀ (mul_pos hm hhpos)).2 | |
| 45 | + have hdiv : C / (m * ε) < h N := by linarith | |
| 46 | + have := (div_lt_iff₀ hmε).1 hdiv | |
| 47 | + nlinarith | |
| 48 | + have hden : 0 < m * S N := mul_pos hm (hS N) | |
| 49 | + change |f N / (m * S N) - 1| < ε | |
| 50 | + rw [div_sub_one (ne_of_gt hden), abs_div, abs_of_pos hden] | |
| 51 | + calc | |
| 52 | + |f N - m * S N| / (m * S N) ≤ (C * S N / h N) / (m * S N) := | |
| 53 | + div_le_div_of_nonneg_right hb hden.le | |
| 54 | + _ = C / (m * h N) := by field_simp [ne_of_gt (hS N), ne_of_gt hm, ne_of_gt hhpos] | |
| 55 | + _ < ε := hsmall | |
| 56 | + | |
| 57 | +theorem theorem_1_1 (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 58 | + ∃ C : ℝ, 0 < C ∧ ∀ h : ℕ → ℝ, | |
| 59 | + EvenEventually GRH → HypothesisS h → | |
| 60 | + EvenEventually (fun N => |goldbach N φ - weightMass φ * singularSeries N| ≤ | |
| 61 | + C * singularSeries N / h N) ∧ | |
| 62 | + EvenAsymptotic (fun N => goldbach N φ) (fun N => weightMass φ * singularSeries N) := by | |
| 63 | + let A : ℝ := Real.exp 2 * weightEnergy φ | |
| 64 | + have hA : 0 ≤ A := mul_nonneg (Real.exp_pos 2).le (weightEnergy_nonneg φ) | |
| 65 | + let C : ℝ := A + 1 | |
| 66 | + have hC : 0 < C := by dsimp [C]; linarith | |
| 67 | + refine ⟨C, hC, fun h hGRH hS => ?_⟩ | |
| 68 | + obtain ⟨⟨hPositive, hGrowth, hWidth⟩, hZeroFree⟩ := hS | |
| 69 | + have hbound : EvenEventually (fun N => | |
| 70 | + |goldbach N φ - weightMass φ * singularSeries N| ≤ C * singularSeries N / h N) := by | |
| 71 | + obtain ⟨k, hk⟩ := hGRH.and (hZeroFree.and (hWidth.and evenEventually_large)) | |
| 72 | + refine ⟨k, fun N hNk he => ?_⟩ | |
| 73 | + rcases hk N hNk he with ⟨hG, hSpectral, hwidth, hlarge⟩ | |
| 74 | + rcases large_parameters hlarge with ⟨hN4, hlog, ha⟩ | |
| 75 | + have hNpos : 0 < N := by omega | |
| 76 | + have hNR : 0 < (N : ℝ) := by exact_mod_cast hNpos | |
| 77 | + let : NeZero N := ⟨ne_of_gt hNpos⟩ | |
| 78 | + have hh : 0 < h N := hPositive N he hN4 | |
| 79 | + have hsing := singularSeries_pos N | |
| 80 | + have hη : 0 < zeroFreeWidth N h := by unfold zeroFreeWidth; positivity | |
| 81 | + have hηhalf : zeroFreeWidth N h < 1 / 2 := by linarith | |
| 82 | + obtain ⟨_, zeroFree_iff, _⟩ := theorem_6_1 N he hlarge hG ha | |
| 83 | + have hnorm := (zeroFree_iff (zeroFreeWidth N h) hη hηhalf).mp | |
| 84 | + (hSpectral hG inferInstance ha) | |
| 85 | + have hnorm' : ‖residualOperator ha N‖ ≤ singularSeries N / h N := | |
| 86 | + hnorm.trans (spectralScale_div_sqrt_width_le N h hNR hsing hlog hh hwidth) | |
| 87 | + have herr : |goldbach N φ - weightMass φ * singularSeries N| ≤ | |
| 88 | + A * ‖residualOperator ha N‖ := by | |
| 89 | + simpa only [A, abs_sub_comm] using theorem_7_1_uniform N he hlarge hG φ hφ ha | |
| 90 | + calc | |
| 91 | + _ ≤ A * ‖residualOperator ha N‖ := herr | |
| 92 | + _ ≤ A * (singularSeries N / h N) := mul_le_mul_of_nonneg_left hnorm' hA | |
| 93 | + _ ≤ C * singularSeries N / h N := by | |
| 94 | + rw [mul_div_assoc] | |
| 95 | + apply mul_le_mul_of_nonneg_right (by dsimp [C]; linarith) | |
| 96 | + exact (div_pos hsing hh).le | |
| 97 | + exact ⟨hbound, evenAsymptotic_of_error_bound (fun N => goldbach N φ) | |
| 98 | + singularSeries h (weightMass φ) C (weightMass_pos hφ) hC singularSeries_pos | |
| 99 | + hGrowth hbound⟩ | |
| 100 | + | |
| 101 | +theorem theorem_1_2 (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 102 | + (hGRH : EvenEventually GRH) (hR : HypothesisR) : | |
| 103 | + ∃ C : ℝ, 0 < C ∧ EvenEventually (fun N => | |
| 104 | + |goldbach N φ - weightMass φ * singularSeries N| ≤ C * spectralScale N) := by | |
| 105 | + let A : ℝ := Real.exp 2 * weightEnergy φ | |
| 106 | + have hA : 0 ≤ A := mul_nonneg (Real.exp_pos 2).le (weightEnergy_nonneg φ) | |
| 107 | + refine ⟨A + 1, by linarith, ?_⟩ | |
| 108 | + obtain ⟨k, hk⟩ := hGRH.and (hR.and evenEventually_large) | |
| 109 | + refine ⟨k, fun N hNk he => ?_⟩ | |
| 110 | + rcases hk N hNk he with ⟨hG, hSpectral, hlarge⟩ | |
| 111 | + rcases large_parameters hlarge with ⟨hN4, hlog, ha⟩ | |
| 112 | + have hNpos : 0 < N := by omega | |
| 113 | + have hNR : 0 < (N : ℝ) := by exact_mod_cast hNpos | |
| 114 | + let : NeZero N := ⟨ne_of_gt hNpos⟩ | |
| 115 | + obtain ⟨spectralR_iff, _, _⟩ := theorem_6_1 N he hlarge hG ha | |
| 116 | + have hnorm := spectralR_iff.mp (hSpectral hG inferInstance ha) | |
| 117 | + have herr : |goldbach N φ - weightMass φ * singularSeries N| ≤ | |
| 118 | + A * ‖residualOperator ha N‖ := by | |
| 119 | + simpa only [A, abs_sub_comm] using theorem_7_1_uniform N he hlarge hG φ hφ ha | |
| 120 | + calc | |
| 121 | + _ ≤ A * ‖residualOperator ha N‖ := herr | |
| 122 | + _ ≤ A * spectralScale N := mul_le_mul_of_nonneg_left hnorm hA | |
| 123 | + _ ≤ (A + 1) * spectralScale N := | |
| 124 | + mul_le_mul_of_nonneg_right (by linarith) | |
| 125 | + (spectralScale_pos N hNR (singularSeries_pos N) hlog).le | |
| 126 | + | |
| 127 | +end ConditionalGoldbach | |
+124 −0 ConditionalGoldbach/Proofs/MellinBasic.lean added View file
| @@ -0,0 +1,124 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.Distribution.SchwartzSpace.Fourier | |
| 4 | +public import Mathlib.Analysis.MellinInversion | |
| 5 | +public import ConditionalGoldbach.Proofs.Weights | |
| 6 | + | |
| 7 | +/-! Mellin inversion of the paper's compact smooth companion weight. -/ | |
| 8 | +@[expose] public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology ContDiff FourierTransform SchwartzMap | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +/-- The logarithmic-coordinate function used by Mathlib's Mellin/Fourier convention. -/ | |
| 17 | +def mellinLogWeight (φ : ℝ → ℝ) (σ : ℝ) (x : ℝ) : ℂ := | |
| 18 | + Real.exp (-σ * x) • (companion φ (Real.exp (-x)) : ℂ) | |
| 19 | + | |
| 20 | +theorem mellinLogWeight_contDiff {φ : ℝ → ℝ} (hφ : IsWeight φ) (σ : ℝ) : | |
| 21 | + ContDiff ℝ ∞ (mellinLogWeight φ σ) := by | |
| 22 | + unfold mellinLogWeight | |
| 23 | + exact (Real.contDiff_exp.comp ((contDiff_const : ContDiff ℝ ∞ (fun _ : ℝ => -σ)).mul contDiff_id)).smul | |
| 24 | + (Complex.ofRealCLM.contDiff.comp ((companion_contDiff hφ).comp | |
| 25 | + (Real.contDiff_exp.comp contDiff_id.neg))) | |
| 26 | + | |
| 27 | +theorem mellinLogWeight_hasCompactSupport {φ : ℝ → ℝ} (hφ : IsWeight φ) (σ : ℝ) : | |
| 28 | + HasCompactSupport (mellinLogWeight φ σ) := by | |
| 29 | + apply HasCompactSupport.of_support_subset_isCompact | |
| 30 | + (isCompact_Icc (a := -Real.log (2 / 3)) (b := -Real.log (1 / 3))) | |
| 31 | + intro x hx | |
| 32 | + have hn : companion φ (Real.exp (-x)) ≠ 0 := by | |
| 33 | + intro hzero | |
| 34 | + exact hx (by simp [mellinLogWeight, hzero]) | |
| 35 | + have hs := companion_support_subset hφ hn | |
| 36 | + have hlo := Real.log_le_log (by norm_num : (0 : ℝ) < 1 / 3) hs.1 | |
| 37 | + have hhi := Real.log_le_log (Real.exp_pos (-x)) hs.2 | |
| 38 | + rw [Real.log_exp] at hlo hhi | |
| 39 | + constructor <;> linarith | |
| 40 | + | |
| 41 | +theorem mellinWeight_convergent {φ : ℝ → ℝ} (hφ : IsWeight φ) (s : ℂ) : | |
| 42 | + MellinConvergent (fun u => (companion φ u : ℂ)) s := by | |
| 43 | + have hsupp : Function.support (fun u : ℝ => (u : ℂ) ^ (s - 1) * | |
| 44 | + (companion φ u : ℂ)) ⊆ Icc (1 / 3 : ℝ) (2 / 3) := by | |
| 45 | + intro u hu | |
| 46 | + apply companion_support_subset hφ | |
| 47 | + intro hzero | |
| 48 | + exact hu (by simp [hzero]) | |
| 49 | + change IntegrableOn (fun u : ℝ => (u : ℂ) ^ (s - 1) * (companion φ u : ℂ)) (Ioi 0) | |
| 50 | + apply Integrable.integrableOn | |
| 51 | + apply (integrableOn_iff_integrable_of_support_subset hsupp).mp | |
| 52 | + apply ContinuousOn.integrableOn_Icc | |
| 53 | + intro u hu | |
| 54 | + have hu0 : u ≠ 0 := by linarith [hu.1] | |
| 55 | + exact ((Complex.continuousAt_ofReal_cpow_const u (s - 1) (Or.inr hu0)).mul | |
| 56 | + (Complex.continuous_ofReal.continuousAt.comp (companion_contDiff hφ).continuous.continuousAt)).continuousWithinAt | |
| 57 | + | |
| 58 | +theorem mellinWeight_verticalIntegrable {φ : ℝ → ℝ} (hφ : IsWeight φ) (σ : ℝ) : | |
| 59 | + VerticalIntegrable (mellinWeight φ) σ := by | |
| 60 | + let g := (mellinLogWeight_hasCompactSupport hφ σ).toSchwartzMap | |
| 61 | + (mellinLogWeight_contDiff hφ σ) | |
| 62 | + have hF : Integrable (𝓕 (fun x => mellinLogWeight φ σ x)) := by | |
| 63 | + simpa only [SchwartzMap.fourier_coe] using (𝓕 g).integrable | |
| 64 | + have h2π : (2 * Real.pi)⁻¹ ≠ 0 := by positivity | |
| 65 | + have hscaled := hF.comp_mul_right' h2π | |
| 66 | + simpa only [VerticalIntegrable, mellinWeight, mellin_eq_fourier, add_re, ofReal_re, | |
| 67 | + mul_re, ofReal_im, I_re, I_im, mul_zero, zero_mul, sub_self, add_zero, add_im, | |
| 68 | + mul_im, mul_one, zero_add, mellinLogWeight, div_eq_mul_inv] using hscaled | |
| 69 | + | |
| 70 | +theorem mellinWeight_inversion {φ : ℝ → ℝ} (hφ : IsWeight φ) (σ u : ℝ) (hu : 0 < u) : | |
| 71 | + (companion φ u : ℂ) = | |
| 72 | + verticalMellin σ (fun s => mellinWeight φ s * (u : ℂ) ^ (-s)) := by | |
| 73 | + have h := mellinInv_mellin_eq σ (fun u => (companion φ u : ℂ)) hu | |
| 74 | + (mellinWeight_convergent hφ σ) (mellinWeight_verticalIntegrable hφ σ) | |
| 75 | + (Complex.continuous_ofReal.continuousAt.comp (companion_contDiff hφ).continuous.continuousAt) | |
| 76 | + rw [← h] | |
| 77 | + simp only [mellinInv, verticalMellin, mellinWeight, line, smul_eq_mul] | |
| 78 | + simp only [Complex.real_smul, Complex.ofReal_mul, Complex.ofReal_ofNat, one_div, Complex.ofReal_inv] | |
| 79 | + congr 1 | |
| 80 | + apply integral_congr_ae | |
| 81 | + exact Filter.Eventually.of_forall (fun t => mul_comm _ _) | |
| 82 | + | |
| 83 | + | |
| 84 | +theorem mellinWeight_inversion_integrable {φ : ℝ → ℝ} (hφ : IsWeight φ) | |
| 85 | + (σ u : ℝ) (hu : 0 < u) : | |
| 86 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * (u : ℂ) ^ (-line σ t)) := by | |
| 87 | + have hpow : Continuous (fun t : ℝ => (u : ℂ) ^ (-line σ t)) := by | |
| 88 | + apply Continuous.const_cpow | |
| 89 | + · unfold line | |
| 90 | + fun_prop | |
| 91 | + · exact Or.inl (Complex.ofReal_ne_zero.mpr hu.ne') | |
| 92 | + have hb : ∀ᵐ t : ℝ, ‖(u : ℂ) ^ (-line σ t)‖ ≤ Real.rpow u (-σ) := by | |
| 93 | + filter_upwards [] with t | |
| 94 | + rw [Complex.norm_cpow_eq_rpow_re_of_pos hu] | |
| 95 | + simp [line] | |
| 96 | + simpa only [line, mul_comm] using | |
| 97 | + (mellinWeight_verticalIntegrable hφ σ).bdd_mul hpow.aestronglyMeasurable hb | |
| 98 | + | |
| 99 | + | |
| 100 | +theorem mellinWeight_differentiable {φ : ℝ → ℝ} (hφ : IsWeight φ) : | |
| 101 | + Differentiable ℂ (mellinWeight φ) := by | |
| 102 | + have hc : Continuous (fun u : ℝ => (companion φ u : ℂ)) := | |
| 103 | + Complex.continuous_ofReal.comp (companion_contDiff hφ).continuous | |
| 104 | + have htop : (fun u : ℝ => (companion φ u : ℂ)) =ᶠ[atTop] 0 := by | |
| 105 | + filter_upwards [eventually_gt_atTop (2 / 3 : ℝ)] with u hu | |
| 106 | + have hz : companion φ u = 0 := by | |
| 107 | + by_contra hn | |
| 108 | + exact (not_lt_of_ge (companion_support_subset hφ hn).2) hu | |
| 109 | + simp [hz] | |
| 110 | + have hbot : (fun u : ℝ => (companion φ u : ℂ)) =ᶠ[𝓝[>] (0 : ℝ)] 0 := by | |
| 111 | + filter_upwards [nhdsWithin_le_nhds (Iio_mem_nhds (show (0 : ℝ) < 1 / 3 by norm_num))] with u hu | |
| 112 | + have hz : companion φ u = 0 := by | |
| 113 | + by_contra hn | |
| 114 | + exact (not_lt_of_ge (companion_support_subset hφ hn).1) hu | |
| 115 | + simp [hz] | |
| 116 | + intro s | |
| 117 | + apply mellin_differentiableAt_of_isBigO_rpow (a := s.re + 1) (b := s.re - 1) | |
| 118 | + (hc.locallyIntegrable.locallyIntegrableOn _) | |
| 119 | + · exact htop.trans_isBigO (Asymptotics.isBigO_zero _ _) | |
| 120 | + · linarith | |
| 121 | + · exact hbot.trans_isBigO (Asymptotics.isBigO_zero _ _) | |
| 122 | + · linarith | |
| 123 | + | |
| 124 | +end ConditionalGoldbach | |
+85 −0 ConditionalGoldbach/Proofs/MellinBetaConvolution.lean added View file
| @@ -0,0 +1,85 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinBetaPairing | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinBetaConvolutionCore | |
| 5 | + | |
| 6 | +/-! Convolution slices and their absolutely convergent Beta–Mellin inversions. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma difference_slice_mellin (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 16 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) | |
| 17 | + (r : ℝ) (hr : 0 < r) : | |
| 18 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 19 | + (r : ℂ)^(w-1/2-line σ t) * betaIntegral (1/2-line σ t) w) ∧ | |
| 20 | + (∫ u in Ioo (0 : ℝ) r, (φ u : ℂ) * (r-u : ℂ)^(w-1)) = | |
| 21 | + verticalMellin σ (fun s => mellinWeight φ s * | |
| 22 | + (r : ℂ)^(w-1/2-s) * betaIntegral (1/2-s) w) := | |
| 23 | + MellinConvolution.difference_slice_mellin φ σ | |
| 24 | + (mellin_phi_kernel_pairing φ hφ σ) hσ hσupper w hw r hr | |
| 25 | + | |
| 26 | +lemma sum_slice_mellin (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 27 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) | |
| 28 | + (r : ℝ) (hr : 0 < r) : | |
| 29 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 30 | + (r : ℂ)^(w-1/2-line σ t) * betaIntegral (1/2-line σ t) (1/2+line σ t-w)) ∧ | |
| 31 | + (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * (u+r : ℂ)^(w-1)) = | |
| 32 | + verticalMellin σ (fun s => mellinWeight φ s * | |
| 33 | + (r : ℂ)^(w-1/2-s) * betaIntegral (1/2-s) (1/2+s-w)) := | |
| 34 | + MellinConvolution.sum_slice_mellin φ σ | |
| 35 | + (mellin_phi_kernel_pairing φ hφ σ) hσ hσupper w hw r hr | |
| 36 | + | |
| 37 | +lemma mellin_phi_integrable (φ : ℝ → ℝ) (hφ : IsWeight φ) (s : ℂ) : | |
| 38 | + IntegrableOn (fun u : ℝ => (u : ℂ)^(s-1/2) * (φ u : ℂ)) (Ioi 0) := | |
| 39 | + MellinConvolution.mellin_phi_integrable φ s (mellinWeight_convergent hφ s) | |
| 40 | + | |
| 41 | +lemma mellin_beta_outer_integrable (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (w : ℂ) | |
| 42 | + (B : ℂ → ℂ) (hBm : Measurable (fun t : ℝ => B (line σ t))) | |
| 43 | + (C : ℝ) (hB : ∀ t : ℝ, ‖B (line σ t)‖ ≤ C) : | |
| 44 | + Integrable (fun p : ℝ × ℝ => mellinWeight φ (line σ p.1) * | |
| 45 | + (p.2 : ℂ)^(w-1/2-line σ p.1) * B (line σ p.1) * (φ p.2 : ℂ)) | |
| 46 | + (volume.prod (volume.restrict (Ioi 0))) := | |
| 47 | + MellinConvolution.mellin_beta_outer_integrable φ σ w | |
| 48 | + hφ.1.continuous.measurable (mellinWeight_differentiable hφ).continuous.measurable | |
| 49 | + (mellinWeight_verticalIntegrable hφ σ) (mellinWeight_convergent hφ _) B hBm C hB | |
| 50 | + | |
| 51 | +lemma mellin_beta_outer_pairing (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (w : ℂ) | |
| 52 | + (B : ℂ → ℂ) (hBm : Measurable (fun t : ℝ => B (line σ t))) | |
| 53 | + (C : ℝ) (hB : ∀ t : ℝ, ‖B (line σ t)‖ ≤ C) : | |
| 54 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 55 | + mellinWeight φ (w-line σ t) * B (line σ t)) ∧ | |
| 56 | + (∫ r in Ioi (0 : ℝ), | |
| 57 | + verticalMellin σ (fun s => mellinWeight φ s * (r : ℂ)^(w-1/2-s) * B s) * (φ r : ℂ)) = | |
| 58 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * B s) := | |
| 59 | + MellinConvolution.mellin_beta_outer_pairing φ σ w | |
| 60 | + hφ.1.continuous.measurable (mellinWeight_differentiable hφ).continuous.measurable | |
| 61 | + (mellinWeight_verticalIntegrable hφ σ) (mellinWeight_convergent hφ _) B hBm C hB | |
| 62 | + | |
| 63 | +lemma difference_convolution_slices_mellin (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 64 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) : | |
| 65 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 66 | + mellinWeight φ (w-line σ t) * betaIntegral (1/2-line σ t) w) ∧ | |
| 67 | + (∫ r in Ioi (0 : ℝ), (∫ u in Ioo (0 : ℝ) r, (φ u : ℂ) * (r-u : ℂ)^(w-1)) * (φ r : ℂ)) = | |
| 68 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) w) := | |
| 69 | + MellinConvolution.difference_convolution_slices_mellin φ σ | |
| 70 | + (mellin_phi_kernel_pairing φ hφ σ) hσ hσupper w hw | |
| 71 | + hφ.1.continuous.measurable (mellinWeight_differentiable hφ).continuous.measurable | |
| 72 | + (mellinWeight_verticalIntegrable hφ σ) (mellinWeight_convergent hφ _) | |
| 73 | + | |
| 74 | +lemma sum_convolution_slices_mellin (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 75 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) : | |
| 76 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 77 | + mellinWeight φ (w-line σ t) * betaIntegral (1/2-line σ t) (1/2+line σ t-w)) ∧ | |
| 78 | + (∫ r in Ioi (0 : ℝ), (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * (u+r : ℂ)^(w-1)) * (φ r : ℂ)) = | |
| 79 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) (1/2+s-w)) := | |
| 80 | + MellinConvolution.sum_convolution_slices_mellin φ σ | |
| 81 | + (mellin_phi_kernel_pairing φ hφ σ) hσ hσupper w hw | |
| 82 | + hφ.1.continuous.measurable (mellinWeight_differentiable hφ).continuous.measurable | |
| 83 | + (mellinWeight_verticalIntegrable hφ σ) (mellinWeight_convergent hφ _) | |
| 84 | + | |
| 85 | +end ConditionalGoldbach | |
+248 −0 ConditionalGoldbach/Proofs/MellinBetaConvolutionCore.lean added View file
| @@ -0,0 +1,248 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinBetaPairing | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinBetaInner | |
| 5 | + | |
| 6 | +/-! Shared Beta–Mellin convolution proofs. The two weight classes supply | |
| 7 | +measurability, convergence, vertical integrability and the kernel pairing separately. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +lemma mellinWeight_eq_phi_integral (φ : ℝ → ℝ) (s : ℂ) : | |
| 17 | + mellinWeight φ s = ∫ u in Ioi (0 : ℝ), (u : ℂ)^(s-1/2) * (φ u : ℂ) := by | |
| 18 | + unfold mellinWeight mellin | |
| 19 | + simp only [smul_eq_mul] | |
| 20 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 21 | + intro u hu | |
| 22 | + dsimp only | |
| 23 | + have hh : (Real.sqrt u : ℂ) = (u : ℂ)^(1/2 : ℂ) := by | |
| 24 | + rw [Real.sqrt_eq_rpow, Complex.ofReal_cpow hu.le] | |
| 25 | + congr 1 | |
| 26 | + norm_num | |
| 27 | + rw [companion, ofReal_mul, hh, ← mul_assoc, | |
| 28 | + ← cpow_add _ _ (Complex.ofReal_ne_zero.mpr hu.ne')] | |
| 29 | + congr 2 | |
| 30 | + ring | |
| 31 | + | |
| 32 | +lemma measurable_betaIntegral {α : Type*} [MeasurableSpace α] (f g : α → ℂ) | |
| 33 | + (hf : Measurable f) (hg : Measurable g) : Measurable (fun x => betaIntegral (f x) (g x)) := by | |
| 34 | + simp only [betaIntegral, intervalIntegral.integral_of_le (by norm_num : (0 : ℝ) ≤ 1)] | |
| 35 | + have h : StronglyMeasurable (Function.uncurry (fun x (u : ℝ) => | |
| 36 | + (u : ℂ)^(f x-1) * (1-(u : ℂ))^(g x-1))) := by | |
| 37 | + apply Measurable.stronglyMeasurable | |
| 38 | + exact (measurable_complex_cpow _ _ (by fun_prop) ((hf.comp measurable_fst).sub measurable_const)).mul | |
| 39 | + (measurable_complex_cpow _ _ (by fun_prop) ((hg.comp measurable_fst).sub measurable_const)) | |
| 40 | + exact h.integral_prod_right.measurable | |
| 41 | + | |
| 42 | +namespace MellinConvolution | |
| 43 | + | |
| 44 | +lemma difference_slice_mellin (φ : ℝ → ℝ) (σ : ℝ) | |
| 45 | + (hpair : ∀ (g : ℝ → ℂ), Measurable g → | |
| 46 | + IntegrableOn (fun u : ℝ => (u : ℂ)^(-1/2-(σ : ℂ)) * g u) (Ioi 0) → | |
| 47 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 48 | + ∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-line σ t) * g u) ∧ | |
| 49 | + (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * g u) = | |
| 50 | + verticalMellin σ (fun s => mellinWeight φ s * | |
| 51 | + ∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-s) * g u)) | |
| 52 | + (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) | |
| 53 | + (r : ℝ) (hr : 0 < r) : | |
| 54 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 55 | + (r : ℂ)^(w-1/2-line σ t) * betaIntegral (1/2-line σ t) w) ∧ | |
| 56 | + (∫ u in Ioo (0 : ℝ) r, (φ u : ℂ) * (r-u : ℂ)^(w-1)) = | |
| 57 | + verticalMellin σ (fun s => mellinWeight φ s * | |
| 58 | + (r : ℂ)^(w-1/2-s) * betaIntegral (1/2-s) w) := by | |
| 59 | + let g : ℝ → ℂ := (Iio r).indicator (fun u : ℝ => (r-u : ℂ)^(w-1)) | |
| 60 | + have hg : Measurable g := | |
| 61 | + (measurable_complex_cpow _ _ (by fun_prop) measurable_const).indicator measurableSet_Iio | |
| 62 | + have he (s : ℂ) : (∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-s) * g u) = | |
| 63 | + (r : ℂ)^(w-1/2-s) * betaIntegral (1/2-s) w := by | |
| 64 | + have hfun : (fun u : ℝ => (u : ℂ)^(-1/2-s) * g u) = | |
| 65 | + (Iio r).indicator (fun u : ℝ => (u : ℂ)^(-1/2-s) * (r-u : ℂ)^(w-1)) := by | |
| 66 | + ext u | |
| 67 | + by_cases hu : u < r <;> simp [g, Set.indicator, hu] | |
| 68 | + rw [hfun, setIntegral_indicator measurableSet_Iio, Ioi_inter_Iio] | |
| 69 | + exact convolution_inner_beta_sum r hr s w | |
| 70 | + have hd := convolution_betaDomain σ hσ hσupper (σ : ℂ) w (by simp) hw | |
| 71 | + have hew : -1/2-(1/2-w) = w-1 := by ring | |
| 72 | + have hi : IntegrableOn (fun u : ℝ => (u : ℂ)^(-1/2-(σ : ℂ)) * g u) (Ioi 0) := by | |
| 73 | + have h := (beta_sum_integrable r hr (σ : ℂ) (1/2-w) hd).integrable_indicator measurableSet_Ioo | |
| 74 | + rw [hew] at h | |
| 75 | + apply h.integrableOn.congr_fun _ measurableSet_Ioi | |
| 76 | + intro u hu | |
| 77 | + change 0 < u at hu | |
| 78 | + by_cases hur : u < r <;> simp [g, Set.indicator, hu, hur] | |
| 79 | + have h := hpair g hg hi | |
| 80 | + have hleft : (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * g u) = | |
| 81 | + ∫ u in Ioo (0 : ℝ) r, (φ u : ℂ) * (r-u : ℂ)^(w-1) := by | |
| 82 | + have hfun : (fun u : ℝ => (φ u : ℂ) * g u) = | |
| 83 | + (Iio r).indicator (fun u : ℝ => (φ u : ℂ) * (r-u : ℂ)^(w-1)) := by | |
| 84 | + ext u | |
| 85 | + by_cases hu : u < r <;> simp [g, Set.indicator, hu] | |
| 86 | + rw [hfun, setIntegral_indicator measurableSet_Iio, Ioi_inter_Iio] | |
| 87 | + simpa only [he, hleft, mul_assoc, verticalMellin] using h | |
| 88 | + | |
| 89 | +lemma sum_slice_mellin (φ : ℝ → ℝ) (σ : ℝ) | |
| 90 | + (hpair : ∀ (g : ℝ → ℂ), Measurable g → | |
| 91 | + IntegrableOn (fun u : ℝ => (u : ℂ)^(-1/2-(σ : ℂ)) * g u) (Ioi 0) → | |
| 92 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 93 | + ∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-line σ t) * g u) ∧ | |
| 94 | + (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * g u) = | |
| 95 | + verticalMellin σ (fun s => mellinWeight φ s * | |
| 96 | + ∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-s) * g u)) | |
| 97 | + (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) | |
| 98 | + (r : ℝ) (hr : 0 < r) : | |
| 99 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 100 | + (r : ℂ)^(w-1/2-line σ t) * betaIntegral (1/2-line σ t) (1/2+line σ t-w)) ∧ | |
| 101 | + (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * (u+r : ℂ)^(w-1)) = | |
| 102 | + verticalMellin σ (fun s => mellinWeight φ s * | |
| 103 | + (r : ℂ)^(w-1/2-s) * betaIntegral (1/2-s) (1/2+s-w)) := by | |
| 104 | + let g : ℝ → ℂ := fun u => (u+r : ℂ)^(w-1) | |
| 105 | + have hg : Measurable g := measurable_complex_cpow _ _ (by fun_prop) measurable_const | |
| 106 | + have hd := convolution_betaDomain σ hσ hσupper (σ : ℂ) w (by simp) hw | |
| 107 | + have hew : -1/2-(1/2-w) = w-1 := by ring | |
| 108 | + have hi : IntegrableOn (fun u : ℝ => (u : ℂ)^(-1/2-(σ : ℂ)) * g u) (Ioi 0) := by | |
| 109 | + simpa only [g, hew] using beta_difference_integrable r hr (σ : ℂ) (1/2-w) hd | |
| 110 | + have h := hpair g hg hi | |
| 111 | + simpa only [g, convolution_inner_beta_difference r hr, mul_assoc, verticalMellin] using h | |
| 112 | + | |
| 113 | +lemma mellin_phi_integrable (φ : ℝ → ℝ) (s : ℂ) | |
| 114 | + (hc : MellinConvergent (fun u => (companion φ u : ℂ)) s) : | |
| 115 | + IntegrableOn (fun u : ℝ => (u : ℂ)^(s-1/2) * (φ u : ℂ)) (Ioi 0) := by | |
| 116 | + apply hc.congr_fun _ measurableSet_Ioi | |
| 117 | + intro u hu | |
| 118 | + change (u : ℂ)^(s-1) * (companion φ u : ℂ) = _ | |
| 119 | + have hh : (Real.sqrt u : ℂ) = (u : ℂ)^(1/2 : ℂ) := by | |
| 120 | + rw [Real.sqrt_eq_rpow, Complex.ofReal_cpow hu.le] | |
| 121 | + congr 1 | |
| 122 | + norm_num | |
| 123 | + rw [companion, ofReal_mul, hh, ← mul_assoc, | |
| 124 | + ← cpow_add _ _ (Complex.ofReal_ne_zero.mpr hu.ne')] | |
| 125 | + congr 2 | |
| 126 | + ring | |
| 127 | + | |
| 128 | +lemma mellin_beta_outer_integrable (φ : ℝ → ℝ) (σ : ℝ) (w : ℂ) | |
| 129 | + (hφm : Measurable φ) (hMm : Measurable (mellinWeight φ)) | |
| 130 | + (hMv : Integrable (fun t : ℝ => mellinWeight φ (line σ t))) | |
| 131 | + (hc : MellinConvergent (fun u => (companion φ u : ℂ)) (w-(σ : ℂ))) | |
| 132 | + (B : ℂ → ℂ) (hBm : Measurable (fun t : ℝ => B (line σ t))) | |
| 133 | + (C : ℝ) (hB : ∀ t : ℝ, ‖B (line σ t)‖ ≤ C) : | |
| 134 | + Integrable (fun p : ℝ × ℝ => mellinWeight φ (line σ p.1) * | |
| 135 | + (p.2 : ℂ)^(w-1/2-line σ p.1) * B (line σ p.1) * (φ p.2 : ℂ)) | |
| 136 | + (volume.prod (volume.restrict (Ioi 0))) := by | |
| 137 | + have hm : Measurable (fun p : ℝ × ℝ => mellinWeight φ (line σ p.1) * | |
| 138 | + (p.2 : ℂ)^(w-1/2-line σ p.1) * B (line σ p.1) * (φ p.2 : ℂ)) := by | |
| 139 | + apply Measurable.mul | |
| 140 | + · apply Measurable.mul | |
| 141 | + · apply Measurable.mul | |
| 142 | + · exact hMm.comp (by unfold line; fun_prop) | |
| 143 | + · exact measurable_complex_cpow _ _ (by fun_prop) (by unfold line; fun_prop) | |
| 144 | + · exact hBm.comp measurable_fst | |
| 145 | + · exact Complex.continuous_ofReal.measurable.comp (hφm.comp measurable_snd) | |
| 146 | + apply ((hMv.norm.mul_const C).mul_prod | |
| 147 | + (mellin_phi_integrable φ (w-(σ : ℂ)) hc).norm).mono' hm.aestronglyMeasurable | |
| 148 | + filter_upwards [Measure.quasiMeasurePreserving_snd.ae (ae_restrict_mem measurableSet_Ioi)] with p hp | |
| 149 | + rcases p with ⟨t,r⟩ | |
| 150 | + have he : (w-1/2-line σ t).re = (w-(σ : ℂ)-1/2).re := by simp [line]; ring | |
| 151 | + simp only [norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos hp, he] | |
| 152 | + calc | |
| 153 | + _ ≤ ‖mellinWeight φ (line σ t)‖ * r^((w-(σ : ℂ)-1/2).re) * C * ‖(φ r : ℂ)‖ := by | |
| 154 | + exact mul_le_mul_of_nonneg_right | |
| 155 | + (mul_le_mul_of_nonneg_left (hB t) (mul_nonneg (norm_nonneg _) (Real.rpow_nonneg hp.le _))) | |
| 156 | + (norm_nonneg _) | |
| 157 | + _ = _ := by dsimp only [line]; ring | |
| 158 | + | |
| 159 | +lemma mellin_beta_outer_pairing (φ : ℝ → ℝ) (σ : ℝ) (w : ℂ) | |
| 160 | + (hφm : Measurable φ) (hMm : Measurable (mellinWeight φ)) | |
| 161 | + (hMv : Integrable (fun t : ℝ => mellinWeight φ (line σ t))) | |
| 162 | + (hc : MellinConvergent (fun u => (companion φ u : ℂ)) (w-(σ : ℂ))) | |
| 163 | + (B : ℂ → ℂ) (hBm : Measurable (fun t : ℝ => B (line σ t))) | |
| 164 | + (C : ℝ) (hB : ∀ t : ℝ, ‖B (line σ t)‖ ≤ C) : | |
| 165 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 166 | + mellinWeight φ (w-line σ t) * B (line σ t)) ∧ | |
| 167 | + (∫ r in Ioi (0 : ℝ), | |
| 168 | + verticalMellin σ (fun s => mellinWeight φ s * (r : ℂ)^(w-1/2-s) * B s) * (φ r : ℂ)) = | |
| 169 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * B s) := by | |
| 170 | + have hi := mellin_beta_outer_integrable φ σ w hφm hMm hMv hc B hBm C hB | |
| 171 | + have he (s : ℂ) : (∫ r in Ioi (0 : ℝ), mellinWeight φ s * | |
| 172 | + (r : ℂ)^(w-1/2-s) * B s * (φ r : ℂ)) = mellinWeight φ s * mellinWeight φ (w-s) * B s := by | |
| 173 | + rw [mellinWeight_eq_phi_integral φ (w-s)] | |
| 174 | + have hp : w-s-1/2 = w-1/2-s := by ring | |
| 175 | + rw [hp, ← integral_const_mul, ← integral_mul_const] | |
| 176 | + apply integral_congr_ae | |
| 177 | + filter_upwards [] with r | |
| 178 | + ring | |
| 179 | + constructor | |
| 180 | + · simpa only [he] using hi.integral_prod_left | |
| 181 | + · have hs := integral_integral_swap (f := fun t r : ℝ => mellinWeight φ (line σ t) * | |
| 182 | + (r : ℂ)^(w-1/2-line σ t) * B (line σ t) * (φ r : ℂ)) hi | |
| 183 | + simp only [he, integral_mul_const] at hs | |
| 184 | + unfold verticalMellin | |
| 185 | + rw [hs, ← integral_const_mul] | |
| 186 | + apply integral_congr_ae | |
| 187 | + filter_upwards [] with r | |
| 188 | + ring | |
| 189 | + | |
| 190 | +lemma difference_convolution_slices_mellin (φ : ℝ → ℝ) (σ : ℝ) | |
| 191 | + (hpair : ∀ (g : ℝ → ℂ), Measurable g → | |
| 192 | + IntegrableOn (fun u : ℝ => (u : ℂ)^(-1/2-(σ : ℂ)) * g u) (Ioi 0) → | |
| 193 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 194 | + ∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-line σ t) * g u) ∧ | |
| 195 | + (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * g u) = | |
| 196 | + verticalMellin σ (fun s => mellinWeight φ s * | |
| 197 | + ∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-s) * g u)) | |
| 198 | + (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) | |
| 199 | + (hφm : Measurable φ) (hMm : Measurable (mellinWeight φ)) | |
| 200 | + (hMv : Integrable (fun t : ℝ => mellinWeight φ (line σ t))) | |
| 201 | + (hc : MellinConvergent (fun u => (companion φ u : ℂ)) (w-(σ : ℂ))) : | |
| 202 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 203 | + mellinWeight φ (w-line σ t) * betaIntegral (1/2-line σ t) w) ∧ | |
| 204 | + (∫ r in Ioi (0 : ℝ), (∫ u in Ioo (0 : ℝ) r, (φ u : ℂ) * (r-u : ℂ)^(w-1)) * (φ r : ℂ)) = | |
| 205 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) w) := by | |
| 206 | + have h := mellin_beta_outer_pairing φ σ w hφm hMm hMv hc (fun s => betaIntegral (1/2-s) w) | |
| 207 | + (measurable_betaIntegral _ _ (by unfold line; fun_prop) measurable_const) | |
| 208 | + (betaIntegral ((1/2-σ : ℝ) : ℂ) ((2*σ : ℝ) : ℂ)).re (fun t => by | |
| 209 | + simpa [line, hw] using norm_betaIntegral_le_real (1/2-line σ t) w) | |
| 210 | + refine ⟨h.1, ?_⟩ | |
| 211 | + rw [← h.2] | |
| 212 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 213 | + intro r hr | |
| 214 | + dsimp only | |
| 215 | + rw [(difference_slice_mellin φ σ hpair hσ hσupper w hw r hr).2] | |
| 216 | + | |
| 217 | +lemma sum_convolution_slices_mellin (φ : ℝ → ℝ) (σ : ℝ) | |
| 218 | + (hpair : ∀ (g : ℝ → ℂ), Measurable g → | |
| 219 | + IntegrableOn (fun u : ℝ => (u : ℂ)^(-1/2-(σ : ℂ)) * g u) (Ioi 0) → | |
| 220 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 221 | + ∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-line σ t) * g u) ∧ | |
| 222 | + (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * g u) = | |
| 223 | + verticalMellin σ (fun s => mellinWeight φ s * | |
| 224 | + ∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-s) * g u)) | |
| 225 | + (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) | |
| 226 | + (hφm : Measurable φ) (hMm : Measurable (mellinWeight φ)) | |
| 227 | + (hMv : Integrable (fun t : ℝ => mellinWeight φ (line σ t))) | |
| 228 | + (hc : MellinConvergent (fun u => (companion φ u : ℂ)) (w-(σ : ℂ))) : | |
| 229 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 230 | + mellinWeight φ (w-line σ t) * betaIntegral (1/2-line σ t) (1/2+line σ t-w)) ∧ | |
| 231 | + (∫ r in Ioi (0 : ℝ), (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * (u+r : ℂ)^(w-1)) * (φ r : ℂ)) = | |
| 232 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) (1/2+s-w)) := by | |
| 233 | + have h := mellin_beta_outer_pairing φ σ w hφm hMm hMv hc (fun s => betaIntegral (1/2-s) (1/2+s-w)) | |
| 234 | + (measurable_betaIntegral _ _ (by unfold line; fun_prop) (by unfold line; fun_prop)) | |
| 235 | + (betaIntegral ((1/2-σ : ℝ) : ℂ) ((1/2-σ : ℝ) : ℂ)).re (fun t => by | |
| 236 | + have he : (1/2+line σ t-w).re = 1/2-σ := by simp [line, hw]; ring | |
| 237 | + have hb := norm_betaIntegral_le_real (1/2-line σ t) (1/2+line σ t-w) | |
| 238 | + rw [he] at hb | |
| 239 | + simpa [line] using hb) | |
| 240 | + refine ⟨h.1, ?_⟩ | |
| 241 | + rw [← h.2] | |
| 242 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 243 | + intro r hr | |
| 244 | + dsimp only | |
| 245 | + rw [(sum_slice_mellin φ σ hpair hσ hσupper w hw r hr).2] | |
| 246 | + | |
| 247 | +end MellinConvolution | |
| 248 | +end ConditionalGoldbach | |
+97 −0 ConditionalGoldbach/Proofs/MellinBetaInner.lean added View file
| @@ -0,0 +1,97 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.BetaIntegrals | |
| 4 | +public import ConditionalGoldbach.Proofs.BetaIdentity | |
| 5 | + | |
| 6 | +/-! The inner Beta integrals in the convolution–Mellin calculation, including norm integrals. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma beta_real_integrand_re (u v : ℝ) (hu : 0 < u) (hv : 0 < v) (s z : ℂ) : | |
| 16 | + ‖(u : ℂ)^(-1/2-s) * (v : ℂ)^(-1/2-z)‖ = | |
| 17 | + ((u : ℂ)^(-1/2-(s.re : ℂ)) * (v : ℂ)^(-1/2-(z.re : ℂ))).re := by | |
| 18 | + rw [norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos hu, | |
| 19 | + Complex.norm_cpow_eq_rpow_re_of_pos hv] | |
| 20 | + have hs : (-1/2-(s.re : ℂ)) = ((-1/2-s.re : ℝ) : ℂ) := by push_cast; rfl | |
| 21 | + have hz : (-1/2-(z.re : ℂ)) = ((-1/2-z.re : ℝ) : ℂ) := by push_cast; rfl | |
| 22 | + rw [hs, hz, ← Complex.ofReal_cpow hu.le, ← Complex.ofReal_cpow hv.le, | |
| 23 | + ← ofReal_mul, ofReal_re] | |
| 24 | + congr 1 <;> simp | |
| 25 | + | |
| 26 | +lemma beta_difference_norm_integral (r : ℝ) (hr : 0 < r) (s z : ℂ) | |
| 27 | + (hd : (s,z) ∈ betaDomain) : | |
| 28 | + (∫ u in Ioi (0 : ℝ), ‖(u : ℂ)^(-1/2-s) * (u+r : ℂ)^(-1/2-z)‖) = | |
| 29 | + r ^ (-(s.re+z.re)) * (betaIntegral ((1/2 : ℝ)-s.re) (s.re+z.re)).re := by | |
| 30 | + have hd' : ((s.re : ℂ),(z.re : ℂ)) ∈ betaDomain := by | |
| 31 | + simpa only [betaDomain, Set.mem_ofPred_eq, ofReal_re, add_re] using hd | |
| 32 | + calc | |
| 33 | + _ = ∫ u in Ioi (0 : ℝ), | |
| 34 | + ((u : ℂ)^(-1/2-(s.re : ℂ)) * (u+r : ℂ)^(-1/2-(z.re : ℂ))).re := by | |
| 35 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 36 | + intro u hu | |
| 37 | + simpa only [ofReal_add] using beta_real_integrand_re u (u+r) hu (add_pos hu hr) s z | |
| 38 | + _ = (∫ u in Ioi (0 : ℝ), | |
| 39 | + (u : ℂ)^(-1/2-(s.re : ℂ)) * (u+r : ℂ)^(-1/2-(z.re : ℂ))).re := | |
| 40 | + integral_re (beta_difference_integrable r hr _ _ hd') | |
| 41 | + _ = _ := by | |
| 42 | + rw [beta_difference_integral r hr] | |
| 43 | + have he : -((s.re : ℂ)+(z.re : ℂ)) = (-(s.re+z.re) : ℝ) := by push_cast; rfl | |
| 44 | + rw [he, ← Complex.ofReal_cpow hr.le] | |
| 45 | + simp only [Complex.mul_re, ofReal_re, ofReal_im, zero_mul, sub_zero] | |
| 46 | + congr 2; push_cast; rfl | |
| 47 | + | |
| 48 | +lemma beta_sum_norm_integral (r : ℝ) (hr : 0 < r) (s z : ℂ) | |
| 49 | + (hd : (s,z) ∈ betaDomain) : | |
| 50 | + (∫ u in Ioo (0 : ℝ) r, ‖(u : ℂ)^(-1/2-s) * (r-u : ℂ)^(-1/2-z)‖) = | |
| 51 | + r ^ (-(s.re+z.re)) * (betaIntegral ((1/2 : ℝ)-s.re) ((1/2 : ℝ)-z.re)).re := by | |
| 52 | + have hd' : ((s.re : ℂ),(z.re : ℂ)) ∈ betaDomain := by | |
| 53 | + simpa only [betaDomain, Set.mem_ofPred_eq, ofReal_re, add_re] using hd | |
| 54 | + calc | |
| 55 | + _ = ∫ u in Ioo (0 : ℝ) r, | |
| 56 | + ((u : ℂ)^(-1/2-(s.re : ℂ)) * (r-u : ℂ)^(-1/2-(z.re : ℂ))).re := by | |
| 57 | + apply setIntegral_congr_fun measurableSet_Ioo | |
| 58 | + intro u hu | |
| 59 | + simpa only [ofReal_sub] using beta_real_integrand_re u (r-u) hu.1 (sub_pos.mpr hu.2) s z | |
| 60 | + _ = (∫ u in Ioo (0 : ℝ) r, | |
| 61 | + (u : ℂ)^(-1/2-(s.re : ℂ)) * (r-u : ℂ)^(-1/2-(z.re : ℂ))).re := | |
| 62 | + integral_re (beta_sum_integrable r hr _ _ hd') | |
| 63 | + _ = _ := by | |
| 64 | + rw [beta_sum_integral r hr] | |
| 65 | + have he : -((s.re : ℂ)+(z.re : ℂ)) = (-(s.re+z.re) : ℝ) := by push_cast; rfl | |
| 66 | + rw [he, ← Complex.ofReal_cpow hr.le] | |
| 67 | + simp only [Complex.mul_re, ofReal_re, ofReal_im, zero_mul, sub_zero] | |
| 68 | + congr 2; push_cast; rfl | |
| 69 | + | |
| 70 | +lemma convolution_betaDomain (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) | |
| 71 | + (s w : ℂ) (hs : s.re = σ) (hw : w.re = 2*σ) : | |
| 72 | + (s, 1/2-w) ∈ betaDomain := by | |
| 73 | + change s.re < 1/2 ∧ (1/2-w).re < 1/2 ∧ 0 < (s+(1/2-w)).re | |
| 74 | + norm_num [hs, hw] | |
| 75 | + constructor | |
| 76 | + · linarith | |
| 77 | + constructor <;> linarith | |
| 78 | + | |
| 79 | +lemma convolution_inner_beta_sum (r : ℝ) (hr : 0 < r) (s w : ℂ) : | |
| 80 | + (∫ u in Ioo (0 : ℝ) r, (u : ℂ)^(-1/2-s) * (r-u : ℂ)^(w-1)) = | |
| 81 | + (r : ℂ)^(w-1/2-s) * betaIntegral (1/2-s) w := by | |
| 82 | + have he : -1/2-(1/2-w) = w-1 := by ring | |
| 83 | + have he' : -(s+(1/2-w)) = w-1/2-s := by ring | |
| 84 | + have he'' : (1/2 : ℂ)-(1/2-w) = w := by ring | |
| 85 | + simpa only [he, he', he''] using beta_sum_integral r hr s (1/2-w) | |
| 86 | + | |
| 87 | +lemma convolution_inner_beta_difference (r : ℝ) (hr : 0 < r) (s w : ℂ) : | |
| 88 | + (∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-s) * (u+r : ℂ)^(w-1)) = | |
| 89 | + (r : ℂ)^(w-1/2-s) * betaIntegral (1/2-s) (1/2+s-w) := by | |
| 90 | + have he : -1/2-(1/2-w) = w-1 := by ring | |
| 91 | + have he' : -(s+(1/2-w)) = w-1/2-s := by ring | |
| 92 | + have he'' : s+(1/2-w) = 1/2+s-w := by ring | |
| 93 | + have h := beta_difference_integral r hr s (1/2-w) | |
| 94 | + rw [he, he'] at h | |
| 95 | + simpa only [he''] using h | |
| 96 | + | |
| 97 | +end ConditionalGoldbach | |
+113 −0 ConditionalGoldbach/Proofs/MellinBetaPairing.lean added View file
| @@ -0,0 +1,113 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinBasic | |
| 4 | +public import ConditionalGoldbach.Proofs.BetaIntegrals | |
| 5 | + | |
| 6 | +/-! Absolute Fubini pairing for Mellin inversion, used in the Beta–Mellin identity. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma measurable_complex_cpow {α : Type*} [MeasurableSpace α] (f g : α → ℂ) | |
| 16 | + (hf : Measurable f) (hg : Measurable g) : Measurable (fun x => f x ^ g x) := by | |
| 17 | + simp_rw [Complex.cpow_def] | |
| 18 | + exact Measurable.ite (hf (measurableSet_singleton 0)) | |
| 19 | + (Measurable.ite (hg (measurableSet_singleton 0)) measurable_const measurable_const) | |
| 20 | + (Complex.continuous_exp.measurable.comp ((Complex.measurable_log.comp hf).mul hg)) | |
| 21 | + | |
| 22 | +lemma mellinWeight_pairing_integrable (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 23 | + (σ : ℝ) (g : ℝ → ℂ) (hg : Measurable g) | |
| 24 | + (hi : IntegrableOn (fun u : ℝ => (u : ℂ) ^ (-(σ : ℂ)) * g u) (Ioi 0)) : | |
| 25 | + Integrable (fun p : ℝ × ℝ => mellinWeight φ (line σ p.1) * | |
| 26 | + (p.2 : ℂ) ^ (-line σ p.1) * g p.2) (volume.prod (volume.restrict (Ioi 0))) := by | |
| 27 | + have hm : Measurable (fun p : ℝ × ℝ => mellinWeight φ (line σ p.1) * | |
| 28 | + (p.2 : ℂ) ^ (-line σ p.1) * g p.2) := by | |
| 29 | + apply Measurable.mul | |
| 30 | + · apply Measurable.mul | |
| 31 | + · exact (mellinWeight_differentiable hφ).continuous.measurable.comp (by unfold line; fun_prop) | |
| 32 | + · exact measurable_complex_cpow _ _ (by fun_prop) (by unfold line; fun_prop) | |
| 33 | + · exact hg.comp measurable_snd | |
| 34 | + apply ((mellinWeight_verticalIntegrable hφ σ).norm.mul_prod hi.norm).mono' hm.aestronglyMeasurable | |
| 35 | + filter_upwards [Measure.quasiMeasurePreserving_snd.ae | |
| 36 | + (ae_restrict_mem measurableSet_Ioi)] with p hu | |
| 37 | + rcases p with ⟨t, u⟩ | |
| 38 | + simp only [norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos hu, neg_re, ofReal_re] | |
| 39 | + simp only [line, add_re, ofReal_re, mul_re, ofReal_im, I_re, I_im, mul_zero, | |
| 40 | + zero_mul, sub_self, add_zero] | |
| 41 | + exact (mul_assoc _ _ _).le | |
| 42 | + | |
| 43 | +lemma mellinWeight_pairing (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 44 | + (σ : ℝ) (g : ℝ → ℂ) (hg : Measurable g) | |
| 45 | + (hi : IntegrableOn (fun u : ℝ => (u : ℂ) ^ (-(σ : ℂ)) * g u) (Ioi 0)) : | |
| 46 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 47 | + ∫ u in Ioi (0 : ℝ), (u : ℂ) ^ (-line σ t) * g u) ∧ | |
| 48 | + (∫ u in Ioi (0 : ℝ), (companion φ u : ℂ) * g u) = | |
| 49 | + verticalMellin σ (fun s => mellinWeight φ s * | |
| 50 | + ∫ u in Ioi (0 : ℝ), (u : ℂ) ^ (-s) * g u) := by | |
| 51 | + have hF := mellinWeight_pairing_integrable φ hφ σ g hg hi | |
| 52 | + constructor | |
| 53 | + · simpa only [mul_assoc, integral_const_mul] using hF.integral_prod_left | |
| 54 | + · have hs := integral_integral_swap (f := fun t u : ℝ => | |
| 55 | + mellinWeight φ (line σ t) * (u : ℂ) ^ (-line σ t) * g u) hF | |
| 56 | + simp only [integral_mul_const] at hs | |
| 57 | + unfold verticalMellin | |
| 58 | + simp only [mul_assoc, integral_const_mul] at hs | |
| 59 | + rw [hs] | |
| 60 | + rw [← integral_const_mul] | |
| 61 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 62 | + intro u hu | |
| 63 | + dsimp only | |
| 64 | + rw [mellinWeight_inversion hφ σ u hu] | |
| 65 | + simp only [verticalMellin, mul_assoc] | |
| 66 | + | |
| 67 | +lemma companion_mul_neg_half (φ : ℝ → ℝ) (u : ℝ) (hu : 0 < u) : | |
| 68 | + (companion φ u : ℂ) * (u : ℂ)^(-1/2 : ℂ) = (φ u : ℂ) := by | |
| 69 | + have hh : (u : ℂ)^(1/2 : ℂ) = (Real.sqrt u : ℂ) := by | |
| 70 | + rw [Real.sqrt_eq_rpow, Complex.ofReal_cpow hu.le] | |
| 71 | + congr 1 | |
| 72 | + norm_num | |
| 73 | + have he : (-1/2 : ℂ) = -(1/2) := by ring | |
| 74 | + rw [he, cpow_neg, hh, companion, ofReal_mul] | |
| 75 | + field_simp [Complex.ofReal_ne_zero.mpr (Real.sqrt_pos.mpr hu).ne'] | |
| 76 | + | |
| 77 | +lemma mellin_phi_kernel_pairing (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 78 | + (σ : ℝ) (g : ℝ → ℂ) (hg : Measurable g) | |
| 79 | + (hi : IntegrableOn (fun u : ℝ => (u : ℂ)^(-1/2-(σ : ℂ)) * g u) (Ioi 0)) : | |
| 80 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 81 | + ∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-line σ t) * g u) ∧ | |
| 82 | + (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * g u) = | |
| 83 | + verticalMellin σ (fun s => mellinWeight φ s * | |
| 84 | + ∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-s) * g u) := by | |
| 85 | + have hp (s : ℂ) (u : ℝ) (hu : 0 < u) : | |
| 86 | + (u : ℂ)^(-s) * ((u : ℂ)^(-1/2 : ℂ) * g u) = | |
| 87 | + (u : ℂ)^(-1/2-s) * g u := by | |
| 88 | + rw [← mul_assoc, ← cpow_add _ _ (Complex.ofReal_ne_zero.mpr hu.ne')] | |
| 89 | + congr 2 | |
| 90 | + ring | |
| 91 | + have hg' : Measurable (fun u : ℝ => (u : ℂ)^(-1/2 : ℂ) * g u) := | |
| 92 | + (measurable_complex_cpow _ _ (by fun_prop) measurable_const).mul hg | |
| 93 | + have hi' : IntegrableOn (fun u : ℝ => (u : ℂ)^(-(σ : ℂ)) * | |
| 94 | + ((u : ℂ)^(-1/2 : ℂ) * g u)) (Ioi 0) := by | |
| 95 | + apply hi.congr_fun _ measurableSet_Ioi | |
| 96 | + intro u hu | |
| 97 | + exact (hp σ u hu).symm | |
| 98 | + have h := mellinWeight_pairing φ hφ σ _ hg' hi' | |
| 99 | + have he (s : ℂ) : (∫ u in Ioi (0 : ℝ), (u : ℂ)^(-s) * | |
| 100 | + ((u : ℂ)^(-1/2 : ℂ) * g u)) = | |
| 101 | + ∫ u in Ioi (0 : ℝ), (u : ℂ)^(-1/2-s) * g u := by | |
| 102 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 103 | + intro u hu | |
| 104 | + exact hp s u hu | |
| 105 | + simp only [he] at h | |
| 106 | + refine ⟨h.1, ?_⟩ | |
| 107 | + rw [← h.2] | |
| 108 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 109 | + intro u hu | |
| 110 | + dsimp only | |
| 111 | + rw [← mul_assoc, companion_mul_neg_half φ u hu] | |
| 112 | + | |
| 113 | +end ConditionalGoldbach | |
+90 −0 ConditionalGoldbach/Proofs/MellinBetaRelation.lean added View file
| @@ -0,0 +1,90 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinConvolutionTransform | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinCompactPositive | |
| 5 | + | |
| 6 | +/-! The exact signed Beta–Mellin relation, with the three original Beta terms. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma line_sub_line_reflection (σ : ℝ) (w : ℂ) (hw : w.re = 2*σ) (t : ℝ) : | |
| 16 | + w-line σ t = line σ (w.im-t) := by | |
| 17 | + apply Complex.ext <;> simp [line, hw]; ring | |
| 18 | + | |
| 19 | +lemma verticalMellin_reflection (f : ℂ → ℂ) (σ : ℝ) (w : ℂ) (hw : w.re = 2*σ) : | |
| 20 | + verticalMellin σ (fun s => f (w-s)) = verticalMellin σ f := by | |
| 21 | + unfold verticalMellin | |
| 22 | + simp_rw [line_sub_line_reflection σ w hw] | |
| 23 | + rw [integral_sub_left_eq_self (fun t : ℝ => f (line σ t)) volume w.im] | |
| 24 | + | |
| 25 | +lemma mellin_signedConvolution_eq (φ : ℝ → ℝ) (hφ : IsWeight φ) (w : ℂ) (hw : 0 < w.re) : | |
| 26 | + mellin (fun y => (signedConvolution φ y : ℂ)) w = | |
| 27 | + 2 * mellin (fun y => (differenceConvolution φ y : ℂ)) w - | |
| 28 | + mellin (fun y => (sumConvolution φ y : ℂ)) w := by | |
| 29 | + have hC := (compact_mellin_regular (differenceConvolution φ) | |
| 30 | + (differenceConvolution_contDiff φ hφ).continuous _ _ (differenceConvolution_support φ hφ) w hw).1 | |
| 31 | + have hJ := (compact_mellin_regular (sumConvolution φ) | |
| 32 | + (sumConvolution_contDiff φ hφ).continuous _ _ (sumConvolution_support φ hφ) w hw).1 | |
| 33 | + simp only [MellinConvergent, smul_eq_mul] at hC hJ | |
| 34 | + unfold mellin | |
| 35 | + simp only [smul_eq_mul, signedConvolution, ofReal_sub, ofReal_mul, ofReal_ofNat, mul_sub] | |
| 36 | + simp_rw [show ∀ a b : ℂ, a * (2*b) = 2*(a*b) by intros; ring] | |
| 37 | + rw [integral_sub (hC.const_mul 2) hJ, integral_const_mul] | |
| 38 | + | |
| 39 | +lemma signedConvolution_mellin_beta (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 40 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) : | |
| 41 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 42 | + mellinWeight φ (w-line σ t) * betaKernel (line σ t) (w-line σ t)) ∧ | |
| 43 | + mellin (fun y => (signedConvolution φ y : ℂ)) w = | |
| 44 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaKernel s (w-s)) := by | |
| 45 | + obtain ⟨hCi,hC⟩ := differenceConvolution_mellin_beta φ hφ σ hσ hσupper w hw | |
| 46 | + obtain ⟨hJi,hJ⟩ := sumConvolution_mellin_beta φ hφ σ hσ hσupper w hw | |
| 47 | + let C₁ : ℂ → ℂ := fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) w | |
| 48 | + let C₂ : ℂ → ℂ := fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-(w-s)) w | |
| 49 | + let J : ℂ → ℂ := fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) (1/2+s-w) | |
| 50 | + change Integrable (fun t : ℝ => C₁ (line σ t)) at hCi | |
| 51 | + change Integrable (fun t : ℝ => J (line σ t)) at hJi | |
| 52 | + have hflip (s : ℂ) : C₂ s = C₁ (w-s) := by | |
| 53 | + dsimp [C₁,C₂] | |
| 54 | + rw [sub_sub_cancel] | |
| 55 | + ring | |
| 56 | + have hC₂i : Integrable (fun t : ℝ => C₂ (line σ t)) := by | |
| 57 | + apply (hCi.comp_sub_left w.im).congr | |
| 58 | + filter_upwards [] with t | |
| 59 | + change C₁ (line σ (w.im-t)) = C₂ (line σ t) | |
| 60 | + rw [hflip, line_sub_line_reflection σ w hw] | |
| 61 | + have hC₂ : verticalMellin σ C₂ = mellin (fun y => (differenceConvolution φ y : ℂ)) w := by | |
| 62 | + have hefun : C₂ = fun s => C₁ (w-s) := funext hflip | |
| 63 | + rw [hefun, verticalMellin_reflection C₁ σ w hw] | |
| 64 | + exact hC.symm | |
| 65 | + have hk (s : ℂ) : mellinWeight φ s * mellinWeight φ (w-s) * betaKernel s (w-s) = | |
| 66 | + C₁ s + C₂ s - J s := by | |
| 67 | + dsimp [betaKernel, C₁,C₂,J] | |
| 68 | + rw [add_sub_cancel] | |
| 69 | + have he : (1/2 : ℂ)-(w-s) = 1/2+s-w := by ring | |
| 70 | + rw [he] | |
| 71 | + ring | |
| 72 | + constructor | |
| 73 | + · simp_rw [hk] | |
| 74 | + exact (hCi.add hC₂i).sub hJi | |
| 75 | + · rw [mellin_signedConvolution_eq φ hφ w (by linarith)] | |
| 76 | + simp_rw [hk] | |
| 77 | + unfold verticalMellin | |
| 78 | + dsimp only | |
| 79 | + rw [integral_sub (f := fun t : ℝ => C₁ (line σ t) + C₂ (line σ t)) | |
| 80 | + (g := fun t : ℝ => J (line σ t)) (hCi.add hC₂i) hJi, | |
| 81 | + integral_add (f := fun t : ℝ => C₁ (line σ t)) (g := fun t : ℝ => C₂ (line σ t)) hCi hC₂i] | |
| 82 | + have he : (2*(Real.pi : ℂ))⁻¹ * | |
| 83 | + ((∫ t : ℝ, C₁ (line σ t)) + (∫ t : ℝ, C₂ (line σ t)) - (∫ t : ℝ, J (line σ t))) = | |
| 84 | + verticalMellin σ C₁ + verticalMellin σ C₂ - verticalMellin σ J := by | |
| 85 | + unfold verticalMellin | |
| 86 | + ring | |
| 87 | + rw [he, ← hC, hC₂, ← hJ] | |
| 88 | + ring | |
| 89 | + | |
| 90 | +end ConditionalGoldbach | |
+173 −0 ConditionalGoldbach/Proofs/MellinCharacterShift.lean added View file
| @@ -0,0 +1,173 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterGrowth | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinContourShift | |
| 5 | +public import ConditionalGoldbach.Proofs.MellinDifferentiation | |
| 6 | +public import ConditionalGoldbach.Proofs.MellinMoment | |
| 7 | + | |
| 8 | +/-! Character projection shifted to the GRH half-plane. -/ | |
| 9 | +public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 14 | +open MeasureTheory Filter Set Complex | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | + | |
| 17 | +lemma log_square_polynomial_bound (N : ℕ) (hN : 4 ≤ N) (t : ℝ) : | |
| 18 | + Real.log (N * (|t| + 2)) ^ 2 ≤ 4 * (N : ℝ) ^ 2 * (1 + |t|) ^ 2 := by | |
| 19 | + have hNr : (4 : ℝ) ≤ N := by exact_mod_cast hN | |
| 20 | + have hpos : 0 < (N : ℝ) * (|t| + 2) := by positivity | |
| 21 | + have hone : 1 ≤ (N : ℝ) * (|t| + 2) := by nlinarith [abs_nonneg t] | |
| 22 | + have hl0 := Real.log_nonneg hone | |
| 23 | + have hl := Real.log_le_sub_one_of_pos hpos | |
| 24 | + have hbound : Real.log (N * (|t| + 2)) ≤ 2 * (N : ℝ) * (1 + |t|) := by | |
| 25 | + nlinarith [abs_nonneg t] | |
| 26 | + have hsq := sq_le_sq₀ hl0 (by positivity : 0 ≤ 2 * (N : ℝ) * (1 + |t|)) |>.mpr hbound | |
| 27 | + nlinarith | |
| 28 | + | |
| 29 | +lemma mellin_coefficient_differentiable (N : ℕ) (hN : 0 < N) (φ : ℝ → ℝ) | |
| 30 | + (hφ : IsWeight φ) : Differentiable ℂ (fun s : ℂ => (N : ℂ) ^ s * mellinWeight φ s) := by | |
| 31 | + have hNz : (N : ℂ) ≠ 0 := by exact_mod_cast hN.ne' | |
| 32 | + exact (differentiable_id.const_cpow (Or.inl hNz)).mul (mellinWeight_differentiable hφ) | |
| 33 | + | |
| 34 | +lemma mellin_character_uniform_bound (N : ℕ) (hN : 4 ≤ N) (φ : ℝ → ℝ) | |
| 35 | + (hφ : IsWeight φ) (lo A : ℝ) (hA : 0 ≤ A) (g : ℂ → ℂ) | |
| 36 | + (hg : ∀ x ∈ Icc lo 1, ∀ t : ℝ, | |
| 37 | + ‖g (line x t)‖ ≤ A * Real.log (N * (|t| + 2)) ^ 2) : | |
| 38 | + ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc lo 1, ∀ t : ℝ, | |
| 39 | + ‖(N : ℂ) ^ (line x t) * mellinWeight φ (line x t) * g (line x t)‖ ≤ | |
| 40 | + C * (1 + |t|)⁻¹ ^ 2 := by | |
| 41 | + obtain ⟨B, hB, hb⟩ := mellin_test_rapid_decay (companion φ) (companion_contDiff hφ) | |
| 42 | + (companion_support_subset hφ) lo 4 | |
| 43 | + refine ⟨(N : ℝ) * B * (4 * A * (N : ℝ) ^ 2), by positivity, ?_⟩ | |
| 44 | + intro x hx t | |
| 45 | + have hN1 : (1 : ℝ) ≤ N := by exact_mod_cast (by omega : 1 ≤ N) | |
| 46 | + have hNpos : 0 < (N : ℝ) := by exact_mod_cast (by omega : 0 < N) | |
| 47 | + have hNpow : ‖(N : ℂ) ^ (line x t)‖ ≤ N := by | |
| 48 | + rw [← Complex.ofReal_natCast, Complex.norm_cpow_eq_rpow_re_of_pos hNpos] | |
| 49 | + have hline : (line x t).re = x := by simp [line] | |
| 50 | + rw [hline] | |
| 51 | + simpa using Real.rpow_le_rpow_of_exponent_le hN1 hx.2 | |
| 52 | + have hm : ‖mellinWeight φ (line x t)‖ ≤ B * (1 + |t|)⁻¹ ^ 4 := by | |
| 53 | + simpa only [mellinWeight, line, add_re, ofReal_re, mul_re, ofReal_im, I_re, | |
| 54 | + I_im, mul_zero, zero_mul, sub_self, add_zero, add_im, mul_im, mul_one, | |
| 55 | + zero_add] using hb (line x t) (by simpa [line] using hx.1) | |
| 56 | + have hg' : ‖g (line x t)‖ ≤ (4 * A * (N : ℝ) ^ 2) * (1 + |t|) ^ 2 := by | |
| 57 | + have h := (hg x hx t).trans (mul_le_mul_of_nonneg_left (log_square_polynomial_bound N hN t) hA) | |
| 58 | + convert h using 1; ring | |
| 59 | + rw [norm_mul, norm_mul] | |
| 60 | + calc | |
| 61 | + _ ≤ ((N : ℝ) * (B * (1 + |t|)⁻¹ ^ 4)) * | |
| 62 | + ((4 * A * (N : ℝ) ^ 2) * (1 + |t|) ^ 2) := | |
| 63 | + mul_le_mul (mul_le_mul hNpow hm (norm_nonneg _) hNpos.le) hg' | |
| 64 | + (norm_nonneg _) (by positivity) | |
| 65 | + _ = _ := by | |
| 66 | + have ht : (1 + |t|) ≠ 0 := by positivity | |
| 67 | + field_simp | |
| 68 | + | |
| 69 | +lemma character_mellin_shift_of_log_bound {N : ℕ} [NeZero N] (hN : 4 ≤ N) | |
| 70 | + (hGRH : GRH N) (χ : Character N) (hχ : χ ∈ oddCharacters N) | |
| 71 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ A : ℝ) (hσ : 0 < σ) (hσ1 : σ ≤ 1) | |
| 72 | + (hA : 0 ≤ A) (hg : ∀ x ∈ Icc σ 1, ∀ t : ℝ, | |
| 73 | + ‖logDerivative χ (line x t)‖ ≤ A * Real.log (N * (|t| + 2)) ^ 2) : | |
| 74 | + Integrable (fun t : ℝ => (N : ℂ) ^ (line σ t) * mellinWeight φ (line σ t) * | |
| 75 | + logDerivative χ (line σ t)) ∧ | |
| 76 | + characterPolynomial χ φ = -verticalMellin σ (fun s => | |
| 77 | + (N : ℂ) ^ s * mellinWeight φ s * logDerivative χ s) := by | |
| 78 | + let f : ℂ → ℂ := fun s => (N : ℂ) ^ s * mellinWeight φ s * logDerivative χ s | |
| 79 | + have hNpos : 0 < N := by omega | |
| 80 | + have hd : ∀ z : ℂ, z.re ∈ Icc σ 1 → DifferentiableAt ℂ f z := by | |
| 81 | + intro z hz | |
| 82 | + exact ((mellin_coefficient_differentiable N hNpos φ hφ) z).mul | |
| 83 | + (odd_logDerivative_analyticAt_of_GRH hGRH χ hχ (hσ.trans_le hz.1)).differentiableAt | |
| 84 | + obtain ⟨C, _, hc⟩ := mellin_character_uniform_bound N hN φ hφ σ A hA (logDerivative χ) hg | |
| 85 | + have hcont : Continuous (fun t : ℝ => f (line σ t)) := by | |
| 86 | + apply continuous_iff_continuousAt.mpr | |
| 87 | + intro t | |
| 88 | + apply (hd (line σ t) (by simpa [line] using (show σ ∈ Icc σ 1 from ⟨le_rfl, hσ1⟩))).continuousAt.comp | |
| 89 | + unfold line | |
| 90 | + fun_prop | |
| 91 | + have hi : Integrable (fun t : ℝ => f (line σ t)) := | |
| 92 | + integrable_of_uniform_vertical_decay f σ C hcont (hc σ ⟨le_rfl, hσ1⟩) | |
| 93 | + refine ⟨hi, ?_⟩ | |
| 94 | + have hs := verticalMellin_eq_of_uniform_decay f σ 1 C hσ1 hd hi | |
| 95 | + (character_mellin_initial_integrable χ φ hφ 1 (by norm_num)) hc | |
| 96 | + rw [characterPolynomial_mellin_initial χ φ hφ 1 (by norm_num), ← hs] | |
| 97 | + | |
| 98 | +lemma character_mellin_shift {N : ℕ} [NeZero N] (_hN : Even N) (hN4 : 4 ≤ N) | |
| 99 | + (hGRH : GRH N) (χ : Character N) (hχ : χ ∈ oddCharacters N) | |
| 100 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (hσ : 0 < σ) (hσ1 : σ ≤ 1) : | |
| 101 | + Integrable (fun t : ℝ => (N : ℂ) ^ (line σ t) * mellinWeight φ (line σ t) * | |
| 102 | + logDerivative χ (line σ t)) ∧ | |
| 103 | + characterPolynomial χ φ = -verticalMellin σ (fun s => | |
| 104 | + (N : ℂ) ^ s * mellinWeight φ s * logDerivative χ s) := by | |
| 105 | + obtain ⟨A, hA, hg⟩ := logDerivative_uniform_bound σ 1 hσ hσ1 | |
| 106 | + exact character_mellin_shift_of_log_bound hN4 hGRH χ hχ φ hφ σ A hσ hσ1 hA.le | |
| 107 | + (hg N inferInstance hN4 hGRH χ (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2)) | |
| 108 | + | |
| 109 | +theorem lemma_7_1 (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 110 | + (∀ σ u : ℝ, 0 < u → (companion φ u : ℂ) = | |
| 111 | + verticalMellin σ (fun s => mellinWeight φ s * (u : ℂ) ^ (-s))) ∧ | |
| 112 | + (∀ lo hi : ℝ, lo ≤ hi → ∃ C : ℝ, 0 < C ∧ | |
| 113 | + ∀ σ ∈ Icc lo hi, ∀ t : ℝ, ‖mellinWeight φ (line σ t)‖ ≤ C * (1 + |t|)⁻¹ ^ 6) ∧ | |
| 114 | + (∀ N : ℕ, ∀ (_ : NeZero N), Even N → 4 ≤ N → GRH N → | |
| 115 | + ∀ χ ∈ oddCharacters N, ∀ σ : ℝ, 0 < σ → σ ≤ 1 / 9 → | |
| 116 | + characterPolynomial χ φ = -verticalMellin σ (fun s => | |
| 117 | + (N : ℂ) ^ s * mellinWeight φ s * logDerivative χ s)) := by | |
| 118 | + refine ⟨mellinWeight_inversion hφ, mellinWeight_uniform_decay φ hφ, ?_⟩ | |
| 119 | + intro N _ hN hN4 hGRH χ hχ σ hσ hσ1 | |
| 120 | + exact (character_mellin_shift hN hN4 hGRH χ hχ φ hφ σ hσ (by linarith)).2 | |
| 121 | + | |
| 122 | +lemma characterMoment_mellin_shifted (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) | |
| 123 | + (hGRH : GRH N) (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) | |
| 124 | + (hσ : 0 < σ) (hσ1 : σ ≤ 1) : | |
| 125 | + Integrable (fun p : ℝ × ℝ => | |
| 126 | + (N : ℂ) ^ (line σ p.1 + line σ p.2) * mellinWeight φ (line σ p.1) * | |
| 127 | + mellinWeight φ (line σ p.2) * characterKernel N (line σ p.1) (line σ p.2)) ∧ | |
| 128 | + (characterMoment N φ : ℂ) = verticalMellin σ (fun s => verticalMellin σ (fun z => | |
| 129 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * characterKernel N s z)) := by | |
| 130 | + have hi (χ : Character N) (hχ : χ ∈ oddCharacters N) := | |
| 131 | + character_mellin_shift hN hN4 hGRH χ hχ φ hφ σ hσ hσ1 | |
| 132 | + have hibar (χ : Character N) (hχ : χ ∈ oddCharacters N) := | |
| 133 | + character_mellin_shift hN hN4 hGRH (star χ) ((star_mem_oddCharacters χ).2 hχ) φ hφ σ hσ hσ1 | |
| 134 | + constructor | |
| 135 | + · simp_rw [weighted_characterKernel_factor] | |
| 136 | + apply Integrable.const_mul | |
| 137 | + apply integrable_finsetSum | |
| 138 | + intro χ hχ | |
| 139 | + exact (hi χ hχ).1.mul_prod (hibar χ hχ).1 | |
| 140 | + · simp_rw [weighted_characterKernel_factor] | |
| 141 | + rw [double_verticalMellin_finset_prod (oddCharacters N) σ _ _ _ | |
| 142 | + (fun χ hχ => (hi χ hχ).1) (fun χ hχ => (hibar χ hχ).1)] | |
| 143 | + unfold characterMoment | |
| 144 | + push_cast | |
| 145 | + congr 1 | |
| 146 | + apply Finset.sum_congr rfl | |
| 147 | + intro χ hχ | |
| 148 | + calc | |
| 149 | + _ = characterPolynomial χ φ * characterPolynomial (star χ) φ := by | |
| 150 | + rw [characterPolynomial_star, Complex.mul_conj, Complex.normSq_eq_norm_sq] | |
| 151 | + push_cast | |
| 152 | + rfl | |
| 153 | + _ = _ := by rw [(hi χ hχ).2, (hibar χ hχ).2]; ring | |
| 154 | + | |
| 155 | +theorem lemma_7_1_absolute_convergence (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 156 | + (∀ σ u : ℝ, 0 < u → Integrable (fun t : ℝ => | |
| 157 | + mellinWeight φ (line σ t) * (u : ℂ) ^ (-line σ t))) ∧ | |
| 158 | + (∀ N : ℕ, ∀ (_ : NeZero N), Even N → 4 ≤ N → GRH N → | |
| 159 | + ∀ σ : ℝ, 0 < σ → σ ≤ 1 / 9 → | |
| 160 | + (∀ χ ∈ oddCharacters N, Integrable (fun t : ℝ => | |
| 161 | + (N : ℂ) ^ (line σ t) * mellinWeight φ (line σ t) * logDerivative χ (line σ t))) ∧ | |
| 162 | + Integrable (fun p : ℝ × ℝ => | |
| 163 | + (N : ℂ) ^ (line σ p.1 + line σ p.2) * mellinWeight φ (line σ p.1) * | |
| 164 | + mellinWeight φ (line σ p.2) * characterKernel N (line σ p.1) (line σ p.2)) ∧ | |
| 165 | + (characterMoment N φ : ℂ) = verticalMellin σ (fun s => verticalMellin σ (fun z => | |
| 166 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * characterKernel N s z))) := by | |
| 167 | + refine ⟨mellinWeight_inversion_integrable hφ, ?_⟩ | |
| 168 | + intro N _ hN hN4 hGRH σ hσ hσ1 | |
| 169 | + refine ⟨?_, characterMoment_mellin_shifted N hN hN4 hGRH φ hφ σ hσ (by linarith)⟩ | |
| 170 | + intro χ hχ | |
| 171 | + exact (character_mellin_shift hN hN4 hGRH χ hχ φ hφ σ hσ (by linarith)).1 | |
| 172 | + | |
| 173 | +end ConditionalGoldbach | |
+239 −0 ConditionalGoldbach/Proofs/MellinCompactPositive.lean added View file
| @@ -0,0 +1,239 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.MellinInversion | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinDifferentiation | |
| 5 | +public import ConditionalGoldbach.Proofs.MellinConvolution | |
| 6 | +public import ConditionalGoldbach.Proofs.MellinContourShift | |
| 7 | + | |
| 8 | +/-! Mellin decay for smooth compact functions whose support can meet zero. -/ | |
| 9 | +public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 14 | +open MeasureTheory Filter Set Complex | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | + | |
| 17 | +lemma compact_mellin_regular (f : ℝ → ℝ) (hf : Continuous f) (A B : ℝ) | |
| 18 | + (hsupp : Function.support f ⊆ Icc A B) (s : ℂ) (hs : 0 < s.re) : | |
| 19 | + MellinConvergent (fun y => (f y : ℂ)) s ∧ | |
| 20 | + DifferentiableAt ℂ (mellin (fun y => (f y : ℂ))) s := by | |
| 21 | + have hc : Continuous (fun y => (f y : ℂ)) := Complex.continuous_ofReal.comp hf | |
| 22 | + have htop : (fun y => (f y : ℂ)) =ᶠ[atTop] 0 := by | |
| 23 | + filter_upwards [eventually_gt_atTop B] with y hy | |
| 24 | + have hz : f y = 0 := by | |
| 25 | + by_contra hn | |
| 26 | + exact (not_lt_of_ge (hsupp hn).2) hy | |
| 27 | + simp [hz] | |
| 28 | + have hbot : (fun y => (f y : ℂ)) =O[𝓝[>] (0 : ℝ)] (fun y : ℝ => y ^ (-(0 : ℝ))) := by | |
| 29 | + simpa using (hc.continuousAt.tendsto.mono_left nhdsWithin_le_nhds).isBigO_one ℝ | |
| 30 | + have hloc := (hc.locallyIntegrable (μ := volume)).locallyIntegrableOn (Ioi (0 : ℝ)) | |
| 31 | + exact ⟨mellinConvergent_of_isBigO_rpow (a := s.re + 1) (b := 0) hloc | |
| 32 | + (htop.trans_isBigO (Asymptotics.isBigO_zero _ _)) (by linarith) hbot hs, | |
| 33 | + mellin_differentiableAt_of_isBigO_rpow (a := s.re + 1) (b := 0) hloc | |
| 34 | + (htop.trans_isBigO (Asymptotics.isBigO_zero _ _)) (by linarith) hbot hs⟩ | |
| 35 | + | |
| 36 | +lemma mellinD_support_Icc {f : ℝ → ℝ} {A B : ℝ} | |
| 37 | + (hs : Function.support f ⊆ Icc A B) : Function.support (mellinD f) ⊆ Icc A B := by | |
| 38 | + have ht : tsupport f ⊆ Icc A B := closure_minimal hs isClosed_Icc | |
| 39 | + intro x hx | |
| 40 | + by_contra hout | |
| 41 | + have hz : f x = 0 := by by_contra hn; exact hout (hs hn) | |
| 42 | + have hdz : deriv f x = 0 := by by_contra hn; exact hout (ht (support_deriv_subset hn)) | |
| 43 | + exact hx (by simp [mellinD, hz, hdz]) | |
| 44 | + | |
| 45 | +lemma mellinD_transform_positive (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) (A B : ℝ) | |
| 46 | + (hsupp : Function.support f ⊆ Icc A B) (s : ℂ) (hs : 0 < s.re) : | |
| 47 | + mellin (fun u => (mellinD f u : ℂ)) s = (1 + s) * mellin (fun u => (f u : ℂ)) s := by | |
| 48 | + let F : ℝ → ℂ := fun u => (u : ℂ) ^ (s - 1) * (f u : ℂ) | |
| 49 | + let G : ℝ → ℂ := fun u => (u : ℂ) ^ s * ((deriv f u : ℝ) : ℂ) | |
| 50 | + have hdf : ContDiff ℝ ∞ (deriv f) := (contDiff_infty_iff_deriv.mp hf).2 | |
| 51 | + have hdfs : Function.support (deriv f) ⊆ Icc A B := | |
| 52 | + support_deriv_subset.trans (closure_minimal hsupp isClosed_Icc) | |
| 53 | + have hF : IntegrableOn F (Ioi 0) := (compact_mellin_regular f hf.continuous A B hsupp s hs).1 | |
| 54 | + have hG : IntegrableOn G (Ioi 0) := by | |
| 55 | + have h := (compact_mellin_regular (deriv f) hdf.continuous A B hdfs (s + 1) (by simpa using hs.trans (lt_add_one s.re))).1 | |
| 56 | + simpa only [MellinConvergent, add_sub_cancel_right, smul_eq_mul, G] using h | |
| 57 | + have hs0 : s ≠ 0 := by intro h; simp [h] at hs | |
| 58 | + have hFTC : (∫ u in Ioi (0 : ℝ), s * F u + G u) = 0 := by | |
| 59 | + have hd (u : ℝ) (hu : u ∈ Ioi (0 : ℝ)) : | |
| 60 | + HasDerivAt (fun u : ℝ => (u : ℂ) ^ s * (f u : ℂ)) (s * F u + G u) u := by | |
| 61 | + have hcp := hasDerivAt_ofReal_cpow_const (ne_of_gt hu) hs0 | |
| 62 | + convert hcp.mul ((hf.differentiable (by norm_num) u).hasDerivAt.ofReal_comp) using 1 | |
| 63 | + dsimp [F, G] | |
| 64 | + ring | |
| 65 | + have hc : ContinuousWithinAt (fun u : ℝ => (u : ℂ) ^ s * (f u : ℂ)) (Ici 0) 0 := | |
| 66 | + ((Complex.continuousAt_ofReal_cpow_const 0 s (Or.inl hs)).mul | |
| 67 | + (Complex.continuous_ofReal.continuousAt.comp hf.continuous.continuousAt)).continuousWithinAt | |
| 68 | + have htop : Tendsto (fun u : ℝ => (u : ℂ) ^ s * (f u : ℂ)) atTop (𝓝 0) := by | |
| 69 | + apply tendsto_const_nhds.congr' | |
| 70 | + filter_upwards [eventually_gt_atTop B] with u hu | |
| 71 | + have hz : f u = 0 := by | |
| 72 | + by_contra hn | |
| 73 | + exact (not_lt_of_ge (hsupp hn).2) hu | |
| 74 | + simp [hz] | |
| 75 | + have heq := integral_Ioi_of_hasDerivAt_of_tendsto hc hd ((hF.const_mul s).add hG) htop | |
| 76 | + simpa only [ofReal_zero, zero_cpow hs0, zero_mul, sub_self] using heq | |
| 77 | + rw [integral_add (hF.const_mul s) hG, integral_const_mul] at hFTC | |
| 78 | + have heq : (∫ u in Ioi (0 : ℝ), (u : ℂ) ^ (s - 1) * (mellinD f u : ℂ)) = | |
| 79 | + ∫ u in Ioi (0 : ℝ), F u - G u := by | |
| 80 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 81 | + intro u hu | |
| 82 | + have hu0 : (u : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hu.ne' | |
| 83 | + have hp : (u : ℂ) ^ (s - 1) * u = (u : ℂ) ^ s := by | |
| 84 | + calc | |
| 85 | + _ = (u : ℂ) ^ (s - 1) * (u : ℂ) ^ (1 : ℂ) := by rw [cpow_one] | |
| 86 | + _ = (u : ℂ) ^ ((s - 1) + 1) := (cpow_add _ _ hu0).symm | |
| 87 | + _ = _ := by rw [sub_add_cancel] | |
| 88 | + dsimp [F, G, mellinD] | |
| 89 | + push_cast | |
| 90 | + rw [mul_sub, ← mul_assoc, hp] | |
| 91 | + unfold mellin | |
| 92 | + simp only [smul_eq_mul] | |
| 93 | + rw [heq, integral_sub hF hG] | |
| 94 | + change (∫ u in Ioi (0 : ℝ), F u) - (∫ u in Ioi (0 : ℝ), G u) = | |
| 95 | + (1 + s) * ∫ u in Ioi (0 : ℝ), F u | |
| 96 | + linear_combination -hFTC | |
| 97 | + | |
| 98 | +lemma compact_mellin_uniform_bound (f : ℝ → ℝ) (hf : Continuous f) (A B : ℝ) | |
| 99 | + (hsupp : Function.support f ⊆ Icc A B) (lo hi : ℝ) (hlo : 0 < lo) (hlohi : lo ≤ hi) : | |
| 100 | + ∃ C : ℝ, 0 < C ∧ ∀ s : ℂ, s.re ∈ Icc lo hi → | |
| 101 | + ‖mellin (fun u => (f u : ℂ)) s‖ ≤ C := by | |
| 102 | + let L : ℝ → ℝ := fun u => ‖(u : ℂ) ^ ((lo : ℂ) - 1) * (f u : ℂ)‖ | |
| 103 | + let H : ℝ → ℝ := fun u => ‖(u : ℂ) ^ ((hi : ℂ) - 1) * (f u : ℂ)‖ | |
| 104 | + have hL : IntegrableOn L (Ioi 0) := (compact_mellin_regular f hf A B hsupp lo hlo).1.norm | |
| 105 | + have hH : IntegrableOn H (Ioi 0) := (compact_mellin_regular f hf A B hsupp hi (hlo.trans_le hlohi)).1.norm | |
| 106 | + let C := ∫ u in Ioi (0 : ℝ), L u + H u | |
| 107 | + have hC : 0 ≤ C := integral_nonneg (fun u => add_nonneg (norm_nonneg _) (norm_nonneg _)) | |
| 108 | + refine ⟨C + 1, by positivity, fun s hs => ?_⟩ | |
| 109 | + apply le_trans _ (by linarith : C ≤ C + 1) | |
| 110 | + unfold mellin | |
| 111 | + simp only [smul_eq_mul] | |
| 112 | + apply (norm_integral_le_integral_norm _).trans | |
| 113 | + apply integral_mono_ae (compact_mellin_regular f hf A B hsupp s (hlo.trans_le hs.1)).1.norm (hL.add hH) | |
| 114 | + filter_upwards [ae_restrict_mem measurableSet_Ioi] with u hu | |
| 115 | + dsimp [L, H] | |
| 116 | + simp only [norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos hu, sub_re, ofReal_re, one_re] | |
| 117 | + by_cases hu1 : u ≤ 1 | |
| 118 | + · have hp := mul_le_mul_of_nonneg_right | |
| 119 | + (Real.rpow_le_rpow_of_exponent_ge hu hu1 (sub_le_sub_right hs.1 1)) (norm_nonneg (f u : ℂ)) | |
| 120 | + exact hp.trans (le_add_of_nonneg_right (mul_nonneg (Real.rpow_nonneg hu.le _) (norm_nonneg _))) | |
| 121 | + · have hp := mul_le_mul_of_nonneg_right | |
| 122 | + (Real.rpow_le_rpow_of_exponent_le (le_of_not_ge hu1) (sub_le_sub_right hs.2 1)) (norm_nonneg (f u : ℂ)) | |
| 123 | + exact hp.trans (le_add_of_nonneg_left (mul_nonneg (Real.rpow_nonneg hu.le _) (norm_nonneg _))) | |
| 124 | + | |
| 125 | +lemma mellinD_iterate_regular_Icc (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) (A B : ℝ) | |
| 126 | + (hsupp : Function.support f ⊆ Icc A B) (k : ℕ) : | |
| 127 | + ContDiff ℝ ∞ (mellinD^[k] f) ∧ Function.support (mellinD^[k] f) ⊆ Icc A B := by | |
| 128 | + induction k with | |
| 129 | + | zero => exact ⟨hf, hsupp⟩ | |
| 130 | + | succ k ih => | |
| 131 | + rw [Function.iterate_succ_apply'] | |
| 132 | + exact ⟨mellinD_contDiff ih.1, mellinD_support_Icc ih.2⟩ | |
| 133 | + | |
| 134 | +lemma mellinD_iterate_transform_positive (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) (A B : ℝ) | |
| 135 | + (hsupp : Function.support f ⊆ Icc A B) (k : ℕ) (s : ℂ) (hs : 0 < s.re) : | |
| 136 | + mellin (fun u => (mellinD^[k] f u : ℂ)) s = | |
| 137 | + (1 + s) ^ k * mellin (fun u => (f u : ℂ)) s := by | |
| 138 | + induction k with | |
| 139 | + | zero => simp | |
| 140 | + | succ k ih => | |
| 141 | + rw [Function.iterate_succ_apply', mellinD_transform_positive _ | |
| 142 | + (mellinD_iterate_regular_Icc f hf A B hsupp k).1 A B | |
| 143 | + (mellinD_iterate_regular_Icc f hf A B hsupp k).2 s hs, ih, pow_succ] | |
| 144 | + ring | |
| 145 | + | |
| 146 | +lemma compact_mellin_rapid_decay (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) | |
| 147 | + (A B : ℝ) (hsupp : Function.support f ⊆ Icc A B) | |
| 148 | + (lo hi : ℝ) (hlo : 0 < lo) (hlohi : lo ≤ hi) (k : ℕ) : | |
| 149 | + ∃ C : ℝ, 0 < C ∧ ∀ s : ℂ, s.re ∈ Icc lo hi → | |
| 150 | + ‖mellin (fun u => (f u : ℂ)) s‖ ≤ C * (1 + |s.im|)⁻¹ ^ k := by | |
| 151 | + obtain ⟨C₀, hC₀, hzero⟩ := compact_mellin_uniform_bound f hf.continuous A B hsupp lo hi hlo hlohi | |
| 152 | + obtain ⟨Ck, hCk, hk⟩ := compact_mellin_uniform_bound (mellinD^[k] f) | |
| 153 | + (mellinD_iterate_regular_Icc f hf A B hsupp k).1.continuous A B | |
| 154 | + (mellinD_iterate_regular_Icc f hf A B hsupp k).2 lo hi hlo hlohi | |
| 155 | + refine ⟨2 ^ k * (C₀ + Ck), by positivity, fun s hsl => ?_⟩ | |
| 156 | + have hnorm := hk s hsl | |
| 157 | + rw [mellinD_iterate_transform_positive f hf A B hsupp k s (hlo.trans_le hsl.1), norm_mul, norm_pow] at hnorm | |
| 158 | + have him : |s.im| ≤ ‖1 + s‖ := by simpa only [add_im, one_im, zero_add] using Complex.abs_im_le_norm (1 + s) | |
| 159 | + have hpower : |s.im| ^ k * ‖mellin (fun u => (f u : ℂ)) s‖ ≤ Ck := | |
| 160 | + (mul_le_mul_of_nonneg_right (pow_le_pow_left₀ (abs_nonneg _) him k) (norm_nonneg _)).trans hnorm | |
| 161 | + have hden : 0 < (1 + |s.im|) ^ k := by positivity | |
| 162 | + rw [inv_pow, ← div_eq_mul_inv, le_div_iff₀ hden] | |
| 163 | + by_cases hsmall : |s.im| ≤ 1 | |
| 164 | + · have hpow : (1 + |s.im|) ^ k ≤ (2 : ℝ) ^ k := | |
| 165 | + pow_le_pow_left₀ (by positivity) (by linarith) k | |
| 166 | + calc | |
| 167 | + _ ≤ C₀ * (2 : ℝ) ^ k := mul_le_mul (hzero s hsl) hpow (by positivity) hC₀.le | |
| 168 | + _ ≤ _ := by nlinarith [mul_nonneg (show 0 ≤ (2 : ℝ) ^ k by positivity) hCk.le] | |
| 169 | + · have hlarge : 1 < |s.im| := lt_of_not_ge hsmall | |
| 170 | + have hpow : (1 + |s.im|) ^ k ≤ (2 * |s.im|) ^ k := | |
| 171 | + pow_le_pow_left₀ (by positivity) (by linarith) k | |
| 172 | + calc | |
| 173 | + _ ≤ ‖mellin (fun u => (f u : ℂ)) s‖ * (2 * |s.im|) ^ k := | |
| 174 | + mul_le_mul_of_nonneg_left hpow (norm_nonneg _) | |
| 175 | + _ = (2 : ℝ) ^ k * (|s.im| ^ k * ‖mellin (fun u => (f u : ℂ)) s‖) := by rw [mul_pow]; ring | |
| 176 | + _ ≤ (2 : ℝ) ^ k * Ck := mul_le_mul_of_nonneg_left hpower (by positivity) | |
| 177 | + _ ≤ _ := mul_le_mul_of_nonneg_left (by linarith) (by positivity) | |
| 178 | + | |
| 179 | +lemma compact_mellin_verticalIntegrable (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) (A B : ℝ) | |
| 180 | + (hsupp : Function.support f ⊆ Icc A B) (σ : ℝ) (hσ : 0 < σ) : | |
| 181 | + VerticalIntegrable (mellin (fun u => (f u : ℂ))) σ := by | |
| 182 | + obtain ⟨C, _, hC⟩ := compact_mellin_rapid_decay f hf A B hsupp σ σ hσ le_rfl 2 | |
| 183 | + apply integrable_of_uniform_vertical_decay _ σ C | |
| 184 | + · apply continuous_iff_continuousAt.mpr | |
| 185 | + intro t | |
| 186 | + apply (compact_mellin_regular f hf.continuous A B hsupp (line σ t) | |
| 187 | + (by simpa [line] using hσ)).2.continuousAt.comp | |
| 188 | + unfold line | |
| 189 | + fun_prop | |
| 190 | + · intro t | |
| 191 | + simpa [line] using hC (line σ t) (by simp [line]) | |
| 192 | + | |
| 193 | +lemma compact_mellin_inversion (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) (A B : ℝ) | |
| 194 | + (hsupp : Function.support f ⊆ Icc A B) (σ : ℝ) (hσ : 0 < σ) (u : ℝ) (hu : 0 < u) : | |
| 195 | + (f u : ℂ) = verticalMellin σ (fun s => mellin (fun y => (f y : ℂ)) s * (u : ℂ) ^ (-s)) := by | |
| 196 | + have h := mellinInv_mellin_eq σ (fun u => (f u : ℂ)) hu | |
| 197 | + (compact_mellin_regular f hf.continuous A B hsupp σ hσ).1 | |
| 198 | + (compact_mellin_verticalIntegrable f hf A B hsupp σ hσ) | |
| 199 | + (Complex.continuous_ofReal.continuousAt.comp hf.continuous.continuousAt) | |
| 200 | + rw [← h] | |
| 201 | + unfold mellinInv verticalMellin | |
| 202 | + simp only [Complex.real_smul, Complex.ofReal_mul, Complex.ofReal_ofNat, one_div, Complex.ofReal_inv] | |
| 203 | + congr 1 | |
| 204 | + apply integral_congr_ae | |
| 205 | + exact Eventually.of_forall (fun t => mul_comm _ _) | |
| 206 | + | |
| 207 | +lemma compact_mellin_inversion_integrable (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) (A B : ℝ) | |
| 208 | + (hsupp : Function.support f ⊆ Icc A B) (σ : ℝ) (hσ : 0 < σ) (u : ℝ) (hu : 0 < u) : | |
| 209 | + Integrable (fun t : ℝ => mellin (fun y => (f y : ℂ)) (line σ t) * (u : ℂ) ^ (-line σ t)) := by | |
| 210 | + have hpow : Continuous (fun t : ℝ => (u : ℂ) ^ (-line σ t)) := by | |
| 211 | + apply Continuous.const_cpow | |
| 212 | + · unfold line | |
| 213 | + fun_prop | |
| 214 | + · exact Or.inl (Complex.ofReal_ne_zero.mpr hu.ne') | |
| 215 | + have hb : ∀ᵐ t : ℝ, ‖(u : ℂ) ^ (-line σ t)‖ ≤ Real.rpow u (-σ) := by | |
| 216 | + filter_upwards [] with t | |
| 217 | + rw [Complex.norm_cpow_eq_rpow_re_of_pos hu] | |
| 218 | + simp [line] | |
| 219 | + simpa only [line, mul_comm] using | |
| 220 | + (compact_mellin_verticalIntegrable f hf A B hsupp σ hσ).bdd_mul hpow.aestronglyMeasurable hb | |
| 221 | + | |
| 222 | +lemma signedConvolution_mellin_decay (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 223 | + (lo hi : ℝ) (hlo : 0 < lo) (hlohi : lo ≤ hi) : | |
| 224 | + ∃ C : ℝ, 0 < C ∧ ∀ σ ∈ Icc lo hi, ∀ t : ℝ, | |
| 225 | + ‖mellin (fun y => (signedConvolution φ y : ℂ)) (line σ t)‖ ≤ C * (1 + |t|)⁻¹ ^ 6 := by | |
| 226 | + obtain ⟨C, hC, hb⟩ := compact_mellin_rapid_decay (signedConvolution φ) | |
| 227 | + (signedConvolution_contDiff φ hφ) (-(1 / 3)) (4 / 3) | |
| 228 | + (signedConvolution_support φ hφ) lo hi hlo hlohi 6 | |
| 229 | + refine ⟨C, hC, fun σ hσ t => ?_⟩ | |
| 230 | + simpa [line] using hb (line σ t) (by simpa [line] using hσ) | |
| 231 | + | |
| 232 | +lemma signedConvolution_mellin_inversion (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 233 | + (σ : ℝ) (hσ : 0 < σ) (u : ℝ) (hu : 0 < u) : | |
| 234 | + (signedConvolution φ u : ℂ) = verticalMellin σ (fun s => | |
| 235 | + mellin (fun y => (signedConvolution φ y : ℂ)) s * (u : ℂ) ^ (-s)) := | |
| 236 | + compact_mellin_inversion (signedConvolution φ) (signedConvolution_contDiff φ hφ) | |
| 237 | + (-(1 / 3)) (4 / 3) (signedConvolution_support φ hφ) σ hσ u hu | |
| 238 | + | |
| 239 | +end ConditionalGoldbach | |
+89 −0 ConditionalGoldbach/Proofs/MellinContourShift.lean added View file
| @@ -0,0 +1,89 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.Complex.CauchyIntegral | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinBasic | |
| 5 | + | |
| 6 | +/-! Contour shifting on a closed vertical strip with integrable boundary lines. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma verticalMellin_eq_of_horizontal_tendsto (f : ℂ → ℂ) (a b : ℝ) (hab : a ≤ b) | |
| 16 | + (hd : ∀ z : ℂ, z.re ∈ Icc a b → DifferentiableAt ℂ f z) | |
| 17 | + (ha : Integrable (fun t : ℝ => f (line a t))) | |
| 18 | + (hb : Integrable (fun t : ℝ => f (line b t))) | |
| 19 | + (hbot : Tendsto (fun T : ℝ => ∫ x in a..b, f (line x (-T))) atTop (𝓝 0)) | |
| 20 | + (htop : Tendsto (fun T : ℝ => ∫ x in a..b, f (line x T)) atTop (𝓝 0)) : | |
| 21 | + verticalMellin a f = verticalMellin b f := by | |
| 22 | + have hrect (T : ℝ) : | |
| 23 | + (∫ x in a..b, f (line x (-T))) - (∫ x in a..b, f (line x T)) + | |
| 24 | + I * (∫ y in -T..T, f (line b y)) - I * (∫ y in -T..T, f (line a y)) = 0 := by | |
| 25 | + have h := Complex.integral_boundary_rect_eq_zero_of_differentiableOn | |
| 26 | + f (line a (-T)) (line b T) (by | |
| 27 | + intro z hz | |
| 28 | + apply (hd z ?_).differentiableWithinAt | |
| 29 | + simpa only [line, add_re, ofReal_re, mul_re, ofReal_im, I_re, I_im, | |
| 30 | + mul_zero, zero_mul, sub_self, add_zero, uIcc_of_le hab, mem_preimage] using hz.1) | |
| 31 | + simpa only [line, add_re, ofReal_re, mul_re, ofReal_im, I_re, I_im, | |
| 32 | + mul_zero, zero_mul, sub_self, add_zero, add_im, mul_im, mul_one, zero_add, | |
| 33 | + smul_eq_mul] using h | |
| 34 | + have hla := intervalIntegral_tendsto_integral ha tendsto_neg_atTop_atBot tendsto_id | |
| 35 | + have hlb := intervalIntegral_tendsto_integral hb tendsto_neg_atTop_atBot tendsto_id | |
| 36 | + have hh := ((hbot.sub htop).add (hlb.const_mul I)).sub (hla.const_mul I) | |
| 37 | + have heq : (0 : ℂ) - 0 + I * (∫ y : ℝ, f (line b y)) - | |
| 38 | + I * (∫ y : ℝ, f (line a y)) = 0 := by | |
| 39 | + apply tendsto_nhds_unique hh | |
| 40 | + simpa only [id_eq, hrect] using (tendsto_const_nhds : Tendsto (fun _ : ℝ => (0 : ℂ)) atTop (𝓝 0)) | |
| 41 | + have hi : (∫ y : ℝ, f (line b y)) = ∫ y : ℝ, f (line a y) := by | |
| 42 | + apply (mul_left_cancel₀ I_ne_zero) | |
| 43 | + simpa only [sub_self, zero_add, sub_eq_zero] using heq | |
| 44 | + unfold verticalMellin | |
| 45 | + rw [hi] | |
| 46 | + | |
| 47 | +lemma horizontal_tendsto_of_uniform_decay (f : ℂ → ℂ) (a b C : ℝ) (hab : a ≤ b) | |
| 48 | + (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2) : | |
| 49 | + Tendsto (fun T : ℝ => ∫ x in a..b, f (line x T)) atTop (𝓝 0) ∧ | |
| 50 | + Tendsto (fun T : ℝ => ∫ x in a..b, f (line x (-T))) atTop (𝓝 0) := by | |
| 51 | + have hmajor : Tendsto (fun T : ℝ => C * (1 + T)⁻¹ ^ 2 * |b - a|) atTop (𝓝 0) := by | |
| 52 | + have hzero : Tendsto (fun T : ℝ => (1 + T)⁻¹) atTop (𝓝 0) := | |
| 53 | + tendsto_inv_atTop_zero.comp (tendsto_atTop_add_const_left atTop 1 tendsto_id) | |
| 54 | + simpa using ((hzero.pow 2).const_mul C).mul_const |b - a| | |
| 55 | + constructor | |
| 56 | + · apply squeeze_zero_norm' _ hmajor | |
| 57 | + filter_upwards [eventually_ge_atTop (0 : ℝ)] with T hT | |
| 58 | + apply intervalIntegral.norm_integral_le_of_norm_le_const | |
| 59 | + intro x hx | |
| 60 | + rw [uIoc_of_le hab] at hx | |
| 61 | + simpa only [abs_of_nonneg hT] using hbound x ⟨hx.1.le, hx.2⟩ T | |
| 62 | + · apply squeeze_zero_norm' _ hmajor | |
| 63 | + filter_upwards [eventually_ge_atTop (0 : ℝ)] with T hT | |
| 64 | + apply intervalIntegral.norm_integral_le_of_norm_le_const | |
| 65 | + intro x hx | |
| 66 | + rw [uIoc_of_le hab] at hx | |
| 67 | + simpa only [abs_neg, abs_of_nonneg hT] using hbound x ⟨hx.1.le, hx.2⟩ (-T) | |
| 68 | + | |
| 69 | +lemma verticalMellin_eq_of_uniform_decay (f : ℂ → ℂ) (a b C : ℝ) (hab : a ≤ b) | |
| 70 | + (hd : ∀ z : ℂ, z.re ∈ Icc a b → DifferentiableAt ℂ f z) | |
| 71 | + (ha : Integrable (fun t : ℝ => f (line a t))) | |
| 72 | + (hb : Integrable (fun t : ℝ => f (line b t))) | |
| 73 | + (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖f (line x t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2) : | |
| 74 | + verticalMellin a f = verticalMellin b f := by | |
| 75 | + obtain ⟨htop, hbot⟩ := horizontal_tendsto_of_uniform_decay f a b C hab hbound | |
| 76 | + exact verticalMellin_eq_of_horizontal_tendsto f a b hab hd ha hb hbot htop | |
| 77 | + | |
| 78 | +lemma integrable_of_uniform_vertical_decay (f : ℂ → ℂ) (σ C : ℝ) | |
| 79 | + (hc : Continuous (fun t : ℝ => f (line σ t))) | |
| 80 | + (hbound : ∀ t : ℝ, ‖f (line σ t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2) : | |
| 81 | + Integrable (fun t : ℝ => f (line σ t)) := by | |
| 82 | + have hint : Integrable (fun t : ℝ => (1 + |t|)⁻¹ ^ 2) := by | |
| 83 | + have h := integrable_one_add_norm (E := ℝ) (μ := volume) (r := 2) (by simp) | |
| 84 | + convert h using 1 | |
| 85 | + ext t | |
| 86 | + rw [Real.norm_eq_abs, Real.rpow_neg (by positivity), Real.rpow_two, inv_pow] | |
| 87 | + exact (hint.const_mul C).mono' hc.aestronglyMeasurable (Eventually.of_forall hbound) | |
| 88 | + | |
| 89 | +end ConditionalGoldbach | |
+213 −0 ConditionalGoldbach/Proofs/MellinConvolution.lean added View file
| @@ -0,0 +1,213 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.Weights | |
| 4 | + | |
| 5 | +/-! Smooth convolution densities, their support, sampled values, and pole cancellation. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff Convolution | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma differenceConvolution_support (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 15 | + Function.support (differenceConvolution φ) ⊆ Icc (-(1 / 3 : ℝ)) (1 / 3) := by | |
| 16 | + intro y hy | |
| 17 | + by_contra h | |
| 18 | + apply hy | |
| 19 | + unfold differenceConvolution | |
| 20 | + apply integral_eq_zero_of_ae | |
| 21 | + filter_upwards [] with u | |
| 22 | + by_contra hn | |
| 23 | + obtain ⟨hu, huy⟩ := mul_ne_zero_iff.mp hn | |
| 24 | + have h₁ := hφ.mem_support_interval hu | |
| 25 | + have h₂ := hφ.mem_support_interval huy | |
| 26 | + apply h | |
| 27 | + constructor <;> linarith [h₁.1, h₁.2, h₂.1, h₂.2] | |
| 28 | + | |
| 29 | +lemma sumConvolution_support (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 30 | + Function.support (sumConvolution φ) ⊆ Icc (2 / 3 : ℝ) (4 / 3) := by | |
| 31 | + intro y hy | |
| 32 | + by_contra h | |
| 33 | + apply hy | |
| 34 | + unfold sumConvolution | |
| 35 | + apply integral_eq_zero_of_ae | |
| 36 | + filter_upwards [] with u | |
| 37 | + by_contra hn | |
| 38 | + obtain ⟨hu, huy⟩ := mul_ne_zero_iff.mp hn | |
| 39 | + have h₁ := hφ.mem_support_interval hu | |
| 40 | + have h₂ := hφ.mem_support_interval huy | |
| 41 | + apply h | |
| 42 | + constructor <;> linarith [h₁.1, h₁.2, h₂.1, h₂.2] | |
| 43 | + | |
| 44 | +lemma differenceConvolution_eq_real_integral (φ : ℝ → ℝ) (hφ : IsWeight φ) (y : ℝ) : | |
| 45 | + differenceConvolution φ y = ∫ u : ℝ, φ u * φ (u + y) := by | |
| 46 | + unfold differenceConvolution | |
| 47 | + apply setIntegral_eq_integral_of_forall_compl_eq_zero | |
| 48 | + intro u hu | |
| 49 | + rw [hφ.eq_zero_of_nonpos (by simpa only [mem_Ioi, not_lt] using hu), zero_mul] | |
| 50 | + | |
| 51 | +lemma sumConvolution_eq_convolution (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 52 | + sumConvolution φ = φ ⋆ φ := by | |
| 53 | + funext y | |
| 54 | + unfold sumConvolution convolution | |
| 55 | + apply setIntegral_eq_integral_of_forall_compl_eq_zero | |
| 56 | + intro u hu | |
| 57 | + rw [hφ.eq_zero_of_nonpos (by simpa only [mem_Ioi, not_lt] using hu), zero_mul] | |
| 58 | + | |
| 59 | +lemma differenceConvolution_eq_convolution (φ : ℝ → ℝ) (hφ : IsWeight φ) (y : ℝ) : | |
| 60 | + differenceConvolution φ y = (φ ⋆ (fun u => φ (-u))) (-y) := by | |
| 61 | + rw [differenceConvolution_eq_real_integral φ hφ] | |
| 62 | + unfold convolution | |
| 63 | + apply integral_congr_ae | |
| 64 | + filter_upwards [] with u | |
| 65 | + simp only [ContinuousLinearMap.lsmul_apply, smul_eq_mul] | |
| 66 | + congr 2 | |
| 67 | + ring | |
| 68 | + | |
| 69 | +lemma sumConvolution_contDiff (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 70 | + ContDiff ℝ ∞ (sumConvolution φ) := by | |
| 71 | + rw [sumConvolution_eq_convolution φ hφ] | |
| 72 | + exact hφ.hasCompactSupport.contDiff_convolution_right (ContinuousLinearMap.lsmul ℝ ℝ) | |
| 73 | + hφ.continuous.locallyIntegrable hφ.1 | |
| 74 | + | |
| 75 | +lemma differenceConvolution_contDiff (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 76 | + ContDiff ℝ ∞ (differenceConvolution φ) := by | |
| 77 | + have heq : differenceConvolution φ = fun y => (φ ⋆ (fun u => φ (-u))) (-y) := | |
| 78 | + funext (differenceConvolution_eq_convolution φ hφ) | |
| 79 | + rw [heq] | |
| 80 | + have hc : HasCompactSupport (fun u : ℝ => φ (-u)) := by | |
| 81 | + apply HasCompactSupport.of_support_subset_isCompact (isCompact_Icc (a := -(2 / 3 : ℝ)) (b := -(1 / 3 : ℝ))) | |
| 82 | + intro u hu | |
| 83 | + have hs := hφ.mem_support_interval hu | |
| 84 | + constructor <;> linarith [hs.1, hs.2] | |
| 85 | + exact (hc.contDiff_convolution_right (ContinuousLinearMap.lsmul ℝ ℝ) | |
| 86 | + hφ.continuous.locallyIntegrable (hφ.1.comp contDiff_neg)).comp contDiff_neg | |
| 87 | + | |
| 88 | +lemma differenceConvolution_even (φ : ℝ → ℝ) (hφ : IsWeight φ) (y : ℝ) : | |
| 89 | + differenceConvolution φ (-y) = differenceConvolution φ y := by | |
| 90 | + rw [differenceConvolution_eq_real_integral φ hφ, differenceConvolution_eq_real_integral φ hφ] | |
| 91 | + rw [← integral_add_right_eq_self (fun u : ℝ => φ u * φ (u + -y)) y] | |
| 92 | + apply integral_congr_ae | |
| 93 | + filter_upwards [] with u | |
| 94 | + simp only [add_neg_cancel_right] | |
| 95 | + ring | |
| 96 | + | |
| 97 | +lemma convolution_integer_values (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 98 | + (∀ k : ℕ, 1 ≤ k → differenceConvolution φ k = 0) ∧ | |
| 99 | + (∀ k : ℕ, 2 ≤ k → sumConvolution φ k = 0) ∧ | |
| 100 | + signedConvolution φ 1 = -weightMass φ := by | |
| 101 | + have hC : ∀ k : ℕ, 1 ≤ k → differenceConvolution φ k = 0 := by | |
| 102 | + intro k hk | |
| 103 | + by_contra hn | |
| 104 | + have hh := differenceConvolution_support φ hφ hn | |
| 105 | + have hkr : (1 : ℝ) ≤ k := by exact_mod_cast hk | |
| 106 | + linarith [hh.2] | |
| 107 | + refine ⟨hC, ?_, ?_⟩ | |
| 108 | + · intro k hk | |
| 109 | + by_contra hn | |
| 110 | + have hh := sumConvolution_support φ hφ hn | |
| 111 | + have hkr : (2 : ℝ) ≤ k := by exact_mod_cast hk | |
| 112 | + linarith [hh.2] | |
| 113 | + · unfold signedConvolution | |
| 114 | + rw [show differenceConvolution φ 1 = 0 from by simpa using hC 1 le_rfl, | |
| 115 | + (lemma_7_2_convolutions φ hφ).2.1] | |
| 116 | + ring | |
| 117 | + | |
| 118 | +lemma differenceConvolution_integral (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 119 | + (∫ y in Ioi (0 : ℝ), differenceConvolution φ y) = | |
| 120 | + (∫ u in Ioi (0 : ℝ), φ u) ^ 2 / 2 := by | |
| 121 | + have hi : Integrable φ := hφ.continuous.integrable_of_hasCompactSupport hφ.hasCompactSupport | |
| 122 | + have hφint : (∫ u in Ioi (0 : ℝ), φ u) = ∫ u : ℝ, φ u := by | |
| 123 | + apply setIntegral_eq_integral_of_forall_compl_eq_zero | |
| 124 | + intro u hu | |
| 125 | + exact hφ.eq_zero_of_nonpos (by simpa only [mem_Ioi, not_lt] using hu) | |
| 126 | + have hCabs : (fun y : ℝ => differenceConvolution φ |y|) = differenceConvolution φ := by | |
| 127 | + funext y | |
| 128 | + by_cases hy : 0 ≤ y | |
| 129 | + · rw [abs_of_nonneg hy] | |
| 130 | + · rw [abs_of_neg (lt_of_not_ge hy), differenceConvolution_even φ hφ] | |
| 131 | + have htotal : (∫ y : ℝ, differenceConvolution φ y) = (∫ u : ℝ, φ u) ^ 2 := by | |
| 132 | + simp_rw [differenceConvolution_eq_convolution φ hφ] | |
| 133 | + rw [integral_neg_eq_self, integral_convolution (ContinuousLinearMap.lsmul ℝ ℝ) hi hi.comp_neg, | |
| 134 | + integral_neg_eq_self] | |
| 135 | + simp [pow_two] | |
| 136 | + have habs := integral_comp_abs (f := differenceConvolution φ) | |
| 137 | + rw [hCabs, htotal] at habs | |
| 138 | + rw [hφint] | |
| 139 | + linarith | |
| 140 | + | |
| 141 | +lemma sumConvolution_integral (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 142 | + (∫ y in Ioi (0 : ℝ), sumConvolution φ y) = (∫ u in Ioi (0 : ℝ), φ u) ^ 2 := by | |
| 143 | + have hi := (lemma_7_2_convolutions φ hφ).2.2 | |
| 144 | + simp_rw [fun y => ((lemma_7_2_convolutions φ hφ).1 y).2.2] | |
| 145 | + simpa only [ContinuousLinearMap.lsmul_apply, smul_eq_mul, pow_two] using | |
| 146 | + integral_posConvolution hi hi (ContinuousLinearMap.lsmul ℝ ℝ) | |
| 147 | + | |
| 148 | +lemma signedConvolution_contDiff (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 149 | + ContDiff ℝ ∞ (signedConvolution φ) := by | |
| 150 | + unfold signedConvolution | |
| 151 | + exact (contDiff_const.mul (differenceConvolution_contDiff φ hφ)).sub (sumConvolution_contDiff φ hφ) | |
| 152 | + | |
| 153 | +lemma signedConvolution_support (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 154 | + Function.support (signedConvolution φ) ⊆ Icc (-(1 / 3 : ℝ)) (4 / 3) := by | |
| 155 | + intro y hy | |
| 156 | + by_cases hc : differenceConvolution φ y = 0 | |
| 157 | + · have hj : sumConvolution φ y ≠ 0 := by | |
| 158 | + intro hj | |
| 159 | + apply hy | |
| 160 | + simp [signedConvolution, hc, hj] | |
| 161 | + have hs := sumConvolution_support φ hφ hj | |
| 162 | + constructor <;> linarith [hs.1, hs.2] | |
| 163 | + · have hs := differenceConvolution_support φ hφ hc | |
| 164 | + constructor <;> linarith [hs.1, hs.2] | |
| 165 | + | |
| 166 | +lemma signedConvolution_hasCompactSupport (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 167 | + HasCompactSupport (signedConvolution φ) := | |
| 168 | + HasCompactSupport.of_support_subset_isCompact isCompact_Icc (signedConvolution_support φ hφ) | |
| 169 | + | |
| 170 | +lemma signedConvolution_integral_zero (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 171 | + (∫ y in Ioi (0 : ℝ), signedConvolution φ y) = 0 := by | |
| 172 | + have hC : Integrable (differenceConvolution φ) := | |
| 173 | + (differenceConvolution_contDiff φ hφ).continuous.integrable_of_hasCompactSupport | |
| 174 | + (HasCompactSupport.of_support_subset_isCompact isCompact_Icc (differenceConvolution_support φ hφ)) | |
| 175 | + have hJ : Integrable (sumConvolution φ) := | |
| 176 | + (sumConvolution_contDiff φ hφ).continuous.integrable_of_hasCompactSupport | |
| 177 | + (HasCompactSupport.of_support_subset_isCompact isCompact_Icc (sumConvolution_support φ hφ)) | |
| 178 | + unfold signedConvolution | |
| 179 | + rw [integral_sub ((hC.const_mul 2).integrableOn) hJ.integrableOn, integral_const_mul, | |
| 180 | + differenceConvolution_integral φ hφ, sumConvolution_integral φ hφ] | |
| 181 | + ring | |
| 182 | + | |
| 183 | +lemma signedConvolution_mellin_one (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 184 | + mellin (fun y => (signedConvolution φ y : ℂ)) 1 = 0 := by | |
| 185 | + unfold mellin | |
| 186 | + simp only [sub_self, cpow_zero, one_smul] | |
| 187 | + have h := integral_ofReal (𝕜 := ℂ) (μ := volume.restrict (Ioi (0 : ℝ))) | |
| 188 | + (f := signedConvolution φ) | |
| 189 | + rw [signedConvolution_integral_zero φ hφ] at h | |
| 190 | + simpa using h | |
| 191 | + | |
| 192 | +lemma signedConvolution_mellin_regular (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 193 | + (s : ℂ) (hs : 0 < s.re) : | |
| 194 | + MellinConvergent (fun y => (signedConvolution φ y : ℂ)) s ∧ | |
| 195 | + DifferentiableAt ℂ (mellin (fun y => (signedConvolution φ y : ℂ))) s := by | |
| 196 | + have hc : Continuous (fun y => (signedConvolution φ y : ℂ)) := | |
| 197 | + Complex.continuous_ofReal.comp (signedConvolution_contDiff φ hφ).continuous | |
| 198 | + have htop : (fun y => (signedConvolution φ y : ℂ)) =ᶠ[atTop] 0 := by | |
| 199 | + filter_upwards [eventually_gt_atTop (4 / 3 : ℝ)] with y hy | |
| 200 | + have hz : signedConvolution φ y = 0 := by | |
| 201 | + by_contra hn | |
| 202 | + exact (not_lt_of_ge (signedConvolution_support φ hφ hn).2) hy | |
| 203 | + simp [hz] | |
| 204 | + have hbot : (fun y => (signedConvolution φ y : ℂ)) =O[𝓝[>] (0 : ℝ)] | |
| 205 | + (fun y : ℝ => y ^ (-(0 : ℝ))) := by | |
| 206 | + simpa using (hc.continuousAt.tendsto.mono_left nhdsWithin_le_nhds).isBigO_one ℝ | |
| 207 | + have hloc := (hc.locallyIntegrable (μ := volume)).locallyIntegrableOn (Ioi (0 : ℝ)) | |
| 208 | + exact ⟨mellinConvergent_of_isBigO_rpow (a := s.re + 1) (b := 0) hloc | |
| 209 | + (htop.trans_isBigO (Asymptotics.isBigO_zero _ _)) (by linarith) hbot hs, | |
| 210 | + mellin_differentiableAt_of_isBigO_rpow (a := s.re + 1) (b := 0) hloc | |
| 211 | + (htop.trans_isBigO (Asymptotics.isBigO_zero _ _)) (by linarith) hbot hs⟩ | |
| 212 | + | |
| 213 | +end ConditionalGoldbach | |
+201 −0 ConditionalGoldbach/Proofs/MellinConvolutionTransform.lean added View file
| @@ -0,0 +1,201 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinBetaConvolution | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinConvolution | |
| 5 | + | |
| 6 | +/-! Absolute convolution pairing and the physical-variable changes in the Beta–Mellin relation. -/ | |
| 7 | +@[expose] public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff Convolution | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma weight_complex_integrable (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 16 | + Integrable (fun u => (φ u : ℂ)) := | |
| 17 | + Complex.ofRealCLM.integrable_comp (hφ.continuous.integrable_of_hasCompactSupport hφ.hasCompactSupport) | |
| 18 | + | |
| 19 | +lemma weight_complex_norm_le_one (φ : ℝ → ℝ) (hφ : IsWeight φ) (u : ℝ) : | |
| 20 | + ‖(φ u : ℂ)‖ ≤ 1 := by | |
| 21 | + simpa only [Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg (hφ.nonneg u)] using hφ.le_one u | |
| 22 | + | |
| 23 | +lemma difference_convolution_integral_pairing (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 24 | + (h : ℝ → ℂ) (hi : Integrable h) : | |
| 25 | + (∫ y : ℝ, h y * (differenceConvolution φ y : ℂ)) = | |
| 26 | + ∫ r : ℝ, (∫ u : ℝ, (φ u : ℂ) * h (r-u)) * (φ r : ℂ) := by | |
| 27 | + have hF : Integrable (fun p : ℝ × ℝ => h p.1 * (φ p.2 : ℂ) * (φ (p.2+p.1) : ℂ)) | |
| 28 | + (volume.prod volume) := | |
| 29 | + (hi.mul_prod (weight_complex_integrable φ hφ)).mul_bdd | |
| 30 | + (by apply Continuous.aestronglyMeasurable; exact Complex.continuous_ofReal.comp (hφ.continuous.comp (by fun_prop))) | |
| 31 | + (Eventually.of_forall (fun p => weight_complex_norm_le_one φ hφ (p.2+p.1))) | |
| 32 | + have hG : Integrable (fun p : ℝ × ℝ => h (p.1-p.2) * (φ p.2 : ℂ) * (φ p.1 : ℂ)) | |
| 33 | + (volume.prod volume) := by | |
| 34 | + convert (measurePreserving_sub_prod volume volume).integrable_comp_of_integrable hF using 1 | |
| 35 | + ext p | |
| 36 | + dsimp only [Function.comp_apply] | |
| 37 | + rw [add_sub_cancel] | |
| 38 | + have hsF := integral_integral_swap (f := fun y u : ℝ => h y * (φ u : ℂ) * (φ (u+y) : ℂ)) hF | |
| 39 | + have hsG := integral_integral_swap (f := fun r u : ℝ => h (r-u) * (φ u : ℂ) * (φ r : ℂ)) hG | |
| 40 | + calc | |
| 41 | + _ = ∫ y : ℝ, ∫ u : ℝ, h y * (φ u : ℂ) * (φ (u+y) : ℂ) := by | |
| 42 | + apply integral_congr_ae | |
| 43 | + filter_upwards [] with y | |
| 44 | + rw [differenceConvolution_eq_real_integral φ hφ] | |
| 45 | + rw [← integral_complex_ofReal] | |
| 46 | + simp only [ofReal_mul, mul_assoc, integral_const_mul] | |
| 47 | + _ = ∫ u : ℝ, ∫ y : ℝ, h y * (φ u : ℂ) * (φ (u+y) : ℂ) := hsF | |
| 48 | + _ = ∫ u : ℝ, ∫ r : ℝ, h (r-u) * (φ u : ℂ) * (φ r : ℂ) := by | |
| 49 | + apply integral_congr_ae | |
| 50 | + filter_upwards [] with u | |
| 51 | + have ht := integral_add_right_eq_self (μ := volume) (fun r : ℝ => h (r-u) * (φ u : ℂ) * (φ r : ℂ)) u | |
| 52 | + simpa only [add_sub_cancel_right, add_comm, add_sub_cancel_left] using ht | |
| 53 | + _ = ∫ r : ℝ, ∫ u : ℝ, h (r-u) * (φ u : ℂ) * (φ r : ℂ) := hsG.symm | |
| 54 | + _ = _ := by | |
| 55 | + simp only [integral_mul_const] | |
| 56 | + congr 1 | |
| 57 | + ext r | |
| 58 | + congr 1 | |
| 59 | + apply integral_congr_ae | |
| 60 | + filter_upwards [] with u | |
| 61 | + ring | |
| 62 | + | |
| 63 | +lemma sum_convolution_integral_pairing (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 64 | + (h : ℝ → ℂ) (hi : Integrable h) : | |
| 65 | + (∫ y : ℝ, h y * (sumConvolution φ y : ℂ)) = | |
| 66 | + ∫ r : ℝ, (∫ u : ℝ, (φ u : ℂ) * h (u+r)) * (φ r : ℂ) := by | |
| 67 | + have hF : Integrable (fun p : ℝ × ℝ => h p.1 * (φ p.2 : ℂ) * (φ (p.1-p.2) : ℂ)) | |
| 68 | + (volume.prod volume) := | |
| 69 | + (hi.mul_prod (weight_complex_integrable φ hφ)).mul_bdd | |
| 70 | + (by apply Continuous.aestronglyMeasurable; exact Complex.continuous_ofReal.comp (hφ.continuous.comp (by fun_prop))) | |
| 71 | + (Eventually.of_forall (fun p => weight_complex_norm_le_one φ hφ (p.1-p.2))) | |
| 72 | + have hG : Integrable (fun p : ℝ × ℝ => h (p.1+p.2) * (φ p.2 : ℂ) * (φ p.1 : ℂ)) | |
| 73 | + (volume.prod volume) := by | |
| 74 | + convert (measurePreserving_add_prod volume volume).integrable_comp_of_integrable hF using 1 | |
| 75 | + ext p | |
| 76 | + dsimp only [Function.comp_apply] | |
| 77 | + rw [add_sub_cancel_right] | |
| 78 | + have hsF := integral_integral_swap (f := fun y u : ℝ => h y * (φ u : ℂ) * (φ (y-u) : ℂ)) hF | |
| 79 | + have hsG := integral_integral_swap (f := fun r u : ℝ => h (r+u) * (φ u : ℂ) * (φ r : ℂ)) hG | |
| 80 | + calc | |
| 81 | + _ = ∫ y : ℝ, ∫ u : ℝ, h y * (φ u : ℂ) * (φ (y-u) : ℂ) := by | |
| 82 | + apply integral_congr_ae | |
| 83 | + filter_upwards [] with y | |
| 84 | + rw [sumConvolution_eq_convolution φ hφ] | |
| 85 | + simp only [convolution_def, ContinuousLinearMap.lsmul_apply, smul_eq_mul] | |
| 86 | + rw [← integral_complex_ofReal] | |
| 87 | + simp only [ofReal_mul, mul_assoc, integral_const_mul] | |
| 88 | + _ = ∫ u : ℝ, ∫ y : ℝ, h y * (φ u : ℂ) * (φ (y-u) : ℂ) := hsF | |
| 89 | + _ = ∫ u : ℝ, ∫ r : ℝ, h (r+u) * (φ u : ℂ) * (φ r : ℂ) := by | |
| 90 | + apply integral_congr_ae | |
| 91 | + filter_upwards [] with u | |
| 92 | + have ht := integral_sub_right_eq_self (μ := volume) (fun r : ℝ => h (r+u) * (φ u : ℂ) * (φ r : ℂ)) u | |
| 93 | + simpa only [sub_add_cancel] using ht | |
| 94 | + _ = ∫ r : ℝ, ∫ u : ℝ, h (r+u) * (φ u : ℂ) * (φ r : ℂ) := hsG.symm | |
| 95 | + _ = _ := by | |
| 96 | + simp only [integral_mul_const] | |
| 97 | + congr 1 | |
| 98 | + ext r | |
| 99 | + congr 1 | |
| 100 | + apply integral_congr_ae | |
| 101 | + filter_upwards [] with u | |
| 102 | + rw [add_comm r u, mul_comm (h (u+r)) (φ u : ℂ)] | |
| 103 | + | |
| 104 | +def truncatedPositiveMellinKernel (w : ℂ) : ℝ → ℂ := | |
| 105 | + (Ioo (0 : ℝ) 2).indicator (fun y : ℝ => (y : ℂ)^(w-1)) | |
| 106 | + | |
| 107 | +lemma truncatedPositiveMellinKernel_integrable (w : ℂ) (hw : 0 < w.re) : | |
| 108 | + Integrable (truncatedPositiveMellinKernel w) := by | |
| 109 | + apply IntegrableOn.integrable_indicator _ measurableSet_Ioo | |
| 110 | + exact (intervalIntegral.integrableOn_Ioo_cpow_iff (by norm_num : (0 : ℝ) < 2)).2 | |
| 111 | + (by simp only [sub_re, one_re]; linarith) | |
| 112 | + | |
| 113 | +lemma mellin_eq_truncated_kernel (f : ℝ → ℝ) (A B : ℝ) (hB : B < 2) | |
| 114 | + (hf : Function.support f ⊆ Icc A B) (w : ℂ) : | |
| 115 | + mellin (fun y => (f y : ℂ)) w = | |
| 116 | + ∫ y : ℝ, truncatedPositiveMellinKernel w y * (f y : ℂ) := by | |
| 117 | + unfold mellin | |
| 118 | + rw [← integral_indicator measurableSet_Ioi] | |
| 119 | + apply integral_congr_ae | |
| 120 | + filter_upwards [] with y | |
| 121 | + by_cases hz : f y = 0 | |
| 122 | + · simp [hz, smul_eq_mul] | |
| 123 | + · have hs := hf hz | |
| 124 | + have hy2 : y < 2 := hs.2.trans_lt hB | |
| 125 | + by_cases hy : 0 < y <;> simp [truncatedPositiveMellinKernel, Set.indicator, hy, hy2, smul_eq_mul] | |
| 126 | + | |
| 127 | +lemma differenceConvolution_mellin_physical (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 128 | + (w : ℂ) (hw : 0 < w.re) : | |
| 129 | + mellin (fun y => (differenceConvolution φ y : ℂ)) w = | |
| 130 | + ∫ r in Ioi (0 : ℝ), (∫ u in Ioo (0 : ℝ) r, (φ u : ℂ) * (r-u : ℂ)^(w-1)) * (φ r : ℂ) := by | |
| 131 | + rw [mellin_eq_truncated_kernel _ _ _ (by norm_num : (1/3 : ℝ) < 2) | |
| 132 | + (differenceConvolution_support φ hφ), | |
| 133 | + difference_convolution_integral_pairing φ hφ _ (truncatedPositiveMellinKernel_integrable w hw)] | |
| 134 | + rw [← setIntegral_eq_integral_of_forall_compl_eq_zero (s := Ioi (0 : ℝ)) (fun r hr => by | |
| 135 | + rw [hφ.eq_zero_of_nonpos (by simpa only [mem_Ioi, not_lt] using hr), ofReal_zero, mul_zero])] | |
| 136 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 137 | + intro r hr | |
| 138 | + dsimp only | |
| 139 | + by_cases hzr : φ r = 0 | |
| 140 | + · simp [hzr] | |
| 141 | + · congr 1 | |
| 142 | + rw [← integral_indicator measurableSet_Ioo] | |
| 143 | + apply integral_congr_ae | |
| 144 | + filter_upwards [] with u | |
| 145 | + by_cases hzu : φ u = 0 | |
| 146 | + · simp [hzu, Set.indicator] | |
| 147 | + · have hrs := hφ.mem_support_interval hzr | |
| 148 | + have hus := hφ.mem_support_interval hzu | |
| 149 | + have hu : 0 < u := by linarith [hus.1] | |
| 150 | + have hru : r-u < 2 := by linarith [hrs.2, hus.1] | |
| 151 | + by_cases hur : u < r | |
| 152 | + · have hpos : 0 < r-u := sub_pos.mpr hur | |
| 153 | + simp [truncatedPositiveMellinKernel, Set.indicator, hu, hur, hpos, hru, ofReal_sub] | |
| 154 | + · have hnon : ¬0 < r-u := by linarith | |
| 155 | + simp [truncatedPositiveMellinKernel, Set.indicator, hu, hur, hnon] | |
| 156 | + | |
| 157 | +lemma sumConvolution_mellin_physical (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 158 | + (w : ℂ) (hw : 0 < w.re) : | |
| 159 | + mellin (fun y => (sumConvolution φ y : ℂ)) w = | |
| 160 | + ∫ r in Ioi (0 : ℝ), (∫ u in Ioi (0 : ℝ), (φ u : ℂ) * (u+r : ℂ)^(w-1)) * (φ r : ℂ) := by | |
| 161 | + rw [mellin_eq_truncated_kernel _ _ _ (by norm_num : (4/3 : ℝ) < 2) | |
| 162 | + (sumConvolution_support φ hφ), | |
| 163 | + sum_convolution_integral_pairing φ hφ _ (truncatedPositiveMellinKernel_integrable w hw)] | |
| 164 | + rw [← setIntegral_eq_integral_of_forall_compl_eq_zero (s := Ioi (0 : ℝ)) (fun r hr => by | |
| 165 | + rw [hφ.eq_zero_of_nonpos (by simpa only [mem_Ioi, not_lt] using hr), ofReal_zero, mul_zero])] | |
| 166 | + apply setIntegral_congr_fun measurableSet_Ioi | |
| 167 | + intro r hr | |
| 168 | + dsimp only | |
| 169 | + by_cases hzr : φ r = 0 | |
| 170 | + · simp [hzr] | |
| 171 | + · congr 1 | |
| 172 | + rw [← integral_indicator measurableSet_Ioi] | |
| 173 | + apply integral_congr_ae | |
| 174 | + filter_upwards [] with u | |
| 175 | + by_cases hzu : φ u = 0 | |
| 176 | + · simp [hzu, Set.indicator] | |
| 177 | + · have hrs := hφ.mem_support_interval hzr | |
| 178 | + have hus := hφ.mem_support_interval hzu | |
| 179 | + have hu : 0 < u := by linarith [hus.1] | |
| 180 | + have hsum : 0 < u+r ∧ u+r < 2 := by constructor <;> linarith [hrs.1, hrs.2, hus.1, hus.2] | |
| 181 | + simp [truncatedPositiveMellinKernel, Set.indicator, hu, hsum.1, hsum.2, ofReal_add] | |
| 182 | + | |
| 183 | +lemma differenceConvolution_mellin_beta (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 184 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) : | |
| 185 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 186 | + mellinWeight φ (w-line σ t) * betaIntegral (1/2-line σ t) w) ∧ | |
| 187 | + mellin (fun y => (differenceConvolution φ y : ℂ)) w = | |
| 188 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) w) := by | |
| 189 | + rw [differenceConvolution_mellin_physical φ hφ w (by linarith)] | |
| 190 | + exact difference_convolution_slices_mellin φ hφ σ hσ hσupper w hw | |
| 191 | + | |
| 192 | +lemma sumConvolution_mellin_beta (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 193 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) : | |
| 194 | + Integrable (fun t : ℝ => mellinWeight φ (line σ t) * | |
| 195 | + mellinWeight φ (w-line σ t) * betaIntegral (1/2-line σ t) (1/2+line σ t-w)) ∧ | |
| 196 | + mellin (fun y => (sumConvolution φ y : ℂ)) w = | |
| 197 | + verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) (1/2+s-w)) := by | |
| 198 | + rw [sumConvolution_mellin_physical φ hφ w (by linarith)] | |
| 199 | + exact sum_convolution_slices_mellin φ hφ σ hσ hσupper w hw | |
| 200 | + | |
| 201 | +end ConditionalGoldbach | |
+159 −0 ConditionalGoldbach/Proofs/MellinDiagonal.lean added View file
| @@ -0,0 +1,159 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinDoubleSeries | |
| 4 | +public import ConditionalGoldbach.Proofs.DensitySeries | |
| 5 | + | |
| 6 | +/-! The diagonal term in Lemma 7.2, evaluated by absolute double Mellin inversion. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | +attribute [local instance] Classical.propDecidable | |
| 15 | + | |
| 16 | +lemma mellin_diagonal_rescale (N n : ℕ) (hN : 0 < N) (hn : 0 < n) (s z a : ℂ) : | |
| 17 | + a / (n : ℂ) * (((n : ℝ) / N : ℝ) : ℂ) ^ (-s) * | |
| 18 | + (((n : ℝ) / N : ℝ) : ℂ) ^ (-z) = | |
| 19 | + (N : ℂ) ^ (s + z) * (a / (n : ℂ) ^ (1 + (s + z))) := by | |
| 20 | + have hn0 : (n : ℂ) ≠ 0 := by exact_mod_cast hn.ne' | |
| 21 | + have hN0 : (N : ℂ) ≠ 0 := by exact_mod_cast hN.ne' | |
| 22 | + have hncp (w : ℂ) : (n : ℂ) ^ w ≠ 0 := cpow_ne_zero_iff.mpr (Or.inl hn0) | |
| 23 | + have hNcp (w : ℂ) : (N : ℂ) ^ w ≠ 0 := cpow_ne_zero_iff.mpr (Or.inl hN0) | |
| 24 | + rw [Complex.ofReal_div, | |
| 25 | + Complex.div_cpow_ofReal_nonneg (a := (n : ℝ)) (b := (N : ℝ)) (by positivity) (by positivity), | |
| 26 | + Complex.div_cpow_ofReal_nonneg (a := (n : ℝ)) (b := (N : ℝ)) (by positivity) (by positivity), | |
| 27 | + Complex.ofReal_natCast, Complex.ofReal_natCast] | |
| 28 | + simp only [cpow_neg, cpow_add _ _ hn0, cpow_add _ _ hN0, cpow_one] | |
| 29 | + field_simp | |
| 30 | + | |
| 31 | +lemma diagonal_mellin_coeff_summable (N : ℕ) (hN : 0 < N) (σ : ℝ) (hσ : 0 < σ) : | |
| 32 | + Summable (fun k : ℕ => | |
| 33 | + ‖if Nat.Coprime (k + 1) N then (mangoldt (k + 1) : ℂ) ^ 2 / (k + 1 : ℕ) else 0‖ * | |
| 34 | + Real.rpow ((k + 1 : ℕ) / (N : ℝ)) (-σ) ^ 2) := by | |
| 35 | + have hs := diagonalSeries_summable N (w := (σ : ℂ) + σ) (by simpa using hσ) | |
| 36 | + have hh := ((summable_nat_add_iff 1).2 hs).mul_left ‖(N : ℂ) ^ ((σ : ℂ) + σ)‖ | |
| 37 | + apply hh.congr | |
| 38 | + intro k | |
| 39 | + have hid := congrArg norm (mellin_diagonal_rescale N (k + 1) hN (by omega) | |
| 40 | + (σ : ℂ) (σ : ℂ) ((mangoldt (k + 1) : ℂ) ^ 2)) | |
| 41 | + simp only [norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos (by positivity : 0 < (k + 1 : ℕ) / (N : ℝ)), | |
| 42 | + neg_re, ofReal_re, ← Real.rpow_eq_pow] at hid | |
| 43 | + simp only [Nat.succ_pos, true_and] | |
| 44 | + split_ifs with hk | |
| 45 | + · simpa only [pow_two, mul_assoc] using hid.symm | |
| 46 | + · simp | |
| 47 | + | |
| 48 | +lemma diagonal_companion_term (N n : ℕ) (hN : 0 < N) (φ : ℝ → ℝ) : | |
| 49 | + ((mangoldt n : ℂ) ^ 2 / (n : ℂ)) * (companion φ (n / N) : ℂ) ^ 2 = | |
| 50 | + (N : ℂ)⁻¹ * ((mangoldt n : ℂ) ^ 2 * (φ (n / N) : ℂ) ^ 2) := by | |
| 51 | + by_cases hn : n = 0 | |
| 52 | + · subst n | |
| 53 | + simp [mangoldt] | |
| 54 | + have hn0 : (n : ℂ) ≠ 0 := by exact_mod_cast hn | |
| 55 | + have hN0 : (N : ℂ) ≠ 0 := by exact_mod_cast hN.ne' | |
| 56 | + have hu : 0 ≤ (n : ℝ) / N := by positivity | |
| 57 | + simp only [companion, ofReal_mul, mul_pow] | |
| 58 | + have hsqrt : (Real.sqrt ((n : ℝ) / N) : ℂ) ^ 2 = (n : ℂ) / N := by | |
| 59 | + rw [← ofReal_pow, Real.sq_sqrt hu, ofReal_div, ofReal_natCast, ofReal_natCast] | |
| 60 | + rw [hsqrt] | |
| 61 | + field_simp | |
| 62 | + | |
| 63 | +lemma diagonal_mellin_series (N : ℕ) (hN : 0 < N) (φ : ℝ → ℝ) | |
| 64 | + (s z : ℂ) (hsz : 0 < (s + z).re) : | |
| 65 | + (∑' k : ℕ, | |
| 66 | + (if Nat.Coprime (k + 1) N then (mangoldt (k + 1) : ℂ) ^ 2 / (k + 1 : ℕ) else 0) * | |
| 67 | + (mellinWeight φ s * (((k + 1 : ℕ) / (N : ℝ) : ℝ) : ℂ) ^ (-s)) * | |
| 68 | + (mellinWeight φ z * (((k + 1 : ℕ) / (N : ℝ) : ℝ) : ℂ) ^ (-z))) = | |
| 69 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * diagonalSeries N (s + z) := by | |
| 70 | + have hs : Summable (fun n : ℕ => if 0 < n ∧ Nat.Coprime n N then | |
| 71 | + (mangoldt n : ℂ) ^ 2 / (n : ℂ) ^ (1 + (s + z)) else 0) := by | |
| 72 | + apply Summable.of_norm | |
| 73 | + simpa only [apply_ite norm, norm_zero] using diagonalSeries_summable N hsz | |
| 74 | + have hdiag : diagonalSeries N (s + z) = ∑' k : ℕ, | |
| 75 | + if Nat.Coprime (k + 1) N then | |
| 76 | + (mangoldt (k + 1) : ℂ) ^ 2 / (k + 1 : ℕ) ^ (1 + (s + z)) else 0 := by | |
| 77 | + unfold diagonalSeries | |
| 78 | + rw [hs.tsum_eq_zero_add] | |
| 79 | + simp only [Nat.not_lt_zero, false_and, ite_false, zero_add, Nat.succ_pos, true_and] | |
| 80 | + rw [hdiag, ← tsum_mul_left] | |
| 81 | + apply tsum_congr | |
| 82 | + intro k | |
| 83 | + split_ifs with hk | |
| 84 | + · have h := mellin_diagonal_rescale N (k + 1) hN (by omega) s z ((mangoldt (k + 1) : ℂ) ^ 2) | |
| 85 | + calc | |
| 86 | + _ = (((mangoldt (k + 1) : ℂ) ^ 2 / (k + 1 : ℕ)) * | |
| 87 | + (((k + 1 : ℕ) / (N : ℝ) : ℝ) : ℂ) ^ (-s) * | |
| 88 | + (((k + 1 : ℕ) / (N : ℝ) : ℝ) : ℂ) ^ (-z)) * (mellinWeight φ s * mellinWeight φ z) := by ring | |
| 89 | + _ = _ := by rw [h]; ring | |
| 90 | + · simp | |
| 91 | + | |
| 92 | +lemma diagonal_companion_tsum (N : ℕ) (hN : 0 < N) (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 93 | + (∑' k : ℕ, | |
| 94 | + (if Nat.Coprime (k + 1) N then (mangoldt (k + 1) : ℂ) ^ 2 / (k + 1 : ℕ) else 0) * | |
| 95 | + (companion φ ((k + 1 : ℕ) / N) : ℂ) ^ 2) = (diagonalMoment N φ : ℂ) := by | |
| 96 | + let f : ℕ → ℂ := fun n => if Nat.Coprime n N then | |
| 97 | + (mangoldt n : ℂ) ^ 2 * (φ (n / N) : ℂ) ^ 2 else 0 | |
| 98 | + have hfzero : ∀ n ∉ Finset.range (N + 1), f n = 0 := by | |
| 99 | + intro n hn | |
| 100 | + have hnlarge : N < n := by | |
| 101 | + have h : N + 1 ≤ n := by simpa only [Finset.mem_range, not_lt] using hn | |
| 102 | + omega | |
| 103 | + have hz : φ ((n : ℝ) / N) = 0 := by | |
| 104 | + by_contra hnonzero | |
| 105 | + have hs := hφ.mem_support_interval hnonzero | |
| 106 | + have hNr : 0 < (N : ℝ) := by exact_mod_cast hN | |
| 107 | + have hnr : (N : ℝ) < n := by exact_mod_cast hnlarge | |
| 108 | + have hi := (div_le_iff₀ hNr).1 hs.2 | |
| 109 | + nlinarith | |
| 110 | + simp [f, hz] | |
| 111 | + have hfs : Summable f := summable_of_ne_finset_zero hfzero | |
| 112 | + have hterm (k : ℕ) : | |
| 113 | + (if Nat.Coprime (k + 1) N then (mangoldt (k + 1) : ℂ) ^ 2 / (k + 1 : ℕ) else 0) * | |
| 114 | + (companion φ ((k + 1 : ℕ) / N) : ℂ) ^ 2 = (N : ℂ)⁻¹ * f (k + 1) := by | |
| 115 | + dsimp [f] | |
| 116 | + split_ifs with hk | |
| 117 | + · exact diagonal_companion_term N (k + 1) hN φ | |
| 118 | + · simp | |
| 119 | + simp_rw [hterm] | |
| 120 | + rw [tsum_mul_left] | |
| 121 | + have hzero : f 0 = 0 := by simp [f, mangoldt] | |
| 122 | + have hsum : (∑' k, f (k + 1)) = ∑ n ∈ Finset.range (N + 1), f n := by | |
| 123 | + rw [← zero_add (∑' k, f (k + 1)), ← hzero, ← hfs.tsum_eq_zero_add] | |
| 124 | + exact tsum_eq_sum hfzero | |
| 125 | + rw [hsum] | |
| 126 | + unfold diagonalMoment | |
| 127 | + push_cast | |
| 128 | + simp only [f, apply_ite Complex.ofReal, ofReal_mul, ofReal_pow, ofReal_zero] | |
| 129 | + | |
| 130 | +theorem diagonalMoment_mellin (N : ℕ) (hN : 0 < N) (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 131 | + (σ : ℝ) (hσ : 0 < σ) : | |
| 132 | + Integrable (fun p : ℝ × ℝ => | |
| 133 | + (N : ℂ) ^ (line σ p.1 + line σ p.2) * | |
| 134 | + mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * | |
| 135 | + diagonalSeries N (line σ p.1 + line σ p.2)) ∧ | |
| 136 | + verticalMellin σ (fun s => verticalMellin σ (fun z => | |
| 137 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * diagonalSeries N (s + z))) = | |
| 138 | + diagonalMoment N φ := by | |
| 139 | + obtain ⟨hi, hs⟩ := double_mellin_inversion_series φ hφ σ | |
| 140 | + (fun k : ℕ => (k + 1 : ℕ) / (N : ℝ)) | |
| 141 | + (fun k : ℕ => if Nat.Coprime (k + 1) N then | |
| 142 | + (mangoldt (k + 1) : ℂ) ^ 2 / (k + 1 : ℕ) else 0) | |
| 143 | + (fun k => by positivity) (diagonal_mellin_coeff_summable N hN σ hσ) | |
| 144 | + have hline (x y : ℝ) : 0 < (line σ x + line σ y).re := by simp [line]; linarith | |
| 145 | + constructor | |
| 146 | + · apply hi.congr | |
| 147 | + filter_upwards [] with p | |
| 148 | + exact diagonal_mellin_series N hN φ (line σ p.1) (line σ p.2) (hline _ _) | |
| 149 | + · rw [← diagonal_companion_tsum N hN φ hφ, hs.tsum_eq] | |
| 150 | + unfold verticalMellin | |
| 151 | + congr 1 | |
| 152 | + apply integral_congr_ae | |
| 153 | + filter_upwards [] with t | |
| 154 | + congr 1 | |
| 155 | + apply integral_congr_ae | |
| 156 | + filter_upwards [] with y | |
| 157 | + exact (diagonal_mellin_series N hN φ (line σ t) (line σ y) (hline _ _)).symm | |
| 158 | + | |
| 159 | +end ConditionalGoldbach | |
+206 −0 ConditionalGoldbach/Proofs/MellinDifferentiation.lean added View file
| @@ -0,0 +1,206 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinBasic | |
| 4 | + | |
| 5 | +/-! Integration by parts for the compact Mellin test functions. -/ | |
| 6 | +@[expose] public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +def mellinD (f : ℝ → ℝ) (u : ℝ) : ℝ := f u - u * deriv f u | |
| 15 | + | |
| 16 | +lemma mellinD_contDiff {f : ℝ → ℝ} (hf : ContDiff ℝ ∞ f) : | |
| 17 | + ContDiff ℝ ∞ (mellinD f) := by | |
| 18 | + exact hf.sub (contDiff_id.mul (contDiff_infty_iff_deriv.mp hf).2) | |
| 19 | + | |
| 20 | +lemma mellinD_support {f : ℝ → ℝ} | |
| 21 | + (hs : Function.support f ⊆ Icc (1 / 3 : ℝ) (2 / 3)) : | |
| 22 | + Function.support (mellinD f) ⊆ Icc (1 / 3 : ℝ) (2 / 3) := by | |
| 23 | + have ht : tsupport f ⊆ Icc (1 / 3 : ℝ) (2 / 3) := closure_minimal hs isClosed_Icc | |
| 24 | + intro x hx | |
| 25 | + by_contra hout | |
| 26 | + have hz : f x = 0 := by by_contra hn; exact hout (hs hn) | |
| 27 | + have hdz : deriv f x = 0 := by by_contra hn; exact hout (ht (support_deriv_subset hn)) | |
| 28 | + exact hx (by simp [mellinD, hz, hdz]) | |
| 29 | + | |
| 30 | +lemma mellin_test_interval (f : ℝ → ℝ) | |
| 31 | + (hs : Function.support f ⊆ Icc (1 / 3 : ℝ) (2 / 3)) (s : ℂ) : | |
| 32 | + mellin (fun u => (f u : ℂ)) s = | |
| 33 | + ∫ u in (1 / 4 : ℝ)..(3 / 4 : ℝ), (u : ℂ) ^ (s - 1) * (f u : ℂ) := by | |
| 34 | + have hsupport : Function.support (fun u : ℝ => (u : ℂ) ^ (s - 1) * (f u : ℂ)) ⊆ | |
| 35 | + Ioc (1 / 4 : ℝ) (3 / 4) := by | |
| 36 | + intro u hu | |
| 37 | + have hn : f u ≠ 0 := by intro hzero; exact hu (by simp [hzero]) | |
| 38 | + have h := hs hn | |
| 39 | + constructor <;> linarith [h.1, h.2] | |
| 40 | + rw [intervalIntegral.integral_eq_integral_of_support_subset hsupport] | |
| 41 | + unfold mellin | |
| 42 | + simp only [smul_eq_mul] | |
| 43 | + apply setIntegral_eq_integral_of_forall_compl_eq_zero | |
| 44 | + intro u hu | |
| 45 | + have hf0 : f u = 0 := by | |
| 46 | + by_contra hn | |
| 47 | + have h := hs hn | |
| 48 | + simp only [mem_Ioi, not_lt] at hu | |
| 49 | + linarith [h.1] | |
| 50 | + simp [hf0] | |
| 51 | + | |
| 52 | +lemma mellin_test_intervalIntegrable (f : ℝ → ℝ) (hf : Continuous f) (s : ℂ) : | |
| 53 | + IntervalIntegrable (fun u : ℝ => (u : ℂ) ^ s * (f u : ℂ)) volume (1 / 4 : ℝ) (3 / 4 : ℝ) := by | |
| 54 | + apply ContinuousOn.intervalIntegrable | |
| 55 | + intro u hu | |
| 56 | + rw [uIcc_of_le (by norm_num : (1 / 4 : ℝ) ≤ 3 / 4)] at hu | |
| 57 | + have hu0 : u ≠ 0 := by linarith [hu.1] | |
| 58 | + exact ((Complex.continuousAt_ofReal_cpow_const u s (Or.inr hu0)).mul | |
| 59 | + (Complex.continuous_ofReal.continuousAt.comp hf.continuousAt)).continuousWithinAt | |
| 60 | + | |
| 61 | +theorem mellinD_transform (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) | |
| 62 | + (hs : Function.support f ⊆ Icc (1 / 3 : ℝ) (2 / 3)) (s : ℂ) : | |
| 63 | + mellin (fun u => (mellinD f u : ℂ)) s = (1 + s) * mellin (fun u => (f u : ℂ)) s := by | |
| 64 | + let A : ℝ → ℂ := fun u => (u : ℂ) ^ (s - 1) * (f u : ℂ) | |
| 65 | + let B : ℝ → ℂ := fun u => (u : ℂ) ^ s * ((deriv f u : ℝ) : ℂ) | |
| 66 | + have hA : IntervalIntegrable A volume (1 / 4 : ℝ) (3 / 4 : ℝ) := | |
| 67 | + mellin_test_intervalIntegrable f hf.continuous (s - 1) | |
| 68 | + have hB : IntervalIntegrable B volume (1 / 4 : ℝ) (3 / 4 : ℝ) := | |
| 69 | + mellin_test_intervalIntegrable (deriv f) (contDiff_infty_iff_deriv.mp hf).2.continuous s | |
| 70 | + have hFTC : (∫ u in (1 / 4 : ℝ)..(3 / 4 : ℝ), s * A u + B u) = 0 := by | |
| 71 | + have hd (u : ℝ) (hu : u ∈ uIcc (1 / 4 : ℝ) (3 / 4 : ℝ)) : | |
| 72 | + HasDerivAt (fun u : ℝ => (u : ℂ) ^ s * (f u : ℂ)) (s * A u + B u) u := by | |
| 73 | + rw [uIcc_of_le (by norm_num : (1 / 4 : ℝ) ≤ 3 / 4)] at hu | |
| 74 | + have hu0 : u ≠ 0 := by linarith [hu.1] | |
| 75 | + have hcp : HasDerivAt (fun y : ℝ => (y : ℂ) ^ s) (s * (u : ℂ) ^ (s - 1)) u := by | |
| 76 | + by_cases hs0 : s = 0 | |
| 77 | + · subst s | |
| 78 | + simpa using hasDerivAt_const u (1 : ℂ) | |
| 79 | + · exact hasDerivAt_ofReal_cpow_const hu0 hs0 | |
| 80 | + convert hcp.mul ((hf.differentiable (by norm_num) u).hasDerivAt.ofReal_comp) using 1 | |
| 81 | + dsimp [A, B] | |
| 82 | + ring | |
| 83 | + have heq := intervalIntegral.integral_eq_sub_of_hasDerivAt hd ((hA.const_mul s).add hB) | |
| 84 | + have hz₁ : f (1 / 4 : ℝ) = 0 := by | |
| 85 | + by_contra hn | |
| 86 | + have h := hs hn | |
| 87 | + norm_num at h | |
| 88 | + have hz₂ : f (3 / 4 : ℝ) = 0 := by | |
| 89 | + by_contra hn | |
| 90 | + have h := hs hn | |
| 91 | + norm_num at h | |
| 92 | + simpa only [hz₁, hz₂, Complex.ofReal_zero, mul_zero, sub_self] using heq | |
| 93 | + rw [intervalIntegral.integral_add (hA.const_mul s) hB, | |
| 94 | + intervalIntegral.integral_const_mul] at hFTC | |
| 95 | + rw [mellin_test_interval _ (mellinD_support hs), mellin_test_interval _ hs] | |
| 96 | + have hD : (∫ u in (1 / 4 : ℝ)..(3 / 4 : ℝ), (u : ℂ) ^ (s - 1) * (mellinD f u : ℂ)) = | |
| 97 | + ∫ u in (1 / 4 : ℝ)..(3 / 4 : ℝ), A u - B u := by | |
| 98 | + apply intervalIntegral.integral_congr | |
| 99 | + intro u hu | |
| 100 | + rw [uIcc_of_le (by norm_num : (1 / 4 : ℝ) ≤ 3 / 4)] at hu | |
| 101 | + have hu0 : (u : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr (by linarith [hu.1]) | |
| 102 | + have hpow : (u : ℂ) ^ (s - 1) * u = (u : ℂ) ^ s := by | |
| 103 | + calc | |
| 104 | + _ = (u : ℂ) ^ (s - 1) * (u : ℂ) ^ (1 : ℂ) := by rw [cpow_one] | |
| 105 | + _ = (u : ℂ) ^ ((s - 1) + 1) := (cpow_add _ _ hu0).symm | |
| 106 | + _ = _ := by congr 1; ring | |
| 107 | + dsimp [A, B, mellinD] | |
| 108 | + push_cast | |
| 109 | + rw [mul_sub, ← mul_assoc, hpow] | |
| 110 | + rw [hD, intervalIntegral.integral_sub hA hB] | |
| 111 | + change (∫ u in (1 / 4 : ℝ)..(3 / 4 : ℝ), A u) - (∫ u in (1 / 4 : ℝ)..(3 / 4 : ℝ), B u) = | |
| 112 | + (1 + s) * ∫ u in (1 / 4 : ℝ)..(3 / 4 : ℝ), A u | |
| 113 | + linear_combination -hFTC | |
| 114 | + | |
| 115 | + | |
| 116 | +lemma mellinD_iterate_regular (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) | |
| 117 | + (hs : Function.support f ⊆ Icc (1 / 3 : ℝ) (2 / 3)) (k : ℕ) : | |
| 118 | + ContDiff ℝ ∞ (mellinD^[k] f) ∧ | |
| 119 | + Function.support (mellinD^[k] f) ⊆ Icc (1 / 3 : ℝ) (2 / 3) := by | |
| 120 | + induction k with | |
| 121 | + | zero => exact ⟨hf, hs⟩ | |
| 122 | + | succ k ih => | |
| 123 | + rw [Function.iterate_succ_apply'] | |
| 124 | + exact ⟨mellinD_contDiff ih.1, mellinD_support ih.2⟩ | |
| 125 | + | |
| 126 | +lemma mellinD_iterate_transform (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) | |
| 127 | + (hs : Function.support f ⊆ Icc (1 / 3 : ℝ) (2 / 3)) (k : ℕ) (s : ℂ) : | |
| 128 | + mellin (fun u => (mellinD^[k] f u : ℂ)) s = | |
| 129 | + (1 + s) ^ k * mellin (fun u => (f u : ℂ)) s := by | |
| 130 | + induction k with | |
| 131 | + | zero => simp | |
| 132 | + | succ k ih => | |
| 133 | + rw [Function.iterate_succ_apply', mellinD_transform _ | |
| 134 | + (mellinD_iterate_regular f hf hs k).1 (mellinD_iterate_regular f hf hs k).2, ih, pow_succ] | |
| 135 | + ring | |
| 136 | + | |
| 137 | +lemma mellin_test_uniform_bound (f : ℝ → ℝ) (hf : Continuous f) | |
| 138 | + (hs : Function.support f ⊆ Icc (1 / 3 : ℝ) (2 / 3)) (lo : ℝ) : | |
| 139 | + ∃ C : ℝ, 0 < C ∧ ∀ s : ℂ, lo ≤ s.re → ‖mellin (fun u => (f u : ℂ)) s‖ ≤ C := by | |
| 140 | + let B := ∫ u in (1 / 4 : ℝ)..(3 / 4 : ℝ), | |
| 141 | + ‖(u : ℂ) ^ ((lo : ℂ) - 1) * (f u : ℂ)‖ | |
| 142 | + have hB : 0 ≤ B := intervalIntegral.integral_nonneg_of_forall (by norm_num) (fun _ => norm_nonneg _) | |
| 143 | + refine ⟨B + 1, by positivity, fun s hsl => ?_⟩ | |
| 144 | + rw [mellin_test_interval _ hs] | |
| 145 | + apply le_trans (intervalIntegral.norm_integral_le_integral_norm (by norm_num)) | |
| 146 | + apply le_trans _ (by linarith : B ≤ B + 1) | |
| 147 | + apply intervalIntegral.integral_mono_on (by norm_num) | |
| 148 | + (mellin_test_intervalIntegrable f hf (s - 1)).norm | |
| 149 | + (mellin_test_intervalIntegrable f hf ((lo : ℂ) - 1)).norm | |
| 150 | + intro u hu | |
| 151 | + have hu0 : 0 < u := by linarith [hu.1] | |
| 152 | + have hu1 : u ≤ 1 := by linarith [hu.2] | |
| 153 | + simp only [norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos hu0, sub_re, ofReal_re, one_re] | |
| 154 | + exact mul_le_mul_of_nonneg_right (Real.rpow_le_rpow_of_exponent_ge hu0 hu1 (by linarith)) | |
| 155 | + (norm_nonneg _) | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | +lemma mellin_test_rapid_decay (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) | |
| 160 | + (hs : Function.support f ⊆ Icc (1 / 3 : ℝ) (2 / 3)) (lo : ℝ) (k : ℕ) : | |
| 161 | + ∃ C : ℝ, 0 < C ∧ ∀ s : ℂ, lo ≤ s.re → | |
| 162 | + ‖mellin (fun u => (f u : ℂ)) s‖ ≤ C * (1 + |s.im|)⁻¹ ^ k := by | |
| 163 | + obtain ⟨C₀, hC₀, hzero⟩ := mellin_test_uniform_bound f hf.continuous hs lo | |
| 164 | + obtain ⟨Ck, hCk, hk⟩ := mellin_test_uniform_bound (mellinD^[k] f) | |
| 165 | + (mellinD_iterate_regular f hf hs k).1.continuous (mellinD_iterate_regular f hf hs k).2 lo | |
| 166 | + refine ⟨2 ^ k * (C₀ + Ck), by positivity, fun s hsl => ?_⟩ | |
| 167 | + have hnorm := hk s hsl | |
| 168 | + rw [mellinD_iterate_transform f hf hs k s, norm_mul, norm_pow] at hnorm | |
| 169 | + have him : |s.im| ≤ ‖1 + s‖ := by simpa only [add_im, one_im, zero_add] using Complex.abs_im_le_norm (1 + s) | |
| 170 | + have hpower : |s.im| ^ k * ‖mellin (fun u => (f u : ℂ)) s‖ ≤ Ck := | |
| 171 | + (mul_le_mul_of_nonneg_right (pow_le_pow_left₀ (abs_nonneg _) him k) (norm_nonneg _)).trans hnorm | |
| 172 | + have hden : 0 < (1 + |s.im|) ^ k := by positivity | |
| 173 | + rw [inv_pow, ← div_eq_mul_inv, le_div_iff₀ hden] | |
| 174 | + by_cases hsmall : |s.im| ≤ 1 | |
| 175 | + · have hpow : (1 + |s.im|) ^ k ≤ (2 : ℝ) ^ k := | |
| 176 | + pow_le_pow_left₀ (by positivity) (by linarith) k | |
| 177 | + calc | |
| 178 | + _ ≤ C₀ * (2 : ℝ) ^ k := mul_le_mul (hzero s hsl) hpow (by positivity) hC₀.le | |
| 179 | + _ ≤ _ := by nlinarith [mul_nonneg (show 0 ≤ (2 : ℝ) ^ k by positivity) hCk.le] | |
| 180 | + · have hlarge : 1 < |s.im| := lt_of_not_ge hsmall | |
| 181 | + have hpow : (1 + |s.im|) ^ k ≤ (2 * |s.im|) ^ k := | |
| 182 | + pow_le_pow_left₀ (by positivity) (by linarith) k | |
| 183 | + calc | |
| 184 | + _ ≤ ‖mellin (fun u => (f u : ℂ)) s‖ * (2 * |s.im|) ^ k := | |
| 185 | + mul_le_mul_of_nonneg_left hpow (norm_nonneg _) | |
| 186 | + _ = (2 : ℝ) ^ k * (|s.im| ^ k * ‖mellin (fun u => (f u : ℂ)) s‖) := by rw [mul_pow]; ring | |
| 187 | + _ ≤ (2 : ℝ) ^ k * Ck := mul_le_mul_of_nonneg_left hpower (by positivity) | |
| 188 | + _ ≤ _ := mul_le_mul_of_nonneg_left (by linarith) (by positivity) | |
| 189 | + | |
| 190 | +theorem mellinWeight_uniform_decay (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 191 | + (lo hi : ℝ) (_hlohi : lo ≤ hi) : | |
| 192 | + ∃ C : ℝ, 0 < C ∧ ∀ σ ∈ Icc lo hi, ∀ t : ℝ, | |
| 193 | + ‖mellinWeight φ (line σ t)‖ ≤ C * (1 + |t|)⁻¹ ^ 6 := by | |
| 194 | + obtain ⟨C, hC, hb⟩ := mellin_test_rapid_decay (companion φ) | |
| 195 | + (companion_contDiff hφ) (companion_support_subset hφ) lo 6 | |
| 196 | + refine ⟨C, hC, fun σ hσ t => ?_⟩ | |
| 197 | + simpa only [mellinWeight, line, add_re, ofReal_re, mul_re, ofReal_im, | |
| 198 | + I_re, I_im, mul_zero, zero_mul, sub_self, add_zero, add_im, mul_im, mul_one, zero_add] | |
| 199 | + using hb (line σ t) (by simpa [line] using hσ.1) | |
| 200 | + | |
| 201 | + | |
| 202 | +theorem derivativeWeight_mellin (φ : ℝ → ℝ) (hφ : IsWeight φ) (s : ℂ) : | |
| 203 | + mellin (fun u => (derivativeWeight φ u : ℂ)) s = (1 + s) * mellinWeight φ s := by | |
| 204 | + exact mellinD_transform (companion φ) (companion_contDiff hφ) (companion_support_subset hφ) s | |
| 205 | + | |
| 206 | +end ConditionalGoldbach | |
+83 −0 ConditionalGoldbach/Proofs/MellinDoubleDiagonal.lean added View file
| @@ -0,0 +1,83 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Definitions.Model | |
| 4 | +public import Mathlib.MeasureTheory.Group.Prod | |
| 5 | +public import Mathlib.MeasureTheory.Integral.Prod | |
| 6 | +public import Mathlib.MeasureTheory.Measure.Lebesgue.EqHaar | |
| 7 | +import Mathlib.Tactic.Push | |
| 8 | +import Mathlib.Tactic.Ring | |
| 9 | + | |
| 10 | +/-! Diagonalization and factor extraction for double vertical Mellin integrals. -/ | |
| 11 | +public section | |
| 12 | + | |
| 13 | +set_option autoImplicit false | |
| 14 | +noncomputable section | |
| 15 | +open scoped BigOperators ComplexConjugate Topology | |
| 16 | +open MeasureTheory Filter Set Complex | |
| 17 | +namespace ConditionalGoldbach | |
| 18 | + | |
| 19 | +lemma double_verticalMellin_diagonal (F : ℂ → ℂ → ℂ) (σ : ℝ) | |
| 20 | + (hi : Integrable (fun p : ℝ × ℝ => F (line σ p.1) (line σ p.2))) : | |
| 21 | + verticalMellin σ (fun s => verticalMellin σ (fun z => F s z)) = | |
| 22 | + verticalMellin (2*σ) (fun w => verticalMellin σ (fun s => F s (w-s))) := by | |
| 23 | + have hline (v t : ℝ) : line (2*σ) t-line σ v = line σ (t-v) := by | |
| 24 | + unfold line | |
| 25 | + push_cast | |
| 26 | + ring | |
| 27 | + rw [Measure.volume_eq_prod] at hi | |
| 28 | + have hg : Integrable (fun p : ℝ × ℝ => F (line σ p.1) (line σ (p.2-p.1))) | |
| 29 | + (volume.prod volume) := (measurePreserving_prod_sub volume volume).integrable_comp_of_integrable hi | |
| 30 | + have he : (∫ v : ℝ, ∫ y : ℝ, F (line σ v) (line σ y)) = | |
| 31 | + ∫ t : ℝ, ∫ v : ℝ, F (line σ v) (line (2*σ) t-line σ v) := by | |
| 32 | + calc | |
| 33 | + _ = ∫ v : ℝ, ∫ t : ℝ, F (line σ v) (line σ (t-v)) := by | |
| 34 | + apply integral_congr_ae | |
| 35 | + filter_upwards [] with v | |
| 36 | + exact (integral_sub_right_eq_self (μ := volume) (fun y : ℝ => F (line σ v) (line σ y)) v).symm | |
| 37 | + _ = ∫ t : ℝ, ∫ v : ℝ, F (line σ v) (line σ (t-v)) := | |
| 38 | + integral_integral_swap (f := fun v t : ℝ => F (line σ v) (line σ (t-v))) hg | |
| 39 | + _ = _ := by simp_rw [hline] | |
| 40 | + simp only [verticalMellin, integral_const_mul, he] | |
| 41 | + | |
| 42 | +/-- Reduce the double model integral to one vertical Mellin integral. The joint | |
| 43 | +integrability and beta-transform identity are supplied separately by the smooth | |
| 44 | +weight and finite-regularity constructions. -/ | |
| 45 | +lemma model_double_mellin_eq_single (N : ℕ) (φ : ℝ → ℝ) (σ : ℝ) | |
| 46 | + (hi : Integrable (fun p : ℝ × ℝ => | |
| 47 | + mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * | |
| 48 | + continuedDensity N (line σ p.1 + line σ p.2) * | |
| 49 | + betaKernel (line σ p.1) (line σ p.2))) | |
| 50 | + (hbeta : ∀ w : ℂ, w.re = 2 * σ → | |
| 51 | + mellin (fun y => (signedConvolution φ y : ℂ)) w = | |
| 52 | + verticalMellin σ (fun s => | |
| 53 | + mellinWeight φ s * mellinWeight φ (w - s) * betaKernel s (w - s))) : | |
| 54 | + verticalMellin σ (fun s => verticalMellin σ (fun z => | |
| 55 | + mellinWeight φ s * mellinWeight φ z * continuedDensity N (s + z) * betaKernel s z)) = | |
| 56 | + verticalMellin (2 * σ) (fun w => | |
| 57 | + continuedDensity N w * mellin (fun y => (signedConvolution φ y : ℂ)) w) := by | |
| 58 | + rw [double_verticalMellin_diagonal _ σ hi] | |
| 59 | + unfold verticalMellin | |
| 60 | + congr 1 | |
| 61 | + apply integral_congr_ae | |
| 62 | + filter_upwards [] with t | |
| 63 | + let w := line (2 * σ) t | |
| 64 | + have hw : w.re = 2 * σ := by simp [w, line] | |
| 65 | + have he (s : ℂ) : mellinWeight φ s * mellinWeight φ (w - s) * | |
| 66 | + continuedDensity N (s + (w - s)) * betaKernel s (w - s) = | |
| 67 | + continuedDensity N w * | |
| 68 | + (mellinWeight φ s * mellinWeight φ (w - s) * betaKernel s (w - s)) := by | |
| 69 | + rw [add_sub_cancel] | |
| 70 | + ring | |
| 71 | + change (2 * (Real.pi : ℂ))⁻¹ * | |
| 72 | + (∫ u : ℝ, mellinWeight φ (line σ u) * mellinWeight φ (w - line σ u) * | |
| 73 | + continuedDensity N (line σ u + (w - line σ u)) * | |
| 74 | + betaKernel (line σ u) (w - line σ u)) = _ | |
| 75 | + simp_rw [he] | |
| 76 | + rw [integral_const_mul] | |
| 77 | + change (2 * (Real.pi : ℂ))⁻¹ * (continuedDensity N w * _) = | |
| 78 | + continuedDensity N w * mellin (fun y => (signedConvolution φ y : ℂ)) w | |
| 79 | + rw [hbeta w hw] | |
| 80 | + unfold verticalMellin | |
| 81 | + ring | |
| 82 | + | |
| 83 | +end ConditionalGoldbach | |
+75 −0 ConditionalGoldbach/Proofs/MellinDoubleSeries.lean added View file
| @@ -0,0 +1,75 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinMoment | |
| 4 | + | |
| 5 | +/-! Absolutely convergent double Mellin inversion for a common sampling sequence. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma double_mellin_inversion_series {ι : Type*} [Countable ι] | |
| 15 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (u : ι → ℝ) (b : ι → ℂ) | |
| 16 | + (hu : ∀ i, 0 < u i) | |
| 17 | + (hb : Summable (fun i => ‖b i‖ * Real.rpow (u i) (-σ) ^ 2)) : | |
| 18 | + Integrable (fun p : ℝ × ℝ => ∑' i, | |
| 19 | + b i * (mellinWeight φ (line σ p.1) * (u i : ℂ) ^ (-line σ p.1)) * | |
| 20 | + (mellinWeight φ (line σ p.2) * (u i : ℂ) ^ (-line σ p.2))) ∧ | |
| 21 | + HasSum (fun i => b i * (companion φ (u i) : ℂ) ^ 2) | |
| 22 | + (verticalMellin σ (fun s => verticalMellin σ (fun z => ∑' i, | |
| 23 | + b i * (mellinWeight φ s * (u i : ℂ) ^ (-s)) * | |
| 24 | + (mellinWeight φ z * (u i : ℂ) ^ (-z))))) := by | |
| 25 | + let F : ι → ℝ × ℝ → ℂ := fun i p => | |
| 26 | + b i * (mellinWeight φ (line σ p.1) * (u i : ℂ) ^ (-line σ p.1)) * | |
| 27 | + (mellinWeight φ (line σ p.2) * (u i : ℂ) ^ (-line σ p.2)) | |
| 28 | + let B : ι → ℝ × ℝ → ℝ := fun i p => | |
| 29 | + (‖b i‖ * Real.rpow (u i) (-σ) ^ 2) * | |
| 30 | + (‖mellinWeight φ (line σ p.1)‖ * ‖mellinWeight φ (line σ p.2)‖) | |
| 31 | + have hi (i : ι) : Integrable (F i) := | |
| 32 | + ((mellinWeight_inversion_integrable hφ σ (u i) (hu i)).const_mul (b i)).mul_prod | |
| 33 | + (mellinWeight_inversion_integrable hφ σ (u i) (hu i)) | |
| 34 | + have heq (i : ι) (p : ℝ × ℝ) : ‖F i p‖ = B i p := by | |
| 35 | + simp only [F, B, norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos (hu i)] | |
| 36 | + simp only [line, neg_re, add_re, ofReal_re, mul_re, ofReal_im, I_re, I_im, | |
| 37 | + mul_zero, zero_mul, sub_self, add_zero, Real.rpow_eq_pow] | |
| 38 | + ring | |
| 39 | + have hBi : Integrable (fun p : ℝ × ℝ => ∑' i, B i p) := by | |
| 40 | + simp only [B, tsum_mul_right] | |
| 41 | + exact ((mellinWeight_verticalIntegrable hφ σ).norm.mul_prod | |
| 42 | + (mellinWeight_verticalIntegrable hφ σ).norm).const_mul _ | |
| 43 | + have hsum : ∀ p : ℝ × ℝ, Summable (fun i => F i p) := by | |
| 44 | + intro p | |
| 45 | + apply Summable.of_norm | |
| 46 | + simpa only [heq, B] using hb.mul_right | |
| 47 | + (‖mellinWeight φ (line σ p.1)‖ * ‖mellinWeight φ (line σ p.2)‖) | |
| 48 | + have hInt : Integrable (fun p : ℝ × ℝ => ∑' i, F i p) := by | |
| 49 | + apply hBi.mono' (AEStronglyMeasurable.tsum (fun i => (hi i).aestronglyMeasurable)) | |
| 50 | + filter_upwards [] with p | |
| 51 | + simpa only [heq] using norm_tsum_le_tsum_norm (hsum p).norm | |
| 52 | + refine ⟨hInt, ?_⟩ | |
| 53 | + have h := hasSum_integral_of_dominated_convergence B | |
| 54 | + (fun i => (hi i).aestronglyMeasurable) | |
| 55 | + (fun i => Eventually.of_forall (fun p => (heq i p).le)) | |
| 56 | + (Eventually.of_forall (fun p => hb.mul_right _)) hBi | |
| 57 | + (Eventually.of_forall (fun p => (hsum p).hasSum)) | |
| 58 | + let c : ℂ := (2 * (Real.pi : ℂ))⁻¹ | |
| 59 | + have hscaled := h.mul_left (c * c) | |
| 60 | + convert hscaled using 1 | |
| 61 | + · ext i | |
| 62 | + dsimp [F] | |
| 63 | + rw [Measure.volume_eq_prod, integral_prod_mul | |
| 64 | + (fun x : ℝ => b i * (mellinWeight φ (line σ x) * (u i : ℂ) ^ (-line σ x))) | |
| 65 | + (fun y : ℝ => mellinWeight φ (line σ y) * (u i : ℂ) ^ (-line σ y)), integral_const_mul] | |
| 66 | + rw [mellinWeight_inversion hφ σ (u i) (hu i)] | |
| 67 | + unfold verticalMellin | |
| 68 | + dsimp [c] | |
| 69 | + ring | |
| 70 | + · rw [Measure.volume_eq_prod, integral_prod _ hInt] | |
| 71 | + simp only [verticalMellin, integral_const_mul] | |
| 72 | + dsimp [c, F] | |
| 73 | + ring | |
| 74 | + | |
| 75 | +end ConditionalGoldbach | |
+115 −0 ConditionalGoldbach/Proofs/MellinModelBound.lean added View file
| @@ -0,0 +1,115 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinModelSingle | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinBetaConvolution | |
| 5 | + | |
| 6 | +/-! Absolute integrability of the model on the original product contour. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma continuedDensity_line_continuous (N : ℕ) (a : ℝ) (ha : 0 < a) (ha1 : a ≠ 1) : | |
| 16 | + Continuous (fun t : ℝ => continuedDensity N (line a t)) := by | |
| 17 | + have ho : IsOpen {w : ℂ | 0 < w.re ∧ w ≠ 1} := | |
| 18 | + (isOpen_lt continuous_const Complex.continuous_re).inter isOpen_ne | |
| 19 | + apply continuous_iff_continuousAt.mpr | |
| 20 | + intro t | |
| 21 | + have hm : line a t ∈ {w : ℂ | 0 < w.re ∧ w ≠ 1} := by | |
| 22 | + constructor | |
| 23 | + · simpa [line] using ha | |
| 24 | + · intro he | |
| 25 | + have hh := congrArg Complex.re he | |
| 26 | + exact ha1 (by simpa [line] using hh) | |
| 27 | + exact ((continuedDensity_differentiableOn N).differentiableAt (ho.mem_nhds hm)).continuousAt.comp | |
| 28 | + (by unfold line; fun_prop) | |
| 29 | + | |
| 30 | +lemma continuedDensity_line_growth (N : ℕ) (a : ℝ) (ha : 0 < a) (ha1 : a ≠ 1) : | |
| 31 | + ∃ C : ℝ, 0 ≤ C ∧ ∀ t : ℝ, | |
| 32 | + ‖continuedDensity N (line a t)‖ ≤ C * (1 + |t|) := by | |
| 33 | + obtain ⟨D,hD,hfar⟩ := continuedDensity_vertical_growth N ha (show a < a+1 by linarith) | |
| 34 | + obtain ⟨B,hB⟩ := (isCompact_Icc (a := (-1 : ℝ)) (b := 1)).exists_bound_of_continuousOn | |
| 35 | + (continuedDensity_line_continuous N a ha ha1).continuousOn | |
| 36 | + refine ⟨|B|+D+1, by positivity, fun t => ?_⟩ | |
| 37 | + by_cases ht : 1 ≤ |t| | |
| 38 | + · have hh := hfar (line a t) (by simp [line]) (by simpa [line] using ht) | |
| 39 | + simp only [line, add_im, ofReal_im, mul_im, ofReal_re, I_im, I_re, mul_one, | |
| 40 | + mul_zero, add_zero, zero_add] at hh | |
| 41 | + exact hh.trans (mul_le_mul_of_nonneg_right (by linarith [abs_nonneg B]) (by positivity)) | |
| 42 | + · have hb := hB t (abs_le.mp (lt_of_not_ge ht).le) | |
| 43 | + have h0 : 0 ≤ |B|+D+1 := by positivity | |
| 44 | + have h1 : 1 ≤ 1+|t| := by linarith [abs_nonneg t] | |
| 45 | + have hh := mul_le_mul_of_nonneg_left h1 h0 | |
| 46 | + linarith [le_abs_self B] | |
| 47 | + | |
| 48 | +lemma mellinWeight_first_moment_integrable (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) : | |
| 49 | + Integrable (fun t : ℝ => (1+|t|) * ‖mellinWeight φ (line σ t)‖) := by | |
| 50 | + obtain ⟨C,hC,hdec⟩ := mellinWeight_uniform_decay φ hφ σ σ (le_refl σ) | |
| 51 | + have hi : Integrable (fun t : ℝ => (1+|t|)⁻¹ ^ 2) := by | |
| 52 | + have h := integrable_one_add_norm (E := ℝ) (μ := volume) (r := 2) (by simp) | |
| 53 | + convert h using 1 | |
| 54 | + ext t | |
| 55 | + rw [Real.norm_eq_abs, Real.rpow_neg (by positivity), Real.rpow_two, inv_pow] | |
| 56 | + have hcont : Continuous (fun t : ℝ => mellinWeight φ (line σ t)) := | |
| 57 | + (mellinWeight_differentiable hφ).continuous.comp (by unfold line; fun_prop) | |
| 58 | + apply (hi.const_mul C).mono' ((show Continuous (fun t : ℝ => 1+|t|) by fun_prop).mul hcont.norm).aestronglyMeasurable | |
| 59 | + filter_upwards [] with t | |
| 60 | + dsimp only [Pi.mul_apply] | |
| 61 | + rw [Real.norm_eq_abs, abs_of_nonneg (mul_nonneg (by positivity) (norm_nonneg _))] | |
| 62 | + have hp : 0 < 1+|t| := by positivity | |
| 63 | + have ht := hdec σ ⟨le_rfl,le_rfl⟩ t | |
| 64 | + have hm := mul_le_mul_of_nonneg_left ht hp.le | |
| 65 | + have hinv : 0 ≤ (1+|t|)⁻¹ := inv_nonneg.mpr hp.le | |
| 66 | + have hinv1 : (1+|t|)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ (by linarith [abs_nonneg t]) | |
| 67 | + have hpow := pow_le_pow_of_le_one hinv hinv1 (show 2 ≤ 5 by norm_num) | |
| 68 | + have he : (1+|t|) * (C*(1+|t|)⁻¹ ^ 6) = C*(1+|t|)⁻¹ ^ 5 := by field_simp | |
| 69 | + rw [he] at hm | |
| 70 | + exact hm.trans (mul_le_mul_of_nonneg_left hpow hC.le) | |
| 71 | + | |
| 72 | +lemma model_double_integrable (N : ℕ) (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 73 | + (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) : | |
| 74 | + Integrable (fun p : ℝ × ℝ => | |
| 75 | + mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * | |
| 76 | + continuedDensity N (line σ p.1 + line σ p.2) * betaKernel (line σ p.1) (line σ p.2)) := by | |
| 77 | + obtain ⟨D,hD,hDb⟩ := continuedDensity_line_growth N (2*σ) (by linarith) (by linarith) | |
| 78 | + let B : ℝ := ‖2 * betaIntegral (1/2-(σ : ℂ)) (2*σ) + betaIntegral (1/2-(σ : ℂ)) (1/2-(σ : ℂ))‖ | |
| 79 | + have hM : Continuous (fun t : ℝ => mellinWeight φ (line σ t)) := | |
| 80 | + (mellinWeight_differentiable hφ).continuous.comp (by unfold line; fun_prop) | |
| 81 | + have hDcont := continuedDensity_line_continuous N (2*σ) (by linarith) (by linarith) | |
| 82 | + have hline (v y : ℝ) : line σ v + line σ y = line (2*σ) (v+y) := by | |
| 83 | + unfold line | |
| 84 | + push_cast | |
| 85 | + ring | |
| 86 | + have hbm : Measurable (fun p : ℝ × ℝ => betaKernel (line σ p.1) (line σ p.2)) := by | |
| 87 | + unfold betaKernel | |
| 88 | + exact ((measurable_betaIntegral _ _ (by unfold line; fun_prop) (by unfold line; fun_prop)).add | |
| 89 | + (measurable_betaIntegral _ _ (by unfold line; fun_prop) (by unfold line; fun_prop))).sub | |
| 90 | + (measurable_betaIntegral _ _ (by unfold line; fun_prop) (by unfold line; fun_prop)) | |
| 91 | + have hm : Measurable (fun p : ℝ × ℝ => mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * | |
| 92 | + continuedDensity N (line σ p.1 + line σ p.2) * betaKernel (line σ p.1) (line σ p.2)) := by | |
| 93 | + simp_rw [hline] | |
| 94 | + exact (((hM.measurable.comp measurable_fst).mul (hM.measurable.comp measurable_snd)).mul | |
| 95 | + (hDcont.measurable.comp (by fun_prop))).mul hbm | |
| 96 | + rw [Measure.volume_eq_prod] | |
| 97 | + apply (((mellinWeight_first_moment_integrable φ hφ σ).mul_prod | |
| 98 | + (mellinWeight_first_moment_integrable φ hφ σ)).const_mul (D*B)).mono' hm.aestronglyMeasurable | |
| 99 | + filter_upwards [] with p | |
| 100 | + rcases p with ⟨v,y⟩ | |
| 101 | + simp only [norm_mul] | |
| 102 | + have hb : ‖betaKernel (line σ v) (line σ y)‖ ≤ B := | |
| 103 | + betaKernel_vertical_bound _ _ σ (by simp [line]) (by simp [line]) | |
| 104 | + have hd : ‖continuedDensity N (line σ v + line σ y)‖ ≤ D*(1+|v+y|) := by rw [hline]; exact hDb _ | |
| 105 | + have hadd : 1+|v+y| ≤ (1+|v|)*(1+|y|) := by | |
| 106 | + nlinarith [abs_add_le v y, mul_nonneg (abs_nonneg v) (abs_nonneg y)] | |
| 107 | + calc | |
| 108 | + _ ≤ (‖mellinWeight φ (line σ v)‖ * ‖mellinWeight φ (line σ y)‖) * (D*(1+|v+y|)) * B := by | |
| 109 | + exact mul_le_mul (mul_le_mul_of_nonneg_left hd (mul_nonneg (norm_nonneg _) (norm_nonneg _))) hb | |
| 110 | + (norm_nonneg _) (by positivity) | |
| 111 | + _ ≤ (‖mellinWeight φ (line σ v)‖ * ‖mellinWeight φ (line σ y)‖) * | |
| 112 | + (D*((1+|v|)*(1+|y|))) * B := by gcongr | |
| 113 | + _ = _ := by ring | |
| 114 | + | |
| 115 | +end ConditionalGoldbach | |
+52 −0 ConditionalGoldbach/Proofs/MellinModelDouble.lean added View file
| @@ -0,0 +1,52 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinBetaRelation | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinModelBound | |
| 5 | +public import ConditionalGoldbach.Proofs.MellinDiagonal | |
| 6 | +public import ConditionalGoldbach.Proofs.MellinDoubleDiagonal | |
| 7 | + | |
| 8 | +/-! The complete original Lemma 7.2: diagonal and signed model inversion. -/ | |
| 9 | +public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 14 | +open MeasureTheory Filter Set Complex | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | + | |
| 17 | +lemma model_double_mellin (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 18 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) : | |
| 19 | + verticalMellin σ (fun s => verticalMellin σ (fun z => | |
| 20 | + mellinWeight φ s * mellinWeight φ z * continuedDensity N (s+z) * betaKernel s z)) = | |
| 21 | + -(weightMass φ * singularSeries N : ℝ) := by | |
| 22 | + rw [model_double_mellin_eq_single N φ σ | |
| 23 | + (model_double_integrable N φ hφ σ hσ hσupper) | |
| 24 | + (fun w hw => (signedConvolution_mellin_beta φ hφ σ hσ hσupper w hw).2)] | |
| 25 | + exact (model_single_mellin N hN hpos φ hφ (2 * σ) (by linarith)).2 | |
| 26 | + | |
| 27 | +theorem lemma_7_2 (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) | |
| 28 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (hσ : 0 < σ) (hσ' : σ ≤ 1 / 9) : | |
| 29 | + verticalMellin σ (fun s => verticalMellin σ (fun z => | |
| 30 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * diagonalSeries N (s + z))) = | |
| 31 | + diagonalMoment N φ ∧ | |
| 32 | + verticalMellin σ (fun s => verticalMellin σ (fun z => | |
| 33 | + mellinWeight φ s * mellinWeight φ z * continuedDensity N (s + z) * betaKernel s z)) = | |
| 34 | + -(weightMass φ * singularSeries N : ℝ) := by | |
| 35 | + exact ⟨(diagonalMoment_mellin N (by omega) φ hφ σ hσ).2, | |
| 36 | + model_double_mellin N hN (by omega) φ hφ σ hσ hσ'⟩ | |
| 37 | + | |
| 38 | +theorem lemma_7_2_absolute_convergence (N : ℕ) [NeZero N] | |
| 39 | + (_hN : Even N) (hN4 : 4 ≤ N) (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 40 | + (σ : ℝ) (hσ : 0 < σ) (hσ' : σ ≤ 1 / 9) : | |
| 41 | + Integrable (fun p : ℝ × ℝ => | |
| 42 | + (N : ℂ) ^ (line σ p.1 + line σ p.2) * | |
| 43 | + mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * | |
| 44 | + diagonalSeries N (line σ p.1 + line σ p.2)) ∧ | |
| 45 | + Integrable (fun p : ℝ × ℝ => | |
| 46 | + mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * | |
| 47 | + continuedDensity N (line σ p.1 + line σ p.2) * | |
| 48 | + betaKernel (line σ p.1) (line σ p.2)) := by | |
| 49 | + exact ⟨(diagonalMoment_mellin N (by omega) φ hφ σ hσ).1, | |
| 50 | + model_double_integrable N φ hφ σ hσ hσ'⟩ | |
| 51 | + | |
| 52 | +end ConditionalGoldbach | |
+89 −0 ConditionalGoldbach/Proofs/MellinModelRemovable.lean added View file
| @@ -0,0 +1,89 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinModelSampling | |
| 4 | +public import ConditionalGoldbach.Proofs.DensityEulerIdentity | |
| 5 | +public import Mathlib.NumberTheory.Harmonic.ZetaAsymp | |
| 6 | + | |
| 7 | +/-! The precise removable extension of the density–convolution product at one. -/ | |
| 8 | +@[expose] public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +/-- The density times the Mellin transform of the signed convolution, with its | |
| 17 | +removable singularity filled by the derivative of that transform. -/ | |
| 18 | +def regularizedModelMellin (N : ℕ) (φ : ℝ → ℝ) (w : ℂ) : ℂ := | |
| 19 | + (singularSeries N : ℂ) * riemannZeta₁ w * densityEulerProduct N w * | |
| 20 | + dslope (mellin (fun y => (signedConvolution φ y : ℂ))) 1 w | |
| 21 | + | |
| 22 | +lemma regularizedModelMellin_eq (N : ℕ) (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 23 | + {w : ℂ} (hw : w ≠ 1) : | |
| 24 | + regularizedModelMellin N φ w = | |
| 25 | + continuedDensity N w * mellin (fun y => (signedConvolution φ y : ℂ)) w := by | |
| 26 | + rw [regularizedModelMellin, dslope_of_ne _ hw, slope, | |
| 27 | + signedConvolution_mellin_one φ hφ, vsub_eq_sub, sub_zero, smul_eq_mul, | |
| 28 | + continuedDensity, riemannZeta_eq_inv_sub_mul hw] | |
| 29 | + ring | |
| 30 | + | |
| 31 | +lemma regularizedModelMellin_one (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 32 | + (φ : ℝ → ℝ) : | |
| 33 | + regularizedModelMellin N φ 1 = (N : ℂ) / N.totient * | |
| 34 | + deriv (mellin (fun y => (signedConvolution φ y : ℂ))) 1 := by | |
| 35 | + simp only [regularizedModelMellin, riemannZeta₁_one, mul_one, dslope_same, | |
| 36 | + singularSeries_mul_densityEuler_one N hN hpos] | |
| 37 | + | |
| 38 | +lemma regularizedModelMellin_differentiableOn (N : ℕ) (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 39 | + DifferentiableOn ℂ (regularizedModelMellin N φ) {w : ℂ | 0 < w.re} := by | |
| 40 | + have ho : IsOpen {w : ℂ | 0 < w.re} := isOpen_lt continuous_const Complex.continuous_re | |
| 41 | + have hh : DifferentiableOn ℂ (mellin (fun y => (signedConvolution φ y : ℂ))) | |
| 42 | + {w : ℂ | 0 < w.re} := | |
| 43 | + fun w hw => (signedConvolution_mellin_regular φ hφ w hw).2.differentiableWithinAt | |
| 44 | + have hs := (Complex.differentiableOn_dslope (ho.mem_nhds (by norm_num : (1 : ℂ) ∈ | |
| 45 | + {w : ℂ | 0 < w.re}))).mpr hh | |
| 46 | + exact (((differentiable_riemannZeta₁.differentiableOn).const_mul _).mul | |
| 47 | + (densityEulerProduct_differentiableOn N)).mul hs | |
| 48 | + | |
| 49 | +lemma regularizedModelMellin_differentiableAt (N : ℕ) (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 50 | + {w : ℂ} (hw : 0 < w.re) : DifferentiableAt ℂ (regularizedModelMellin N φ) w := by | |
| 51 | + have ho : IsOpen {w : ℂ | 0 < w.re} := isOpen_lt continuous_const Complex.continuous_re | |
| 52 | + exact (regularizedModelMellin_differentiableOn N φ hφ).differentiableAt (ho.mem_nhds hw) | |
| 53 | + | |
| 54 | +lemma regularizedModelMellin_line_ae (N : ℕ) (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) : | |
| 55 | + (fun t : ℝ => regularizedModelMellin N φ (line σ t)) =ᵐ[volume] | |
| 56 | + (fun t : ℝ => continuedDensity N (line σ t) * | |
| 57 | + mellin (fun y => (signedConvolution φ y : ℂ)) (line σ t)) := by | |
| 58 | + filter_upwards [ae_iff.mpr (show volume {t : ℝ | ¬ t ≠ 0} = 0 by simp)] with t ht | |
| 59 | + apply regularizedModelMellin_eq N φ hφ | |
| 60 | + intro he | |
| 61 | + have hi := congrArg Complex.im he | |
| 62 | + simp only [line, add_im, ofReal_im, mul_im, ofReal_re, I_im, I_re, | |
| 63 | + mul_one, mul_zero, add_zero, zero_add, one_im] at hi | |
| 64 | + exact ht hi | |
| 65 | + | |
| 66 | +lemma regularizedModelMellin_verticalMellin (N : ℕ) (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) : | |
| 67 | + verticalMellin σ (regularizedModelMellin N φ) = | |
| 68 | + verticalMellin σ (fun w => continuedDensity N w * | |
| 69 | + mellin (fun y => (signedConvolution φ y : ℂ)) w) := by | |
| 70 | + unfold verticalMellin | |
| 71 | + rw [integral_congr_ae (regularizedModelMellin_line_ae N φ hφ σ)] | |
| 72 | + | |
| 73 | +lemma regularizedModelMellin_initial (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 74 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (hσ : 1 < σ) : | |
| 75 | + Integrable (fun t : ℝ => regularizedModelMellin N φ (line σ t)) ∧ | |
| 76 | + verticalMellin σ (regularizedModelMellin N φ) = | |
| 77 | + -(weightMass φ * singularSeries N : ℝ) := by | |
| 78 | + have he (t : ℝ) : regularizedModelMellin N φ (line σ t) = | |
| 79 | + densitySeries N (line σ t) * mellin (fun y => (signedConvolution φ y : ℂ)) (line σ t) := by | |
| 80 | + rw [regularizedModelMellin_eq N φ hφ (by | |
| 81 | + intro he | |
| 82 | + have hr := congrArg Complex.re he | |
| 83 | + simp only [line, add_re, ofReal_re, mul_re, ofReal_im, I_re, I_im, | |
| 84 | + mul_zero, zero_mul, sub_self, add_zero, one_re] at hr | |
| 85 | + linarith)] | |
| 86 | + rw [densitySeries_eq_continuedDensity N hN hpos (by simpa [line] using hσ)] | |
| 87 | + simpa only [he, verticalMellin] using density_signedConvolution_mellin_initial N hN hpos φ hφ σ hσ | |
| 88 | + | |
| 89 | +end ConditionalGoldbach | |
+156 −0 ConditionalGoldbach/Proofs/MellinModelSampling.lean added View file
| @@ -0,0 +1,156 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinCompactPositive | |
| 4 | +public import ConditionalGoldbach.Proofs.DensityConvergence | |
| 5 | + | |
| 6 | +/-! Mellin sampling of the signed convolution on an absolutely convergent density line. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +theorem compact_mellin_inversion_hasSum {ι : Type*} [Countable ι] | |
| 16 | + (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) (A B : ℝ) | |
| 17 | + (hsupp : Function.support f ⊆ Icc A B) (σ : ℝ) (hσ : 0 < σ) (u : ι → ℝ) (b : ι → ℂ) | |
| 18 | + (hu : ∀ i, 0 < u i) | |
| 19 | + (hb : Summable (fun i => ‖b i‖ * Real.rpow (u i) (-σ))) : | |
| 20 | + HasSum (fun i => b i * (f (u i) : ℂ)) | |
| 21 | + (verticalMellin σ (fun s => ∑' i, b i * mellin (fun y => (f y : ℂ)) s * (u i : ℂ) ^ (-s))) := by | |
| 22 | + let F : ι → ℝ → ℂ := fun i t => | |
| 23 | + b i * mellin (fun y => (f y : ℂ)) (line σ t) * (u i : ℂ) ^ (-line σ t) | |
| 24 | + let Majorant : ι → ℝ → ℝ := fun i t => | |
| 25 | + (‖b i‖ * Real.rpow (u i) (-σ)) * ‖mellin (fun y => (f y : ℂ)) (line σ t)‖ | |
| 26 | + have hint (i : ι) : Integrable (F i) := by | |
| 27 | + simpa only [F, mul_assoc] using | |
| 28 | + (compact_mellin_inversion_integrable f hf A B hsupp σ hσ (u i) (hu i)).const_mul (b i) | |
| 29 | + have heq (i : ι) (t : ℝ) : ‖F i t‖ = Majorant i t := by | |
| 30 | + simp only [F, Majorant, norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos (hu i)] | |
| 31 | + simp only [line, neg_re, add_re, ofReal_re, mul_re, ofReal_im, | |
| 32 | + I_re, I_im, mul_zero, zero_mul, sub_self, add_zero] | |
| 33 | + rw [Real.rpow_eq_pow] | |
| 34 | + ring | |
| 35 | + have hBi : Integrable (fun t => ∑' i, Majorant i t) := by | |
| 36 | + simp only [Majorant, tsum_mul_right] | |
| 37 | + exact (compact_mellin_verticalIntegrable f hf A B hsupp σ hσ).norm.const_mul _ | |
| 38 | + have h := hasSum_integral_of_dominated_convergence Majorant | |
| 39 | + (fun i => (hint i).aestronglyMeasurable) | |
| 40 | + (fun i => Eventually.of_forall (fun t => (heq i t).le)) | |
| 41 | + (Eventually.of_forall (fun t => hb.mul_right _)) hBi | |
| 42 | + (Eventually.of_forall (fun t => | |
| 43 | + (Summable.of_norm (by simpa only [heq] using hb.mul_right ‖mellin (fun y => (f y : ℂ)) (line σ t)‖)).hasSum)) | |
| 44 | + have hscaled := h.mul_left ((2 * (Real.pi : ℂ))⁻¹) | |
| 45 | + convert hscaled using 1 | |
| 46 | + · ext i | |
| 47 | + rw [compact_mellin_inversion f hf A B hsupp σ hσ (u i) (hu i)] | |
| 48 | + simp only [verticalMellin, F, mul_assoc, integral_const_mul] | |
| 49 | + ring | |
| 50 | + · rfl | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | +theorem compact_mellin_inversion_sum_integrable {ι : Type*} [Countable ι] | |
| 55 | + (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) (A B : ℝ) | |
| 56 | + (hsupp : Function.support f ⊆ Icc A B) (σ : ℝ) (hσ : 0 < σ) (u : ι → ℝ) (b : ι → ℂ) | |
| 57 | + (hu : ∀ i, 0 < u i) | |
| 58 | + (hb : Summable (fun i => ‖b i‖ * Real.rpow (u i) (-σ))) : | |
| 59 | + Integrable (fun t : ℝ => ∑' i, | |
| 60 | + b i * mellin (fun y => (f y : ℂ)) (line σ t) * (u i : ℂ) ^ (-line σ t)) := by | |
| 61 | + let F : ι → ℝ → ℂ := fun i t => | |
| 62 | + b i * mellin (fun y => (f y : ℂ)) (line σ t) * (u i : ℂ) ^ (-line σ t) | |
| 63 | + have hint (i : ι) : Integrable (F i) := by | |
| 64 | + simpa only [F, mul_assoc] using | |
| 65 | + (compact_mellin_inversion_integrable f hf A B hsupp σ hσ (u i) (hu i)).const_mul (b i) | |
| 66 | + have hnorm (i : ι) (t : ℝ) : ‖F i t‖ = | |
| 67 | + (‖b i‖ * Real.rpow (u i) (-σ)) * ‖mellin (fun y => (f y : ℂ)) (line σ t)‖ := by | |
| 68 | + simp only [F, norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos (hu i)] | |
| 69 | + simp only [line, neg_re, add_re, ofReal_re, mul_re, ofReal_im, | |
| 70 | + I_re, I_im, mul_zero, zero_mul, sub_self, add_zero, Real.rpow_eq_pow] | |
| 71 | + ring | |
| 72 | + apply ((compact_mellin_verticalIntegrable f hf A B hsupp σ hσ).norm.const_mul | |
| 73 | + (∑' i, ‖b i‖ * Real.rpow (u i) (-σ))).mono' | |
| 74 | + (AEStronglyMeasurable.tsum (fun i => (hint i).aestronglyMeasurable)) | |
| 75 | + filter_upwards [] with t | |
| 76 | + have hs : Summable (fun i => ‖F i t‖) := by | |
| 77 | + simpa only [hnorm] using hb.mul_right ‖mellin (fun y => (f y : ℂ)) (line σ t)‖ | |
| 78 | + calc | |
| 79 | + ‖∑' i, F i t‖ ≤ ∑' i, ‖F i t‖ := norm_tsum_le_tsum_norm hs | |
| 80 | + _ = _ := by simp only [hnorm, tsum_mul_right, line] | |
| 81 | + | |
| 82 | + | |
| 83 | +lemma density_sampling_coeff_summable (N : ℕ) (hN : Even N) (hNpos : 0 < N) | |
| 84 | + (σ : ℝ) (hσ : 1 < σ) : | |
| 85 | + Summable (fun k : ℕ => ‖(singularSeries ((k + 1) * N) : ℂ)‖ * | |
| 86 | + Real.rpow (k + 1 : ℕ) (-σ)) := by | |
| 87 | + have hs := (summable_nat_add_iff 1).2 (densitySeries_summable_norm N hN hNpos (w := (σ : ℂ)) hσ) | |
| 88 | + apply hs.congr | |
| 89 | + intro k | |
| 90 | + simp only [Nat.succ_pos, ite_true, norm_div, Complex.norm_natCast_cpow_of_pos (by omega : 0 < k + 1), ofReal_re] | |
| 91 | + rw [Real.rpow_eq_pow, Real.rpow_neg (by positivity)] | |
| 92 | + rfl | |
| 93 | + | |
| 94 | +lemma densitySeries_shifted (N : ℕ) (hN : Even N) (hNpos : 0 < N) (s : ℂ) (hs : 1 < s.re) : | |
| 95 | + densitySeries N s = ∑' k : ℕ, (singularSeries ((k + 1) * N) : ℂ) / (k + 1 : ℕ) ^ s := by | |
| 96 | + have hsum : Summable (fun k : ℕ => if 0 < k then (singularSeries (k * N) : ℂ) / (k : ℂ) ^ s else 0) := by | |
| 97 | + apply Summable.of_norm | |
| 98 | + simpa only [apply_ite norm, norm_zero] using densitySeries_summable_norm N hN hNpos hs | |
| 99 | + unfold densitySeries | |
| 100 | + rw [hsum.tsum_eq_zero_add] | |
| 101 | + simp | |
| 102 | + | |
| 103 | +lemma density_mellin_integrand_series (N : ℕ) (hN : Even N) (hNpos : 0 < N) | |
| 104 | + (f : ℝ → ℝ) (s : ℂ) (hs : 1 < s.re) : | |
| 105 | + (∑' k : ℕ, (singularSeries ((k + 1) * N) : ℂ) * mellin (fun y => (f y : ℂ)) s * | |
| 106 | + (k + 1 : ℕ) ^ (-s)) = densitySeries N s * mellin (fun y => (f y : ℂ)) s := by | |
| 107 | + rw [densitySeries_shifted N hN hNpos s hs, ← tsum_mul_right] | |
| 108 | + apply tsum_congr | |
| 109 | + intro k | |
| 110 | + rw [cpow_neg] | |
| 111 | + ring | |
| 112 | + | |
| 113 | +lemma signedConvolution_integer_sample (N : ℕ) (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 114 | + (∑' k : ℕ, (singularSeries ((k + 1) * N) : ℂ) * (signedConvolution φ (k + 1 : ℕ) : ℂ)) = | |
| 115 | + -(weightMass φ * singularSeries N : ℝ) := by | |
| 116 | + rw [tsum_eq_single 0] | |
| 117 | + · simp only [zero_add, one_mul, Nat.cast_one, (convolution_integer_values φ hφ).2.2, ofReal_neg, | |
| 118 | + ofReal_mul] | |
| 119 | + ring | |
| 120 | + · intro k hk | |
| 121 | + have hC := (convolution_integer_values φ hφ).1 (k + 1) (by omega) | |
| 122 | + have hJ := (convolution_integer_values φ hφ).2.1 (k + 1) (by omega) | |
| 123 | + simp only [signedConvolution, hC, hJ, mul_zero, sub_self, ofReal_zero] | |
| 124 | + | |
| 125 | +lemma density_signedConvolution_mellin_initial (N : ℕ) (hN : Even N) (hNpos : 0 < N) | |
| 126 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (hσ : 1 < σ) : | |
| 127 | + Integrable (fun t : ℝ => densitySeries N (line σ t) * | |
| 128 | + mellin (fun y => (signedConvolution φ y : ℂ)) (line σ t)) ∧ | |
| 129 | + verticalMellin σ (fun s => densitySeries N s * mellin (fun y => (signedConvolution φ y : ℂ)) s) = | |
| 130 | + -(weightMass φ * singularSeries N : ℝ) := by | |
| 131 | + have hσ0 : 0 < σ := lt_trans zero_lt_one hσ | |
| 132 | + have hb := density_sampling_coeff_summable N hN hNpos σ hσ | |
| 133 | + have hi := compact_mellin_inversion_sum_integrable (signedConvolution φ) | |
| 134 | + (signedConvolution_contDiff φ hφ) (-(1 / 3)) (4 / 3) | |
| 135 | + (signedConvolution_support φ hφ) σ hσ0 | |
| 136 | + (fun k : ℕ => (k + 1 : ℕ)) (fun k => (singularSeries ((k + 1) * N) : ℂ)) | |
| 137 | + (fun k => by positivity) hb | |
| 138 | + have hv := compact_mellin_inversion_hasSum (signedConvolution φ) | |
| 139 | + (signedConvolution_contDiff φ hφ) (-(1 / 3)) (4 / 3) | |
| 140 | + (signedConvolution_support φ hφ) σ hσ0 | |
| 141 | + (fun k : ℕ => (k + 1 : ℕ)) (fun k => (singularSeries ((k + 1) * N) : ℂ)) | |
| 142 | + (fun k => by positivity) hb | |
| 143 | + constructor | |
| 144 | + · apply hi.congr | |
| 145 | + filter_upwards [] with t | |
| 146 | + simpa only [Complex.ofReal_natCast] using density_mellin_integrand_series N hN hNpos | |
| 147 | + (signedConvolution φ) (line σ t) (by simpa [line] using hσ) | |
| 148 | + · rw [← signedConvolution_integer_sample N φ hφ, hv.tsum_eq] | |
| 149 | + unfold verticalMellin | |
| 150 | + congr 1 | |
| 151 | + apply integral_congr_ae | |
| 152 | + filter_upwards [] with t | |
| 153 | + exact (density_mellin_integrand_series N hN hNpos (signedConvolution φ) (line σ t) | |
| 154 | + (by simpa [line] using hσ)).symm | |
| 155 | + | |
| 156 | +end ConditionalGoldbach | |
+131 −0 ConditionalGoldbach/Proofs/MellinModelShift.lean added View file
| @@ -0,0 +1,131 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinModelRemovable | |
| 4 | + | |
| 5 | +/-! Shifting the model's single Mellin contour across its removable point. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma uniform_vertical_decay_of_far_bound (f : ℂ → ℂ) (a b : ℝ) | |
| 15 | + (hd : ∀ w : ℂ, w.re ∈ Icc a b → DifferentiableAt ℂ f w) | |
| 16 | + (D : ℝ) (hD : 0 ≤ D) | |
| 17 | + (hfar : ∀ x ∈ Icc a b, ∀ t : ℝ, 1 ≤ |t| → | |
| 18 | + ‖f (line x t)‖ ≤ D * (1 + |t|)⁻¹ ^ 2) : | |
| 19 | + ∃ C : ℝ, 0 < C ∧ ∀ x ∈ Icc a b, ∀ t : ℝ, | |
| 20 | + ‖f (line x t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2 := by | |
| 21 | + let K : Set (ℝ × ℝ) := Icc a b ×ˢ Icc (-1 : ℝ) 1 | |
| 22 | + have hK : IsCompact K := isCompact_Icc.prod isCompact_Icc | |
| 23 | + have hc : ContinuousOn (fun p : ℝ × ℝ => f (line p.1 p.2)) K := by | |
| 24 | + intro p hp | |
| 25 | + exact ((hd _ (by simpa [line] using hp.1)).continuousAt.comp | |
| 26 | + (show ContinuousAt (fun p : ℝ × ℝ => line p.1 p.2) p by unfold line; fun_prop)).continuousWithinAt | |
| 27 | + obtain ⟨B, hB⟩ := hK.exists_bound_of_continuousOn hc | |
| 28 | + refine ⟨4 * (|B| + 1) + D, by positivity, fun x hx t => ?_⟩ | |
| 29 | + by_cases ht : 1 ≤ |t| | |
| 30 | + · exact (hfar x hx t ht).trans (mul_le_mul_of_nonneg_right (by linarith [abs_nonneg B]) (sq_nonneg _)) | |
| 31 | + · have ht' : |t| ≤ 1 := (lt_of_not_ge ht).le | |
| 32 | + have hb : ‖f (line x t)‖ ≤ |B| + 1 := | |
| 33 | + (hB (x, t) ⟨hx, (abs_le.mp ht')⟩).trans (by linarith [le_abs_self B]) | |
| 34 | + have hi : (1 / 2 : ℝ) ≤ (1 + |t|)⁻¹ := by | |
| 35 | + simpa only [one_div] using | |
| 36 | + (one_div_le_one_div_of_le (by positivity : (0 : ℝ) < 1 + |t|) | |
| 37 | + (by linarith : 1 + |t| ≤ 2)) | |
| 38 | + have hi2 : (1 / 4 : ℝ) ≤ (1 + |t|)⁻¹ ^ 2 := by nlinarith | |
| 39 | + have hnon : 0 ≤ |B| + 1 := by positivity | |
| 40 | + nlinarith [mul_nonneg hD (sq_nonneg (1 + |t|)⁻¹), mul_le_mul_of_nonneg_left hi2 hnon] | |
| 41 | + | |
| 42 | +/-- A regularized product inherits integrable vertical decay from linear growth of | |
| 43 | +one factor and sixth-power decay of the other. The factors agree with the | |
| 44 | +regularization away from the removable point at `1`. -/ | |
| 45 | +lemma regularized_mellin_product_decay (regularized density transform : ℂ → ℂ) | |
| 46 | + (a b : ℝ) | |
| 47 | + (hd : ∀ w : ℂ, w.re ∈ Icc a b → DifferentiableAt ℂ regularized w) | |
| 48 | + (heq : ∀ w : ℂ, w ≠ 1 → regularized w = density w * transform w) | |
| 49 | + (D B : ℝ) (hD : 0 ≤ D) (hB : 0 ≤ B) | |
| 50 | + (hgrowth : ∀ w : ℂ, w.re ∈ Icc a b → 1 ≤ |w.im| → | |
| 51 | + ‖density w‖ ≤ D * (1 + |w.im|)) | |
| 52 | + (hdecay : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖transform (line x t)‖ ≤ B * (1 + |t|)⁻¹ ^ 6) : | |
| 53 | + ∃ C : ℝ, 0 < C ∧ ∀ x ∈ Icc a b, ∀ t : ℝ, | |
| 54 | + ‖regularized (line x t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2 := by | |
| 55 | + apply uniform_vertical_decay_of_far_bound regularized a b hd (D * B) (mul_nonneg hD hB) | |
| 56 | + intro x hx t ht | |
| 57 | + have hre : (line x t).re ∈ Icc a b := by simpa [line] using hx | |
| 58 | + have him : (line x t).im = t := by simp [line] | |
| 59 | + have hne : line x t ≠ 1 := by | |
| 60 | + intro h | |
| 61 | + rw [show t = 0 from him.symm.trans (congrArg Complex.im h)] at ht | |
| 62 | + norm_num at ht | |
| 63 | + rw [heq _ hne, norm_mul] | |
| 64 | + have hprod := mul_le_mul (hgrowth _ hre (by simpa only [him] using ht)) | |
| 65 | + (hdecay x hx t) (norm_nonneg _) (by positivity) | |
| 66 | + rw [him] at hprod | |
| 67 | + apply hprod.trans | |
| 68 | + have hi : 0 ≤ (1 + |t|)⁻¹ := by positivity | |
| 69 | + have hi1 : (1 + |t|)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ (by linarith [abs_nonneg t]) | |
| 70 | + have he : (D * (1 + |t|)) * (B * (1 + |t|)⁻¹ ^ 6) = | |
| 71 | + (D * B) * (1 + |t|)⁻¹ ^ 5 := by field_simp | |
| 72 | + rw [he] | |
| 73 | + exact mul_le_mul_of_nonneg_left | |
| 74 | + (pow_le_pow_of_le_one hi hi1 (by norm_num)) (mul_nonneg hD hB) | |
| 75 | + | |
| 76 | +/-- Integrability and contour shifting for a Mellin integrand with a removable | |
| 77 | +singularity. The original integrand agrees almost everywhere on the left line. -/ | |
| 78 | +lemma verticalMellin_shift_of_ae_eq (regularized original : ℂ → ℂ) (a b C : ℝ) | |
| 79 | + (hab : a ≤ b) | |
| 80 | + (hd : ∀ w : ℂ, w.re ∈ Icc a b → DifferentiableAt ℂ regularized w) | |
| 81 | + (hbound : ∀ x ∈ Icc a b, ∀ t : ℝ, ‖regularized (line x t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2) | |
| 82 | + (hae : (fun t : ℝ => regularized (line a t)) =ᵐ[volume] fun t => original (line a t)) : | |
| 83 | + Integrable (fun t : ℝ => original (line a t)) ∧ | |
| 84 | + verticalMellin a original = verticalMellin b regularized := by | |
| 85 | + have hint (x : ℝ) (hx : x ∈ Icc a b) : | |
| 86 | + Integrable (fun t : ℝ => regularized (line x t)) := by | |
| 87 | + apply integrable_of_uniform_vertical_decay _ x C | |
| 88 | + · apply continuous_iff_continuousAt.mpr | |
| 89 | + intro t | |
| 90 | + exact (hd _ (by simpa [line] using hx)).continuousAt.comp (by unfold line; fun_prop) | |
| 91 | + · exact hbound x hx | |
| 92 | + refine ⟨(hint a ⟨le_rfl, hab⟩).congr hae, ?_⟩ | |
| 93 | + calc | |
| 94 | + verticalMellin a original = verticalMellin a regularized := by | |
| 95 | + unfold verticalMellin | |
| 96 | + rw [integral_congr_ae hae.symm] | |
| 97 | + _ = verticalMellin b regularized := | |
| 98 | + verticalMellin_eq_of_uniform_decay regularized a b C hab hd | |
| 99 | + (hint a ⟨le_rfl, hab⟩) (hint b ⟨hab, le_rfl⟩) hbound | |
| 100 | + | |
| 101 | +lemma regularizedModelMellin_uniform_decay (N : ℕ) (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 102 | + (a b : ℝ) (ha : 0 < a) (hab : a ≤ b) (D : ℝ) (hD : 0 ≤ D) | |
| 103 | + (hgrowth : ∀ w : ℂ, w.re ∈ Icc a b → 1 ≤ |w.im| → | |
| 104 | + ‖continuedDensity N w‖ ≤ D * (1 + |w.im|)) : | |
| 105 | + ∃ C : ℝ, 0 < C ∧ ∀ x ∈ Icc a b, ∀ t : ℝ, | |
| 106 | + ‖regularizedModelMellin N φ (line x t)‖ ≤ C * (1 + |t|)⁻¹ ^ 2 := by | |
| 107 | + obtain ⟨B, hB, hdec⟩ := signedConvolution_mellin_decay φ hφ a b ha hab | |
| 108 | + exact regularized_mellin_product_decay (regularizedModelMellin N φ) (continuedDensity N) | |
| 109 | + (mellin fun y => (signedConvolution φ y : ℂ)) a b | |
| 110 | + (fun w hw => regularizedModelMellin_differentiableAt N φ hφ (ha.trans_le hw.1)) | |
| 111 | + (fun w hw => regularizedModelMellin_eq N φ hφ hw) D B hD hB.le hgrowth hdec | |
| 112 | + | |
| 113 | +lemma model_single_mellin_shift_of_growth (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 114 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (a b : ℝ) (ha : 0 < a) (hab : a ≤ b) | |
| 115 | + (hb : 1 < b) (D : ℝ) (hD : 0 ≤ D) | |
| 116 | + (hgrowth : ∀ w : ℂ, w.re ∈ Icc a b → 1 ≤ |w.im| → | |
| 117 | + ‖continuedDensity N w‖ ≤ D * (1 + |w.im|)) : | |
| 118 | + Integrable (fun t : ℝ => continuedDensity N (line a t) * | |
| 119 | + mellin (fun y => (signedConvolution φ y : ℂ)) (line a t)) ∧ | |
| 120 | + verticalMellin a (fun w => continuedDensity N w * | |
| 121 | + mellin (fun y => (signedConvolution φ y : ℂ)) w) = | |
| 122 | + -(weightMass φ * singularSeries N : ℝ) := by | |
| 123 | + obtain ⟨C, _, hbound⟩ := regularizedModelMellin_uniform_decay N φ hφ a b ha hab D hD hgrowth | |
| 124 | + obtain ⟨hint, hshift⟩ := verticalMellin_shift_of_ae_eq (regularizedModelMellin N φ) | |
| 125 | + (fun w => continuedDensity N w * mellin (fun y => (signedConvolution φ y : ℂ)) w) | |
| 126 | + a b C hab | |
| 127 | + (fun w hw => regularizedModelMellin_differentiableAt N φ hφ (ha.trans_le hw.1)) | |
| 128 | + hbound (regularizedModelMellin_line_ae N φ hφ a) | |
| 129 | + exact ⟨hint, hshift.trans (regularizedModelMellin_initial N hN hpos φ hφ b hb).2⟩ | |
| 130 | + | |
| 131 | +end ConditionalGoldbach | |
+35 −0 ConditionalGoldbach/Proofs/MellinModelSingle.lean added View file
| @@ -0,0 +1,35 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinModelShift | |
| 4 | +public import ConditionalGoldbach.Proofs.ZetaGrowth | |
| 5 | + | |
| 6 | +/-! Exact evaluation of the single model Mellin integral on every positive line. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +/-- Choose a comparison line to the right of `1` using the density growth bound | |
| 16 | +on the strip from the original contour to that line. -/ | |
| 17 | +lemma exists_mellin_comparison_line (N : ℕ) (a : ℝ) (ha : 0 < a) : | |
| 18 | + ∃ b D : ℝ, a ≤ b ∧ 1 < b ∧ 0 ≤ D ∧ | |
| 19 | + ∀ w : ℂ, w.re ∈ Icc a b → 1 ≤ |w.im| → | |
| 20 | + ‖continuedDensity N w‖ ≤ D * (1 + |w.im|) := by | |
| 21 | + obtain ⟨D, hD, hgrowth⟩ := | |
| 22 | + continuedDensity_vertical_growth N ha (show a < a + 2 by linarith) | |
| 23 | + exact ⟨a + 2, D, by linarith, by linarith, hD, hgrowth⟩ | |
| 24 | + | |
| 25 | +lemma model_single_mellin (N : ℕ) (hN : Even N) (hpos : 0 < N) | |
| 26 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (a : ℝ) (ha : 0 < a) : | |
| 27 | + Integrable (fun t : ℝ => continuedDensity N (line a t) * | |
| 28 | + mellin (fun y => (signedConvolution φ y : ℂ)) (line a t)) ∧ | |
| 29 | + verticalMellin a (fun w => continuedDensity N w * | |
| 30 | + mellin (fun y => (signedConvolution φ y : ℂ)) w) = | |
| 31 | + -(weightMass φ * singularSeries N : ℝ) := by | |
| 32 | + obtain ⟨b, D, hab, hb, hD, hgrowth⟩ := exists_mellin_comparison_line N a ha | |
| 33 | + exact model_single_mellin_shift_of_growth N hN hpos φ hφ a b ha hab hb D hD hgrowth | |
| 34 | + | |
| 35 | +end ConditionalGoldbach | |
+113 −0 ConditionalGoldbach/Proofs/MellinMoment.lean added View file
| @@ -0,0 +1,113 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinProjection | |
| 4 | +public import ConditionalGoldbach.Proofs.CharacterAnalytic | |
| 5 | +public import ConditionalGoldbach.Proofs.SignedFamilies | |
| 6 | + | |
| 7 | +/-! The initial double Mellin projection of the odd-character moment. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | +attribute [local instance] Classical.propDecidable | |
| 16 | + | |
| 17 | +lemma verticalMellin_const_mul (σ : ℝ) (c : ℂ) (f : ℂ → ℂ) : | |
| 18 | + verticalMellin σ (fun z => c * f z) = c * verticalMellin σ f := by | |
| 19 | + simp only [verticalMellin, integral_const_mul] | |
| 20 | + ring | |
| 21 | + | |
| 22 | +lemma verticalMellin_mul_const (σ : ℝ) (c : ℂ) (f : ℂ → ℂ) : | |
| 23 | + verticalMellin σ (fun z => f z * c) = verticalMellin σ f * c := by | |
| 24 | + simp only [verticalMellin, integral_mul_const] | |
| 25 | + ring | |
| 26 | + | |
| 27 | +lemma verticalMellin_finset_sum {ι : Type*} (S : Finset ι) (σ : ℝ) (f : ι → ℂ → ℂ) | |
| 28 | + (hf : ∀ i ∈ S, Integrable (fun t : ℝ => f i (line σ t))) : | |
| 29 | + verticalMellin σ (fun z => ∑ i ∈ S, f i z) = ∑ i ∈ S, verticalMellin σ (f i) := by | |
| 30 | + simp only [verticalMellin, integral_finsetSum S hf, Finset.mul_sum] | |
| 31 | + | |
| 32 | +lemma double_verticalMellin_finset_prod {ι : Type*} (S : Finset ι) | |
| 33 | + (σ : ℝ) (c : ℂ) (f g : ι → ℂ → ℂ) | |
| 34 | + (hf : ∀ i ∈ S, Integrable (fun t : ℝ => f i (line σ t))) | |
| 35 | + (hg : ∀ i ∈ S, Integrable (fun t : ℝ => g i (line σ t))) : | |
| 36 | + verticalMellin σ (fun s => verticalMellin σ (fun z => | |
| 37 | + c * ∑ i ∈ S, f i s * g i z)) = | |
| 38 | + c * ∑ i ∈ S, verticalMellin σ (f i) * verticalMellin σ (g i) := by | |
| 39 | + have hi (s : ℂ) : verticalMellin σ (fun z => c * ∑ i ∈ S, f i s * g i z) = | |
| 40 | + c * ∑ i ∈ S, f i s * verticalMellin σ (g i) := by | |
| 41 | + rw [verticalMellin_const_mul, verticalMellin_finset_sum S σ _ | |
| 42 | + (fun i hi => (hg i hi).const_mul (f i s))] | |
| 43 | + simp_rw [verticalMellin_const_mul] | |
| 44 | + simp_rw [hi] | |
| 45 | + rw [verticalMellin_const_mul, verticalMellin_finset_sum S σ _ | |
| 46 | + (fun i hi => (hf i hi).mul_const (verticalMellin σ (g i)))] | |
| 47 | + simp_rw [verticalMellin_mul_const] | |
| 48 | + | |
| 49 | +lemma characterPolynomial_star (N : ℕ) (χ : Character N) (φ : ℝ → ℝ) : | |
| 50 | + characterPolynomial (star χ) φ = conj (characterPolynomial χ φ) := by | |
| 51 | + simp only [characterPolynomial, map_mul, map_inv₀, map_sum, | |
| 52 | + Complex.conj_ofReal, MulChar.star_apply, RCLike.star_def] | |
| 53 | + | |
| 54 | +lemma weighted_characterKernel_factor (N : ℕ) [NeZero N] (φ : ℝ → ℝ) (s z : ℂ) : | |
| 55 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * characterKernel N s z = | |
| 56 | + (2 / (N.totient : ℂ)) * ∑ χ ∈ oddCharacters N, | |
| 57 | + ((N : ℂ) ^ s * mellinWeight φ s * logDerivative χ s) * | |
| 58 | + ((N : ℂ) ^ z * mellinWeight φ z * logDerivative (star χ) z) := by | |
| 59 | + have hN : (N : ℂ) ≠ 0 := by exact_mod_cast NeZero.ne N | |
| 60 | + rw [characterKernel_eq_star_sum, cpow_add _ _ hN] | |
| 61 | + simp only [Finset.mul_sum] | |
| 62 | + apply Finset.sum_congr rfl | |
| 63 | + intro χ _ | |
| 64 | + ring | |
| 65 | + | |
| 66 | +theorem characterMoment_mellin_initial (N : ℕ) [NeZero N] | |
| 67 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (hσ : 1 / 2 < σ) : | |
| 68 | + (characterMoment N φ : ℂ) = verticalMellin σ (fun s => verticalMellin σ (fun z => | |
| 69 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * characterKernel N s z)) := by | |
| 70 | + simp_rw [weighted_characterKernel_factor] | |
| 71 | + rw [double_verticalMellin_finset_prod (oddCharacters N) σ _ _ _ | |
| 72 | + (fun χ _ => character_mellin_initial_integrable χ φ hφ σ hσ) | |
| 73 | + (fun χ _ => character_mellin_initial_integrable (star χ) φ hφ σ hσ)] | |
| 74 | + unfold characterMoment | |
| 75 | + push_cast | |
| 76 | + congr 1 | |
| 77 | + apply Finset.sum_congr rfl | |
| 78 | + intro χ _ | |
| 79 | + have hχ := characterPolynomial_mellin_initial χ φ hφ σ hσ | |
| 80 | + have hχbar := characterPolynomial_mellin_initial (star χ) φ hφ σ hσ | |
| 81 | + calc | |
| 82 | + _ = characterPolynomial χ φ * characterPolynomial (star χ) φ := by | |
| 83 | + rw [characterPolynomial_star, Complex.mul_conj, Complex.normSq_eq_norm_sq] | |
| 84 | + push_cast | |
| 85 | + rfl | |
| 86 | + _ = _ := by rw [hχ, hχbar]; ring | |
| 87 | + | |
| 88 | +theorem characterMoment_mellin_initial_integrable (N : ℕ) [NeZero N] | |
| 89 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (hσ : 1 / 2 < σ) : | |
| 90 | + Integrable (fun p : ℝ × ℝ => | |
| 91 | + (N : ℂ) ^ (line σ p.1 + line σ p.2) * mellinWeight φ (line σ p.1) * | |
| 92 | + mellinWeight φ (line σ p.2) * characterKernel N (line σ p.1) (line σ p.2)) := by | |
| 93 | + simp_rw [weighted_characterKernel_factor] | |
| 94 | + apply Integrable.const_mul | |
| 95 | + apply integrable_finsetSum | |
| 96 | + intro χ _ | |
| 97 | + exact (character_mellin_initial_integrable χ φ hφ σ hσ).mul_prod | |
| 98 | + (character_mellin_initial_integrable (star χ) φ hφ σ hσ) | |
| 99 | + | |
| 100 | + | |
| 101 | +theorem lemma_3_5 (N : ℕ) [NeZero N] (_hN : Even N) (_hN4 : 4 ≤ N) | |
| 102 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (hσ : 1 / 2 < σ) : | |
| 103 | + (characterMoment N φ : ℂ) = verticalMellin σ (fun s => verticalMellin σ (fun z => | |
| 104 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * characterKernel N s z)) ∧ | |
| 105 | + ∀ n m : ℕ, 0 < n → 0 < m → n ≠ m → | |
| 106 | + (((n : ZMod N) = m) ↔ | |
| 107 | + (∃ k : ℕ, 0 < k ∧ m = n + k * N) ∨ (∃ k : ℕ, 0 < k ∧ n = m + k * N)) ∧ | |
| 108 | + (((n : ZMod N) = -(m : ZMod N)) ↔ ∃ k : ℕ, 0 < k ∧ n + m = k * N) := by | |
| 109 | + refine ⟨characterMoment_mellin_initial N φ hφ σ hσ, ?_⟩ | |
| 110 | + intro n m hn hm hnm | |
| 111 | + exact ⟨difference_congruence_families N n m hnm, sum_congruence_family N n m hn hm⟩ | |
| 112 | + | |
| 113 | +end ConditionalGoldbach | |
+32 −0 ConditionalGoldbach/Proofs/MellinMomentComplete.lean added View file
| @@ -0,0 +1,32 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinCharacterShift | |
| 4 | + | |
| 5 | +/-! Both audited contour regimes for the character moment, including absolute convergence. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +theorem lemma_3_5_absolute_convergence (N : ℕ) [NeZero N] | |
| 15 | + (hN : Even N) (hN4 : 4 ≤ N) (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 16 | + (σ : ℝ) (hσ : 1 / 2 < σ ∨ (GRH N ∧ 0 < σ ∧ σ ≤ 1 / 9)) : | |
| 17 | + Integrable (fun p : ℝ × ℝ => | |
| 18 | + (N : ℂ) ^ (line σ p.1 + line σ p.2) * | |
| 19 | + mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * | |
| 20 | + characterKernel N (line σ p.1) (line σ p.2)) := by | |
| 21 | + rcases hσ with hσ | ⟨hGRH,hσ,hσ'⟩ | |
| 22 | + · exact characterMoment_mellin_initial_integrable N φ hφ σ hσ | |
| 23 | + · exact (characterMoment_mellin_shifted N hN hN4 hGRH φ hφ σ hσ (by linarith)).1 | |
| 24 | + | |
| 25 | +theorem lemma_3_5_small_sigma (N : ℕ) [NeZero N] | |
| 26 | + (hN : Even N) (hN4 : 4 ≤ N) (hGRH : GRH N) | |
| 27 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (hσ : 0 < σ) (hσ' : σ ≤ 1 / 9) : | |
| 28 | + (characterMoment N φ : ℂ) = verticalMellin σ (fun s => verticalMellin σ (fun z => | |
| 29 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * characterKernel N s z)) := by | |
| 30 | + exact (characterMoment_mellin_shifted N hN hN4 hGRH φ hφ σ hσ (by linarith)).2 | |
| 31 | + | |
| 32 | +end ConditionalGoldbach | |
+245 −0 ConditionalGoldbach/Proofs/MellinProjection.lean added View file
| @@ -0,0 +1,245 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.MellinBasic | |
| 4 | +public import ConditionalGoldbach.Proofs.CharacterSeries | |
| 5 | + | |
| 6 | +/-! Absolutely convergent interchange for weighted Mellin projections. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff FourierTransform | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +theorem mellin_inversion_hasSum {ι : Type*} [Countable ι] | |
| 16 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (u : ι → ℝ) (b : ι → ℂ) | |
| 17 | + (hu : ∀ i, 0 < u i) | |
| 18 | + (hb : Summable (fun i => ‖b i‖ * Real.rpow (u i) (-σ))) : | |
| 19 | + HasSum (fun i => b i * (companion φ (u i) : ℂ)) | |
| 20 | + (verticalMellin σ (fun s => ∑' i, b i * mellinWeight φ s * (u i : ℂ) ^ (-s))) := by | |
| 21 | + let F : ι → ℝ → ℂ := fun i t => | |
| 22 | + b i * mellinWeight φ (line σ t) * (u i : ℂ) ^ (-line σ t) | |
| 23 | + let B : ι → ℝ → ℝ := fun i t => | |
| 24 | + (‖b i‖ * Real.rpow (u i) (-σ)) * ‖mellinWeight φ (line σ t)‖ | |
| 25 | + have hint (i : ι) : Integrable (F i) := by | |
| 26 | + simpa only [F, mul_assoc] using | |
| 27 | + (mellinWeight_inversion_integrable hφ σ (u i) (hu i)).const_mul (b i) | |
| 28 | + have heq (i : ι) (t : ℝ) : ‖F i t‖ = B i t := by | |
| 29 | + simp only [F, B, norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos (hu i)] | |
| 30 | + simp only [line, neg_re, add_re, ofReal_re, mul_re, ofReal_im, | |
| 31 | + I_re, I_im, mul_zero, zero_mul, sub_self, add_zero] | |
| 32 | + rw [Real.rpow_eq_pow] | |
| 33 | + ring | |
| 34 | + have hBi : Integrable (fun t => ∑' i, B i t) := by | |
| 35 | + simp only [B, tsum_mul_right] | |
| 36 | + exact (mellinWeight_verticalIntegrable hφ σ).norm.const_mul _ | |
| 37 | + have h := hasSum_integral_of_dominated_convergence B | |
| 38 | + (fun i => (hint i).aestronglyMeasurable) | |
| 39 | + (fun i => Eventually.of_forall (fun t => (heq i t).le)) | |
| 40 | + (Eventually.of_forall (fun t => hb.mul_right _)) hBi | |
| 41 | + (Eventually.of_forall (fun t => | |
| 42 | + (Summable.of_norm (by simpa only [heq] using hb.mul_right ‖mellinWeight φ (line σ t)‖)).hasSum)) | |
| 43 | + have hscaled := h.mul_left ((2 * (Real.pi : ℂ))⁻¹) | |
| 44 | + convert hscaled using 1 | |
| 45 | + · ext i | |
| 46 | + rw [mellinWeight_inversion hφ σ (u i) (hu i)] | |
| 47 | + simp only [verticalMellin, F, mul_assoc, integral_const_mul] | |
| 48 | + ring | |
| 49 | + · rfl | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | +theorem mellin_inversion_sum_integrable {ι : Type*} [Countable ι] | |
| 54 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (u : ι → ℝ) (b : ι → ℂ) | |
| 55 | + (hu : ∀ i, 0 < u i) | |
| 56 | + (hb : Summable (fun i => ‖b i‖ * Real.rpow (u i) (-σ))) : | |
| 57 | + Integrable (fun t : ℝ => ∑' i, | |
| 58 | + b i * mellinWeight φ (line σ t) * (u i : ℂ) ^ (-line σ t)) := by | |
| 59 | + let F : ι → ℝ → ℂ := fun i t => | |
| 60 | + b i * mellinWeight φ (line σ t) * (u i : ℂ) ^ (-line σ t) | |
| 61 | + have hint (i : ι) : Integrable (F i) := by | |
| 62 | + simpa only [F, mul_assoc] using | |
| 63 | + (mellinWeight_inversion_integrable hφ σ (u i) (hu i)).const_mul (b i) | |
| 64 | + have hnorm (i : ι) (t : ℝ) : ‖F i t‖ = | |
| 65 | + (‖b i‖ * Real.rpow (u i) (-σ)) * ‖mellinWeight φ (line σ t)‖ := by | |
| 66 | + simp only [F, norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos (hu i)] | |
| 67 | + simp only [line, neg_re, add_re, ofReal_re, mul_re, ofReal_im, | |
| 68 | + I_re, I_im, mul_zero, zero_mul, sub_self, add_zero, Real.rpow_eq_pow] | |
| 69 | + ring | |
| 70 | + apply ((mellinWeight_verticalIntegrable hφ σ).norm.const_mul | |
| 71 | + (∑' i, ‖b i‖ * Real.rpow (u i) (-σ))).mono' | |
| 72 | + (AEStronglyMeasurable.tsum (fun i => (hint i).aestronglyMeasurable)) | |
| 73 | + filter_upwards [] with t | |
| 74 | + have hs : Summable (fun i => ‖F i t‖) := by | |
| 75 | + simpa only [hnorm] using hb.mul_right ‖mellinWeight φ (line σ t)‖ | |
| 76 | + calc | |
| 77 | + ‖∑' i, F i t‖ ≤ ∑' i, ‖F i t‖ := norm_tsum_le_tsum_norm hs | |
| 78 | + _ = _ := by simp only [hnorm, tsum_mul_right, line] | |
| 79 | + | |
| 80 | + | |
| 81 | +lemma mellin_dirichlet_rescale (n N : ℕ) (hn : 0 < n) (hN : 0 < N) (s a : ℂ) : | |
| 82 | + a / (n : ℂ) ^ (1 / 2 : ℂ) * (((n : ℝ) / N : ℝ) : ℂ) ^ (-s) = | |
| 83 | + (N : ℂ) ^ s * (a / (n : ℂ) ^ (1 / 2 + s)) := by | |
| 84 | + have hn0 : (n : ℂ) ≠ 0 := by exact_mod_cast hn.ne' | |
| 85 | + have hncp (z : ℂ) : (n : ℂ) ^ z ≠ 0 := cpow_ne_zero_iff.mpr (Or.inl hn0) | |
| 86 | + rw [Complex.ofReal_div, | |
| 87 | + Complex.div_cpow_ofReal_nonneg (a := (n : ℝ)) (b := (N : ℝ)) (by positivity) (by positivity), | |
| 88 | + Complex.ofReal_natCast, Complex.ofReal_natCast, cpow_neg, cpow_neg, div_inv_eq_mul, cpow_add _ _ hn0] | |
| 89 | + field_simp | |
| 90 | + | |
| 91 | +lemma character_mellin_coeff_summable {N : ℕ} [NeZero N] (χ : Character N) | |
| 92 | + (σ : ℝ) (hσ : 1 / 2 < σ) : | |
| 93 | + Summable (fun n : ℕ => | |
| 94 | + ‖(mangoldt (n + 1) : ℂ) * χ (n + 1) / (n + 1 : ℕ) ^ (1 / 2 : ℂ)‖ * | |
| 95 | + Real.rpow ((n + 1 : ℕ) / (N : ℝ)) (-σ)) := by | |
| 96 | + have hN : 0 < N := NeZero.pos _ | |
| 97 | + have hs := (summable_logDerivative_terms χ (s := (σ : ℂ)) (by simpa using hσ)).norm | |
| 98 | + have hshift := (summable_nat_add_iff 1).2 hs | |
| 99 | + have hnorm := hshift.mul_left ‖(N : ℂ) ^ (σ : ℂ)‖ | |
| 100 | + apply hnorm.congr | |
| 101 | + intro n | |
| 102 | + have hid := congrArg norm (mellin_dirichlet_rescale (n + 1) N (by omega) hN (σ : ℂ) | |
| 103 | + ((mangoldt (n + 1) : ℂ) * χ (n + 1))) | |
| 104 | + rw [norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos (by positivity), norm_mul] at hid | |
| 105 | + simpa only [neg_re, ofReal_re, Real.rpow_eq_pow, Nat.cast_add, Nat.cast_one] using hid.symm | |
| 106 | + | |
| 107 | + | |
| 108 | +lemma character_mellin_companion_term (N n : ℕ) (hN : 0 < N) | |
| 109 | + (χ : Character N) (φ : ℝ → ℝ) : | |
| 110 | + ((mangoldt n : ℂ) * χ n / (n : ℂ) ^ (1 / 2 : ℂ)) * | |
| 111 | + (companion φ (n / N) : ℂ) = | |
| 112 | + (Real.sqrt N : ℂ)⁻¹ * ((mangoldt n : ℂ) * χ n * (φ (n / N) : ℂ)) := by | |
| 113 | + by_cases hn : n = 0 | |
| 114 | + · subst n | |
| 115 | + simp [mangoldt] | |
| 116 | + have hnpos : 0 < (n : ℝ) := by exact_mod_cast Nat.pos_of_ne_zero hn | |
| 117 | + have hNpos : 0 < (N : ℝ) := by exact_mod_cast hN | |
| 118 | + have hnroot : (Real.sqrt (n : ℝ) : ℂ) ≠ 0 := | |
| 119 | + Complex.ofReal_ne_zero.mpr (Real.sqrt_pos.2 hnpos).ne' | |
| 120 | + have hNroot : (Real.sqrt (N : ℝ) : ℂ) ≠ 0 := | |
| 121 | + Complex.ofReal_ne_zero.mpr (Real.sqrt_pos.2 hNpos).ne' | |
| 122 | + have hhalf : (n : ℂ) ^ (1 / 2 : ℂ) = (Real.sqrt (n : ℝ) : ℂ) := by | |
| 123 | + rw [Real.sqrt_eq_rpow, Complex.ofReal_cpow hnpos.le] | |
| 124 | + congr 1 | |
| 125 | + norm_num | |
| 126 | + rw [hhalf] | |
| 127 | + simp only [companion, Complex.ofReal_mul, Real.sqrt_div hnpos.le, | |
| 128 | + Complex.ofReal_div] | |
| 129 | + field_simp | |
| 130 | + | |
| 131 | +lemma character_mellin_companion_tsum (N : ℕ) (hN : 0 < N) | |
| 132 | + (χ : Character N) (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 133 | + (∑' n : ℕ, ((mangoldt n : ℂ) * χ n / (n : ℂ) ^ (1 / 2 : ℂ)) * | |
| 134 | + (companion φ (n / N) : ℂ)) = characterPolynomial χ φ := by | |
| 135 | + simp_rw [character_mellin_companion_term N _ hN χ φ] | |
| 136 | + rw [tsum_mul_left] | |
| 137 | + unfold characterPolynomial | |
| 138 | + congr 1 | |
| 139 | + apply tsum_eq_sum | |
| 140 | + intro n hn | |
| 141 | + have hnlarge : N < n := by | |
| 142 | + have : N + 1 ≤ n := by simpa only [Finset.mem_range, not_lt] using hn | |
| 143 | + omega | |
| 144 | + have hz : φ ((n : ℝ) / N) = 0 := by | |
| 145 | + by_contra hnonzero | |
| 146 | + have hs := hφ.mem_support_interval hnonzero | |
| 147 | + have hNr : 0 < (N : ℝ) := by exact_mod_cast hN | |
| 148 | + have hnr : (N : ℝ) < n := by exact_mod_cast hnlarge | |
| 149 | + have hi := (div_le_iff₀ hNr).1 hs.2 | |
| 150 | + nlinarith | |
| 151 | + simp [hz] | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | +lemma character_mellin_series {N : ℕ} [NeZero N] (χ : Character N) | |
| 156 | + (φ : ℝ → ℝ) (s : ℂ) (hs : 1 / 2 < s.re) : | |
| 157 | + (∑' n : ℕ, ((mangoldt (n + 1) : ℂ) * χ (n + 1) / | |
| 158 | + (n + 1 : ℕ) ^ (1 / 2 : ℂ)) * mellinWeight φ s * | |
| 159 | + (((n + 1 : ℕ) / (N : ℝ) : ℝ) : ℂ) ^ (-s)) = | |
| 160 | + -((N : ℂ) ^ s * mellinWeight φ s * logDerivative χ s) := by | |
| 161 | + rw [logDerivative_eq_neg_tsum χ hs, mul_neg, neg_neg, | |
| 162 | + (summable_logDerivative_terms χ hs).tsum_eq_zero_add] | |
| 163 | + simp only [mangoldt, ArithmeticFunction.map_zero, | |
| 164 | + Complex.ofReal_zero, zero_mul, zero_div, zero_add] | |
| 165 | + rw [← tsum_mul_left] | |
| 166 | + apply tsum_congr | |
| 167 | + intro n | |
| 168 | + calc | |
| 169 | + _ = mellinWeight φ s * | |
| 170 | + (((mangoldt (n + 1) : ℂ) * χ (n + 1) / | |
| 171 | + (n + 1 : ℕ) ^ (1 / 2 : ℂ)) * | |
| 172 | + (((n + 1 : ℕ) / (N : ℝ) : ℝ) : ℂ) ^ (-s)) := by ring | |
| 173 | + _ = _ := by | |
| 174 | + rw [mellin_dirichlet_rescale (n + 1) N (by omega) (NeZero.pos _)] | |
| 175 | + push_cast | |
| 176 | + ring | |
| 177 | + | |
| 178 | +theorem character_mellin_initial_integrable {N : ℕ} [NeZero N] | |
| 179 | + (χ : Character N) (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (hσ : 1 / 2 < σ) : | |
| 180 | + Integrable (fun t : ℝ => | |
| 181 | + (N : ℂ) ^ (line σ t) * mellinWeight φ (line σ t) * logDerivative χ (line σ t)) := by | |
| 182 | + have hN : 0 < N := NeZero.pos _ | |
| 183 | + have hint := mellin_inversion_sum_integrable φ hφ σ | |
| 184 | + (fun n : ℕ => (n + 1 : ℕ) / (N : ℝ)) | |
| 185 | + (fun n : ℕ => (mangoldt (n + 1) : ℂ) * χ (n + 1) / (n + 1 : ℕ) ^ (1 / 2 : ℂ)) | |
| 186 | + (fun n => by positivity) (character_mellin_coeff_summable χ σ hσ) | |
| 187 | + convert hint.neg using 1 | |
| 188 | + ext t | |
| 189 | + simp only [Pi.neg_apply] | |
| 190 | + rw [character_mellin_series χ φ (line σ t) (by simpa [line] using hσ), neg_neg] | |
| 191 | + | |
| 192 | + | |
| 193 | +/-- The initial Mellin contour requires no GRH and works for every character. -/ | |
| 194 | +theorem characterPolynomial_mellin_initial {N : ℕ} [NeZero N] | |
| 195 | + (χ : Character N) (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 196 | + (σ : ℝ) (hσ : 1 / 2 < σ) : | |
| 197 | + characterPolynomial χ φ = -verticalMellin σ (fun s => | |
| 198 | + (N : ℂ) ^ s * mellinWeight φ s * logDerivative χ s) := by | |
| 199 | + have hN : 0 < N := NeZero.pos _ | |
| 200 | + let u : ℕ → ℝ := fun n => (n + 1 : ℕ) / (N : ℝ) | |
| 201 | + let b : ℕ → ℂ := fun n => | |
| 202 | + (mangoldt (n + 1) : ℂ) * χ (n + 1) / (n + 1 : ℕ) ^ (1 / 2 : ℂ) | |
| 203 | + have hs := mellin_inversion_hasSum φ hφ σ u b | |
| 204 | + (fun n => by dsimp [u]; positivity) (character_mellin_coeff_summable χ σ hσ) | |
| 205 | + let F : ℕ → ℂ := fun n => | |
| 206 | + ((mangoldt n : ℂ) * χ n / (n : ℂ) ^ (1 / 2 : ℂ)) * | |
| 207 | + (companion φ (n / N) : ℂ) | |
| 208 | + have hs' : HasSum F | |
| 209 | + (verticalMellin σ (fun s => ∑' i, b i * mellinWeight φ s * (u i : ℂ) ^ (-s))) := by | |
| 210 | + have hs1 : HasSum (fun n => F (n + 1)) | |
| 211 | + (verticalMellin σ (fun s => ∑' i, b i * mellinWeight φ s * (u i : ℂ) ^ (-s))) := by | |
| 212 | + simpa only [F, b, u, Nat.cast_add, Nat.cast_one] using hs | |
| 213 | + have := (hasSum_nat_add_iff 1).1 hs1 | |
| 214 | + simpa [F, mangoldt] using this | |
| 215 | + calc | |
| 216 | + characterPolynomial χ φ = ∑' n, F n := | |
| 217 | + (character_mellin_companion_tsum N hN χ φ hφ).symm | |
| 218 | + _ = verticalMellin σ (fun s => ∑' i, b i * mellinWeight φ s * (u i : ℂ) ^ (-s)) := hs'.tsum_eq | |
| 219 | + _ = -verticalMellin σ (fun s => | |
| 220 | + (N : ℂ) ^ s * mellinWeight φ s * logDerivative χ s) := by | |
| 221 | + unfold verticalMellin | |
| 222 | + rw [← mul_neg, ← integral_neg] | |
| 223 | + congr 1 | |
| 224 | + apply integral_congr_ae | |
| 225 | + filter_upwards [] with t | |
| 226 | + have hst : 1 / 2 < (line σ t).re := by simpa [line] using hσ | |
| 227 | + rw [logDerivative_eq_neg_tsum χ hst, mul_neg, neg_neg, | |
| 228 | + (summable_logDerivative_terms χ hst).tsum_eq_zero_add] | |
| 229 | + simp only [mangoldt, ArithmeticFunction.map_zero, | |
| 230 | + Complex.ofReal_zero, zero_mul, zero_div, zero_add] | |
| 231 | + rw [← tsum_mul_left] | |
| 232 | + apply tsum_congr | |
| 233 | + intro n | |
| 234 | + dsimp [u, b] | |
| 235 | + calc | |
| 236 | + _ = mellinWeight φ (line σ t) * | |
| 237 | + (((mangoldt (n + 1) : ℂ) * χ (n + 1) / | |
| 238 | + (n + 1 : ℕ) ^ (1 / 2 : ℂ)) * | |
| 239 | + (((n + 1 : ℕ) / (N : ℝ) : ℝ) : ℂ) ^ (-line σ t)) := by ring | |
| 240 | + _ = _ := by | |
| 241 | + rw [mellin_dirichlet_rescale (n + 1) N (by omega) hN] | |
| 242 | + push_cast | |
| 243 | + ring | |
| 244 | + | |
| 245 | +end ConditionalGoldbach | |
+110 −0 ConditionalGoldbach/Proofs/MellinResidual.lean added View file
| @@ -0,0 +1,110 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.ModelMellinPrerequisites | |
| 4 | +public import ConditionalGoldbach.Proofs.MellinCharacterShift | |
| 5 | +public import ConditionalGoldbach.Proofs.ModelContinuation | |
| 6 | + | |
| 7 | +/-! The arithmetic residual, with the signs of all three Mellin terms retained. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +lemma double_verticalMellin_sub (σ : ℝ) (f g : ℂ → ℂ → ℂ) | |
| 17 | + (hf : Integrable (fun p : ℝ × ℝ => f (line σ p.1) (line σ p.2))) | |
| 18 | + (hg : Integrable (fun p : ℝ × ℝ => g (line σ p.1) (line σ p.2))) : | |
| 19 | + verticalMellin σ (fun s => verticalMellin σ (fun z => f s z - g s z)) = | |
| 20 | + verticalMellin σ (fun s => verticalMellin σ (f s)) - | |
| 21 | + verticalMellin σ (fun s => verticalMellin σ (g s)) := by | |
| 22 | + simp only [verticalMellin, integral_const_mul] | |
| 23 | + rw [integral_integral_sub hf hg] | |
| 24 | + ring | |
| 25 | + | |
| 26 | +lemma weighted_continuedModel_cancel (N : ℕ) (hN : 0 < N) (φ : ℝ → ℝ) | |
| 27 | + (s z : ℂ) (hd : (s, z) ∈ betaDomain) : | |
| 28 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * continuedModel N s z = | |
| 29 | + mellinWeight φ s * mellinWeight φ z * continuedDensity N (s + z) * betaKernel s z := by | |
| 30 | + rw [← betaModel_eq_continuedModel N hN s z hd, betaModel, cpow_neg] | |
| 31 | + have hNz : (N : ℂ) ≠ 0 := by exact_mod_cast hN.ne' | |
| 32 | + have hNp : (N : ℂ) ^ (s + z) ≠ 0 := cpow_ne_zero_iff.mpr (Or.inl hNz) | |
| 33 | + field_simp | |
| 34 | + | |
| 35 | +lemma mellin_betaDomain_line (σ : ℝ) (hσ : 0 < σ) (hσ' : σ ≤ 1 / 9) (x y : ℝ) : | |
| 36 | + (line σ x, line σ y) ∈ betaDomain := by | |
| 37 | + simp only [betaDomain, Set.mem_ofPred_eq, line, add_re, ofReal_re, mul_re, ofReal_im, | |
| 38 | + I_re, I_im, mul_zero, zero_mul, sub_self, add_zero] | |
| 39 | + constructor | |
| 40 | + · linarith | |
| 41 | + constructor <;> linarith | |
| 42 | + | |
| 43 | +lemma residual_mellin_split (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) | |
| 44 | + (hGRH : GRH N) (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) | |
| 45 | + (hσ : 0 < σ) (hσ' : σ ≤ 1 / 9) : | |
| 46 | + Integrable (fun p : ℝ × ℝ => | |
| 47 | + (N : ℂ) ^ (line σ p.1 + line σ p.2) * mellinWeight φ (line σ p.1) * | |
| 48 | + mellinWeight φ (line σ p.2) * residual N (line σ p.1) (line σ p.2)) ∧ | |
| 49 | + residualIntegral N φ σ = (characterMoment N φ : ℂ) - diagonalMoment N φ + | |
| 50 | + (weightMass φ * singularSeries N : ℝ) := by | |
| 51 | + let P : ℂ → ℂ → ℂ := fun s z => | |
| 52 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * characterKernel N s z | |
| 53 | + let D : ℂ → ℂ → ℂ := fun s z => | |
| 54 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * diagonalSeries N (s + z) | |
| 55 | + let K : ℂ → ℂ → ℂ := fun s z => | |
| 56 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * continuedModel N s z | |
| 57 | + have hNpos : 0 < N := by omega | |
| 58 | + have hcancel (x y : ℝ) := weighted_continuedModel_cancel N hNpos φ | |
| 59 | + (line σ x) (line σ y) (mellin_betaDomain_line σ hσ hσ' x y) | |
| 60 | + obtain ⟨hPi, hPv⟩ := characterMoment_mellin_shifted N hN hN4 hGRH φ hφ σ hσ (by linarith) | |
| 61 | + obtain ⟨hDi, hDv⟩ := diagonalMoment_mellin N hNpos φ hφ σ hσ | |
| 62 | + have hKi' := (lemma_7_2_absolute_convergence N hN hN4 φ hφ σ hσ hσ').2 | |
| 63 | + have hKi : Integrable (fun p : ℝ × ℝ => K (line σ p.1) (line σ p.2)) := by | |
| 64 | + apply hKi'.congr | |
| 65 | + filter_upwards [] with p | |
| 66 | + exact (hcancel p.1 p.2).symm | |
| 67 | + have hsplit (s z : ℂ) : | |
| 68 | + (N : ℂ) ^ (s + z) * mellinWeight φ s * mellinWeight φ z * residual N s z = | |
| 69 | + (P s z - D s z) - K s z := by dsimp [P, D, K, residual]; ring | |
| 70 | + constructor | |
| 71 | + · simp_rw [hsplit] | |
| 72 | + exact (hPi.sub hDi).sub hKi | |
| 73 | + · unfold residualIntegral | |
| 74 | + simp_rw [hsplit] | |
| 75 | + rw [double_verticalMellin_sub σ _ K (hPi.sub hDi) hKi, | |
| 76 | + double_verticalMellin_sub σ P D hPi hDi, ← hPv, | |
| 77 | + hDv] | |
| 78 | + have hKval : verticalMellin σ (fun s => verticalMellin σ (K s)) = | |
| 79 | + -(weightMass φ * singularSeries N : ℝ) := by | |
| 80 | + rw [← (lemma_7_2 N hN hN4 φ hφ σ hσ hσ').2] | |
| 81 | + unfold verticalMellin | |
| 82 | + congr 1 | |
| 83 | + apply integral_congr_ae | |
| 84 | + filter_upwards [] with x | |
| 85 | + congr 1 | |
| 86 | + apply integral_congr_ae | |
| 87 | + filter_upwards [] with y | |
| 88 | + exact hcancel x y | |
| 89 | + rw [hKval] | |
| 90 | + ring | |
| 91 | + | |
| 92 | +theorem proposition_7_3 (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) | |
| 93 | + (hGRH : GRH N) (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) | |
| 94 | + (hσ : 0 < σ) (hσ' : σ ≤ 1 / 9) : | |
| 95 | + residualIntegral N φ σ = (weightMass φ * singularSeries N - goldbach N φ : ℝ) := by | |
| 96 | + rw [(residual_mellin_split N hN hN4 hGRH φ hφ σ hσ hσ').2, | |
| 97 | + goldbach_eq_diagonal_sub_character N hN hN4 φ hφ] | |
| 98 | + push_cast | |
| 99 | + ring | |
| 100 | + | |
| 101 | +theorem proposition_7_3_absolute_convergence (N : ℕ) [NeZero N] | |
| 102 | + (hN : Even N) (hN4 : 4 ≤ N) (hGRH : GRH N) | |
| 103 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) (hσ : 0 < σ) (hσ' : σ ≤ 1 / 9) : | |
| 104 | + Integrable (fun p : ℝ × ℝ => | |
| 105 | + (N : ℂ) ^ (line σ p.1 + line σ p.2) * | |
| 106 | + mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * | |
| 107 | + residual N (line σ p.1) (line σ p.2)) := | |
| 108 | + (residual_mellin_split N hN hN4 hGRH φ hφ σ hσ hσ').1 | |
| 109 | + | |
| 110 | +end ConditionalGoldbach | |
+87 −0 ConditionalGoldbach/Proofs/MellinTestInversion.lean added View file
| @@ -0,0 +1,87 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.Analysis.Distribution.SchwartzSpace.Fourier | |
| 4 | +public import Mathlib.Analysis.MellinInversion | |
| 5 | +public import ConditionalGoldbach.Proofs.MellinDifferentiation | |
| 6 | + | |
| 7 | +/-! Mellin inversion also applies to signed derivative weights. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology ContDiff FourierTransform SchwartzMap | |
| 13 | +open MeasureTheory Filter Set Complex | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +lemma mellin_test_convergent (f : ℝ → ℝ) (hf : Continuous f) | |
| 17 | + (hs : Function.support f ⊆ Icc (1 / 3 : ℝ) (2 / 3)) (s : ℂ) : | |
| 18 | + MellinConvergent (fun u => (f u : ℂ)) s := by | |
| 19 | + have hsupport : Function.support (fun u : ℝ => (u : ℂ) ^ (s - 1) * (f u : ℂ)) ⊆ | |
| 20 | + Icc (1 / 3 : ℝ) (2 / 3) := by | |
| 21 | + intro u hu | |
| 22 | + apply hs | |
| 23 | + intro hzero | |
| 24 | + exact hu (by simp [hzero]) | |
| 25 | + change IntegrableOn (fun u : ℝ => (u : ℂ) ^ (s - 1) * (f u : ℂ)) (Ioi 0) | |
| 26 | + apply Integrable.integrableOn | |
| 27 | + apply (integrableOn_iff_integrable_of_support_subset hsupport).mp | |
| 28 | + apply ContinuousOn.integrableOn_Icc | |
| 29 | + intro u hu | |
| 30 | + have hu0 : u ≠ 0 := by linarith [hu.1] | |
| 31 | + exact ((Complex.continuousAt_ofReal_cpow_const u (s - 1) (Or.inr hu0)).mul | |
| 32 | + (Complex.continuous_ofReal.continuousAt.comp hf.continuousAt)).continuousWithinAt | |
| 33 | + | |
| 34 | +lemma mellin_test_verticalIntegrable (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) | |
| 35 | + (hs : Function.support f ⊆ Icc (1 / 3 : ℝ) (2 / 3)) (σ : ℝ) : | |
| 36 | + VerticalIntegrable (mellin (fun u => (f u : ℂ))) σ := by | |
| 37 | + let g : ℝ → ℂ := fun x => Real.exp (-σ * x) • (f (Real.exp (-x)) : ℂ) | |
| 38 | + have hg : ContDiff ℝ ∞ g := by | |
| 39 | + exact (Real.contDiff_exp.comp ((contDiff_const : ContDiff ℝ ∞ (fun _ : ℝ => -σ)).mul contDiff_id)).smul | |
| 40 | + (Complex.ofRealCLM.contDiff.comp (hf.comp (Real.contDiff_exp.comp contDiff_id.neg))) | |
| 41 | + have hgs : HasCompactSupport g := by | |
| 42 | + apply HasCompactSupport.of_support_subset_isCompact | |
| 43 | + (isCompact_Icc (a := -Real.log (2 / 3)) (b := -Real.log (1 / 3))) | |
| 44 | + intro x hx | |
| 45 | + have hn : f (Real.exp (-x)) ≠ 0 := by intro hz; exact hx (by simp [g, hz]) | |
| 46 | + have h := hs hn | |
| 47 | + have hl := Real.log_le_log (by norm_num : (0 : ℝ) < 1 / 3) h.1 | |
| 48 | + have hr := Real.log_le_log (Real.exp_pos (-x)) h.2 | |
| 49 | + rw [Real.log_exp] at hl hr | |
| 50 | + constructor <;> linarith | |
| 51 | + let G := hgs.toSchwartzMap hg | |
| 52 | + have hF : Integrable (𝓕 g) := by | |
| 53 | + simpa only [SchwartzMap.fourier_coe] using (𝓕 G).integrable | |
| 54 | + have hscaled := hF.comp_mul_right' (show (2 * Real.pi)⁻¹ ≠ 0 by positivity) | |
| 55 | + simpa only [VerticalIntegrable, mellin_eq_fourier, add_re, ofReal_re, | |
| 56 | + mul_re, ofReal_im, I_re, I_im, mul_zero, zero_mul, sub_self, add_zero, add_im, | |
| 57 | + mul_im, mul_one, zero_add, g, div_eq_mul_inv] using hscaled | |
| 58 | + | |
| 59 | +lemma mellin_test_inversion (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) | |
| 60 | + (hs : Function.support f ⊆ Icc (1 / 3 : ℝ) (2 / 3)) (σ u : ℝ) (hu : 0 < u) : | |
| 61 | + (f u : ℂ) = verticalMellin σ (fun s => mellin (fun u => (f u : ℂ)) s * (u : ℂ) ^ (-s)) := by | |
| 62 | + have h := mellinInv_mellin_eq σ (fun u => (f u : ℂ)) hu | |
| 63 | + (mellin_test_convergent f hf.continuous hs σ) (mellin_test_verticalIntegrable f hf hs σ) | |
| 64 | + (Complex.continuous_ofReal.continuousAt.comp hf.continuous.continuousAt) | |
| 65 | + rw [← h] | |
| 66 | + simp only [mellinInv, verticalMellin, line, smul_eq_mul, Complex.real_smul, | |
| 67 | + Complex.ofReal_mul, Complex.ofReal_ofNat, one_div, Complex.ofReal_inv] | |
| 68 | + congr 1 | |
| 69 | + apply integral_congr_ae | |
| 70 | + exact Eventually.of_forall (fun _ => mul_comm _ _) | |
| 71 | + | |
| 72 | +lemma derivativeWeight_contDiff (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 73 | + ContDiff ℝ ∞ (derivativeWeight φ) := | |
| 74 | + mellinD_contDiff (companion_contDiff hφ) | |
| 75 | + | |
| 76 | +lemma derivativeWeight_mellin_verticalIntegrable (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) : | |
| 77 | + VerticalIntegrable (mellin (fun u => (derivativeWeight φ u : ℂ))) σ := | |
| 78 | + mellin_test_verticalIntegrable _ (derivativeWeight_contDiff φ hφ) (derivativeWeight_support_subset hφ) σ | |
| 79 | + | |
| 80 | +lemma derivativeWeight_mellin_inversion (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 81 | + (σ u : ℝ) (hu : 0 < u) : | |
| 82 | + (derivativeWeight φ u : ℂ) = verticalMellin σ (fun s => | |
| 83 | + (1 + s) * mellinWeight φ s * (u : ℂ) ^ (-s)) := by | |
| 84 | + simpa only [derivativeWeight_mellin φ hφ] using | |
| 85 | + mellin_test_inversion _ (derivativeWeight_contDiff φ hφ) (derivativeWeight_support_subset hφ) σ u hu | |
| 86 | + | |
| 87 | +end ConditionalGoldbach | |
+98 −0 ConditionalGoldbach/Proofs/ModelContinuation.lean added View file
| @@ -0,0 +1,98 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.DensityEuler | |
| 4 | +public import ConditionalGoldbach.Proofs.BetaIdentity | |
| 5 | + | |
| 6 | +/-! Continuation of the beta model, with the original two-variable domain. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma gammaQuotient_differentiableAt {s : ℂ} (hs : 0 < s.re) (hs' : s.re < 3 / 2) : | |
| 16 | + DifferentiableAt ℂ gammaQuotient s := by | |
| 17 | + have ha : 0 < ((3 / 2 - s) / 2).re := by simp; linarith | |
| 18 | + have hb : 0 < ((3 / 2 + s) / 2).re := by simp; linarith | |
| 19 | + unfold gammaQuotient | |
| 20 | + apply DifferentiableAt.div | |
| 21 | + · exact (Complex.hasDerivAt_Gamma_of_re_pos ha).differentiableAt.comp s (by fun_prop) | |
| 22 | + · exact (Complex.hasDerivAt_Gamma_of_re_pos hb).differentiableAt.comp s (by fun_prop) | |
| 23 | + · exact Complex.Gamma_ne_zero_of_re_pos hb | |
| 24 | + | |
| 25 | +lemma continuedModel_differentiableAt (N : ℕ) (hN : 0 < N) (p : ℂ × ℂ) | |
| 26 | + (hp : p ∈ analyticDomain) : | |
| 27 | + DifferentiableAt ℂ (fun q : ℂ × ℂ => continuedModel N q.1 q.2) p := by | |
| 28 | + have ho : IsOpen {w : ℂ | 0 < w.re} := isOpen_lt continuous_const Complex.continuous_re | |
| 29 | + have hs : 0 < (p.1 + p.2).re := by simpa only [add_re] using add_pos hp.1 hp.2.2.1 | |
| 30 | + have hdD : DifferentiableAt ℂ (densityEulerProduct N) (p.1 + p.2) := | |
| 31 | + (densityEulerProduct_differentiableOn N).differentiableAt (ho.mem_nhds hs) | |
| 32 | + have hD : DifferentiableAt ℂ (fun q : ℂ × ℂ => densityEulerProduct N (q.1 + q.2)) p := | |
| 33 | + DifferentiableAt.comp (g := densityEulerProduct N) | |
| 34 | + (f := fun q : ℂ × ℂ => q.1 + q.2) p hdD (by fun_prop) | |
| 35 | + have hz : 1 - p.1 - p.2 ≠ (1 : ℂ) := by | |
| 36 | + intro he | |
| 37 | + have hr := congrArg Complex.re he | |
| 38 | + simp only [sub_re, one_re] at hr | |
| 39 | + simp only [add_re] at hs | |
| 40 | + linarith | |
| 41 | + have hZ : DifferentiableAt ℂ (fun q : ℂ × ℂ => riemannZeta (1-q.1-q.2)) p := | |
| 42 | + (differentiableAt_riemannZeta hz).comp p (by fun_prop) | |
| 43 | + have hG1 : DifferentiableAt ℂ (fun q : ℂ × ℂ => gammaQuotient q.1) p := | |
| 44 | + (gammaQuotient_differentiableAt hp.1 hp.2.1).comp p (by fun_prop) | |
| 45 | + have hG2 : DifferentiableAt ℂ (fun q : ℂ × ℂ => gammaQuotient q.2) p := | |
| 46 | + (gammaQuotient_differentiableAt hp.2.2.1 hp.2.2.2).comp p (by fun_prop) | |
| 47 | + have hb : (Real.pi : ℂ) / N ≠ 0 := | |
| 48 | + div_ne_zero (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero) (by exact_mod_cast hN.ne') | |
| 49 | + have hP : DifferentiableAt ℂ (fun q : ℂ × ℂ => ((Real.pi : ℂ) / N) ^ (q.1 + q.2)) p := | |
| 50 | + (show DifferentiableAt ℂ (fun q : ℂ × ℂ => q.1 + q.2) p from by fun_prop).const_cpow (Or.inl hb) | |
| 51 | + unfold continuedModel | |
| 52 | + exact ((((hP.const_mul (singularSeries N : ℂ)).mul hD).mul hZ).mul hG1).mul hG2 | |
| 53 | + | |
| 54 | +lemma continuedModel_differentiableOn (N : ℕ) (hN : 0 < N) : | |
| 55 | + DifferentiableOn ℂ (fun p : ℂ × ℂ => continuedModel N p.1 p.2) analyticDomain := | |
| 56 | + fun p hp => (continuedModel_differentiableAt N hN p hp).differentiableWithinAt | |
| 57 | + | |
| 58 | +lemma betaModel_eq_continuedModel (N : ℕ) (hN : 0 < N) (s z : ℂ) | |
| 59 | + (hd : (s,z) ∈ betaDomain) : betaModel N s z = continuedModel N s z := by | |
| 60 | + have hw0 : 0 < (s+z).re := hd.2.2 | |
| 61 | + have hw1 : (s+z).re < 1 := by simp only [add_re]; linarith [hd.1, hd.2.1] | |
| 62 | + have hneg : ∀ n : ℕ, s+z ≠ -(n : ℂ) := by | |
| 63 | + intro n he | |
| 64 | + have hr := congrArg Complex.re he | |
| 65 | + simp at hr | |
| 66 | + have : (0 : ℝ) ≤ n := Nat.cast_nonneg n | |
| 67 | + simp only [add_re] at hw0 | |
| 68 | + linarith | |
| 69 | + have hne : s+z ≠ (1 : ℂ) := by intro he; simp [he] at hw1 | |
| 70 | + have hzeta := riemannZeta_one_sub hneg hne | |
| 71 | + have hN0 : (N : ℂ) ≠ 0 := by exact_mod_cast hN.ne' | |
| 72 | + have hπ : (Real.pi : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr Real.pi_ne_zero | |
| 73 | + have htwo : (2 : ℂ) ≠ 0 := by norm_num | |
| 74 | + have hpow2 : (2 * Real.pi : ℂ)^(-(s+z)) = | |
| 75 | + (2 : ℂ)^(-(s+z)) * (Real.pi : ℂ)^(-(s+z)) := by | |
| 76 | + simpa using Complex.mul_cpow_ofReal_nonneg (by norm_num : (0 : ℝ) ≤ 2) Real.pi_pos.le (-(s+z)) | |
| 77 | + have hpow : ((Real.pi : ℂ) / N) ^ (s+z) * (2 * Real.pi : ℂ) ^ (-(s+z)) * 2 = | |
| 78 | + (N : ℂ)^(-(s+z)) * (2 : ℂ) ^ (1-(s+z)) := by | |
| 79 | + rw [show (N : ℂ) = ((N : ℝ) : ℂ) by norm_cast, | |
| 80 | + Complex.div_cpow_ofReal_nonneg Real.pi_pos.le (Nat.cast_nonneg N), | |
| 81 | + hpow2, | |
| 82 | + Complex.cpow_sub _ _ htwo, Complex.cpow_one] | |
| 83 | + simp only [Complex.cpow_neg] | |
| 84 | + field_simp [Complex.cpow_ne_zero_iff.mpr (Or.inl hπ)] | |
| 85 | + unfold betaModel continuedDensity continuedModel | |
| 86 | + rw [betaKernel_gamma_identity s z hd, | |
| 87 | + show 1-s-z = 1-(s+z) by ring, hzeta] | |
| 88 | + linear_combination | |
| 89 | + -(singularSeries N : ℂ) * densityEulerProduct N (s+z) * riemannZeta (s+z) * | |
| 90 | + Gamma (s+z) * Complex.cos (Real.pi*(s+z)/2) * gammaQuotient s * gammaQuotient z * hpow | |
| 91 | + | |
| 92 | +theorem proposition_4_4 (N : ℕ) (_hN : Even N) (hN4 : 4 ≤ N) : | |
| 93 | + (∀ s z : ℂ, (s, z) ∈ betaDomain → betaModel N s z = continuedModel N s z) ∧ | |
| 94 | + DifferentiableOn ℂ (fun p : ℂ × ℂ => continuedModel N p.1 p.2) analyticDomain := by | |
| 95 | + exact ⟨fun s z hd => betaModel_eq_continuedModel N (by omega) s z hd, | |
| 96 | + continuedModel_differentiableOn N (by omega)⟩ | |
| 97 | + | |
| 98 | +end ConditionalGoldbach | |
+75 −0 ConditionalGoldbach/Proofs/MomentError.lean added View file
| @@ -0,0 +1,75 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.WideMoments | |
| 4 | + | |
| 5 | +public section | |
| 6 | + | |
| 7 | +set_option autoImplicit false | |
| 8 | +noncomputable section | |
| 9 | +open scoped BigOperators | |
| 10 | +namespace ConditionalGoldbach | |
| 11 | + | |
| 12 | +lemma norm_square_difference_le (z w : ℂ) : | |
| 13 | + |‖z‖^2-‖w‖^2| ≤ 2*‖w‖*‖z-w‖+‖z-w‖^2 := by | |
| 14 | + have hdiff := abs_norm_sub_norm_le z w | |
| 15 | + have htri : ‖z‖ ≤ ‖w‖+‖z-w‖ := by | |
| 16 | + have hh := norm_add_le w (z-w) | |
| 17 | + rw [add_sub_cancel] at hh | |
| 18 | + exact hh | |
| 19 | + calc | |
| 20 | + _ = |‖z‖-‖w‖| * (‖z‖+‖w‖) := by | |
| 21 | + rw [← abs_of_nonneg (add_nonneg (norm_nonneg _) (norm_nonneg _)),← abs_mul] | |
| 22 | + congr 1 | |
| 23 | + ring | |
| 24 | + _ ≤ ‖z-w‖*(‖z‖+‖w‖) := | |
| 25 | + mul_le_mul_of_nonneg_right hdiff (add_nonneg (norm_nonneg _) (norm_nonneg _)) | |
| 26 | + _ ≤ _ := by nlinarith [norm_nonneg (z-w)] | |
| 27 | + | |
| 28 | +lemma finite_signed_moment_error {ι : Type*} [Fintype ι] (f g : ι → ℂ) (s : ι → ℝ) | |
| 29 | + (hs : ∀ i, |s i|≤1) (a ε : ℝ) (ha : 0≤a) (hε : 0≤ε) | |
| 30 | + (herr : a*(∑ i, ‖f i-g i‖^2)≤ε^2) : | |
| 31 | + |a*(∑ i, s i*‖f i‖^2)-a*(∑ i, s i*‖g i‖^2)| ≤ | |
| 32 | + 2*Real.sqrt (a*∑ i, ‖g i‖^2)*ε+ε^2 := by | |
| 33 | + have hS : 0≤∑ i, ‖g i‖^2 := Finset.sum_nonneg (fun _ _ => sq_nonneg _) | |
| 34 | + have hE : 0≤∑ i, ‖f i-g i‖^2 := Finset.sum_nonneg (fun _ _ => sq_nonneg _) | |
| 35 | + have hc := Real.sum_mul_le_sqrt_mul_sqrt Finset.univ (fun i => ‖g i‖) (fun i => ‖f i-g i‖) | |
| 36 | + have hse : Real.sqrt (a*∑ i, ‖f i-g i‖^2)≤ε := | |
| 37 | + (Real.sqrt_le_iff).mpr ⟨hε,herr⟩ | |
| 38 | + have hroot : a*(Real.sqrt (∑ i, ‖g i‖^2)*Real.sqrt (∑ i, ‖f i-g i‖^2))= | |
| 39 | + Real.sqrt (a*∑ i, ‖g i‖^2)*Real.sqrt (a*∑ i, ‖f i-g i‖^2) := by | |
| 40 | + rw [Real.sqrt_mul ha,Real.sqrt_mul ha] | |
| 41 | + have hh := Real.sq_sqrt ha | |
| 42 | + calc | |
| 43 | + _ = (Real.sqrt a)^2*(Real.sqrt (∑ i, ‖g i‖^2)*Real.sqrt (∑ i, ‖f i-g i‖^2)) := by rw [hh] | |
| 44 | + _ = _ := by ring | |
| 45 | + have hc' : a*(∑ i, ‖g i‖*‖f i-g i‖)≤Real.sqrt (a*∑ i, ‖g i‖^2)*ε := by | |
| 46 | + apply (mul_le_mul_of_nonneg_left hc ha).trans | |
| 47 | + rw [hroot] | |
| 48 | + exact mul_le_mul_of_nonneg_left hse (Real.sqrt_nonneg _) | |
| 49 | + calc | |
| 50 | + _ = a*|∑ i, s i*(‖f i‖^2-‖g i‖^2)| := by | |
| 51 | + rw [← mul_sub,← Finset.sum_sub_distrib] | |
| 52 | + simp only [← mul_sub,abs_mul,abs_of_nonneg ha] | |
| 53 | + _ ≤ a*∑ i, |s i*(‖f i‖^2-‖g i‖^2)| := | |
| 54 | + mul_le_mul_of_nonneg_left (Finset.abs_sum_le_sum_abs _ _) ha | |
| 55 | + _ ≤ a*∑ i, (2*‖g i‖*‖f i-g i‖+‖f i-g i‖^2) := by | |
| 56 | + apply mul_le_mul_of_nonneg_left _ ha | |
| 57 | + apply Finset.sum_le_sum | |
| 58 | + intro i _ | |
| 59 | + rw [abs_mul] | |
| 60 | + exact (mul_le_of_le_one_left (abs_nonneg _) (hs i)).trans (norm_square_difference_le _ _) | |
| 61 | + _ = 2*(a*∑ i, ‖g i‖*‖f i-g i‖)+a*∑ i, ‖f i-g i‖^2 := by | |
| 62 | + simp only [Finset.sum_add_distrib, mul_assoc,← Finset.mul_sum] | |
| 63 | + ring | |
| 64 | + _ ≤ _ := by linarith | |
| 65 | + | |
| 66 | +lemma wideSignedMoment_error (Ihat : Character experimentN → ℂ) (ε : ℝ) (hε : 0≤ε) | |
| 67 | + (herr : (5760:ℝ)⁻¹*∑ χ : Character experimentN, ‖countingIntegral χ-Ihat χ‖^2 ≤ ε^2) : | |
| 68 | + |wideCorrelation-approxSignedMoment Ihat| ≤ | |
| 69 | + 2*Real.sqrt (approxDiagonalMoment Ihat)*ε+ε^2 := by | |
| 70 | + rw [counting_signed_energy] | |
| 71 | + exact finite_signed_moment_error countingIntegral Ihat (fun χ => (χ (-1)).re) | |
| 72 | + (fun χ => (Complex.abs_re_le_norm _).trans (χ.norm_le_one _)) | |
| 73 | + _ ε (by positivity) hε herr | |
| 74 | + | |
| 75 | +end ConditionalGoldbach | |
+137 −0 ConditionalGoldbach/Proofs/PoissonWeightedEnergy.lean added View file
| @@ -0,0 +1,137 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.HalfPlanePoisson | |
| 4 | +public import ConditionalGoldbach.Proofs.CharacterHalfPlane | |
| 5 | + | |
| 6 | +/-! Weighted Poisson contraction and its application to logarithmic-derivative energies. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +open scoped Topology ComplexConjugate BigOperators | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma poisson_weighted_integral_bound (F : ℝ → ℝ) (hc : Continuous F) | |
| 16 | + (hn : ∀ t, 0 ≤ F t) (hI : Integrable (fun t : ℝ => F t / (1+t^2))) | |
| 17 | + {ℓ : ℝ} (hℓ : 0 < ℓ) : | |
| 18 | + Integrable (fun t : ℝ => (∫ v : ℝ, poissonKernelReal ℓ (t-v)*F v) / (1+t^2)) ∧ | |
| 19 | + (∫ t : ℝ, (∫ v : ℝ, poissonKernelReal ℓ (t-v)*F v) / (1+t^2)) ≤ | |
| 20 | + (1+ℓ) * (∫ v : ℝ, F v / (1+v^2)) := by | |
| 21 | + let H (t v : ℝ) := poissonKernelReal ℓ (t-v)*F v / (1+t^2) | |
| 22 | + have hH (t v : ℝ) : H t v = (Real.pi * F v) * | |
| 23 | + (poissonKernelReal 1 t * poissonKernelReal ℓ (v-t)) := by | |
| 24 | + dsimp [H,poissonKernelReal] | |
| 25 | + rw [show (v-t)^2 = (t-v)^2 by ring] | |
| 26 | + field_simp | |
| 27 | + have hinner (v : ℝ) : Integrable (fun t : ℝ => H t v) ∧ | |
| 28 | + (∫ t : ℝ, H t v) = Real.pi * F v * poissonKernelReal (1+ℓ) v := by | |
| 29 | + obtain ⟨hi,he,hb⟩ := lemma_6_4_poisson_convolution ℓ hℓ v | |
| 30 | + constructor | |
| 31 | + · exact (hi.const_mul _).congr (Eventually.of_forall (fun t => (hH t v).symm)) | |
| 32 | + · simp_rw [hH] | |
| 33 | + rw [integral_const_mul] | |
| 34 | + exact congrArg (fun r : ℝ => Real.pi*F v*r) he | |
| 35 | + have hnon (t v : ℝ) : 0 ≤ H t v := by | |
| 36 | + dsimp [H] | |
| 37 | + exact div_nonneg (mul_nonneg (poissonKernelReal_bounds ℓ hℓ _).1 (hn v)) (by positivity) | |
| 38 | + have hb (v : ℝ) : Real.pi*F v*poissonKernelReal (1+ℓ) v ≤ (1+ℓ)*(F v/(1+v^2)) := by | |
| 39 | + have hh := mul_le_mul_of_nonneg_left (lemma_6_4_poisson_convolution ℓ hℓ v).2.2 | |
| 40 | + (mul_nonneg Real.pi_pos.le (hn v)) | |
| 41 | + convert hh using 1 | |
| 42 | + unfold poissonKernelReal | |
| 43 | + field_simp | |
| 44 | + have hj : Integrable (fun v : ℝ => Real.pi*F v*poissonKernelReal (1+ℓ) v) := by | |
| 45 | + refine (hI.const_mul (1+ℓ)).mono' ?_ ?_ | |
| 46 | + · exact ((continuous_const.mul hc).mul (poissonKernelReal_continuous (1+ℓ) (by positivity))).aestronglyMeasurable | |
| 47 | + · filter_upwards [] with v | |
| 48 | + rw [Real.norm_eq_abs, abs_of_nonneg (by | |
| 49 | + exact mul_nonneg (mul_nonneg Real.pi_pos.le (hn v)) (poissonKernelReal_bounds (1+ℓ) (by positivity) v).1)] | |
| 50 | + exact hb v | |
| 51 | + have hprod : Integrable (Function.uncurry H) (volume.prod volume) := by | |
| 52 | + apply (integrable_prod_iff' ?_).mpr | |
| 53 | + · constructor | |
| 54 | + · exact Eventually.of_forall (fun v => (hinner v).1) | |
| 55 | + · apply hj.congr | |
| 56 | + filter_upwards [] with v | |
| 57 | + rw [← (hinner v).2] | |
| 58 | + apply integral_congr_ae | |
| 59 | + filter_upwards [] with t | |
| 60 | + exact (Real.norm_of_nonneg (hnon t v)).symm | |
| 61 | + · apply Continuous.aestronglyMeasurable | |
| 62 | + change Continuous (fun p : ℝ×ℝ => poissonKernelReal ℓ (p.1-p.2)*F p.2 / (1+p.1^2)) | |
| 63 | + exact (((poissonKernelReal_continuous ℓ hℓ).comp (continuous_fst.sub continuous_snd)).mul | |
| 64 | + (hc.comp continuous_snd)).div (by fun_prop) (by intro p; positivity) | |
| 65 | + have he (t : ℝ) : (∫ v : ℝ, H t v) = (∫ v : ℝ, poissonKernelReal ℓ (t-v)*F v)/(1+t^2) := by | |
| 66 | + exact integral_div _ _ | |
| 67 | + refine ⟨hprod.integral_prod_left.congr (Eventually.of_forall he), ?_⟩ | |
| 68 | + simp_rw [← he] | |
| 69 | + rw [integral_integral_swap hprod] | |
| 70 | + simp_rw [(hinner _).2] | |
| 71 | + calc | |
| 72 | + _ ≤ ∫ v : ℝ, (1+ℓ)*(F v/(1+v^2)) := integral_mono hj (hI.const_mul _) hb | |
| 73 | + _ = _ := integral_const_mul _ _ | |
| 74 | + | |
| 75 | +lemma halfPlane_weighted_energy_shift (f : ℂ → ℂ) | |
| 76 | + (hd : ∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ f z) | |
| 77 | + (hg : ∀ R : ℝ, 0 ≤ R → ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, | |
| 78 | + ‖f (line x t)‖ ≤ C * (1 + |t|) ^ (1/2 : ℝ)) | |
| 79 | + (hb : ∃ R₀ B : ℝ, ∀ z : ℂ, R₀ ≤ z.re → ‖f z‖ ≤ B) | |
| 80 | + (hI : Integrable (fun t : ℝ => ‖f (line 0 t)‖ ^ 2 / (1+t^2))) | |
| 81 | + {ℓ : ℝ} (hℓ : 0 < ℓ) : | |
| 82 | + Integrable (fun t : ℝ => ‖f (line ℓ t)‖ ^ 2 / (1+t^2)) ∧ | |
| 83 | + (∫ t : ℝ, ‖f (line ℓ t)‖ ^ 2 / (1+t^2)) ≤ | |
| 84 | + (1+ℓ) * (∫ t : ℝ, ‖f (line 0 t)‖ ^ 2 / (1+t^2)) := by | |
| 85 | + have hc (x : ℝ) (hx : 0 ≤ x) : Continuous (fun t : ℝ => f (line x t)) := by | |
| 86 | + apply continuous_iff_continuousAt.mpr | |
| 87 | + intro t | |
| 88 | + exact (hd (line x t) (by simpa [line] using hx)).continuousAt.comp | |
| 89 | + (show ContinuousAt (fun t : ℝ => line x t) t by unfold line; fun_prop) | |
| 90 | + obtain ⟨hpi,hpe⟩ := poisson_weighted_integral_bound (fun t => ‖f (line 0 t)‖ ^ 2) | |
| 91 | + ((hc 0 le_rfl).norm.pow 2) (fun t => sq_nonneg _) hI hℓ | |
| 92 | + have hpoint (t : ℝ) : ‖f (line ℓ t)‖ ^ 2 / (1+t^2) ≤ | |
| 93 | + (∫ v : ℝ, poissonKernelReal ℓ (t-v)*‖f (line 0 v)‖ ^ 2)/(1+t^2) := | |
| 94 | + div_le_div_of_nonneg_right (halfPlane_poisson_square_bound f hd hg hb hI hℓ t).2 (by positivity) | |
| 95 | + have hi : Integrable (fun t : ℝ => ‖f (line ℓ t)‖ ^ 2 / (1+t^2)) := by | |
| 96 | + refine hpi.mono' (((hc ℓ hℓ.le).norm.pow 2).div (by fun_prop) (by intro t; positivity)).aestronglyMeasurable ?_ | |
| 97 | + filter_upwards [] with t | |
| 98 | + simpa only [Real.norm_eq_abs, abs_of_nonneg (by positivity : 0 ≤ ‖f (line ℓ t)‖ ^ 2 / (1+t^2))] using hpoint t | |
| 99 | + exact ⟨hi, (integral_mono hi hpi hpoint).trans hpe⟩ | |
| 100 | + | |
| 101 | +lemma logDerivative_energy_shift (N : ℕ) [NeZero N] (hN4 : 4 ≤ N) (hGRH : GRH N) | |
| 102 | + (χ : Character N) (hχ : χ ∈ oddCharacters N) (σ ℓ : ℝ) (hσ : 0 < σ) (hℓ : 0 ≤ ℓ) : | |
| 103 | + (∫ t : ℝ, ‖logDerivative χ (line (σ+ℓ) t)‖ ^ 2 / (1+t^2)) ≤ | |
| 104 | + (1+ℓ) * (∫ t : ℝ, ‖logDerivative χ (line σ t)‖ ^ 2 / (1+t^2)) := by | |
| 105 | + rcases hℓ.eq_or_lt with rfl | hℓ | |
| 106 | + · simp | |
| 107 | + have hg := shifted_logDerivative_growth N hN4 hGRH χ hχ hσ | |
| 108 | + have hg' : ∀ R : ℝ, 0 ≤ R → ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, | |
| 109 | + ‖logDerivative χ ((σ : ℂ)+line x t)‖ ≤ C*(1+|t|)^(1/2 : ℝ) := by | |
| 110 | + intro R hR | |
| 111 | + obtain ⟨C,hC,hg⟩ := hg R hR | |
| 112 | + refine ⟨C,hC,?_⟩ | |
| 113 | + intro x hx t | |
| 114 | + exact (hg x hx t).trans (mul_le_mul_of_nonneg_left | |
| 115 | + (Real.rpow_le_rpow_of_exponent_le (by nlinarith [abs_nonneg t] : 1 ≤ 1+|t|) (by norm_num : (1/4 : ℝ) ≤ 1/2)) hC) | |
| 116 | + have he (x t : ℝ) : (σ : ℂ)+line x t = line (σ+x) t := by unfold line; push_cast; ring | |
| 117 | + have hh := halfPlane_weighted_energy_shift (fun z => logDerivative χ ((σ : ℂ)+z)) | |
| 118 | + (shifted_logDerivative_holomorphic N hGRH χ hχ hσ) hg' | |
| 119 | + (by | |
| 120 | + refine ⟨1,3*(Real.log 4+4),?_⟩ | |
| 121 | + intro z hz | |
| 122 | + exact logDerivative_right_bound N χ _ (by simp only [add_re,ofReal_re]; linarith)) | |
| 123 | + (by simpa only [he,add_zero] using logDerivative_weighted_square_integrable N hN4 hGRH χ hχ σ hσ) hℓ | |
| 124 | + simpa only [he,add_zero] using hh.2 | |
| 125 | + | |
| 126 | +lemma averagedLogDerivative_shift (N : ℕ) [NeZero N] (hN4 : 4 ≤ N) (hGRH : GRH N) | |
| 127 | + (σ ℓ : ℝ) (hσ : 0 < σ) (hℓ : 0 ≤ ℓ) : | |
| 128 | + averagedLogDerivative N (σ+ℓ) ≤ (1+ℓ)*averagedLogDerivative N σ := by | |
| 129 | + unfold averagedLogDerivative | |
| 130 | + calc | |
| 131 | + _ ≤ (2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, | |
| 132 | + (1+ℓ)*(∫ t : ℝ, ‖logDerivative χ (line σ t)‖ ^ 2 / (1+t^2)) := | |
| 133 | + mul_le_mul_of_nonneg_left (Finset.sum_le_sum (fun χ hχ => | |
| 134 | + logDerivative_energy_shift N hN4 hGRH χ hχ σ ℓ hσ hℓ)) (by positivity) | |
| 135 | + _ = _ := by rw [← Finset.mul_sum]; ring | |
| 136 | + | |
| 137 | +end ConditionalGoldbach | |
+74 −0 ConditionalGoldbach/Proofs/PoleCharacterKernel.lean added View file
| @@ -0,0 +1,74 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.PoleLogDerivative | |
| 4 | + | |
| 5 | +/-! The exact leading quadratic singularity of the finite character kernel. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open Set Complex Filter | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma tendsto_real_add_nhdsNE (ρ : ℂ) : | |
| 15 | + Tendsto (fun x : ℝ => ρ+(x:ℂ)) (𝓝[>] 0) (𝓝[≠] ρ) := by | |
| 16 | + apply tendsto_nhdsWithin_iff.mpr | |
| 17 | + constructor | |
| 18 | + · have hc : Continuous (fun x : ℝ => ρ+(x:ℂ)) := by fun_prop | |
| 19 | + simpa using (hc.tendsto (0:ℝ)).mono_left nhdsWithin_le_nhds | |
| 20 | + · filter_upwards [self_mem_nhdsWithin] with x hx | |
| 21 | + change ρ+(x:ℂ) ≠ ρ | |
| 22 | + have hx0 : (x:ℂ) ≠ 0 := by exact_mod_cast (show x ≠ 0 from ne_of_gt hx) | |
| 23 | + simpa using hx0 | |
| 24 | + | |
| 25 | +lemma logDerivative_real_residue {N : ℕ} [NeZero N] (χ : Character N) (hχ : χ ≠ 1) (γ : ℝ) : | |
| 26 | + Tendsto (fun x : ℝ => (x:ℂ)*logDerivative χ (line x γ)) (𝓝[>] 0) | |
| 27 | + (𝓝 (analyticOrderNatAt χ.LFunction (line (1/2) γ):ℂ)) := by | |
| 28 | + let ρ : ℂ := line (1/2) γ | |
| 29 | + have ha := (χ.differentiable_LFunction hχ).analyticAt ρ | |
| 30 | + have hn := LFunction_analyticOrder_ne_top χ hχ ρ | |
| 31 | + have horder : meromorphicOrderAt χ.LFunction ρ = (analyticOrderNatAt χ.LFunction ρ:ℤ) := by | |
| 32 | + rw [ha.meromorphicOrderAt_eq,← Nat.cast_analyticOrderNatAt hn] | |
| 33 | + simp | |
| 34 | + have hh := (logDeriv_residue_tendsto ha.meromorphicAt _ horder).comp (tendsto_real_add_nhdsNE ρ) | |
| 35 | + have he : ∀x : ℝ, ρ+(x:ℂ) = 1/2+line x γ := by | |
| 36 | + intro x | |
| 37 | + dsimp [ρ,line] | |
| 38 | + push_cast | |
| 39 | + ring | |
| 40 | + convert hh using 1 | |
| 41 | + · funext x | |
| 42 | + change (x:ℂ)*logDeriv χ.LFunction (1/2+line x γ) = | |
| 43 | + (ρ+(x:ℂ)-ρ)*logDeriv χ.LFunction (ρ+(x:ℂ)) | |
| 44 | + rw [add_sub_cancel_left,he] | |
| 45 | + | |
| 46 | +lemma characterKernel_double_pole {N : ℕ} [NeZero N] (γ : ℝ) : | |
| 47 | + Tendsto (fun x : ℝ => (x:ℂ)^2*characterKernel N (line x γ) (conj (line x γ))) | |
| 48 | + (𝓝[>] 0) (𝓝 (poleCoefficient N γ:ℂ)) := by | |
| 49 | + have hterm : ∀χ ∈ oddCharacters N, | |
| 50 | + Tendsto (fun x : ℝ => (x:ℂ)^2*(logDerivative χ (line x γ)*conj (logDerivative χ (line x γ)))) | |
| 51 | + (𝓝[>] 0) (𝓝 ((analyticOrderNatAt χ.LFunction (line (1/2) γ):ℂ)^2)) := by | |
| 52 | + intro χ hχ | |
| 53 | + have hh := logDerivative_real_residue χ (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2) γ | |
| 54 | + have hc := hh.mul (Complex.continuous_conj.tendsto _ |>.comp hh) | |
| 55 | + convert hc using 1 | |
| 56 | + · funext x | |
| 57 | + change (x:ℂ)^2*(logDerivative χ (line x γ)*conj (logDerivative χ (line x γ))) = | |
| 58 | + ((x:ℂ)*logDerivative χ (line x γ))*conj ((x:ℂ)*logDerivative χ (line x γ)) | |
| 59 | + rw [map_mul,Complex.conj_ofReal] | |
| 60 | + ring | |
| 61 | + · simp | |
| 62 | + ring | |
| 63 | + have hsum := (tendsto_finsetSum (oddCharacters N) hterm).const_mul ((2:ℂ)/(N.totient:ℂ)) | |
| 64 | + convert hsum using 1 | |
| 65 | + · funext x | |
| 66 | + unfold characterKernel | |
| 67 | + simp only [Complex.conj_conj] | |
| 68 | + rw [← Finset.mul_sum] | |
| 69 | + ring | |
| 70 | + · unfold poleCoefficient | |
| 71 | + push_cast | |
| 72 | + rfl | |
| 73 | + | |
| 74 | +end ConditionalGoldbach | |
+71 −0 ConditionalGoldbach/Proofs/PoleDiagonalComparison.lean added View file
| @@ -0,0 +1,71 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.DensitySeries | |
| 4 | +public import Mathlib.NumberTheory.LSeries.Dirichlet | |
| 5 | +import Mathlib.Analysis.Complex.HalfPlane | |
| 6 | + | |
| 7 | +/-! A positive majorant for the diagonal term sufficient for the fixed-modulus obstruction. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators Topology | |
| 13 | +open Set Complex Filter | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +lemma mangoldt_abscissa_le_one : | |
| 17 | + LSeries.abscissaOfAbsConv (fun n : ℕ => (mangoldt n:ℂ)) ≤ 1 := by | |
| 18 | + apply LSeries.abscissaOfAbsConv_le_of_forall_lt_LSeriesSummable | |
| 19 | + intro y hy | |
| 20 | + exact ArithmeticFunction.LSeriesSummable_vonMangoldt (by simpa using hy) | |
| 21 | + | |
| 22 | +lemma deriv_logDeriv_zeta_eq_mangoldt_log {s : ℂ} (hs : 1 < s.re) : | |
| 23 | + deriv (logDeriv riemannZeta) s = | |
| 24 | + LSeries (LSeries.logMul (fun n : ℕ => (mangoldt n:ℂ))) s := by | |
| 25 | + have hab : LSeries.abscissaOfAbsConv (fun n : ℕ => (mangoldt n:ℂ)) < s.re := | |
| 26 | + mangoldt_abscissa_le_one.trans_lt (by exact_mod_cast hs) | |
| 27 | + have he : LSeries (fun n : ℕ => (mangoldt n:ℂ)) =ᶠ[𝓝 s] fun z => -logDeriv riemannZeta z := by | |
| 28 | + filter_upwards [(isOpen_re_gt 1).mem_nhds hs] with z hz | |
| 29 | + simpa only [logDeriv_apply,neg_div] using ArithmeticFunction.LSeries_vonMangoldt_eq_deriv_riemannZeta_div hz | |
| 30 | + have hd := he.deriv_eq | |
| 31 | + change deriv (LSeries (fun n : ℕ => (mangoldt n:ℂ))) s = deriv (-logDeriv riemannZeta) s at hd | |
| 32 | + rw [LSeries_deriv hab,deriv.neg] at hd | |
| 33 | + exact neg_injective hd.symm | |
| 34 | + | |
| 35 | +lemma diagonalSeries_real_le_zeta_second (N : ℕ) {w : ℝ} (hw : 0 < w) : | |
| 36 | + (diagonalSeries N (w:ℂ)).re ≤ (deriv (logDeriv riemannZeta) (1+(w:ℂ))).re := by | |
| 37 | + have hRe : 1 < (1+(w:ℂ)).re := by simpa using hw | |
| 38 | + have hab : LSeries.abscissaOfAbsConv (fun n : ℕ => (mangoldt n:ℂ)) < (1+(w:ℂ)).re := | |
| 39 | + mangoldt_abscissa_le_one.trans_lt (by exact_mod_cast hRe) | |
| 40 | + have hS := LSeriesSummable_logMul_of_lt_re hab | |
| 41 | + have hD : Summable (fun n : ℕ => if 0<n ∧ Nat.Coprime n N then | |
| 42 | + (mangoldt n:ℂ)^2/(n:ℂ)^(1+(w:ℂ)) else 0) := by | |
| 43 | + apply Summable.of_norm | |
| 44 | + simpa only [apply_ite norm,norm_zero] using diagonalSeries_summable N (w := (w:ℂ)) hw | |
| 45 | + rw [deriv_logDeriv_zeta_eq_mangoldt_log hRe,diagonalSeries,LSeries, | |
| 46 | + Complex.re_tsum hD,Complex.re_tsum hS] | |
| 47 | + apply Summable.tsum_le_tsum _ (Complex.reCLM.summable hD) (Complex.reCLM.summable hS) | |
| 48 | + intro n | |
| 49 | + by_cases hn : n = 0 | |
| 50 | + · subst n | |
| 51 | + simp [LSeries.term] | |
| 52 | + have hn0 : (0:ℝ) < n := by exact_mod_cast Nat.pos_of_ne_zero hn | |
| 53 | + have hn1 : (1:ℝ) ≤ n := by exact_mod_cast Nat.one_le_iff_ne_zero.mpr hn | |
| 54 | + have hΛ : 0 ≤ mangoldt n := ArithmeticFunction.vonMangoldt_nonneg | |
| 55 | + have hlog : 0 ≤ Real.log n := Real.log_nonneg hn1 | |
| 56 | + have hpow : (n:ℂ)^(1+(w:ℂ)) = (((n:ℝ)^(1+w):ℝ):ℂ) := by | |
| 57 | + simpa only [ofReal_natCast,ofReal_add,ofReal_one] using (Complex.ofReal_cpow hn0.le (1+w)).symm | |
| 58 | + have hclog : Complex.log (n:ℂ) = (Real.log n:ℂ) := by | |
| 59 | + rw [← Complex.ofReal_natCast,Complex.ofReal_log hn0.le] | |
| 60 | + rw [LSeries.term_of_ne_zero hn] | |
| 61 | + simp only [LSeries.logMul,hclog,hpow] | |
| 62 | + change (if 0<n ∧ Nat.Coprime n N then (mangoldt n:ℂ)^2/(((n:ℝ)^(1+w):ℝ):ℂ) else 0).re ≤ | |
| 63 | + (((Real.log n:ℂ)*(mangoldt n:ℂ))/(((n:ℝ)^(1+w):ℝ):ℂ)).re | |
| 64 | + by_cases hc : Nat.Coprime n N | |
| 65 | + · rw [ite_eq_left ⟨Nat.pos_of_ne_zero hn,hc⟩] | |
| 66 | + simp only [← ofReal_pow,← ofReal_mul,← ofReal_div,ofReal_re] | |
| 67 | + exact div_le_div_of_nonneg_right (by have hL : mangoldt n ≤ Real.log n := ArithmeticFunction.vonMangoldt_le_log; nlinarith) (by positivity) | |
| 68 | + · simp only [hc,and_false,ite_false,zero_re,← ofReal_mul,← ofReal_div,ofReal_re] | |
| 69 | + positivity | |
| 70 | + | |
| 71 | +end ConditionalGoldbach | |
+88 −0 ConditionalGoldbach/Proofs/PoleLogDerivative.lean added View file
| @@ -0,0 +1,88 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.CharacterZeroExpansion | |
| 4 | + | |
| 5 | +/-! Actual principal parts of logarithmic derivatives, with their multiplicities retained. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators Topology | |
| 11 | +open Set Complex Filter | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma logDeriv_principal_part {f : ℂ → ℂ} {c : ℂ} (hf : MeromorphicAt f c) | |
| 15 | + (n : ℤ) (hn : meromorphicOrderAt f c = n) : | |
| 16 | + ∃ h : ℂ → ℂ, AnalyticAt ℂ h c ∧ | |
| 17 | + logDeriv f =ᶠ[𝓝[≠] c] fun z => (n:ℂ)/(z-c)+h z := by | |
| 18 | + obtain ⟨g,hg,hg0,he⟩ := (meromorphicOrderAt_eq_int_iff hf).mp hn | |
| 19 | + refine ⟨logDeriv g,hg.deriv.div hg hg0,?_⟩ | |
| 20 | + have hge : ∀ᶠ z in 𝓝 c, g z ≠ 0 := hg.continuousAt.eventually_ne hg0 | |
| 21 | + have hde := logDeriv_congr_nhdsNE he | |
| 22 | + filter_upwards [hde,hg.eventually_analyticAt.filter_mono nhdsWithin_le_nhds, | |
| 23 | + hge.filter_mono nhdsWithin_le_nhds,eventually_mem_nhdsWithin] with z hz hgz hgn hzc | |
| 24 | + have hsub : z-c ≠ 0 := sub_ne_zero.mpr hzc | |
| 25 | + rw [hz] | |
| 26 | + change logDeriv (fun z => (z-c)^n*g z) z = _ | |
| 27 | + rw [logDeriv_fun_mul (f := fun z => (z-c)^n) (g := g) z (zpow_ne_zero _ hsub) hgn | |
| 28 | + ((differentiableAt_id.sub_const c).zpow (Or.inl hsub)) hgz.differentiableAt, | |
| 29 | + logDeriv_fun_zpow ((hasDerivAt_id' z).differentiableAt.sub_const c)] | |
| 30 | + rw [logDeriv_apply,((hasDerivAt_id' z).sub_const c).deriv] | |
| 31 | + ring | |
| 32 | + | |
| 33 | +lemma logDeriv_residue_tendsto {f : ℂ → ℂ} {c : ℂ} (hf : MeromorphicAt f c) | |
| 34 | + (n : ℤ) (hn : meromorphicOrderAt f c = n) : | |
| 35 | + Tendsto (fun z => (z-c)*logDeriv f z) (𝓝[≠] c) (𝓝 (n:ℂ)) := by | |
| 36 | + obtain ⟨h,hh,he⟩ := logDeriv_principal_part hf n hn | |
| 37 | + have hlim : Tendsto (fun z => (n:ℂ)+(z-c)*h z) (𝓝[≠] c) (𝓝 (n:ℂ)) := by | |
| 38 | + simpa using (tendsto_const_nhds.add ((tendsto_id.sub_const c).mul hh.continuousAt.tendsto)).mono_left nhdsWithin_le_nhds | |
| 39 | + apply hlim.congr' | |
| 40 | + filter_upwards [he,eventually_mem_nhdsWithin] with z hz hzc | |
| 41 | + rw [hz] | |
| 42 | + have hsub : z-c ≠ 0 := sub_ne_zero.mpr hzc | |
| 43 | + field_simp | |
| 44 | + | |
| 45 | +lemma deriv_logDeriv_double_pole_tendsto {f : ℂ → ℂ} {c : ℂ} (hf : MeromorphicAt f c) | |
| 46 | + (n : ℤ) (hn : meromorphicOrderAt f c = n) : | |
| 47 | + Tendsto (fun z => (z-c)^2*deriv (logDeriv f) z) (𝓝[≠] c) (𝓝 (-(n:ℂ))) := by | |
| 48 | + obtain ⟨h,hh,he⟩ := logDeriv_principal_part hf n hn | |
| 49 | + have hde := he.nhdsNE_deriv | |
| 50 | + have hlim : Tendsto (fun z => -(n:ℂ)+(z-c)^2*deriv h z) (𝓝[≠] c) (𝓝 (-(n:ℂ))) := by | |
| 51 | + simpa using (tendsto_const_nhds.add (((tendsto_id.sub_const c).pow 2).mul hh.deriv.continuousAt.tendsto)).mono_left nhdsWithin_le_nhds | |
| 52 | + apply hlim.congr' | |
| 53 | + filter_upwards [hde,hh.eventually_analyticAt.filter_mono nhdsWithin_le_nhds, | |
| 54 | + eventually_mem_nhdsWithin] with z hz hhz hzc | |
| 55 | + have hsub : z-c ≠ 0 := sub_ne_zero.mpr hzc | |
| 56 | + have hd := ((hasDerivAt_const z (n:ℂ)).div ((hasDerivAt_id' z).sub_const c) hsub).add hhz.differentiableAt.hasDerivAt | |
| 57 | + change HasDerivAt (fun w : ℂ => (n:ℂ)/(w-c)+h w) _ z at hd | |
| 58 | + rw [hz,hd.deriv] | |
| 59 | + field_simp | |
| 60 | + ring | |
| 61 | + | |
| 62 | +lemma LFunction_analyticOrder_ne_top {N : ℕ} [NeZero N] (χ : Character N) (hχ : χ ≠ 1) (ρ : ℂ) : | |
| 63 | + analyticOrderAt χ.LFunction ρ ≠ ⊤ := by | |
| 64 | + have ha : AnalyticOnNhd ℂ χ.LFunction univ := fun z _ => (χ.differentiable_LFunction hχ).analyticAt z | |
| 65 | + apply ha.analyticOrderAt_ne_top_of_isPreconnected isPreconnected_univ (x := 2) (by trivial) (by trivial) | |
| 66 | + rw [analyticOrderAt_eq_zero.mpr (Or.inr (χ.LFunction_ne_zero_of_one_le_re (Or.inl hχ) (by norm_num)))] | |
| 67 | + simp | |
| 68 | + | |
| 69 | +lemma LFunction_orderNat_pos_of_zero {N : ℕ} [NeZero N] (χ : Character N) (hχ : χ ≠ 1) | |
| 70 | + {ρ : ℂ} (hz : χ.LFunction ρ = 0) : 0 < analyticOrderNatAt χ.LFunction ρ := by | |
| 71 | + have hn := LFunction_analyticOrder_ne_top χ hχ ρ | |
| 72 | + have ha := (χ.differentiable_LFunction hχ).analyticAt ρ | |
| 73 | + by_contra h | |
| 74 | + have h0 : analyticOrderNatAt χ.LFunction ρ = 0 := Nat.eq_zero_of_not_pos h | |
| 75 | + have hc : analyticOrderAt χ.LFunction ρ = 0 := by rw [← Nat.cast_analyticOrderNatAt hn,h0]; rfl | |
| 76 | + exact ((analyticOrderAt_eq_zero.mp hc).resolve_left (not_not_intro ha)) hz | |
| 77 | + | |
| 78 | +lemma poleCoefficient_pos {N : ℕ} [NeZero N] (γ : ℝ) | |
| 79 | + (hzero : ∃ χ ∈ oddCharacters N, χ.LFunction (line (1/2) γ) = 0) : | |
| 80 | + 0 < poleCoefficient N γ := by | |
| 81 | + obtain ⟨χ,hχ,hz⟩ := hzero | |
| 82 | + have hm := LFunction_orderNat_pos_of_zero χ (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2) hz | |
| 83 | + have hmR : (0:ℝ) < analyticOrderNatAt χ.LFunction (line (1/2) γ) := by exact_mod_cast hm | |
| 84 | + unfold poleCoefficient | |
| 85 | + apply mul_pos (div_pos (by norm_num) (by exact_mod_cast Nat.totient_pos.mpr (NeZero.pos N))) | |
| 86 | + exact Finset.sum_pos' (fun _ _ => sq_nonneg _) ⟨χ,hχ,sq_pos_of_pos hmR⟩ | |
| 87 | + | |
| 88 | +end ConditionalGoldbach | |
+124 −0 ConditionalGoldbach/Proofs/PoleLowerBound.lean added View file
| @@ -0,0 +1,124 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.PoleCharacterKernel | |
| 4 | +public import ConditionalGoldbach.Proofs.PoleDiagonalComparison | |
| 5 | +public import ConditionalGoldbach.Proofs.PoleZeta | |
| 6 | +public import ConditionalGoldbach.Proofs.PoleModel | |
| 7 | +public import ConditionalGoldbach.Proofs.VariableStripOperators | |
| 8 | + | |
| 9 | +/-! A convergent scalar lower bound for the varying-strip residual operator. -/ | |
| 10 | +@[expose] public section | |
| 11 | + | |
| 12 | +set_option autoImplicit false | |
| 13 | +noncomputable section | |
| 14 | +open scoped BigOperators ComplexConjugate Topology | |
| 15 | +open Set Complex Filter | |
| 16 | +namespace ConditionalGoldbach | |
| 17 | + | |
| 18 | +def poleLowerExpression (N : ℕ) [NeZero N] (γ x : ℝ) : ℝ := | |
| 19 | + 2*Real.log N*((x:ℂ)^2*(characterKernel N (line x γ) (conj (line x γ))- | |
| 20 | + deriv (logDeriv riemannZeta) (1+2*(x:ℂ))- | |
| 21 | + continuedModel N (line x γ) (conj (line x γ)))).re / ((1+x)^2+γ^2) | |
| 22 | + | |
| 23 | +lemma poleLowerExpression_tendsto (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) (γ : ℝ) : | |
| 24 | + Tendsto (poleLowerExpression N γ) (𝓝[>] 0) | |
| 25 | + (𝓝 (2*poleCoefficient N γ*Real.log N/(1+γ^2))) := by | |
| 26 | + have hP := characterKernel_double_pole (N := N) γ | |
| 27 | + have hD := zeta_logDeriv_deriv_double_pole | |
| 28 | + have hK := continuedModel_double_pole N hN (by omega) γ | |
| 29 | + have hA := Complex.continuous_re.tendsto _ |>.comp ((hP.sub hD).sub hK) | |
| 30 | + have hB : Tendsto (fun x : ℝ => (1+x)^2+γ^2) (𝓝[>] 0) (𝓝 (1+γ^2)) := by | |
| 31 | + have hc : Continuous (fun x : ℝ => (1+x)^2+γ^2) := by fun_prop | |
| 32 | + simpa using (hc.tendsto 0).mono_left nhdsWithin_le_nhds | |
| 33 | + have hh := (hA.const_mul (2*Real.log N)).div hB (by positivity : 1+γ^2 ≠ 0) | |
| 34 | + convert hh using 1 | |
| 35 | + · funext x | |
| 36 | + unfold poleLowerExpression | |
| 37 | + congr 2 | |
| 38 | + rw [mul_sub,mul_sub] | |
| 39 | + rfl | |
| 40 | + · norm_num | |
| 41 | + ring | |
| 42 | + | |
| 43 | +lemma residual_real_lower_bound (N : ℕ) [NeZero N] {x : ℝ} (hx : 0 < x) (γ : ℝ) : | |
| 44 | + (characterKernel N (line x γ) (conj (line x γ))- | |
| 45 | + deriv (logDeriv riemannZeta) (1+2*(x:ℂ))- | |
| 46 | + continuedModel N (line x γ) (conj (line x γ))).re ≤ | |
| 47 | + ‖residual N (line x γ) (conj (line x γ))‖ := by | |
| 48 | + have hD := diagonalSeries_real_le_zeta_second N (w := 2*x) (by positivity) | |
| 49 | + have he : line x γ+conj (line x γ) = 2*(x:ℂ) := by simp [line]; ring | |
| 50 | + have hr := Complex.re_le_norm (residual N (line x γ) (conj (line x γ))) | |
| 51 | + simp only [residual,sub_re,he] at hr | |
| 52 | + push_cast at hD | |
| 53 | + simp only [sub_re,residual,he] | |
| 54 | + linarith | |
| 55 | + | |
| 56 | +lemma poleLowerExpression_le_scaled_operator (N : ℕ) [NeZero N] (hN4 : 4 ≤ N) | |
| 57 | + (hGRH : GRH N) (γ c : ℝ) (hc : 0 < c) (hcsmall : c < Real.log N/24) | |
| 58 | + (ha : alpha N c < beta) : | |
| 59 | + poleLowerExpression N γ (2*alpha N c) ≤ c*‖residualOperator ha N‖ := by | |
| 60 | + let a : ℝ := alpha N c | |
| 61 | + have hlog : 0 < Real.log N := Real.log_pos (by exact_mod_cast (show 1<N by omega)) | |
| 62 | + have ha0 : 0 < a := alpha_pos_at N hN4 c hc | |
| 63 | + have ha24 : a < 1/24 := by | |
| 64 | + dsimp [a,alpha] | |
| 65 | + exact (div_lt_iff₀ hlog).mpr (by linarith) | |
| 66 | + have hs : line (2*a) γ ∈ strip a beta := by | |
| 67 | + change a < (line (2*a) γ).re ∧ (line (2*a) γ).re < beta | |
| 68 | + simp only [line,add_re,ofReal_re,mul_re,I_re,I_im,ofReal_im,mul_zero,zero_mul,sub_zero,add_zero] | |
| 69 | + unfold beta | |
| 70 | + constructor <;> linarith | |
| 71 | + have hd : pointDistance a beta (line (2*a) γ) = a := by | |
| 72 | + unfold pointDistance beta | |
| 73 | + simp only [line,add_re,ofReal_re,mul_re,I_re,I_im,ofReal_im,mul_zero,zero_mul,sub_zero,add_zero] | |
| 74 | + rw [min_eq_left (by linarith)] | |
| 75 | + ring | |
| 76 | + have hp := residualOperator_pairing_at a N ha0 hN4 hGRH ha _ _ hs hs | |
| 77 | + have hb := residual_norm_le_of_kernel_pairing ha ha0.le N (residualOperator ha N) _ _ hs hs hp | |
| 78 | + rw [hd,show a*a=a^2 by ring,Real.sqrt_sq ha0.le] at hb | |
| 79 | + have hnorm : ‖1+line (2*a) γ‖^2 = (1+2*a)^2+γ^2 := by | |
| 80 | + rw [← Complex.normSq_eq_norm_sq] | |
| 81 | + simp [Complex.normSq_apply,line,pow_two] | |
| 82 | + have hden : 0 < (1+2*a)^2+γ^2 := by positivity | |
| 83 | + have hl := residual_real_lower_bound N (x := 2*a) (by positivity) γ | |
| 84 | + have hA : ((2*a:ℝ):ℂ)^2 = (((2*a)^2:ℝ):ℂ) := by simp | |
| 85 | + unfold poleLowerExpression | |
| 86 | + change 2*Real.log N*(((2*a:ℝ):ℂ)^2*(_)).re/((1+2*a)^2+γ^2) ≤ _ | |
| 87 | + rw [hA,Complex.re_ofReal_mul] | |
| 88 | + have hb' : ‖residual N (line (2*a) γ) (conj (line (2*a) γ))‖ ≤ | |
| 89 | + ‖residualOperator ha N‖*((1+2*a)^2+γ^2)/(8*a) := by | |
| 90 | + convert hb using 1 | |
| 91 | + rw [mul_assoc,← pow_two,hnorm] | |
| 92 | + calc | |
| 93 | + _ ≤ 2*Real.log N*((2*a)^2*‖residual N (line (2*a) γ) (conj (line (2*a) γ))‖)/((1+2*a)^2+γ^2) := by gcongr | |
| 94 | + _ ≤ 2*Real.log N*((2*a)^2*(‖residualOperator ha N‖*((1+2*a)^2+γ^2)/(8*a)))/((1+2*a)^2+γ^2) := by gcongr | |
| 95 | + _ = c*‖residualOperator ha N‖ := by | |
| 96 | + have hac : a*Real.log N = c := div_mul_cancel₀ c hlog.ne' | |
| 97 | + calc | |
| 98 | + _ = (a*Real.log N)*‖residualOperator ha N‖ := by field_simp; ring | |
| 99 | + _ = _ := by rw [hac] | |
| 100 | + | |
| 101 | +lemma residualOperator_pole_liminf (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) | |
| 102 | + (hGRH : GRH N) (γ : ℝ) : | |
| 103 | + ∀ ε : ℝ, 0 < ε → ∃ c₀ : ℝ, 0 < c₀ ∧ ∀ c : ℝ, 0 < c → c < c₀ → | |
| 104 | + ∀ ha : alpha N c < beta, | |
| 105 | + 2*poleCoefficient N γ*Real.log N/(1+γ^2)-ε ≤ c*‖residualOperator ha N‖ := by | |
| 106 | + have hlog : 0 < Real.log N := Real.log_pos (by exact_mod_cast (show 1<N by omega)) | |
| 107 | + have hmap : Tendsto (fun c : ℝ => 2*alpha N c) (𝓝[>] 0) (𝓝[>] 0) := by | |
| 108 | + apply tendsto_nhdsWithin_iff.mpr | |
| 109 | + constructor | |
| 110 | + · have hc : Continuous (fun c : ℝ => 2*alpha N c) := by unfold alpha; fun_prop | |
| 111 | + simpa [alpha] using (hc.tendsto 0).mono_left nhdsWithin_le_nhds | |
| 112 | + · filter_upwards [self_mem_nhdsWithin] with c hc | |
| 113 | + exact mul_pos two_pos (alpha_pos_at N hN4 c hc) | |
| 114 | + have hF := (poleLowerExpression_tendsto N hN hN4 γ).comp hmap | |
| 115 | + intro ε hε | |
| 116 | + have he := hF.eventually (eventually_gt_nhds (sub_lt_self _ hε)) | |
| 117 | + obtain ⟨δ,hδ,hbound⟩ := mem_nhdsGT_iff_exists_Ioo_subset.mp he | |
| 118 | + refine ⟨min δ (Real.log N/24),lt_min hδ (by positivity),?_⟩ | |
| 119 | + intro c hc hcδ ha | |
| 120 | + exact (hbound ⟨hc,lt_of_lt_of_le hcδ (min_le_left _ _)⟩).le.trans | |
| 121 | + (poleLowerExpression_le_scaled_operator N hN4 hGRH γ c hc | |
| 122 | + (lt_of_lt_of_le hcδ (min_le_right _ _)) ha) | |
| 123 | + | |
| 124 | +end ConditionalGoldbach | |
+87 −0 ConditionalGoldbach/Proofs/PoleModel.lean added View file
| @@ -0,0 +1,87 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.BaselineProductLink | |
| 4 | +public import Mathlib.NumberTheory.Harmonic.ZetaAsymp | |
| 5 | +import Mathlib.Analysis.Complex.HalfPlane | |
| 6 | + | |
| 7 | +/-! The negative quadratic principal part of the continued arithmetic model. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped BigOperators ComplexConjugate Topology | |
| 13 | +open Set Complex Filter | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +lemma gammaQuotient_differentiableAt_zero_real {s : ℂ} (hs : s.re = 0) : | |
| 17 | + DifferentiableAt ℂ gammaQuotient s := by | |
| 18 | + have ha : 0 < ((3/2-s)/2).re := by norm_num [hs] | |
| 19 | + have hb : 0 < ((3/2+s)/2).re := by norm_num [hs] | |
| 20 | + unfold gammaQuotient | |
| 21 | + exact ((hasDerivAt_Gamma_of_re_pos ha).differentiableAt.comp s (by fun_prop)).div | |
| 22 | + ((hasDerivAt_Gamma_of_re_pos hb).differentiableAt.comp s (by fun_prop)) | |
| 23 | + (Gamma_ne_zero_of_re_pos hb) | |
| 24 | + | |
| 25 | +lemma gammaQuotient_imaginary_product (γ : ℝ) : | |
| 26 | + gammaQuotient (line 0 γ)*gammaQuotient (conj (line 0 γ)) = 1 := by | |
| 27 | + have he : conj (line 0 γ) = -line 0 γ := by simp [line] | |
| 28 | + have ha : Gamma ((3/2-line 0 γ)/2) ≠ 0 := Gamma_ne_zero_of_re_pos (by norm_num [line]) | |
| 29 | + have hb : Gamma ((3/2+line 0 γ)/2) ≠ 0 := Gamma_ne_zero_of_re_pos (by norm_num [line]) | |
| 30 | + rw [he] | |
| 31 | + unfold gammaQuotient | |
| 32 | + rw [sub_neg_eq_add,← sub_eq_add_neg] | |
| 33 | + rw [div_mul_div_comm,mul_comm (Gamma ((3/2+line 0 γ)/2)) (Gamma ((3/2-line 0 γ)/2)),div_self (mul_ne_zero ha hb)] | |
| 34 | + | |
| 35 | +lemma continuedModel_double_pole (N : ℕ) (hN : Even N) (hpos : 0 < N) (γ : ℝ) : | |
| 36 | + Tendsto (fun x : ℝ => (x:ℂ)^2*continuedModel N (line x γ) (conj (line x γ))) | |
| 37 | + (𝓝[>] 0) (𝓝 (-1/4:ℂ)) := by | |
| 38 | + let F : ℝ → ℂ := fun x => (-1/4:ℂ)*(singularSeries N:ℂ)* | |
| 39 | + ((Real.pi:ℂ)/N)^(2*(x:ℂ))*baselineProductR N (2*(x:ℂ))* | |
| 40 | + riemannZeta₁ (1+2*(x:ℂ))*riemannZeta₁ (1-2*(x:ℂ))* | |
| 41 | + gammaQuotient (line x γ)*gammaQuotient (conj (line x γ)) | |
| 42 | + have hB : ContinuousAt (baselineProductR N) 0 := | |
| 43 | + ((baselineProductR_differentiableOn N).differentiableAt (x := (0:ℂ)) | |
| 44 | + ((isOpen_re_gt (-(1/4:ℝ))).mem_nhds (show -(1/4:ℝ)<(0:ℂ).re by norm_num))).continuousAt | |
| 45 | + have hG : ContinuousAt gammaQuotient (line 0 γ) := | |
| 46 | + (gammaQuotient_differentiableAt_zero_real (s := line 0 γ) (by simp [line])).continuousAt | |
| 47 | + have hG' : ContinuousAt gammaQuotient (conj (line 0 γ)) := | |
| 48 | + (gammaQuotient_differentiableAt_zero_real (s := conj (line 0 γ)) (by simp [line])).continuousAt | |
| 49 | + have hbase : (Real.pi:ℂ)/(N:ℂ) ≠ 0 := div_ne_zero | |
| 50 | + (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero) (by exact_mod_cast hpos.ne') | |
| 51 | + have hF : ContinuousAt F 0 := by | |
| 52 | + have hcp : ContinuousAt (fun x : ℝ => ((Real.pi:ℂ)/N)^(2*(x:ℂ))) 0 := | |
| 53 | + (by fun_prop : ContinuousAt (fun x : ℝ => 2*(x:ℂ)) 0).const_cpow (Or.inl hbase) | |
| 54 | + have hBb : ContinuousAt (fun x : ℝ => baselineProductR N (2*(x:ℂ))) 0 := | |
| 55 | + (show ContinuousAt (baselineProductR N) (2*((0:ℝ):ℂ)) by simpa using hB).comp | |
| 56 | + (f := fun x : ℝ => 2*(x:ℂ)) (by fun_prop) | |
| 57 | + have hZp : ContinuousAt (fun x : ℝ => riemannZeta₁ (1+2*(x:ℂ))) 0 := | |
| 58 | + differentiable_riemannZeta₁.continuous.continuousAt.comp (by fun_prop) | |
| 59 | + have hZm : ContinuousAt (fun x : ℝ => riemannZeta₁ (1-2*(x:ℂ))) 0 := | |
| 60 | + differentiable_riemannZeta₁.continuous.continuousAt.comp (by fun_prop) | |
| 61 | + exact (((((continuousAt_const.mul continuousAt_const).mul hcp).mul hBb).mul hZp).mul hZm).mul | |
| 62 | + (hG.comp (f := fun x : ℝ => line x γ) (by unfold line; fun_prop)) |>.mul | |
| 63 | + (hG'.comp (f := fun x : ℝ => conj (line x γ)) (by unfold line; fun_prop)) | |
| 64 | + have hF0 : F 0 = (-1/4:ℂ) := by | |
| 65 | + dsimp [F] | |
| 66 | + simp only [mul_zero,sub_zero,add_zero,cpow_zero,mul_one,riemannZeta₁_one] | |
| 67 | + calc | |
| 68 | + _ = (-1/4:ℂ)*((singularSeries N:ℂ)*baselineProductR N 0)* | |
| 69 | + (gammaQuotient (line 0 γ)*gammaQuotient (conj (line 0 γ))) := by ring | |
| 70 | + _ = _ := by rw [baselineProductR_zero N hN hpos,gammaQuotient_imaginary_product]; ring | |
| 71 | + rw [← hF0] | |
| 72 | + apply hF.tendsto.mono_left nhdsWithin_le_nhds |>.congr' | |
| 73 | + filter_upwards [self_mem_nhdsWithin] with x hx | |
| 74 | + have hx0 : (x:ℂ) ≠ 0 := by exact_mod_cast (show x ≠ 0 from ne_of_gt hx) | |
| 75 | + have he : line x γ+conj (line x γ) = 2*(x:ℂ) := by simp [line]; ring | |
| 76 | + have he' : 1-line x γ-conj (line x γ) = 1-2*(x:ℂ) := by rw [sub_sub,he] | |
| 77 | + have hp : 1+2*(x:ℂ) ≠ (1:ℂ) := by simp [hx0] | |
| 78 | + have hm : 1-2*(x:ℂ) ≠ (1:ℂ) := by simp [hx0] | |
| 79 | + unfold continuedModel | |
| 80 | + rw [he,he',densityEulerProduct_eq_zeta_baseline N hN hpos (by simp; exact hx), | |
| 81 | + riemannZeta_eq_inv_sub_mul hp,riemannZeta_eq_inv_sub_mul hm] | |
| 82 | + dsimp [F] | |
| 83 | + simp only [add_sub_cancel_left,sub_sub_cancel_left] | |
| 84 | + field_simp | |
| 85 | + ring | |
| 86 | + | |
| 87 | +end ConditionalGoldbach | |
+45 −0 ConditionalGoldbach/Proofs/PoleObstruction.lean added View file
| @@ -0,0 +1,45 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.PoleLowerBound | |
| 4 | +public import ConditionalGoldbach.Proofs.PoleSpectralObstruction | |
| 5 | + | |
| 6 | +/-! The paper's fixed-modulus obstruction, including its sharp leading constant. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped Topology | |
| 12 | +open Set Filter | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +theorem proposition_A_4 (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) | |
| 16 | + (hGRH : GRH N) (γ : ℝ) | |
| 17 | + (hzero : ∃ χ ∈ oddCharacters N, χ.LFunction (line (1 / 2) γ) = 0) : | |
| 18 | + 0 < poleCoefficient N γ ∧ | |
| 19 | + (∀ ε : ℝ, 0 < ε → ∃ c₀ : ℝ, 0 < c₀ ∧ ∀ c : ℝ, 0 < c → c < c₀ → | |
| 20 | + ∀ ha : alpha N c < beta, | |
| 21 | + 2 * poleCoefficient N γ * Real.log N / (1 + γ ^ 2) - ε ≤ c * ‖residualOperator ha N‖) ∧ | |
| 22 | + (∃ z c₀ : ℝ, 0 < z ∧ 0 < c₀ ∧ c₀ ≤ Real.log N / 24 ∧ | |
| 23 | + ∀ c : ℝ, 0 < c → c < c₀ → ∀ ha : alpha N c < beta, | |
| 24 | + z / c ≤ ‖residualOperator ha N‖ ∧ ¬SpectralR N (alpha N c) ha ∧ | |
| 25 | + ∀ η : ℝ, 0 < η → η ≤ 1 / 4 → SpectralZeroFree N (alpha N c) ha η → | |
| 26 | + η ≤ spectralScale N ^ 2 * c ^ 2 / (3 * z ^ 2)) := by | |
| 27 | + have hC := poleCoefficient_pos γ hzero | |
| 28 | + have hlim := residualOperator_pole_liminf N hN hN4 hGRH γ | |
| 29 | + refine ⟨hC,hlim,?_⟩ | |
| 30 | + let A : ℝ := 2*poleCoefficient N γ*Real.log N/(1+γ^2) | |
| 31 | + have hlog : 0 < Real.log N := Real.log_pos (by exact_mod_cast (show 1<N by omega)) | |
| 32 | + have hA : 0 < A := by dsimp [A]; positivity | |
| 33 | + obtain ⟨c₀,hc₀,hbound⟩ := hlim (A/2) (by positivity) | |
| 34 | + have hlower : ∀c : ℝ, 0<c → c<c₀ → ∀ha : alpha N c<beta, | |
| 35 | + (A/2)/c ≤ ‖residualOperator ha N‖ := by | |
| 36 | + intro c hc hcsmall ha | |
| 37 | + apply (div_le_iff₀ hc).mpr | |
| 38 | + have hh := hbound c hc hcsmall ha | |
| 39 | + change A-A/2 ≤ c*‖residualOperator ha N‖ at hh | |
| 40 | + nlinarith | |
| 41 | + obtain ⟨c₁,hc₁,hc₁small,hobs⟩ := pole_spectral_obstruction N hN4 hGRH (A/2) c₀ | |
| 42 | + (by positivity) hc₀ hlower | |
| 43 | + exact ⟨A/2,c₁,by positivity,hc₁,hc₁small,hobs⟩ | |
| 44 | + | |
| 45 | +end ConditionalGoldbach | |
+65 −0 ConditionalGoldbach/Proofs/PoleSpectralObstruction.lean added View file
| @@ -0,0 +1,65 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.VariableQuadratic | |
| 4 | + | |
| 5 | +/-! The spectral consequences of the genuine pole lower bound, with the original constants. -/ | |
| 6 | +public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators ComplexConjugate Topology | |
| 11 | +open MeasureTheory Filter Set Complex | |
| 12 | +namespace ConditionalGoldbach | |
| 13 | + | |
| 14 | +lemma pole_spectral_obstruction (N : ℕ) [NeZero N] (hN4 : 4 ≤ N) (hGRH : GRH N) | |
| 15 | + (z c₀ : ℝ) (hz : 0 < z) (hc₀ : 0 < c₀) | |
| 16 | + (hlower : ∀ c : ℝ, 0 < c → c < c₀ → ∀ ha : alpha N c < beta, | |
| 17 | + z/c ≤ ‖residualOperator ha N‖) : | |
| 18 | + ∃ c₁ : ℝ, 0 < c₁ ∧ c₁ ≤ Real.log N / 24 ∧ | |
| 19 | + ∀ c : ℝ, 0 < c → c < c₁ → ∀ ha : alpha N c < beta, | |
| 20 | + z/c ≤ ‖residualOperator ha N‖ ∧ ¬SpectralR N (alpha N c) ha ∧ | |
| 21 | + ∀ η : ℝ, 0 < η → η ≤ 1/4 → SpectralZeroFree N (alpha N c) ha η → | |
| 22 | + η ≤ spectralScale N^2*c^2/(3*z^2) := by | |
| 23 | + have hlog : 0 < Real.log N := Real.log_pos (by exact_mod_cast (show 1<N by omega)) | |
| 24 | + have hscale : 0 < spectralScale N := spectralScale_pos N | |
| 25 | + (by exact_mod_cast (show 0<N by omega)) (singularSeries_pos N) hlog | |
| 26 | + let c₁ := min c₀ (min (Real.log N/24) (z/(spectralScale N+1))) | |
| 27 | + have hc₁ : 0 < c₁ := lt_min hc₀ (lt_min (by positivity) (by positivity)) | |
| 28 | + refine ⟨c₁,hc₁,(min_le_right _ _).trans (min_le_left _ _),?_⟩ | |
| 29 | + intro c hc hcc ha | |
| 30 | + have hcc₀ : c < c₀ := hcc.trans_le (min_le_left _ _) | |
| 31 | + have hcz : c < z/(spectralScale N+1) := | |
| 32 | + hcc.trans_le ((min_le_right _ _).trans (min_le_right _ _)) | |
| 33 | + have hbound := hlower c hc hcc₀ ha | |
| 34 | + have hdict := variable_spectral_dictionary (alpha N c) (alpha_pos_at N hN4 c hc) N hN4 hGRH ha | |
| 35 | + have hlarge : spectralScale N < z/c := by | |
| 36 | + apply (lt_div_iff₀ hc).mpr | |
| 37 | + have hh := (lt_div_iff₀ (by positivity : 0 < spectralScale N+1)).mp hcz | |
| 38 | + nlinarith only [hh, hc] | |
| 39 | + refine ⟨hbound,fun hR => (not_lt_of_ge (hbound.trans (hdict.1.mp hR))) hlarge,?_⟩ | |
| 40 | + intro η hη hη4 hzero | |
| 41 | + have hη1 : 0 < 1-η := by linarith | |
| 42 | + have hprod : 0 < η*(1-η) := mul_pos hη hη1 | |
| 43 | + have hden : 0 < 2*Real.sqrt (η*(1-η)) := by positivity | |
| 44 | + have hupper := (hdict.2 η hη (by linarith)).mp hzero | |
| 45 | + have hmain : z*(2*Real.sqrt (η*(1-η))) ≤ spectralScale N*c := | |
| 46 | + (div_le_div_iff₀ hc hden).mp (hbound.trans hupper) | |
| 47 | + have hsq := mul_self_le_mul_self (by positivity : 0 ≤ z*(2*Real.sqrt (η*(1-η)))) hmain | |
| 48 | + have hsqrt := Real.sq_sqrt hprod.le | |
| 49 | + have hsquared : 4*z^2*(η*(1-η)) ≤ spectralScale N^2*c^2 := by | |
| 50 | + calc | |
| 51 | + _ = (z*(2*Real.sqrt (η*(1-η))))*(z*(2*Real.sqrt (η*(1-η)))) := by | |
| 52 | + calc | |
| 53 | + _ = z ^ 2 * (2 * Real.sqrt (η * (1 - η))) ^ 2 := by | |
| 54 | + rw [mul_pow, hsqrt] | |
| 55 | + ring | |
| 56 | + _ = _ := by ring | |
| 57 | + _ ≤ (spectralScale N*c)*(spectralScale N*c) := hsq | |
| 58 | + _ = _ := by ring | |
| 59 | + have hηsmall : 3*z^2*η ≤ 4*z^2*(η*(1-η)) := by | |
| 60 | + nlinarith only [mul_nonneg (by positivity : 0 ≤ z^2*η) | |
| 61 | + (show 0 ≤ 1-4*η by linarith only [hη4])] | |
| 62 | + apply (le_div_iff₀ (by positivity : 0 < 3*z^2)).mpr | |
| 63 | + simpa only [mul_comm η] using hηsmall.trans hsquared | |
| 64 | + | |
| 65 | +end ConditionalGoldbach | |
+43 −0 ConditionalGoldbach/Proofs/PoleZeta.lean added View file
| @@ -0,0 +1,43 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.PoleLogDerivative | |
| 4 | +public import ConditionalGoldbach.Proofs.DensityResidue | |
| 5 | +public import Mathlib.NumberTheory.Harmonic.ZetaAsymp | |
| 6 | + | |
| 7 | +/-! The double pole of the derivative of zeta's logarithmic derivative. -/ | |
| 8 | +public section | |
| 9 | + | |
| 10 | +set_option autoImplicit false | |
| 11 | +noncomputable section | |
| 12 | +open scoped Topology | |
| 13 | +open Set Complex Filter | |
| 14 | +namespace ConditionalGoldbach | |
| 15 | + | |
| 16 | +lemma riemannZeta_order_one : meromorphicOrderAt riemannZeta 1 = (-1:ℤ) := by | |
| 17 | + apply (meromorphicOrderAt_eq_int_iff (riemannZeta_meromorphicAt_re_pos (by norm_num))).mpr | |
| 18 | + refine ⟨riemannZeta₁,differentiable_riemannZeta₁.analyticAt 1,by simp,?_⟩ | |
| 19 | + filter_upwards [eventually_mem_nhdsWithin] with z hz | |
| 20 | + simpa only [zpow_neg_one,smul_eq_mul] using riemannZeta_eq_inv_sub_mul hz | |
| 21 | + | |
| 22 | +lemma zeta_logDeriv_deriv_double_pole : | |
| 23 | + Tendsto (fun x : ℝ => (x:ℂ)^2*deriv (logDeriv riemannZeta) (1+2*(x:ℂ))) | |
| 24 | + (𝓝[>] 0) (𝓝 (1/4:ℂ)) := by | |
| 25 | + have hmap : Tendsto (fun x : ℝ => (1:ℂ)+2*(x:ℂ)) (𝓝[>] 0) (𝓝[≠] (1:ℂ)) := by | |
| 26 | + apply tendsto_nhdsWithin_iff.mpr | |
| 27 | + constructor | |
| 28 | + · have hc : Continuous (fun x : ℝ => (1:ℂ)+2*(x:ℂ)) := by fun_prop | |
| 29 | + simpa using (hc.tendsto (0:ℝ)).mono_left nhdsWithin_le_nhds | |
| 30 | + · filter_upwards [self_mem_nhdsWithin] with x hx | |
| 31 | + change (1:ℂ)+2*(x:ℂ) ≠ 1 | |
| 32 | + have hx0 : (x:ℂ) ≠ 0 := by exact_mod_cast (show x ≠ 0 from ne_of_gt hx) | |
| 33 | + simp [hx0] | |
| 34 | + have hh := (deriv_logDeriv_double_pole_tendsto | |
| 35 | + (riemannZeta_meromorphicAt_re_pos (by norm_num)) (-1) riemannZeta_order_one).comp hmap | |
| 36 | + have hlim := hh.const_mul (1/4:ℂ) | |
| 37 | + convert hlim using 1 | |
| 38 | + · funext x | |
| 39 | + simp only [Function.comp_def] | |
| 40 | + ring | |
| 41 | + · norm_num | |
| 42 | + | |
| 43 | +end ConditionalGoldbach | |
+61 −0 ConditionalGoldbach/Proofs/PrimePairs.lean added View file
| @@ -0,0 +1,61 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.Main | |
| 4 | +public import ConditionalGoldbach.Proofs.Asymptotics | |
| 5 | +public import ConditionalGoldbach.Proofs.PrimePowers | |
| 6 | + | |
| 7 | +/-! The paper's unnumbered prime-pair consequence, combining prime-power removal, | |
| 8 | +counting inequalities, and the proved conditional asymptotic in Theorem 1.1. -/ | |
| 9 | +public section | |
| 10 | + | |
| 11 | +set_option autoImplicit false | |
| 12 | +noncomputable section | |
| 13 | +open scoped Topology | |
| 14 | +open Filter | |
| 15 | +namespace ConditionalGoldbach | |
| 16 | + | |
| 17 | +theorem primePair_consequence (φ : ℝ → ℝ) (hφ : IsWeight φ) | |
| 18 | + (hGRH : EvenEventually GRH) (hSpectral : HypothesisR ∨ ∃ h, HypothesisS h) : | |
| 19 | + ∃ C : ℝ, 0 < C ∧ EvenEventually (fun N => | |
| 20 | + C * singularSeries N * N / Real.log N ^ 2 ≤ (PrimePairCount N : ℝ)) := by | |
| 21 | + have hexS : ∃ h, HypothesisS h := by | |
| 22 | + rcases hSpectral with hR | hS | |
| 23 | + · exact ⟨fun N => Real.log (N : ℝ), | |
| 24 | + theorem_1_2_hypothesisR_implies_S hR _ isAdmissible_log⟩ | |
| 25 | + · exact hS | |
| 26 | + obtain ⟨h, hS⟩ := hexS | |
| 27 | + obtain ⟨K, _, hK⟩ := theorem_1_1 φ hφ | |
| 28 | + have hasym := (hK h hGRH hS).2 (1 / 2) (by norm_num) | |
| 29 | + have hm : 0 < weightMass φ := weightMass_pos hφ | |
| 30 | + have hε : 0 < weightMass φ * C2 / 2 := div_pos (mul_pos hm C2_pos) (by norm_num) | |
| 31 | + have hbad := evenEventually_of_eventually | |
| 32 | + ((tendsto_order.1 tendsto_prime_power_error).2 (weightMass φ * C2 / 2) hε) | |
| 33 | + refine ⟨weightMass φ / 4, by positivity, ?_⟩ | |
| 34 | + obtain ⟨k, hk⟩ := hasym.and (hbad.and evenEventually_large) | |
| 35 | + refine ⟨k, fun N hNk he => ?_⟩ | |
| 36 | + rcases hk N hNk he with ⟨happrox, hbadsmall, hlarge⟩ | |
| 37 | + rcases large_parameters hlarge with ⟨hN4, hlog, _⟩ | |
| 38 | + have hN : 0 < N := by omega | |
| 39 | + have hNR : 0 < (N : ℝ) := by exact_mod_cast hN | |
| 40 | + have hden : 0 < weightMass φ * singularSeries N := mul_pos hm (singularSeries_pos N) | |
| 41 | + change |goldbach N φ / (weightMass φ * singularSeries N) - 1| < 1 / 2 at happrox | |
| 42 | + have hratio : (1 / 2 : ℝ) < goldbach N φ / (weightMass φ * singularSeries N) := by | |
| 43 | + linarith [(abs_lt.1 happrox).1] | |
| 44 | + have hgold := (lt_div_iff₀ hden).1 hratio | |
| 45 | + have hbadupper : badGoldbachMass N φ ≤ weightMass φ * singularSeries N / 4 := by | |
| 46 | + have hbase := mul_le_mul_of_nonneg_left (singularSeries_uniform_lower N) hm.le | |
| 47 | + calc | |
| 48 | + _ ≤ 4 * Real.log N ^ 2 / Real.sqrt N := badGoldbachMass_le_sqrt N hN φ hφ | |
| 49 | + _ ≤ weightMass φ * C2 / 2 := hbadsmall.le | |
| 50 | + _ ≤ weightMass φ * singularSeries N / 4 := by linarith | |
| 51 | + have hcount := goldbach_le_badGoldbachMass_add_primePairCount N hN φ hφ | |
| 52 | + have hcountprod : (weightMass φ / 4) * singularSeries N ≤ | |
| 53 | + (Real.log N ^ 2 / N) * (PrimePairCount N : ℝ) := by linarith | |
| 54 | + apply (div_le_iff₀ (sq_pos_of_pos hlog)).2 | |
| 55 | + calc | |
| 56 | + _ ≤ ((Real.log N ^ 2 / N) * (PrimePairCount N : ℝ)) * N := | |
| 57 | + mul_le_mul_of_nonneg_right hcountprod hNR.le | |
| 58 | + _ = (PrimePairCount N : ℝ) * Real.log N ^ 2 := by | |
| 59 | + field_simp | |
| 60 | + | |
| 61 | +end ConditionalGoldbach | |
+90 −0 ConditionalGoldbach/Proofs/PrimePowerDouble.lean added View file
| @@ -0,0 +1,90 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.PrimePowerReindex | |
| 4 | + | |
| 5 | +public section | |
| 6 | + | |
| 7 | +set_option autoImplicit false | |
| 8 | +noncomputable section | |
| 9 | +open scoped BigOperators | |
| 10 | +namespace ConditionalGoldbach | |
| 11 | +attribute [local instance] Classical.propDecidable | |
| 12 | + | |
| 13 | +lemma sum_mangoldt_log_double_reindex (N : ℕ) (F : ℕ → ℕ → ℝ) : | |
| 14 | + (∑ n ∈ Finset.range (N+1), ∑ m ∈ Finset.range (N+1), | |
| 15 | + (mangoldt n/Real.log n)*(mangoldt m/Real.log m)*F n m) = | |
| 16 | + ∑ p ∈ Finset.range (N+1), ∑ q ∈ Finset.range (N+1), | |
| 17 | + ∑ k ∈ Finset.range (N+1), ∑ l ∈ Finset.range (N+1), | |
| 18 | + if (p.Prime ∧ 0<k ∧ p^k≤N) ∧ (q.Prime ∧ 0<l ∧ q^l≤N) | |
| 19 | + then F (p^k) (q^l)/(k*l:ℕ) else 0 := by | |
| 20 | + calc | |
| 21 | + _ = ∑ n ∈ Finset.range (N+1), (mangoldt n/Real.log n)* | |
| 22 | + (∑ m ∈ Finset.range (N+1), (mangoldt m/Real.log m)*F n m) := by | |
| 23 | + simp only [Finset.mul_sum,mul_assoc] | |
| 24 | + _ = ∑ p ∈ Finset.range (N+1), ∑ k ∈ Finset.range (N+1), | |
| 25 | + if p.Prime ∧ 0<k ∧ p^k≤N then | |
| 26 | + (∑ m ∈ Finset.range (N+1), (mangoldt m/Real.log m)*F (p^k) m)/(k:ℝ) else 0 := | |
| 27 | + sum_mangoldt_log_reindex N _ | |
| 28 | + _ = ∑ p ∈ Finset.range (N+1), ∑ k ∈ Finset.range (N+1), | |
| 29 | + ∑ q ∈ Finset.range (N+1), ∑ l ∈ Finset.range (N+1), | |
| 30 | + if (p.Prime ∧ 0<k ∧ p^k≤N) ∧ (q.Prime ∧ 0<l ∧ q^l≤N) | |
| 31 | + then F (p^k) (q^l)/(k*l:ℕ) else 0 := by | |
| 32 | + apply Finset.sum_congr rfl | |
| 33 | + intro p hp | |
| 34 | + apply Finset.sum_congr rfl | |
| 35 | + intro k hk | |
| 36 | + rw [sum_mangoldt_log_reindex N (F (p^k))] | |
| 37 | + by_cases hpk : p.Prime ∧ 0<k ∧ p^k≤N | |
| 38 | + · simp only [hpk,ite_true,true_and,Finset.sum_div] | |
| 39 | + apply Finset.sum_congr rfl | |
| 40 | + intro q hq | |
| 41 | + apply Finset.sum_congr rfl | |
| 42 | + intro l hl | |
| 43 | + split_ifs | |
| 44 | + · push_cast | |
| 45 | + ring | |
| 46 | + · simp | |
| 47 | + · simp [hpk] | |
| 48 | + _ = _ := by | |
| 49 | + apply Finset.sum_congr rfl | |
| 50 | + intro p hp | |
| 51 | + rw [Finset.sum_comm] | |
| 52 | + | |
| 53 | +lemma primePower_coprime {p q k l N : ℕ} (hk : 0<k) (hl : 0<l) : | |
| 54 | + Nat.Coprime (p^k*q^l) N ↔ Nat.Coprime (p*q) N := by | |
| 55 | + simp only [Nat.coprime_mul_iff_left,Nat.coprime_pow_left_iff hk,Nat.coprime_pow_left_iff hl] | |
| 56 | + | |
| 57 | +lemma sum_mangoldt_log_add_reindex (N : ℕ) (F : ℕ → ℝ) : | |
| 58 | + (∑ n ∈ Finset.range (N+1), ∑ m ∈ Finset.range (N+1), | |
| 59 | + (mangoldt n/Real.log n)*(mangoldt m/Real.log m)* | |
| 60 | + (if n+m=N ∧ Nat.Coprime (n*m) N then F n else 0)) = | |
| 61 | + ∑ p ∈ Finset.range (N+1), ∑ q ∈ Finset.range (N+1), | |
| 62 | + ∑ k ∈ Finset.range (N+1), ∑ l ∈ Finset.range (N+1), | |
| 63 | + if p.Prime ∧ q.Prime ∧ 0<k ∧ 0<l ∧ p^k+q^l=N ∧ Nat.Coprime (p*q) N | |
| 64 | + then F (p^k)/(k*l:ℕ) else 0 := by | |
| 65 | + rw [sum_mangoldt_log_double_reindex] | |
| 66 | + apply Finset.sum_congr rfl | |
| 67 | + intro p hp | |
| 68 | + apply Finset.sum_congr rfl | |
| 69 | + intro q hq | |
| 70 | + apply Finset.sum_congr rfl | |
| 71 | + intro k hk | |
| 72 | + apply Finset.sum_congr rfl | |
| 73 | + intro l hl | |
| 74 | + by_cases hP : p.Prime | |
| 75 | + · by_cases hQ : q.Prime | |
| 76 | + · by_cases hK : 0<k | |
| 77 | + · by_cases hL : 0<l | |
| 78 | + · simp only [primePower_coprime hK hL] | |
| 79 | + by_cases he : p^k+q^l=N | |
| 80 | + · have hpN : p^k≤N := by omega | |
| 81 | + have hqN : q^l≤N := by omega | |
| 82 | + simp only [hP,hQ,hK,hL,he,hpN,hqN,and_self,true_and,ite_true] | |
| 83 | + split_ifs <;> simp | |
| 84 | + · simp [he,hP,hQ,hK,hL] | |
| 85 | + · simp [hL] | |
| 86 | + · simp [hK] | |
| 87 | + · simp [hQ] | |
| 88 | + · simp [hP] | |
| 89 | + | |
| 90 | +end ConditionalGoldbach | |
+94 −0 ConditionalGoldbach/Proofs/PrimePowerReindex.lean added View file
| @@ -0,0 +1,94 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.PrimePowers | |
| 4 | +public import Mathlib.Data.Nat.Prime.Int | |
| 5 | + | |
| 6 | +@[expose] public section | |
| 7 | + | |
| 8 | +set_option autoImplicit false | |
| 9 | +noncomputable section | |
| 10 | +open scoped BigOperators | |
| 11 | +namespace ConditionalGoldbach | |
| 12 | +attribute [local instance] Classical.propDecidable | |
| 13 | + | |
| 14 | +lemma prime_power_parameter_bounds {p k : ℕ} (hp : p.Prime) (hk : 0<k) : | |
| 15 | + p≤p^k ∧ k≤p^k := by | |
| 16 | + constructor | |
| 17 | + · obtain ⟨j,rfl⟩ := Nat.exists_eq_succ_of_ne_zero hk.ne' | |
| 18 | + have hh : 1≤p^j := one_le_pow₀ hp.one_lt.le | |
| 19 | + rw [pow_succ] | |
| 20 | + nlinarith | |
| 21 | + · induction k with | |
| 22 | + | zero => simp | |
| 23 | + | succ k ih => | |
| 24 | + have ih' : k≤p^k := by | |
| 25 | + by_cases hk0 : k=0 | |
| 26 | + · simp [hk0] | |
| 27 | + · exact ih (Nat.pos_of_ne_zero hk0) | |
| 28 | + have hh : 1≤p^k := one_le_pow₀ hp.one_lt.le | |
| 29 | + rw [pow_succ] | |
| 30 | + have := hp.two_le | |
| 31 | + nlinarith | |
| 32 | + | |
| 33 | +def primePowerIndex (N : ℕ) : Finset (ℕ×ℕ) := | |
| 34 | + ((Finset.range (N+1))×ˢ(Finset.range (N+1))).filter | |
| 35 | + (fun z => z.1.Prime ∧ 0<z.2 ∧ z.1^z.2≤N) | |
| 36 | + | |
| 37 | +lemma primePowerIndex_image (N : ℕ) : | |
| 38 | + (primePowerIndex N).image (fun z => z.1^z.2) = (Finset.range (N+1)).filter IsPrimePow := by | |
| 39 | + ext n | |
| 40 | + simp only [Finset.mem_image,Finset.mem_filter,Finset.mem_range,Nat.lt_succ_iff] | |
| 41 | + constructor | |
| 42 | + · rintro ⟨⟨p,k⟩,hz,rfl⟩ | |
| 43 | + have hz' := (Finset.mem_filter.mp hz).2 | |
| 44 | + exact ⟨hz'.2.2,(isPrimePow_nat_iff _).mpr ⟨p,k,hz'.1,hz'.2.1,rfl⟩⟩ | |
| 45 | + · rintro ⟨hn,hpow⟩ | |
| 46 | + obtain ⟨p,k,hp,hk,rfl⟩ := (isPrimePow_nat_iff _).mp hpow | |
| 47 | + have hh := prime_power_parameter_bounds hp hk | |
| 48 | + refine ⟨(p,k),?_,rfl⟩ | |
| 49 | + simp only [primePowerIndex,Finset.mem_filter,Finset.mem_product,Finset.mem_range,Nat.lt_succ_iff] | |
| 50 | + exact ⟨⟨hh.1.trans hn,hh.2.trans hn⟩,hp,hk,hn⟩ | |
| 51 | + | |
| 52 | +lemma primePowerIndex_injective (N : ℕ) : | |
| 53 | + Set.InjOn (fun z : ℕ×ℕ => z.1^z.2) (primePowerIndex N) := by | |
| 54 | + intro x hx y hy he | |
| 55 | + have hx' := (Finset.mem_filter.mp hx).2 | |
| 56 | + have hy' := (Finset.mem_filter.mp hy).2 | |
| 57 | + obtain ⟨hp,hk⟩ := hx'.1.pow_inj' hy'.1 hx'.2.1.ne' hy'.2.1.ne' he | |
| 58 | + exact Prod.ext hp hk | |
| 59 | + | |
| 60 | +lemma mangoldt_log_ratio_prime_power {p k : ℕ} (hp : p.Prime) (hk : 0<k) : | |
| 61 | + mangoldt (p^k)/Real.log ((p^k:ℕ):ℝ)=(k:ℝ)⁻¹ := by | |
| 62 | + change ArithmeticFunction.vonMangoldt (p^k)/Real.log ((p^k:ℕ):ℝ)=_ | |
| 63 | + rw [ArithmeticFunction.vonMangoldt_apply_pow hk.ne',ArithmeticFunction.vonMangoldt_apply_prime hp, | |
| 64 | + Nat.cast_pow,Real.log_pow] | |
| 65 | + have hlog : Real.log (p:ℝ)≠0 := (Real.log_pos (by exact_mod_cast hp.one_lt)).ne' | |
| 66 | + have hk0 : (k:ℝ)≠0 := by exact_mod_cast hk.ne' | |
| 67 | + field_simp | |
| 68 | + | |
| 69 | +lemma sum_mangoldt_log_reindex (N : ℕ) (F : ℕ → ℝ) : | |
| 70 | + (∑ n ∈ Finset.range (N+1), mangoldt n/Real.log n*F n) = | |
| 71 | + ∑ p ∈ Finset.range (N+1), ∑ k ∈ Finset.range (N+1), | |
| 72 | + if p.Prime ∧ 0<k ∧ p^k≤N then F (p^k)/(k:ℝ) else 0 := by | |
| 73 | + have hfilter : (∑ n ∈ Finset.range (N+1), mangoldt n/Real.log n*F n) = | |
| 74 | + ∑ n ∈ (Finset.range (N+1)).filter IsPrimePow, mangoldt n/Real.log n*F n := by | |
| 75 | + rw [Finset.sum_filter] | |
| 76 | + apply Finset.sum_congr rfl | |
| 77 | + intro n hn | |
| 78 | + by_cases hp : IsPrimePow n | |
| 79 | + · simp [hp] | |
| 80 | + · have hz : mangoldt n=0 := ArithmeticFunction.vonMangoldt_eq_zero_iff.mpr hp | |
| 81 | + simp [hp,hz] | |
| 82 | + rw [hfilter,← primePowerIndex_image N,Finset.sum_image (primePowerIndex_injective N)] | |
| 83 | + calc | |
| 84 | + _ = ∑ z ∈ primePowerIndex N, F (z.1^z.2)/(z.2:ℝ) := by | |
| 85 | + apply Finset.sum_congr rfl | |
| 86 | + intro z hz | |
| 87 | + have hh := (Finset.mem_filter.mp hz).2 | |
| 88 | + rw [mangoldt_log_ratio_prime_power hh.1 hh.2.1] | |
| 89 | + ring | |
| 90 | + _ = _ := by | |
| 91 | + unfold primePowerIndex | |
| 92 | + rw [Finset.sum_filter,Finset.sum_product] | |
| 93 | + | |
| 94 | +end ConditionalGoldbach | |
+201 −0 ConditionalGoldbach/Proofs/PrimePowers.lean added View file
| @@ -0,0 +1,201 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import Mathlib.NumberTheory.Chebyshev | |
| 4 | +public import ConditionalGoldbach.Proofs.Weights | |
| 5 | + | |
| 6 | +/-! Removal of pairs containing a proper prime power from the weighted correlation. -/ | |
| 7 | +@[expose] public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | +attribute [local instance] Classical.propDecidable | |
| 15 | + | |
| 16 | +/-- The part of the original weighted correlation with at least one nonprime entry. | |
| 17 | +The original range, coprimality filter, and both weights are retained. -/ | |
| 18 | +def badGoldbachMass (N : ℕ) (φ : ℝ → ℝ) : ℝ := | |
| 19 | + (N : ℝ)⁻¹ * ∑ n ∈ Finset.range (N + 1), | |
| 20 | + if (0 < n ∧ n < N ∧ Nat.Coprime (n * (N - n)) N) ∧ | |
| 21 | + (¬n.Prime ∨ ¬(N - n).Prime) then | |
| 22 | + mangoldt n * mangoldt (N - n) * φ (n / N) * φ ((N - n : ℕ) / N) | |
| 23 | + else 0 | |
| 24 | + | |
| 25 | +theorem mangoldt_le_log_of_le {n N : ℕ} (hN : 0 < N) (hn : n ≤ N) : | |
| 26 | + mangoldt n ≤ Real.log N := by | |
| 27 | + by_cases hzero : n = 0 | |
| 28 | + · subst n | |
| 29 | + simpa [mangoldt] using Real.log_nonneg (show (1 : ℝ) ≤ N by exact_mod_cast hN) | |
| 30 | + · have hnpos : 0 < n := Nat.pos_of_ne_zero hzero | |
| 31 | + exact ArithmeticFunction.vonMangoldt_le_log.trans | |
| 32 | + (Real.log_le_log (by exact_mod_cast hnpos) (by exact_mod_cast hn)) | |
| 33 | + | |
| 34 | +theorem sum_nonprime_mangoldt_eq_psi_sub_theta (N : ℕ) : | |
| 35 | + (∑ n ∈ Finset.range (N + 1), if ¬n.Prime then mangoldt n else 0) = | |
| 36 | + Chebyshev.psi N - Chebyshev.theta N := by | |
| 37 | + rw [Chebyshev.psi_sub_theta_eq_sum_not_prime, Nat.floor_natCast, Finset.sum_filter] | |
| 38 | + change (∑ n ∈ Finset.range (N + 1), if ¬n.Prime then mangoldt n else 0) = | |
| 39 | + ∑ n ∈ Finset.Ioc 0 N, if ¬n.Prime then mangoldt n else 0 | |
| 40 | + symm | |
| 41 | + apply Finset.sum_subset | |
| 42 | + · intro n hn | |
| 43 | + exact Finset.mem_range.mpr (Nat.lt_succ_of_le (Finset.mem_Ioc.mp hn).2) | |
| 44 | + · intro n hn hnot | |
| 45 | + have hn0 : n = 0 := by | |
| 46 | + simp only [Finset.mem_range, Finset.mem_Ioc, not_and] at hn hnot | |
| 47 | + omega | |
| 48 | + subst n | |
| 49 | + simp [mangoldt] | |
| 50 | + | |
| 51 | +theorem badGoldbachMass_le_psi_sub_theta (N : ℕ) (hN : 0 < N) | |
| 52 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 53 | + badGoldbachMass N φ ≤ (2 * Real.log N / N) * | |
| 54 | + (Chebyshev.psi N - Chebyshev.theta N) := by | |
| 55 | + have hNpos : (0 : ℝ) < N := by exact_mod_cast hN | |
| 56 | + have hlog : 0 ≤ Real.log N := Real.log_nonneg (by exact_mod_cast hN) | |
| 57 | + have hterm (n : ℕ) (hn : n ∈ Finset.range (N + 1)) : | |
| 58 | + (if (0 < n ∧ n < N ∧ Nat.Coprime (n * (N - n)) N) ∧ | |
| 59 | + (¬n.Prime ∨ ¬(N - n).Prime) then | |
| 60 | + mangoldt n * mangoldt (N - n) * φ (n / N) * φ ((N - n : ℕ) / N) | |
| 61 | + else 0) ≤ | |
| 62 | + Real.log N * (if ¬n.Prime then mangoldt n else 0) + | |
| 63 | + Real.log N * (if ¬(N - n).Prime then mangoldt (N - n) else 0) := by | |
| 64 | + have hnle : n ≤ N := Nat.le_of_lt_succ (Finset.mem_range.mp hn) | |
| 65 | + have hvn : 0 ≤ mangoldt n := ArithmeticFunction.vonMangoldt_nonneg | |
| 66 | + have hvm : 0 ≤ mangoldt (N - n) := ArithmeticFunction.vonMangoldt_nonneg | |
| 67 | + have hnlog := mangoldt_le_log_of_le hN hnle | |
| 68 | + have hmlog := mangoldt_le_log_of_le hN (Nat.sub_le N n) | |
| 69 | + have hprod : 0 ≤ mangoldt n * mangoldt (N - n) := mul_nonneg hvn hvm | |
| 70 | + have hweight : mangoldt n * mangoldt (N - n) * φ (n / N) * | |
| 71 | + φ ((N - n : ℕ) / N) ≤ mangoldt n * mangoldt (N - n) := by | |
| 72 | + calc | |
| 73 | + _ ≤ mangoldt n * mangoldt (N - n) * φ (n / N) := | |
| 74 | + mul_le_of_le_one_right (mul_nonneg hprod (hφ.nonneg _)) (hφ.le_one _) | |
| 75 | + _ ≤ _ := mul_le_of_le_one_right hprod (hφ.le_one _) | |
| 76 | + have hleft : mangoldt n * mangoldt (N - n) * φ (n / N) * | |
| 77 | + φ ((N - n : ℕ) / N) ≤ Real.log N * mangoldt n := by | |
| 78 | + exact hweight.trans (by nlinarith) | |
| 79 | + have hright : mangoldt n * mangoldt (N - n) * φ (n / N) * | |
| 80 | + φ ((N - n : ℕ) / N) ≤ Real.log N * mangoldt (N - n) := by | |
| 81 | + exact hweight.trans (mul_le_mul_of_nonneg_right hnlog hvm) | |
| 82 | + have hnpart : 0 ≤ Real.log N * (if ¬n.Prime then mangoldt n else 0) := by | |
| 83 | + split_ifs <;> positivity | |
| 84 | + have hmpart : 0 ≤ Real.log N * (if ¬(N - n).Prime then mangoldt (N - n) else 0) := by | |
| 85 | + split_ifs <;> positivity | |
| 86 | + by_cases h : (0 < n ∧ n < N ∧ Nat.Coprime (n * (N - n)) N) ∧ | |
| 87 | + (¬n.Prime ∨ ¬(N - n).Prime) | |
| 88 | + · rw [ite_eq_left h] | |
| 89 | + rcases h.2 with hnp | hmp | |
| 90 | + · simpa only [ite_eq_left hnp] using le_add_of_le_of_nonneg hleft hmpart | |
| 91 | + · simpa only [ite_eq_left hmp] using le_add_of_nonneg_of_le hnpart hright | |
| 92 | + · rw [ite_eq_right h] | |
| 93 | + exact add_nonneg hnpart hmpart | |
| 94 | + have hreflect : (∑ n ∈ Finset.range (N + 1), | |
| 95 | + if ¬(N - n).Prime then mangoldt (N - n) else 0) = | |
| 96 | + ∑ n ∈ Finset.range (N + 1), if ¬n.Prime then mangoldt n else 0 := by | |
| 97 | + simpa using Finset.sum_range_reflect | |
| 98 | + (fun n => if ¬n.Prime then mangoldt n else 0) (N + 1) | |
| 99 | + unfold badGoldbachMass | |
| 100 | + calc | |
| 101 | + _ ≤ (N : ℝ)⁻¹ * ∑ n ∈ Finset.range (N + 1), | |
| 102 | + (Real.log N * (if ¬n.Prime then mangoldt n else 0) + | |
| 103 | + Real.log N * (if ¬(N - n).Prime then mangoldt (N - n) else 0)) := | |
| 104 | + mul_le_mul_of_nonneg_left (Finset.sum_le_sum hterm) (inv_nonneg.mpr hNpos.le) | |
| 105 | + _ = _ := by | |
| 106 | + rw [Finset.sum_add_distrib, ← Finset.mul_sum, ← Finset.mul_sum, hreflect, | |
| 107 | + sum_nonprime_mangoldt_eq_psi_sub_theta] | |
| 108 | + ring | |
| 109 | + | |
| 110 | +theorem badGoldbachMass_le_sqrt (N : ℕ) (hN : 0 < N) | |
| 111 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 112 | + badGoldbachMass N φ ≤ 4 * Real.log N ^ 2 / Real.sqrt N := by | |
| 113 | + have hNpos : (0 : ℝ) < N := by exact_mod_cast hN | |
| 114 | + have hN1 : (1 : ℝ) ≤ N := by exact_mod_cast hN | |
| 115 | + have hlog : 0 ≤ Real.log N := Real.log_nonneg hN1 | |
| 116 | + have hsqrt : 0 < Real.sqrt N := Real.sqrt_pos.mpr hNpos | |
| 117 | + calc | |
| 118 | + _ ≤ (2 * Real.log N / N) * (Chebyshev.psi N - Chebyshev.theta N) := | |
| 119 | + badGoldbachMass_le_psi_sub_theta N hN φ hφ | |
| 120 | + _ ≤ (2 * Real.log N / N) * (2 * Real.sqrt N * Real.log N) := | |
| 121 | + mul_le_mul_of_nonneg_left (Chebyshev.psi_sub_theta_le hN1) | |
| 122 | + (div_nonneg (mul_nonneg (by norm_num) hlog) hNpos.le) | |
| 123 | + _ = _ := by | |
| 124 | + field_simp | |
| 125 | + have hs := congrArg (fun x : ℝ => 4 * Real.log N ^ 2 * x) (Real.sq_sqrt hNpos.le) | |
| 126 | + nlinarith only [hs] | |
| 127 | + | |
| 128 | + | |
| 129 | +theorem goldbach_le_badGoldbachMass_add_primePairCount (N : ℕ) (hN : 0 < N) | |
| 130 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 131 | + goldbach N φ ≤ badGoldbachMass N φ + | |
| 132 | + (Real.log N ^ 2 / N) * (PrimePairCount N : ℝ) := by | |
| 133 | + have hNpos : (0 : ℝ) < N := by exact_mod_cast hN | |
| 134 | + have hlog : 0 ≤ Real.log N := Real.log_nonneg (by exact_mod_cast hN) | |
| 135 | + let good : ℕ → Prop := fun n => n.Prime ∧ (N - n).Prime ∧ | |
| 136 | + (N : ℝ) / 3 ≤ n ∧ (n : ℝ) ≤ 2 * N / 3 | |
| 137 | + have hind (n : ℕ) : 0 ≤ (if good n then Real.log N ^ 2 else 0) := by | |
| 138 | + split_ifs <;> positivity | |
| 139 | + have hterm (n : ℕ) (hn : n ∈ Finset.range (N + 1)) : | |
| 140 | + (if 0 < n ∧ n < N ∧ Nat.Coprime (n * (N - n)) N then | |
| 141 | + mangoldt n * mangoldt (N - n) * φ (n / N) * φ ((N - n : ℕ) / N) | |
| 142 | + else 0) ≤ | |
| 143 | + (if (0 < n ∧ n < N ∧ Nat.Coprime (n * (N - n)) N) ∧ | |
| 144 | + (¬n.Prime ∨ ¬(N - n).Prime) then | |
| 145 | + mangoldt n * mangoldt (N - n) * φ (n / N) * φ ((N - n : ℕ) / N) | |
| 146 | + else 0) + (if good n then Real.log N ^ 2 else 0) := by | |
| 147 | + by_cases hc : 0 < n ∧ n < N ∧ Nat.Coprime (n * (N - n)) N | |
| 148 | + · rw [ite_eq_left hc] | |
| 149 | + by_cases hb : ¬n.Prime ∨ ¬(N - n).Prime | |
| 150 | + · rw [ite_eq_left ⟨hc, hb⟩] | |
| 151 | + exact le_add_of_nonneg_right (hind n) | |
| 152 | + · have hbad : ¬((0 < n ∧ n < N ∧ Nat.Coprime (n * (N - n)) N) ∧ | |
| 153 | + (¬n.Prime ∨ ¬(N - n).Prime)) := fun h => hb h.2 | |
| 154 | + rw [ite_eq_right hbad, zero_add] | |
| 155 | + by_cases hz : φ ((n : ℝ) / N) = 0 | |
| 156 | + · simp only [hz, mul_zero, zero_mul] | |
| 157 | + exact hind n | |
| 158 | + · have hs := hφ.mem_support_interval hz | |
| 159 | + have hg : good n := by | |
| 160 | + have hp : n.Prime ∧ (N - n).Prime := by tauto | |
| 161 | + refine ⟨hp.1, hp.2, ?_, ?_⟩ | |
| 162 | + · have hh := (le_div_iff₀ hNpos).mp hs.1 | |
| 163 | + linarith | |
| 164 | + · have hh := (div_le_iff₀ hNpos).mp hs.2 | |
| 165 | + linarith | |
| 166 | + rw [ite_eq_left hg] | |
| 167 | + have hnle : n ≤ N := Nat.le_of_lt_succ (Finset.mem_range.mp hn) | |
| 168 | + have hvn : 0 ≤ mangoldt n := ArithmeticFunction.vonMangoldt_nonneg | |
| 169 | + have hvm : 0 ≤ mangoldt (N - n) := ArithmeticFunction.vonMangoldt_nonneg | |
| 170 | + have hnlog := mangoldt_le_log_of_le hN hnle | |
| 171 | + have hmlog := mangoldt_le_log_of_le hN (Nat.sub_le N n) | |
| 172 | + have hprod : 0 ≤ mangoldt n * mangoldt (N - n) := mul_nonneg hvn hvm | |
| 173 | + calc | |
| 174 | + _ ≤ mangoldt n * mangoldt (N - n) * φ (n / N) := | |
| 175 | + mul_le_of_le_one_right (mul_nonneg hprod (hφ.nonneg _)) (hφ.le_one _) | |
| 176 | + _ ≤ mangoldt n * mangoldt (N - n) := | |
| 177 | + mul_le_of_le_one_right hprod (hφ.le_one _) | |
| 178 | + _ ≤ Real.log N * Real.log N := | |
| 179 | + mul_le_mul hnlog hmlog hvm hlog | |
| 180 | + _ = _ := by ring | |
| 181 | + · rw [ite_eq_right hc, ite_eq_right (fun h => hc h.1), zero_add] | |
| 182 | + exact hind n | |
| 183 | + have hcount : (∑ n ∈ Finset.range (N + 1), if good n then Real.log N ^ 2 else 0) = | |
| 184 | + (PrimePairCount N : ℝ) * Real.log N ^ 2 := by | |
| 185 | + rw [← Finset.sum_filter] | |
| 186 | + simp only [Finset.sum_const, nsmul_eq_mul] | |
| 187 | + rfl | |
| 188 | + unfold goldbach badGoldbachMass | |
| 189 | + calc | |
| 190 | + _ ≤ (N : ℝ)⁻¹ * ∑ n ∈ Finset.range (N + 1), | |
| 191 | + ((if (0 < n ∧ n < N ∧ Nat.Coprime (n * (N - n)) N) ∧ | |
| 192 | + (¬n.Prime ∨ ¬(N - n).Prime) then | |
| 193 | + mangoldt n * mangoldt (N - n) * φ (n / N) * φ ((N - n : ℕ) / N) | |
| 194 | + else 0) + (if good n then Real.log N ^ 2 else 0)) := | |
| 195 | + mul_le_mul_of_nonneg_left (Finset.sum_le_sum hterm) (inv_nonneg.mpr hNpos.le) | |
| 196 | + _ = _ := by | |
| 197 | + rw [Finset.sum_add_distrib, mul_add, hcount] | |
| 198 | + ring | |
| 199 | + | |
| 200 | + | |
| 201 | +end ConditionalGoldbach | |
+144 −0 ConditionalGoldbach/Proofs/QuadraticAsymptotic.lean added View file
| @@ -0,0 +1,144 @@ | ||
| 1 | +module | |
| 2 | + | |
| 3 | +public import ConditionalGoldbach.Proofs.WeightNorm | |
| 4 | +public import ConditionalGoldbach.Proofs.Elementary | |
| 5 | + | |
| 6 | +/-! A quantitative dominated estimate for the functional norm asymptotic. -/ | |
| 7 | +public section | |
| 8 | + | |
| 9 | +set_option autoImplicit false | |
| 10 | +noncomputable section | |
| 11 | +open scoped BigOperators ComplexConjugate Topology ContDiff | |
| 12 | +open MeasureTheory Filter Set Complex | |
| 13 | +namespace ConditionalGoldbach | |
| 14 | + | |
| 15 | +lemma normFunctional_pointwise_asymptotic (N : ℕ) (hlarge : Real.exp 16 < (N : ℝ)) | |
| 16 | + (u : ℝ) (hu : u ∈ Icc (1 / 3 : ℝ) (2 / 3)) : | |
| 17 | + Real.exp 2 - Real.rpow (N * u) (2 * alpha N) / | |
| 18 | + (1 + Real.rpow (N * u) (-2 * (beta - alpha N))) ≤ | |
| 19 | + Real.exp 2 * (30 / Real.log N) := by | |
| 20 | + have hexp : (17 : ℝ) ≤ Real.exp 16 := by have h := Real.add_one_le_exp (16 : ℝ); norm_num at h ⊢; exact h | |
| 21 | + have hNr : 0 < (N : ℝ) := by linarith | |
| 22 | + have hL : 16 < Real.log N := by | |
| 23 | + have h := Real.log_lt_log (Real.exp_pos 16) hlarge | |
| 24 | + simpa using h | |
| 25 | + have hLpos : 0 < Real.log N := by linarith | |
| 26 | + have hu0 : 0 < u := by linarith [hu.1] | |
| 27 | + have hu1 : u ≤ 1 := by linarith [hu.2] | |
| 28 | + have hNu : 1 ≤ (N : ℝ) * u := by nlinarith [hu.1] | |
| 29 | + have ha0 : 0 < alpha N := by unfold alpha; positivity | |
| 30 | + have ha : alpha N ≤ 1 / 16 := by | |
| 31 | + unfold alpha | |
| 32 | + exact (div_le_div_iff₀ hLpos (by norm_num : (0 : ℝ) < 16)).2 (by linarith) | |
| 33 | + have hNpow : Real.rpow (N : ℝ) (2 * alpha N) = Real.exp 2 := by | |
| 34 | + rw [Real.rpow_eq_pow, Real.rpow_def_of_pos hNr] | |
| 35 | + congr 1 | |
| 36 | + unfold alpha | |
| 37 | + field_simp | |
| 38 | + have hpowprod : Real.rpow (N * u) (2 * alpha N) = | |
| 39 | + Real.exp 2 * Real.rpow u (2 * alpha N) := by | |
| 40 | + rw [show Real.rpow (N * u) (2 * alpha N) = Real.rpow (N : ℝ) (2 * alpha N) * Real.rpow u (2 * alpha N) from Real.mul_rpow hNr.le hu0.le, hNpow] | |
| 41 | + have huPow0 : 0 < Real.rpow u (2 * alpha N) := Real.rpow_pos_of_pos hu0 _ | |
| 42 | + have huPow1 : Real.rpow u (2 * alpha N) ≤ 1 := by | |
| 43 | + simpa using Real.rpow_le_rpow_of_exponent_ge hu0 hu1 (show 0 ≤ 2 * alpha N by positivity) | |
| 44 | + have hlogu : -3 ≤ Real.log u := by | |
| 45 | + have hl := Real.log_le_log (by norm_num : (0 : ℝ) < 1 / 3) hu.1 | |
| 46 | + have h3 := Real.log_le_sub_one_of_pos (by norm_num : (0 : ℝ) < 3) | |
| 47 | + rw [Real.log_div (by norm_num : (1 : ℝ) ≠ 0) (by norm_num : (3 : ℝ) ≠ 0), Real.log_one] at hl | |
| 48 | + linarith | |
| 49 | + have huGap : 1 - Real.rpow u (2 * alpha N) ≤ 6 / Real.log N := by | |
| 50 | + rw [Real.rpow_eq_pow, Real.rpow_def_of_pos hu0] | |
| 51 | + have he := Real.add_one_le_exp (Real.log u * (2 * alpha N)) | |
| 52 | + have hl : -(6 / Real.log N) ≤ Real.log u * (2 * alpha N) := by | |
| 53 | + have h := mul_le_mul_of_nonneg_right hlogu (show 0 ≤ 2 / Real.log N by positivity) | |
| 54 | + unfold alpha | |
| 55 | + convert h using 1 <;> ring | |
| 56 | + linarith | |
| 57 | + have hsmallpow : Real.rpow u (-(1 / 8 : ℝ)) ≤ 3 := by | |
| 58 | + have h := Real.rpow_le_rpow_of_exponent_ge hu0 hu1 (by norm_num : (-1 : ℝ) ≤ -(1 / 8)) | |
| 59 | + rw [Real.rpow_neg_one] at h | |
| 60 | + apply h.trans | |
| 61 | + exact (inv_le_comm₀ hu0 (by norm_num : (0 : ℝ) < 3)).2 (by linarith [hu.1]) | |
| 62 | + have hNsmall : Real.rpow (N : ℝ) (-(1 / 8 : ℝ)) ≤ 8 / Real.log N := by | |
| 63 | + have hp : 0 < Real.rpow (N : ℝ) (1 / 8 : ℝ) := Real.rpow_pos_of_pos hNr _ | |
| 64 | + have hLp : Real.log N ≤ 8 * Real.rpow (N : ℝ) (1 / 8 : ℝ) := by | |
| 65 | + rw [Real.rpow_eq_pow, Real.rpow_def_of_pos hNr] | |
| 66 | + have h := Real.add_one_le_exp (Real.log N / 8) | |
| 67 | + convert (show Real.log N ≤ 8 * Real.exp (Real.log N / 8) by linarith) using 1; congr 1; ring_nf | |
| 68 | + apply (le_div_iff₀ hLpos).2 | |
| 69 | + change (N : ℝ) ^ (-(1 / 8 : ℝ)) * Real.log N ≤ 8 | |
| 70 | + rw [Real.rpow_neg hNr.le, inv_mul_eq_div] | |
| 71 | + exact (div_le_iff₀ hp).2 hLp | |
| 72 | + let v := Real.rpow (N * u) (-2 * (beta - alpha N)) | |
| 73 | + have hv0 : 0 ≤ v := Real.rpow_nonneg (mul_nonneg hNr.le hu0.le) _ | |
| 74 | + have hv : v ≤ 24 / Real.log N := by | |
| 75 | + calc | |
| 76 | + v ≤ Real.rpow (N * u) (-(1 / 8 : ℝ)) := by | |
| 77 | + apply Real.rpow_le_rpow_of_exponent_le hNu | |
| 78 | + unfold beta | |
| 79 | + linarith | |
| 80 | + _ = Real.rpow (N : ℝ) (-(1 / 8 : ℝ)) * Real.rpow u (-(1 / 8 : ℝ)) := | |
| 81 | + Real.mul_rpow hNr.le hu0.le | |
| 82 | + _ ≤ (8 / Real.log N) * 3 := mul_le_mul hNsmall hsmallpow (Real.rpow_nonneg hu0.le _) (by positivity) | |
| 83 | + _ = _ := by ring | |
| 84 | + have hratio : 1 - Real.rpow u (2 * alpha N) / (1 + v) ≤ 30 / Real.log N := by | |
| 85 | + have hden : 0 < 1 + v := by positivity | |
| 86 | + have heq : 1 - Real.rpow u (2 * alpha N) / (1 + v) = | |
| 87 | + (1 - Real.rpow u (2 * alpha N) + v) / (1 + v) := by field_simp; ring | |
| 88 | + rw [heq] | |
| 89 | + have hnum : 0 ≤ 1 - Real.rpow u (2 * alpha N) + v := by linarith | |
| 90 | + apply (div_le_self hnum (by linarith : 1 ≤ 1 + v)).trans | |
| 91 | + calc | |
| 92 | + _ ≤ 6 / Real.log N + 24 / Real.log N := add_le_add huGap hv | |
| 93 | + _ = _ := by ring | |
| 94 | + rw [hpowprod] | |
| 95 | + change Real.exp 2 - Real.exp 2 * Real.rpow u (2 * alpha N) / (1 + v) ≤ _ | |
| 96 | + calc | |
| 97 | + _ = Real.exp 2 * (1 - Real.rpow u (2 * alpha N) / (1 + v)) := by ring | |
| 98 | + _ ≤ _ := mul_le_mul_of_nonneg_left hratio (Real.exp_pos _).le | |
| 99 | + | |
| 100 | +lemma normFunctional_asymptotic_bound (N : ℕ) (hlarge : Real.exp 16 < (N : ℝ)) | |
| 101 | + (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 102 | + |normFunctional N φ (alpha N) - Real.exp 2 * weightEnergy φ| ≤ | |
| 103 | + (30 * Real.exp 2 * weightEnergy φ) / Real.log N := by | |
| 104 | + have hNpos : 0 < (N : ℝ) := (Real.exp_pos 16).trans hlarge | |
| 105 | + have hNnat : 0 < N := by exact_mod_cast hNpos | |
| 106 | + have hlarge' : Real.exp 10 < (N : ℝ) := (Real.exp_lt_exp.mpr (by norm_num)).trans hlarge | |
| 107 | + have hlog : 0 < Real.log N := Real.log_pos ((Real.one_lt_exp_iff.mpr (by norm_num)).trans hlarge) | |
| 108 | + rw [abs_of_nonpos (sub_nonpos.mpr (normFunctional_le_exp2_weightEnergy N hlarge' φ hφ))] | |
| 109 | + obtain ⟨hE, hQ⟩ := proposition_7_4_norm_integrals N hNnat φ hφ (alpha N) | |
| 110 | + have hb : (∫ u in Ioi (0 : ℝ), | |
| 111 | + Real.exp 2 * (derivativeWeight φ u ^ 2 / u) - | |
| 112 | + Real.rpow (N * u) (2 * alpha N) * derivativeWeight φ u ^ 2 / | |
| 113 | + (1 + Real.rpow (N * u) (-2 * (beta - alpha N))) / u) ≤ | |
| 114 | + ∫ u in Ioi (0 : ℝ), (30 / Real.log N) * Real.exp 2 * | |
| 115 | + (derivativeWeight φ u ^ 2 / u) := by | |
| 116 | + apply setIntegral_mono_on ((hE.const_mul _).sub hQ) (hE.const_mul _) measurableSet_Ioi | |
| 117 | + intro u hu | |
| 118 | + by_cases hd : derivativeWeight φ u = 0 | |
| 119 | + · simp [hd] | |
| 120 | + · have hs := derivativeWeight_support_subset hφ hd | |
| 121 | + have hp := mul_le_mul_of_nonneg_right | |
| 122 | + (normFunctional_pointwise_asymptotic N hlarge u hs) | |
| 123 | + (div_nonneg (sq_nonneg (derivativeWeight φ u)) hu.le) | |
| 124 | + convert hp using 1 <;> (try dsimp only [Pi.sub_apply]) <;> ring | |
| 125 | + rw [integral_sub (hE.const_mul _) hQ, integral_const_mul, integral_const_mul] at hb | |
| 126 | + have h := mul_le_mul_of_nonneg_left hb (show 0 ≤ (2 * Real.pi)⁻¹ by positivity) | |
| 127 | + unfold normFunctional weightEnergy | |
| 128 | + convert h using 1 <;> ring | |
| 129 | + | |
| 130 | +lemma normFunctional_asymptotic (φ : ℝ → ℝ) (hφ : IsWeight φ) : | |
| 131 | + ∃ C : ℝ, 0 < C ∧ EvenEventually (fun N => | |
| 132 | + |normFunctional N φ (alpha N) - Real.exp 2 * weightEnergy φ| ≤ C / Real.log N) := by | |
| 133 | + refine ⟨30 * Real.exp 2 * weightEnergy φ + 1, ?_, ?_⟩ | |
| 134 | + · have := weightEnergy_nonneg φ | |
| 135 | + positivity | |
| 136 | + · obtain ⟨N₀, hN₀⟩ := exists_nat_gt (Real.exp 16) | |
| 137 | + refine ⟨N₀, ?_⟩ | |
| 138 | + intro N hN _ | |
| 139 | + have hlarge : Real.exp 16 < (N : ℝ) := hN₀.trans_le (by exact_mod_cast hN) | |
| 140 | + have hlog : 0 < Real.log N := Real.log_pos ((Real.one_lt_exp_iff.mpr (by norm_num)).trans hlarge) | |
| 141 | + exact (normFunctional_asymptotic_bound N hlarge φ hφ).trans | |
| 142 | + (div_le_div_of_nonneg_right (by linarith) hlog.le) | |
| 143 | + | |
| 144 | +end ConditionalGoldbach | |
