Add lean source and binary files (part 100)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- lean/OAI/NumberTheory/DirichletL/Descent/Basic.lean +170 -0
- lean/OAI/NumberTheory/DirichletL/Descent/Canonical.lean +130 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalChildSupport.lean +85 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalCompleteBudget.lean +54 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalCompleteChildren.lean +158 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalCompleteNormalized.lean +91 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalCompleteRank.lean +125 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalCompleteRankNormalized.lean +109 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalCompleteState.lean +102 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalEnergyExistenceData.lean +55 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLiveBinRank.lean +69 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongAggregate.lean +64 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongBins.lean +86 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongCaller.lean +69 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongCoefficient.lean +63 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongCosts.lean +68 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongCount.lean +36 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongFinite.lean +99 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongFull.lean +112 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongGeometry.lean +66 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongHeightBin.lean +115 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongIntegral.lean +88 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongKeys.lean +34 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongNormalization.lean +106 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongParent.lean +115 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongSource.lean +114 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongTotal.lean +67 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongUniformTestBin.lean +151 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongWeight.lean +65 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLowerMoments.lean +88 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalPunctureMask.lean +113 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalPunctureMaskEnergy.lean +84 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankCapChildren.lean +55 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankDepthParameters.lean +66 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankEnergyMonotone.lean +30 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankExistence.lean +44 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankExistenceData.lean +78 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankExistenceInduction.lean +60 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankExistenceSuccessor.lean +186 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankFamilyGates.lean +89 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankMoments.lean +88 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankMonotone.lean +55 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankPuncture.lean +26 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalReopeningHeight.lean +51 -0
- lean/OAI/NumberTheory/DirichletL/Descent/CanonicalShortFinite.lean +108 -0
- lean/OAI/NumberTheory/DirichletL/Descent/ChildCutoff.lean +165 -0
- lean/OAI/NumberTheory/DirichletL/Descent/ClippedChild.lean +68 -0
- lean/OAI/NumberTheory/DirichletL/Descent/ClippedEnergy.lean +92 -0
- lean/OAI/NumberTheory/DirichletL/Descent/ClippedFourier.lean +126 -0
- lean/OAI/NumberTheory/DirichletL/Descent/ClippedUniform.lean +48 -0
lean/OAI/NumberTheory/DirichletL/Descent/Basic.lean
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib.Basic.Real.Basic
|
| 2 |
+
import Mathlib.Tactic.Linarith
|
| 3 |
+
import Mathlib.Tactic.Ring
|
| 4 |
+
import Mathlib.Tactic.Positivity
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
|
| 10 |
+
def MarkedMargins (m r z c : ℝ) : Prop :=
|
| 11 |
+
r + 2 * z ≤ m - c ∧ 2 * r + 8 * z ≤ 3 * m - c
|
| 12 |
+
|
| 13 |
+
def CanonicalMargins (F M Q z c : ℝ) : Prop :=
|
| 14 |
+
c ≤ F - M - Q - z ∧ c ≤ 4 * F - 3 * M - 6 * z
|
| 15 |
+
|
| 16 |
+
theorem markedMargins_of_strict {m r z : ℝ}
|
| 17 |
+
(h₁ : r + 2 * z < m) (h₂ : 2 * r + 8 * z < 3 * m) :
|
| 18 |
+
∃ c > 0, MarkedMargins m r z c := by
|
| 19 |
+
refine ⟨min (m - r - 2 * z) (3 * m - 2 * r - 8 * z), ?_, ?_⟩
|
| 20 |
+
· exact lt_min (by linarith) (by linarith)
|
| 21 |
+
· constructor
|
| 22 |
+
· have := min_le_left (m - r - 2 * z) (3 * m - 2 * r - 8 * z)
|
| 23 |
+
linarith
|
| 24 |
+
· have := min_le_right (m - r - 2 * z) (3 * m - 2 * r - 8 * z)
|
| 25 |
+
linarith
|
| 26 |
+
|
| 27 |
+
theorem markedMargins_subcollection {m r z z' c : ℝ}
|
| 28 |
+
(h : MarkedMargins m r z c) (hz : z' ≤ z) :
|
| 29 |
+
MarkedMargins m r z' c := by
|
| 30 |
+
obtain ⟨h₁, h₂⟩ := h
|
| 31 |
+
constructor <;> linarith
|
| 32 |
+
|
| 33 |
+
theorem canonicalMargins_subcollection {F M Q z z' c : ℝ}
|
| 34 |
+
(h : CanonicalMargins F M Q z c) (hz : z' ≤ z) :
|
| 35 |
+
CanonicalMargins F M Q z' c := by
|
| 36 |
+
obtain ⟨h₁, h₂⟩ := h
|
| 37 |
+
constructor <;> linarith
|
| 38 |
+
|
| 39 |
+
theorem canonicalMargins_weaken {F M Q z c c' : ℝ}
|
| 40 |
+
(h : CanonicalMargins F M Q z c) (hc : c' ≤ c) :
|
| 41 |
+
CanonicalMargins F M Q z c' := by
|
| 42 |
+
exact ⟨hc.trans h.1, hc.trans h.2⟩
|
| 43 |
+
|
| 44 |
+
def decrease (ell A t g theta V : ℝ) : ℝ := ell + A + t + g - theta + V
|
| 45 |
+
|
| 46 |
+
def childF (F ell A t g theta V j delta : ℝ) : ℝ :=
|
| 47 |
+
F - decrease ell A t g theta V - 2 * ell + j + delta
|
| 48 |
+
|
| 49 |
+
def childM (M ell A t g theta V j eta : ℝ) : ℝ :=
|
| 50 |
+
M - 2 * decrease ell A t g theta V - 2 * ell + j + eta
|
| 51 |
+
|
| 52 |
+
theorem canonical_transition (F M ell A t g theta V j : ℝ) :
|
| 53 |
+
childF F ell A t g theta V j 0 - childM M ell A t g theta V j 0 =
|
| 54 |
+
F - M + decrease ell A t g theta V ∧
|
| 55 |
+
4 * childF F ell A t g theta V j 0 -
|
| 56 |
+
3 * childM M ell A t g theta V j 0 =
|
| 57 |
+
4 * F - 3 * M + 2 * (A + t + g - theta + V) + j := by
|
| 58 |
+
constructor <;> unfold childF childM decrease <;> ring
|
| 59 |
+
|
| 60 |
+
theorem child_margins_sharp {F M Q Q' z c ell A t g theta V j delta eta : ℝ}
|
| 61 |
+
(h : CanonicalMargins F M Q z c)
|
| 62 |
+
(hA : 0 ≤ A) (ht : 0 ≤ t) (hV : 0 ≤ V) (hj : 0 ≤ j)
|
| 63 |
+
(hgt : -2 * eta ≤ g - theta)
|
| 64 |
+
(hQ : Q' ≤ Q + decrease ell A t g theta V + 4 * eta) :
|
| 65 |
+
c + delta - 5 * eta ≤
|
| 66 |
+
childF F ell A t g theta V j delta -
|
| 67 |
+
childM M ell A t g theta V j eta - Q' - z ∧
|
| 68 |
+
c + 4 * delta - 7 * eta ≤
|
| 69 |
+
4 * childF F ell A t g theta V j delta -
|
| 70 |
+
3 * childM M ell A t g theta V j eta - 6 * z := by
|
| 71 |
+
obtain ⟨h₁, h₂⟩ := h
|
| 72 |
+
unfold childF childM decrease at *
|
| 73 |
+
constructor <;> linarith
|
| 74 |
+
|
| 75 |
+
theorem child_margins {F M Q Q' z c ell A t g theta V j delta eta : ℝ}
|
| 76 |
+
(h : CanonicalMargins F M Q z c)
|
| 77 |
+
(hA : 0 ≤ A) (ht : 0 ≤ t) (hV : 0 ≤ V) (hj : 0 ≤ j)
|
| 78 |
+
(hgt : -2 * eta ≤ g - theta) (hdelta : 0 ≤ delta) (heta : 0 ≤ eta)
|
| 79 |
+
(hQ : Q' ≤ Q + decrease ell A t g theta V + 4 * eta) :
|
| 80 |
+
CanonicalMargins (childF F ell A t g theta V j delta)
|
| 81 |
+
(childM M ell A t g theta V j eta) Q' z (c - 7 * eta) := by
|
| 82 |
+
obtain ⟨h₁, h₂⟩ := child_margins_sharp (delta := delta) h hA ht hV hj hgt hQ
|
| 83 |
+
constructor <;> linarith
|
| 84 |
+
|
| 85 |
+
theorem child_row_decrease {M ell A t g theta V j eta d : ℝ}
|
| 86 |
+
(hA : 0 ≤ A) (ht : 0 ≤ t) (hgt : -2 * eta ≤ g - theta)
|
| 87 |
+
(hj : j ≤ 2 * ell + 3 * eta) (hterminal : d ≤ ell + V)
|
| 88 |
+
(heta : eta ≤ d / 16) :
|
| 89 |
+
3 * d / 2 ≤ M - childM M ell A t g theta V j eta := by
|
| 90 |
+
unfold childM decrease
|
| 91 |
+
linarith
|
| 92 |
+
|
| 93 |
+
theorem childF_upper {F ell A t g theta V j delta eta : ℝ}
|
| 94 |
+
(hA : 0 ≤ A) (ht : 0 ≤ t) (hell : 0 ≤ ell) (hV : 0 ≤ V)
|
| 95 |
+
(hgt : -2 * eta ≤ g - theta) (hj : j ≤ 2 * ell + 3 * eta)
|
| 96 |
+
(hdelta : delta ≤ 6 * eta) :
|
| 97 |
+
childF F ell A t g theta V j delta ≤ F + 11 * eta := by
|
| 98 |
+
unfold childF decrease
|
| 99 |
+
linarith
|
| 100 |
+
|
| 101 |
+
theorem clipping_bounds {N eta : ℝ} (heta : 0 ≤ eta) (hN : -6 * eta ≤ N) :
|
| 102 |
+
0 ≤ max 0 N - N ∧ max 0 N - N ≤ 6 * eta := by
|
| 103 |
+
constructor
|
| 104 |
+
· exact sub_nonneg.mpr (le_max_right 0 N)
|
| 105 |
+
· rcases le_total 0 N with h | h
|
| 106 |
+
· rw [max_eq_right h]; linarith
|
| 107 |
+
· rw [max_eq_left h]; linarith
|
| 108 |
+
|
| 109 |
+
theorem step_energy_exponent {F Fc kappa lambda count delta eta tau pi eps : ℝ}
|
| 110 |
+
(hid : kappa + lambda + count + 2 * Fc = F)
|
| 111 |
+
(hdelta : delta ≤ 6 * eta) :
|
| 112 |
+
kappa + lambda + count + 2 * (Fc + delta) +
|
| 113 |
+
(9 / 2 + 18 + 11 / 2) * eta + tau + pi + eps ≤
|
| 114 |
+
F + 40 * eta + tau + pi + eps := by
|
| 115 |
+
linarith
|
| 116 |
+
|
| 117 |
+
def initialF (r z G P delta : ℝ) : ℝ := r + z - 2 * G - P + delta
|
| 118 |
+
|
| 119 |
+
def initialM (m r z G P eta tau : ℝ) : ℝ :=
|
| 120 |
+
2 * (r + z - 2 * G) - m - 2 * P + 6 * eta + tau
|
| 121 |
+
|
| 122 |
+
theorem initial_margins_sharp {m r z G P delta eta tau Q c₁ c₂ : ℝ}
|
| 123 |
+
(h₁ : r + 2 * z ≤ m - c₁) (h₂ : 2 * r + 8 * z ≤ 3 * m - c₂)
|
| 124 |
+
(hG : 0 ≤ G) (hP : -2 * eta ≤ P) (hQ : Q ≤ P + G + 3 * eta) :
|
| 125 |
+
c₁ + delta - 9 * eta - tau ≤
|
| 126 |
+
initialF r z G P delta - initialM m r z G P eta tau - Q - (z - G) ∧
|
| 127 |
+
c₂ + 4 * delta - 22 * eta - 3 * tau ≤
|
| 128 |
+
4 * initialF r z G P delta - 3 * initialM m r z G P eta tau -
|
| 129 |
+
6 * (z - G) := by
|
| 130 |
+
unfold initialF initialM
|
| 131 |
+
constructor <;> linarith
|
| 132 |
+
|
| 133 |
+
theorem initial_margins {m r z G P delta eta tau Q c₁ c₂ : ℝ}
|
| 134 |
+
(h₁ : r + 2 * z ≤ m - c₁) (h₂ : 2 * r + 8 * z ≤ 3 * m - c₂)
|
| 135 |
+
(hG : 0 ≤ G) (hP : -2 * eta ≤ P) (hQ : Q ≤ P + G + 3 * eta)
|
| 136 |
+
(hc : 0 ≤ min c₁ c₂) (hdelta : 0 ≤ delta) (heta : eta ≤ min c₁ c₂ / 100)
|
| 137 |
+
(htau : tau ≤ min c₁ c₂ / 100) :
|
| 138 |
+
CanonicalMargins (initialF r z G P delta)
|
| 139 |
+
(initialM m r z G P eta tau) Q (z - G) (3 * min c₁ c₂ / 4) := by
|
| 140 |
+
obtain ⟨ha, hb⟩ := initial_margins_sharp (delta := delta) (tau := tau) h₁ h₂ hG hP hQ
|
| 141 |
+
have hc₁ := min_le_left c₁ c₂
|
| 142 |
+
have hc₂ := min_le_right c₁ c₂
|
| 143 |
+
constructor <;> linarith
|
| 144 |
+
|
| 145 |
+
theorem initial_prefactor_identity (m r z G P : ℝ) :
|
| 146 |
+
(m - 2 * (r + z - 2 * G) + P) + P +
|
| 147 |
+
2 * initialF r z G P 0 = m := by
|
| 148 |
+
unfold initialF
|
| 149 |
+
ring
|
| 150 |
+
|
| 151 |
+
theorem initial_energy_exponent {m delta eta pi eps : ℝ}
|
| 152 |
+
(hdelta : delta ≤ 3 * eta) :
|
| 153 |
+
m + 3 * eta + 2 * eta + 2 * delta + pi + eps ≤
|
| 154 |
+
m + 11 * eta + pi + eps := by
|
| 155 |
+
linarith
|
| 156 |
+
|
| 157 |
+
theorem total_step_loss {D eta tau pi eps : ℝ}
|
| 158 |
+
(h₁ : D * eta ≤ eps / 160) (h₂ : D * tau ≤ eps / 4)
|
| 159 |
+
(h₃ : D * pi ≤ eps / 4) :
|
| 160 |
+
D * (40 * eta + tau + pi) ≤ 3 * eps / 4 := by
|
| 161 |
+
nlinarith
|
| 162 |
+
|
| 163 |
+
theorem depth_margin {c D h eta : ℝ} (heta : 0 ≤ eta) (hh : h ≤ D)
|
| 164 |
+
(hbudget : D * eta ≤ c / 14) : c / 2 ≤ c - 7 * h * eta := by
|
| 165 |
+
have := mul_le_mul_of_nonneg_right hh heta
|
| 166 |
+
nlinarith
|
| 167 |
+
|
| 168 |
+
end SevenEighths.InverseMoment
|
| 169 |
+
|
| 170 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/Canonical.lean
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.Poisson
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.Completion
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace SevenEighths.InverseMoment
|
| 7 |
+
open scoped BigOperators Classical SchwartzMap
|
| 8 |
+
open ActualEisensteinCubic CompletedGauss FirstPassCubeLabels SecondPassArithmetic
|
| 9 |
+
noncomputable section
|
| 10 |
+
local notation "Eis" => ActualEisensteinCubic.O
|
| 11 |
+
variable {ι σ : Type*} [DecidableEq ι] [DecidableEq σ]
|
| 12 |
+
(p : ι → Eis) (hp : ∀ i, p i ≠ 0) [∀ i, (Ideal.span {p i}).IsMaximal]
|
| 13 |
+
(hcop : Pairwise (Function.onFun IsCoprime (fun i => Ideal.span {p i})))
|
| 14 |
+
(hg : ∀ i, ConcretePrimeRowBridge.goodLambda ∉ Ideal.span {p i})
|
| 15 |
+
|
| 16 |
+
def finiteCanonicalMarkedRow (pool : Finset ι) (Ψ : Eis →* ℂ) (m f k : Eis)
|
| 17 |
+
(slots : Finset σ) (lists : σ → Finset ι) (a : σ → ι → ℂ)
|
| 18 |
+
(W : ℝ → ℂ) (X : ℝ) : ℂ :=
|
| 19 |
+
fixedChildRow p hp hcop hg pool Ψ m
|
| 20 |
+
(fun U => primeMark slots lists a U * W (primeProductNorm p U / X)) f k
|
| 21 |
+
|
| 22 |
+
omit [DecidableEq σ] in
|
| 23 |
+
theorem finiteCanonicalMarkedRow_actual_columns
|
| 24 |
+
(hpr : ∀ i, ConcretePrimeRowBridge.goodLambda ^ 2 ∣ p i - 1)
|
| 25 |
+
(pool : Finset ι) (Ψ : Eis →* ℂ) (m f k : Eis)
|
| 26 |
+
(slots : Finset σ) (lists : σ → Finset ι) (a : σ → ι → ℂ)
|
| 27 |
+
(W : ℝ → ℂ) (X : ℝ) :
|
| 28 |
+
finiteCanonicalMarkedRow p hp hcop hg pool Ψ m f k slots lists a W X =
|
| 29 |
+
∑ U ∈ pool.powerset,
|
| 30 |
+
columnWeight (CanonicalRowCompletion.rowTwist Ψ m f k)
|
| 31 |
+
(Ideal.span {∏ i ∈ U, p i}) *
|
| 32 |
+
(primeMark slots lists a U * W (primeProductNorm p U / X)) := by
|
| 33 |
+
unfold finiteCanonicalMarkedRow fixedChildRow
|
| 34 |
+
apply Finset.sum_congr rfl
|
| 35 |
+
intro U hU
|
| 36 |
+
have he := CanonicalRowCompletion.columnWeight_finset p hp hcop hg hpr U Ψ m f k
|
| 37 |
+
(fun U => primeMark slots lists a U * W (primeProductNorm p U / X))
|
| 38 |
+
symm
|
| 39 |
+
convert he using 1 ; simp only [secondChildColumn, canonicalSourceCoefficient] ; ring
|
| 40 |
+
|
| 41 |
+
theorem secondChildSum_marked_canonical
|
| 42 |
+
(F V A : Finset ι) (Ψ : Eis →* ℂ) (m r c d e k : Eis)
|
| 43 |
+
(slots : Finset σ) (lists : σ → Finset ι) (a : σ → ι → ℂ)
|
| 44 |
+
(W : ℝ → ℂ) (X : ℝ) :
|
| 45 |
+
secondChildSum p hp hcop hg F V Ψ m r c d e k
|
| 46 |
+
(fun U => primeMark slots lists a (A ∪ U) * W (primeProductNorm p U / X)) =
|
| 47 |
+
∑ J ∈ slots.powerset, primeMark J lists a (A ∪ V) *
|
| 48 |
+
finiteCanonicalMarkedRow p hp hcop hg (F \ V) Ψ (m * r)
|
| 49 |
+
(c * e * ∏ i ∈ V, p i) (d * e * k)
|
| 50 |
+
(slots \ J) (fun i => lists i \ (A ∪ V)) a W (X / primeProductNorm p V) := by
|
| 51 |
+
unfold secondChildSum finiteCanonicalMarkedRow fixedChildRow
|
| 52 |
+
simp only [Finset.mul_sum]
|
| 53 |
+
rw [Finset.sum_comm]
|
| 54 |
+
apply Finset.sum_congr rfl
|
| 55 |
+
intro N hN
|
| 56 |
+
have hd : Disjoint V N := Finset.disjoint_left.mpr (fun i hi hn =>
|
| 57 |
+
(Finset.mem_sdiff.mp (Finset.mem_powerset.mp hN hn)).2 hi)
|
| 58 |
+
have hn : primeProductNorm p (V ∪ N) / X = primeProductNorm p N / (X / primeProductNorm p V) := by
|
| 59 |
+
rw [primeProductNorm_union p V N hd]
|
| 60 |
+
simp only [div_div_eq_mul_div]
|
| 61 |
+
ring
|
| 62 |
+
have hmark := primeMark_priority slots lists a (A ∪ V) N
|
| 63 |
+
simp only [primeMark_residual_lists] at hmark
|
| 64 |
+
simp only [secondChildColumn, ← Finset.union_assoc, hn]
|
| 65 |
+
rw [hmark]
|
| 66 |
+
simp only [Finset.sum_mul, Finset.mul_sum]
|
| 67 |
+
apply Finset.sum_congr rfl
|
| 68 |
+
intro J hJ
|
| 69 |
+
ring
|
| 70 |
+
|
| 71 |
+
omit [DecidableEq σ] in
|
| 72 |
+
theorem finiteCanonicalMarkedRow_restore_pool
|
| 73 |
+
(pool B : Finset ι) (Ψ : Eis →* ℂ) (m f k : Eis)
|
| 74 |
+
(slots : Finset σ) (lists : σ → Finset ι) (a : σ → ι → ℂ)
|
| 75 |
+
(W : ℝ → ℂ) (X : ℝ)
|
| 76 |
+
(hB : ∀ i ∈ B, m * f ∈ Ideal.span {p i}) :
|
| 77 |
+
finiteCanonicalMarkedRow p hp hcop hg (pool \ B) Ψ m f k slots lists a W X =
|
| 78 |
+
finiteCanonicalMarkedRow p hp hcop hg pool Ψ m f k slots lists a W X :=
|
| 79 |
+
fixedChildRow_restore_killed_pool p hp hcop hg pool B Ψ m f k _ hB
|
| 80 |
+
|
| 81 |
+
omit [DecidableEq σ] in
|
| 82 |
+
theorem finiteCanonicalMarkedRow_restore_lists
|
| 83 |
+
(pool B : Finset ι) (Ψ : Eis →* ℂ) (m f k : Eis)
|
| 84 |
+
(slots : Finset σ) (lists : σ → Finset ι) (a : σ → ι → ℂ)
|
| 85 |
+
(W : ℝ → ℂ) (X : ℝ)
|
| 86 |
+
(hB : ∀ i ∈ B, m * f ∈ Ideal.span {p i}) :
|
| 87 |
+
finiteCanonicalMarkedRow p hp hcop hg pool Ψ m f k slots (fun i => lists i \ B) a W X =
|
| 88 |
+
finiteCanonicalMarkedRow p hp hcop hg pool Ψ m f k slots lists a W X := by
|
| 89 |
+
unfold finiteCanonicalMarkedRow fixedChildRow
|
| 90 |
+
apply Finset.sum_congr rfl
|
| 91 |
+
intro U hU
|
| 92 |
+
by_cases hd : Disjoint B U
|
| 93 |
+
· have he : U \ B = U := Finset.sdiff_eq_self_of_disjoint hd.symm
|
| 94 |
+
simp only [secondChildColumn, ← primeMark_residual_lists, he]
|
| 95 |
+
· obtain ⟨i, hiB, hiU⟩ := Finset.not_disjoint_iff.mp hd
|
| 96 |
+
rw [secondChildColumn_zero_of_mask_label_mem p hp hcop hg Ψ m f k _ U i hiU (hB i hiB),
|
| 97 |
+
secondChildColumn_zero_of_mask_label_mem p hp hcop hg Ψ m f k _ U i hiU (hB i hiB)]
|
| 98 |
+
|
| 99 |
+
theorem secondChildSum_marked_fixed_pool
|
| 100 |
+
(F V A : Finset ι) (Ψ : Eis →* ℂ) (m r c d e k : Eis)
|
| 101 |
+
(slots : Finset σ) (lists : σ → Finset ι) (a : σ → ι → ℂ)
|
| 102 |
+
(W : ℝ → ℂ) (X : ℝ) :
|
| 103 |
+
secondChildSum p hp hcop hg F V Ψ m r c d e k
|
| 104 |
+
(fun U => primeMark slots lists a (A ∪ U) * W (primeProductNorm p U / X)) =
|
| 105 |
+
∑ J ∈ slots.powerset, primeMark J lists a (A ∪ V) *
|
| 106 |
+
finiteCanonicalMarkedRow p hp hcop hg F Ψ (m * r)
|
| 107 |
+
(c * e * ∏ i ∈ V, p i) (d * e * k)
|
| 108 |
+
(slots \ J) (fun i => lists i \ A) a W (X / primeProductNorm p V) := by
|
| 109 |
+
rw [secondChildSum_marked_canonical]
|
| 110 |
+
apply Finset.sum_congr rfl
|
| 111 |
+
intro J hJ
|
| 112 |
+
congr 1
|
| 113 |
+
have hV (i : ι) (hi : i ∈ V) : (m * r) * (c * e * ∏ j ∈ V, p j) ∈ Ideal.span {p i} :=
|
| 114 |
+
Ideal.mem_span_singleton.mpr (dvd_mul_of_dvd_right
|
| 115 |
+
(dvd_mul_of_dvd_right (Finset.dvd_prod_of_mem p hi) (c * e)) (m * r))
|
| 116 |
+
rw [finiteCanonicalMarkedRow_restore_pool p hp hcop hg F V Ψ (m * r)
|
| 117 |
+
(c * e * ∏ i ∈ V, p i) (d * e * k) _ _ _ _ _ hV]
|
| 118 |
+
have hlists : (fun i => lists i \ (A ∪ V)) = (fun i => (lists i \ A) \ V) := by
|
| 119 |
+
funext i
|
| 120 |
+
ext x
|
| 121 |
+
simp only [Finset.mem_sdiff, Finset.mem_union]
|
| 122 |
+
tauto
|
| 123 |
+
rw [hlists]
|
| 124 |
+
exact finiteCanonicalMarkedRow_restore_lists p hp hcop hg F V Ψ (m * r)
|
| 125 |
+
(c * e * ∏ i ∈ V, p i) (d * e * k) _ _ _ _ _ hV
|
| 126 |
+
|
| 127 |
+
end
|
| 128 |
+
end SevenEighths.InverseMoment
|
| 129 |
+
|
| 130 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalChildSupport.lean
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstCanonicalChildren
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
open scoped Classical BigOperators
|
| 7 |
+
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
open ActualEisensteinCubic FirstPassCubeLabels SecondPassArithmetic CanonicalQuadraticSieve
|
| 10 |
+
open InverseInitialArithmetic InverseSecondSourceBlocks InverseSecondFibers
|
| 11 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 12 |
+
variable {ι:Type*}[DecidableEq ι](p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 13 |
+
variable (hg:∀i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i})
|
| 14 |
+
variable (hc:∀i,ringChar (O⧸Ideal.span {p i})≠2)
|
| 15 |
+
|
| 16 |
+
include hp hg hc in
|
| 17 |
+
omit [DecidableEq ι] in
|
| 18 |
+
lemma canonical_source_prime_supported (i:ι):Supported (Ideal.span {p i}) :=by
|
| 19 |
+
have hn:(Ideal.span {p i}:Ideal O)≠0:=Ideal.span_singleton_eq_bot.not.mpr (hp i)
|
| 20 |
+
refine ⟨hn,?_⟩
|
| 21 |
+
intro P hP
|
| 22 |
+
obtain ⟨hprime,hle⟩:=(Ideal.mem_normalizedFactors_iff hn).mp hP
|
| 23 |
+
have he:Ideal.span {p i}=P:=(inferInstance:(Ideal.span {p i}:Ideal O).IsMaximal).eq_of_le hprime.ne_top hle
|
| 24 |
+
subst P
|
| 25 |
+
exact ⟨hg i,hc i⟩
|
| 26 |
+
|
| 27 |
+
lemma canonical_supported_prod {α:Type*}(S:Finset α)(f:α→Ideal O)
|
| 28 |
+
(hf:∀i∈S,Supported (f i)):Supported (∏i∈S,f i) :=by
|
| 29 |
+
classical
|
| 30 |
+
induction S using Finset.induction_on with
|
| 31 |
+
| empty =>
|
| 32 |
+
change Supported (1:Ideal O)
|
| 33 |
+
refine ⟨one_ne_zero,?_⟩
|
| 34 |
+
intro P hP
|
| 35 |
+
rw [UniqueFactorizationMonoid.normalizedFactors_one] at hP
|
| 36 |
+
exact (Multiset.notMem_zero P hP).elim
|
| 37 |
+
| @insert i S hi ih =>
|
| 38 |
+
rw [Finset.prod_insert hi,supported_mul_iff]
|
| 39 |
+
exact ⟨hf i (Finset.mem_insert_self _ _),ih (fun j hj=>hf j (Finset.mem_insert_of_mem hj))⟩
|
| 40 |
+
|
| 41 |
+
include hp hg hc in
|
| 42 |
+
omit [DecidableEq ι] in
|
| 43 |
+
lemma canonical_source_ideal_supported (S:Finset ι):Supported (sourceIdeal p S) :=by
|
| 44 |
+
rw [sourceIdeal,FiniteGaussPhase.span_finset_prod]
|
| 45 |
+
exact canonical_supported_prod S (fun i=>Ideal.span {p i}) (fun i _=>canonical_source_prime_supported p hp hg hc i)
|
| 46 |
+
|
| 47 |
+
include hp hg hc in
|
| 48 |
+
omit [DecidableEq ι] in
|
| 49 |
+
lemma canonical_prime_product_supported (S:Finset ι)(v:ι→ℕ):Supported (Ideal.span {primeProduct p S v}) :=by
|
| 50 |
+
rw [primeProduct,FiniteGaussPhase.span_finset_prod]
|
| 51 |
+
apply canonical_supported_prod
|
| 52 |
+
intro i hi
|
| 53 |
+
rw [←Ideal.span_singleton_pow]
|
| 54 |
+
exact supported_pow (canonical_source_prime_supported p hp hg hc i) _
|
| 55 |
+
|
| 56 |
+
include hp hg hc in
|
| 57 |
+
lemma actual_second_label_supported {Jo Jn:ℕ}(x:MarkedSecondSource ι Jo Jn):
|
| 58 |
+
Supported (actualSecondChild p 1 1 x).2.1 :=by
|
| 59 |
+
change Supported ((Ideal.span {jLabel p x.cube.support
|
| 60 |
+
(fun i=>x.cube.leftExponent i+x.cube.rightExponent i) x.cube.leftBit x.cube.rightBit})*
|
| 61 |
+
sourceIdeal p x.firstCommon*sourceIdeal p x.second.divisor*sourceIdeal p x.second.overlap)
|
| 62 |
+
simp only [supported_mul_iff]
|
| 63 |
+
exact ⟨⟨⟨canonical_prime_product_supported p hp hg hc _ _,canonical_source_ideal_supported p hp hg hc _⟩,
|
| 64 |
+
canonical_source_ideal_supported p hp hg hc _⟩,canonical_source_ideal_supported p hp hg hc _⟩
|
| 65 |
+
|
| 66 |
+
include hp hg hc in
|
| 67 |
+
theorem actual_cell_labels_supported {Jo Jn:ℕ}(S:Finset (MarkedSecondSource ι Jo Jn))(d:BlockIndex):
|
| 68 |
+
∀I∈actualCellLabels p S d,Supported I :=by
|
| 69 |
+
intro I hI
|
| 70 |
+
obtain ⟨x,hx,rfl⟩:=Finset.mem_image.mp hI
|
| 71 |
+
exact actual_second_label_supported p hp hg hc x
|
| 72 |
+
|
| 73 |
+
include hp hg hc in
|
| 74 |
+
theorem actual_cell_labels_admissible {Jo Jn:ℕ}(S:Finset (MarkedSecondSource ι Jo Jn))(d:BlockIndex):
|
| 75 |
+
∀I∈(actualCellLabels p S d).filter Squarefree,CanonicalQuadraticSieve.Admissible I :=by
|
| 76 |
+
intro I hI
|
| 77 |
+
obtain ⟨hm,hs⟩:=Finset.mem_filter.mp hI
|
| 78 |
+
have hh:=actual_cell_labels_supported p hp hg hc S d I hm
|
| 79 |
+
exact ⟨hh.1,hs,hh.2⟩
|
| 80 |
+
|
| 81 |
+
end SevenEighths.InverseMoment
|
| 82 |
+
|
| 83 |
+
end
|
| 84 |
+
|
| 85 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalCompleteBudget.lean
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongCosts
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.RecursionParameters
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
|
| 10 |
+
theorem actual_complete_step_cost (L eta epsChild:ℝ)(hL:0≤L)(heta:0<eta)
|
| 11 |
+
(heta1:eta≤1)(heps:0≤epsChild):
|
| 12 |
+
3*eta+firstPassEpsilon L eta*(2*L+7*eta)≤epsChild+60*eta ∧
|
| 13 |
+
2*L*firstPassEpsilon L eta≤eta ∧
|
| 14 |
+
(epsChild+60*eta)+2*L*firstPassEpsilon L eta+eta≤epsChild+62*eta := by
|
| 15 |
+
have hd:0<10*L+32:=by positivity
|
| 16 |
+
have hp:0<firstPassEpsilon L eta:=div_pos heta hd
|
| 17 |
+
have he:firstPassEpsilon L eta*(10*L+32)=eta:=by unfold firstPassEpsilon;field_simp
|
| 18 |
+
have hb:2*L+7*eta≤10*L+32:=by linarith
|
| 19 |
+
have hc:=mul_le_mul_of_nonneg_left hb hp.le
|
| 20 |
+
have hl:=mul_le_mul_of_nonneg_left (show 2*L≤10*L+32 by linarith) hp.le
|
| 21 |
+
constructor
|
| 22 |
+
· nlinarith
|
| 23 |
+
constructor <;> nlinarith
|
| 24 |
+
|
| 25 |
+
theorem actual_complete_height_merge (dshort dlong:ℕ)(Z F cstar loss Cs Cb A theta:ℝ)
|
| 26 |
+
(hZ:1≤Z)(hcstar:0≤cstar)(hloss:0≤loss)(hCs:0≤Cs)(hCb:0≤Cb)(hA:0≤A):
|
| 27 |
+
Cs*(1+‖theta‖)^dshort*Z^(F-cstar/256)+
|
| 28 |
+
Cb*(1+A)*(1+‖theta‖)^dlong*Z^(F+loss)≤
|
| 29 |
+
(Cs+Cb)*(1+A)*(1+‖theta‖)^(max dshort dlong)*Z^(F+loss) := by
|
| 30 |
+
have hp:1≤1+‖theta‖:=by linarith [norm_nonneg theta]
|
| 31 |
+
have hshort:(1+‖theta‖)^dshort≤(1+‖theta‖)^(max dshort dlong):=
|
| 32 |
+
pow_le_pow_right₀ hp (le_max_left _ _)
|
| 33 |
+
have hlong:(1+‖theta‖)^dlong≤(1+‖theta‖)^(max dshort dlong):=
|
| 34 |
+
pow_le_pow_right₀ hp (le_max_right _ _)
|
| 35 |
+
have hz:0<Z:=zero_lt_one.trans_le hZ
|
| 36 |
+
have hs:Z^(F-cstar/256)≤Z^(F+loss):=
|
| 37 |
+
Real.rpow_le_rpow_of_exponent_le hZ (by linarith)
|
| 38 |
+
have hs':Cs*(1+‖theta‖)^dshort*Z^(F-cstar/256)≤
|
| 39 |
+
Cs*(1+A)*(1+‖theta‖)^(max dshort dlong)*Z^(F+loss):=by
|
| 40 |
+
calc
|
| 41 |
+
_≤Cs*(1+‖theta‖)^(max dshort dlong)*Z^(F+loss):=by gcongr
|
| 42 |
+
_≤_:=by
|
| 43 |
+
have hh:Cs≤Cs*(1+A):=by nlinarith
|
| 44 |
+
exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hh (by positivity)) (by positivity)
|
| 45 |
+
have hl':Cb*(1+A)*(1+‖theta‖)^dlong*Z^(F+loss)≤
|
| 46 |
+
Cb*(1+A)*(1+‖theta‖)^(max dshort dlong)*Z^(F+loss):=by gcongr
|
| 47 |
+
have hh:=add_le_add hs' hl'
|
| 48 |
+
convert hh using 1 ; ring
|
| 49 |
+
|
| 50 |
+
end SevenEighths.InverseMoment
|
| 51 |
+
|
| 52 |
+
end
|
| 53 |
+
|
| 54 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalCompleteChildren.lean
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongCosts
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongHeightBin
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
open scoped BigOperators Classical SchwartzMap ContDiff
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open MeasureTheory ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 11 |
+
open CanonicalQuadraticSieve CanonicalCubeSeparation FirstPassCubeLabels SecondPassArithmetic
|
| 12 |
+
open InverseMomentFirstLabelCell InverseMomentFirstSecondHeightCost CompletedHeight
|
| 13 |
+
open FourierBridge JointLogSeparation InverseReflectedPhase InverseTerminalWidths InverseSecondFibers
|
| 14 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 15 |
+
|
| 16 |
+
theorem actual_complete_state_from_children
|
| 17 |
+
(lo hi:ℝ)(hlo:0<lo)(hhi:0≤hi)(W:ℝ→ℂ)
|
| 18 |
+
(hsW:Function.support W⊆Set.Icc lo hi)(hW:ContDiff ℝ ∞ W)
|
| 19 |
+
(Vlog:𝓢(ℝ,ℂ))(Alog:ℝ)(hbox:∀x,Vlog x≠0 → |x|≤Alog)
|
| 20 |
+
(hone:∀x,|x|≤columnWindowRadius lo hi → Vlog x=1)
|
| 21 |
+
(L cstar eta tau saving em ed eps:ℝ)(hL:1≤L)(hcstar:0<cstar)(heta:0<eta)
|
| 22 |
+
(heta1:eta≤1)(hetac:eta≤cstar/100000)(htau:0<tau)(htau1:tau≤1)
|
| 23 |
+
(hem:0<em)(hed:0<ed)(heps:0<eps)(K:ℕ):
|
| 24 |
+
∃(ω₁₁ ω₁₂ ω₂₁ ω₂₂:𝓢(ℝ,ℂ))(af₁ bf₁ af₂ bf₂ window bw:ℝ)(shortDegree:ℕ),
|
| 25 |
+
0<af₁ ∧ af₁≤bf₁ ∧ 0<af₂ ∧ af₂≤bf₂ ∧
|
| 26 |
+
HasCompactSupport (ω₁₁:ℝ→ℂ) ∧ HasCompactSupport (ω₁₂:ℝ→ℂ) ∧
|
| 27 |
+
HasCompactSupport (ω₂₁:ℝ→ℂ) ∧ HasCompactSupport (ω₂₂:ℝ→ℂ) ∧
|
| 28 |
+
tsupport (ω₁₁:ℝ→ℂ)⊆Set.Icc af₁ bf₁ ∧ tsupport (ω₁₂:ℝ→ℂ)⊆Set.Icc af₁ bf₁ ∧
|
| 29 |
+
tsupport (ω₂₁:ℝ→ℂ)⊆Set.Icc af₂ bf₂ ∧ tsupport (ω₂₂:ℝ→ℂ)⊆Set.Icc af₂ bf₂ ∧
|
| 30 |
+
1≤bw ∧ Real.exp Alog≤bw ∧ bw=Real.exp window ∧
|
| 31 |
+
∀epsFirst epsSecond:ℝ,0<epsFirst → 0<epsSecond → ∀degree:ℕ,
|
| 32 |
+
∀(q:ℕ)(hq:q≠0),∃Cs Cb Z₀:ℝ,0<Cs ∧ 0≤Cb ∧ 1<Z₀ ∧
|
| 33 |
+
∀{σ:Type}[DecidableEq σ](m:O),m≠0 →
|
| 34 |
+
∀Z N V M z₀ margin cutoff pi epschild A loss lossFinal theta:ℝ,
|
| 35 |
+
Z₀≤Z → 2≤Z → 2≤Z^eta → Real.exp 1≤Z^eta → 1≤eta*Real.log Z →
|
| 36 |
+
0≤N → 0≤V → 0≤M → N+V≤L → M≤N+V → z₀≤L →
|
| 37 |
+
hi≤Z^eta → Real.exp Alog≤Z^eta → Real.exp window≤Z^eta →
|
| 38 |
+
0≤cutoff → cutoff≤L → cutoff≤cstar/200 →
|
| 39 |
+
(Ideal.absNorm (Ideal.span {m}):ℝ)≤Z^L →
|
| 40 |
+
CanonicalMargins (N+V) M (normWidth Z (Ideal.span {m})) z₀ margin → cstar/2≤margin →
|
| 41 |
+
0≤pi → 6*eta≤pi → em*(20*(3*L+16)+30)≤pi/4 → ed*(20*(3*L+16)+30)≤pi/4 →
|
| 42 |
+
0≤epschild → -saving≤48*eta+tau+pi+epschild+epsSecond →
|
| 43 |
+
48*eta+tau+pi+epschild+epsSecond≤loss →
|
| 44 |
+
3*eta+epsFirst*(2*L+7*eta)≤lossFinal →
|
| 45 |
+
loss+(2*L+15*eta+tau)*epsFirst+epsFirst≤lossFinal → -saving≤lossFinal →
|
| 46 |
+
0≤A →
|
| 47 |
+
∀labels:Finset (Ideal O),(∀I∈labels,Supported I ∧ Squarefree I ∧ (I.absNorm:ℝ)≤Z^V) →
|
| 48 |
+
∀D:ℕ,hi*Z^N≤D → ∀slots:Finset σ,slots.card≤K →
|
| 49 |
+
∀(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)))(H:σ→ℝ),
|
| 50 |
+
(slots:Set σ).PairwiseDisjoint lists →
|
| 51 |
+
(∀i∈slots,1≤H i) → (∀i∈slots,∀P∈lists i,(Ideal.absNorm P.val:ℝ)≤H i) → (∏i∈slots,H i)≤Z^z₀ →
|
| 52 |
+
∀(Ψ:O→*ℂ),(∀u,‖Ψ u‖≤1) →
|
| 53 |
+
CanonicalCoefficientClass.FactorsModulo (CanonicalCoefficientClass.fixedBaseConductor q) Ψ →
|
| 54 |
+
∀a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)→ℂ,
|
| 55 |
+
(∀i∈slots,∀P∈lists i,‖a i P‖≤1) →
|
| 56 |
+
let S:=reflectionExcludedPrimes q;
|
| 57 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D;
|
| 58 |
+
let hF:=InitialMeanSquare.outsideSquarefree_admissible S D (reflectionExcludedPrimes_bad q);
|
| 59 |
+
letI : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=fun i=>by rw [poolPrimary_span F hF i];infer_instance;
|
| 60 |
+
let om:=radialFromLog Vlog (Vlog.smooth ⊤) Alog hbox;
|
| 61 |
+
(∀j∈cubeLogRange hi (Z^N),
|
| 62 |
+
let ell:=actualCubeLength Z j;
|
| 63 |
+
let Q:=progressingCubes S D (Z^(cutoff-V)) (activeCubeLogBin S D hi (Z^N) j);
|
| 64 |
+
Q.Nonempty → ∀ξ:ℝ,∀k∈actualLongSourceKeys (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 65 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) Finset.univ Q labels Ψ m (m*excludedGenerator S)
|
| 66 |
+
slots lists a om Z M (N-3*ell) ell V (Z^(cutoff-V)) ξ L eta tau,
|
| 67 |
+
ChildBounds (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 68 |
+
(poolPrimary_good F hF) Finset.univ Q k.1 k.2.1 k.2.2 true Ψ m slots lists a ω₁₁ ω₁₂
|
| 69 |
+
Z M (N-3*ell) ell V eta tau window bw epschild A K degree) →
|
| 70 |
+
(∀j∈cubeLogRange hi (Z^N),
|
| 71 |
+
let ell:=actualCubeLength Z j;
|
| 72 |
+
let Q:=progressingCubes S D (Z^(cutoff-V)) (activeCubeLogBin S D hi (Z^N) j);
|
| 73 |
+
Q.Nonempty → ∀ξ:���,∀k∈actualLongSourceKeys (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 74 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) Finset.univ Q labels Ψ m (m*excludedGenerator S)
|
| 75 |
+
slots lists a om Z M (N-3*ell) ell V (Z^(cutoff-V)) ξ L eta tau,
|
| 76 |
+
ChildBounds (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 77 |
+
(poolPrimary_good F hF) Finset.univ Q k.1 k.2.1 k.2.2 false Ψ m slots lists a ω₂₁ ω₂₂
|
| 78 |
+
Z M (N-3*ell) ell V eta tau window bw epschild A K degree) →
|
| 79 |
+
Z^(-(N+V))*(∑I∈labels,secondLabelWeight K I*∑z∈nonzeroChildFrequencyBall 1 (Z^M),
|
| 80 |
+
‖outsideCanonicalMarkedRow S D (reflectionExcludedPrimes_bad q) Ψ m (idealGenerator I) z
|
| 81 |
+
slots lists a (normTwistedSource W theta) (Z^N)‖^2)≤
|
| 82 |
+
Cs*(1+‖theta‖)^shortDegree*Z^(N+V-cstar/256)+
|
| 83 |
+
Cb*(1+A)*(1+‖theta‖)^(2*(InverseClippingProfiles.momentOrder (firstDegree degree)+(volume:Measure ℝ).integrablePower))*
|
| 84 |
+
Z^(N+V+lossFinal+2*L*epsFirst+eps) := by
|
| 85 |
+
have hL0:0≤L:=by linarith
|
| 86 |
+
obtain ⟨w11,w12,w21,w22,af1,bf1,af2,bf2,window,bw,ha1,hab1,ha2,hab2,
|
| 87 |
+
hw11,hw12,hw21,hw22,hs11,hs12,hs21,hs22,hbw,hbA,hbexp,hbin⟩:=
|
| 88 |
+
actual_marked_bin_height lo hi hlo hhi W hsW hW Vlog Alog hbox hone L eta tau saving em ed
|
| 89 |
+
hL0 heta.le heta1 htau htau1 hem hed K
|
| 90 |
+
obtain ⟨ds,hstate⟩:=actual_complete_state_from_live_bins lo hi hlo hhi W hsW hW L cstar eta eps
|
| 91 |
+
hL0 hcstar heta heta1 hetac heps K K
|
| 92 |
+
refine ⟨w11,w12,w21,w22,af1,bf1,af2,bf2,window,bw,ds,ha1,hab1,ha2,hab2,
|
| 93 |
+
hw11,hw12,hw21,hw22,hs11,hs12,hs21,hs22,hbw,hbA,hbexp,?_⟩
|
| 94 |
+
intro epsFirst epsSecond heF heS degree q hq
|
| 95 |
+
obtain ⟨Ccoef,C,hcoef,hC,hbin⟩:=hbin epsFirst epsSecond heF heS degree
|
| 96 |
+
obtain ⟨Cs,Z₀,hCs,hZ₀,hstate⟩:=hstate q hq
|
| 97 |
+
let Cb:=C*Ccoef^2*Real.exp (2*epsFirst)
|
| 98 |
+
refine ⟨Cs,Cs*Cb,Z₀,hCs,by dsimp [Cb];positivity,hZ₀,?_⟩
|
| 99 |
+
intro σ _ m hm Z N V M z₀ margin cutoff pi epschild A loss lossFinal theta hZ hZ2 h2 hExp hlog
|
| 100 |
+
hN hV hM hFcap hMF hzcap hbZ hAZ hwin hcut hcutL hcutc hmN hmargin hreserve
|
| 101 |
+
hpi hpieta hemc hedc hechild hsave hloss hprincipal hretained htail hA
|
| 102 |
+
labels hlabels D hD slots hcard lists H hdis hH1 hH hprod Ψ hΨ hperiod a ha
|
| 103 |
+
dsimp only
|
| 104 |
+
intro hleft hright
|
| 105 |
+
have hz:0<Z:=by linarith
|
| 106 |
+
have hZ1:1≤Z:=by linarith
|
| 107 |
+
let d:=2*(InverseClippingProfiles.momentOrder (firstDegree degree)+(volume:Measure ℝ).integrablePower)
|
| 108 |
+
let E:=Cb*(1+A)*Z^(N+V+lossFinal+2*L*epsFirst)*(1+‖theta‖)^d
|
| 109 |
+
have hE:0≤E:=by dsimp [E,Cb];positivity
|
| 110 |
+
have hbins:∀j∈cubeLogRange hi (Z^N),
|
| 111 |
+
(progressingCubes (reflectionExcludedPrimes q) D (Z^(cutoff-V))
|
| 112 |
+
(activeCubeLogBin (reflectionExcludedPrimes q) D hi (Z^N) j)).Nonempty →
|
| 113 |
+
Z^(-V)*rowFamilyEnergy labels (fun I z=>markedReopenedCubeBin (reflectionExcludedPrimes q) D
|
| 114 |
+
(progressingCubes (reflectionExcludedPrimes q) D (Z^(cutoff-V))
|
| 115 |
+
(activeCubeLogBin (reflectionExcludedPrimes q) D hi (Z^N) j))
|
| 116 |
+
Ψ m (idealGenerator I) z (normTwistedSource W theta) (Z^N) (Z^(cutoff-V)) slots lists a) (Z^M)≤E := by
|
| 117 |
+
intro j hj hne
|
| 118 |
+
let ell:=actualCubeLength Z j
|
| 119 |
+
let S:=reflectionExcludedPrimes q
|
| 120 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 121 |
+
have hF:=InitialMeanSquare.outsideSquarefree_admissible S D (reflectionExcludedPrimes_bad q)
|
| 122 |
+
let : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 123 |
+
let Q:=progressingCubes S D (Z^(cutoff-V)) (activeCubeLogBin S D hi (Z^N) j)
|
| 124 |
+
obtain ⟨hel,hr,hrL,helL,hFL,hgap,hqn⟩:=actual_long_bin_geometry S D (reflectionExcludedPrimes_bad q)
|
| 125 |
+
hi Z N V cutoff eta L j (by linarith) hL heta1 hV hFcap hbZ hlog hne
|
| 126 |
+
have hsN:(N-3*ell)+3*ell=N:=by ring
|
| 127 |
+
have hpr:3*eta+epsFirst*(5*ell+2*(N-3*ell)+7*eta)≤lossFinal:=by
|
| 128 |
+
have hNL:N≤L:=by linarith
|
| 129 |
+
nlinarith
|
| 130 |
+
have hh:=hbin theta S D (reflectionExcludedPrimes_bad q) (reflectionExcludedPrimes_prime q)
|
| 131 |
+
Q labels Ψ m slots lists a Z M (N-3*ell) ell V (Z^(cutoff-V)) pi epschild A loss lossFinal
|
| 132 |
+
hZ2 h2 hExp hM hFL (by linarith) hel hV hr hAZ
|
| 133 |
+
(by intro v hv;rw [←cubeIdeal_primeProduct_norm F hF];exact (hqn v hv).1)
|
| 134 |
+
(by intro v hv;rw [←cubeIdeal_primeProduct_norm F hF];exact (hqn v hv).2)
|
| 135 |
+
hrL helL (by linarith) hwin hpi hpieta hemc hedc hechild (by linarith) hloss hcard
|
| 136 |
+
(by linarith) hpr hretained (by linarith) hΨ hA
|
| 137 |
+
(fun I hI=>(hlabels I hI).2.1) (fun I hI=>(hlabels I hI).1.1)
|
| 138 |
+
(fun I hI=>((hlabels I hI).2.2).trans (Real.rpow_le_rpow_of_exponent_le hZ1 (by linarith)))
|
| 139 |
+
hdis ha (by simpa only [hsN] using hD) (hleft j hj hne) (hright j hj hne)
|
| 140 |
+
rw [hsN] at hh
|
| 141 |
+
apply hh.trans
|
| 142 |
+
have hc:=mul_le_mul_of_nonneg_right
|
| 143 |
+
(actual_long_uniform_parent_cost Z ell N V L epsFirst Ccoef C A lossFinal hZ1 helL heF.le hC hA)
|
| 144 |
+
(show 0≤(1+‖theta‖)^d by positivity)
|
| 145 |
+
simpa only [hsN] using hc
|
| 146 |
+
have hs:=hstate m hm Z N V M z₀ margin cutoff hZ hN (by linarith) hV (by linarith) hM (by linarith)
|
| 147 |
+
hzcap hcut hcutL hcutc hmN hmargin hreserve labels hlabels D hD slots hcard lists H
|
| 148 |
+
hdis hH1 hH hprod Ψ hΨ hperiod theta a ha E hE hbins
|
| 149 |
+
apply hs.trans_eq
|
| 150 |
+
dsimp [E,d]
|
| 151 |
+
rw [Real.rpow_add hz (N+V+lossFinal+2*L*epsFirst) eps]
|
| 152 |
+
ring
|
| 153 |
+
|
| 154 |
+
end SevenEighths.InverseMoment
|
| 155 |
+
|
| 156 |
+
end
|
| 157 |
+
|
| 158 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalCompleteNormalized.lean
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongNormalization
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalPunctureMaskEnergy
|
| 3 |
+
import OAI.NumberTheory.DirichletL.Descent.CompletedReopening
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
|
| 9 |
+
open scoped BigOperators Classical
|
| 10 |
+
namespace SevenEighths.InverseMoment
|
| 11 |
+
open ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 12 |
+
open CanonicalQuadraticSieve FirstPassCubeLabels SecondPassArithmetic InverseInitialClippedColumns
|
| 13 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 14 |
+
|
| 15 |
+
theorem normalizedColumnEnergy_eq_generator_sum {ι σ:Type*}[DecidableEq ι][DecidableEq σ]
|
| 16 |
+
(p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 17 |
+
(hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 18 |
+
(hg:∀i,goodLambda∉Ideal.span {p i})
|
| 19 |
+
(pool:Finset ι)(Ψ:O→*ℂ)(m:O)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 20 |
+
(labels:Finset (Ideal O))(hlabels:∀I∈labels,primaryGenerator I≠0)
|
| 21 |
+
(weight:Ideal O→ℝ)(W:ℝ→ℂ)(X Z F R:ℝ)(hZ:0<Z) :
|
| 22 |
+
normalizedColumnEnergy p hp hcop hg pool Ψ m slots lists a labels
|
| 23 |
+
(nonzeroChildFrequencyBall 1 R) weight W X Z F=
|
| 24 |
+
Z^(-F)*(∑I∈labels,weight I*∑k∈nonzeroChildFrequencyBall 1 R,
|
| 25 |
+
‖finiteCanonicalMarkedRow p hp hcop hg pool Ψ m (idealGenerator I) k slots lists a W X‖^2) := by
|
| 26 |
+
have hn:‖((Z^(-F/2):ℝ):ℂ)‖^2=Z^(-F) := by
|
| 27 |
+
rw [Complex.norm_real,Real.norm_eq_abs,abs_of_pos (Real.rpow_pos_of_pos hZ _),
|
| 28 |
+
←Real.rpow_mul_natCast hZ.le]
|
| 29 |
+
congr 1
|
| 30 |
+
ring
|
| 31 |
+
unfold normalizedColumnEnergy
|
| 32 |
+
simp only [norm_mul,mul_pow,hn,←Finset.mul_sum]
|
| 33 |
+
rw [Finset.mul_sum]
|
| 34 |
+
apply Finset.sum_congr rfl
|
| 35 |
+
intro I hI
|
| 36 |
+
rw [canonical_ball_generator_energy p hp hcop hg pool Ψ m I (hlabels I hI)]
|
| 37 |
+
ring
|
| 38 |
+
|
| 39 |
+
theorem outside_complete_normalized_energy {σ:Type*}[DecidableEq σ]
|
| 40 |
+
(S:Finset (Ideal O))(D:ℕ)(hbad:fixedBadPrimes⊆S)
|
| 41 |
+
(Ψ:O→*ℂ)(m:O)(slots:Finset σ)
|
| 42 |
+
(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)))
|
| 43 |
+
(a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→ℂ)
|
| 44 |
+
(labels:Finset (Ideal O))(hlabels:∀I∈labels,Supported I)
|
| 45 |
+
(weight:Ideal O→ℝ)(W:ℝ→ℂ)(X Z Fexp R:ℝ)(hZ:0<Z) :
|
| 46 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 47 |
+
let hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad
|
| 48 |
+
letI : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 49 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 50 |
+
Z^(-Fexp)*(∑I∈labels,weight I*∑k∈nonzeroChildFrequencyBall 1 R,
|
| 51 |
+
‖outsideCanonicalMarkedRow S D hbad Ψ m (idealGenerator I) k slots lists a W X‖^2)=
|
| 52 |
+
normalizedColumnEnergy (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 53 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) Finset.univ Ψ m slots lists a labels
|
| 54 |
+
(nonzeroChildFrequencyBall 1 R) weight W X Z Fexp := by
|
| 55 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 56 |
+
have hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad
|
| 57 |
+
let : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 58 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 59 |
+
dsimp only
|
| 60 |
+
exact (normalizedColumnEnergy_eq_generator_sum (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 61 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) Finset.univ Ψ m slots lists a labels
|
| 62 |
+
(fun I hI=>supported_primaryGenerator_ne_zero I (hlabels I hI)) weight W X Z Fexp R hZ).symm
|
| 63 |
+
|
| 64 |
+
theorem reflection_complete_normalized_energy {σ:Type*}[DecidableEq σ]
|
| 65 |
+
(q D:ℕ)(Ψ:O→*ℂ)(m:O)(slots:Finset σ)
|
| 66 |
+
(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)))
|
| 67 |
+
(a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)→ℂ)
|
| 68 |
+
(labels:Finset (Ideal O))(hlabels:∀I∈labels,Supported I)
|
| 69 |
+
(weight:Ideal O→ℝ)(W:ℝ→ℂ)(X Z Fexp R:ℝ)(hZ:0<Z) :
|
| 70 |
+
let S:=reflectionExcludedPrimes q
|
| 71 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 72 |
+
let hF:=InitialMeanSquare.outsideSquarefree_admissible S D (reflectionExcludedPrimes_bad q)
|
| 73 |
+
letI : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 74 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 75 |
+
Z^(-Fexp)*(∑I∈labels,weight I*∑k∈nonzeroChildFrequencyBall 1 R,
|
| 76 |
+
‖outsideCanonicalMarkedRow S D (reflectionExcludedPrimes_bad q) Ψ m (idealGenerator I) k
|
| 77 |
+
slots lists a W X‖^2)=
|
| 78 |
+
normalizedColumnEnergy (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 79 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) Finset.univ Ψ
|
| 80 |
+
(ActualFiber.maskElement q m) slots lists a labels
|
| 81 |
+
(nonzeroChildFrequencyBall 1 R) weight W X Z Fexp := by
|
| 82 |
+
have h:=outside_complete_normalized_energy (reflectionExcludedPrimes q) D
|
| 83 |
+
(reflectionExcludedPrimes_bad q) Ψ m slots lists a labels hlabels weight W X Z Fexp R hZ
|
| 84 |
+
exact h.trans (reflection_pool_mask_energy q D Finset.univ Ψ m slots lists a labels
|
| 85 |
+
(nonzeroChildFrequencyBall 1 R) weight W X Z Fexp).symm
|
| 86 |
+
|
| 87 |
+
end SevenEighths.InverseMoment
|
| 88 |
+
|
| 89 |
+
end
|
| 90 |
+
|
| 91 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalCompleteRank.lean
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalCompleteChildren
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLiveBinRank
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
open scoped BigOperators Classical SchwartzMap ContDiff
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open MeasureTheory ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 11 |
+
open CanonicalQuadraticSieve CanonicalCubeSeparation FirstPassCubeLabels SecondPassArithmetic
|
| 12 |
+
open InverseMomentFirstLabelCell InverseMomentFirstSecondHeightCost CompletedHeight
|
| 13 |
+
open FourierBridge JointLogSeparation InverseReflectedPhase InverseTerminalWidths InverseSecondFibers
|
| 14 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 15 |
+
|
| 16 |
+
theorem actual_complete_state_from_rank_moments
|
| 17 |
+
(lo hi:ℝ)(hlo:0<lo)(hhi:0≤hi)(W:ℝ→ℂ)
|
| 18 |
+
(hsW:Function.support W⊆Set.Icc lo hi)(hW:ContDiff ℝ ∞ W)
|
| 19 |
+
(Vlog:𝓢(ℝ,ℂ))(Alog:ℝ)(hbox:∀x,Vlog x≠0 → |x|≤Alog)
|
| 20 |
+
(hone:∀x,|x|≤columnWindowRadius lo hi → Vlog x=1)
|
| 21 |
+
(L cstar eta tau saving em ed eps:ℝ)(hL:1≤L)(hcstar:0<cstar)(heta:0<eta)
|
| 22 |
+
(heta1:eta≤1)(hetac:eta≤cstar/100000)(htau:0<tau)(htau1:tau≤1)
|
| 23 |
+
(hem:0<em)(hed:0<ed)(heps:0<eps)(K:ℕ):
|
| 24 |
+
∃(ω₁₁ ω₁₂ ω₂₁ ω₂₂:𝓢(ℝ,ℂ))(af₁ bf₁ af₂ bf₂ window bw:ℝ)(shortDegree:ℕ),
|
| 25 |
+
0<af₁ ∧ af₁≤bf₁ ∧ 0<af₂ ∧ af₂≤bf₂ ∧
|
| 26 |
+
HasCompactSupport (ω₁₁:ℝ→ℂ) ∧ HasCompactSupport (ω₁₂:ℝ→ℂ) ∧
|
| 27 |
+
HasCompactSupport (ω₂₁:ℝ→ℂ) ∧ HasCompactSupport (ω₂₂:ℝ→ℂ) ∧
|
| 28 |
+
tsupport (ω₁₁:ℝ→ℂ)⊆Set.Icc af₁ bf₁ ∧ tsupport (ω₁₂:ℝ→ℂ)⊆Set.Icc af₁ bf₁ ∧
|
| 29 |
+
tsupport (ω₂₁:ℝ→ℂ)⊆Set.Icc af₂ bf₂ ∧ tsupport (ω₂₂:ℝ→ℂ)⊆Set.Icc af₂ bf₂ ∧
|
| 30 |
+
1≤bw ∧ Real.exp Alog≤bw ∧ bw=Real.exp window ∧
|
| 31 |
+
∀epsFirst epsSecond:ℝ,0<epsFirst → 0<epsSecond → ∀degree:ℕ,
|
| 32 |
+
∀(q:ℕ)(hq:q≠0),∃Cs Cb Z₀:ℝ,0<Cs ∧ 0≤Cb ∧ 1<Z₀ ∧
|
| 33 |
+
∀{σ:Type}[DecidableEq σ](m:O),m≠0 →
|
| 34 |
+
∀Z N V M z₀ margin cutoff pi epschild A loss lossFinal theta:ℝ,
|
| 35 |
+
Z₀≤Z → 2≤Z → 2≤Z^eta → Real.exp 1≤Z^eta → 1≤eta*Real.log Z →
|
| 36 |
+
0≤N → 0≤V → 0≤M → N+V≤L → M≤N+V → z₀≤L →
|
| 37 |
+
hi≤Z^eta → Real.exp Alog≤Z^eta → Real.exp window≤Z^eta →
|
| 38 |
+
0<cutoff → cutoff≤L → cutoff≤cstar/200 → eta≤cutoff/32 →
|
| 39 |
+
(Ideal.absNorm (Ideal.span {m}):ℝ)≤Z^L →
|
| 40 |
+
CanonicalMargins (N+V) M (normWidth Z (Ideal.span {m})) z₀ margin → cstar/2≤margin →
|
| 41 |
+
(Ideal.absNorm (Ideal.span {m}:Ideal O).radical:ℝ)≤Z^(normWidth Z (Ideal.span {m})) →
|
| 42 |
+
0≤pi → 6*eta≤pi → em*(20*(3*L+16)+30)≤pi/4 → ed*(20*(3*L+16)+30)≤pi/4 →
|
| 43 |
+
0≤epschild → -saving≤48*eta+tau+pi+epschild+epsSecond →
|
| 44 |
+
48*eta+tau+pi+epschild+epsSecond≤loss →
|
| 45 |
+
3*eta+epsFirst*(2*L+7*eta)≤lossFinal →
|
| 46 |
+
loss+(2*L+15*eta+tau)*epsFirst+epsFirst≤lossFinal → -saving≤lossFinal →
|
| 47 |
+
0≤A →
|
| 48 |
+
∀labels:Finset (Ideal O),(∀I∈labels,Supported I ∧ Squarefree I ∧ (I.absNorm:ℝ)≤Z^V) →
|
| 49 |
+
∀D:ℕ,hi*Z^N≤D → ∀slots:Finset σ,slots.card≤K →
|
| 50 |
+
∀(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)))(H:σ→ℝ),
|
| 51 |
+
(slots:Set σ).PairwiseDisjoint lists →
|
| 52 |
+
(∀i∈slots,1≤H i) → (∀i∈slots,∀P∈lists i,(Ideal.absNorm P.val:ℝ)≤H i) → (∏i∈slots,H i)≤Z^z₀ →
|
| 53 |
+
∀(base Ψ:O→*ℂ),CanonicalCoefficientClass.IsBaseRayTwist base Ψ → (∀u,‖Ψ u‖≤1) →
|
| 54 |
+
CanonicalCoefficientClass.FactorsModulo (CanonicalCoefficientClass.fixedBaseConductor q) Ψ →
|
| 55 |
+
∀a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)→ℂ,
|
| 56 |
+
(∀i∈slots,∀P∈lists i,‖a i P‖≤1) →
|
| 57 |
+
let S:=reflectionExcludedPrimes q;
|
| 58 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D;
|
| 59 |
+
let hF:=InitialMeanSquare.outsideSquarefree_admissible S D (reflectionExcludedPrimes_bad q);
|
| 60 |
+
letI : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=fun i=>by rw [poolPrimary_span F hF i];infer_instance;
|
| 61 |
+
let _om:=radialFromLog Vlog (Vlog.smooth ⊤) Alog hbox;
|
| 62 |
+
CanonicalRankMoments (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 63 |
+
(poolPrimary_good F hF) Finset.univ base slots lists a ω₁₁
|
| 64 |
+
Z (M-3*(cutoff/2)/2) (N+V+15*eta) z₀ (margin-7*eta) epschild A K degree →
|
| 65 |
+
CanonicalRankMoments (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 66 |
+
(poolPrimary_good F hF) Finset.univ base slots lists a ω₁₂
|
| 67 |
+
Z (M-3*(cutoff/2)/2) (N+V+15*eta) z₀ (margin-7*eta) epschild A K degree →
|
| 68 |
+
CanonicalRankMoments (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 69 |
+
(poolPrimary_good F hF) Finset.univ base slots lists a ω₂₁
|
| 70 |
+
Z (M-3*(cutoff/2)/2) (N+V+15*eta) z₀ (margin-7*eta) epschild A K degree →
|
| 71 |
+
CanonicalRankMoments (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 72 |
+
(poolPrimary_good F hF) Finset.univ base slots lists a ω₂₂
|
| 73 |
+
Z (M-3*(cutoff/2)/2) (N+V+15*eta) z₀ (margin-7*eta) epschild A K degree →
|
| 74 |
+
Z^(-(N+V))*(∑I∈labels,secondLabelWeight K I*∑z∈nonzeroChildFrequencyBall 1 (Z^M),
|
| 75 |
+
‖outsideCanonicalMarkedRow S D (reflectionExcludedPrimes_bad q) Ψ m (idealGenerator I) z
|
| 76 |
+
slots lists a (normTwistedSource W theta) (Z^N)‖^2)≤
|
| 77 |
+
Cs*(1+‖theta‖)^shortDegree*Z^(N+V-cstar/256)+
|
| 78 |
+
Cb*(1+A)*(1+‖theta‖)^(2*(InverseClippingProfiles.momentOrder (firstDegree degree)+(volume:Measure ℝ).integrablePower))*
|
| 79 |
+
Z^(N+V+lossFinal+2*L*epsFirst+eps) := by
|
| 80 |
+
obtain ⟨w11,w12,w21,w22,af1,bf1,af2,bf2,window,bw,ds,ha1,hab1,ha2,hab2,
|
| 81 |
+
hw11,hw12,hw21,hw22,hs11,hs12,hs21,hs22,hbw,hbA,hbexp,hstep⟩:=
|
| 82 |
+
actual_complete_state_from_children lo hi hlo hhi W hsW hW Vlog Alog hbox hone
|
| 83 |
+
L cstar eta tau saving em ed eps hL hcstar heta heta1 hetac htau htau1 hem hed heps K
|
| 84 |
+
refine ⟨w11,w12,w21,w22,af1,bf1,af2,bf2,window,bw,ds,ha1,hab1,ha2,hab2,
|
| 85 |
+
hw11,hw12,hw21,hw22,hs11,hs12,hs21,hs22,hbw,hbA,hbexp,?_⟩
|
| 86 |
+
intro epsFirst epsSecond heF heS degree q hq
|
| 87 |
+
obtain ⟨Cs,Cb,Z₀,hCs,hCb,hZ₀,hstep⟩:=hstep epsFirst epsSecond heF heS degree q hq
|
| 88 |
+
refine ⟨Cs,Cb,Z₀,hCs,hCb,hZ₀,?_⟩
|
| 89 |
+
intro σ _ m hm Z N V M z₀ margin cutoff pi epschild A loss lossFinal theta hZ hZ2 h2 hExp hlog
|
| 90 |
+
hN hV hM hFcap hMF hzcap hbZ hAZ hwin hcut hcutL hcutc hsmall hmN hmargin hreserve hpuncture
|
| 91 |
+
hpi hpieta hemc hedc hechild hsave hloss hprincipal hretained htail hA
|
| 92 |
+
labels hlabels D hD slots hcard lists H hdis hH1 hH hprod base Ψ hbase hΨ hperiod a ha
|
| 93 |
+
dsimp only
|
| 94 |
+
intro h11 h12 h21 h22
|
| 95 |
+
apply hstep m hm Z N V M z₀ margin cutoff pi epschild A loss lossFinal theta hZ hZ2 h2 hExp hlog
|
| 96 |
+
hN hV hM hFcap hMF hzcap hbZ hAZ hwin hcut.le hcutL hcutc hmN hmargin hreserve
|
| 97 |
+
hpi hpieta hemc hedc hechild hsave hloss hprincipal hretained htail hA
|
| 98 |
+
labels hlabels D hD slots hcard lists H hdis hH1 hH hprod Ψ hΨ hperiod a ha
|
| 99 |
+
· intro j hj
|
| 100 |
+
dsimp only
|
| 101 |
+
intro hne ξ k hk
|
| 102 |
+
exact actual_live_bin_rank_children (reflectionExcludedPrimes q) D (reflectionExcludedPrimes_bad q)
|
| 103 |
+
Z N V M cutoff eta L bw window hi (normWidth Z (Ideal.span {m})) z₀ margin epschild A
|
| 104 |
+
(M-3*(cutoff/2)/2) (N+V+15*eta) (margin-7*eta) tau
|
| 105 |
+
j (by linarith) hL heta.le heta1 hcut hsmall hV hFcap hbZ hlog hExp h2 hbw
|
| 106 |
+
(by rw [hbexp]; exact hwin.trans (Real.rpow_le_rpow_of_exponent_le (by linarith) (by linarith)))
|
| 107 |
+
(hwin.trans (Real.rpow_le_rpow_of_exponent_le (by linarith) (by linarith))) hne
|
| 108 |
+
base Ψ hbase m hm hmargin hpuncture le_rfl le_rfl le_rfl slots lists a w11 w12 K degree h11 h12 k.1 k.2.1 k.2.2 true
|
| 109 |
+
|
| 110 |
+
· intro j hj
|
| 111 |
+
dsimp only
|
| 112 |
+
intro hne ξ k hk
|
| 113 |
+
exact actual_live_bin_rank_children (reflectionExcludedPrimes q) D (reflectionExcludedPrimes_bad q)
|
| 114 |
+
Z N V M cutoff eta L bw window hi (normWidth Z (Ideal.span {m})) z₀ margin epschild A
|
| 115 |
+
(M-3*(cutoff/2)/2) (N+V+15*eta) (margin-7*eta) tau
|
| 116 |
+
j (by linarith) hL heta.le heta1 hcut hsmall hV hFcap hbZ hlog hExp h2 hbw
|
| 117 |
+
(by rw [hbexp]; exact hwin.trans (Real.rpow_le_rpow_of_exponent_le (by linarith) (by linarith)))
|
| 118 |
+
(hwin.trans (Real.rpow_le_rpow_of_exponent_le (by linarith) (by linarith))) hne
|
| 119 |
+
base Ψ hbase m hm hmargin hpuncture le_rfl le_rfl le_rfl slots lists a w21 w22 K degree h21 h22 k.1 k.2.1 k.2.2 false
|
| 120 |
+
|
| 121 |
+
end SevenEighths.InverseMoment
|
| 122 |
+
|
| 123 |
+
end
|
| 124 |
+
|
| 125 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalCompleteRankNormalized.lean
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalCompleteRank
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalCompleteNormalized
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
open scoped BigOperators Classical SchwartzMap ContDiff
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open MeasureTheory ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 11 |
+
open CanonicalQuadraticSieve CanonicalCubeSeparation FirstPassCubeLabels SecondPassArithmetic
|
| 12 |
+
open InverseMomentFirstLabelCell InverseMomentFirstSecondHeightCost CompletedHeight
|
| 13 |
+
open InverseInitialClippedColumns FourierBridge JointLogSeparation InverseReflectedPhase InverseTerminalWidths InverseSecondFibers
|
| 14 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 15 |
+
|
| 16 |
+
theorem actual_complete_normalized_rank_step
|
| 17 |
+
(lo hi:ℝ)(hlo:0<lo)(hhi:0≤hi)(W:ℝ→ℂ)
|
| 18 |
+
(hsW:Function.support W⊆Set.Icc lo hi)(hW:ContDiff ℝ ∞ W)
|
| 19 |
+
(Vlog:𝓢(ℝ,ℂ))(Alog:ℝ)(hbox:∀x,Vlog x≠0 → |x|≤Alog)
|
| 20 |
+
(hone:∀x,|x|≤columnWindowRadius lo hi → Vlog x=1)
|
| 21 |
+
(L cstar eta tau saving em ed eps:ℝ)(hL:1≤L)(hcstar:0<cstar)(heta:0<eta)
|
| 22 |
+
(heta1:eta≤1)(hetac:eta≤cstar/100000)(htau:0<tau)(htau1:tau≤1)
|
| 23 |
+
(hem:0<em)(hed:0<ed)(heps:0<eps)(K:ℕ):
|
| 24 |
+
∃(ω₁₁ ω₁₂ ω₂₁ ω₂₂:𝓢(ℝ,ℂ))(af₁ bf₁ af₂ bf₂ window bw:ℝ)(shortDegree:ℕ),
|
| 25 |
+
0<af₁ ∧ af₁≤bf₁ ∧ 0<af₂ ∧ af₂≤bf₂ ∧
|
| 26 |
+
HasCompactSupport (ω₁₁:ℝ→ℂ) ∧ HasCompactSupport (ω₁₂:ℝ→ℂ) ∧
|
| 27 |
+
HasCompactSupport (ω₂₁:ℝ→ℂ) ∧ HasCompactSupport (ω₂₂:ℝ→ℂ) ∧
|
| 28 |
+
tsupport (ω₁₁:ℝ→ℂ)⊆Set.Icc af₁ bf₁ ∧ tsupport (ω₁₂:ℝ→ℂ)⊆Set.Icc af₁ bf₁ ∧
|
| 29 |
+
tsupport (ω₂₁:ℝ→ℂ)⊆Set.Icc af₂ bf₂ ∧ tsupport (ω₂₂:ℝ→ℂ)⊆Set.Icc af₂ bf₂ ∧
|
| 30 |
+
1≤bw ∧ Real.exp Alog≤bw ∧ bw=Real.exp window ∧
|
| 31 |
+
∀epsFirst epsSecond:ℝ,0<epsFirst → 0<epsSecond → ∀degree:ℕ,
|
| 32 |
+
∀(q:ℕ)(hq:q≠0),∃Cs Cb Z₀:ℝ,0<Cs ∧ 0≤Cb ∧ 1<Z₀ ∧
|
| 33 |
+
∀{σ:Type}[DecidableEq σ](m:O),m≠0 →
|
| 34 |
+
∀Z N V M z₀ margin cutoff pi epschild A loss lossFinal theta:ℝ,
|
| 35 |
+
Z₀≤Z → 2≤Z → 2≤Z^eta → Real.exp 1≤Z^eta → 1≤eta*Real.log Z →
|
| 36 |
+
0≤N → 0≤V → 0≤M → N+V≤L → M≤N+V → z₀≤L →
|
| 37 |
+
hi≤Z^eta → Real.exp Alog≤Z^eta → Real.exp window≤Z^eta →
|
| 38 |
+
0<cutoff → cutoff≤L → cutoff≤cstar/200 → eta≤cutoff/32 →
|
| 39 |
+
(Ideal.absNorm (Ideal.span {m}):ℝ)≤Z^L →
|
| 40 |
+
CanonicalMargins (N+V) M (normWidth Z (Ideal.span {m})) z₀ margin → cstar/2≤margin →
|
| 41 |
+
(Ideal.absNorm (Ideal.span {m}:Ideal O).radical:ℝ)≤Z^(normWidth Z (Ideal.span {m})) →
|
| 42 |
+
0≤pi → 6*eta≤pi → em*(20*(3*L+16)+30)≤pi/4 → ed*(20*(3*L+16)+30)≤pi/4 →
|
| 43 |
+
0≤epschild → -saving≤48*eta+tau+pi+epschild+epsSecond →
|
| 44 |
+
48*eta+tau+pi+epschild+epsSecond≤loss →
|
| 45 |
+
3*eta+epsFirst*(2*L+7*eta)≤lossFinal →
|
| 46 |
+
loss+(2*L+15*eta+tau)*epsFirst+epsFirst≤lossFinal → -saving≤lossFinal →
|
| 47 |
+
0≤A →
|
| 48 |
+
∀labels:Finset (Ideal O),(∀I∈labels,Supported I ∧ Squarefree I ∧ (I.absNorm:ℝ)≤Z^V) →
|
| 49 |
+
∀D:ℕ,hi*Z^N≤D → ∀slots:Finset σ,slots.card≤K →
|
| 50 |
+
∀(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)))(H:σ→ℝ),
|
| 51 |
+
(slots:Set σ).PairwiseDisjoint lists →
|
| 52 |
+
(∀i∈slots,1≤H i) → (∀i∈slots,∀P∈lists i,(Ideal.absNorm P.val:ℝ)≤H i) → (∏i∈slots,H i)≤Z^z₀ →
|
| 53 |
+
∀(base Ψ:O→*ℂ),CanonicalCoefficientClass.IsBaseRayTwist base Ψ → (∀u,‖Ψ u‖≤1) →
|
| 54 |
+
CanonicalCoefficientClass.FactorsModulo (CanonicalCoefficientClass.fixedBaseConductor q) Ψ →
|
| 55 |
+
∀a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)→ℂ,
|
| 56 |
+
(∀i∈slots,∀P∈lists i,‖a i P‖≤1) →
|
| 57 |
+
let S:=reflectionExcludedPrimes q;
|
| 58 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D;
|
| 59 |
+
let hF:=InitialMeanSquare.outsideSquarefree_admissible S D (reflectionExcludedPrimes_bad q);
|
| 60 |
+
letI : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=fun i=>by rw [poolPrimary_span F hF i];infer_instance;
|
| 61 |
+
let _om:=radialFromLog Vlog (Vlog.smooth ⊤) Alog hbox;
|
| 62 |
+
CanonicalRankMoments (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 63 |
+
(poolPrimary_good F hF) Finset.univ base slots lists a ω₁₁
|
| 64 |
+
Z (M-3*(cutoff/2)/2) (N+V+15*eta) z₀ (margin-7*eta) epschild A K degree →
|
| 65 |
+
CanonicalRankMoments (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 66 |
+
(poolPrimary_good F hF) Finset.univ base slots lists a ω₁₂
|
| 67 |
+
Z (M-3*(cutoff/2)/2) (N+V+15*eta) z₀ (margin-7*eta) epschild A K degree →
|
| 68 |
+
CanonicalRankMoments (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 69 |
+
(poolPrimary_good F hF) Finset.univ base slots lists a ω₂₁
|
| 70 |
+
Z (M-3*(cutoff/2)/2) (N+V+15*eta) z₀ (margin-7*eta) epschild A K degree →
|
| 71 |
+
CanonicalRankMoments (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 72 |
+
(poolPrimary_good F hF) Finset.univ base slots lists a ω₂₂
|
| 73 |
+
Z (M-3*(cutoff/2)/2) (N+V+15*eta) z₀ (margin-7*eta) epschild A K degree →
|
| 74 |
+
normalizedColumnEnergy (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 75 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) Finset.univ Ψ m slots lists a labels
|
| 76 |
+
(nonzeroChildFrequencyBall 1 (Z^M)) (secondLabelWeight K) (normTwistedSource W theta)
|
| 77 |
+
(Z^N) Z (N+V)≤
|
| 78 |
+
Cs*(1+‖theta‖)^shortDegree*Z^(N+V-cstar/256)+
|
| 79 |
+
Cb*(1+A)*(1+‖theta‖)^(2*(InverseClippingProfiles.momentOrder (firstDegree degree)+(volume:Measure ℝ).integrablePower))*
|
| 80 |
+
Z^(N+V+lossFinal+2*L*epsFirst+eps) := by
|
| 81 |
+
obtain ⟨w11,w12,w21,w22,af1,bf1,af2,bf2,window,bw,ds,ha1,hab1,ha2,hab2,
|
| 82 |
+
hw11,hw12,hw21,hw22,hs11,hs12,hs21,hs22,hbw,hbA,hbexp,hstep⟩:=
|
| 83 |
+
actual_complete_state_from_rank_moments lo hi hlo hhi W hsW hW Vlog Alog hbox hone
|
| 84 |
+
L cstar eta tau saving em ed eps hL hcstar heta heta1 hetac htau htau1 hem hed heps K
|
| 85 |
+
refine ⟨w11,w12,w21,w22,af1,bf1,af2,bf2,window,bw,ds,ha1,hab1,ha2,hab2,
|
| 86 |
+
hw11,hw12,hw21,hw22,hs11,hs12,hs21,hs22,hbw,hbA,hbexp,?_⟩
|
| 87 |
+
intro epsFirst epsSecond heF heS degree q hq
|
| 88 |
+
obtain ⟨Cs,Cb,Z₀,hCs,hCb,hZ₀,hstep⟩:=hstep epsFirst epsSecond heF heS degree q hq
|
| 89 |
+
refine ⟨Cs,Cb,Z₀,hCs,hCb,hZ₀,?_⟩
|
| 90 |
+
intro σ _ m hm Z N V M z₀ margin cutoff pi epschild A loss lossFinal theta hZ hZ2 h2 hExp hlog
|
| 91 |
+
hN hV hM hFcap hMF hzcap hbZ hAZ hwin hcut hcutL hcutc hsmall hmN hmargin hreserve hpuncture
|
| 92 |
+
hpi hpieta hemc hedc hechild hsave hloss hprincipal hretained htail hA
|
| 93 |
+
labels hlabels D hD slots hcard lists H hdis hH1 hH hprod base Ψ hbase hΨ hperiod a ha
|
| 94 |
+
dsimp only
|
| 95 |
+
intro h11 h12 h21 h22
|
| 96 |
+
have hh:=hstep m hm Z N V M z₀ margin cutoff pi epschild A loss lossFinal theta hZ hZ2 h2 hExp hlog
|
| 97 |
+
hN hV hM hFcap hMF hzcap hbZ hAZ hwin hcut hcutL hcutc hsmall hmN hmargin hreserve hpuncture
|
| 98 |
+
hpi hpieta hemc hedc hechild hsave hloss hprincipal hretained htail hA
|
| 99 |
+
labels hlabels D hD slots hcard lists H hdis hH1 hH hprod base Ψ hbase hΨ hperiod a ha h11 h12 h21 h22
|
| 100 |
+
rw [outside_complete_normalized_energy (reflectionExcludedPrimes q) D (reflectionExcludedPrimes_bad q)
|
| 101 |
+
Ψ m slots lists a labels (fun I hI=>(hlabels I hI).1) (secondLabelWeight K)
|
| 102 |
+
(normTwistedSource W theta) (Z^N) Z (N+V) (Z^M) (by linarith)] at hh
|
| 103 |
+
exact hh
|
| 104 |
+
|
| 105 |
+
end SevenEighths.InverseMoment
|
| 106 |
+
|
| 107 |
+
end
|
| 108 |
+
|
| 109 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalCompleteState.lean
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalShortFinite
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongTotal
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
open scoped BigOperators Classical ContDiff
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 11 |
+
open CanonicalQuadraticSieve InverseReflectedPhase InverseTerminalWidths CompletedHeight
|
| 12 |
+
open InverseCanonicalShortAttachment InverseSecondFibers FirstPassCubeLabels SecondPassArithmetic
|
| 13 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 14 |
+
universe v
|
| 15 |
+
|
| 16 |
+
theorem actual_complete_state_from_live_bins
|
| 17 |
+
(lo hi:ℝ)(hlo:0<lo)(hhi:0≤hi)(W:ℝ→ℂ)
|
| 18 |
+
(hWs:Function.support W⊆Set.Icc lo hi)(hW:ContDiff ℝ ∞ W)
|
| 19 |
+
(L cstar eta eps:ℝ)(hL:0≤L)(hcstar:0<cstar)(heta:0<eta)
|
| 20 |
+
(heta1:eta≤1)(hetac:eta≤cstar/100000)(heps:0<eps)(rmax K:ℕ) :
|
| 21 |
+
∃degree:ℕ,∀(q:ℕ)(_hq:q≠0),∃C Z₀:ℝ,0<C ∧ 1<Z₀ ∧
|
| 22 |
+
∀{σ:Type v}[DecidableEq σ](m:O),m≠0 → ∀Z N V M z₀ margin cutoff:ℝ,
|
| 23 |
+
Z₀≤Z → 0≤N → N≤L → 0≤V → V≤L → 0≤M → M≤L → z₀≤L →
|
| 24 |
+
0≤cutoff → cutoff≤L → cutoff≤cstar/200 →
|
| 25 |
+
(Ideal.absNorm (Ideal.span {m}):ℝ)≤Z^L →
|
| 26 |
+
CanonicalMargins (N+V) M (normWidth Z (Ideal.span {m})) z₀ margin → cstar/2≤margin →
|
| 27 |
+
∀labels:Finset (Ideal O),(∀I∈labels,Supported I ∧ Squarefree I ∧ (I.absNorm:ℝ)≤Z^V) →
|
| 28 |
+
∀D:ℕ,hi*Z^N≤D → ∀slots:Finset σ,slots.card≤rmax →
|
| 29 |
+
∀(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)))(H:σ→ℝ),
|
| 30 |
+
(slots:Set σ).Pairwise (fun i j=>Disjoint (lists i) (lists j)) →
|
| 31 |
+
(∀i∈slots,1≤H i) → (∀i∈slots,∀P∈lists i,(Ideal.absNorm P.val:ℝ)≤H i) → (∏i∈slots,H i)≤Z^z₀ →
|
| 32 |
+
∀(Ψ:O→*ℂ),(∀u,‖Ψ u‖≤1) →
|
| 33 |
+
CanonicalCoefficientClass.FactorsModulo (CanonicalCoefficientClass.fixedBaseConductor q) Ψ →
|
| 34 |
+
∀(theta:ℝ)(a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)→ℂ),
|
| 35 |
+
(∀i∈slots,∀P∈lists i,‖a i P‖≤1) → ∀E:ℝ,0≤E →
|
| 36 |
+
let S:=reflectionExcludedPrimes q;
|
| 37 |
+
let test:=normTwistedSource W theta;
|
| 38 |
+
(∀j∈cubeLogRange hi (Z^N),
|
| 39 |
+
(progressingCubes S D (Z^(cutoff-V)) (activeCubeLogBin S D hi (Z^N) j)).Nonempty →
|
| 40 |
+
Z^(-V)*rowFamilyEnergy labels (fun I z=>markedReopenedCubeBin S D
|
| 41 |
+
(progressingCubes S D (Z^(cutoff-V)) (activeCubeLogBin S D hi (Z^N) j))
|
| 42 |
+
Ψ m (idealGenerator I) z test (Z^N) (Z^(cutoff-V)) slots lists a) (Z^M)≤E) →
|
| 43 |
+
Z^(-(N+V))*(∑I∈labels,secondLabelWeight K I*∑z∈nonzeroChildFrequencyBall 1 (Z^M),
|
| 44 |
+
‖outsideCanonicalMarkedRow S D (reflectionExcludedPrimes_bad q) Ψ m (idealGenerator I) z
|
| 45 |
+
slots lists a test (Z^N)‖^2)≤
|
| 46 |
+
C*((1+‖theta‖)^degree*Z^(N+V-cstar/256)+Z^eps*E) := by
|
| 47 |
+
obtain ⟨degree,hs⟩:=actual_complete_short_finite_uniform_degree lo hi hlo W hWs hW L cstar eta
|
| 48 |
+
hL hcstar heta heta1 hetac rmax K
|
| 49 |
+
obtain ⟨Cl,hCl,hl⟩:=actual_complete_energy_from_live_bins K hi L eps hhi hL heps
|
| 50 |
+
refine ⟨degree,?_⟩
|
| 51 |
+
intro q hq
|
| 52 |
+
obtain ⟨Cs,Z₀,hCs,hZ₀,hshort⟩:=hs q hq
|
| 53 |
+
refine ⟨2*Cs+Cl,Z₀,by positivity,hZ₀,?_⟩
|
| 54 |
+
intro σ _ m hm Z N V M z₀ margin cutoff hZ hN hNL hV hVL hM hML hzL hcut hcutL hcutc
|
| 55 |
+
hmN hmargin hreserve labels hlabels D hD slots hcard lists H hdis hH1 hH hprod Ψ hΨ hperiod theta a ha E hE
|
| 56 |
+
dsimp only
|
| 57 |
+
intro hbins
|
| 58 |
+
have hz:0<Z:=zero_lt_one.trans (lt_of_lt_of_le hZ₀ hZ)
|
| 59 |
+
have hZ1:1≤Z:=(hZ₀.trans_le hZ).le
|
| 60 |
+
let S:=reflectionExcludedPrimes q
|
| 61 |
+
let test:=normTwistedSource W theta
|
| 62 |
+
let mark:=indexedIdealMark (fun i:primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)=>i.val) slots lists a
|
| 63 |
+
have htest:HasCompactSupport test:=HasCompactSupport.of_support_subset_isCompact isCompact_Icc
|
| 64 |
+
((normTwistedSource_support W theta).trans hWs)
|
| 65 |
+
have hupper:∀x,test x≠0 → x≤hi:=fun x hx=>(hWs (normTwistedSource_support W theta hx)).2
|
| 66 |
+
have hT:∀z∈nonzeroChildFrequencyBall 1 (Z^M),z≠0 ∧ (Ideal.absNorm (Ideal.span {z}):ℝ)≤Z^M := by
|
| 67 |
+
intro z hz
|
| 68 |
+
have hh:=(mem_nonzeroChildFrequencyBall 1 one_ne_zero (Z^M) z).mp hz
|
| 69 |
+
constructor
|
| 70 |
+
· intro he
|
| 71 |
+
simp only [he,mul_zero,map_zero,norm_zero,pow_succ,lt_self_iff_false] at hh
|
| 72 |
+
exact hh.1
|
| 73 |
+
· rw [←eisEmbedding_norm_sq_eq_absNorm_span]
|
| 74 |
+
simpa only [one_mul] using hh.2
|
| 75 |
+
have hshortbound:Z^(-V)*(∑I∈labels,secondLabelWeight K I*∑z∈nonzeroChildFrequencyBall 1 (Z^M),
|
| 76 |
+
‖markedShortCompletedSum (rowTwist Ψ (m*excludedGenerator S) (idealGenerator I) z)
|
| 77 |
+
test (Z^N) (Z^(cutoff-V)) mark‖^2)≤Cs*(1+‖theta‖)^degree*Z^(N+V-cstar/256) := by
|
| 78 |
+
by_cases hbig:cutoff≤V
|
| 79 |
+
· have he (I:Ideal O)(z:O):markedShortCompletedSum
|
| 80 |
+
(rowTwist Ψ (m*excludedGenerator S) (idealGenerator I) z) test (Z^N) (Z^(cutoff-V)) mark=0:=
|
| 81 |
+
short_sum_zero_of_label_large _ _ _ _ _ _ _ hZ1 hbig
|
| 82 |
+
simp only [he,norm_zero,zero_pow (by decide:2≠0),Finset.sum_const_zero,mul_zero]
|
| 83 |
+
positivity
|
| 84 |
+
· exact hshort m hm Z N V M z₀ margin (cutoff-V) cutoff hZ hN hV hM hML hVL hzL
|
| 85 |
+
(by linarith) (by linarith) hmN hmargin hreserve (by linarith) (by linarith) hcutc
|
| 86 |
+
labels hlabels (nonzeroChildFrequencyBall 1 (Z^M)) hT D hD slots hcard lists H
|
| 87 |
+
hdis hH1 hH hprod Ψ hΨ hperiod theta a ha
|
| 88 |
+
have hb:=hl S D (reflectionExcludedPrimes_bad q) (reflectionExcludedPrimes_prime q) labels
|
| 89 |
+
(fun I hI=>(hlabels I hI).1.1) Ψ m slots lists a test htest Z N V (Z^M)
|
| 90 |
+
(Z^(cutoff-V)) (Cs*(1+‖theta‖)^degree*Z^(N+V-cstar/256)) E
|
| 91 |
+
hZ1 (Real.rpow_pos_of_pos hz _) hNL hVL (fun I hI=>(hlabels I hI).2.2)
|
| 92 |
+
hupper hD hE hshortbound hbins
|
| 93 |
+
apply hb.trans
|
| 94 |
+
have hA:0≤(1+‖theta‖)^degree*Z^(N+V-cstar/256):=by positivity
|
| 95 |
+
have hB:0≤Z^eps*E:=by positivity
|
| 96 |
+
nlinarith
|
| 97 |
+
|
| 98 |
+
end SevenEighths.InverseMoment
|
| 99 |
+
|
| 100 |
+
end
|
| 101 |
+
|
| 102 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalEnergyExistenceData.lean
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalRankEnergyMonotone
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
|
| 7 |
+
open scoped Classical BigOperators SchwartzMap
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
open ActualEisensteinCubic CompletedGauss ConcretePrimeRowBridge CanonicalQuadraticSieve
|
| 10 |
+
open CanonicalRowCompletion InverseReflectedPhase
|
| 11 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 12 |
+
|
| 13 |
+
def CanonicalEnergyExists (Mcap Fcap c eps L:ℝ)(K:ℕ)(W:𝓢(ℝ,ℂ)):Prop :=
|
| 14 |
+
∃degree:ℕ,∃B:ℝ,1≤B ∧
|
| 15 |
+
∀q:ℕ,q≠0→∃C Z₀:ℝ,0<C ∧ 1<Z₀ ∧
|
| 16 |
+
∀Z:ℝ,Z₀≤Z→∀D:ℕ,B*Z^L≤D→
|
| 17 |
+
∀{σ:Type}[DecidableEq σ](slots:Finset σ),slots.card≤K→
|
| 18 |
+
∀(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)))
|
| 19 |
+
(H:σ→ℝ)(a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)→ℂ),
|
| 20 |
+
(slots:Set σ).PairwiseDisjoint lists→
|
| 21 |
+
(∀i∈slots,1≤H i)→(∀i∈slots,∀P∈lists i,(Ideal.absNorm P.val:ℝ)≤H i)→
|
| 22 |
+
(∀i∈slots,∀P∈lists i,‖a i P‖≤1)→
|
| 23 |
+
∀z:ℝ,0≤z→(∏i∈slots,H i)≤Z^z→
|
| 24 |
+
∀base:O→*ℂ,(∀u,‖base u‖≤1)→
|
| 25 |
+
CanonicalCoefficientClass.FactorsModulo (CanonicalCoefficientClass.fixedBaseConductor q) base→
|
| 26 |
+
CompletePoolRankMoments q D slots lists a base W Z Mcap Fcap z c eps C K degree
|
| 27 |
+
|
| 28 |
+
theorem canonical_energy_of_rank (n:ℕ)(L cstar cutoff eta Mcap Fcap c eps:ℝ)(K:ℕ)(W:𝓢(ℝ,ℂ))
|
| 29 |
+
(hM:Mcap≤rankRowCap n cutoff)(hF:Fcap≤rankTotalCap n L eta)
|
| 30 |
+
(hc:rankMargin n cstar eta≤c)(he:rankLoss n eta≤eps)
|
| 31 |
+
(h:RankEnergyExists n L cstar cutoff eta K W):
|
| 32 |
+
CanonicalEnergyExists Mcap Fcap c eps L K W :=by
|
| 33 |
+
obtain ⟨degree,B,hB,h⟩:=h
|
| 34 |
+
refine ⟨degree,B,hB,?_⟩
|
| 35 |
+
intro q hq
|
| 36 |
+
obtain ⟨C,Z₀,hC,hZ₀,h⟩:=h q hq
|
| 37 |
+
refine ⟨C,Z₀,hC,hZ₀,?_⟩
|
| 38 |
+
intro Z hZ D hD σ _ slots hslots lists H a hdis hH hP ha z hz hprod base hb hp
|
| 39 |
+
have hmom:=h Z hZ D hD slots hslots lists H a hdis hH hP ha z hz hprod base hb hp
|
| 40 |
+
dsimp only [CompletePoolRankMoments] at hmom ⊢
|
| 41 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D
|
| 42 |
+
have hFa:=InitialMeanSquare.outsideSquarefree_admissible (reflectionExcludedPrimes q) D (reflectionExcludedPrimes_bad q)
|
| 43 |
+
let:∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=fun i=>by rw [poolPrimary_span F hFa i];infer_instance
|
| 44 |
+
apply canonical_rank_loss_le (poolPrimary F) (poolPrimary_ne_zero F hFa) (poolPrimary_coprime F hFa)
|
| 45 |
+
(poolPrimary_good F hFa) Finset.univ base slots lists a W Z Mcap Fcap z c (rankLoss n eta) eps C K degree
|
| 46 |
+
(by linarith) hC.le he
|
| 47 |
+
exact canonical_rank_restrict (poolPrimary F) (poolPrimary_ne_zero F hFa) (poolPrimary_coprime F hFa)
|
| 48 |
+
(poolPrimary_good F hFa) Finset.univ base slots lists a W Z Mcap (rankRowCap n cutoff)
|
| 49 |
+
Fcap (rankTotalCap n L eta) z c (rankMargin n cstar eta) (rankLoss n eta) C K degree hM hF hc hmom
|
| 50 |
+
|
| 51 |
+
end SevenEighths.InverseMoment
|
| 52 |
+
|
| 53 |
+
end
|
| 54 |
+
|
| 55 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLiveBinRank.lean
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalRankCapChildren
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongGeometry
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
open scoped Classical BigOperators SchwartzMap
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open ActualEisensteinCubic CompletedGauss ConcretePrimeRowBridge CanonicalQuadraticSieve
|
| 11 |
+
open CanonicalRowCompletion FirstPassCubeLabels SecondPassArithmetic
|
| 12 |
+
open InverseMomentFirstLabelCell InverseMomentFirstChildWindows
|
| 13 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 14 |
+
|
| 15 |
+
theorem actual_live_bin_rank_children
|
| 16 |
+
(S:Finset (Ideal O))(D:ℕ)(hbad:fixedBadPrimes⊆S)
|
| 17 |
+
(Z N V M cutoff eta L b window bW Qwidth z c eps A Mnext Fnext cnext tau:ℝ)
|
| 18 |
+
(j:ℕ)(hZ:1<Z)(hL:1≤L)(heta:0≤eta)(heta1:eta≤1)
|
| 19 |
+
(hcut:0<cutoff)(hsmall:eta≤cutoff/32)(hV:0≤V)(hparentcap:N+V≤L)
|
| 20 |
+
(hbW:bW≤Z^eta)(hlog:1≤eta*Real.log Z)(hexp:Real.exp 1≤Z^eta)
|
| 21 |
+
(hbin:2≤Z^eta)(hb:1≤b)(hbt:b≤Z^(6*eta))(hwindow:Real.exp window≤Z^(4*eta))
|
| 22 |
+
(hne:(progressingCubes S D (Z^(cutoff-V)) (activeCubeLogBin S D bW (Z^N) j)).Nonempty)
|
| 23 |
+
(base Ψ:O→*ℂ)(hΨ:CanonicalCoefficientClass.IsBaseRayTwist base Ψ)(m:O)(hm:m≠0)
|
| 24 |
+
(hparent:CanonicalMargins (N+V) M Qwidth z c)
|
| 25 |
+
(hpuncture:(Ideal.absNorm (Ideal.span {m}:Ideal O).radical:ℝ)≤Z^Qwidth)
|
| 26 |
+
(hMc:M-3*(cutoff/2)/2≤Mnext)(hFc:N+V+15*eta≤Fnext)(hcc:cnext≤c-7*eta)
|
| 27 |
+
{σ:Type}[DecidableEq σ](slots:Finset σ)
|
| 28 |
+
(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)))
|
| 29 |
+
(a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→ℂ)
|
| 30 |
+
(ω₁ ω₂:𝓢(ℝ,ℂ))(K degree:ℕ):
|
| 31 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D;
|
| 32 |
+
let hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad;
|
| 33 |
+
letI:∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=fun i=>by rw [poolPrimary_span F hF i];infer_instance;
|
| 34 |
+
CanonicalRankMoments (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 35 |
+
(poolPrimary_good F hF) Finset.univ base slots lists a ω₁ Z Mnext Fnext z cnext eps A K degree →
|
| 36 |
+
CanonicalRankMoments (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 37 |
+
(poolPrimary_good F hF) Finset.univ base slots lists a ω₂ Z Mnext Fnext z cnext eps A K degree →
|
| 38 |
+
∀k:SourceIndex,∀l jj:ℕ,∀negative:Bool,
|
| 39 |
+
ChildBounds (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 40 |
+
(poolPrimary_good F hF) Finset.univ
|
| 41 |
+
(progressingCubes S D (Z^(cutoff-V)) (activeCubeLogBin S D bW (Z^N) j))
|
| 42 |
+
k l jj negative Ψ m slots lists a ω₁ ω₂
|
| 43 |
+
Z M (N-3*actualCubeLength Z j) (actualCubeLength Z j) V eta tau window b eps A K degree :=by
|
| 44 |
+
dsimp only
|
| 45 |
+
intro h₁ h₂ k l jj negative
|
| 46 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 47 |
+
have hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad
|
| 48 |
+
let:∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 49 |
+
obtain ⟨hel,hr,hrL,helL,hFL,hgap,hqn⟩:=actual_long_bin_geometry S D hbad bW Z N V cutoff eta L j
|
| 50 |
+
hZ hL heta1 hV hparentcap hbW hlog hne
|
| 51 |
+
have hs:(N-3*actualCubeLength Z j)+3*actualCubeLength Z j+V=N+V:=by ring
|
| 52 |
+
apply canonical_rank_cap_children (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 53 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) (poolPrimary_odd F hF)
|
| 54 |
+
(fun i=>(primaryPrime_spec i.val (poolPrimary_ne_zero F hF i)).2.2.2)
|
| 55 |
+
Finset.univ _ k l jj negative base Ψ hΨ m hm slots lists a ω₁ ω₂
|
| 56 |
+
Z M _ _ V eta tau window b (cutoff/2) Qwidth z c eps A Mnext Fnext cnext K degree
|
| 57 |
+
hZ heta hbin hel hV hb hbt hwindow (by linarith) (by linarith) (by linarith)
|
| 58 |
+
(by simpa only [hs] using hparent) hpuncture ?_ hMc (by simpa only [hs] using hFc) hcc h₁ h₂
|
| 59 |
+
intro v hv
|
| 60 |
+
apply (hqn v hv).2.trans
|
| 61 |
+
calc
|
| 62 |
+
_≤Z^eta*Z^(actualCubeLength Z j):=mul_le_mul_of_nonneg_right hexp (Real.rpow_nonneg (by linarith) _)
|
| 63 |
+
_=Z^(actualCubeLength Z j+eta):=by rw [Real.rpow_add (by linarith : 0<Z)];ring
|
| 64 |
+
|
| 65 |
+
end SevenEighths.InverseMoment
|
| 66 |
+
|
| 67 |
+
end
|
| 68 |
+
|
| 69 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongAggregate.lean
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongCaller
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
|
| 7 |
+
open scoped BigOperators Classical
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
open ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 10 |
+
open CanonicalQuadraticSieve FirstPassCubeLabels SecondPassArithmetic
|
| 11 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 12 |
+
|
| 13 |
+
theorem actual_marked_bin_empty
|
| 14 |
+
{σ:Type*}[DecidableEq σ](S:Finset (Ideal O))(D:ℕ)
|
| 15 |
+
(Q:Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→₀ℕ))
|
| 16 |
+
(Ψ:O→*ℂ)(m f z:O)(W:ℝ→ℂ)(X H₀:ℝ)(slots:Finset σ)
|
| 17 |
+
(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)))
|
| 18 |
+
(a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→ℂ)
|
| 19 |
+
(he:¬(progressingCubes S D H₀ Q).Nonempty) :
|
| 20 |
+
markedReopenedCubeBin S D Q Ψ m f z W X H₀ slots lists a=0 := by
|
| 21 |
+
rw [marked_long_filter,Finset.not_nonempty_iff_eq_empty.mp he]
|
| 22 |
+
simp only [markedReopenedCubeBin,Finset.sum_empty]
|
| 23 |
+
|
| 24 |
+
theorem actual_large_bins_aggregate
|
| 25 |
+
{σ:Type*}[DecidableEq σ](S:Finset (Ideal O))(D:ℕ)
|
| 26 |
+
(labels:Finset (Ideal O))(Ψ:O→*ℂ)(m:O)(W:ℝ→ℂ)(b X H₀ R Z V E:ℝ)
|
| 27 |
+
(slots:Finset σ)(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)))
|
| 28 |
+
(a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→ℂ)
|
| 29 |
+
(hbin:∀j∈cubeLogRange b X,
|
| 30 |
+
(progressingCubes S D H₀ (activeCubeLogBin S D b X j)).Nonempty→
|
| 31 |
+
Z^(-V)*rowFamilyEnergy labels (fun I z=>markedReopenedCubeBin S D
|
| 32 |
+
(progressingCubes S D H₀ (activeCubeLogBin S D b X j))
|
| 33 |
+
Ψ m (idealGenerator I) z W X H₀ slots lists a) R≤E)
|
| 34 |
+
(hE:0≤E) :
|
| 35 |
+
Z^(-V)*((cubeLogRange b X).card*∑j∈cubeLogRange b X,
|
| 36 |
+
rowFamilyEnergy labels (fun I z=>markedReopenedCubeBin S D
|
| 37 |
+
(progressingCubes S D H₀ (activeCubeLogBin S D b X j))
|
| 38 |
+
Ψ m (idealGenerator I) z W X H₀ slots lists a) R)≤
|
| 39 |
+
((cubeLogRange b X).card:ℝ)^2*E := by
|
| 40 |
+
have hj (j:ℕ)(hj:j∈cubeLogRange b X) :
|
| 41 |
+
Z^(-V)*rowFamilyEnergy labels (fun I z=>markedReopenedCubeBin S D
|
| 42 |
+
(progressingCubes S D H₀ (activeCubeLogBin S D b X j))
|
| 43 |
+
Ψ m (idealGenerator I) z W X H₀ slots lists a) R≤E := by
|
| 44 |
+
by_cases hn:(progressingCubes S D H₀ (activeCubeLogBin S D b X j)).Nonempty
|
| 45 |
+
· exact hbin j hj hn
|
| 46 |
+
· rw [Finset.not_nonempty_iff_eq_empty.mp hn]
|
| 47 |
+
simpa only [markedReopenedCubeBin,Finset.sum_empty,rowFamilyEnergy,
|
| 48 |
+
nonzeroRowMajorantSum,norm_zero,zero_pow (by decide:2≠0),Complex.ofReal_zero,
|
| 49 |
+
mul_zero,ite_self,tsum_zero,Finset.sum_const_zero,Complex.zero_re] using hE
|
| 50 |
+
calc
|
| 51 |
+
_=(cubeLogRange b X).card*∑j∈cubeLogRange b X,
|
| 52 |
+
Z^(-V)*rowFamilyEnergy labels (fun I z=>markedReopenedCubeBin S D
|
| 53 |
+
(progressingCubes S D H₀ (activeCubeLogBin S D b X j))
|
| 54 |
+
Ψ m (idealGenerator I) z W X H₀ slots lists a) R := by rw [←Finset.mul_sum];ring
|
| 55 |
+
_≤(cubeLogRange b X).card*∑_j∈cubeLogRange b X,E := by
|
| 56 |
+
gcongr
|
| 57 |
+
exact hj _ ‹_›
|
| 58 |
+
_=_ := by rw [Finset.sum_const,nsmul_eq_mul];ring
|
| 59 |
+
|
| 60 |
+
end SevenEighths.InverseMoment
|
| 61 |
+
|
| 62 |
+
end
|
| 63 |
+
|
| 64 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongBins.lean
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongNormalization
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
|
| 7 |
+
open scoped BigOperators Classical
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
open ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 10 |
+
open CanonicalQuadraticSieve FirstPassCubeLabels SecondPassArithmetic
|
| 11 |
+
open InverseSecondFibers InverseInitialClippedColumns
|
| 12 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 13 |
+
|
| 14 |
+
theorem actual_marked_family_binned
|
| 15 |
+
{σ:Type*}[DecidableEq σ](S:Finset (Ideal O))(D:ℕ)
|
| 16 |
+
(hbad:fixedBadPrimes⊆S)(hSp:∀P∈S,Prime P)
|
| 17 |
+
(labels:Finset (Ideal O))(Ψ:O→*ℂ)(m:O)(W:ℝ→ℂ)(hWc:HasCompactSupport W)
|
| 18 |
+
(b X H₀ K:ℝ)(hX:0<X)(hK:0<K)(hW:∀t,W t≠0→t≤b)(hD:b*X≤D)
|
| 19 |
+
(slots:Finset σ)(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)))
|
| 20 |
+
(a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→ℂ) :
|
| 21 |
+
rowFamilyEnergy labels (fun I z=>outsideCanonicalMarkedRow S D hbad Ψ m
|
| 22 |
+
(idealGenerator I) z slots lists a W X) K ≤
|
| 23 |
+
2*X*(rowFamilyEnergy labels (fun I z=>
|
| 24 |
+
markedShortCompletedSum (rowTwist Ψ (m*excludedGenerator S) (idealGenerator I) z) W X H₀
|
| 25 |
+
(indexedIdealMark (fun i:primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)=>i.val) slots lists a)) K+
|
| 26 |
+
(cubeLogRange b X).card*∑j∈cubeLogRange b X,
|
| 27 |
+
rowFamilyEnergy labels (fun I z=>markedReopenedCubeBin S D
|
| 28 |
+
(progressingCubes S D H₀ (activeCubeLogBin S D b X j))
|
| 29 |
+
Ψ m (idealGenerator I) z W X H₀ slots lists a) K) := by
|
| 30 |
+
simp only [rowFamilyEnergy_eq_sum _ _ K hK]
|
| 31 |
+
have he:∀I z,
|
| 32 |
+
‖outsideCanonicalMarkedRow S D hbad Ψ m (idealGenerator I) z slots lists a W X‖^2 ≤
|
| 33 |
+
2*X*(‖markedShortCompletedSum (rowTwist Ψ (m*excludedGenerator S) (idealGenerator I) z) W X H₀
|
| 34 |
+
(indexedIdealMark (fun i:primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)=>i.val) slots lists a)‖^2+
|
| 35 |
+
(cubeLogRange b X).card*∑j∈cubeLogRange b X,
|
| 36 |
+
‖markedReopenedCubeBin S D (progressingCubes S D H₀ (activeCubeLogBin S D b X j))
|
| 37 |
+
Ψ m (idealGenerator I) z W X H₀ slots lists a‖^2) := by
|
| 38 |
+
intro I z
|
| 39 |
+
have hh:=original_marked_binned_energy S D Ψ m (idealGenerator I) z W b X H₀ slots lists a
|
| 40 |
+
hbad hSp hWc hX hW hD
|
| 41 |
+
have hs:(∑j∈cubeLogRange b X,
|
| 42 |
+
‖markedReopenedCubeBin S D (activeCubeLogBin S D b X j) Ψ m (idealGenerator I) z W X H₀ slots lists a‖^2)=
|
| 43 |
+
∑j∈cubeLogRange b X,
|
| 44 |
+
‖markedReopenedCubeBin S D (progressingCubes S D H₀ (activeCubeLogBin S D b X j))
|
| 45 |
+
Ψ m (idealGenerator I) z W X H₀ slots lists a‖^2 := by
|
| 46 |
+
apply Finset.sum_congr rfl
|
| 47 |
+
intro j hj
|
| 48 |
+
rw [marked_long_filter S D (activeCubeLogBin S D b X j) Ψ m (idealGenerator I) z W X H₀ slots lists a]
|
| 49 |
+
rw [hs] at hh
|
| 50 |
+
exact hh
|
| 51 |
+
calc
|
| 52 |
+
_≤∑I∈labels,∑z∈(firstFrequencyDisk (2*K)).erase 0,
|
| 53 |
+
(rowMajorant (‖ConcreteTraceCRT.eisEmbedding z‖^2/K)).re *
|
| 54 |
+
(2*X*(‖markedShortCompletedSum (rowTwist Ψ (m*excludedGenerator S) (idealGenerator I) z) W X H₀
|
| 55 |
+
(indexedIdealMark (fun i:primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)=>i.val) slots lists a)‖^2+
|
| 56 |
+
(cubeLogRange b X).card*∑j∈cubeLogRange b X,
|
| 57 |
+
‖markedReopenedCubeBin S D (progressingCubes S D H₀ (activeCubeLogBin S D b X j))
|
| 58 |
+
Ψ m (idealGenerator I) z W X H₀ slots lists a‖^2)) := by
|
| 59 |
+
apply Finset.sum_le_sum
|
| 60 |
+
intro I hI
|
| 61 |
+
apply Finset.sum_le_sum
|
| 62 |
+
intro z hz
|
| 63 |
+
exact mul_le_mul_of_nonneg_left (he I z) (rowMajorant_nonneg _)
|
| 64 |
+
_=_ := by
|
| 65 |
+
simp only [mul_add,Finset.sum_add_distrib,Finset.mul_sum]
|
| 66 |
+
congr 1
|
| 67 |
+
· apply Finset.sum_congr rfl
|
| 68 |
+
intro I hI
|
| 69 |
+
apply Finset.sum_congr rfl
|
| 70 |
+
intro z hz
|
| 71 |
+
exact mul_left_comm _ _ _
|
| 72 |
+
· simp_rw [Finset.sum_comm (s:=(firstFrequencyDisk (2*K)).erase 0) (t:=cubeLogRange b X)]
|
| 73 |
+
rw [Finset.sum_comm]
|
| 74 |
+
apply Finset.sum_congr rfl
|
| 75 |
+
intro j hj
|
| 76 |
+
apply Finset.sum_congr rfl
|
| 77 |
+
intro I hI
|
| 78 |
+
apply Finset.sum_congr rfl
|
| 79 |
+
intro z hz
|
| 80 |
+
ring
|
| 81 |
+
|
| 82 |
+
end SevenEighths.InverseMoment
|
| 83 |
+
|
| 84 |
+
end
|
| 85 |
+
|
| 86 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongCaller.lean
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongWeight
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongCount
|
| 3 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongIntegral
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
|
| 9 |
+
open scoped BigOperators Classical
|
| 10 |
+
namespace SevenEighths.InverseMoment
|
| 11 |
+
open ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 12 |
+
open CanonicalQuadraticSieve FirstPassCubeLabels SecondPassArithmetic
|
| 13 |
+
open InverseSecondFibers InverseInitialClippedColumns IdealMobiusDivisorSum
|
| 14 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 15 |
+
|
| 16 |
+
theorem normalized_complete_marked_split (K:ℕ)(L eps:ℝ)(hL:0≤L)(heps:0<eps) :
|
| 17 |
+
∃C:ℝ,0<C ∧ ∀{σ:Type*}[DecidableEq σ]
|
| 18 |
+
(S:Finset (Ideal O))(D:ℕ)(hbad:fixedBadPrimes⊆S)(_hSp:∀P∈S,Prime P)
|
| 19 |
+
(labels:Finset (Ideal O))(_hlabels:∀I∈labels,Admissible I)
|
| 20 |
+
(Ψ:O→*ℂ)(m:O)(slots:Finset σ)
|
| 21 |
+
(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)))
|
| 22 |
+
(a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→ℂ)
|
| 23 |
+
(W:ℝ→ℂ)(_hWc:HasCompactSupport W)(b Z N V R H₀:ℝ),
|
| 24 |
+
1≤Z→0<R→V≤L→(∀I∈labels,(I.absNorm:ℝ)≤Z^V)→
|
| 25 |
+
(∀t,W t≠0→t≤b)→b*Z^N≤D→
|
| 26 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D;
|
| 27 |
+
let hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad;
|
| 28 |
+
letI : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 29 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance;
|
| 30 |
+
normalizedColumnEnergy (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 31 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) Finset.univ Ψ m slots lists a labels
|
| 32 |
+
(nonzeroChildFrequencyBall 1 R) (secondLabelWeight K) W (Z^N) Z (N+V)≤
|
| 33 |
+
2*C*Z^(-V+eps)*(
|
| 34 |
+
rowFamilyEnergy labels (fun I z=>markedShortCompletedSum
|
| 35 |
+
(rowTwist Ψ (m*excludedGenerator S) (idealGenerator I) z) W (Z^N) H₀
|
| 36 |
+
(indexedIdealMark (fun i:primePool F=>i.val) slots lists a)) R+
|
| 37 |
+
(cubeLogRange b (Z^N)).card*∑j∈cubeLogRange b (Z^N),
|
| 38 |
+
rowFamilyEnergy labels (fun I z=>markedReopenedCubeBin S D
|
| 39 |
+
(progressingCubes S D H₀ (activeCubeLogBin S D b (Z^N) j))
|
| 40 |
+
Ψ m (idealGenerator I) z W (Z^N) H₀ slots lists a) R) := by
|
| 41 |
+
obtain ⟨C,hC,hh⟩:=normalized_second_energy_le_actual_family K L eps hL heps
|
| 42 |
+
refine ⟨C,hC,?_⟩
|
| 43 |
+
intro σ _ S D hbad hSp labels hlabels Ψ m slots lists a W hWc b Z N V R H₀
|
| 44 |
+
hZ hR hV hnorm hW hD
|
| 45 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 46 |
+
have hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad
|
| 47 |
+
let : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 48 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 49 |
+
dsimp only
|
| 50 |
+
have hz:0<Z:=zero_lt_one.trans_le hZ
|
| 51 |
+
have hb:=hh (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 52 |
+
(poolPrimary_good F hF) Finset.univ Ψ m slots lists a labels hlabels W
|
| 53 |
+
(Z^N) Z (N+V) V R hZ hR hV hnorm
|
| 54 |
+
have hsplit:=actual_marked_family_binned S D hbad hSp labels Ψ m W hWc
|
| 55 |
+
b (Z^N) H₀ R (Real.rpow_pos_of_pos hz _) hR hW hD slots lists a
|
| 56 |
+
have hcost: C*Z^(-(N+V)+eps)*(2*Z^N)=2*C*Z^(-V+eps) := by
|
| 57 |
+
calc
|
| 58 |
+
_=2*C*(Z^(-(N+V)+eps)*Z^N):=by ring
|
| 59 |
+
_=2*C*Z^(-V+eps):=by rw [←Real.rpow_add hz];congr 2;ring
|
| 60 |
+
apply hb.trans
|
| 61 |
+
have he:=mul_le_mul_of_nonneg_left hsplit (show 0≤C*Z^(-(N+V)+eps) by positivity)
|
| 62 |
+
rw [←mul_assoc,hcost] at he
|
| 63 |
+
exact he
|
| 64 |
+
|
| 65 |
+
end SevenEighths.InverseMoment
|
| 66 |
+
|
| 67 |
+
end
|
| 68 |
+
|
| 69 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongCoefficient.lean
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongSource
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
|
| 7 |
+
open scoped BigOperators Classical
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
open ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 10 |
+
open CanonicalQuadraticSieve CanonicalCubeSeparation FirstPassCubeLabels SecondPassArithmetic
|
| 11 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 12 |
+
|
| 13 |
+
def actualLongCoefficient {ι:Type*}(p:ι→O)(Ψ:O→*ℂ)(m:O)(H₀ B ξ:ℝ)
|
| 14 |
+
(I:Ideal O)(v:ι→₀ℕ) : ℂ :=
|
| 15 |
+
separatedCubeCoefficient
|
| 16 |
+
(fun u:ι→₀ℕ=>reopenedCubeCoefficient H₀ (rowTwist Ψ m (idealGenerator I) 1)
|
| 17 |
+
(Ideal.span {primeProduct p u.support u}))
|
| 18 |
+
(fun u:ι→₀ℕ=>(Ideal.absNorm (Ideal.span {primeProduct p u.support u}):ℝ)) B ξ v
|
| 19 |
+
|
| 20 |
+
theorem actualLongCoefficient_uniform (eps:ℝ)(heps:0<eps) :
|
| 21 |
+
∃C:ℝ,0<C ∧ ∀{ι:Type*}(p:ι→O)(_hp:∀i,p i≠0)(Ψ:O→*ℂ)(_hΨ:∀x,‖Ψ x‖≤1)
|
| 22 |
+
(m:O)(H₀ B ξ:ℝ)(I:Ideal O)(v:ι→₀ℕ),0<B→
|
| 23 |
+
B≤‖ConcreteTraceCRT.eisEmbedding (primeProduct p v.support v)‖^2→
|
| 24 |
+
‖ConcreteTraceCRT.eisEmbedding (primeProduct p v.support v)‖^2≤Real.exp 1*B→
|
| 25 |
+
‖actualLongCoefficient p Ψ m H₀ B ξ I v‖≤C*(Real.exp 1*B)^eps := by
|
| 26 |
+
obtain ⟨C,hC,hbound⟩:=reopenedCubeCoefficient_small_power eps heps
|
| 27 |
+
refine ⟨C*Real.exp (1/2),mul_pos hC (Real.exp_pos _),?_⟩
|
| 28 |
+
intro ι p hp Ψ hΨ m H₀ B ξ I v hB hlo hhi
|
| 29 |
+
have hne:Ideal.span {primeProduct p v.support v}≠0 := by
|
| 30 |
+
apply Ideal.span_singleton_eq_bot.not.mpr
|
| 31 |
+
exact Finset.prod_ne_zero_iff.mpr (fun i hi=>pow_ne_zero _ (hp i))
|
| 32 |
+
rw [eisEmbedding_norm_sq_eq_absNorm_span] at hlo hhi
|
| 33 |
+
have hh:=hbound H₀ (rowTwist Ψ m (idealGenerator I) 1)
|
| 34 |
+
(rowTwist_norm Ψ hΨ m (idealGenerator I) 1) _ hne
|
| 35 |
+
have hb:‖reopenedCubeCoefficient H₀ (rowTwist Ψ m (idealGenerator I) 1)
|
| 36 |
+
(Ideal.span {primeProduct p v.support v})‖≤C*(Real.exp 1*B)^eps :=
|
| 37 |
+
hh.trans (mul_le_mul_of_nonneg_left (Real.rpow_le_rpow (by positivity) hhi heps.le) hC.le)
|
| 38 |
+
have hs:=separatedCubeCoefficient_bound
|
| 39 |
+
(fun u:ι→₀ℕ=>reopenedCubeCoefficient H₀ (rowTwist Ψ m (idealGenerator I) 1)
|
| 40 |
+
(Ideal.span {primeProduct p u.support u}))
|
| 41 |
+
(fun u:ι→₀ℕ=>(Ideal.absNorm (Ideal.span {primeProduct p u.support u}):ℝ)) B ξ
|
| 42 |
+
(C*(Real.exp 1*B)^eps) hB (by positivity) v hlo hhi hb
|
| 43 |
+
unfold actualLongCoefficient
|
| 44 |
+
convert hs using 1 ; ring
|
| 45 |
+
|
| 46 |
+
theorem actualLongCoefficient_complete
|
| 47 |
+
(S:Finset (Ideal O))(D:ℕ)(hbad:fixedBadPrimes⊆S)
|
| 48 |
+
(Ψ:O→*ℂ)(m:O)(H₀ B ξ:ℝ)(I:Ideal O)
|
| 49 |
+
(v:primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→₀ℕ) :
|
| 50 |
+
actualLongCoefficient (poolPrimary (InitialMeanSquare.outsideSquarefreeIdeals S D))
|
| 51 |
+
Ψ (m*excludedGenerator S) H₀ B ξ I v=
|
| 52 |
+
separatedCubeCoefficient
|
| 53 |
+
(fun u=>reopenedCubeCoefficient H₀ (rowTwist Ψ (m*excludedGenerator S) (idealGenerator I) 1)
|
| 54 |
+
(cubeIdeal (InitialMeanSquare.outsideSquarefreeIdeals S D) u))
|
| 55 |
+
(fun u=>(Ideal.absNorm (cubeIdeal (InitialMeanSquare.outsideSquarefreeIdeals S D) u):ℝ)) B ξ v := by
|
| 56 |
+
simp only [actualLongCoefficient,cubeIdeal_eq_primeProduct_span _
|
| 57 |
+
(InitialMeanSquare.outsideSquarefree_admissible S D hbad)]
|
| 58 |
+
|
| 59 |
+
end SevenEighths.InverseMoment
|
| 60 |
+
|
| 61 |
+
end
|
| 62 |
+
|
| 63 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongCosts.lean
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalCompleteState
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongGeometry
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
open scoped BigOperators Classical
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
|
| 11 |
+
theorem actual_long_coefficient_cost (Z ell L epsilon Ccoef:ℝ)
|
| 12 |
+
(hZ:1≤Z)(hell:ell≤L)(heps:0≤epsilon):
|
| 13 |
+
(Ccoef*(Real.exp 1*Z^ell)^epsilon)^2≤
|
| 14 |
+
Ccoef^2*Real.exp (2*epsilon)*Z^(2*L*epsilon) := by
|
| 15 |
+
have hz:0<Z:=zero_lt_one.trans_le hZ
|
| 16 |
+
have hex:(Real.exp 1)^epsilon=Real.exp epsilon:=by rw [Real.rpow_def_of_pos (Real.exp_pos _),Real.log_exp,one_mul]
|
| 17 |
+
have hex2:(Real.exp epsilon)^2=Real.exp (2*epsilon):=by rw [←Real.exp_nat_mul];norm_num
|
| 18 |
+
have hid:(Ccoef*(Real.exp 1*Z^ell)^epsilon)^2=
|
| 19 |
+
Ccoef^2*Real.exp (2*epsilon)*Z^(2*ell*epsilon) := by
|
| 20 |
+
rw [Real.mul_rpow (Real.exp_pos _).le (Real.rpow_nonneg hz.le _),hex,
|
| 21 |
+
←Real.rpow_mul hz.le,mul_pow,mul_pow,hex2,
|
| 22 |
+
←Real.rpow_mul_natCast hz.le]
|
| 23 |
+
ring_nf
|
| 24 |
+
rw [hid]
|
| 25 |
+
apply mul_le_mul_of_nonneg_left _ (by positivity)
|
| 26 |
+
apply Real.rpow_le_rpow_of_exponent_le hZ
|
| 27 |
+
nlinarith
|
| 28 |
+
|
| 29 |
+
theorem actual_long_uniform_parent_cost (Z ell N V L epsilon Ccoef C A loss:ℝ)
|
| 30 |
+
(hZ:1≤Z)(hell:ell≤L)(heps:0≤epsilon)(hC:0≤C)(hA:0≤A):
|
| 31 |
+
C*(Ccoef*(Real.exp 1*Z^ell)^epsilon)^2*(1+A)*Z^((N-3*ell)+3*ell+V+loss)≤
|
| 32 |
+
(C*Ccoef^2*Real.exp (2*epsilon))*(1+A)*Z^(N+V+loss+2*L*epsilon) := by
|
| 33 |
+
have hz:0<Z:=zero_lt_one.trans_le hZ
|
| 34 |
+
have h:=actual_long_coefficient_cost Z ell L epsilon Ccoef hZ hell heps
|
| 35 |
+
have hh:=mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right
|
| 36 |
+
(mul_le_mul_of_nonneg_left h hC) (by linarith:0≤1+A))
|
| 37 |
+
(Real.rpow_nonneg hz.le ((N-3*ell)+3*ell+V+loss))
|
| 38 |
+
apply hh.trans_eq
|
| 39 |
+
have hpow:Z^(2*L*epsilon)*Z^((N-3*ell)+3*ell+V+loss)=Z^(N+V+loss+2*L*epsilon):=by
|
| 40 |
+
rw [←Real.rpow_add hz];congr 1;ring
|
| 41 |
+
calc
|
| 42 |
+
_=(C*Ccoef^2*Real.exp (2*epsilon))*(1+A)*
|
| 43 |
+
(Z^(2*L*epsilon)*Z^((N-3*ell)+3*ell+V+loss)):=by ring
|
| 44 |
+
_=_:=by rw [hpow]
|
| 45 |
+
|
| 46 |
+
theorem complete_state_power_absorption (Z F cstar eps loss C A height E:ℝ)
|
| 47 |
+
(hZ:1≤Z)(hc:0≤cstar)(heps:0≤eps)(hloss:0≤loss)
|
| 48 |
+
(hC:0≤C)(_hA:0≤A)(hheight:0≤height)
|
| 49 |
+
(hE:E≤A*height*Z^(F+loss)):
|
| 50 |
+
C*(height*Z^(F-cstar/256)+Z^eps*E)≤
|
| 51 |
+
C*(1+A)*height*Z^(F+loss+eps) := by
|
| 52 |
+
have hz:0<Z:=zero_lt_one.trans_le hZ
|
| 53 |
+
have hs:height*Z^(F-cstar/256)≤height*Z^(F+loss+eps):=by
|
| 54 |
+
apply mul_le_mul_of_nonneg_left _ hheight
|
| 55 |
+
exact Real.rpow_le_rpow_of_exponent_le hZ (by linarith)
|
| 56 |
+
have ht:Z^eps*E≤A*height*Z^(F+loss+eps):=by
|
| 57 |
+
have hh:=mul_le_mul_of_nonneg_left hE (Real.rpow_nonneg hz.le eps)
|
| 58 |
+
apply hh.trans_eq
|
| 59 |
+
rw [Real.rpow_add hz (F+loss) eps]
|
| 60 |
+
ring
|
| 61 |
+
have hh:=mul_le_mul_of_nonneg_left (add_le_add hs ht) hC
|
| 62 |
+
convert hh using 1 ; ring
|
| 63 |
+
|
| 64 |
+
end SevenEighths.InverseMoment
|
| 65 |
+
|
| 66 |
+
end
|
| 67 |
+
|
| 68 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongCount.lean
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongBins
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
|
| 7 |
+
open scoped BigOperators Classical
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
open CanonicalRowCompletion SecondPassArithmetic
|
| 10 |
+
|
| 11 |
+
theorem actual_cube_bin_count (b L eps:ℝ)(hb:0≤b)(hL:0≤L)(heps:0<eps) :
|
| 12 |
+
∃C:ℝ,0<C ∧ ∀X Z:ℝ,0≤X→1≤Z→X≤Z^L→
|
| 13 |
+
((cubeLogRange b X).card:ℝ)^2≤C*Z^eps := by
|
| 14 |
+
have hLp:0<L+1:=by linarith
|
| 15 |
+
have hd:0<3*eps/(L+1):=by positivity
|
| 16 |
+
obtain ⟨C,hC,hh⟩:=cubeLogRange_sq_small_power b (3*eps/(L+1)) hb hd
|
| 17 |
+
refine ⟨C,hC,?_⟩
|
| 18 |
+
intro X Z hX hZ hXL
|
| 19 |
+
have hz:0<Z:=zero_lt_one.trans_le hZ
|
| 20 |
+
have hscale:(Z^((L+1)/3))^3=Z^(L+1) := by
|
| 21 |
+
rw [←Real.rpow_mul_natCast hz.le]
|
| 22 |
+
congr 1
|
| 23 |
+
ring
|
| 24 |
+
have hpow:(Z^((L+1)/3))^(3*eps/(L+1))=Z^eps := by
|
| 25 |
+
rw [←Real.rpow_mul hz.le]
|
| 26 |
+
congr 1
|
| 27 |
+
field_simp
|
| 28 |
+
have hbnd:=hh X (Z^((L+1)/3)) hX (Real.one_le_rpow hZ (by positivity))
|
| 29 |
+
(by rw [hscale];exact hXL.trans (Real.rpow_le_rpow_of_exponent_le hZ (by linarith)))
|
| 30 |
+
simpa only [hpow] using hbnd
|
| 31 |
+
|
| 32 |
+
end SevenEighths.InverseMoment
|
| 33 |
+
|
| 34 |
+
end
|
| 35 |
+
|
| 36 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongFinite.lean
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongAggregate
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
|
| 7 |
+
open scoped BigOperators Classical
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
open ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 10 |
+
open CanonicalQuadraticSieve FirstPassCubeLabels SecondPassArithmetic
|
| 11 |
+
open InverseSecondFibers IdealMobiusDivisorSum
|
| 12 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 13 |
+
|
| 14 |
+
theorem actual_complete_finite_split (K:ℕ)(L eps:ℝ)(hL:0≤L)(heps:0<eps) :
|
| 15 |
+
∃C:ℝ,0<C ∧ ∀{σ:Type*}[DecidableEq σ]
|
| 16 |
+
(S:Finset (Ideal O))(D:ℕ)(hbad:fixedBadPrimes⊆S)(_hSp:∀P∈S,Prime P)
|
| 17 |
+
(labels:Finset (Ideal O))(_hlabels:∀I∈labels,I≠0)
|
| 18 |
+
(Ψ:O→*ℂ)(m:O)(slots:Finset σ)
|
| 19 |
+
(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)))
|
| 20 |
+
(a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→ℂ)
|
| 21 |
+
(W:ℝ→ℂ)(_hWc:HasCompactSupport W)(b Z N V R H₀:ℝ),
|
| 22 |
+
1≤Z → 0<R → V≤L → (∀I∈labels,(I.absNorm:ℝ)≤Z^V) →
|
| 23 |
+
(∀t,W t≠0 → t≤b) → b*Z^N≤D →
|
| 24 |
+
Z^(-(N+V))*(∑I∈labels,secondLabelWeight K I*∑z∈nonzeroChildFrequencyBall 1 R,
|
| 25 |
+
‖outsideCanonicalMarkedRow S D hbad Ψ m (idealGenerator I) z slots lists a W (Z^N)‖^2) ≤
|
| 26 |
+
2*(Z^(-V)*(∑I∈labels,secondLabelWeight K I*∑z∈nonzeroChildFrequencyBall 1 R,
|
| 27 |
+
‖markedShortCompletedSum (rowTwist Ψ (m*excludedGenerator S) (idealGenerator I) z)
|
| 28 |
+
W (Z^N) H₀ (indexedIdealMark (fun i:primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)=>i.val)
|
| 29 |
+
slots lists a)‖^2))+
|
| 30 |
+
2*C*Z^(-V+eps)*(cubeLogRange b (Z^N)).card*∑j∈cubeLogRange b (Z^N),
|
| 31 |
+
rowFamilyEnergy labels (fun I z=>markedReopenedCubeBin S D
|
| 32 |
+
(progressingCubes S D H₀ (activeCubeLogBin S D b (Z^N) j))
|
| 33 |
+
Ψ m (idealGenerator I) z W (Z^N) H₀ slots lists a) R := by
|
| 34 |
+
obtain ⟨C,hC,hweight⟩:=second_label_weight_uniform K L eps hL heps
|
| 35 |
+
refine ⟨C,hC,?_⟩
|
| 36 |
+
intro σ _ S D hbad hSp labels hlabels Ψ m slots lists a W hWc b Z N V R H₀ hZ hR hV hnorm hW hD
|
| 37 |
+
have hz:0<Z:=zero_lt_one.trans_le hZ
|
| 38 |
+
let bins:=cubeLogRange b (Z^N)
|
| 39 |
+
let short:=fun I z=>markedShortCompletedSum (rowTwist Ψ (m*excludedGenerator S) (idealGenerator I) z)
|
| 40 |
+
W (Z^N) H₀ (indexedIdealMark (fun i:primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)=>i.val) slots lists a)
|
| 41 |
+
let long:=fun j I z=>markedReopenedCubeBin S D
|
| 42 |
+
(progressingCubes S D H₀ (activeCubeLogBin S D b (Z^N) j))
|
| 43 |
+
Ψ m (idealGenerator I) z W (Z^N) H₀ slots lists a
|
| 44 |
+
let ball:=nonzeroChildFrequencyBall 1 R
|
| 45 |
+
have hpoint (I:Ideal O)(z:O):
|
| 46 |
+
‖outsideCanonicalMarkedRow S D hbad Ψ m (idealGenerator I) z slots lists a W (Z^N)‖^2≤
|
| 47 |
+
2*Z^N*(‖short I z‖^2+bins.card*∑j∈bins,‖long j I z‖^2) := by
|
| 48 |
+
have hh:=original_marked_binned_energy S D Ψ m (idealGenerator I) z W b (Z^N) H₀ slots lists a
|
| 49 |
+
hbad hSp hWc (Real.rpow_pos_of_pos hz _) hW hD
|
| 50 |
+
convert hh using 1
|
| 51 |
+
congr 2
|
| 52 |
+
apply congrArg (fun x:ℝ=>(bins.card:ℝ)*x)
|
| 53 |
+
apply Finset.sum_congr rfl
|
| 54 |
+
intro j hj
|
| 55 |
+
rw [marked_long_filter S D (activeCubeLogBin S D b (Z^N) j) Ψ m (idealGenerator I) z W (Z^N) H₀ slots lists a]
|
| 56 |
+
have hlong (j:ℕ):
|
| 57 |
+
(∑I∈labels,secondLabelWeight K I*∑z∈ball,‖long j I z‖^2)≤
|
| 58 |
+
C*Z^eps*rowFamilyEnergy labels (long j) R := by
|
| 59 |
+
rw [rowFamilyEnergy,Complex.re_sum,Finset.mul_sum]
|
| 60 |
+
apply Finset.sum_le_sum
|
| 61 |
+
intro I hI
|
| 62 |
+
have hb:=finite_nonzero_row_energy_le_majorant (long j I) ball R hR
|
| 63 |
+
(by intro z hz;rw [←eisEmbedding_norm_sq_eq_absNorm_span]
|
| 64 |
+
simpa only [one_mul] using ((mem_nonzeroChildFrequencyBall 1 one_ne_zero R z).mp hz).2)
|
| 65 |
+
(by intro z hz he
|
| 66 |
+
have hn:=((mem_nonzeroChildFrequencyBall 1 one_ne_zero R z).mp hz).1
|
| 67 |
+
simp only [he,mul_zero,map_zero,norm_zero,pow_succ,lt_self_iff_false] at hn)
|
| 68 |
+
exact (mul_le_mul_of_nonneg_right (hweight Z V hZ hV I (hlabels I hI) (hnorm I hI))
|
| 69 |
+
(Finset.sum_nonneg (fun _ _=>sq_nonneg _))).trans (mul_le_mul_of_nonneg_left hb (by positivity))
|
| 70 |
+
have hsum:=Finset.sum_le_sum (s:=labels) (fun I hI=>
|
| 71 |
+
mul_le_mul_of_nonneg_left (Finset.sum_le_sum (s:=ball) (fun z hz=>hpoint I z))
|
| 72 |
+
(show 0≤secondLabelWeight K I by unfold secondLabelWeight;positivity))
|
| 73 |
+
have he:=mul_le_mul_of_nonneg_left hsum (Real.rpow_nonneg hz.le (-(N+V)))
|
| 74 |
+
have hc:Z^(-(N+V))*Z^N=Z^(-V):=by rw [←Real.rpow_add hz];congr 1;ring
|
| 75 |
+
have rearrange:
|
| 76 |
+
Z^(-(N+V))*(∑I∈labels,secondLabelWeight K I*∑z∈ball,
|
| 77 |
+
2*Z^N*(‖short I z‖^2+bins.card*∑j∈bins,‖long j I z‖^2))=
|
| 78 |
+
2*Z^(-V)*(∑I∈labels,secondLabelWeight K I*∑z∈ball,‖short I z‖^2)+
|
| 79 |
+
2*Z^(-V)*bins.card*∑j∈bins,∑I∈labels,secondLabelWeight K I*∑z∈ball,‖long j I z‖^2 := by
|
| 80 |
+
simp only [mul_add,Finset.sum_add_distrib,Finset.mul_sum]
|
| 81 |
+
simp_rw [Finset.sum_comm (s:=ball) (t:=bins)]
|
| 82 |
+
rw [Finset.sum_comm (s:=labels) (t:=bins)]
|
| 83 |
+
simp only [←Finset.mul_sum,mul_assoc,mul_left_comm]
|
| 84 |
+
rw [←hc]
|
| 85 |
+
ring
|
| 86 |
+
rw [rearrange] at he
|
| 87 |
+
apply he.trans
|
| 88 |
+
have hj:=mul_le_mul_of_nonneg_left (Finset.sum_le_sum (s:=bins) (fun j hj=>hlong j))
|
| 89 |
+
(show 0≤2*Z^(-V)*(bins.card:ℝ) by positivity)
|
| 90 |
+
rw [←Finset.mul_sum] at hj
|
| 91 |
+
have hpow:Z^(-V)*Z^eps=Z^(-V+eps):=(Real.rpow_add hz _ _).symm
|
| 92 |
+
convert add_le_add_left hj (2*Z^(-V)*(∑I∈labels,secondLabelWeight K I*∑z∈ball,‖short I z‖^2)) using 1 <;>
|
| 93 |
+
dsimp [bins,short,long,ball] <;> (try rw [←hpow]) <;> ring
|
| 94 |
+
|
| 95 |
+
end SevenEighths.InverseMoment
|
| 96 |
+
|
| 97 |
+
end
|
| 98 |
+
|
| 99 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongFull.lean
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstDyadicPriorityBudget
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstDyadicOriginalBranches
|
| 3 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstOriginalProfileLiveParents
|
| 4 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstLiveCountBudget
|
| 5 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstOriginalProfileLiveAggregate
|
| 6 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstOriginalProfileLiveEnergy
|
| 7 |
+
|
| 8 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongCoefficient
|
| 9 |
+
|
| 10 |
+
namespace OAI
|
| 11 |
+
|
| 12 |
+
noncomputable section
|
| 13 |
+
open scoped Classical BigOperators SchwartzMap
|
| 14 |
+
|
| 15 |
+
namespace SevenEighths.InverseMoment
|
| 16 |
+
open ActualEisensteinCubic FirstPassCubeLabels SecondPassArithmetic
|
| 17 |
+
open InverseFirstGlobalCaps InverseSecondSourceBlocks InverseMomentFirstChildWindows
|
| 18 |
+
open InverseMomentFirstOriginalProfile InverseMomentFirstProfileUniform
|
| 19 |
+
open InverseAmbientProfileTower JointLogSeparation FourierBridge CompletedHeight
|
| 20 |
+
open ConcreteTraceCRT (eisEmbedding)
|
| 21 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 22 |
+
|
| 23 |
+
theorem actual_long_dyadic_full_energy
|
| 24 |
+
(om:𝓢(ℝ,ℂ))(a b:ℝ)(ha:0<a)(hs:Function.support om⊆Set.Icc a b) (Lcap Mmax eta tau saving:ℝ)(hcap:0≤Lcap)(hMmax:0≤Mmax)(hb:0≤b)
|
| 25 |
+
(heta:0≤eta)(heta1:eta≤1)(htau:0<tau)(htau1:tau≤1):
|
| 26 |
+
∃(omega₁ omega₂:𝓢(ℝ,ℂ))(lo hi:ℝ),0<lo ∧ lo≤hi ∧
|
| 27 |
+
HasCompactSupport (omega₁:ℝ→ℂ) ∧ HasCompactSupport (omega₂:ℝ→ℂ) ∧
|
| 28 |
+
tsupport (omega₁:ℝ→ℂ)⊆Set.Icc lo hi ∧ tsupport (omega₂:ℝ→ℂ)⊆Set.Icc lo hi ∧
|
| 29 |
+
∀eps:ℝ,0<eps→∀J:ℕ,∃Ccoef C Czero Ctail:ℝ,0<Ccoef ∧ 0≤C ∧ 0≤Czero ∧ 0≤Ctail ∧
|
| 30 |
+
∀{ι σ:Type}[DecidableEq ι][DecidableEq σ](p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 31 |
+
(hg:∀i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i})
|
| 32 |
+
(hinj:Function.Injective (fun i=>Ideal.span {p i}))
|
| 33 |
+
(hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 34 |
+
(_hc:∀i,ringChar (O⧸Ideal.span {p i})≠2)
|
| 35 |
+
(_hpr:∀i,ConcretePrimeRowBridge.goodLambda^2∣p i-1)
|
| 36 |
+
(pool:Finset ι)(Q:Finset (ι→₀ℕ))(labels:Finset (Ideal O))
|
| 37 |
+
(Ψ:O→*ℂ)(m mCoef:O)
|
| 38 |
+
(slots:Finset σ)(lists:σ→Finset ι)(weights:σ→ι→ℂ)
|
| 39 |
+
(Z M r ell V H₀ ξ Benergy:ℝ)
|
| 40 |
+
(_hZ:2≤Z)(_hbin:2≤Z^eta)(_hbinExp:Real.exp 1≤Z^eta)(_hM:0≤M)(_hF:r+3*ell+V≤Lcap)(_hMcap:M≤Mmax)(_hell:0≤ell)(_hV:0≤V)(_hr: -eta≤r)
|
| 41 |
+
(_hbZ:b≤Z^eta)(_hQpool:∀v∈Q,v.support⊆pool)
|
| 42 |
+
(_hQlo:∀v∈Q,Z^ell≤‖eisEmbedding (primeProduct p v.support v)‖^2)
|
| 43 |
+
(_hQhi:∀v∈Q,‖eisEmbedding (primeProduct p v.support v)‖^2≤Real.exp 1*Z^ell)
|
| 44 |
+
(_hrcap:r≤Lcap)(_hellcap:ell≤Lcap)
|
| 45 |
+
|
| 46 |
+
(_hΨ:∀u,‖Ψ u‖≤1)(_hB:0≤Benergy)
|
| 47 |
+
(_hsf:∀I∈labels,Squarefree I)(_hn:∀I∈labels,I≠0)
|
| 48 |
+
(_hlabels:∀I∈labels,(Ideal.absNorm I:ℝ)≤Z^(V+eta))
|
| 49 |
+
(_hslots:(slots:Set σ).PairwiseDisjoint lists)(_hweights:∀i∈slots,∀q∈lists i,‖weights i q‖≤1),
|
| 50 |
+
let mark:=fun v U=>primeMark slots lists weights (v.support∪U);
|
| 51 |
+
let Y:=Z^(2*Lcap+15*eta+tau);
|
| 52 |
+
let cutoff:=fun (q:CubeCoordinates ι) (C:Finset ι) (_I:Ideal O) (D:Finset ι)=>firstDyadicRadius p q C D Z M r ell V eta tau;
|
| 53 |
+
let W:=fun y=>normTwistedSource om ξ (y/Z^r);
|
| 54 |
+
let source:=firstGlobalRetainedSource p (firstOriginalOuter pool Q) (fun _=>labels) (fun x=>x.1) Y;
|
| 55 |
+
let keys:=liveJointKeys p source pool (sourceSummand p hp hcop hg (actualLongCoefficient p Ψ mCoef H₀ (Z^ell) ξ) cutoff Ψ m mark W rowMajorant (Z^M));
|
| 56 |
+
(∀k∈keys,∀z:Frequency×(Fin 9→ℝ),
|
| 57 |
+
(Z^(firstKappa M r ell V (dyadicExponent Z (k.1 3)) (dyadicExponent Z (k.1 0))
|
| 58 |
+
(dyadicExponent Z (k.1 2)) (dyadicExponent Z (k.1 4)))*Real.exp ((9/2:ℝ)*(eta*Real.log Z)))*
|
| 59 |
+
globalPriorityOriginalEnergy p hg hp hinj (fun q=>q.rightExponent.support) pool
|
| 60 |
+
(InverseFirstGlobalCaps.labelParentCell p pool Q (fun _ _=>1) k.1 k.2.1 k.2.2)
|
| 61 |
+
(fun x=>(‖commonSelector p (fun _=>1) k.2.1 x.quotientSupport‖:ℂ))
|
| 62 |
+
true Ψ m slots lists weights omega₁
|
| 63 |
+
((physicalScales (Z^r) k.1 k.2.1) 7)
|
| 64 |
+
(profileHeight firstLeftSlope firstRightSlope firstKernelSlope z.1 z.2 7)
|
| 65 |
+
(firstCellRadius Z M r ell V eta tau k.1 k.2.2)≤Benergy*(tripleHeight J z.1*coordinateHeight J z.2))→
|
| 66 |
+
(∀k∈keys,∀z:Frequency×(Fin 9→ℝ),
|
| 67 |
+
(Z^(firstKappa M r ell V (dyadicExponent Z (k.1 3)) (dyadicExponent Z (k.1 1))
|
| 68 |
+
(dyadicExponent Z (k.1 2)) (dyadicExponent Z (k.1 4)))*Real.exp ((9/2:ℝ)*(eta*Real.log Z)))*
|
| 69 |
+
globalPriorityOriginalEnergy p hg hp hinj (fun q=>q.leftExponent.support) pool
|
| 70 |
+
(InverseFirstGlobalCaps.labelParentCell p pool Q (fun _ _=>1) k.1 k.2.1 k.2.2)
|
| 71 |
+
(fun x=>(‖commonSelector p (fun _=>1) k.2.1 x.quotientSupport‖:ℂ))
|
| 72 |
+
false Ψ m slots lists weights omega₂
|
| 73 |
+
((physicalScales (Z^r) k.1 k.2.1) 8)
|
| 74 |
+
(profileHeight firstLeftSlope firstRightSlope firstKernelSlope z.1 z.2 8)
|
| 75 |
+
(firstCellRadius Z M r ell V eta tau k.1 k.2.2)≤Benergy*(tripleHeight J z.1*coordinateHeight J z.2))→
|
| 76 |
+
Z^(-r-2*ell-V)*CanonicalRowCompletion.rowFamilyEnergy labels (fun I z=>
|
| 77 |
+
varyingReopenedRow p hp hcop hg pool Q ((actualLongCoefficient p Ψ mCoef H₀ (Z^ell) ξ) I) Ψ m (ConcretePrimeRowBridge.idealGenerator I)
|
| 78 |
+
(fun v U=>mark v U*W (primeProductNorm p U)) z) (Z^M)≤
|
| 79 |
+
Czero*(Ccoef*(Real.exp 1*Z^ell)^eps)^2*Z^(M-ell+3*eta+eps*(5*ell+2*r+7*eta))+
|
| 80 |
+
C*(Ccoef*(Real.exp 1*Z^ell)^eps)^2*Benergy*(1+‖ξ‖)^(2*InverseClippingProfiles.momentOrder J)*
|
| 81 |
+
Z^((2*Lcap+15*eta+tau)*eps+eps)+Ctail*(Ccoef*(Real.exp 1*Z^ell)^eps)^2*Z^(-saving) := by
|
| 82 |
+
obtain ⟨omega₁,omega₂,lo,hi,hlo,hlh,hw₁,hw₂,hs₁,hs₂,he⟩:=
|
| 83 |
+
original_dyadic_full_energy om a b ha hs Lcap Mmax eta tau saving hcap hMmax hb heta heta1 htau htau1
|
| 84 |
+
refine ⟨omega₁,omega₂,lo,hi,hlo,hlh,hw₁,hw₂,hs₁,hs₂,?_⟩
|
| 85 |
+
intro eps heps J
|
| 86 |
+
obtain ⟨Ccoef,hCcoef,hcoef⟩:=actualLongCoefficient_uniform eps heps
|
| 87 |
+
obtain ⟨C,Czero,Ctail,hC,hCzero,hCtail,hfull⟩:=he eps heps J
|
| 88 |
+
refine ⟨Ccoef,C,Czero,Ctail,hCcoef,hC,hCzero,hCtail,?_⟩
|
| 89 |
+
intro ι σ _ _ p hp _ hg hinj hcop hc hpr pool Q labels Ψ m mCoef slots lists weights
|
| 90 |
+
Z M r ell V H₀ ξ Benergy hZ hbin hbinExp hM hF hMcap hell hV hr hbZ hQpool hQlo hQhi
|
| 91 |
+
hrcap hellcap hΨ hB hsf hn hlabels hslots hweights mark Y cutoff W source keys hleft hright
|
| 92 |
+
have hz:0<Z:=by linarith
|
| 93 |
+
have hQ:∀v∈Q,‖eisEmbedding (primeProduct p v.support v)‖^2≤Z^(ell+eta) := by
|
| 94 |
+
intro v hv
|
| 95 |
+
apply (hQhi v hv).trans
|
| 96 |
+
calc
|
| 97 |
+
Real.exp 1*Z^ell≤Z^eta*Z^ell:=mul_le_mul_of_nonneg_right hbinExp (Real.rpow_nonneg hz.le _)
|
| 98 |
+
_=Z^(ell+eta):=by rw [Real.rpow_add hz];ring
|
| 99 |
+
have hβ:∀I∈labels,∀v∈Q,
|
| 100 |
+
‖actualLongCoefficient p Ψ mCoef H₀ (Z^ell) ξ I v‖≤Ccoef*(Real.exp 1*Z^ell)^eps := by
|
| 101 |
+
intro I hI v hv
|
| 102 |
+
exact hcoef p hp Ψ hΨ mCoef H₀ (Z^ell) ξ I v (Real.rpow_pos_of_pos hz _) (hQlo v hv) (hQhi v hv)
|
| 103 |
+
exact hfull p hp hg hinj hcop hc hpr pool Q labels
|
| 104 |
+
(actualLongCoefficient p Ψ mCoef H₀ (Z^ell) ξ) Ψ m slots lists weights
|
| 105 |
+
Z M r ell V (Ccoef*(Real.exp 1*Z^ell)^eps) ξ Benergy hZ hbin hM hF hMcap hell hV hr hbZ
|
| 106 |
+
hQpool hQ hrcap hellcap hΨ (by positivity) hB hsf hn hβ hlabels hslots hweights hleft hright
|
| 107 |
+
|
| 108 |
+
end SevenEighths.InverseMoment
|
| 109 |
+
|
| 110 |
+
end
|
| 111 |
+
|
| 112 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongGeometry.lean
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongCoefficient
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
|
| 7 |
+
open scoped BigOperators Classical
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
open ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 10 |
+
open CanonicalQuadraticSieve CanonicalCubeSeparation FirstPassCubeLabels SecondPassArithmetic
|
| 11 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 12 |
+
|
| 13 |
+
def actualCubeLength (Z:ℝ)(j:ℕ):ℝ:=Real.logb Z (normLogScale j)
|
| 14 |
+
|
| 15 |
+
theorem actualCubeLength_power (Z:ℝ)(hZ:1<Z)(j:ℕ) :
|
| 16 |
+
Z^(actualCubeLength Z j)=normLogScale j :=
|
| 17 |
+
Real.rpow_logb (zero_lt_one.trans hZ) (ne_of_gt hZ) (normLogScale_pos j)
|
| 18 |
+
|
| 19 |
+
theorem actual_long_bin_geometry
|
| 20 |
+
(S:Finset (Ideal O))(D:ℕ)(hbad:fixedBadPrimes⊆S)
|
| 21 |
+
(b Z N V cutoff eta L:ℝ)(j:ℕ)(hZ:1<Z)(hL:1≤L)(heta:eta≤1)
|
| 22 |
+
(hV:0≤V)(hparent:N+V≤L)(hb:b≤Z^eta)(hlog:1≤eta*Real.log Z)
|
| 23 |
+
(hne:(progressingCubes S D (Z^(cutoff-V)) (activeCubeLogBin S D b (Z^N) j)).Nonempty) :
|
| 24 |
+
let ell:=actualCubeLength Z j;
|
| 25 |
+
let r:=N-3*ell;
|
| 26 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D;
|
| 27 |
+
let Q:=progressingCubes S D (Z^(cutoff-V)) (activeCubeLogBin S D b (Z^N) j);
|
| 28 |
+
0≤ell ∧ -eta≤r ∧ r≤L ∧ ell≤L ∧ r+3*ell+V≤L ∧ cutoff-eta≤ell+V ∧
|
| 29 |
+
∀v∈Q,Z^ell≤‖ConcreteTraceCRT.eisEmbedding (primeProduct (poolPrimary F) v.support v)‖^2 ∧
|
| 30 |
+
‖ConcreteTraceCRT.eisEmbedding (primeProduct (poolPrimary F) v.support v)‖^2≤Real.exp 1*Z^ell := by
|
| 31 |
+
dsimp only
|
| 32 |
+
have hz:0<Z:=zero_lt_one.trans hZ
|
| 33 |
+
have hp:Z^(actualCubeLength Z j)=normLogScale j:=actualCubeLength_power Z hZ j
|
| 34 |
+
have hel:0≤actualCubeLength Z j:=Real.logb_nonneg hZ (normLogScale_ge_one j)
|
| 35 |
+
have hnorm (v:primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→₀ℕ)
|
| 36 |
+
(hv:v∈activeCubeLogBin S D b (Z^N) j) :
|
| 37 |
+
Z^(actualCubeLength Z j)≤(Ideal.absNorm (cubeIdeal (InitialMeanSquare.outsideSquarefreeIdeals S D) v):ℝ) ∧
|
| 38 |
+
(Ideal.absNorm (cubeIdeal (InitialMeanSquare.outsideSquarefreeIdeals S D) v):ℝ)≤Real.exp 1*Z^(actualCubeLength Z j) := by
|
| 39 |
+
rw [hp]
|
| 40 |
+
exact activeCubeLogBin_norms S D b (Z^N) j v hv
|
| 41 |
+
obtain ⟨v,hv⟩:=hne
|
| 42 |
+
have hvbin: v∈activeCubeLogBin S D b (Z^N) j := (Finset.mem_filter.mp hv).1
|
| 43 |
+
have hactive:= (Finset.mem_filter.mp hvbin).1
|
| 44 |
+
have hcube:(Ideal.absNorm (cubeIdeal (InitialMeanSquare.outsideSquarefreeIdeals S D) v):ℝ)^3≤b*Z^N :=
|
| 45 |
+
(Finset.mem_filter.mp hactive).2
|
| 46 |
+
have hsc:(Z^(actualCubeLength Z j))^3≤Z^(N+eta) := by
|
| 47 |
+
calc
|
| 48 |
+
_≤(Ideal.absNorm (cubeIdeal (InitialMeanSquare.outsideSquarefreeIdeals S D) v):ℝ)^3 :=
|
| 49 |
+
pow_le_pow_left₀ (Real.rpow_nonneg hz.le _) (hnorm v hvbin).1 3
|
| 50 |
+
_≤b*Z^N:=hcube
|
| 51 |
+
_≤Z^eta*Z^N:=mul_le_mul_of_nonneg_right hb (Real.rpow_nonneg hz.le _)
|
| 52 |
+
_=Z^(N+eta):=by rw [Real.rpow_add hz];ring
|
| 53 |
+
rw [←Real.rpow_mul_natCast hz.le] at hsc
|
| 54 |
+
have hscale:actualCubeLength Z j*3≤N+eta := (Real.rpow_le_rpow_left_iff hZ).mp hsc
|
| 55 |
+
have hprogress:=long_cube_progress_with_slack S D (activeCubeLogBin S D b (Z^N) j)
|
| 56 |
+
Z cutoff V (actualCubeLength Z j) eta hZ hlog ⟨v,hv⟩ (fun v hv=>(hnorm v hv).2)
|
| 57 |
+
refine ⟨hel,by linarith,by linarith,by linarith,by linarith,hprogress,?_⟩
|
| 58 |
+
intro u hu
|
| 59 |
+
rw [cubeIdeal_primeProduct_norm _ (InitialMeanSquare.outsideSquarefree_admissible S D hbad)]
|
| 60 |
+
exact hnorm u (Finset.mem_filter.mp hu).1
|
| 61 |
+
|
| 62 |
+
end SevenEighths.InverseMoment
|
| 63 |
+
|
| 64 |
+
end
|
| 65 |
+
|
| 66 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongHeightBin.lean
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongUniformTestBin
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalReopeningHeight
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
open scoped BigOperators Classical SchwartzMap ContDiff
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open MeasureTheory ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 11 |
+
open CanonicalQuadraticSieve CanonicalCubeSeparation FirstPassCubeLabels SecondPassArithmetic
|
| 12 |
+
open InverseMomentFirstLabelCell InverseMomentFirstSecondHeightCost CompletedHeight
|
| 13 |
+
open FourierBridge JointLogSeparation
|
| 14 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 15 |
+
|
| 16 |
+
theorem actual_marked_bin_height
|
| 17 |
+
(a₀ b₀:ℝ)(ha₀:0<a₀)(hb₀:0≤b₀)
|
| 18 |
+
(W:ℝ→ℂ)(hsW:Function.support W⊆Set.Icc a₀ b₀)(hW:ContDiff ℝ ∞ W)
|
| 19 |
+
(Vlog:𝓢(ℝ,ℂ))(Alog:ℝ)(hbox:∀x,Vlog x≠0 → |x|≤Alog)
|
| 20 |
+
(hone:∀x,|x|≤CanonicalCubeSeparation.columnWindowRadius a₀ b₀ → Vlog x=1)
|
| 21 |
+
(Lcap eta tau saving em ed:ℝ)(hcap:0≤Lcap)
|
| 22 |
+
(heta:0≤eta)(heta1:eta≤1)(htau:0<tau)(htau1:tau≤1)
|
| 23 |
+
(hem:0<em)(hed:0<ed)(K:ℕ):
|
| 24 |
+
∃(ω₁₁ ω₁₂ ω₂₁ ω₂₂:𝓢(ℝ,ℂ))(af₁ bf₁ af₂ bf₂ window bw:ℝ),
|
| 25 |
+
0<af₁ ∧ af₁≤bf₁ ∧ 0<af₂ ∧ af₂≤bf₂ ∧
|
| 26 |
+
HasCompactSupport (ω₁₁:ℝ → ℂ) ∧ HasCompactSupport (ω₁₂:ℝ → ℂ) ∧
|
| 27 |
+
HasCompactSupport (ω₂₁:ℝ → ℂ) ∧ HasCompactSupport (ω₂₂:ℝ → ℂ) ∧
|
| 28 |
+
tsupport (ω₁₁:ℝ → ℂ)⊆Set.Icc af₁ bf₁ ∧ tsupport (ω₁₂:ℝ → ℂ)⊆Set.Icc af₁ bf₁ ∧
|
| 29 |
+
tsupport (ω₂₁:ℝ → ℂ)⊆Set.Icc af₂ bf₂ ∧ tsupport (ω₂₂:ℝ → ℂ)⊆Set.Icc af₂ bf₂ ∧
|
| 30 |
+
1≤bw ∧ Real.exp Alog≤bw ∧ bw=Real.exp window ∧
|
| 31 |
+
∀epsFirst epsSecond:ℝ,0<epsFirst → 0<epsSecond → ∀degree:ℕ,
|
| 32 |
+
∃Ccoef C:ℝ,0<Ccoef ∧ 0≤C ∧
|
| 33 |
+
∀theta:ℝ,
|
| 34 |
+
∀{σ:Type}[DecidableEq σ](S:Finset (Ideal O))(D:ℕ)(hbad:fixedBadPrimes⊆S)(hSp:∀P∈S,Prime P),
|
| 35 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D;
|
| 36 |
+
let hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad;
|
| 37 |
+
letI : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 38 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance;
|
| 39 |
+
let p:=poolPrimary F;
|
| 40 |
+
let hp:=poolPrimary_ne_zero F hF;
|
| 41 |
+
let hcop:=poolPrimary_coprime F hF;
|
| 42 |
+
let hg:=poolPrimary_good F hF;
|
| 43 |
+
let om:=radialFromLog Vlog (Vlog.smooth ⊤) Alog hbox;
|
| 44 |
+
∀(Q:Finset (primePool F →₀ ℕ))(labels:Finset (Ideal O))(Ψ:O →* ℂ)(m:O)
|
| 45 |
+
(slots:Finset σ)(lists:σ → Finset (primePool F))(weights:σ → primePool F → ℂ)
|
| 46 |
+
(Z M r ell V H₀ pi epschild A loss lossFinal:ℝ),
|
| 47 |
+
2≤Z → 2≤Z^eta → Real.exp 1≤Z^eta → 0≤M → r+3*ell+V≤Lcap → M≤Lcap →
|
| 48 |
+
0≤ell → 0≤V → -eta≤r → Real.exp Alog≤Z^eta →
|
| 49 |
+
(∀v∈Q,Z^ell≤(Ideal.absNorm (cubeIdeal F v):ℝ)) →
|
| 50 |
+
(∀v∈Q,(Ideal.absNorm (cubeIdeal F v):ℝ)≤Real.exp 1*Z^ell) →
|
| 51 |
+
r≤Lcap → ell≤Lcap → V≤Lcap → Real.exp window≤Z^eta → 0≤pi → 6*eta≤pi →
|
| 52 |
+
em*(20*(3*Lcap+16)+30)≤pi/4 → ed*(20*(3*Lcap+16)+30)≤pi/4 →
|
| 53 |
+
0≤epschild → -saving≤r+3*ell+V+48*eta+tau+pi+epschild+epsSecond →
|
| 54 |
+
48*eta+tau+pi+epschild+epsSecond≤loss → slots.card≤K →
|
| 55 |
+
M-ell≤r+3*ell+V → 3*eta+epsFirst*(5*ell+2*r+7*eta)≤lossFinal →
|
| 56 |
+
loss+(2*Lcap+15*eta+tau)*epsFirst+epsFirst≤lossFinal → -saving≤r+3*ell+V+lossFinal →
|
| 57 |
+
(∀u,‖Ψ u‖≤1) → 0≤A → (∀I∈labels,Squarefree I) → (∀I∈labels,I≠0) →
|
| 58 |
+
(∀I∈labels,(Ideal.absNorm I:ℝ)≤Z^(V+eta)) →
|
| 59 |
+
(slots:Set σ).PairwiseDisjoint lists → (∀i∈slots,∀q∈lists i,‖weights i q‖≤1) →
|
| 60 |
+
b₀*Z^(r+3*ell)≤D →
|
| 61 |
+
(∀ξ:ℝ,∀k∈actualLongSourceKeys p hp hcop hg Finset.univ Q labels Ψ m (m*excludedGenerator S)
|
| 62 |
+
slots lists weights om Z M r ell V H₀ ξ Lcap eta tau,
|
| 63 |
+
ChildBounds p hp hcop hg Finset.univ Q k.1 k.2.1 k.2.2 true Ψ m slots lists weights ω₁₁ ω₁₂
|
| 64 |
+
Z M r ell V eta tau window bw epschild A K degree) →
|
| 65 |
+
(∀ξ:ℝ,∀k∈actualLongSourceKeys p hp hcop hg Finset.univ Q labels Ψ m (m*excludedGenerator S)
|
| 66 |
+
slots lists weights om Z M r ell V H₀ ξ Lcap eta tau,
|
| 67 |
+
ChildBounds p hp hcop hg Finset.univ Q k.1 k.2.1 k.2.2 false Ψ m slots lists weights ω₂₁ ω₂₂
|
| 68 |
+
Z M r ell V eta tau window bw epschild A K degree) →
|
| 69 |
+
Z^(-V)*rowFamilyEnergy labels (fun I z=>markedReopenedCubeBin S D Q Ψ m (idealGenerator I) z
|
| 70 |
+
(normTwistedSource W theta) (Z^(r+3*ell)) H₀ slots lists weights) (Z^M)≤
|
| 71 |
+
C*(Ccoef*(Real.exp 1*Z^ell)^epsFirst)^2*(1+A)*Z^(r+3*ell+V+lossFinal)*
|
| 72 |
+
(1+‖theta‖)^(2*(InverseClippingProfiles.momentOrder (firstDegree degree)+(volume:Measure ℝ).integrablePower)) := by
|
| 73 |
+
obtain ⟨ω₁₁,ω₁₂,ω₂₁,ω₂₂,af₁,bf₁,af₂,bf₂,window,bw,
|
| 74 |
+
haf₁,hab₁,haf₂,hab₂,hw₁₁,hw₁₂,hw₂₁,hw₂₂,hs₁₁,hs₁₂,hs₂₁,hs₂₂,hbw,hbwb,hbwexp,he⟩:=
|
| 75 |
+
actual_marked_bin_uniform_test a₀ b₀ ha₀ hb₀ Vlog Alog hbox hone
|
| 76 |
+
Lcap eta tau saving em ed hcap heta heta1 htau htau1 hem hed K
|
| 77 |
+
refine ⟨ω₁₁,ω₁₂,ω₂₁,ω₂₂,af₁,bf₁,af₂,bf₂,window,bw,
|
| 78 |
+
haf₁,hab₁,haf₂,hab₂,hw₁₁,hw₁₂,hw₂₁,hw₂₂,hs₁₁,hs₁₂,hs₂₁,hs₂₂,hbw,hbwb,hbwexp,?_⟩
|
| 79 |
+
intro epsFirst epsSecond hepsF hepsS degree
|
| 80 |
+
obtain ⟨Ccoef,C,hCcoef,hC,hbin⟩:=he epsFirst epsSecond hepsF hepsS degree
|
| 81 |
+
obtain ⟨Cm,hCm,hmoment⟩:=reopening_twisted_moment_squared W a₀ b₀ ha₀ hsW hW
|
| 82 |
+
(InverseClippingProfiles.momentOrder (firstDegree degree))
|
| 83 |
+
refine ⟨Ccoef,C*Cm,hCcoef,mul_nonneg hC hCm,?_⟩
|
| 84 |
+
intro theta σ _ S D hbad hSp
|
| 85 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 86 |
+
have hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad
|
| 87 |
+
let : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 88 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 89 |
+
dsimp only
|
| 90 |
+
intro Q labels Ψ m slots lists weights Z M r ell V H₀ pi epschild A loss lossFinal
|
| 91 |
+
hZ hbins hbinExp hM hFcap hMcap hell hV hr hbZ hQlo hQhi hrcap hellcap hVcap hwin
|
| 92 |
+
hpi hpieta hemcost hedcost hechild hsave hloss hcard hpar hprincipal hretained htail
|
| 93 |
+
hΨ hA hsf hn hlabels hslots hweights hD hleft hright
|
| 94 |
+
have hT:=CanonicalRowCompletion.normTwistedSource_contDiff W a₀ b₀ ha₀ hsW hW theta
|
| 95 |
+
have hsT:Function.support (normTwistedSource W theta)⊆Set.Icc a₀ b₀:=
|
| 96 |
+
(normTwistedSource_support W theta).trans hsW
|
| 97 |
+
have hbnd:=hbin (normTwistedSource W theta) hsT hT S D hbad hSp
|
| 98 |
+
Q labels Ψ m slots lists weights Z M r ell V H₀ pi epschild A loss lossFinal
|
| 99 |
+
hZ hbins hbinExp hM hFcap hMcap hell hV hr hbZ hQlo hQhi hrcap hellcap hVcap hwin
|
| 100 |
+
hpi hpieta hemcost hedcost hechild hsave hloss hcard hpar hprincipal hretained htail
|
| 101 |
+
hΨ hA hsf hn hlabels hslots hweights hD hleft hright
|
| 102 |
+
have hz:0<Z:=by linarith
|
| 103 |
+
apply hbnd.trans
|
| 104 |
+
calc
|
| 105 |
+
_ ≤ C*(Ccoef*(Real.exp 1*Z^ell)^epsFirst)^2*(1+A)*Z^(r+3*ell+V+lossFinal)*
|
| 106 |
+
(Cm*(1+‖theta‖)^(2*(InverseClippingProfiles.momentOrder (firstDegree degree)+
|
| 107 |
+
(volume:Measure ℝ).integrablePower))) :=
|
| 108 |
+
mul_le_mul_of_nonneg_left (hmoment theta hT) (by positivity)
|
| 109 |
+
_ = _ := by ring
|
| 110 |
+
|
| 111 |
+
end SevenEighths.InverseMoment
|
| 112 |
+
|
| 113 |
+
end
|
| 114 |
+
|
| 115 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongIntegral.lean
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongFull
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
namespace SevenEighths.InverseMoment
|
| 6 |
+
noncomputable section
|
| 7 |
+
open scoped BigOperators Classical SchwartzMap ContDiff
|
| 8 |
+
open MeasureTheory ActualEisensteinCubic CompletedGauss CanonicalRowCompletion
|
| 9 |
+
open ConcretePrimeRowBridge CanonicalQuadraticSieve SecondPassArithmetic FirstPassCubeLabels
|
| 10 |
+
open CanonicalCubeSeparation JointLogSeparation
|
| 11 |
+
local notation "O" => ActualEisensteinCubic.O
|
| 12 |
+
|
| 13 |
+
theorem actual_long_bin_normalized_energy
|
| 14 |
+
{σ : Type*} [DecidableEq σ]
|
| 15 |
+
(S : Finset (Ideal O)) (D : ℕ) (hbad : fixedBadPrimes ⊆ S) (hSp : ∀P∈S,Prime P)
|
| 16 |
+
(Q : Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D) →₀ ℕ))
|
| 17 |
+
(labels : Finset (Ideal O)) (Ψ : O →* ℂ) (m : O) (W : ℝ → ℂ)
|
| 18 |
+
(a b : ℝ) (ha : 0 < a) (hb : 0≤b) (hs : Function.support W ⊆ Set.Icc a b)
|
| 19 |
+
(hW : ContDiff ℝ ∞ W) (V : 𝓢(ℝ,ℂ))
|
| 20 |
+
(hV : ∀ u, |u| ≤ columnWindowRadius a b → V u = 1)
|
| 21 |
+
(Z r cubeLength Vheight H₀ K E : ℝ) (d : ℕ)
|
| 22 |
+
(hZ : 0 < Z) (hD : b*(Z^(r+3*cubeLength))≤D) (hK : 0 < K) (hE : 0 ≤ E)
|
| 23 |
+
(hn : ∀ v ∈ Q, (Z^cubeLength) ≤ (Ideal.absNorm (cubeIdeal (InitialMeanSquare.outsideSquarefreeIdeals S D) v) : ℝ))
|
| 24 |
+
(hn' : ∀ v ∈ Q, (Ideal.absNorm (cubeIdeal (InitialMeanSquare.outsideSquarefreeIdeals S D) v) : ℝ) ≤ Real.exp 1*(Z^cubeLength))
|
| 25 |
+
(slots : Finset σ)
|
| 26 |
+
(lists : σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)))
|
| 27 |
+
(weights : σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→ℂ) :
|
| 28 |
+
let F := InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 29 |
+
let hF := InitialMeanSquare.outsideSquarefree_admissible S D hbad
|
| 30 |
+
letI : ∀ i : primePool F, (Ideal.span {poolPrimary F i}).IsMaximal :=
|
| 31 |
+
fun i => by rw [poolPrimary_span F hF i]; infer_instance
|
| 32 |
+
let β := fun I v => reopenedCubeCoefficient H₀
|
| 33 |
+
(rowTwist Ψ (m*excludedGenerator S) (idealGenerator I) 1) (cubeIdeal F v)
|
| 34 |
+
let n := fun v => (Ideal.absNorm (cubeIdeal F v) : ℝ)
|
| 35 |
+
(∀ ξ : ℝ, Z^(-r-2*cubeLength-Vheight)*rowFamilyEnergy labels (fun I z =>
|
| 36 |
+
varyingReopenedRow (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 37 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) Finset.univ Q
|
| 38 |
+
(separatedCubeCoefficient (β I) n (Z^cubeLength) ξ) Ψ m (idealGenerator I)
|
| 39 |
+
(fun v T => primeMark slots lists weights (T∪v.support)*frequencyTwist V ξ (columnLog (poolPrimary F) (Z^r) T)) z) K ≤
|
| 40 |
+
E*(1+|ξ|)^(2*d)) →
|
| 41 |
+
Z^(-Vheight)*rowFamilyEnergy labels (fun I z =>
|
| 42 |
+
markedReopenedCubeBin S D Q Ψ m (idealGenerator I) z W (Z^(r+3*cubeLength)) H₀ slots lists weights) K ≤
|
| 43 |
+
E *
|
| 44 |
+
(∫ ξ : ℝ, ‖reopeningCoefficient W a b ha hs hW ξ‖*(1+|ξ|)^d)^2 := by
|
| 45 |
+
dsimp only
|
| 46 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 47 |
+
have hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad
|
| 48 |
+
let : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 49 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 50 |
+
let β:=fun I v=>reopenedCubeCoefficient H₀ (rowTwist Ψ (m*excludedGenerator S) (idealGenerator I) 1) (cubeIdeal F v)
|
| 51 |
+
let n:=fun v=>(Ideal.absNorm (cubeIdeal F v):ℝ)
|
| 52 |
+
intro hsource
|
| 53 |
+
have hcancel:Z^(r+2*cubeLength+Vheight)*Z^(-r-2*cubeLength-Vheight)=1 := by
|
| 54 |
+
rw [←Real.rpow_add hZ]
|
| 55 |
+
convert Real.rpow_zero Z using 2 ; ring
|
| 56 |
+
have hpoint:∀ξ:ℝ,rowFamilyEnergy labels (fun I z=>
|
| 57 |
+
varyingReopenedRow (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 58 |
+
(poolPrimary_good F hF) Finset.univ Q (separatedCubeCoefficient (β I) n (Z^cubeLength) ξ)
|
| 59 |
+
Ψ m (idealGenerator I)
|
| 60 |
+
(fun v T=>primeMark slots lists weights (T∪v.support)*frequencyTwist V ξ (columnLog (poolPrimary F) (Z^r) T)) z) K≤
|
| 61 |
+
(Z^(r+2*cubeLength+Vheight)*E)*(1+|ξ|)^(2*d) := by
|
| 62 |
+
intro ξ
|
| 63 |
+
have hh:=mul_le_mul_of_nonneg_left (hsource ξ) (Real.rpow_nonneg hZ.le (r+2*cubeLength+Vheight))
|
| 64 |
+
rw [←mul_assoc,hcancel,one_mul] at hh
|
| 65 |
+
simpa only [mul_assoc] using hh
|
| 66 |
+
have hX:Z^(r+3*cubeLength)=(Z^cubeLength)^3*Z^r := by
|
| 67 |
+
rw [←Real.rpow_mul_natCast hZ.le,←Real.rpow_add hZ]
|
| 68 |
+
congr 1
|
| 69 |
+
ring
|
| 70 |
+
have hbnd:=markedReopenedCubeBin_energy S D hbad hSp Q labels Ψ m W a b ha hb hs hW V hV
|
| 71 |
+
(Z^cubeLength) (Z^r) (Z^(r+3*cubeLength)) H₀ K (Z^(r+2*cubeLength+Vheight)*E) d
|
| 72 |
+
(Real.rpow_pos_of_pos hZ _) (Real.rpow_pos_of_pos hZ _) hX hD hK (by positivity)
|
| 73 |
+
hn hn' slots lists weights hpoint
|
| 74 |
+
have hc:Z^(-Vheight)*((Z^cubeLength)^2*Z^r)⁻¹*Z^(r+2*cubeLength+Vheight)=1 := by
|
| 75 |
+
rw [←Real.rpow_mul_natCast hZ.le,←Real.rpow_add hZ,←Real.rpow_neg hZ.le,
|
| 76 |
+
←Real.rpow_add hZ,←Real.rpow_add hZ]
|
| 77 |
+
convert Real.rpow_zero Z using 2 ; ring
|
| 78 |
+
have hh:=mul_le_mul_of_nonneg_left hbnd (Real.rpow_nonneg hZ.le (-Vheight))
|
| 79 |
+
apply hh.trans_eq
|
| 80 |
+
calc
|
| 81 |
+
_=(Z^(-Vheight)*((Z^cubeLength)^2*Z^r)⁻¹*Z^(r+2*cubeLength+Vheight))*
|
| 82 |
+
E*(∫ξ:ℝ,‖reopeningCoefficient W a b ha hs hW ξ‖*(1+|ξ|)^d)^2 := by ring
|
| 83 |
+
_=_:=by rw [hc,one_mul]
|
| 84 |
+
|
| 85 |
+
end
|
| 86 |
+
end SevenEighths.InverseMoment
|
| 87 |
+
|
| 88 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongKeys.lean
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongParent
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
|
| 7 |
+
open scoped BigOperators Classical
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
open ActualEisensteinCubic FirstPassCubeLabels SecondPassArithmetic
|
| 10 |
+
open InverseFirstGlobalCaps InverseSecondSourceBlocks
|
| 11 |
+
open InverseMomentFirstOriginalProfile CompletedHeight
|
| 12 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 13 |
+
|
| 14 |
+
def actualLongSourceKeys {ι σ:Type}[DecidableEq ι][DecidableEq σ]
|
| 15 |
+
(p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 16 |
+
(hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 17 |
+
(hg:∀i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i})
|
| 18 |
+
(pool:Finset ι)(Q:Finset (ι→₀ℕ))(labels:Finset (Ideal O))(Ψ:O→*ℂ)(m mCoef:O)
|
| 19 |
+
(slots:Finset σ)(lists:σ→Finset ι)(weights:σ→ι→ℂ)(om:ℝ→ℂ)
|
| 20 |
+
(Z M r ell V H₀ ξ Lcap eta tau:ℝ) :=
|
| 21 |
+
let mark:=fun v U=>primeMark slots lists weights (v.support∪U)
|
| 22 |
+
let cutoff:=fun (q:CubeCoordinates ι)(C:Finset ι)(_I:Ideal O)(D:Finset ι)=>
|
| 23 |
+
firstDyadicRadius p q C D Z M r ell V eta tau
|
| 24 |
+
let W:=fun y=>normTwistedSource om ξ (y/Z^r)
|
| 25 |
+
let source:=firstGlobalRetainedSource p (firstOriginalOuter pool Q) (fun _=>labels)
|
| 26 |
+
(fun x=>x.1) (Z^(2*Lcap+15*eta+tau))
|
| 27 |
+
liveJointKeys p source pool (sourceSummand p hp hcop hg
|
| 28 |
+
(actualLongCoefficient p Ψ mCoef H₀ (Z^ell) ξ) cutoff Ψ m mark W rowMajorant (Z^M))
|
| 29 |
+
|
| 30 |
+
end SevenEighths.InverseMoment
|
| 31 |
+
|
| 32 |
+
end
|
| 33 |
+
|
| 34 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongNormalization.lean
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongSource
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.GeneratorTransport
|
| 3 |
+
import OAI.NumberTheory.DirichletL.Descent.SecondNormalizedEnergy
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
|
| 9 |
+
open scoped BigOperators Classical
|
| 10 |
+
namespace SevenEighths.InverseMoment
|
| 11 |
+
open ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 12 |
+
open CanonicalQuadraticSieve FirstPassCubeLabels SecondPassArithmetic
|
| 13 |
+
open InverseSecondFibers IdealMobiusDivisorSum InverseInitialClippedColumns
|
| 14 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 15 |
+
|
| 16 |
+
theorem child_ball_unit_mem (u:Oˣ)(R:ℝ)(k:O) :
|
| 17 |
+
(u:O)*k∈nonzeroChildFrequencyBall 1 R ↔ k∈nonzeroChildFrequencyBall 1 R := by
|
| 18 |
+
simp only [mem_nonzeroChildFrequencyBall 1 one_ne_zero,one_mul,
|
| 19 |
+
GaussGeneratorTransport.norm_eisEmbedding_unit_mul]
|
| 20 |
+
|
| 21 |
+
theorem child_ball_unit_sum {A:Type*}[AddCommMonoid A](u:Oˣ)(R:ℝ)(f:O→A) :
|
| 22 |
+
∑k∈nonzeroChildFrequencyBall 1 R,f ((u:O)*k)=
|
| 23 |
+
∑k∈nonzeroChildFrequencyBall 1 R,f k := by
|
| 24 |
+
apply Finset.sum_bij (fun k _=>(u:O)*k)
|
| 25 |
+
· intro k hk
|
| 26 |
+
exact (child_ball_unit_mem u R k).mpr hk
|
| 27 |
+
· intro x hx y hy he
|
| 28 |
+
exact mul_left_cancel₀ u.ne_zero he
|
| 29 |
+
· intro y hy
|
| 30 |
+
refine ⟨((u⁻¹:Oˣ):O)*y,(child_ball_unit_mem u⁻¹ R y).mpr hy,?_⟩
|
| 31 |
+
rw [←mul_assoc,←Units.val_mul,mul_inv_cancel,Units.val_one,one_mul]
|
| 32 |
+
· intros
|
| 33 |
+
rfl
|
| 34 |
+
|
| 35 |
+
variable {ι σ:Type*}[DecidableEq ι]
|
| 36 |
+
(p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 37 |
+
(hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 38 |
+
(hg:∀i,goodLambda∉Ideal.span {p i})
|
| 39 |
+
|
| 40 |
+
theorem canonical_ball_generator_energy
|
| 41 |
+
(pool:Finset ι)(Ψ:O→*ℂ)(m:O)(I:Ideal O)(hI:primaryGenerator I≠0)
|
| 42 |
+
(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)(W:ℝ→ℂ)(X K:ℝ) :
|
| 43 |
+
(∑k∈nonzeroChildFrequencyBall 1 K,
|
| 44 |
+
‖finiteCanonicalMarkedRow p hp hcop hg pool Ψ m (primaryGenerator I) k slots lists a W X‖^2)=
|
| 45 |
+
∑k∈nonzeroChildFrequencyBall 1 K,
|
| 46 |
+
‖finiteCanonicalMarkedRow p hp hcop hg pool Ψ m (idealGenerator I) k slots lists a W X‖^2 := by
|
| 47 |
+
obtain ⟨u,hu⟩:=generator_eq_unit_primary I (idealGenerator I) (span_idealGenerator I) hI
|
| 48 |
+
let P:O→ℝ:=fun k=>
|
| 49 |
+
‖finiteCanonicalMarkedRow p hp hcop hg pool Ψ m (primaryGenerator I) k slots lists a W X‖^2
|
| 50 |
+
have hrot:=child_ball_unit_sum (u^4) K P
|
| 51 |
+
have he (k:O):
|
| 52 |
+
‖finiteCanonicalMarkedRow p hp hcop hg pool Ψ m (idealGenerator I) k slots lists a W X‖^2=
|
| 53 |
+
P (((u^4:Oˣ):O)*k) := by
|
| 54 |
+
rw [hu,finiteCanonicalMarkedRow_label_transfer]
|
| 55 |
+
rfl
|
| 56 |
+
simp only [he]
|
| 57 |
+
exact hrot.symm
|
| 58 |
+
|
| 59 |
+
theorem normalized_energy_le_actual_family
|
| 60 |
+
(pool:Finset ι)(Ψ:O→*ℂ)(m:O)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 61 |
+
(labels:Finset (Ideal O))(hlabels:∀I∈labels,primaryGenerator I≠0)
|
| 62 |
+
(weight:Ideal O→ℝ)(C:ℝ)(hC:0≤C)(hw:∀I∈labels,0≤weight I ∧ weight I≤C)
|
| 63 |
+
(W:ℝ→ℂ)(X Z F K:ℝ)(hZ:0<Z)(hK:0<K) :
|
| 64 |
+
normalizedColumnEnergy p hp hcop hg pool Ψ m slots lists a labels
|
| 65 |
+
(nonzeroChildFrequencyBall 1 K) weight W X Z F ≤
|
| 66 |
+
Z^(-F)*C*rowFamilyEnergy labels (fun I k=>
|
| 67 |
+
finiteCanonicalMarkedRow p hp hcop hg pool Ψ m (idealGenerator I) k slots lists a W X) K := by
|
| 68 |
+
have hn:‖((Z^(-F/2):ℝ):ℂ)‖^2=Z^(-F) := by
|
| 69 |
+
rw [Complex.norm_real,Real.norm_eq_abs,abs_of_pos (Real.rpow_pos_of_pos hZ _),
|
| 70 |
+
←Real.rpow_mul_natCast hZ.le]
|
| 71 |
+
congr 1
|
| 72 |
+
ring
|
| 73 |
+
unfold normalizedColumnEnergy
|
| 74 |
+
simp only [norm_mul,mul_pow,hn,←Finset.mul_sum]
|
| 75 |
+
have he : (∑ I∈labels,weight I*(Z^(-F)*∑k∈nonzeroChildFrequencyBall 1 K,
|
| 76 |
+
‖finiteCanonicalMarkedRow p hp hcop hg pool Ψ m (primaryGenerator I) k slots lists a W X‖^2))=
|
| 77 |
+
Z^(-F)*(∑ I∈labels,weight I*∑k∈nonzeroChildFrequencyBall 1 K,
|
| 78 |
+
‖finiteCanonicalMarkedRow p hp hcop hg pool Ψ m (primaryGenerator I) k slots lists a W X‖^2) := by
|
| 79 |
+
rw [Finset.mul_sum]
|
| 80 |
+
apply Finset.sum_congr rfl
|
| 81 |
+
intros
|
| 82 |
+
ring
|
| 83 |
+
rw [he]
|
| 84 |
+
rw [mul_assoc]
|
| 85 |
+
apply mul_le_mul_of_nonneg_left _ (Real.rpow_nonneg hZ.le _)
|
| 86 |
+
rw [rowFamilyEnergy,Complex.re_sum,Finset.mul_sum]
|
| 87 |
+
apply Finset.sum_le_sum
|
| 88 |
+
intro I hI
|
| 89 |
+
rw [canonical_ball_generator_energy p hp hcop hg pool Ψ m I (hlabels I hI)]
|
| 90 |
+
have hball:=finite_nonzero_row_energy_le_majorant
|
| 91 |
+
(fun k=>finiteCanonicalMarkedRow p hp hcop hg pool Ψ m (idealGenerator I) k slots lists a W X)
|
| 92 |
+
(nonzeroChildFrequencyBall 1 K) K hK
|
| 93 |
+
(by intro k hk
|
| 94 |
+
rw [←eisEmbedding_norm_sq_eq_absNorm_span]
|
| 95 |
+
simpa only [one_mul] using ((mem_nonzeroChildFrequencyBall 1 one_ne_zero K k).mp hk).2)
|
| 96 |
+
(by intro k hk hn
|
| 97 |
+
have hh:=((mem_nonzeroChildFrequencyBall 1 one_ne_zero K k).mp hk).1
|
| 98 |
+
simp only [hn,mul_zero,map_zero,norm_zero,pow_succ,lt_self_iff_false] at hh)
|
| 99 |
+
exact (mul_le_mul_of_nonneg_right (hw I hI).2 (Finset.sum_nonneg (fun _ _=>sq_nonneg _))).trans
|
| 100 |
+
(mul_le_mul_of_nonneg_left hball hC)
|
| 101 |
+
|
| 102 |
+
end SevenEighths.InverseMoment
|
| 103 |
+
|
| 104 |
+
end
|
| 105 |
+
|
| 106 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongParent.lean
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstTwoPassParentEnergy
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongCoefficient
|
| 3 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstDyadicFullEnergy
|
| 4 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstDyadicOriginalBranches
|
| 5 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstOriginalProfileLiveParents
|
| 6 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstLiveCountBudget
|
| 7 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstOriginalProfileLiveAggregate
|
| 8 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstOriginalProfileLiveEnergy
|
| 9 |
+
|
| 10 |
+
namespace OAI
|
| 11 |
+
|
| 12 |
+
noncomputable section
|
| 13 |
+
open scoped Classical BigOperators SchwartzMap
|
| 14 |
+
|
| 15 |
+
namespace SevenEighths.InverseMoment
|
| 16 |
+
open ActualEisensteinCubic FirstPassCubeLabels SecondPassArithmetic
|
| 17 |
+
open InverseFirstGlobalCaps InverseSecondSourceBlocks InverseMomentFirstChildWindows
|
| 18 |
+
open InverseMomentFirstOriginalProfile InverseMomentFirstProfileUniform InverseMomentFirstLabelCell
|
| 19 |
+
open InverseMomentFirstSecondHeightCost
|
| 20 |
+
open InverseAmbientProfileTower JointLogSeparation FourierBridge CompletedHeight
|
| 21 |
+
open ConcreteTraceCRT (eisEmbedding)
|
| 22 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 23 |
+
|
| 24 |
+
theorem actual_long_parent_energy
|
| 25 |
+
(om:𝓢(ℝ,ℂ))(a b:ℝ)(ha:0<a)(hs:Function.support om⊆Set.Icc a b)
|
| 26 |
+
(Lcap eta tau saving em ed:ℝ)(hcap:0≤Lcap)(hb:0≤b)
|
| 27 |
+
(heta:0≤eta)(heta1:eta≤1)(htau:0<tau)(htau1:tau≤1)
|
| 28 |
+
(hem:0<em)(hed:0<ed)(K:ℕ):
|
| 29 |
+
∃(ω₁₁ ω₁₂ ω₂₁ ω₂₂:𝓢(ℝ,ℂ))(af₁ bf₁ af₂ bf₂ window bw:ℝ),
|
| 30 |
+
0<af₁ ∧ af₁≤bf₁ ∧ 0<af₂ ∧ af₂≤bf₂ ∧
|
| 31 |
+
HasCompactSupport (ω₁₁:ℝ→ℂ) ∧ HasCompactSupport (ω₁₂:ℝ→ℂ) ∧
|
| 32 |
+
HasCompactSupport (ω₂₁:ℝ→ℂ) ∧ HasCompactSupport (ω₂₂:ℝ→ℂ) ∧
|
| 33 |
+
tsupport (ω₁₁:ℝ→ℂ)⊆Set.Icc af₁ bf₁ ∧ tsupport (ω₁₂:ℝ→ℂ)⊆Set.Icc af₁ bf₁ ∧
|
| 34 |
+
tsupport (ω₂₁:ℝ→ℂ)⊆Set.Icc af₂ bf₂ ∧ tsupport (ω₂₂:ℝ→ℂ)⊆Set.Icc af₂ bf₂ ∧
|
| 35 |
+
1≤bw ∧ b≤bw ∧ bw=Real.exp window ∧
|
| 36 |
+
∀epsFirst epsSecond:ℝ,0<epsFirst→0<epsSecond→∀degree:ℕ,
|
| 37 |
+
∃Ccoef C:ℝ,0<Ccoef ∧ 0≤C ∧
|
| 38 |
+
∀{ι σ:Type}[DecidableEq ι][DecidableEq σ](p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 39 |
+
(hg:∀i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i})
|
| 40 |
+
(_hinj:Function.Injective (fun i=>Ideal.span {p i}))
|
| 41 |
+
(hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 42 |
+
(_hc:∀i,ringChar (O⧸Ideal.span {p i})≠2)
|
| 43 |
+
(_hpr:∀i,ConcretePrimeRowBridge.goodLambda^2∣p i-1)
|
| 44 |
+
(pool:Finset ι)(Q:Finset (ι→₀ℕ))(labels:Finset (Ideal O))
|
| 45 |
+
(Ψ:O→*ℂ)(m mCoef:O)
|
| 46 |
+
(slots:Finset σ)(lists:σ→Finset ι)(weights:σ→ι→ℂ)
|
| 47 |
+
(Z M r ell V H₀ ξ pi epschild A loss lossFinal:ℝ)
|
| 48 |
+
(_hZ:2≤Z)(_hbin:2≤Z^eta)(_hbinExp:Real.exp 1≤Z^eta)(_hM:0≤M)(_hF:r+3*ell+V≤Lcap)(_hMcap:M≤Lcap)(_hell:0≤ell)(_hV:0≤V)(_hr: -eta≤r)
|
| 49 |
+
(_hbZ:b≤Z^eta)(_hQpool:∀v∈Q,v.support⊆pool)
|
| 50 |
+
(_hQlo:∀v∈Q,Z^ell≤‖eisEmbedding (primeProduct p v.support v)‖^2)
|
| 51 |
+
(_hQhi:∀v∈Q,‖eisEmbedding (primeProduct p v.support v)‖^2≤Real.exp 1*Z^ell)
|
| 52 |
+
(_hrcap:r≤Lcap)(_hellcap:ell≤Lcap)
|
| 53 |
+
|
| 54 |
+
(_hVcap:V≤Lcap)(_hwin:Real.exp window≤Z^eta)(_hpi:0≤pi)(_hpieta:6*eta≤pi)
|
| 55 |
+
(_hemcost:em*(20*(3*Lcap+16)+30)≤pi/4)(_hedcost:ed*(20*(3*Lcap+16)+30)≤pi/4)
|
| 56 |
+
(_hechild:0≤epschild)(_hsave: -saving≤r+3*ell+V+48*eta+tau+pi+epschild+epsSecond)
|
| 57 |
+
(_hloss:48*eta+tau+pi+epschild+epsSecond≤loss)(_hcard:slots.card≤K)
|
| 58 |
+
(_hparent:M-ell≤r+3*ell+V)
|
| 59 |
+
(_hprincipal:3*eta+epsFirst*(5*ell+2*r+7*eta)≤lossFinal)
|
| 60 |
+
(_hretained:loss+(2*Lcap+15*eta+tau)*epsFirst+epsFirst≤lossFinal)
|
| 61 |
+
(_htail: -saving≤r+3*ell+V+lossFinal)
|
| 62 |
+
(_hΨ:∀u,‖Ψ u‖≤1)(_hA:0≤A)
|
| 63 |
+
(_hsf:∀I∈labels,Squarefree I)(_hn:∀I∈labels,I≠0)
|
| 64 |
+
(_hlabels:∀I∈labels,(Ideal.absNorm I:ℝ)≤Z^(V+eta))
|
| 65 |
+
(_hslots:(slots:Set σ).PairwiseDisjoint lists)(_hweights:∀i∈slots,∀q∈lists i,‖weights i q‖≤1),
|
| 66 |
+
let mark:=fun v U=>primeMark slots lists weights (v.support∪U);
|
| 67 |
+
let Y:=Z^(2*Lcap+15*eta+tau);
|
| 68 |
+
let cutoff:=fun (q:CubeCoordinates ι) (C:Finset ι) (_I:Ideal O) (D:Finset ι)=>firstDyadicRadius p q C D Z M r ell V eta tau;
|
| 69 |
+
let W:=fun y=>normTwistedSource om ξ (y/Z^r);
|
| 70 |
+
let source:=firstGlobalRetainedSource p (firstOriginalOuter pool Q) (fun _=>labels) (fun x=>x.1) Y;
|
| 71 |
+
let keys:=liveJointKeys p source pool (sourceSummand p hp hcop hg (actualLongCoefficient p Ψ mCoef H₀ (Z^ell) ξ) cutoff Ψ m mark W rowMajorant (Z^M));
|
| 72 |
+
(∀k∈keys,ChildBounds p hp hcop hg pool Q k.1 k.2.1 k.2.2 true Ψ m slots lists weights ω₁₁ ω₁₂
|
| 73 |
+
Z M r ell V eta tau window bw epschild A K degree)→
|
| 74 |
+
(∀k∈keys,ChildBounds p hp hcop hg pool Q k.1 k.2.1 k.2.2 false Ψ m slots lists weights ω₂₁ ω₂₂
|
| 75 |
+
Z M r ell V eta tau window bw epschild A K degree)��
|
| 76 |
+
Z^(-r-2*ell-V)*CanonicalRowCompletion.rowFamilyEnergy labels (fun I z=>
|
| 77 |
+
varyingReopenedRow p hp hcop hg pool Q ((actualLongCoefficient p Ψ mCoef H₀ (Z^ell) ξ) I) Ψ m (ConcretePrimeRowBridge.idealGenerator I)
|
| 78 |
+
(fun v U=>mark v U*W (primeProductNorm p U)) z) (Z^M)≤
|
| 79 |
+
C*(Ccoef*(Real.exp 1*Z^ell)^epsFirst)^2*(1+A)*(1+‖ξ‖)^(2*InverseClippingProfiles.momentOrder (firstDegree degree))*
|
| 80 |
+
Z^(r+3*ell+V+lossFinal) := by
|
| 81 |
+
obtain ⟨ω₁₁,ω₁₂,ω₂₁,ω₂₂,af₁,bf₁,af₂,bf₂,window,bw,
|
| 82 |
+
haf₁,hab₁,haf₂,hab₂,hw₁₁,hw₁₂,hw₂₁,hw₂₂,hs₁₁,hs₁₂,hs₂₁,hs₂₂,hbw,hbwb,hbwexp,he⟩:=
|
| 83 |
+
original_two_pass_parent_energy om a b ha hs Lcap eta tau saving em ed hcap hb heta heta1 htau htau1 hem hed K
|
| 84 |
+
refine ⟨ω₁₁,ω₁₂,ω₂₁,ω₂₂,af₁,bf₁,af₂,bf₂,window,bw,
|
| 85 |
+
haf₁,hab₁,haf₂,hab₂,hw₁₁,hw₁₂,hw₂₁,hw₂₂,hs₁₁,hs₁₂,hs₂₁,hs₂₂,hbw,hbwb,hbwexp,?_⟩
|
| 86 |
+
intro epsFirst epsSecond hepsF hepsS degree
|
| 87 |
+
obtain ⟨Ccoef,hCcoef,hcoef⟩:=actualLongCoefficient_uniform epsFirst hepsF
|
| 88 |
+
obtain ⟨C,hC,hfull⟩:=he epsFirst epsSecond hepsF hepsS degree
|
| 89 |
+
refine ⟨Ccoef,C,hCcoef,hC,?_⟩
|
| 90 |
+
intro ι σ _ _ p hp _ hg hinj hcop hc hpr pool Q labels Ψ m mCoef slots lists weights
|
| 91 |
+
Z M r ell V H₀ ξ pi epschild A loss lossFinal hZ hbin hbinExp hM hF hMcap hell hV hr hbZ hQpool hQlo hQhi
|
| 92 |
+
hrcap hellcap hVcap hwin hpi hpieta hemcost hedcost hechild hsave hloss hcard hparent hprincipal hretained htail
|
| 93 |
+
hΨ hA hsf hn hlabels hslots hweights mark Y cutoff W source keys hleft hright
|
| 94 |
+
have hz:0<Z:=by linarith
|
| 95 |
+
have hQ:∀v∈Q,‖eisEmbedding (primeProduct p v.support v)‖^2≤Z^(ell+eta) := by
|
| 96 |
+
intro v hv
|
| 97 |
+
apply (hQhi v hv).trans
|
| 98 |
+
calc
|
| 99 |
+
Real.exp 1*Z^ell≤Z^eta*Z^ell:=mul_le_mul_of_nonneg_right hbinExp (Real.rpow_nonneg hz.le _)
|
| 100 |
+
_=Z^(ell+eta):=by rw [Real.rpow_add hz];ring
|
| 101 |
+
have hβ:∀I∈labels,∀v∈Q,
|
| 102 |
+
‖actualLongCoefficient p Ψ mCoef H₀ (Z^ell) ξ I v‖≤Ccoef*(Real.exp 1*Z^ell)^epsFirst := by
|
| 103 |
+
intro I hI v hv
|
| 104 |
+
exact hcoef p hp Ψ hΨ mCoef H₀ (Z^ell) ξ I v (Real.rpow_pos_of_pos hz _) (hQlo v hv) (hQhi v hv)
|
| 105 |
+
exact hfull p hp hg hinj hcop hc hpr pool Q labels
|
| 106 |
+
(actualLongCoefficient p Ψ mCoef H₀ (Z^ell) ξ) Ψ m slots lists weights
|
| 107 |
+
Z M r ell V (Ccoef*(Real.exp 1*Z^ell)^epsFirst) ξ pi epschild A loss lossFinal hZ hbin hM hF hMcap hell hV hr hbZ
|
| 108 |
+
hQpool hQ hrcap hellcap hVcap hwin hpi hpieta hemcost hedcost hechild hsave hloss hcard hparent hprincipal hretained htail
|
| 109 |
+
hΨ (by positivity) hA hsf hn hβ hlabels hslots hweights hleft hright
|
| 110 |
+
|
| 111 |
+
end SevenEighths.InverseMoment
|
| 112 |
+
|
| 113 |
+
end
|
| 114 |
+
|
| 115 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongSource.lean
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.ReopenedBins
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstDyadicFullEnergy
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
open scoped BigOperators Classical SchwartzMap ContDiff
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 11 |
+
open CanonicalCubeSeparation CanonicalQuadraticSieve FirstPassCubeLabels SecondPassArithmetic
|
| 12 |
+
open JointLogSeparation FourierBridge CompletedHeight
|
| 13 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 14 |
+
|
| 15 |
+
theorem long_frequency_profile
|
| 16 |
+
{ι:Type*}(p:ι→O)(hp:∀i,p i≠0)
|
| 17 |
+
(V:𝓢(ℝ,ℂ))(A:ℝ)(hV:∀s,V s≠0→|s|≤A)
|
| 18 |
+
(Z r ξ:ℝ)(hZ:0<Z)(T:Finset ι) :
|
| 19 |
+
frequencyTwist V ξ (columnLog p (Z^r) T)=
|
| 20 |
+
normTwistedSource (radialFromLog V (V.smooth ⊤) A hV) ξ
|
| 21 |
+
(primeProductNorm p T/Z^r) := by
|
| 22 |
+
rw [normTwistedSource,radialFromLog_column p hp V (V.smooth ⊤) A hV _ (Real.rpow_pos_of_pos hZ r)]
|
| 23 |
+
simp only [frequencyTwist_apply,columnLog]
|
| 24 |
+
|
| 25 |
+
theorem long_marked_source_eq
|
| 26 |
+
{ι σ:Type*}[DecidableEq ι][DecidableEq σ]
|
| 27 |
+
(p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 28 |
+
(hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 29 |
+
(hg:∀i,goodLambda∉Ideal.span {p i})
|
| 30 |
+
(pool:Finset ι)(Q:Finset (ι→₀ℕ))(β:(ι→₀ℕ)→ℂ)(Ψ:O→*ℂ)(m f z:O)
|
| 31 |
+
(slots:Finset σ)(lists:σ→Finset ι)(weights:σ→ι→ℂ)
|
| 32 |
+
(V:𝓢(ℝ,ℂ))(A:ℝ)(hV:∀s,V s≠0→|s|≤A)(Z r ξ:ℝ)(hZ:0<Z) :
|
| 33 |
+
varyingReopenedRow p hp hcop hg pool Q β Ψ m f
|
| 34 |
+
(fun v T=>primeMark slots lists weights (T∪v.support)*
|
| 35 |
+
frequencyTwist V ξ (columnLog p (Z^r) T)) z =
|
| 36 |
+
varyingReopenedRow p hp hcop hg pool Q β Ψ m f
|
| 37 |
+
(fun v T=>primeMark slots lists weights (v.support∪T)*
|
| 38 |
+
normTwistedSource (radialFromLog V (V.smooth ⊤) A hV) ξ
|
| 39 |
+
(primeProductNorm p T/Z^r)) z := by
|
| 40 |
+
congr 1
|
| 41 |
+
funext v T
|
| 42 |
+
rw [long_frequency_profile p hp V A hV Z r ξ hZ T,Finset.union_comm T v.support]
|
| 43 |
+
|
| 44 |
+
theorem marked_long_filter
|
| 45 |
+
{σ:Type*}[DecidableEq σ](S:Finset (Ideal O))(D:ℕ)
|
| 46 |
+
(Q:Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→₀ℕ))
|
| 47 |
+
(Ψ:O→*ℂ)(m f z:O)(W:ℝ→ℂ)(X H₀:ℝ)(slots:Finset σ)
|
| 48 |
+
(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)))
|
| 49 |
+
(weights:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→ℂ) :
|
| 50 |
+
markedReopenedCubeBin S D Q Ψ m f z W X H₀ slots lists weights=
|
| 51 |
+
markedReopenedCubeBin S D (progressingCubes S D H₀ Q) Ψ m f z W X H₀ slots lists weights := by
|
| 52 |
+
unfold markedReopenedCubeBin progressingCubes
|
| 53 |
+
dsimp only
|
| 54 |
+
symm
|
| 55 |
+
apply Finset.sum_subset (Finset.filter_subset _ _)
|
| 56 |
+
intro v hv hn
|
| 57 |
+
have hz:largeCubeCoefficient H₀ (cubeIdeal (InitialMeanSquare.outsideSquarefreeIdeals S D) v)=0 := by
|
| 58 |
+
by_contra hh
|
| 59 |
+
exact hn (Finset.mem_filter.mpr ⟨hv,(largeCubeCoefficient_support H₀ _ hh).2⟩)
|
| 60 |
+
simp only [hz,zero_mul]
|
| 61 |
+
|
| 62 |
+
theorem long_cube_progress
|
| 63 |
+
(S:Finset (Ideal O))(D:ℕ)
|
| 64 |
+
(Q:Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→₀ℕ))
|
| 65 |
+
(Z cutoff V ell:ℝ)(hZ:1<Z)
|
| 66 |
+
(hne:(progressingCubes S D (Z^(cutoff-V)) Q).Nonempty)
|
| 67 |
+
(hupper:∀v∈Q,(Ideal.absNorm (cubeIdeal (InitialMeanSquare.outsideSquarefreeIdeals S D) v):ℝ)≤
|
| 68 |
+
Real.exp 1*Z^ell) :
|
| 69 |
+
cutoff-1/Real.log Z≤ell+V := by
|
| 70 |
+
obtain ⟨v,hv⟩:=hne
|
| 71 |
+
obtain ⟨hv,hlower⟩:=Finset.mem_filter.mp hv
|
| 72 |
+
have hz:0<Z:=zero_lt_one.trans hZ
|
| 73 |
+
have he:=Real.log_le_log (Real.rpow_pos_of_pos hz _) (hlower.trans (hupper v hv))
|
| 74 |
+
rw [Real.log_rpow hz,Real.log_mul (Real.exp_pos _).ne' (Real.rpow_pos_of_pos hz _).ne',
|
| 75 |
+
Real.log_exp,Real.log_rpow hz] at he
|
| 76 |
+
have hlog:=Real.log_pos hZ
|
| 77 |
+
have hd: (cutoff-ell-V)*Real.log Z≤1:=by nlinarith
|
| 78 |
+
have hh:cutoff-ell-V≤1/Real.log Z:=(le_div_iff₀ hlog).mpr hd
|
| 79 |
+
linarith
|
| 80 |
+
|
| 81 |
+
theorem long_cube_progress_with_slack
|
| 82 |
+
(S:Finset (Ideal O))(D:ℕ)
|
| 83 |
+
(Q:Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→₀ℕ))
|
| 84 |
+
(Z cutoff V ell eta:ℝ)(hZ:1<Z)(hlog:1≤eta*Real.log Z)
|
| 85 |
+
(hne:(progressingCubes S D (Z^(cutoff-V)) Q).Nonempty)
|
| 86 |
+
(hupper:∀v∈Q,(Ideal.absNorm (cubeIdeal (InitialMeanSquare.outsideSquarefreeIdeals S D) v):ℝ)≤
|
| 87 |
+
Real.exp 1*Z^ell) :
|
| 88 |
+
cutoff-eta≤ell+V := by
|
| 89 |
+
have h:=long_cube_progress S D Q Z cutoff V ell hZ hne hupper
|
| 90 |
+
have hh:1/Real.log Z≤eta:=(div_le_iff₀ (Real.log_pos hZ)).mpr (by simpa only [mul_comm] using hlog)
|
| 91 |
+
linarith
|
| 92 |
+
|
| 93 |
+
theorem short_sum_zero_of_label_large
|
| 94 |
+
(Ψ:O→*ℂ)(W:ℝ→ℂ)(mark:Ideal O→ℂ)(X Z cutoff V:ℝ)
|
| 95 |
+
(hZ:1≤Z)(hV:cutoff≤V) :
|
| 96 |
+
markedShortCompletedSum Ψ W X (Z^(cutoff-V)) mark=0 := by
|
| 97 |
+
have ht:Z^(cutoff-V)≤1:=by
|
| 98 |
+
have he:=Real.rpow_le_rpow_of_exponent_le hZ (show cutoff-V≤0 by linarith)
|
| 99 |
+
simpa only [Real.rpow_zero] using he
|
| 100 |
+
unfold markedShortCompletedSum
|
| 101 |
+
trans ∑' _ : Ideal O,(0:ℂ)
|
| 102 |
+
· apply tsum_congr
|
| 103 |
+
intro I
|
| 104 |
+
by_cases hi:I=0
|
| 105 |
+
· subst I
|
| 106 |
+
simp
|
| 107 |
+
rw [ite_eq_right (not_lt.mpr (ht.trans (norm_at_least_one I hi)))]
|
| 108 |
+
· exact tsum_zero
|
| 109 |
+
|
| 110 |
+
end SevenEighths.InverseMoment
|
| 111 |
+
|
| 112 |
+
end
|
| 113 |
+
|
| 114 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongTotal.lean
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongFinite
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
|
| 7 |
+
open scoped BigOperators Classical
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
open ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 10 |
+
open CanonicalQuadraticSieve FirstPassCubeLabels SecondPassArithmetic
|
| 11 |
+
open InverseSecondFibers IdealMobiusDivisorSum
|
| 12 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 13 |
+
|
| 14 |
+
theorem actual_complete_energy_from_live_bins (K:ℕ)(b L eps:ℝ)
|
| 15 |
+
(hb:0≤b)(hL:0≤L)(heps:0<eps) :
|
| 16 |
+
∃C:ℝ,0<C ∧ ∀{σ:Type*}[DecidableEq σ]
|
| 17 |
+
(S:Finset (Ideal O))(D:ℕ)(hbad:fixedBadPrimes⊆S)(_hSp:∀P∈S,Prime P)
|
| 18 |
+
(labels:Finset (Ideal O))(_hlabels:∀I∈labels,I≠0)
|
| 19 |
+
(Ψ:O→*ℂ)(m:O)(slots:Finset σ)
|
| 20 |
+
(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)))
|
| 21 |
+
(a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→ℂ)
|
| 22 |
+
(W:ℝ→ℂ)(_hWc:HasCompactSupport W)(Z N V R H₀ Eshort Elong:ℝ),
|
| 23 |
+
1≤Z → 0<R → N≤L → V≤L → (∀I∈labels,(I.absNorm:ℝ)≤Z^V) →
|
| 24 |
+
(∀t,W t≠0 → t≤b) → b*Z^N≤D → 0≤Elong →
|
| 25 |
+
Z^(-V)*(∑I∈labels,secondLabelWeight K I*∑z∈nonzeroChildFrequencyBall 1 R,
|
| 26 |
+
‖markedShortCompletedSum (rowTwist Ψ (m*excludedGenerator S) (idealGenerator I) z)
|
| 27 |
+
W (Z^N) H₀ (indexedIdealMark (fun i:primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)=>i.val)
|
| 28 |
+
slots lists a)‖^2)≤Eshort →
|
| 29 |
+
(∀j∈cubeLogRange b (Z^N),
|
| 30 |
+
(progressingCubes S D H₀ (activeCubeLogBin S D b (Z^N) j)).Nonempty →
|
| 31 |
+
Z^(-V)*rowFamilyEnergy labels (fun I z=>markedReopenedCubeBin S D
|
| 32 |
+
(progressingCubes S D H₀ (activeCubeLogBin S D b (Z^N) j))
|
| 33 |
+
Ψ m (idealGenerator I) z W (Z^N) H₀ slots lists a) R≤Elong) →
|
| 34 |
+
Z^(-(N+V))*(∑I∈labels,secondLabelWeight K I*∑z∈nonzeroChildFrequencyBall 1 R,
|
| 35 |
+
‖outsideCanonicalMarkedRow S D hbad Ψ m (idealGenerator I) z slots lists a W (Z^N)‖^2)≤
|
| 36 |
+
2*Eshort+C*Z^eps*Elong := by
|
| 37 |
+
obtain ⟨Cw,hCw,hw⟩:=actual_complete_finite_split K L (eps/2) hL (by positivity)
|
| 38 |
+
obtain ⟨Cb,hCb,hbnd⟩:=actual_cube_bin_count b L (eps/2) hb hL (by positivity)
|
| 39 |
+
refine ⟨2*Cw*Cb,by positivity,?_⟩
|
| 40 |
+
intro σ _ S D hbad hSp labels hlabels Ψ m slots lists a W hWc Z N V R H₀ Eshort Elong
|
| 41 |
+
hZ hR hN hV hnorm hW hD hE hshort hlong
|
| 42 |
+
have hz:0<Z:=zero_lt_one.trans_le hZ
|
| 43 |
+
have hs:=hw S D hbad hSp labels hlabels Ψ m slots lists a W hWc b Z N V R H₀ hZ hR hV hnorm hW hD
|
| 44 |
+
have ha:=actual_large_bins_aggregate S D labels Ψ m W b (Z^N) H₀ R Z V Elong slots lists a hlong hE
|
| 45 |
+
have hc:=hbnd (Z^N) Z (Real.rpow_nonneg hz.le _) hZ (Real.rpow_le_rpow_of_exponent_le hZ hN)
|
| 46 |
+
have hh:Z^(eps/2)*Z^(eps/2)=Z^eps := by rw [←Real.rpow_add hz];congr 1;ring
|
| 47 |
+
have hp:Z^(-V+eps/2)=Z^(-V)*Z^(eps/2):=Real.rpow_add hz _ _
|
| 48 |
+
have ha':2*Cw*Z^(-V+eps/2)*(cubeLogRange b (Z^N)).card*∑j∈cubeLogRange b (Z^N),
|
| 49 |
+
rowFamilyEnergy labels (fun I z=>markedReopenedCubeBin S D
|
| 50 |
+
(progressingCubes S D H₀ (activeCubeLogBin S D b (Z^N) j))
|
| 51 |
+
Ψ m (idealGenerator I) z W (Z^N) H₀ slots lists a) R≤
|
| 52 |
+
(2*Cw*Cb)*Z^eps*Elong := by
|
| 53 |
+
have h1:=mul_le_mul_of_nonneg_left ha (show 0≤2*Cw*Z^(eps/2) by positivity)
|
| 54 |
+
have h2:=mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right hc hE)
|
| 55 |
+
(show 0≤2*Cw*Z^(eps/2) by positivity)
|
| 56 |
+
have ht:=h1.trans h2
|
| 57 |
+
rw [hp]
|
| 58 |
+
convert ht using 1
|
| 59 |
+
· ring
|
| 60 |
+
· rw [←hh];ring
|
| 61 |
+
exact hs.trans (add_le_add (mul_le_mul_of_nonneg_left hshort (by norm_num:0≤(2:ℝ))) ha')
|
| 62 |
+
|
| 63 |
+
end SevenEighths.InverseMoment
|
| 64 |
+
|
| 65 |
+
end
|
| 66 |
+
|
| 67 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongUniformTestBin.lean
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongKeys
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongIntegral
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
open scoped BigOperators Classical SchwartzMap ContDiff
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open MeasureTheory ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 11 |
+
open CanonicalQuadraticSieve CanonicalCubeSeparation FirstPassCubeLabels SecondPassArithmetic
|
| 12 |
+
open InverseMomentFirstLabelCell InverseMomentFirstSecondHeightCost CompletedHeight
|
| 13 |
+
open FourierBridge JointLogSeparation
|
| 14 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 15 |
+
|
| 16 |
+
theorem actual_marked_bin_uniform_test
|
| 17 |
+
(a₀ b₀:ℝ)(ha₀:0<a₀)(hb₀:0≤b₀)
|
| 18 |
+
(Vlog:𝓢(ℝ,ℂ))(Alog:ℝ)(hbox:∀x,Vlog x≠0 → |x|≤Alog)
|
| 19 |
+
(hone:∀x,|x|≤CanonicalCubeSeparation.columnWindowRadius a₀ b₀ → Vlog x=1)
|
| 20 |
+
(Lcap eta tau saving em ed:ℝ)(hcap:0≤Lcap)
|
| 21 |
+
(heta:0≤eta)(heta1:eta≤1)(htau:0<tau)(htau1:tau≤1)
|
| 22 |
+
(hem:0<em)(hed:0<ed)(K:ℕ):
|
| 23 |
+
∃(ω₁₁ ω₁₂ ω₂₁ ω₂₂:𝓢(ℝ,ℂ))(af₁ bf₁ af₂ bf₂ window bw:ℝ),
|
| 24 |
+
0<af₁ ∧ af₁≤bf₁ ∧ 0<af₂ ∧ af₂≤bf₂ ∧
|
| 25 |
+
HasCompactSupport (ω₁₁:ℝ → ℂ) ∧ HasCompactSupport (ω₁₂:ℝ → ℂ) ∧
|
| 26 |
+
HasCompactSupport (ω₂₁:ℝ → ℂ) ∧ HasCompactSupport (ω₂₂:ℝ → ℂ) ∧
|
| 27 |
+
tsupport (ω₁₁:ℝ → ℂ)⊆Set.Icc af₁ bf₁ ∧ tsupport (ω₁₂:ℝ → ℂ)⊆Set.Icc af₁ bf₁ ∧
|
| 28 |
+
tsupport (ω₂₁:ℝ → ℂ)⊆Set.Icc af₂ bf₂ ∧ tsupport (ω₂₂:ℝ → ℂ)⊆Set.Icc af₂ bf₂ ∧
|
| 29 |
+
1≤bw ∧ Real.exp Alog≤bw ∧ bw=Real.exp window ∧
|
| 30 |
+
∀epsFirst epsSecond:ℝ,0<epsFirst → 0<epsSecond → ∀degree:ℕ,
|
| 31 |
+
∃Ccoef C:ℝ,0<Ccoef ∧ 0≤C ∧
|
| 32 |
+
∀(test:ℝ → ℂ)(hs₀:Function.support test⊆Set.Icc a₀ b₀)(hTest:ContDiff ℝ ∞ test),
|
| 33 |
+
∀{σ:Type}[DecidableEq σ](S:Finset (Ideal O))(D:ℕ)(hbad:fixedBadPrimes⊆S)(hSp:∀P∈S,Prime P),
|
| 34 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D;
|
| 35 |
+
let hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad;
|
| 36 |
+
letI : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 37 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance;
|
| 38 |
+
let p:=poolPrimary F;
|
| 39 |
+
let hp:=poolPrimary_ne_zero F hF;
|
| 40 |
+
let hcop:=poolPrimary_coprime F hF;
|
| 41 |
+
let hg:=poolPrimary_good F hF;
|
| 42 |
+
let om:=radialFromLog Vlog (Vlog.smooth ⊤) Alog hbox;
|
| 43 |
+
∀(Q:Finset (primePool F →₀ ℕ))(labels:Finset (Ideal O))(Ψ:O →* ℂ)(m:O)
|
| 44 |
+
(slots:Finset σ)(lists:σ → Finset (primePool F))(weights:σ → primePool F → ℂ)
|
| 45 |
+
(Z M r ell V H₀ pi epschild A loss lossFinal:ℝ),
|
| 46 |
+
2≤Z → 2≤Z^eta → Real.exp 1≤Z^eta → 0≤M → r+3*ell+V≤Lcap → M≤Lcap →
|
| 47 |
+
0≤ell → 0≤V → -eta≤r → Real.exp Alog≤Z^eta →
|
| 48 |
+
(∀v∈Q,Z^ell≤(Ideal.absNorm (cubeIdeal F v):ℝ)) →
|
| 49 |
+
(∀v∈Q,(Ideal.absNorm (cubeIdeal F v):ℝ)≤Real.exp 1*Z^ell) →
|
| 50 |
+
r≤Lcap → ell≤Lcap → V≤Lcap → Real.exp window≤Z^eta → 0≤pi → 6*eta≤pi →
|
| 51 |
+
em*(20*(3*Lcap+16)+30)≤pi/4 → ed*(20*(3*Lcap+16)+30)≤pi/4 →
|
| 52 |
+
0≤epschild → -saving≤r+3*ell+V+48*eta+tau+pi+epschild+epsSecond →
|
| 53 |
+
48*eta+tau+pi+epschild+epsSecond≤loss → slots.card≤K →
|
| 54 |
+
M-ell≤r+3*ell+V → 3*eta+epsFirst*(5*ell+2*r+7*eta)≤lossFinal →
|
| 55 |
+
loss+(2*Lcap+15*eta+tau)*epsFirst+epsFirst≤lossFinal → -saving≤r+3*ell+V+lossFinal →
|
| 56 |
+
(∀u,‖Ψ u‖≤1) → 0≤A → (∀I∈labels,Squarefree I) → (∀I∈labels,I≠0) →
|
| 57 |
+
(∀I∈labels,(Ideal.absNorm I:ℝ)≤Z^(V+eta)) →
|
| 58 |
+
(slots:Set σ).PairwiseDisjoint lists → (∀i∈slots,∀q∈lists i,‖weights i q‖≤1) →
|
| 59 |
+
b₀*Z^(r+3*ell)≤D →
|
| 60 |
+
(∀ξ:ℝ,∀k∈actualLongSourceKeys p hp hcop hg Finset.univ Q labels Ψ m (m*excludedGenerator S)
|
| 61 |
+
slots lists weights om Z M r ell V H₀ ξ Lcap eta tau,
|
| 62 |
+
ChildBounds p hp hcop hg Finset.univ Q k.1 k.2.1 k.2.2 true Ψ m slots lists weights ω₁₁ ω₁₂
|
| 63 |
+
Z M r ell V eta tau window bw epschild A K degree) →
|
| 64 |
+
(∀ξ:ℝ,∀k∈actualLongSourceKeys p hp hcop hg Finset.univ Q labels Ψ m (m*excludedGenerator S)
|
| 65 |
+
slots lists weights om Z M r ell V H₀ ξ Lcap eta tau,
|
| 66 |
+
ChildBounds p hp hcop hg Finset.univ Q k.1 k.2.1 k.2.2 false Ψ m slots lists weights ω₂₁ ω₂₂
|
| 67 |
+
Z M r ell V eta tau window bw epschild A K degree) →
|
| 68 |
+
Z^(-V)*rowFamilyEnergy labels (fun I z=>markedReopenedCubeBin S D Q Ψ m (idealGenerator I) z
|
| 69 |
+
test (Z^(r+3*ell)) H₀ slots lists weights) (Z^M)≤
|
| 70 |
+
C*(Ccoef*(Real.exp 1*Z^ell)^epsFirst)^2*(1+A)*Z^(r+3*ell+V+lossFinal)*
|
| 71 |
+
(∫ξ:ℝ,‖reopeningCoefficient test a₀ b₀ ha₀ hs₀ hTest ξ‖*(1+|ξ|)^(InverseClippingProfiles.momentOrder (firstDegree degree)))^2 := by
|
| 72 |
+
let om:=radialFromLog Vlog (Vlog.smooth ⊤) Alog hbox
|
| 73 |
+
have hs:Function.support om⊆Set.Icc (Real.exp (-Alog)) (Real.exp Alog):=
|
| 74 |
+
fun x hx=>radialFromLog_support Vlog (Vlog.smooth ⊤) Alog hbox x hx
|
| 75 |
+
obtain ⟨ω₁₁,ω₁₂,ω₂₁,ω₂₂,af₁,bf₁,af₂,bf₂,window,bw,
|
| 76 |
+
haf₁,hab₁,haf₂,hab₂,hw₁₁,hw₁₂,hw₂₁,hw₂₂,hs₁₁,hs₁₂,hs₂₁,hs₂₂,hbw,hbwb,hbwexp,he⟩:=
|
| 77 |
+
actual_long_parent_energy om (Real.exp (-Alog)) (Real.exp Alog) (Real.exp_pos _) hs
|
| 78 |
+
Lcap eta tau saving em ed hcap (Real.exp_pos _).le heta heta1 htau htau1 hem hed K
|
| 79 |
+
refine ⟨ω₁₁,ω₁₂,ω₂₁,ω₂₂,af₁,bf₁,af₂,bf₂,window,bw,
|
| 80 |
+
haf₁,hab₁,haf₂,hab₂,hw₁₁,hw₁₂,hw₂₁,hw₂₂,hs₁₁,hs₁₂,hs₂₁,hs₂₂,hbw,hbwb,hbwexp,?_⟩
|
| 81 |
+
intro epsFirst epsSecond hepsF hepsS degree
|
| 82 |
+
obtain ⟨Ccoef,C,hCcoef,hC,hparent⟩:=he epsFirst epsSecond hepsF hepsS degree
|
| 83 |
+
let d:=InverseClippingProfiles.momentOrder (firstDegree degree)
|
| 84 |
+
refine ⟨Ccoef,C,hCcoef,hC,?_⟩
|
| 85 |
+
intro test hs₀ hTest
|
| 86 |
+
let moment:ℝ:=∫ξ:ℝ,‖reopeningCoefficient test a₀ b₀ ha₀ hs₀ hTest ξ‖*(1+|ξ|)^d
|
| 87 |
+
intro σ _ S D hbad hSp
|
| 88 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 89 |
+
have hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad
|
| 90 |
+
let : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 91 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 92 |
+
dsimp only
|
| 93 |
+
intro Q labels Ψ m slots lists weights Z M r ell V H₀ pi epschild A loss lossFinal
|
| 94 |
+
hZ hbin hbinExp hM hFcap hMcap hell hV hr hbZ hQlo hQhi hrcap hellcap hVcap hwin
|
| 95 |
+
hpi hpieta hemcost hedcost hechild hsave hloss hcard hpar hprincipal hretained htail
|
| 96 |
+
hΨ hA hsf hn hlabels hslots hweights hD hleft hright
|
| 97 |
+
have hz:0<Z:=by linarith
|
| 98 |
+
have hg' : ∀i:primePool F,goodLambda∉Ideal.span {poolPrimary F i}:=poolPrimary_good F hF
|
| 99 |
+
have hinj:Function.Injective (fun i:primePool F=>Ideal.span {poolPrimary F i}) := by
|
| 100 |
+
intro i j hij
|
| 101 |
+
exact Subtype.ext (by simpa only [poolPrimary_span F hF] using hij)
|
| 102 |
+
have hpr (i:primePool F):goodLambda^2∣poolPrimary F i-1:=
|
| 103 |
+
(primaryPrime_spec i.val (poolPrimary_ne_zero F hF i)).2.2.2
|
| 104 |
+
let Gamma:=Ccoef*(Real.exp 1*Z^ell)^epsFirst
|
| 105 |
+
let E:=C*Gamma^2*(1+A)*Z^(r+3*ell+V+lossFinal)
|
| 106 |
+
have hE:0≤E:=by dsimp [E];positivity
|
| 107 |
+
refine (actual_long_bin_normalized_energy S D hbad hSp Q labels Ψ m test a₀ b₀ ha₀ hb₀ hs₀ hTest
|
| 108 |
+
Vlog hone Z r ell V H₀ (Z^M) E d hz hD (Real.rpow_pos_of_pos hz _) hE hQlo hQhi slots lists weights ?_).trans_eq ?_
|
| 109 |
+
· intro ξ
|
| 110 |
+
have hbnd:=hparent (poolPrimary F) (poolPrimary_ne_zero F hF) hg' hinj
|
| 111 |
+
(poolPrimary_coprime F hF) (poolPrimary_odd F hF) hpr Finset.univ Q labels Ψ m (m*excludedGenerator S)
|
| 112 |
+
slots lists weights Z M r ell V H₀ ξ pi epschild A loss lossFinal
|
| 113 |
+
hZ hbin hbinExp hM hFcap hMcap hell hV hr hbZ (fun _ _=>Finset.subset_univ _)
|
| 114 |
+
(by intro v hv;rw [cubeIdeal_primeProduct_norm F hF];exact hQlo v hv)
|
| 115 |
+
(by intro v hv;rw [cubeIdeal_primeProduct_norm F hF];exact hQhi v hv)
|
| 116 |
+
hrcap hellcap hVcap hwin hpi hpieta hemcost hedcost hechild hsave hloss hcard hpar hprincipal hretained htail
|
| 117 |
+
hΨ hA hsf hn hlabels hslots hweights (hleft ξ) (hright ξ)
|
| 118 |
+
have hc (I:Ideal O) := funext (actualLongCoefficient_complete S D hbad Ψ m H₀ (Z^ell) ξ I)
|
| 119 |
+
have hrow: (fun I z=>varyingReopenedRow (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 120 |
+
(poolPrimary_coprime F hF) hg' Finset.univ Q
|
| 121 |
+
(separatedCubeCoefficient (fun v=>reopenedCubeCoefficient H₀
|
| 122 |
+
(rowTwist Ψ (m*excludedGenerator S) (idealGenerator I) 1) (cubeIdeal F v))
|
| 123 |
+
(fun v=>(Ideal.absNorm (cubeIdeal F v):ℝ)) (Z^ell) ξ) Ψ m (idealGenerator I)
|
| 124 |
+
(fun v T=>primeMark slots lists weights (T∪v.support)*frequencyTwist Vlog ξ (columnLog (poolPrimary F) (Z^r) T)) z)=
|
| 125 |
+
(fun I z=>varyingReopenedRow (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 126 |
+
(poolPrimary_coprime F hF) hg' Finset.univ Q
|
| 127 |
+
(separatedCubeCoefficient (fun v=>reopenedCubeCoefficient H₀
|
| 128 |
+
(rowTwist Ψ (m*excludedGenerator S) (idealGenerator I) 1) (cubeIdeal F v))
|
| 129 |
+
(fun v=>(Ideal.absNorm (cubeIdeal F v):ℝ)) (Z^ell) ξ) Ψ m (idealGenerator I)
|
| 130 |
+
(fun v T=>primeMark slots lists weights (v.support∪T)*normTwistedSource om ξ (primeProductNorm (poolPrimary F) T/Z^r)) z) := by
|
| 131 |
+
funext I z
|
| 132 |
+
exact long_marked_source_eq (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 133 |
+
hg' Finset.univ Q _ Ψ m (idealGenerator I) z slots lists weights Vlog Alog hbox Z r ξ hz
|
| 134 |
+
rw [hrow]
|
| 135 |
+
convert hbnd using 1
|
| 136 |
+
· apply congrArg (fun f => Z^(-r-2*ell-V)*rowFamilyEnergy labels f (Z^M))
|
| 137 |
+
funext I z
|
| 138 |
+
exact congrArg (fun coeff => varyingReopenedRow (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 139 |
+
(poolPrimary_coprime F hF) hg' Finset.univ Q coeff Ψ m (idealGenerator I)
|
| 140 |
+
(fun v T => primeMark slots lists weights (v.support∪T)*normTwistedSource om ξ
|
| 141 |
+
(primeProductNorm (poolPrimary F) T/Z^r)) z) (hc I).symm
|
| 142 |
+
· dsimp [E,Gamma,d]
|
| 143 |
+
try simp only [Real.norm_eq_abs]
|
| 144 |
+
ring
|
| 145 |
+
· dsimp [E,Gamma,moment]
|
| 146 |
+
|
| 147 |
+
end SevenEighths.InverseMoment
|
| 148 |
+
|
| 149 |
+
end
|
| 150 |
+
|
| 151 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLongWeight.lean
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongNormalization
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.TripleMass
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
open scoped BigOperators Classical
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 11 |
+
open CanonicalQuadraticSieve FirstPassCubeLabels SecondPassArithmetic
|
| 12 |
+
open InverseSecondFibers InverseInitialClippedColumns IdealMobiusDivisorSum
|
| 13 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 14 |
+
|
| 15 |
+
theorem second_label_weight_uniform (K:ℕ)(L eps:ℝ)(hL:0≤L)(heps:0<eps) :
|
| 16 |
+
∃C:ℝ,0<C ∧ ∀(Z V:ℝ),1≤Z→V≤L→∀I:Ideal O,I≠0→
|
| 17 |
+
(I.absNorm:ℝ)≤Z^V→secondLabelWeight K I≤C*Z^eps := by
|
| 18 |
+
let delta:=eps/(L+1)
|
| 19 |
+
have hd:0<delta:=div_pos heps (by linarith)
|
| 20 |
+
obtain ⟨C,hC,hh⟩:=ideal_divisor_power_small (9+4*K) delta hd
|
| 21 |
+
refine ⟨C,hC,?_⟩
|
| 22 |
+
intro Z V hZ hV I hI hnorm
|
| 23 |
+
have hz:0<Z:=zero_lt_one.trans_le hZ
|
| 24 |
+
have hbudget:L*delta≤eps := by
|
| 25 |
+
have he:(L+1)*delta=eps:=by dsimp [delta];field_simp
|
| 26 |
+
nlinarith
|
| 27 |
+
calc
|
| 28 |
+
secondLabelWeight K I≤C*(I.absNorm:ℝ)^delta:=hh I hI
|
| 29 |
+
_≤C*(Z^L)^delta:=by
|
| 30 |
+
gcongr
|
| 31 |
+
exact hnorm.trans (Real.rpow_le_rpow_of_exponent_le hZ hV)
|
| 32 |
+
_=C*Z^(L*delta):=by rw [←Real.rpow_mul hz.le]
|
| 33 |
+
_≤C*Z^eps:=by gcongr
|
| 34 |
+
|
| 35 |
+
theorem normalized_second_energy_le_actual_family (K:ℕ)(L eps:ℝ)(hL:0≤L)(heps:0<eps) :
|
| 36 |
+
∃C:ℝ,0<C ∧ ∀{ι σ:Type*}[DecidableEq ι][DecidableEq σ]
|
| 37 |
+
(p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 38 |
+
(hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 39 |
+
(hg:∀i,goodLambda∉Ideal.span {p i})
|
| 40 |
+
(pool:Finset ι)(Ψ:O→*ℂ)(m:O)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 41 |
+
(labels:Finset (Ideal O))(_hlabels:∀I∈labels,Admissible I)
|
| 42 |
+
(W:ℝ→ℂ)(X Z F V R:ℝ),1≤Z→0<R→V≤L→
|
| 43 |
+
(∀I∈labels,(I.absNorm:ℝ)≤Z^V)→
|
| 44 |
+
normalizedColumnEnergy p hp hcop hg pool Ψ m slots lists a labels
|
| 45 |
+
(nonzeroChildFrequencyBall 1 R) (secondLabelWeight K) W X Z F≤
|
| 46 |
+
C*Z^(-F+eps)*rowFamilyEnergy labels (fun I k=>
|
| 47 |
+
finiteCanonicalMarkedRow p hp hcop hg pool Ψ m (idealGenerator I) k slots lists a W X) R := by
|
| 48 |
+
obtain ⟨C,hC,hh⟩:=second_label_weight_uniform K L eps hL heps
|
| 49 |
+
refine ⟨C,hC,?_⟩
|
| 50 |
+
intro ι σ _ _ p hp _ hcop hg pool Ψ m slots lists a labels hlabels W X Z F V R hZ hR hV hnorm
|
| 51 |
+
have hz:0<Z:=zero_lt_one.trans_le hZ
|
| 52 |
+
have hb:=normalized_energy_le_actual_family p hp hcop hg pool Ψ m slots lists a labels
|
| 53 |
+
(fun I hI=>supported_primaryGenerator_ne_zero I (admissible_supported (hlabels I hI)))
|
| 54 |
+
(secondLabelWeight K) (C*Z^eps) (by positivity)
|
| 55 |
+
(fun I hI=>⟨by unfold secondLabelWeight;positivity,
|
| 56 |
+
hh Z V hZ hV I (hlabels I hI).1 (hnorm I hI)⟩) W X Z F R hz hR
|
| 57 |
+
convert hb using 1
|
| 58 |
+
rw [Real.rpow_add hz]
|
| 59 |
+
ring
|
| 60 |
+
|
| 61 |
+
end SevenEighths.InverseMoment
|
| 62 |
+
|
| 63 |
+
end
|
| 64 |
+
|
| 65 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalLowerMoments.lean
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalChildSupport
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstLabelCellStep
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
open scoped Classical BigOperators SchwartzMap
|
| 8 |
+
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open ActualEisensteinCubic FirstPassCubeLabels SecondPassArithmetic CanonicalQuadraticSieve
|
| 11 |
+
open InverseInitialClippedColumns InverseSecondFibers InverseSecondSourceBlocks
|
| 12 |
+
open CanonicalCoefficientClass InverseMomentFirstLabelCell InverseMomentFirstChildWindows InverseFirstGlobalCaps
|
| 13 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 14 |
+
variable {ι σ:Type}[DecidableEq ι][DecidableEq σ]
|
| 15 |
+
variable (p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 16 |
+
variable (hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 17 |
+
variable (hg:∀i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i})
|
| 18 |
+
|
| 19 |
+
def CanonicalLowerMoments (pool:Finset ι)(base:O→*ℂ)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 20 |
+
(W:𝓢(ℝ,ℂ))(Z Mmax Fcap z c eps A:ℝ)(K degree:ℕ):Prop :=
|
| 21 |
+
∀(Ψ:O→*ℂ),IsBaseRayTwist base Ψ→∀(m:O),m≠0→∀N V M Qwidth:ℝ,
|
| 22 |
+
0≤N→0≤V→0≤M→0≤Qwidth→M<Mmax→N+V≤Fcap→
|
| 23 |
+
CanonicalMargins (N+V) M Qwidth z c→
|
| 24 |
+
‖ConcreteTraceCRT.eisEmbedding m‖^2=Z^Qwidth→
|
| 25 |
+
∀(subslots:Finset σ),subslots⊆slots→∀labels:Finset (Ideal O),
|
| 26 |
+
(∀I∈labels,Admissible I ∧ (Ideal.absNorm I:ℝ)≤Z^V)→∀s:ℝ,
|
| 27 |
+
normalizedColumnEnergy p hp hcop hg pool Ψ m subslots lists a labels
|
| 28 |
+
(nonzeroChildFrequencyBall 1 (Z^M)) (secondLabelWeight K) (childLogTest W s) (Z^N) Z (N+V)≤
|
| 29 |
+
A*Z^(N+V+eps)*(1+‖s‖)^(2*degree)
|
| 30 |
+
|
| 31 |
+
include hp in
|
| 32 |
+
theorem canonical_lower_moments_children
|
| 33 |
+
(hc:∀i,ringChar (O⧸Ideal.span {p i})≠2)
|
| 34 |
+
(hpr:∀i,ConcretePrimeRowBridge.goodLambda^2∣p i-1)
|
| 35 |
+
(pool:Finset ι)(Q:Finset (ι→₀ℕ))(k:SourceIndex)(l j:ℕ)(negative:Bool)
|
| 36 |
+
(base Ψ:O→*ℂ)(hΨ:IsBaseRayTwist base Ψ)(m:O)(hm:m≠0)
|
| 37 |
+
(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)(ω₁ ω₂:𝓢(ℝ,ℂ))
|
| 38 |
+
(Z M r ell V eta tau window b cutoff Qwidth z c eps A:ℝ)(K degree:ℕ)
|
| 39 |
+
(hZ:1<Z)(heta:0≤eta)(hbin:2≤Z^eta)(hell:0≤ell)(hV:0≤V)
|
| 40 |
+
(hb:1≤b)(hbt:b≤Z^(6*eta))(hwindow:Real.exp window≤Z^(4*eta))
|
| 41 |
+
(hd:0<cutoff)(hterminal:cutoff≤ell+V)(hsmall:eta≤cutoff/16)
|
| 42 |
+
(hparent:CanonicalMargins (r+3*ell+V) M Qwidth z c)
|
| 43 |
+
(hpuncture:(Ideal.absNorm (Ideal.span {m}:Ideal O).radical:ℝ)≤Z^Qwidth)
|
| 44 |
+
(hQ:∀v∈Q,‖ConcreteTraceCRT.eisEmbedding (primeProduct p v.support v)‖^2≤Z^(ell+eta))
|
| 45 |
+
(h₁:CanonicalLowerMoments p hp hcop hg pool base slots lists a ω₁ Z M (r+3*ell+V+15*eta) z (c-7*eta) eps A K degree)
|
| 46 |
+
(h₂:CanonicalLowerMoments p hp hcop hg pool base slots lists a ω₂ Z M (r+3*ell+V+15*eta) z (c-7*eta) eps A K degree):
|
| 47 |
+
ChildBounds p hp hcop hg pool Q k l j negative Ψ m slots lists a ω₁ ω₂
|
| 48 |
+
Z M r ell V eta tau window b eps A K degree :=by
|
| 49 |
+
intro ray core assigned hass
|
| 50 |
+
let S:=source p pool Q k l j negative assigned lists Z M r ell V eta tau window b
|
| 51 |
+
let Ψ₀:=firstCoreTwist negative (if negative then ray.1 else ray.2) Ψ core
|
| 52 |
+
have hbase:IsBaseRayTwist base Ψ₀:=hΨ.firstCore _ _ _
|
| 53 |
+
have hstate:=source_state_bounds p hp pool Q k l j negative assigned lists Z M r ell V eta tau window b cutoff
|
| 54 |
+
hZ heta hbin hell hV hb hbt hwindow hterminal hsmall hQ
|
| 55 |
+
have hmargin:=source_child_margins p hp hpr pool Q k l j negative assigned lists Z M r ell V eta tau window b
|
| 56 |
+
m hm Qwidth z c hZ heta hbin hV hparent hpuncture hQ
|
| 57 |
+
have hlabels:=source_labels p hp pool Q k l j negative assigned lists Z M r ell V eta tau window b hZ heta hbin hQ
|
| 58 |
+
constructor
|
| 59 |
+
· intro zz d hdcell s J hJ γ hγ
|
| 60 |
+
have st:=hstate d hdcell
|
| 61 |
+
have mg:=hmargin d γ hγ
|
| 62 |
+
apply h₁ (secondRayMinus Ψ₀ zz) (hbase.secondMinus zz) (actualSecondInheritedRadicalPuncture m γ) mg.1
|
| 63 |
+
(max 0 (secondCellColumnExponent Z (columnScale Z r k l negative) d))
|
| 64 |
+
(actualCellLabelExponent Z (exponent Z (k 2)) (exponent Z j) eta d)
|
| 65 |
+
(actualCellRowExponent Z M ell (columnA Z k negative) (exponent Z l) V (exponent Z j) eta d)
|
| 66 |
+
(actualSecondPunctureWidth Z m γ) st.1 st.2.1 st.2.2.2.1 mg.2.1 (by linarith [st.2.2.2.2]) st.2.2.1 mg.2.2.2 mg.2.2.1
|
| 67 |
+
((slots\assigned)\J) (Finset.sdiff_subset.trans Finset.sdiff_subset)
|
| 68 |
+
((actualCellLabels p S d).filter Squarefree) ?_ s
|
| 69 |
+
intro I hI
|
| 70 |
+
exact ⟨actual_cell_labels_admissible p hp hg hc S d I hI,(hlabels.2 d I hI).2.2⟩
|
| 71 |
+
· intro zz d hdcell s J hJ γ hγ
|
| 72 |
+
have st:=hstate d hdcell
|
| 73 |
+
have mg:=hmargin d γ hγ
|
| 74 |
+
apply h₂ (secondRayPlus Ψ₀ zz) (hbase.secondPlus zz) (actualSecondInheritedRadicalPuncture m γ) mg.1
|
| 75 |
+
(max 0 (secondCellColumnExponent Z (columnScale Z r k l negative) d))
|
| 76 |
+
(actualCellLabelExponent Z (exponent Z (k 2)) (exponent Z j) eta d)
|
| 77 |
+
(actualCellRowExponent Z M ell (columnA Z k negative) (exponent Z l) V (exponent Z j) eta d)
|
| 78 |
+
(actualSecondPunctureWidth Z m γ) st.1 st.2.1 st.2.2.2.1 mg.2.1 (by linarith [st.2.2.2.2]) st.2.2.1 mg.2.2.2 mg.2.2.1
|
| 79 |
+
((slots\assigned)\J) (Finset.sdiff_subset.trans Finset.sdiff_subset)
|
| 80 |
+
((actualCellLabels p S d).filter Squarefree) ?_ s
|
| 81 |
+
intro I hI
|
| 82 |
+
exact ⟨actual_cell_labels_admissible p hp hg hc S d I hI,(hlabels.2 d I hI).2.2⟩
|
| 83 |
+
|
| 84 |
+
end SevenEighths.InverseMoment
|
| 85 |
+
|
| 86 |
+
end
|
| 87 |
+
|
| 88 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalPunctureMask.lean
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.ActualChildStatePuncture
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Inversion.InitialClippedColumns
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
open scoped BigOperators Classical
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
open ActualEisensteinCubic FirstPassCubeLabels SecondPassArithmetic CompletedGauss
|
| 10 |
+
open CanonicalRowCompletion ConcretePrimeRowBridge CanonicalQuadraticSieve
|
| 11 |
+
open InverseInitialClippedColumns
|
| 12 |
+
local notation "Eis" => ActualEisensteinCubic.O
|
| 13 |
+
|
| 14 |
+
section General
|
| 15 |
+
variable {ι σ : Type*} [DecidableEq ι] [DecidableEq σ]
|
| 16 |
+
(p : ι → Eis) (hp : ∀ i,p i≠0) [∀ i,(Ideal.span {p i}).IsMaximal]
|
| 17 |
+
(hcop : Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 18 |
+
(hg : ∀ i,goodLambda∉Ideal.span {p i})
|
| 19 |
+
|
| 20 |
+
omit [DecidableEq ι] in
|
| 21 |
+
theorem rowCoprimeMask_redundant_mul (S : Finset ι) (m c : Eis)
|
| 22 |
+
(hc : ∀ i∈S,c∈Ideal.span {p i}→m∈Ideal.span {p i}) :
|
| 23 |
+
rowCoprimeMask (fun i=>Ideal.span {p i}) S (m*c)=
|
| 24 |
+
rowCoprimeMask (fun i=>Ideal.span {p i}) S m := by
|
| 25 |
+
have he : (∃i∈S,m*c∈Ideal.span {p i}) ↔ ∃i∈S,m∈Ideal.span {p i} := by
|
| 26 |
+
constructor
|
| 27 |
+
· rintro ⟨i,hi,hm⟩
|
| 28 |
+
exact ⟨i,hi,((inferInstance : (Ideal.span {p i}).IsPrime).mem_or_mem hm).elim id (hc i hi)⟩
|
| 29 |
+
· rintro ⟨i,hi,hm⟩
|
| 30 |
+
exact ⟨i,hi,Ideal.mul_mem_right _ _ hm⟩
|
| 31 |
+
simp only [rowCoprimeMask,he]
|
| 32 |
+
|
| 33 |
+
omit [DecidableEq σ] in
|
| 34 |
+
theorem finiteCanonicalMarkedRow_redundant_puncture
|
| 35 |
+
(pool : Finset ι) (Ψ : Eis →* ℂ) (m c f k : Eis)
|
| 36 |
+
(slots : Finset σ) (lists : σ→Finset ι) (a : σ→ι→ℂ) (W : ℝ→ℂ) (X : ℝ)
|
| 37 |
+
(hc : ∀ i∈pool,c∈Ideal.span {p i}→m∈Ideal.span {p i}) :
|
| 38 |
+
finiteCanonicalMarkedRow p hp hcop hg pool Ψ (m*c) f k slots lists a W X=
|
| 39 |
+
finiteCanonicalMarkedRow p hp hcop hg pool Ψ m f k slots lists a W X := by
|
| 40 |
+
unfold finiteCanonicalMarkedRow fixedChildRow
|
| 41 |
+
apply Finset.sum_congr rfl
|
| 42 |
+
intro S hS
|
| 43 |
+
have hm := rowCoprimeMask_redundant_mul p S m c
|
| 44 |
+
(fun i hi=>hc i (Finset.mem_powerset.mp hS hi))
|
| 45 |
+
simp only [secondChildColumn,hm]
|
| 46 |
+
|
| 47 |
+
omit [DecidableEq σ] in
|
| 48 |
+
theorem normalizedColumnEnergy_redundant_puncture
|
| 49 |
+
(pool : Finset ι) (Ψ : Eis →* ℂ) (m c : Eis)
|
| 50 |
+
(slots : Finset σ) (lists : σ→Finset ι) (a : σ→ι→ℂ)
|
| 51 |
+
(labels : Finset (Ideal Eis)) (rows : Finset Eis) (D : Ideal Eis→ℝ)
|
| 52 |
+
(W : ℝ→ℂ) (X Z F : ℝ)
|
| 53 |
+
(hc : ∀ i∈pool,c∈Ideal.span {p i}→m∈Ideal.span {p i}) :
|
| 54 |
+
normalizedColumnEnergy p hp hcop hg pool Ψ (m*c) slots lists a labels rows D W X Z F=
|
| 55 |
+
normalizedColumnEnergy p hp hcop hg pool Ψ m slots lists a labels rows D W X Z F := by
|
| 56 |
+
simp only [normalizedColumnEnergy,finiteCanonicalMarkedRow_redundant_puncture
|
| 57 |
+
p hp hcop hg pool Ψ m c _ _ slots lists a W X hc]
|
| 58 |
+
|
| 59 |
+
omit [DecidableEq ι] in
|
| 60 |
+
theorem puncture_mem_of_radical_dvd (m c : Eis)
|
| 61 |
+
(hc : (Ideal.span {c}:Ideal Eis).radical∣(Ideal.span {m}:Ideal Eis).radical)
|
| 62 |
+
(i : ι) (hi : c∈Ideal.span {p i}) : m∈Ideal.span {p i} := by
|
| 63 |
+
rw [←Ideal.span_singleton_le_iff_mem]
|
| 64 |
+
apply Ideal.le_radical.trans
|
| 65 |
+
apply (Ideal.dvd_iff_le.mp hc).trans
|
| 66 |
+
exact (inferInstance : (Ideal.span {p i}).IsPrime).radical_le_iff.mpr
|
| 67 |
+
(by rwa [Ideal.span_singleton_le_iff_mem])
|
| 68 |
+
|
| 69 |
+
omit [DecidableEq ι] in
|
| 70 |
+
theorem inherited_puncture_redundant_mem (m c : Eis)
|
| 71 |
+
(γ : InverseSecondFibers.OuterTriple)
|
| 72 |
+
(hc : (Ideal.span {c}:Ideal Eis).radical∣Ideal.span {m})
|
| 73 |
+
(i : ι) (hi : c∈Ideal.span {p i}) :
|
| 74 |
+
actualSecondInheritedRadicalPuncture m γ∈Ideal.span {p i} := by
|
| 75 |
+
have hd := actual_inherited_radical_preserves_fixed m γ (Ideal.span {c}).radical
|
| 76 |
+
(Ideal.radical_idem _) hc
|
| 77 |
+
apply puncture_mem_of_radical_dvd p _ c _ i hi
|
| 78 |
+
rw [actual_inherited_radical_is_radical]
|
| 79 |
+
exact hd
|
| 80 |
+
|
| 81 |
+
end General
|
| 82 |
+
|
| 83 |
+
theorem outside_pool_redundant_puncture {σ : Type*} [DecidableEq σ]
|
| 84 |
+
(S : Finset (Ideal Eis)) (D : ℕ) (hbad : fixedBadPrimes⊆S)
|
| 85 |
+
(hSp : ∀P∈S,Prime P)
|
| 86 |
+
(pool : Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)))
|
| 87 |
+
(Ψ : Eis →* ℂ) (m f k : Eis) (slots : Finset σ)
|
| 88 |
+
(lists : σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)))
|
| 89 |
+
(a : σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→ℂ)
|
| 90 |
+
(W : ℝ→ℂ) (X : ℝ) :
|
| 91 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 92 |
+
let hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad
|
| 93 |
+
letI : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 94 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 95 |
+
finiteCanonicalMarkedRow (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 96 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) pool Ψ
|
| 97 |
+
(m*excludedGenerator S) f k slots lists a W X=
|
| 98 |
+
finiteCanonicalMarkedRow (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 99 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) pool Ψ m f k slots lists a W X := by
|
| 100 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 101 |
+
have hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad
|
| 102 |
+
let : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 103 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 104 |
+
dsimp only
|
| 105 |
+
apply finiteCanonicalMarkedRow_redundant_puncture
|
| 106 |
+
intro i hi hc
|
| 107 |
+
rw [poolPrimary_span _ (InitialMeanSquare.outsideSquarefree_admissible S D hbad)] at hc
|
| 108 |
+
exact False.elim (excludedGenerator_not_mem_pool S D hSp i hc)
|
| 109 |
+
|
| 110 |
+
end SevenEighths.InverseMoment
|
| 111 |
+
end
|
| 112 |
+
|
| 113 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalPunctureMaskEnergy.lean
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalPunctureMask
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
open scoped BigOperators Classical
|
| 7 |
+
namespace SevenEighths.InverseMoment
|
| 8 |
+
open ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 9 |
+
open CanonicalQuadraticSieve InverseInitialClippedColumns
|
| 10 |
+
local notation "Eis" => ActualEisensteinCubic.O
|
| 11 |
+
|
| 12 |
+
theorem outside_pool_redundant_energy {σ : Type*} [DecidableEq σ]
|
| 13 |
+
(S : Finset (Ideal Eis)) (D : ℕ) (hbad : fixedBadPrimes⊆S)
|
| 14 |
+
(hSp : ∀P∈S,Prime P)
|
| 15 |
+
(pool : Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)))
|
| 16 |
+
(Ψ : Eis →* ℂ) (m : Eis) (slots : Finset σ)
|
| 17 |
+
(lists : σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)))
|
| 18 |
+
(a : σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)→ℂ)
|
| 19 |
+
(labels : Finset (Ideal Eis)) (rows : Finset Eis) (weight : Ideal Eis→ℝ)
|
| 20 |
+
(W : ℝ→ℂ) (X Z Fexp : ℝ) :
|
| 21 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 22 |
+
let hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad
|
| 23 |
+
letI : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 24 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 25 |
+
normalizedColumnEnergy (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 26 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) pool Ψ
|
| 27 |
+
(m*excludedGenerator S) slots lists a labels rows weight W X Z Fexp=
|
| 28 |
+
normalizedColumnEnergy (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 29 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) pool Ψ
|
| 30 |
+
m slots lists a labels rows weight W X Z Fexp := by
|
| 31 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 32 |
+
have hF:=InitialMeanSquare.outsideSquarefree_admissible S D hbad
|
| 33 |
+
let : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 34 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 35 |
+
dsimp only
|
| 36 |
+
apply normalizedColumnEnergy_redundant_puncture
|
| 37 |
+
intro i hi hc
|
| 38 |
+
rw [poolPrimary_span F hF i] at hc
|
| 39 |
+
exact False.elim (excludedGenerator_not_mem_pool S D hSp i hc)
|
| 40 |
+
|
| 41 |
+
theorem reflection_pool_mask_energy {σ : Type*} [DecidableEq σ]
|
| 42 |
+
(q D : ℕ)
|
| 43 |
+
(pool : Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)))
|
| 44 |
+
(Ψ : Eis →* ℂ) (m : Eis) (slots : Finset σ)
|
| 45 |
+
(lists : σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)))
|
| 46 |
+
(a : σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)→ℂ)
|
| 47 |
+
(labels : Finset (Ideal Eis)) (rows : Finset Eis) (weight : Ideal Eis→ℝ)
|
| 48 |
+
(W : ℝ→ℂ) (X Z Fexp : ℝ) :
|
| 49 |
+
let S:=reflectionExcludedPrimes q
|
| 50 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 51 |
+
let hF:=InitialMeanSquare.outsideSquarefree_admissible S D (reflectionExcludedPrimes_bad q)
|
| 52 |
+
letI : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=
|
| 53 |
+
fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 54 |
+
normalizedColumnEnergy (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 55 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) pool Ψ
|
| 56 |
+
(ActualFiber.maskElement q m) slots lists a labels rows weight W X Z Fexp=
|
| 57 |
+
normalizedColumnEnergy (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 58 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) pool Ψ
|
| 59 |
+
m slots lists a labels rows weight W X Z Fexp :=
|
| 60 |
+
outside_pool_redundant_energy (reflectionExcludedPrimes q) D
|
| 61 |
+
(reflectionExcludedPrimes_bad q) (reflectionExcludedPrimes_prime q)
|
| 62 |
+
pool Ψ m slots lists a labels rows weight W X Z Fexp
|
| 63 |
+
|
| 64 |
+
theorem inherited_radical_mask_energy {ι σ : Type*} [DecidableEq ι] [DecidableEq σ]
|
| 65 |
+
(p : ι→Eis) (hp : ∀i,p i≠0) [∀i,(Ideal.span {p i}).IsMaximal]
|
| 66 |
+
(hcop : Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 67 |
+
(hg : ∀i,goodLambda∉Ideal.span {p i})
|
| 68 |
+
(pool : Finset ι) (Ψ : Eis→*ℂ) (m c : Eis) (γ : InverseSecondFibers.OuterTriple)
|
| 69 |
+
(hc : (Ideal.span {c}:Ideal Eis).radical∣Ideal.span {m})
|
| 70 |
+
(slots : Finset σ) (lists : σ→Finset ι) (a : σ→ι→ℂ)
|
| 71 |
+
(labels : Finset (Ideal Eis)) (rows : Finset Eis) (weight : Ideal Eis→ℝ)
|
| 72 |
+
(W : ℝ→ℂ) (X Z Fexp : ℝ) :
|
| 73 |
+
normalizedColumnEnergy p hp hcop hg pool Ψ
|
| 74 |
+
(actualSecondInheritedRadicalPuncture m γ*c) slots lists a labels rows weight W X Z Fexp=
|
| 75 |
+
normalizedColumnEnergy p hp hcop hg pool Ψ
|
| 76 |
+
(actualSecondInheritedRadicalPuncture m γ) slots lists a labels rows weight W X Z Fexp :=
|
| 77 |
+
normalizedColumnEnergy_redundant_puncture p hp hcop hg pool Ψ _ c
|
| 78 |
+
slots lists a labels rows weight W X Z Fexp
|
| 79 |
+
(fun i _=>inherited_puncture_redundant_mem p m c γ hc i)
|
| 80 |
+
|
| 81 |
+
end SevenEighths.InverseMoment
|
| 82 |
+
end
|
| 83 |
+
|
| 84 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankCapChildren.lean
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalRankMonotone
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
open scoped Classical BigOperators SchwartzMap
|
| 7 |
+
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
open ActualEisensteinCubic FirstPassCubeLabels SecondPassArithmetic CanonicalQuadraticSieve
|
| 10 |
+
open InverseMomentFirstLabelCell InverseMomentFirstChildWindows InverseFirstGlobalCaps
|
| 11 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 12 |
+
variable {ι σ:Type}[DecidableEq ι][DecidableEq σ]
|
| 13 |
+
variable (p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 14 |
+
variable (hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 15 |
+
variable (hg:∀i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i})
|
| 16 |
+
|
| 17 |
+
theorem canonical_rank_cap_children
|
| 18 |
+
(hc:∀i,ringChar (O⧸Ideal.span {p i})≠2)
|
| 19 |
+
(hpr:∀i,ConcretePrimeRowBridge.goodLambda^2∣p i-1)
|
| 20 |
+
(pool:Finset ι)(Q:Finset (ι→₀ℕ))(k:SourceIndex)(l j:ℕ)(negative:Bool)
|
| 21 |
+
(base Ψ:O→*ℂ)(hΨ:CanonicalCoefficientClass.IsBaseRayTwist base Ψ)(m:O)(hm:m≠0)
|
| 22 |
+
(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)(ω₁ ω₂:𝓢(ℝ,ℂ))
|
| 23 |
+
(Z M r ell V eta tau window b cutoff Qwidth z c eps A Mnext Fnext cnext:ℝ)(K degree:ℕ)
|
| 24 |
+
(hZ:1<Z)(heta:0≤eta)(hbin:2≤Z^eta)(hell:0≤ell)(hV:0≤V)
|
| 25 |
+
(hb:1≤b)(hbt:b≤Z^(6*eta))(hwindow:Real.exp window≤Z^(4*eta))
|
| 26 |
+
(hd:0<cutoff)(hterminal:cutoff≤ell+V)(hsmall:eta≤cutoff/16)
|
| 27 |
+
(hparent:CanonicalMargins (r+3*ell+V) M Qwidth z c)
|
| 28 |
+
(hpuncture:(Ideal.absNorm (Ideal.span {m}:Ideal O).radical:ℝ)≤Z^Qwidth)
|
| 29 |
+
(hQ:∀v∈Q,‖ConcreteTraceCRT.eisEmbedding (primeProduct p v.support v)‖^2≤Z^(ell+eta))
|
| 30 |
+
(hMc:M-3*cutoff/2≤Mnext)(hFc:r+3*ell+V+15*eta≤Fnext)(hcc:cnext≤c-7*eta)
|
| 31 |
+
(h₁:CanonicalRankMoments p hp hcop hg pool base slots lists a ω₁ Z Mnext Fnext z cnext eps A K degree)
|
| 32 |
+
(h₂:CanonicalRankMoments p hp hcop hg pool base slots lists a ω₂ Z Mnext Fnext z cnext eps A K degree):
|
| 33 |
+
ChildBounds p hp hcop hg pool Q k l j negative Ψ m slots lists a ω₁ ω₂
|
| 34 |
+
Z M r ell V eta tau window b eps A K degree :=by
|
| 35 |
+
exact canonical_rank_moments_children p hp hcop hg hc hpr pool Q k l j negative base Ψ hΨ m hm
|
| 36 |
+
slots lists a ω₁ ω₂ Z M r ell V eta tau window b cutoff Qwidth z c eps A K degree
|
| 37 |
+
hZ heta hbin hell hV hb hbt hwindow hd hterminal hsmall hparent hpuncture hQ
|
| 38 |
+
(canonical_rank_restrict p hp hcop hg pool base slots lists a ω₁ Z _ _ _ _ z _ _ eps A K degree hMc hFc hcc h₁)
|
| 39 |
+
(canonical_rank_restrict p hp hcop hg pool base slots lists a ω₂ Z _ _ _ _ z _ _ eps A K degree hMc hFc hcc h₂)
|
| 40 |
+
|
| 41 |
+
theorem canonical_depth_ceilings (n:ℕ)(cutoff Fbase cbase eta:ℝ)(M F c:ℝ)
|
| 42 |
+
(hM:M≤3*(n:ℝ)*cutoff/2)(hF:F≤Fbase-15*(n:ℝ)*eta)
|
| 43 |
+
(hc:cbase+7*((n:ℝ)+1)*eta≤c):
|
| 44 |
+
M-3*cutoff/2≤3*((n:ℝ)-1)*cutoff/2 ∧
|
| 45 |
+
F+15*eta≤Fbase-15*((n:ℝ)-1)*eta ∧
|
| 46 |
+
cbase+7*(n:ℝ)*eta≤c-7*eta :=by
|
| 47 |
+
constructor
|
| 48 |
+
· linarith
|
| 49 |
+
constructor <;> linarith
|
| 50 |
+
|
| 51 |
+
end SevenEighths.InverseMoment
|
| 52 |
+
|
| 53 |
+
end
|
| 54 |
+
|
| 55 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankDepthParameters.lean
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalRankExistenceData
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.RecursionParameters
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
|
| 10 |
+
theorem actual_rank_depth_covers (Mmax cutoff:ℝ)(hcut:0<cutoff):
|
| 11 |
+
Mmax≤rankRowCap (actualDepth Mmax (cutoff/2)) cutoff := by
|
| 12 |
+
have hceil:=Nat.le_ceil (2*Mmax/(3*(cutoff/2)))
|
| 13 |
+
have hscaled:2*Mmax≤(⌈2*Mmax/(3*(cutoff/2))⌉₊:ℝ)*(3*(cutoff/2)):=
|
| 14 |
+
(div_le_iff₀ (by positivity:0<3*(cutoff/2))).mp hceil
|
| 15 |
+
unfold rankRowCap actualDepth
|
| 16 |
+
push_cast
|
| 17 |
+
nlinarith
|
| 18 |
+
|
| 19 |
+
theorem actual_rank_depth_parameters (Mmax Fmax c eps:ℝ)
|
| 20 |
+
(hM:0≤Mmax)(hF:0≤Fmax)(hc:0<c)(heps:0<eps):
|
| 21 |
+
∃cutoff eta:ℝ,0<cutoff ∧ 0<eta ∧ eta≤1 ∧ eta≤cutoff/32 ∧
|
| 22 |
+
cutoff≤Fmax+1 ∧ cutoff≤c/200 ∧ eta≤c/100000 ∧
|
| 23 |
+
let n:=actualDepth Mmax (cutoff/2);
|
| 24 |
+
0<n ∧ Mmax≤rankRowCap n cutoff ∧
|
| 25 |
+
∀k:ℕ,k≤n→Fmax≤rankTotalCap k (Fmax+1) eta ∧
|
| 26 |
+
c/2≤rankMargin k c eta ∧ rankMargin k c eta≤c ∧
|
| 27 |
+
0≤rankLoss k eta ∧ rankLoss k eta≤eps/4 := by
|
| 28 |
+
let csmall:=min c 1
|
| 29 |
+
have hcs:0<csmall:=lt_min hc (by norm_num)
|
| 30 |
+
have hcc:csmall≤c:=min_le_left _ _
|
| 31 |
+
have hc1:csmall≤1:=min_le_right _ _
|
| 32 |
+
obtain ⟨cutoff,eta,hcut,heta,heta1,hetacut,hcutc,hetac,hbudgets⟩:=
|
| 33 |
+
actual_recursion_parameters Mmax Fmax csmall eps hM hF hcs heps
|
| 34 |
+
dsimp only at hbudgets
|
| 35 |
+
refine ⟨cutoff,eta,hcut,heta,heta1,hetacut,by linarith,by linarith,by linarith,?_⟩
|
| 36 |
+
dsimp only
|
| 37 |
+
refine ⟨actualDepth_pos _ _,actual_rank_depth_covers Mmax cutoff hcut,?_⟩
|
| 38 |
+
intro k hk
|
| 39 |
+
have hk':(k:ℝ)≤(actualDepth Mmax (cutoff/2):ℝ):=by exact_mod_cast hk
|
| 40 |
+
have hmono:=mul_le_mul_of_nonneg_right hk' heta.le
|
| 41 |
+
have hk0:0≤(k:ℝ):=Nat.cast_nonneg _
|
| 42 |
+
have hkE:0≤(k:ℝ)*eta:=mul_nonneg hk0 heta.le
|
| 43 |
+
rcases hbudgets with ⟨hmargin,hsize,hloss⟩
|
| 44 |
+
unfold rankTotalCap rankMargin rankLoss
|
| 45 |
+
refine ⟨?_,?_,?_,?_,?_⟩ <;> nlinarith
|
| 46 |
+
|
| 47 |
+
theorem actual_rank_top_parameters (Mmax Fmax c eps:ℝ)
|
| 48 |
+
(hM:0≤Mmax)(hF:0≤Fmax)(hc:0<c)(heps:0<eps):
|
| 49 |
+
∃(n:ℕ)(cutoff eta:ℝ),n=actualDepth Mmax (cutoff/2) ∧
|
| 50 |
+
0<n ∧ 0<cutoff ∧ 0<eta ∧ eta≤1 ∧ eta≤cutoff/32 ∧
|
| 51 |
+
cutoff≤Fmax+1 ∧ cutoff≤c/200 ∧ eta≤c/100000 ∧
|
| 52 |
+
Mmax≤rankRowCap n cutoff ∧ Fmax≤rankTotalCap n (Fmax+1) eta ∧
|
| 53 |
+
c/2≤rankMargin n c eta ∧ rankMargin n c eta≤c ∧
|
| 54 |
+
0≤rankLoss n eta ∧ rankLoss n eta<eps := by
|
| 55 |
+
obtain ⟨cutoff,eta,hcut,heta,heta1,hetacut,hcutL,hcutc,hetac,hn,hrow,hall⟩:=
|
| 56 |
+
actual_rank_depth_parameters Mmax Fmax c eps hM hF hc heps
|
| 57 |
+
have htop:=hall (actualDepth Mmax (cutoff/2)) le_rfl
|
| 58 |
+
refine ⟨actualDepth Mmax (cutoff/2),cutoff,eta,rfl,hn,hcut,heta,heta1,hetacut,
|
| 59 |
+
hcutL,hcutc,hetac,hrow,htop.1,htop.2.1,htop.2.2.1,htop.2.2.2.1,?_⟩
|
| 60 |
+
linarith [htop.2.2.2.2]
|
| 61 |
+
|
| 62 |
+
end SevenEighths.InverseMoment
|
| 63 |
+
|
| 64 |
+
end
|
| 65 |
+
|
| 66 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankEnergyMonotone.lean
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalRankExistenceData
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
|
| 7 |
+
open scoped Classical BigOperators SchwartzMap
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
open ActualEisensteinCubic CanonicalQuadraticSieve InverseInitialClippedColumns
|
| 10 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 11 |
+
|
| 12 |
+
theorem canonical_rank_loss_le {ι σ:Type}[DecidableEq ι][DecidableEq σ]
|
| 13 |
+
(p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 14 |
+
(hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 15 |
+
(hg:∀i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i})
|
| 16 |
+
(pool:Finset ι)(base:O→*ℂ)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 17 |
+
(W:𝓢(ℝ,ℂ))(Z M F z c eps eps' A:ℝ)(K degree:ℕ)
|
| 18 |
+
(hZ:1≤Z)(hA:0≤A)(he:eps≤eps')
|
| 19 |
+
(h:CanonicalRankMoments p hp hcop hg pool base slots lists a W Z M F z c eps A K degree):
|
| 20 |
+
CanonicalRankMoments p hp hcop hg pool base slots lists a W Z M F z c eps' A K degree :=by
|
| 21 |
+
intro Ψ hΨ m hm N V Mr Q hN hV hM hQ hMc hFc hmargin hnorm ss hss labels hlabels s
|
| 22 |
+
apply (h Ψ hΨ m hm N V Mr Q hN hV hM hQ hMc hFc hmargin hnorm ss hss labels hlabels s).trans
|
| 23 |
+
apply mul_le_mul_of_nonneg_right _ (by positivity)
|
| 24 |
+
exact mul_le_mul_of_nonneg_left (Real.rpow_le_rpow_of_exponent_le hZ (by linarith)) hA
|
| 25 |
+
|
| 26 |
+
end SevenEighths.InverseMoment
|
| 27 |
+
|
| 28 |
+
end
|
| 29 |
+
|
| 30 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankExistence.lean
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalRankExistenceInduction
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Inversion.CanonicalReferenceThreshold
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
open scoped Classical BigOperators SchwartzMap
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
|
| 11 |
+
theorem actual_rank_reference_cutoffs : RankReferenceCutoffs :=by
|
| 12 |
+
intro lo hi hlo hhi
|
| 13 |
+
obtain ⟨Vlog,Alog,hA,hAe,hcompact,hsupport,hbox,hone,hzero⟩:=
|
| 14 |
+
exists_canonical_reference_cutoff lo hi
|
| 15 |
+
exact ⟨Vlog,Alog,hbox,hone⟩
|
| 16 |
+
|
| 17 |
+
theorem actual_rank_reference_thresholds : RankReferenceThresholds :=by
|
| 18 |
+
intro eta heta hi Alog window
|
| 19 |
+
exact eventually_canonical_reference_gates hi Alog window eta heta
|
| 20 |
+
|
| 21 |
+
theorem canonical_rank_energy_exists
|
| 22 |
+
(L cstar cutoff eta:ℝ)(K:ℕ)
|
| 23 |
+
(hL:1≤L)(hcstar:0<cstar)(hcut:0<cutoff)(hcutL:cutoff≤L)
|
| 24 |
+
(hcutc:cutoff≤cstar/200)(heta:0<eta)(heta1:eta≤1)
|
| 25 |
+
(hetac:eta≤cstar/100000)(hetad:eta≤cutoff/32)
|
| 26 |
+
(n:ℕ)(W:𝓢(ℝ,ℂ))(lo hi:ℝ)(hlo:0<lo)(hhi:0≤hi)
|
| 27 |
+
(hsW:Function.support (W:ℝ→ℂ)⊆Set.Icc lo hi):
|
| 28 |
+
RankEnergyExists n L cstar cutoff eta K W :=
|
| 29 |
+
rank_energy_exists_all_of_references actual_rank_reference_cutoffs actual_rank_reference_thresholds
|
| 30 |
+
L cstar cutoff eta K hL hcstar hcut hcutL hcutc heta heta1 hetac hetad n W lo hi hlo hhi hsW
|
| 31 |
+
|
| 32 |
+
theorem canonical_marked_energy_exists
|
| 33 |
+
(Mcap Fcap c eps:ℝ)(hM:0≤Mcap)(hF:0≤Fcap)(hc:0<c)(heps:0<eps)
|
| 34 |
+
(K:ℕ)(W:𝓢(ℝ,ℂ))(lo hi:ℝ)(hlo:0<lo)(hhi:0≤hi)
|
| 35 |
+
(hsW:Function.support (W:ℝ→ℂ)⊆Set.Icc lo hi):
|
| 36 |
+
CanonicalEnergyExists Mcap Fcap c eps (Fcap+1) K W :=
|
| 37 |
+
canonical_energy_exists_of_references actual_rank_reference_cutoffs actual_rank_reference_thresholds
|
| 38 |
+
Mcap Fcap c eps hM hF hc heps K W lo hi hlo hhi hsW
|
| 39 |
+
|
| 40 |
+
end SevenEighths.InverseMoment
|
| 41 |
+
|
| 42 |
+
end
|
| 43 |
+
|
| 44 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankExistenceData.lean
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalCompleteRankNormalized
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalCompleteBudget
|
| 3 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalRankPuncture
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
|
| 9 |
+
open scoped Classical BigOperators SchwartzMap
|
| 10 |
+
namespace SevenEighths.InverseMoment
|
| 11 |
+
open ActualEisensteinCubic CompletedGauss ConcretePrimeRowBridge CanonicalQuadraticSieve
|
| 12 |
+
open CanonicalRowCompletion InverseInitialClippedColumns InverseReflectedPhase
|
| 13 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 14 |
+
|
| 15 |
+
def CompletePoolRankMoments (q D:ℕ) {σ:Type}[DecidableEq σ]
|
| 16 |
+
(slots:Finset σ)
|
| 17 |
+
(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)))
|
| 18 |
+
(a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)→ℂ)
|
| 19 |
+
(base:O→*ℂ)(W:𝓢(ℝ,ℂ))(Z Mmax Fcap z c eps A:ℝ)(K degree:ℕ):Prop :=
|
| 20 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D;
|
| 21 |
+
let hF:=InitialMeanSquare.outsideSquarefree_admissible (reflectionExcludedPrimes q) D (reflectionExcludedPrimes_bad q);
|
| 22 |
+
letI:∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=fun i=>by rw [poolPrimary_span F hF i];infer_instance;
|
| 23 |
+
CanonicalRankMoments (poolPrimary F) (poolPrimary_ne_zero F hF)
|
| 24 |
+
(poolPrimary_coprime F hF) (poolPrimary_good F hF) Finset.univ base slots lists a W
|
| 25 |
+
Z Mmax Fcap z c eps A K degree
|
| 26 |
+
|
| 27 |
+
def rankRowCap (n:ℕ)(cutoff:ℝ):ℝ:=3*((n:ℝ)-1)*cutoff/4
|
| 28 |
+
|
| 29 |
+
def rankTotalCap (n:ℕ)(L eta:ℝ):ℝ:=L-15*(n:ℝ)*eta
|
| 30 |
+
|
| 31 |
+
def rankMargin (n:ℕ)(cstar eta:ℝ):ℝ:=cstar/2+7*(n:ℝ)*eta
|
| 32 |
+
|
| 33 |
+
def rankLoss (n:ℕ)(eta:ℝ):ℝ:=62*(n:ℝ)*eta
|
| 34 |
+
|
| 35 |
+
def RankEnergyExists (n:ℕ)(L cstar cutoff eta:ℝ)(K:ℕ)(W:𝓢(ℝ,ℂ)):Prop :=
|
| 36 |
+
∃degree:ℕ,∃B:ℝ,1≤B ∧
|
| 37 |
+
∀q:ℕ,q≠0→∃C Z₀:ℝ,0<C ∧ 1<Z₀ ∧
|
| 38 |
+
∀Z:ℝ,Z₀≤Z→∀D:ℕ,B*Z^L≤D→
|
| 39 |
+
∀{σ:Type}[DecidableEq σ](slots:Finset σ),slots.card≤K→
|
| 40 |
+
∀(lists:σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)))
|
| 41 |
+
(H:σ→ℝ)(a:σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)→ℂ),
|
| 42 |
+
(slots:Set σ).PairwiseDisjoint lists→
|
| 43 |
+
(∀i∈slots,1≤H i)→(∀i∈slots,∀P∈lists i,(Ideal.absNorm P.val:ℝ)≤H i)→
|
| 44 |
+
(∀i∈slots,∀P∈lists i,‖a i P‖≤1)→
|
| 45 |
+
∀z:ℝ,0≤z→(∏i∈slots,H i)≤Z^z→
|
| 46 |
+
∀base:O→*ℂ,(∀u,‖base u‖≤1)→
|
| 47 |
+
CanonicalCoefficientClass.FactorsModulo (CanonicalCoefficientClass.fixedBaseConductor q) base→
|
| 48 |
+
CompletePoolRankMoments q D slots lists a base W Z (rankRowCap n cutoff)
|
| 49 |
+
(rankTotalCap n L eta) z (rankMargin n cstar eta) (rankLoss n eta) C K degree
|
| 50 |
+
|
| 51 |
+
theorem rank_energy_exists_zero (L cstar cutoff eta:ℝ)(hcut:0<cutoff)(K:ℕ)(W:𝓢(ℝ,ℂ)):
|
| 52 |
+
RankEnergyExists 0 L cstar cutoff eta K W :=by
|
| 53 |
+
refine ⟨0,1,le_rfl,?_⟩
|
| 54 |
+
intro q hq
|
| 55 |
+
refine ⟨1,2,by norm_num,by norm_num,?_⟩
|
| 56 |
+
intro Z hZ D hD σ _ slots hslots lists H a hdis hH hP ha z hz hprod base hb hp
|
| 57 |
+
dsimp only [CompletePoolRankMoments]
|
| 58 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D
|
| 59 |
+
have hF:=InitialMeanSquare.outsideSquarefree_admissible (reflectionExcludedPrimes q) D (reflectionExcludedPrimes_bad q)
|
| 60 |
+
let:∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 61 |
+
apply canonical_rank_negative
|
| 62 |
+
simp only [rankRowCap,Nat.cast_zero]
|
| 63 |
+
linarith
|
| 64 |
+
|
| 65 |
+
theorem actual_rank_successor_caps (n:ℕ)(L cstar cutoff eta M F c:ℝ)
|
| 66 |
+
(hM:M≤rankRowCap (n+1) cutoff)(hF:F≤rankTotalCap (n+1) L eta)
|
| 67 |
+
(hc:rankMargin (n+1) cstar eta≤c):
|
| 68 |
+
M-3*cutoff/4≤rankRowCap n cutoff ∧ F+15*eta≤rankTotalCap n L eta ∧
|
| 69 |
+
rankMargin n cstar eta≤c-7*eta :=by
|
| 70 |
+
unfold rankRowCap rankTotalCap rankMargin at *
|
| 71 |
+
push_cast at *
|
| 72 |
+
constructor <;> first | linarith | constructor <;> linarith
|
| 73 |
+
|
| 74 |
+
end SevenEighths.InverseMoment
|
| 75 |
+
|
| 76 |
+
end
|
| 77 |
+
|
| 78 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankExistenceInduction.lean
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalRankExistenceSuccessor
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalRankDepthParameters
|
| 3 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalEnergyExistenceData
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
|
| 9 |
+
open scoped Classical BigOperators SchwartzMap
|
| 10 |
+
namespace SevenEighths.InverseMoment
|
| 11 |
+
open CanonicalCubeSeparation
|
| 12 |
+
|
| 13 |
+
def RankReferenceCutoffs:Prop :=
|
| 14 |
+
∀lo hi:ℝ,0<lo→0≤hi→∃(Vlog:𝓢(ℝ,ℂ))(Alog:ℝ),
|
| 15 |
+
(∀x,Vlog x≠0→|x|≤Alog) ∧
|
| 16 |
+
(∀x,|x|≤columnWindowRadius lo hi→Vlog x=1)
|
| 17 |
+
|
| 18 |
+
def RankReferenceThresholds:Prop :=
|
| 19 |
+
∀eta:ℝ,0<eta→∀hi Alog window:ℝ,∃Zt:ℝ,1<Zt ∧ ∀Z:ℝ,Zt≤Z→
|
| 20 |
+
2≤Z ∧ 2≤Z^eta ∧ Real.exp 1≤Z^eta ∧ 1≤eta*Real.log Z ∧
|
| 21 |
+
hi≤Z^eta ∧ Real.exp Alog≤Z^eta ∧ Real.exp window≤Z^eta
|
| 22 |
+
|
| 23 |
+
theorem rank_energy_exists_all_of_references
|
| 24 |
+
(href:RankReferenceCutoffs)(hthreshold:RankReferenceThresholds)
|
| 25 |
+
(L cstar cutoff eta:ℝ)(K:ℕ)
|
| 26 |
+
(hL:1≤L)(hcstar:0<cstar)(hcut:0<cutoff)(hcutL:cutoff≤L)
|
| 27 |
+
(hcutc:cutoff≤cstar/200)(heta:0<eta)(heta1:eta≤1)
|
| 28 |
+
(hetac:eta≤cstar/100000)(hetad:eta≤cutoff/32):
|
| 29 |
+
∀n:ℕ,∀(W:𝓢(ℝ,ℂ))(lo hi:ℝ),0<lo→0≤hi→
|
| 30 |
+
Function.support (W:ℝ→ℂ)⊆Set.Icc lo hi→RankEnergyExists n L cstar cutoff eta K W :=by
|
| 31 |
+
intro n
|
| 32 |
+
induction n with
|
| 33 |
+
| zero =>
|
| 34 |
+
intro W lo hi hlo hhi hsW
|
| 35 |
+
exact rank_energy_exists_zero L cstar cutoff eta hcut K W
|
| 36 |
+
| succ n ih =>
|
| 37 |
+
intro W lo hi hlo hhi hsW
|
| 38 |
+
obtain ⟨Vlog,Alog,hbox,hone⟩:=href lo hi hlo hhi
|
| 39 |
+
exact rank_energy_exists_succ_of_reference n L cstar cutoff eta K hL hcstar hcut hcutL
|
| 40 |
+
hcutc heta heta1 hetac hetad ih W lo hi hlo hhi hsW Vlog Alog hbox hone
|
| 41 |
+
(fun window=>hthreshold eta heta hi Alog window)
|
| 42 |
+
|
| 43 |
+
theorem canonical_energy_exists_of_references
|
| 44 |
+
(href:RankReferenceCutoffs)(hthreshold:RankReferenceThresholds)
|
| 45 |
+
(Mcap Fcap c eps:ℝ)(hM:0≤Mcap)(hF:0≤Fcap)(hc:0<c)(heps:0<eps)
|
| 46 |
+
(K:ℕ)(W:𝓢(ℝ,ℂ))(lo hi:ℝ)(hlo:0<lo)(hhi:0≤hi)
|
| 47 |
+
(hsW:Function.support (W:ℝ→ℂ)⊆Set.Icc lo hi):
|
| 48 |
+
CanonicalEnergyExists Mcap Fcap c eps (Fcap+1) K W :=by
|
| 49 |
+
obtain ⟨n,cutoff,eta,hn,hpos,hcut,heta,heta1,hetad,hcutL,hcutc,hetac,hrow,hcap,hmargin0,hmargin,hloss0,hloss⟩:=
|
| 50 |
+
actual_rank_top_parameters Mcap Fcap c eps hM hF hc heps
|
| 51 |
+
have he:=rank_energy_exists_all_of_references href hthreshold (Fcap+1) c cutoff eta K
|
| 52 |
+
(by linarith) hc hcut hcutL hcutc heta heta1 hetac hetad n W lo hi hlo hhi hsW
|
| 53 |
+
exact canonical_energy_of_rank n (Fcap+1) c cutoff eta Mcap Fcap c eps K W
|
| 54 |
+
hrow hcap hmargin hloss.le he
|
| 55 |
+
|
| 56 |
+
end SevenEighths.InverseMoment
|
| 57 |
+
|
| 58 |
+
end
|
| 59 |
+
|
| 60 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankExistenceSuccessor.lean
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalRankExistenceData
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalRankFamilyGates
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
open scoped Classical BigOperators SchwartzMap ContDiff
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open MeasureTheory ActualEisensteinCubic CompletedGauss ConcretePrimeRowBridge CanonicalQuadraticSieve
|
| 11 |
+
open CanonicalRowCompletion InverseInitialClippedColumns InverseReflectedPhase InverseTerminalWidths
|
| 12 |
+
open CanonicalCubeSeparation CompletedHeight InverseMomentFirstSecondHeightCost
|
| 13 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 14 |
+
|
| 15 |
+
theorem rank_energy_exists_succ_of_reference
|
| 16 |
+
(n:ℕ)(L cstar cutoff eta:ℝ)(K:ℕ)
|
| 17 |
+
(hL:1≤L)(hcstar:0<cstar)(hcut:0<cutoff)(hcutL:cutoff≤L)
|
| 18 |
+
(hcutc:cutoff≤cstar/200)(heta:0<eta)(heta1:eta≤1)
|
| 19 |
+
(hetac:eta≤cstar/100000)(hetad:eta≤cutoff/32)
|
| 20 |
+
(hIH:∀(W:𝓢(ℝ,ℂ))(lo hi:ℝ),0<lo→0≤hi→
|
| 21 |
+
Function.support (W:ℝ→ℂ)⊆Set.Icc lo hi→RankEnergyExists n L cstar cutoff eta K W)
|
| 22 |
+
(W:𝓢(ℝ,ℂ))(lo hi:ℝ)(hlo:0<lo)(hhi:0≤hi)
|
| 23 |
+
(hsW:Function.support (W:ℝ→ℂ)⊆Set.Icc lo hi)
|
| 24 |
+
(Vlog:𝓢(ℝ,ℂ))(Alog:ℝ)(hbox:∀x,Vlog x≠0→|x|≤Alog)
|
| 25 |
+
(hone:∀x,|x|≤columnWindowRadius lo hi→Vlog x=1)
|
| 26 |
+
(hlarge:∀window:ℝ,∃Zt:ℝ,1<Zt ∧ ∀Z:ℝ,Zt≤Z→
|
| 27 |
+
2≤Z ∧ 2≤Z^eta ∧ Real.exp 1≤Z^eta ∧ 1≤eta*Real.log Z ∧
|
| 28 |
+
hi≤Z^eta ∧ Real.exp Alog≤Z^eta ∧ Real.exp window≤Z^eta):
|
| 29 |
+
RankEnergyExists (n+1) L cstar cutoff eta K W :=by
|
| 30 |
+
have hL0:0≤L:=by linarith
|
| 31 |
+
have heF:0<firstPassEpsilon L eta:=by unfold firstPassEpsilon;positivity
|
| 32 |
+
have hem:0<sourceMassEpsilon L eta:=by unfold sourceMassEpsilon;positivity
|
| 33 |
+
obtain ⟨w11,w12,w21,w22,af1,bf1,af2,bf2,window,bw,ds,ha1,hab1,ha2,hab2,
|
| 34 |
+
hw11,hw12,hw21,hw22,hs11,hs12,hs21,hs22,hbw,hbA,hbexp,hstep⟩:=
|
| 35 |
+
actual_complete_normalized_rank_step lo hi hlo hhi W hsW (W.smooth ⊤) Vlog Alog hbox hone
|
| 36 |
+
L cstar eta eta 1 (sourceMassEpsilon L eta) (sourceMassEpsilon L eta) eta
|
| 37 |
+
hL hcstar heta heta1 hetac heta heta1 hem hem heta K
|
| 38 |
+
obtain ⟨J11,B11,hB11,ih11⟩:=hIH w11 af1 bf1 ha1 (by linarith) (subset_closure.trans hs11)
|
| 39 |
+
obtain ⟨J12,B12,hB12,ih12⟩:=hIH w12 af1 bf1 ha1 (by linarith) (subset_closure.trans hs12)
|
| 40 |
+
obtain ⟨J21,B21,hB21,ih21⟩:=hIH w21 af2 bf2 ha2 (by linarith) (subset_closure.trans hs21)
|
| 41 |
+
obtain ⟨J22,B22,hB22,ih22⟩:=hIH w22 af2 bf2 ha2 (by linarith) (subset_closure.trans hs22)
|
| 42 |
+
let J:=J11+J12+J21+J22
|
| 43 |
+
let dl:=2*(InverseClippingProfiles.momentOrder (firstDegree J)+(volume:Measure ℝ).integrablePower)
|
| 44 |
+
let Jout:=max ds dl
|
| 45 |
+
let B:=1+hi+B11+B12+B21+B22
|
| 46 |
+
have hB:1≤B:=by dsimp [B];linarith
|
| 47 |
+
have hb0:0≤B:=by linarith
|
| 48 |
+
have hhiB:hi≤B:=by dsimp [B];linarith
|
| 49 |
+
have hBB11:B11≤B:=by dsimp [B];linarith
|
| 50 |
+
have hBB12:B12≤B:=by dsimp [B];linarith
|
| 51 |
+
have hBB21:B21≤B:=by dsimp [B];linarith
|
| 52 |
+
have hBB22:B22≤B:=by dsimp [B];linarith
|
| 53 |
+
have hj11:J11≤J:=by dsimp [J];omega
|
| 54 |
+
have hj12:J12≤J:=by dsimp [J];omega
|
| 55 |
+
have hj21:J21≤J:=by dsimp [J];omega
|
| 56 |
+
have hj22:J22≤J:=by dsimp [J];omega
|
| 57 |
+
obtain ⟨Zt,hZt,hlarge⟩:=hlarge window
|
| 58 |
+
refine ⟨Jout,B,hB,?_⟩
|
| 59 |
+
intro q hq
|
| 60 |
+
obtain ⟨C11,Z11,hC11,hZ11,ih11⟩:=ih11 q hq
|
| 61 |
+
obtain ⟨C12,Z12,hC12,hZ12,ih12⟩:=ih12 q hq
|
| 62 |
+
obtain ⟨C21,Z21,hC21,hZ21,ih21⟩:=ih21 q hq
|
| 63 |
+
obtain ⟨C22,Z22,hC22,hZ22,ih22⟩:=ih22 q hq
|
| 64 |
+
obtain ⟨Cs,Cb,Zs,hCs,hCb,hZs,hstep⟩:=hstep (firstPassEpsilon L eta) eta heF heta J q hq
|
| 65 |
+
let A:=C11+C12+C21+C22
|
| 66 |
+
have hA:0≤A:=by dsimp [A];linarith
|
| 67 |
+
have hCA11:C11≤A:=by dsimp [A];linarith
|
| 68 |
+
have hCA12:C12≤A:=by dsimp [A];linarith
|
| 69 |
+
have hCA21:C21≤A:=by dsimp [A];linarith
|
| 70 |
+
have hCA22:C22≤A:=by dsimp [A];linarith
|
| 71 |
+
let C:=(Cs+Cb)*(1+A)
|
| 72 |
+
let Z₀:=Zs+Zt+Z11+Z12+Z21+Z22
|
| 73 |
+
have hC:0<C:=by dsimp [C];positivity
|
| 74 |
+
have hZ₀:1<Z₀:=by dsimp [Z₀];linarith
|
| 75 |
+
refine ⟨C,Z₀,hC,hZ₀,?_⟩
|
| 76 |
+
intro Z hZ D hD σ _ slots hslots lists H a hdis hH hP ha z hz hprod base hbase hperiod
|
| 77 |
+
have hZs':Zs≤Z:=by dsimp [Z₀] at hZ;linarith
|
| 78 |
+
have hZt':Zt≤Z:=by dsimp [Z₀] at hZ;linarith
|
| 79 |
+
have hZ11':Z11≤Z:=by dsimp [Z₀] at hZ;linarith
|
| 80 |
+
have hZ12':Z12≤Z:=by dsimp [Z₀] at hZ;linarith
|
| 81 |
+
have hZ21':Z21≤Z:=by dsimp [Z₀] at hZ;linarith
|
| 82 |
+
have hZ22':Z22≤Z:=by dsimp [Z₀] at hZ;linarith
|
| 83 |
+
obtain ⟨hZ2,h2,hExp,hlog,hhiZ,hAZ,hwin⟩:=hlarge Z hZt'
|
| 84 |
+
have hZ1:1<Z:=by linarith
|
| 85 |
+
have hZ0:0<Z:=by linarith
|
| 86 |
+
have hD11:B11*Z^L≤D:=(mul_le_mul_of_nonneg_right hBB11 (Real.rpow_nonneg hZ0.le _)).trans hD
|
| 87 |
+
have hD12:B12*Z^L≤D:=(mul_le_mul_of_nonneg_right hBB12 (Real.rpow_nonneg hZ0.le _)).trans hD
|
| 88 |
+
have hD21:B21*Z^L≤D:=(mul_le_mul_of_nonneg_right hBB21 (Real.rpow_nonneg hZ0.le _)).trans hD
|
| 89 |
+
have hD22:B22*Z^L≤D:=(mul_le_mul_of_nonneg_right hBB22 (Real.rpow_nonneg hZ0.le _)).trans hD
|
| 90 |
+
have m11:=ih11 Z hZ11' D hD11 slots hslots lists H a hdis hH hP ha z hz hprod base hbase hperiod
|
| 91 |
+
have m12:=ih12 Z hZ12' D hD12 slots hslots lists H a hdis hH hP ha z hz hprod base hbase hperiod
|
| 92 |
+
have m21:=ih21 Z hZ21' D hD21 slots hslots lists H a hdis hH hP ha z hz hprod base hbase hperiod
|
| 93 |
+
have m22:=ih22 Z hZ22' D hD22 slots hslots lists H a hdis hH hP ha z hz hprod base hbase hperiod
|
| 94 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D
|
| 95 |
+
have hF:=InitialMeanSquare.outsideSquarefree_admissible (reflectionExcludedPrimes q) D (reflectionExcludedPrimes_bad q)
|
| 96 |
+
let:∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal:=fun i=>by rw [poolPrimary_span F hF i];infer_instance
|
| 97 |
+
dsimp only [CompletePoolRankMoments] at m11 m12 m21 m22 ⊢
|
| 98 |
+
intro Ψ hΨ m hm N V M Qwidth hN hV hM hQ hMc hFc hmargin hnorm ss hss labels hlabels theta
|
| 99 |
+
have hcap:N+V≤L:=by
|
| 100 |
+
unfold rankTotalCap at hFc
|
| 101 |
+
have hh:0≤15*((n+1:ℕ):ℝ)*eta:=by positivity
|
| 102 |
+
linarith
|
| 103 |
+
have hcm:0≤rankMargin (n+1) cstar eta:=by unfold rankMargin;positivity
|
| 104 |
+
obtain ⟨hNL,hVL,hMF,hQL,hzL,hwidth,hmargin',hmL,hpuncture⟩:=
|
| 105 |
+
actual_rank_state_gates m hm Z N V M Qwidth z (rankMargin (n+1) cstar eta) L
|
| 106 |
+
hZ1 hN hV hM hQ hz hcm hcap hmargin hnorm
|
| 107 |
+
obtain ⟨hΨnorm,hΨperiod⟩:=actual_rank_family_gates q base hbase hperiod Ψ hΨ
|
| 108 |
+
have hDparent:hi*Z^N≤D:=by
|
| 109 |
+
calc
|
| 110 |
+
_≤B*Z^L:=mul_le_mul hhiB (Real.rpow_le_rpow_of_exponent_le hZ1.le hNL)
|
| 111 |
+
(Real.rpow_nonneg hZ0.le _) hb0
|
| 112 |
+
_≤D:=hD
|
| 113 |
+
have hsscard:ss.card≤K:=(Finset.card_le_card hss).trans hslots
|
| 114 |
+
have hssdis:(ss:Set σ).PairwiseDisjoint lists:=by
|
| 115 |
+
intro i hi j hj hij
|
| 116 |
+
exact hdis (hss hi) (hss hj) hij
|
| 117 |
+
have hssH:∀i∈ss,1≤H i:=fun i hi=>hH i (hss hi)
|
| 118 |
+
have hssP:∀i∈ss,∀P∈lists i,(Ideal.absNorm P.val:ℝ)≤H i:=fun i hi=>hP i (hss hi)
|
| 119 |
+
have hssa:∀i∈ss,∀P∈lists i,‖a i P‖≤1:=fun i hi=>ha i (hss hi)
|
| 120 |
+
have hssprod:(∏i∈ss,H i)≤Z^z:=canonical_rank_subslot_cap slots ss H Z z hss hH hprod
|
| 121 |
+
obtain ⟨hsmallM,hsmallF,hsmallc⟩:=actual_rank_successor_caps n L cstar cutoff eta M (N+V)
|
| 122 |
+
(rankMargin (n+1) cstar eta) hMc hFc le_rfl
|
| 123 |
+
have lift (w:𝓢(ℝ,ℂ))(Cw:ℝ)(Jw:ℕ)(hCw:0≤Cw)(hCwA:Cw≤A)(hJw:Jw≤J)
|
| 124 |
+
(mw:CanonicalRankMoments (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 125 |
+
(poolPrimary_good F hF) Finset.univ base slots lists a w Z (rankRowCap n cutoff)
|
| 126 |
+
(rankTotalCap n L eta) z (rankMargin n cstar eta) (rankLoss n eta) Cw K Jw):
|
| 127 |
+
CanonicalRankMoments (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 128 |
+
(poolPrimary_good F hF) Finset.univ base ss lists a w Z (M-3*(cutoff/2)/2)
|
| 129 |
+
(N+V+15*eta) z (rankMargin (n+1) cstar eta-7*eta) (rankLoss n eta) A K J:=by
|
| 130 |
+
apply canonical_rank_subslots (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 131 |
+
(poolPrimary_good F hF) Finset.univ base slots ss lists a w Z _ _ z _ _ A K J hss
|
| 132 |
+
apply canonical_rank_restrict (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 133 |
+
(poolPrimary_good F hF) Finset.univ base slots lists a w Z
|
| 134 |
+
(M-3*(cutoff/2)/2) (rankRowCap n cutoff) (N+V+15*eta) (rankTotalCap n L eta)
|
| 135 |
+
z (rankMargin (n+1) cstar eta-7*eta) (rankMargin n cstar eta) (rankLoss n eta) A K J
|
| 136 |
+
(by linarith) hsmallF hsmallc
|
| 137 |
+
exact canonical_rank_height_constant (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
|
| 138 |
+
(poolPrimary_good F hF) Finset.univ base slots lists a w Z _ _ z _ _ Cw A K Jw J
|
| 139 |
+
hZ0 hCw hCwA hJw mw
|
| 140 |
+
have hechild:0≤rankLoss n eta:=by unfold rankLoss;positivity
|
| 141 |
+
obtain ⟨_,_,hpieta,hmass,hret,hprincipal0,hcost⟩:=actual_step_parameters L eta 0 0 (rankLoss n eta)
|
| 142 |
+
hL0 heta heta1 (by linarith) (by linarith) hechild
|
| 143 |
+
obtain ⟨hprincipal,hFirst,hFinal⟩:=actual_complete_step_cost L eta (rankLoss n eta) hL0 heta heta1 hechild
|
| 144 |
+
have hreserve:cstar/2≤rankMargin (n+1) cstar eta:=by
|
| 145 |
+
unfold rankMargin
|
| 146 |
+
exact le_add_of_nonneg_right (by positivity)
|
| 147 |
+
have hbound:=hstep m hm Z N V M z (rankMargin (n+1) cstar eta) cutoff (8*eta)
|
| 148 |
+
(rankLoss n eta) A (rankLoss n eta+58*eta) (rankLoss n eta+60*eta) theta
|
| 149 |
+
hZs' hZ2 h2 hExp hlog hN hV hM hcap hMF hzL hhiZ hAZ hwin hcut hcutL hcutc hetad hmL hmargin'
|
| 150 |
+
hreserve (by simpa only [hwidth] using hpuncture) (by positivity) hpieta hmass hmass hechild
|
| 151 |
+
(by linarith) hret hprincipal hcost (by linarith) hA
|
| 152 |
+
labels (fun I hI=>⟨⟨(hlabels I hI).1.1,(hlabels I hI).1.2.2⟩,(hlabels I hI).1.2.1,(hlabels I hI).2⟩)
|
| 153 |
+
D hDparent ss hsscard lists H hssdis hssH hssP hssprod base Ψ hΨ hΨnorm hΨperiod a hssa
|
| 154 |
+
(lift w11 C11 J11 hC11.le hCA11 hj11 m11) (lift w12 C12 J12 hC12.le hCA12 hj12 m12)
|
| 155 |
+
(lift w21 C21 J21 hC21.le hCA21 hj21 m21) (lift w22 C22 J22 hC22.le hCA22 hj22 m22)
|
| 156 |
+
have hnextLoss:rankLoss n eta+62*eta=rankLoss (n+1) eta:=by unfold rankLoss;push_cast;ring
|
| 157 |
+
have hlongexp:(rankLoss n eta+60*eta)+2*L*firstPassEpsilon L eta+eta≤rankLoss (n+1) eta:=by
|
| 158 |
+
simpa only [hnextLoss] using hFinal
|
| 159 |
+
have hloss0:0≤rankLoss (n+1) eta:=by unfold rankLoss;positivity
|
| 160 |
+
have hlong:Cb*(1+A)*(1+‖theta‖)^dl*
|
| 161 |
+
Z^(N+V+(rankLoss n eta+60*eta)+2*L*firstPassEpsilon L eta+eta)≤
|
| 162 |
+
Cb*(1+A)*(1+‖theta‖)^dl*Z^(N+V+rankLoss (n+1) eta):=by
|
| 163 |
+
apply mul_le_mul_of_nonneg_left _ (by positivity)
|
| 164 |
+
apply Real.rpow_le_rpow_of_exponent_le hZ1.le
|
| 165 |
+
linarith
|
| 166 |
+
have hh:=hbound.trans (add_le_add le_rfl hlong)
|
| 167 |
+
have hmrg:=actual_complete_height_merge ds dl Z (N+V) cstar (rankLoss (n+1) eta) Cs Cb A theta
|
| 168 |
+
hZ1.le hcstar.le hloss0 hCs.le hCb hA
|
| 169 |
+
have hpow:(1+‖theta‖)^Jout≤(1+‖theta‖)^(2*Jout):=
|
| 170 |
+
pow_le_pow_right₀ (by linarith [norm_nonneg theta]) (by omega)
|
| 171 |
+
have hf:childLogTest W theta=normTwistedSource W theta:=by
|
| 172 |
+
funext y
|
| 173 |
+
simp only [childLogTest,normTwistedSource,mul_comm]
|
| 174 |
+
rw [hf]
|
| 175 |
+
apply (hh.trans hmrg).trans
|
| 176 |
+
dsimp only [C,Jout]
|
| 177 |
+
have hx:=mul_le_mul_of_nonneg_right
|
| 178 |
+
(mul_le_mul_of_nonneg_left hpow (show 0≤(Cs+Cb)*(1+A) by positivity))
|
| 179 |
+
(Real.rpow_nonneg hZ0.le (N+V+rankLoss (n+1) eta))
|
| 180 |
+
convert hx using 1 ; ring
|
| 181 |
+
|
| 182 |
+
end SevenEighths.InverseMoment
|
| 183 |
+
|
| 184 |
+
end
|
| 185 |
+
|
| 186 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankFamilyGates.lean
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalRankPuncture
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalRankMonotone
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
open scoped Classical BigOperators SchwartzMap
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open ActualEisensteinCubic CanonicalCoefficientClass InverseTerminalWidths
|
| 11 |
+
open ConcretePrimeRowBridge CompletedGauss
|
| 12 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 13 |
+
|
| 14 |
+
theorem actual_rank_family_period (q:ℕ)(base Ψ:O→*ℂ)
|
| 15 |
+
(hbase:FactorsModulo (fixedBaseConductor q) base)
|
| 16 |
+
(hΨ:IsBaseRayTwist base Ψ):
|
| 17 |
+
FactorsModulo (fixedBaseConductor q) Ψ := by
|
| 18 |
+
intro x y hxy
|
| 19 |
+
rcases hΨ with rfl|⟨χ,rfl⟩
|
| 20 |
+
· exact hbase x y hxy
|
| 21 |
+
· simp only [MonoidHom.mul_apply]
|
| 22 |
+
rw [hbase x y hxy]
|
| 23 |
+
congr 1
|
| 24 |
+
exact RayFourExpansion.rayCharacter_eq_of_mod_four χ x y
|
| 25 |
+
(Ideal.mem_span_singleton.mp (Ideal.mul_le_right hxy))
|
| 26 |
+
|
| 27 |
+
theorem actual_rank_family_gates (q:ℕ)(base:O→*ℂ)
|
| 28 |
+
(hbase:∀x,‖base x‖≤1)(hperiod:FactorsModulo (fixedBaseConductor q) base):
|
| 29 |
+
∀Ψ:O→*ℂ,IsBaseRayTwist base Ψ→
|
| 30 |
+
(∀x,‖Ψ x‖≤1) ∧ FactorsModulo (fixedBaseConductor q) Ψ := by
|
| 31 |
+
intro Ψ hΨ
|
| 32 |
+
exact ⟨hΨ.norm_le hbase,actual_rank_family_period q base Ψ hperiod hΨ⟩
|
| 33 |
+
|
| 34 |
+
theorem actual_rank_norm_width (m:O)(Z Q:ℝ)(hZ:1<Z)
|
| 35 |
+
(hn:‖ConcreteTraceCRT.eisEmbedding m‖^2=Z^Q):
|
| 36 |
+
normWidth Z (Ideal.span {m})=Q := by
|
| 37 |
+
rw [eisEmbedding_norm_sq_eq_absNorm_span] at hn
|
| 38 |
+
rw [normWidth,hn,Real.logb_rpow (zero_lt_one.trans hZ) (ne_of_gt hZ)]
|
| 39 |
+
|
| 40 |
+
theorem actual_rank_state_gates (m:O)(hm:m≠0)(Z N V M Q z c L:ℝ)
|
| 41 |
+
(hZ:1<Z)(hN:0≤N)(hV:0≤V)(hM:0≤M)(hQ:0≤Q)(hz:0≤z)(hc:0≤c)
|
| 42 |
+
(hcap:N+V≤L)(hmargin:CanonicalMargins (N+V) M Q z c)
|
| 43 |
+
(hn:‖ConcreteTraceCRT.eisEmbedding m‖^2=Z^Q):
|
| 44 |
+
N≤L ∧ V≤L ∧ M≤N+V ∧ Q≤L ∧ z≤L ∧
|
| 45 |
+
normWidth Z (Ideal.span {m})=Q ∧
|
| 46 |
+
CanonicalMargins (N+V) M (normWidth Z (Ideal.span {m})) z c ∧
|
| 47 |
+
(Ideal.absNorm (Ideal.span {m}:Ideal O):ℝ)≤Z^L ∧
|
| 48 |
+
(Ideal.absNorm (Ideal.span {m}:Ideal O).radical:ℝ)≤Z^Q := by
|
| 49 |
+
have hfirst:=hmargin.1
|
| 50 |
+
have hQcap:Q≤L:=by linarith
|
| 51 |
+
have he:=actual_rank_norm_width m Z Q hZ hn
|
| 52 |
+
refine ⟨by linarith,by linarith,by linarith,hQcap,by linarith,he,?_,?_,?_⟩
|
| 53 |
+
· rwa [he]
|
| 54 |
+
· rw [eisEmbedding_norm_sq_eq_absNorm_span] at hn
|
| 55 |
+
rw [hn]
|
| 56 |
+
exact Real.rpow_le_rpow_of_exponent_le hZ.le hQcap
|
| 57 |
+
· simpa only [he] using actual_rank_parent_puncture m hm Z hZ
|
| 58 |
+
|
| 59 |
+
theorem canonical_rank_subslots {ι σ:Type}[DecidableEq ι][DecidableEq σ]
|
| 60 |
+
(p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 61 |
+
(hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 62 |
+
(hg:∀i,goodLambda∉Ideal.span {p i})
|
| 63 |
+
(pool:Finset ι)(base:O→*ℂ)(slots subslots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 64 |
+
(W:𝓢(ℝ,ℂ))(Z M F z c eps A:ℝ)(K degree:ℕ)(hsub:subslots⊆slots)
|
| 65 |
+
(h:CanonicalRankMoments p hp hcop hg pool base slots lists a W Z M F z c eps A K degree):
|
| 66 |
+
CanonicalRankMoments p hp hcop hg pool base subslots lists a W Z M F z c eps A K degree := by
|
| 67 |
+
intro Ψ hΨ m hm N V Mr Qwidth hN hV hM hQ hMc hFc hmargin hnorm ss hss labels hlabels s
|
| 68 |
+
exact h Ψ hΨ m hm N V Mr Qwidth hN hV hM hQ hMc hFc hmargin hnorm ss
|
| 69 |
+
(hss.trans hsub) labels hlabels s
|
| 70 |
+
|
| 71 |
+
theorem canonical_rank_subslot_product {σ:Type*}[DecidableEq σ]
|
| 72 |
+
(slots subslots:Finset σ)(H:σ→ℝ)(hsub:subslots⊆slots)
|
| 73 |
+
(hH:∀i∈slots,1≤H i):
|
| 74 |
+
(∏i∈subslots,H i)≤∏i∈slots,H i :=
|
| 75 |
+
Finset.prod_le_prod_of_subset_of_one_le₀ hsub
|
| 76 |
+
(fun i hi=>(zero_le_one: (0:ℝ)≤1).trans (hH i (hsub hi)))
|
| 77 |
+
(fun i hi _=>hH i hi)
|
| 78 |
+
|
| 79 |
+
theorem canonical_rank_subslot_cap {σ:Type*}[DecidableEq σ]
|
| 80 |
+
(slots subslots:Finset σ)(H:σ→ℝ)(Z z:ℝ)(hsub:subslots⊆slots)
|
| 81 |
+
(hH:∀i∈slots,1≤H i)(hcap:(∏i∈slots,H i)≤Z^z):
|
| 82 |
+
(∏i∈subslots,H i)≤Z^z :=
|
| 83 |
+
(canonical_rank_subslot_product slots subslots H hsub hH).trans hcap
|
| 84 |
+
|
| 85 |
+
end SevenEighths.InverseMoment
|
| 86 |
+
|
| 87 |
+
end
|
| 88 |
+
|
| 89 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankMoments.lean
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalChildSupport
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.FirstLabelCellStep
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
open scoped Classical BigOperators SchwartzMap
|
| 8 |
+
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open ActualEisensteinCubic FirstPassCubeLabels SecondPassArithmetic CanonicalQuadraticSieve
|
| 11 |
+
open InverseInitialClippedColumns InverseSecondFibers InverseSecondSourceBlocks
|
| 12 |
+
open CanonicalCoefficientClass InverseMomentFirstLabelCell InverseMomentFirstChildWindows InverseFirstGlobalCaps
|
| 13 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 14 |
+
variable {ι σ:Type}[DecidableEq ι][DecidableEq σ]
|
| 15 |
+
variable (p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 16 |
+
variable (hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 17 |
+
variable (hg:∀i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i})
|
| 18 |
+
|
| 19 |
+
def CanonicalRankMoments (pool:Finset ι)(base:O→*ℂ)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 20 |
+
(W:𝓢(ℝ,ℂ))(Z Mmax Fcap z c eps A:ℝ)(K degree:ℕ):Prop :=
|
| 21 |
+
∀(Ψ:O→*ℂ),IsBaseRayTwist base Ψ→∀(m:O),m≠0→∀N V M Qwidth:ℝ,
|
| 22 |
+
0≤N→0≤V→0≤M→0≤Qwidth→M≤Mmax→N+V≤Fcap→
|
| 23 |
+
CanonicalMargins (N+V) M Qwidth z c→
|
| 24 |
+
‖ConcreteTraceCRT.eisEmbedding m‖^2=Z^Qwidth→
|
| 25 |
+
∀(subslots:Finset σ),subslots⊆slots→∀labels:Finset (Ideal O),
|
| 26 |
+
(∀I∈labels,Admissible I ∧ (Ideal.absNorm I:ℝ)≤Z^V)→∀s:ℝ,
|
| 27 |
+
normalizedColumnEnergy p hp hcop hg pool Ψ m subslots lists a labels
|
| 28 |
+
(nonzeroChildFrequencyBall 1 (Z^M)) (secondLabelWeight K) (childLogTest W s) (Z^N) Z (N+V)≤
|
| 29 |
+
A*Z^(N+V+eps)*(1+‖s‖)^(2*degree)
|
| 30 |
+
|
| 31 |
+
include hp in
|
| 32 |
+
theorem canonical_rank_moments_children
|
| 33 |
+
(hc:∀i,ringChar (O⧸Ideal.span {p i})≠2)
|
| 34 |
+
(hpr:∀i,ConcretePrimeRowBridge.goodLambda^2∣p i-1)
|
| 35 |
+
(pool:Finset ι)(Q:Finset (ι→₀ℕ))(k:SourceIndex)(l j:ℕ)(negative:Bool)
|
| 36 |
+
(base Ψ:O→*ℂ)(hΨ:IsBaseRayTwist base Ψ)(m:O)(hm:m≠0)
|
| 37 |
+
(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)(ω₁ ω₂:𝓢(ℝ,ℂ))
|
| 38 |
+
(Z M r ell V eta tau window b cutoff Qwidth z c eps A:ℝ)(K degree:ℕ)
|
| 39 |
+
(hZ:1<Z)(heta:0≤eta)(hbin:2≤Z^eta)(hell:0≤ell)(hV:0≤V)
|
| 40 |
+
(hb:1≤b)(hbt:b≤Z^(6*eta))(hwindow:Real.exp window≤Z^(4*eta))
|
| 41 |
+
(_hd:0<cutoff)(hterminal:cutoff≤ell+V)(hsmall:eta≤cutoff/16)
|
| 42 |
+
(hparent:CanonicalMargins (r+3*ell+V) M Qwidth z c)
|
| 43 |
+
(hpuncture:(Ideal.absNorm (Ideal.span {m}:Ideal O).radical:ℝ)≤Z^Qwidth)
|
| 44 |
+
(hQ:∀v∈Q,‖ConcreteTraceCRT.eisEmbedding (primeProduct p v.support v)‖^2≤Z^(ell+eta))
|
| 45 |
+
(h₁:CanonicalRankMoments p hp hcop hg pool base slots lists a ω₁ Z (M-3*cutoff/2) (r+3*ell+V+15*eta) z (c-7*eta) eps A K degree)
|
| 46 |
+
(h₂:CanonicalRankMoments p hp hcop hg pool base slots lists a ω₂ Z (M-3*cutoff/2) (r+3*ell+V+15*eta) z (c-7*eta) eps A K degree):
|
| 47 |
+
ChildBounds p hp hcop hg pool Q k l j negative Ψ m slots lists a ω₁ ω₂
|
| 48 |
+
Z M r ell V eta tau window b eps A K degree :=by
|
| 49 |
+
intro ray core assigned hass
|
| 50 |
+
let S:=source p pool Q k l j negative assigned lists Z M r ell V eta tau window b
|
| 51 |
+
let Ψ₀:=firstCoreTwist negative (if negative then ray.1 else ray.2) Ψ core
|
| 52 |
+
have hbase:IsBaseRayTwist base Ψ₀:=hΨ.firstCore _ _ _
|
| 53 |
+
have hstate:=source_state_bounds p hp pool Q k l j negative assigned lists Z M r ell V eta tau window b cutoff
|
| 54 |
+
hZ heta hbin hell hV hb hbt hwindow hterminal hsmall hQ
|
| 55 |
+
have hmargin:=source_child_margins p hp hpr pool Q k l j negative assigned lists Z M r ell V eta tau window b
|
| 56 |
+
m hm Qwidth z c hZ heta hbin hV hparent hpuncture hQ
|
| 57 |
+
have hlabels:=source_labels p hp pool Q k l j negative assigned lists Z M r ell V eta tau window b hZ heta hbin hQ
|
| 58 |
+
constructor
|
| 59 |
+
· intro zz d hdcell s J hJ γ hγ
|
| 60 |
+
have st:=hstate d hdcell
|
| 61 |
+
have mg:=hmargin d γ hγ
|
| 62 |
+
apply h₁ (secondRayMinus Ψ₀ zz) (hbase.secondMinus zz) (actualSecondInheritedRadicalPuncture m γ) mg.1
|
| 63 |
+
(max 0 (secondCellColumnExponent Z (columnScale Z r k l negative) d))
|
| 64 |
+
(actualCellLabelExponent Z (exponent Z (k 2)) (exponent Z j) eta d)
|
| 65 |
+
(actualCellRowExponent Z M ell (columnA Z k negative) (exponent Z l) V (exponent Z j) eta d)
|
| 66 |
+
(actualSecondPunctureWidth Z m γ) st.1 st.2.1 st.2.2.2.1 mg.2.1 (by linarith [st.2.2.2.2]) st.2.2.1 mg.2.2.2 mg.2.2.1
|
| 67 |
+
((slots\assigned)\J) (Finset.sdiff_subset.trans Finset.sdiff_subset)
|
| 68 |
+
((actualCellLabels p S d).filter Squarefree) ?_ s
|
| 69 |
+
intro I hI
|
| 70 |
+
exact ⟨actual_cell_labels_admissible p hp hg hc S d I hI,(hlabels.2 d I hI).2.2⟩
|
| 71 |
+
· intro zz d hdcell s J hJ γ hγ
|
| 72 |
+
have st:=hstate d hdcell
|
| 73 |
+
have mg:=hmargin d γ hγ
|
| 74 |
+
apply h₂ (secondRayPlus Ψ₀ zz) (hbase.secondPlus zz) (actualSecondInheritedRadicalPuncture m γ) mg.1
|
| 75 |
+
(max 0 (secondCellColumnExponent Z (columnScale Z r k l negative) d))
|
| 76 |
+
(actualCellLabelExponent Z (exponent Z (k 2)) (exponent Z j) eta d)
|
| 77 |
+
(actualCellRowExponent Z M ell (columnA Z k negative) (exponent Z l) V (exponent Z j) eta d)
|
| 78 |
+
(actualSecondPunctureWidth Z m γ) st.1 st.2.1 st.2.2.2.1 mg.2.1 (by linarith [st.2.2.2.2]) st.2.2.1 mg.2.2.2 mg.2.2.1
|
| 79 |
+
((slots\assigned)\J) (Finset.sdiff_subset.trans Finset.sdiff_subset)
|
| 80 |
+
((actualCellLabels p S d).filter Squarefree) ?_ s
|
| 81 |
+
intro I hI
|
| 82 |
+
exact ⟨actual_cell_labels_admissible p hp hg hc S d I hI,(hlabels.2 d I hI).2.2⟩
|
| 83 |
+
|
| 84 |
+
end SevenEighths.InverseMoment
|
| 85 |
+
|
| 86 |
+
end
|
| 87 |
+
|
| 88 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankMonotone.lean
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalRankMoments
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
open scoped Classical BigOperators SchwartzMap
|
| 7 |
+
|
| 8 |
+
namespace SevenEighths.InverseMoment
|
| 9 |
+
open ActualEisensteinCubic CanonicalQuadraticSieve InverseInitialClippedColumns
|
| 10 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 11 |
+
variable {ι σ:Type}[DecidableEq ι][DecidableEq σ]
|
| 12 |
+
variable (p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 13 |
+
variable (hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 14 |
+
variable (hg:∀i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i})
|
| 15 |
+
|
| 16 |
+
omit [DecidableEq σ] in
|
| 17 |
+
theorem canonical_rank_negative (pool:Finset ι)(base:O→*ℂ)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 18 |
+
(W:𝓢(ℝ,ℂ))(Z Mmax Fcap z c eps A:ℝ)(K degree:ℕ)(hM:Mmax<0):
|
| 19 |
+
CanonicalRankMoments p hp hcop hg pool base slots lists a W Z Mmax Fcap z c eps A K degree :=by
|
| 20 |
+
intro Ψ hΨ m hm N V M Qwidth hN hV hM0 hQ hMc
|
| 21 |
+
exfalso
|
| 22 |
+
linarith
|
| 23 |
+
|
| 24 |
+
omit [DecidableEq σ] in
|
| 25 |
+
theorem canonical_rank_restrict (pool:Finset ι)(base:O→*ℂ)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 26 |
+
(W:𝓢(ℝ,ℂ))(Z M₁ M₂ F₁ F₂ z c₁ c₂ eps A:ℝ)(K degree:ℕ)
|
| 27 |
+
(hM:M₁≤M₂)(hF:F₁≤F₂)(hc:c₂≤c₁)
|
| 28 |
+
(h:CanonicalRankMoments p hp hcop hg pool base slots lists a W Z M₂ F₂ z c₂ eps A K degree):
|
| 29 |
+
CanonicalRankMoments p hp hcop hg pool base slots lists a W Z M₁ F₁ z c₁ eps A K degree :=by
|
| 30 |
+
intro Ψ hΨ m hm N V M Qwidth hN hV hM0 hQ hMc hFc hmargin hnorm ss hss labels hlabels s
|
| 31 |
+
have hmarg:CanonicalMargins (N+V) M Qwidth z c₂:=by
|
| 32 |
+
unfold CanonicalMargins at *
|
| 33 |
+
constructor <;> linarith [hmargin.1,hmargin.2]
|
| 34 |
+
exact h Ψ hΨ m hm N V M Qwidth hN hV hM0 hQ (hMc.trans hM) (hFc.trans hF) hmarg hnorm ss hss labels hlabels s
|
| 35 |
+
|
| 36 |
+
omit [DecidableEq σ] in
|
| 37 |
+
theorem canonical_rank_height_constant (pool:Finset ι)(base:O→*ℂ)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 38 |
+
(W:𝓢(ℝ,ℂ))(Z M F z c eps A B:ℝ)(K degree J:ℕ)
|
| 39 |
+
(hZ:0<Z)(hA:0≤A)(hAB:A≤B)(hJ:degree≤J)
|
| 40 |
+
(h:CanonicalRankMoments p hp hcop hg pool base slots lists a W Z M F z c eps A K degree):
|
| 41 |
+
CanonicalRankMoments p hp hcop hg pool base slots lists a W Z M F z c eps B K J :=by
|
| 42 |
+
intro Ψ hΨ m hm N V Mr Qwidth hN hV hM0 hQ hMc hFc hmargin hnorm ss hss labels hlabels s
|
| 43 |
+
apply (h Ψ hΨ m hm N V Mr Qwidth hN hV hM0 hQ hMc hFc hmargin hnorm ss hss labels hlabels s).trans
|
| 44 |
+
have hB:0≤B:=hA.trans hAB
|
| 45 |
+
apply mul_le_mul
|
| 46 |
+
· exact mul_le_mul_of_nonneg_right hAB (Real.rpow_nonneg hZ.le _)
|
| 47 |
+
· exact pow_le_pow_right₀ (by linarith [norm_nonneg s]) (Nat.mul_le_mul_left 2 hJ)
|
| 48 |
+
· positivity
|
| 49 |
+
· positivity
|
| 50 |
+
|
| 51 |
+
end SevenEighths.InverseMoment
|
| 52 |
+
|
| 53 |
+
end
|
| 54 |
+
|
| 55 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalRankPuncture.lean
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalCompleteRankNormalized
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
|
| 7 |
+
namespace SevenEighths.InverseMoment
|
| 8 |
+
open ActualEisensteinCubic InverseTerminalWidths
|
| 9 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 10 |
+
|
| 11 |
+
theorem actual_rank_parent_puncture (m:O)(hm:m≠0)(Z:ℝ)(hZ:1<Z):
|
| 12 |
+
(Ideal.absNorm (Ideal.span {m}:Ideal O).radical:ℝ)≤Z^(normWidth Z (Ideal.span {m})) :=by
|
| 13 |
+
have hi:(Ideal.span {m}:Ideal O)≠0:=Ideal.span_singleton_eq_bot.not.mpr hm
|
| 14 |
+
have hn:0<(Ideal.absNorm (Ideal.span {m}:Ideal O):ℝ):=actual_ideal_norm_pos _ hi
|
| 15 |
+
have hle:Ideal.absNorm (Ideal.span {m}:Ideal O).radical≤Ideal.absNorm (Ideal.span {m}:Ideal O):=
|
| 16 |
+
Nat.le_of_dvd (Nat.pos_iff_ne_zero.mpr (Ideal.absNorm_eq_zero_iff.not.mpr hi))
|
| 17 |
+
(Ideal.absNorm_dvd_absNorm_of_le Ideal.le_radical)
|
| 18 |
+
unfold normWidth
|
| 19 |
+
rw [Real.rpow_logb (by linarith:0<Z) (ne_of_gt hZ) hn]
|
| 20 |
+
exact_mod_cast hle
|
| 21 |
+
|
| 22 |
+
end SevenEighths.InverseMoment
|
| 23 |
+
|
| 24 |
+
end
|
| 25 |
+
|
| 26 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalReopeningHeight.lean
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.DescentHeight
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.CanonicalLongSource
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
open scoped Classical BigOperators SchwartzMap FourierTransform ContDiff
|
| 8 |
+
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open MeasureTheory CanonicalCubeSeparation FourierBridge JointLogSeparation CompletedHeight
|
| 11 |
+
|
| 12 |
+
theorem reopening_coefficient_twist (W:ℝ→ℂ)(a b:ℝ)(ha:0<a)
|
| 13 |
+
(hs:Function.support W⊆Set.Icc a b)(hW:ContDiff ℝ ∞ W)(theta:ℝ)
|
| 14 |
+
(hT:ContDiff ℝ ∞ (normTwistedSource W theta)):
|
| 15 |
+
reopeningCoefficient (normTwistedSource W theta) a b ha
|
| 16 |
+
((normTwistedSource_support W theta).trans hs) hT=
|
| 17 |
+
𝓕 (frequencyTwist (sourceLogProfile W a b ha hs hW) theta) :=by
|
| 18 |
+
unfold reopeningCoefficient
|
| 19 |
+
congr 1
|
| 20 |
+
ext x
|
| 21 |
+
simp only [sourceLogProfile_apply,frequencyTwist_apply,normTwistedSource,Real.log_exp]
|
| 22 |
+
|
| 23 |
+
theorem reopening_twisted_moment (W:ℝ→ℂ)(a b:ℝ)(ha:0<a)
|
| 24 |
+
(hs:Function.support W⊆Set.Icc a b)(hW:ContDiff ℝ ∞ W)(J:ℕ):
|
| 25 |
+
∃C:ℝ,0≤C ∧ ∀theta:ℝ,∀hT:ContDiff ℝ ∞ (normTwistedSource W theta),
|
| 26 |
+
(∫ξ:ℝ,‖reopeningCoefficient (normTwistedSource W theta) a b ha
|
| 27 |
+
((normTwistedSource_support W theta).trans hs) hT ξ‖*(1+|ξ|)^J)≤
|
| 28 |
+
C*(1+‖theta‖)^(J+(volume:Measure ℝ).integrablePower) :=by
|
| 29 |
+
obtain ⟨C,hC,he⟩:=frequencyTwist_fourier_moment J (sourceLogProfile W a b ha hs hW)
|
| 30 |
+
refine ⟨C,hC,?_⟩
|
| 31 |
+
intro theta hT
|
| 32 |
+
rw [reopening_coefficient_twist W a b ha hs hW theta hT]
|
| 33 |
+
simpa only [Real.norm_eq_abs,mul_comm] using he theta
|
| 34 |
+
|
| 35 |
+
theorem reopening_twisted_moment_squared (W:ℝ→ℂ)(a b:ℝ)(ha:0<a)
|
| 36 |
+
(hs:Function.support W⊆Set.Icc a b)(hW:ContDiff ℝ ∞ W)(J:ℕ):
|
| 37 |
+
∃C:ℝ,0≤C ∧ ∀theta:ℝ,∀hT:ContDiff ℝ ∞ (normTwistedSource W theta),
|
| 38 |
+
(∫ξ:ℝ,‖reopeningCoefficient (normTwistedSource W theta) a b ha
|
| 39 |
+
((normTwistedSource_support W theta).trans hs) hT ξ‖*(1+|ξ|)^J)^2≤
|
| 40 |
+
C*(1+‖theta‖)^(2*(J+(volume:Measure ℝ).integrablePower)) :=by
|
| 41 |
+
obtain ⟨C,hC,he⟩:=reopening_twisted_moment W a b ha hs hW J
|
| 42 |
+
refine ⟨C^2,sq_nonneg _,?_⟩
|
| 43 |
+
intro theta hT
|
| 44 |
+
have hh:=pow_le_pow_left₀ (integral_nonneg (fun ξ=>by positivity)) (he theta hT) 2
|
| 45 |
+
simpa only [mul_pow,←pow_mul,Nat.mul_comm] using hh
|
| 46 |
+
|
| 47 |
+
end SevenEighths.InverseMoment
|
| 48 |
+
|
| 49 |
+
end
|
| 50 |
+
|
| 51 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/CanonicalShortFinite.lean
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Inversion.CanonicalShortAttachment
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Inversion.ReflectedShortNormalizedUniformDegree
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
|
| 8 |
+
open scoped BigOperators Classical ContDiff
|
| 9 |
+
namespace SevenEighths.InverseCanonicalShortAttachment
|
| 10 |
+
open ActualEisensteinCubic CompletedGauss CanonicalRowCompletion ConcretePrimeRowBridge
|
| 11 |
+
open CanonicalQuadraticSieve InverseMoment InverseReflectedPhase InverseTerminalWidths CompletedHeight
|
| 12 |
+
local notation "Eis"=>ActualEisensteinCubic.O
|
| 13 |
+
universe u v
|
| 14 |
+
theorem actual_complete_short_finite_uniform_degree
|
| 15 |
+
(lo hi : ℝ) (hlo : 0<lo) (W : ℝ→ℂ)
|
| 16 |
+
(hWs : Function.support W⊆Set.Icc lo hi) (hW : ContDiff ℝ ∞ W)
|
| 17 |
+
(L cstar eta : ℝ) (hL : 0≤L) (hcstar : 0<cstar) (heta : 0<eta)
|
| 18 |
+
(heta1 : eta≤1) (hetac : eta≤cstar/100000) (rmax K : ℕ) :
|
| 19 |
+
∃ (degree : ℕ), ∀ (q:ℕ)(_hq:q≠0), ∃ (C Z₀ : ℝ),0<C ∧ 1<Z₀ ∧
|
| 20 |
+
∀ {σ : Type v} [DecidableEq σ],
|
| 21 |
+
∀ (m : Eis),m≠0 → ∀ (Z N V M z₀ margin hcut d : ℝ),
|
| 22 |
+
Z₀≤Z → 0≤N → 0≤V → 0≤M → M≤L → V≤L → z₀≤L → 0≤hcut → hcut≤L →
|
| 23 |
+
(Ideal.absNorm (Ideal.span {m}):ℝ)≤Z^L →
|
| 24 |
+
CanonicalMargins (N+V) M (normWidth Z (Ideal.span {m})) z₀ margin → cstar/2≤margin →
|
| 25 |
+
V≤d → hcut≤d+eta → d≤cstar/200 →
|
| 26 |
+
∀ (labels : Finset (Ideal Eis)),
|
| 27 |
+
(∀f∈labels,Supported f ∧ Squarefree f ∧ (Ideal.absNorm f:ℝ)≤Z^V) →
|
| 28 |
+
∀ (T : Finset Eis),(∀k∈T,k≠0 ∧ (Ideal.absNorm (Ideal.span {k}):ℝ)≤Z^M) →
|
| 29 |
+
∀ D : ℕ,hi*Z^N≤D → ∀ slots : Finset σ,slots.card≤rmax →
|
| 30 |
+
∀ (lists : σ→Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)))
|
| 31 |
+
(H : σ→ℝ),
|
| 32 |
+
(slots:Set σ).Pairwise (fun j k=>Disjoint (lists j) (lists k)) →
|
| 33 |
+
(∀j∈slots,1≤H j) → (∀j∈slots,∀i∈lists j,(Ideal.absNorm i.val:ℝ)≤H j) →
|
| 34 |
+
(∏j∈slots,H j)≤Z^z₀ →
|
| 35 |
+
∀ (Ψ : Eis→*ℂ),(∀n,‖Ψ n‖≤1) →
|
| 36 |
+
CanonicalCoefficientClass.FactorsModulo (CanonicalCoefficientClass.fixedBaseConductor q) Ψ →
|
| 37 |
+
∀ (θ : ℝ)
|
| 38 |
+
(a : σ→primePool (InitialMeanSquare.outsideSquarefreeIdeals (reflectionExcludedPrimes q) D)→ℂ),
|
| 39 |
+
(∀j∈slots,∀i∈lists j,‖a j i‖≤1) →
|
| 40 |
+
let S:=reflectionExcludedPrimes q
|
| 41 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 42 |
+
let mark:=indexedIdealMark (fun i:primePool F=>i.val) slots lists a
|
| 43 |
+
Z^(-V)*(∑f∈labels,secondLabelWeight K f*∑k∈T,
|
| 44 |
+
‖markedShortCompletedSum (rowTwist Ψ (m*excludedGenerator S) (idealGenerator f) k)
|
| 45 |
+
(normTwistedSource W θ) (Z^N) (Z^hcut) mark‖^2)≤
|
| 46 |
+
C*(1+‖θ‖)^degree*Z^(N+V-cstar/256) := by
|
| 47 |
+
obtain ⟨degree,hu⟩:=InverseShortCanonicalNormalization.canonical_short_normalized_energy_uniform_degree
|
| 48 |
+
lo hi hlo W hWs hW L cstar eta hL hcstar heta heta1 hetac rmax K
|
| 49 |
+
refine ⟨degree,?_⟩
|
| 50 |
+
intro q hq
|
| 51 |
+
obtain ⟨C,Z₀,hC,hZ₀,he⟩:=hu q hq
|
| 52 |
+
refine ⟨C,Z₀,hC,hZ₀,?_⟩
|
| 53 |
+
intro σ _ m hm Z N V M z₀ margin hcut d hZ hN hV hM hMc hVc hzc hcut0 hcutc
|
| 54 |
+
hRn hmargin hreserve hVd hcutd hd labels hlabels T hT D hD slots hcard lists H hdis hH1 hH hprod
|
| 55 |
+
Ψ hΨ hperiod θ a ha
|
| 56 |
+
dsimp only
|
| 57 |
+
let S:=reflectionExcludedPrimes q
|
| 58 |
+
let F:=InitialMeanSquare.outsideSquarefreeIdeals S D
|
| 59 |
+
have hF : ∀I∈F,Admissible I:=InitialMeanSquare.outsideSquarefree_admissible S D (reflectionExcludedPrimes_bad q)
|
| 60 |
+
let ilists:slots→Finset (Ideal Eis):=fun j=>idealLists F lists j.val
|
| 61 |
+
let iw:∀j,ilists j→ℂ:=fun j=>idealWeights F lists a j.val
|
| 62 |
+
have hp (j:slots) (P:Ideal Eis) (hP:P∈ilists j) := idealLists_prime_data F hF lists j.val P hP
|
| 63 |
+
have hcap : ∀j:slots,∀P∈ilists j,(Ideal.absNorm P:ℝ)≤H j.val := by
|
| 64 |
+
intro j P hP
|
| 65 |
+
obtain ⟨i,hi,rfl⟩:=Finset.mem_image.mp hP
|
| 66 |
+
exact hH j.val j.property i hi
|
| 67 |
+
have hw : ∀j:slots,∀P:ilists j,‖iw j P‖≤1 := by
|
| 68 |
+
intro j P
|
| 69 |
+
obtain ⟨i,hi,hh⟩:=Finset.mem_image.mp P.property
|
| 70 |
+
change ‖transportCoeff F a j.val P.val‖≤1
|
| 71 |
+
rw [←hh,transportCoeff_val]
|
| 72 |
+
exact ha j.val j.property i hi
|
| 73 |
+
have henergy:=he (σ:=slots) m hm Z N V M z₀ margin hcut d hZ hN hV hM hMc hVc hzc hcut0 hcutc
|
| 74 |
+
hRn hmargin hreserve hVd hcutd hd labels (fun f hf=>(hlabels f hf).2) T hT (by simpa using hcard)
|
| 75 |
+
ilists (fun j:slots=>H j.val) (idealLists_disjoint F slots lists hdis)
|
| 76 |
+
(fun j P hP=>(hp j P hP).1) (fun j P hP=>(hp j P hP).2.1)
|
| 77 |
+
(fun j P hP=>(hp j P hP).2.2.1) (fun j P hP=>(hp j P hP).2.2.2)
|
| 78 |
+
(fun j=>hH1 j.val j.property) hcap (by simpa only [Finset.prod_coe_sort] using hprod)
|
| 79 |
+
Ψ hΨ hperiod θ iw hw
|
| 80 |
+
have hz:0<Z:=zero_lt_one.trans (lt_of_lt_of_le hZ₀ hZ)
|
| 81 |
+
have hn:‖((Z^(-(N+V)/2):ℝ):ℂ)*((Real.sqrt (Z^N):ℝ):ℂ)‖^2=Z^(-V) := by
|
| 82 |
+
rw [norm_mul,mul_pow,Complex.norm_real,Real.norm_eq_abs,
|
| 83 |
+
abs_of_pos (Real.rpow_pos_of_pos hz _),Complex.norm_real,Real.norm_eq_abs,
|
| 84 |
+
abs_of_nonneg (Real.sqrt_nonneg _),Real.sq_sqrt (Real.rpow_nonneg hz.le _),
|
| 85 |
+
←Real.rpow_mul_natCast hz.le,←Real.rpow_add hz]
|
| 86 |
+
congr 1
|
| 87 |
+
ring
|
| 88 |
+
have hmark:indexedIdealMark (fun i:primePool F=>i.val) slots lists a=tupleDivisibilityMark ilists iw:=
|
| 89 |
+
funext (indexed_mark_eq_tuple F slots lists a)
|
| 90 |
+
rw [hmark]
|
| 91 |
+
change Z^(-V)*(∑f∈labels,secondLabelWeight K f*∑k∈T,
|
| 92 |
+
‖markedShortCompletedSum (rowTwist Ψ (ActualFiber.maskElement q m) (idealGenerator f) k)
|
| 93 |
+
(normTwistedSource W θ) (Z^N) (Z^hcut) (tupleDivisibilityMark ilists iw)‖^2)≤_
|
| 94 |
+
simp only [norm_mul,mul_pow] at henergy
|
| 95 |
+
have hn':‖((Z^(-(N+V)/2):ℝ):ℂ)‖^2*‖((Real.sqrt (Z^N):ℝ):ℂ)‖^2=Z^(-V):=by
|
| 96 |
+
simpa only [norm_mul,mul_pow] using hn
|
| 97 |
+
simp only [←mul_assoc,hn',←Finset.mul_sum] at henergy
|
| 98 |
+
convert henergy using 1
|
| 99 |
+
rw [Finset.mul_sum]
|
| 100 |
+
apply Finset.sum_congr rfl
|
| 101 |
+
intros
|
| 102 |
+
ring
|
| 103 |
+
|
| 104 |
+
end SevenEighths.InverseCanonicalShortAttachment
|
| 105 |
+
|
| 106 |
+
end
|
| 107 |
+
|
| 108 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/ChildCutoff.lean
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.PoissonTails
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
namespace SevenEighths.InverseMoment
|
| 6 |
+
open scoped BigOperators Classical SchwartzMap
|
| 7 |
+
open ActualEisensteinCubic FirstPassCubeLabels SecondPassArithmetic
|
| 8 |
+
open ConcreteTraceCRT (eisEmbedding)
|
| 9 |
+
noncomputable section
|
| 10 |
+
local notation "Eis" => ActualEisensteinCubic.O
|
| 11 |
+
|
| 12 |
+
def childFrequencyBall (a : Eis) (R : ℝ) : Finset Eis :=
|
| 13 |
+
(secondFrequencyCutoff (‖eisEmbedding a‖^2) R).filter
|
| 14 |
+
(fun k => ‖eisEmbedding (a*k)‖^2 ≤ R)
|
| 15 |
+
|
| 16 |
+
lemma mem_childFrequencyBall (a : Eis) (ha : a ≠ 0) (R : ℝ) (k : Eis) :
|
| 17 |
+
k ∈ childFrequencyBall a R ↔ ‖eisEmbedding (a*k)‖^2 ≤ R := by
|
| 18 |
+
have hn : 0 < ‖eisEmbedding a‖^2 := sq_pos_of_pos
|
| 19 |
+
(norm_pos_iff.mpr (ConcreteTraceCRT.eisEmbedding_ne_zero ha))
|
| 20 |
+
simp only [childFrequencyBall, Finset.mem_filter]
|
| 21 |
+
refine ⟨fun h => h.2, fun h => ⟨?_,h⟩⟩
|
| 22 |
+
apply mem_secondFrequencyCutoff
|
| 23 |
+
apply (le_div_iff₀ hn).mpr
|
| 24 |
+
simpa only [map_mul, norm_mul, mul_pow, mul_comm] using h
|
| 25 |
+
|
| 26 |
+
lemma outside_childFrequencyBall (a : Eis) (ha : a ≠ 0) (R : ℝ) (k : Eis)
|
| 27 |
+
(hk : k ∉ childFrequencyBall a R) : R < ‖eisEmbedding (a*k)‖^2 :=
|
| 28 |
+
lt_of_not_ge (fun h => hk ((mem_childFrequencyBall a ha R k).mpr h))
|
| 29 |
+
|
| 30 |
+
def nonzeroChildFrequencyBall (a : Eis) (R : ℝ) : Finset Eis :=
|
| 31 |
+
(childFrequencyBall a R).erase 0
|
| 32 |
+
|
| 33 |
+
lemma mem_nonzeroChildFrequencyBall (a : Eis) (ha : a ≠ 0) (R : ℝ) (k : Eis) :
|
| 34 |
+
k ∈ nonzeroChildFrequencyBall a R ↔
|
| 35 |
+
0 < ‖eisEmbedding (a*k)‖^2 ∧ ‖eisEmbedding (a*k)‖^2 ≤ R := by
|
| 36 |
+
have hn : 0 < ‖eisEmbedding (a*k)‖^2 ↔ k ≠ 0 := by
|
| 37 |
+
rw [sq_pos_iff, norm_ne_zero_iff]
|
| 38 |
+
constructor
|
| 39 |
+
· intro h hk; apply h; simp [hk]
|
| 40 |
+
· intro hk; exact ConcreteTraceCRT.eisEmbedding_ne_zero (mul_ne_zero ha hk)
|
| 41 |
+
simp only [nonzeroChildFrequencyBall, Finset.mem_erase,
|
| 42 |
+
mem_childFrequencyBall a ha, hn]
|
| 43 |
+
|
| 44 |
+
lemma nonzeroChildFrequencyBall_empty (a : Eis) (ha : a ≠ 0) (R : ℝ) (hR : R < 1) :
|
| 45 |
+
nonzeroChildFrequencyBall a R = ∅ := by
|
| 46 |
+
apply Finset.eq_empty_iff_forall_notMem.mpr
|
| 47 |
+
intro k hk
|
| 48 |
+
have hm := (mem_nonzeroChildFrequencyBall a ha R k).mp hk
|
| 49 |
+
have hk0 : k ≠ 0 := by intro hk; simp [hk] at hm
|
| 50 |
+
exact (not_le_of_gt hR) ((EisensteinSchwartzPoisson.one_le_eisenstein_norm_sq
|
| 51 |
+
(a*k) (mul_ne_zero ha hk0)).trans hm.2)
|
| 52 |
+
|
| 53 |
+
def childOuterRadius (Y A E X₁ X₂ H : ℝ) : ℝ := A*E*X₁*X₂*H/Y
|
| 54 |
+
|
| 55 |
+
theorem childFrequencyBall_raw_tail {ι : Type*} [DecidableEq ι]
|
| 56 |
+
(p : ι → Eis) (hp : ∀ i, p i ≠ 0) (Y A E X₁ X₂ H : ℝ)
|
| 57 |
+
(hY : 0 < Y) (hA : 0 < A) (hE : 0 < E)
|
| 58 |
+
(hX₁ : 0 < X₁) (_hX₂ : 0 < X₂) (hH : 0 ≤ H)
|
| 59 |
+
(a e : Eis) (ha : a ≠ 0) (he : e ≠ 0)
|
| 60 |
+
(haA : ‖eisEmbedding a‖^2 ≤ A) (heE : ‖eisEmbedding e‖^2 ≤ E)
|
| 61 |
+
(S T : Finset ι) (hd : Disjoint S T)
|
| 62 |
+
(hS : primeProductNorm p S ≤ X₁) (hT : primeProductNorm p T ≤ X₂)
|
| 63 |
+
(k : Eis) (hk : k ∉ childFrequencyBall a (childOuterRadius Y A E X₁ X₂ H)) :
|
| 64 |
+
H ≤ (Y / (‖eisEmbedding e‖^2 *
|
| 65 |
+
‖eisEmbedding (∏ i : activeSupport T S, p i.val)‖^2)) * ‖eisEmbedding k‖^2 := by
|
| 66 |
+
have haN : 0 < ‖eisEmbedding a‖^2 := sq_pos_of_pos
|
| 67 |
+
(norm_pos_iff.mpr (ConcreteTraceCRT.eisEmbedding_ne_zero ha))
|
| 68 |
+
have heN : 0 < ‖eisEmbedding e‖^2 := sq_pos_of_pos
|
| 69 |
+
(norm_pos_iff.mpr (ConcreteTraceCRT.eisEmbedding_ne_zero he))
|
| 70 |
+
have hden : ‖eisEmbedding a‖^2 * ‖eisEmbedding e‖^2 *
|
| 71 |
+
primeProductNorm p S * primeProductNorm p T ≤ A*E*X₁*X₂ := by
|
| 72 |
+
exact mul_le_mul (mul_le_mul (mul_le_mul haA heE heN.le hA.le)
|
| 73 |
+
hS (primeProductNorm_pos p hp S).le (mul_pos hA hE).le)
|
| 74 |
+
hT (primeProductNorm_pos p hp T).le (by positivity)
|
| 75 |
+
have hchild := (outside_childFrequencyBall a ha _ k hk).le
|
| 76 |
+
simp only [map_mul,norm_mul,mul_pow,childOuterRadius] at hchild
|
| 77 |
+
have hbound : H * (‖eisEmbedding a‖^2 * ‖eisEmbedding e‖^2 *
|
| 78 |
+
primeProductNorm p S * primeProductNorm p T) ≤
|
| 79 |
+
Y * (‖eisEmbedding a‖^2 * ‖eisEmbedding k‖^2) := by
|
| 80 |
+
calc
|
| 81 |
+
_ ≤ H*(A*E*X₁*X₂) := mul_le_mul_of_nonneg_left hden hH
|
| 82 |
+
_ ≤ _ := by nlinarith [(div_le_iff₀ hY).mp hchild]
|
| 83 |
+
have hcancel : H * (‖eisEmbedding e‖^2 * primeProductNorm p S *
|
| 84 |
+
primeProductNorm p T) ≤ Y * ‖eisEmbedding k‖^2 := by
|
| 85 |
+
apply (mul_le_mul_iff_right₀ haN).mp
|
| 86 |
+
nlinarith [hbound]
|
| 87 |
+
rw [active_norm_sq_disjoint p S T hd]
|
| 88 |
+
have hdpos : 0 < ‖eisEmbedding e‖^2 * (primeProductNorm p S * primeProductNorm p T) :=
|
| 89 |
+
mul_pos heN (mul_pos (primeProductNorm_pos p hp S) (primeProductNorm_pos p hp T))
|
| 90 |
+
rw [div_mul_eq_mul_div, le_div_iff₀ hdpos]
|
| 91 |
+
simpa only [mul_assoc] using hcancel
|
| 92 |
+
|
| 93 |
+
theorem childFrequencyBall_remainder {ι : Type*} [DecidableEq ι]
|
| 94 |
+
(p : ι → Eis) (hp : ∀ i, p i ≠ 0) [∀ i, (Ideal.span {p i}).IsMaximal]
|
| 95 |
+
(hg : ∀ i, ConcretePrimeRowBridge.goodLambda ∉ Ideal.span {p i})
|
| 96 |
+
(hinj : Function.Injective (fun i => Ideal.span {p i}))
|
| 97 |
+
(hc : ∀ i, ringChar (Eis ⧸ Ideal.span {p i}) ≠ 2) (order : ℕ) :
|
| 98 |
+
∃ (s : Finset (ℕ × ℕ)) (C : ℝ), 0 < C ∧
|
| 99 |
+
∀ (W : 𝓢(ℝ, ℂ)) (Y A E X₁ X₂ H : ℝ),
|
| 100 |
+
0 < Y → 0 < A → 0 < E → 0 < X₁ → 0 < X₂ → 0 ≤ H →
|
| 101 |
+
∀ (a e : Eis), a ≠ 0 → e ≠ 0 →
|
| 102 |
+
‖eisEmbedding a‖^2 ≤ A → ‖eisEmbedding e‖^2 ≤ E →
|
| 103 |
+
∀ (S T : Finset ι), Disjoint S T →
|
| 104 |
+
primeProductNorm p S ≤ X₁ → primeProductNorm p T ≤ X₂ →
|
| 105 |
+
let n := ∏ i : activeSupport T S, p i.val
|
| 106 |
+
let scale := Y / (‖eisEmbedding e‖^2 * ‖eisEmbedding n‖^2)
|
| 107 |
+
‖∑' k : {k : Eis // k ∉ childFrequencyBall a (childOuterRadius Y A E X₁ X₂ H)},
|
| 108 |
+
secondPairRadialMode p hp hg hinj S T e k.val W Y‖ ≤
|
| 109 |
+
(Y / ‖eisEmbedding n‖) *
|
| 110 |
+
((C * s.sup (schwartzSeminormFamily ℝ ℝ ℂ) W) /
|
| 111 |
+
((min 1 scale)^2 * (1+H)^order)) := by
|
| 112 |
+
obtain ⟨s,C,hC,hb⟩ := secondPairRadialMode_remainder p hp hg hinj hc order
|
| 113 |
+
refine ⟨s,C,hC,?_⟩
|
| 114 |
+
intro W Y A E X₁ X₂ H hY hA hE hX₁ hX₂ hH a e ha he haA heE S T hd hS hT
|
| 115 |
+
exact hb S T e he W Y H hY hH _
|
| 116 |
+
(fun k hk => childFrequencyBall_raw_tail p hp Y A E X₁ X₂ H hY hA hE hX₁ hX₂ hH
|
| 117 |
+
a e ha he haA heE S T hd hS hT k hk)
|
| 118 |
+
|
| 119 |
+
theorem nonzeroChildFrequencyBall_absolute_tail {ι : Type*} [DecidableEq ι]
|
| 120 |
+
(p : ι → Eis) (hp : ∀ i, p i ≠ 0) [∀ i, (Ideal.span {p i}).IsMaximal]
|
| 121 |
+
(hg : ∀ i, ConcretePrimeRowBridge.goodLambda ∉ Ideal.span {p i})
|
| 122 |
+
(hinj : Function.Injective (fun i => Ideal.span {p i}))
|
| 123 |
+
(hc : ∀ i, ringChar (Eis ⧸ Ideal.span {p i}) ≠ 2) (order : ℕ) :
|
| 124 |
+
∃ (s : Finset (ℕ × ℕ)) (C : ℝ), 0 < C ∧
|
| 125 |
+
∀ (W : 𝓢(ℝ, ℂ)) (Y A E X₁ X₂ H : ℝ),
|
| 126 |
+
0 < Y → 0 < A → 0 < E → 0 < X₁ → 0 < X₂ → 0 ≤ H →
|
| 127 |
+
∀ (a e : Eis), a ≠ 0 → e ≠ 0 →
|
| 128 |
+
‖eisEmbedding a‖^2 ≤ A → ‖eisEmbedding e‖^2 ≤ E →
|
| 129 |
+
∀ (S T : Finset ι), Disjoint S T →
|
| 130 |
+
primeProductNorm p S ≤ X₁ → primeProductNorm p T ≤ X₂ →
|
| 131 |
+
let n := ∏ i : activeSupport T S, p i.val
|
| 132 |
+
let scale := Y / (‖eisEmbedding e‖^2 * ‖eisEmbedding n‖^2)
|
| 133 |
+
(∑' k : {k : Eis // k ≠ 0 ∧ k ∉ nonzeroChildFrequencyBall a (childOuterRadius Y A E X₁ X₂ H)},
|
| 134 |
+
‖secondPairRadialMode p hp hg hinj S T e k.val W Y‖) ≤
|
| 135 |
+
(Y / ‖eisEmbedding n‖) *
|
| 136 |
+
((C * s.sup (schwartzSeminormFamily ℝ ℝ ℂ) W) /
|
| 137 |
+
((min 1 scale)^2 * (1+H)^order)) := by
|
| 138 |
+
obtain ⟨s,C,hC,hb⟩ := secondPairRadialMode_tail p hp hg hinj hc order
|
| 139 |
+
refine ⟨s,C,hC,?_⟩
|
| 140 |
+
intro W Y A E X₁ X₂ H hY hA hE hX₁ hX₂ hH a e ha he haA heE S T hd hS hT
|
| 141 |
+
dsimp only
|
| 142 |
+
let n := ∏ i : activeSupport T S, p i.val
|
| 143 |
+
let scale := Y / (‖eisEmbedding e‖^2 * ‖eisEmbedding n‖^2)
|
| 144 |
+
let small : Set Eis := {k | k ≠ 0 ∧ k ∉ nonzeroChildFrequencyBall a (childOuterRadius Y A E X₁ X₂ H)}
|
| 145 |
+
let large : Set Eis := {k | H ≤ scale * ‖eisEmbedding k‖^2}
|
| 146 |
+
have hmap : ∀ k : small, k.val ∈ large := by
|
| 147 |
+
intro k
|
| 148 |
+
apply childFrequencyBall_raw_tail p hp Y A E X₁ X₂ H hY hA hE hX₁ hX₂ hH
|
| 149 |
+
a e ha he haA heE S T hd hS hT k.val
|
| 150 |
+
intro hk
|
| 151 |
+
exact k.property.2 (Finset.mem_erase.mpr ⟨k.property.1,hk⟩)
|
| 152 |
+
let f : small → large := fun k => ⟨k.val,hmap k⟩
|
| 153 |
+
have hi : Function.Injective f := by
|
| 154 |
+
intro x y h; exact Subtype.ext (congrArg (fun z : large => z.val) h)
|
| 155 |
+
have hs := secondPairRadialMode_summable_norm p hp hg hinj hc S T e he W Y hY
|
| 156 |
+
calc
|
| 157 |
+
_ ≤ ∑' k : large, ‖secondPairRadialMode p hp hg hinj S T e k.val W Y‖ :=
|
| 158 |
+
(hs.subtype small).tsum_le_tsum_of_inj f hi (fun _ _ => norm_nonneg _)
|
| 159 |
+
(fun _ => le_rfl) (hs.subtype large)
|
| 160 |
+
_ ≤ _ := hb S T e he W Y H hY hH
|
| 161 |
+
|
| 162 |
+
end
|
| 163 |
+
end SevenEighths.InverseMoment
|
| 164 |
+
|
| 165 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/ClippedChild.lean
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.ClippedUniform
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Descent.SecondCellPhysical
|
| 3 |
+
import OAI.NumberTheory.DirichletL.Inversion.AmbientProfileTower
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
open scoped BigOperators Classical SchwartzMap FourierTransform ContDiff
|
| 9 |
+
open MeasureTheory FourierBridge
|
| 10 |
+
|
| 11 |
+
namespace SevenEighths.InverseMoment
|
| 12 |
+
open InverseInitialClippedColumns JointLogSeparation InverseAmbientProfileTower
|
| 13 |
+
open InverseSecondSourceBlocks
|
| 14 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 15 |
+
|
| 16 |
+
def secondChildHeight (right:Bool)(t:Ambient (Fin 6)):ℝ :=
|
| 17 |
+
if right then profileHeight secondLeftSlope secondRightSlope secondKernelSlope t.1 t.2 5
|
| 18 |
+
else -profileHeight secondLeftSlope secondRightSlope secondKernelSlope t.1 t.2 4
|
| 19 |
+
|
| 20 |
+
theorem second_child_height_budget (J:ℕ)(right:Bool)(t:Ambient (Fin 6)):
|
| 21 |
+
(1+‖secondChildHeight right t‖)^J≤tripleHeight J t.1*coordinateHeight J t.2:=by
|
| 22 |
+
cases right
|
| 23 |
+
· have h:=pow_le_pow_left₀ (by positivity : 0≤1+‖inheritedLeft 4 t‖) (inheritedLeft_bound 4 t) J
|
| 24 |
+
rw [←ambientWeight_eq_pow] at h
|
| 25 |
+
simpa only [secondChildHeight,Bool.false_eq_true,ite_false,norm_neg,
|
| 26 |
+
second_inherited_left_eq,ambientWeight,tripleHeight,coordinateHeight] using h
|
| 27 |
+
· have h:=pow_le_pow_left₀ (by positivity : 0≤1+‖inheritedRight 5 t‖) (inheritedRight_bound 5 t) J
|
| 28 |
+
rw [←ambientWeight_eq_pow] at h
|
| 29 |
+
simpa only [secondChildHeight,ite_true,second_inherited_right_eq,norm_neg,
|
| 30 |
+
ambientWeight,tripleHeight,coordinateHeight] using h
|
| 31 |
+
|
| 32 |
+
theorem canonical_actual_child_uniform
|
| 33 |
+
(W:ℝ→ℂ)(lo hi b:ℝ)(hlo:0<lo)(hb:1≤b)
|
| 34 |
+
(hs:Function.support W⊆Set.Icc lo hi)(hW:ContDiff ℝ ∞ W):
|
| 35 |
+
∃(wFresh:𝓢(ℝ,ℂ))(af bf:ℝ),0<af ∧ af≤bf ∧ HasCompactSupport (wFresh:ℝ→ℂ) ∧
|
| 36 |
+
tsupport (wFresh:ℝ→ℂ)⊆Set.Icc af bf ∧
|
| 37 |
+
∀J:ℕ,∃C:ℝ,0<C ∧ ∀{ι σ:Type*}[DecidableEq ι][DecidableEq σ]
|
| 38 |
+
(p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 39 |
+
(hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 40 |
+
(hg:∀i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i})
|
| 41 |
+
(_hpr:∀i,ConcretePrimeRowBridge.goodLambda^2∣p i-1)
|
| 42 |
+
(pool:Finset ι)(Ψ:O→*ℂ)(m:O)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 43 |
+
(labels:Finset (Ideal O))(rows:Finset O)(D:Ideal O→ℝ)(_hD:∀f∈labels,0≤D f)
|
| 44 |
+
(Z X F E:ℝ)(d:BlockIndex)(right:Bool)(t:Ambient (Fin 6)),
|
| 45 |
+
1<Z→0<X→scales d 0*scales d 2≤b*X→0≤E→
|
| 46 |
+
(∀s,normalizedColumnEnergy p hp hcop hg pool Ψ m slots lists a labels rows D
|
| 47 |
+
(childLogTest wFresh s) (Z^(max 0 (secondCellColumnExponent Z X d))) Z F≤E*(1+‖s‖)^(2*J))→
|
| 48 |
+
normalizedColumnEnergy p hp hcop hg pool Ψ m slots lists a labels rows D
|
| 49 |
+
(clippedTest W (Z^(max 0 (secondCellColumnExponent Z X d)-secondCellColumnExponent Z X d))
|
| 50 |
+
(secondChildHeight right t)) (Z^(max 0 (secondCellColumnExponent Z X d))) Z F≤
|
| 51 |
+
C*E*(tripleHeight (2*J) t.1*coordinateHeight (2*J) t.2):=by
|
| 52 |
+
obtain ⟨wFresh,af,bf,haf,hab,hc,hsf,he⟩:=canonical_clipped_uniform W lo hi b hlo hb hs hW
|
| 53 |
+
refine ⟨wFresh,af,bf,haf,hab,hc,hsf,?_⟩
|
| 54 |
+
intro J
|
| 55 |
+
obtain ⟨C,hC,hbound⟩:=he J
|
| 56 |
+
refine ⟨C,hC,?_⟩
|
| 57 |
+
intro ι σ _ _ p hp _ hcop hg hpr pool Ψ m slots lists a labels rows D hD Z X F E d right t hZ hX hgeom hE hmoment
|
| 58 |
+
obtain ⟨hc1,hcb⟩:=second_cell_clipping_ratio Z X b d hZ hX hb hgeom
|
| 59 |
+
have hz:0<Z:=zero_lt_one.trans hZ
|
| 60 |
+
exact (hbound p hp hcop hg hpr pool Ψ m slots lists a labels rows D hD
|
| 61 |
+
_ (secondChildHeight right t) _ Z F E hc1 hcb (Real.rpow_pos_of_pos hz _) hE hmoment).trans
|
| 62 |
+
(mul_le_mul_of_nonneg_left (second_child_height_budget (2*J) right t) (mul_nonneg hC.le hE))
|
| 63 |
+
|
| 64 |
+
end SevenEighths.InverseMoment
|
| 65 |
+
|
| 66 |
+
end
|
| 67 |
+
|
| 68 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/ClippedEnergy.lean
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.ClippedFourier
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Moments.HeckeWindowEnergy
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
open scoped BigOperators Classical SchwartzMap FourierTransform ContDiff
|
| 8 |
+
open MeasureTheory FourierBridge
|
| 9 |
+
|
| 10 |
+
namespace SevenEighths.InverseMoment
|
| 11 |
+
open InverseInitialClippedColumns InverseInitialOverlapFourier CompletedGauss
|
| 12 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 13 |
+
variable {ι σ:Type*}[DecidableEq ι]
|
| 14 |
+
(p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 15 |
+
(hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 16 |
+
(hg:∀i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i})
|
| 17 |
+
|
| 18 |
+
theorem normalized_energy_vector
|
| 19 |
+
(pool:Finset ι)(Ψ:O→*ℂ)(m:O)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 20 |
+
(labels:Finset (Ideal O))(rows:Finset O)(D:Ideal O→ℝ)(hD:∀f∈labels,0≤D f)
|
| 21 |
+
(W:ℝ→ℂ)(X Z F:ℝ):
|
| 22 |
+
(∑v:labels×rows,‖(Real.sqrt (D v.1):ℂ)*((Z^(-F/2):ℝ):ℂ)*
|
| 23 |
+
finiteCanonicalMarkedRow p hp hcop hg pool Ψ m (primaryGenerator v.1) v.2 slots lists a W X‖^2)=
|
| 24 |
+
normalizedColumnEnergy p hp hcop hg pool Ψ m slots lists a labels rows D W X Z F:=by
|
| 25 |
+
unfold normalizedColumnEnergy
|
| 26 |
+
rw [Fintype.sum_prod_type,←Finset.sum_coe_sort labels]
|
| 27 |
+
apply Finset.sum_congr rfl
|
| 28 |
+
intro f hf
|
| 29 |
+
rw [←Finset.sum_coe_sort rows,Finset.mul_sum]
|
| 30 |
+
apply Finset.sum_congr rfl
|
| 31 |
+
intro k hk
|
| 32 |
+
simp only [mul_assoc,norm_mul,mul_pow,Complex.norm_real,
|
| 33 |
+
Real.norm_of_nonneg (Real.sqrt_nonneg _),Real.sq_sqrt (hD f f.property)]
|
| 34 |
+
|
| 35 |
+
theorem canonical_clipped_energy
|
| 36 |
+
(hpr:∀i,ConcretePrimeRowBridge.goodLambda^2∣p i-1)
|
| 37 |
+
(pool:Finset ι)(Ψ:O→*ℂ)(m:O)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 38 |
+
(labels:Finset (Ideal O))(rows:Finset O)(D:Ideal O→ℝ)(hD:∀f∈labels,0≤D f)
|
| 39 |
+
(W:ℝ→ℂ)(lo hi:ℝ)(hlo:0<lo)(hs:Function.support W⊆Set.Icc lo hi)(hW:ContDiff ℝ ∞ W)
|
| 40 |
+
(wFresh:ℝ→ℂ)(c θ X Z F E:ℝ)(J:ℕ)(hc:0<c)(hX:0<X)(hE:0≤E)
|
| 41 |
+
(hw:∀y,0<y→wFresh y*W (c*y)=W (c*y))
|
| 42 |
+
(he:∀s,normalizedColumnEnergy p hp hcop hg pool Ψ m slots lists a labels rows D
|
| 43 |
+
(childLogTest wFresh s) X Z F≤E*(1+‖s‖)^(2*J)):
|
| 44 |
+
normalizedColumnEnergy p hp hcop hg pool Ψ m slots lists a labels rows D
|
| 45 |
+
(clippedTest W c θ) X Z F≤
|
| 46 |
+
E*(1+‖θ‖)^(2*J)*(∫t:ℝ,(1+‖t‖)^J*‖(𝓕 (CubicReflectionKernel.logSchwartz W lo hi hlo hs hW)) t‖)^2:=by
|
| 47 |
+
let g:=CubicReflectionKernel.logSchwartz W lo hi hlo hs hW
|
| 48 |
+
let b:=density g (Real.log c)
|
| 49 |
+
let phi:labels×rows→ℝ→ℂ:=fun v t=>(Real.sqrt (D v.1):ℂ)*((Z^(-F/2):ℝ):ℂ)*
|
| 50 |
+
finiteCanonicalMarkedRow p hp hcop hg pool Ψ m (primaryGenerator v.1) v.2 slots lists a
|
| 51 |
+
(childLogTest wFresh (θ+t)) X
|
| 52 |
+
have hint(v:labels×rows):Integrable (fun t:ℝ=>b t*phi v t):=by
|
| 53 |
+
convert (canonical_clipped_mode_integrable p hp hcop hg hpr pool Ψ m (primaryGenerator v.1) v.2
|
| 54 |
+
slots lists a g wFresh c θ X).const_mul ((Real.sqrt (D v.1):ℂ)*((Z^(-F/2):ℝ):ℂ)) using 1
|
| 55 |
+
funext t
|
| 56 |
+
dsimp [b,phi]
|
| 57 |
+
ring
|
| 58 |
+
have hbound(t:ℝ):(∑v:labels×rows,‖phi v t‖^2)≤
|
| 59 |
+
(E*(1+‖θ‖)^(2*J))*((1+‖t‖)^J)^2:=by
|
| 60 |
+
dsimp only [phi]
|
| 61 |
+
rw [normalized_energy_vector p hp hcop hg pool Ψ m slots lists a labels rows D hD]
|
| 62 |
+
apply (he (θ+t)).trans
|
| 63 |
+
have hb:1+‖θ+t‖≤(1+‖θ‖)*(1+‖t‖):=by
|
| 64 |
+
have hh:=norm_add_le θ t
|
| 65 |
+
nlinarith [mul_nonneg (norm_nonneg θ) (norm_nonneg t)]
|
| 66 |
+
calc
|
| 67 |
+
_≤E*((1+‖θ‖)*(1+‖t‖))^(2*J):=mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (by positivity) hb _) hE
|
| 68 |
+
_= _:=by rw [mul_pow,pow_mul];ring
|
| 69 |
+
have hden:Integrable (fun t:ℝ=>(1+‖t‖)^J*‖b t‖):=by
|
| 70 |
+
simpa only [b,density_norm] using AnalyticBridge.schwartz_fourier_one_plus_integrable g J
|
| 71 |
+
have hh:=CenteredMomentHeckeWindowEnergy.finite_weighted_integral_energy b phi
|
| 72 |
+
(fun t:ℝ=>(1+‖t‖)^J) (by intro t;positivity)
|
| 73 |
+
(E*(1+‖θ‖)^(2*J)) (by positivity) hden hint hbound
|
| 74 |
+
have heq(v:labels×rows): (∫t:ℝ,b t*phi v t)=
|
| 75 |
+
(Real.sqrt (D v.1):ℂ)*((Z^(-F/2):ℝ):ℂ)*
|
| 76 |
+
finiteCanonicalMarkedRow p hp hcop hg pool Ψ m (primaryGenerator v.1) v.2 slots lists a
|
| 77 |
+
(clippedTest W c θ) X:=by
|
| 78 |
+
rw [canonical_clipped_fourier p hp hcop hg hpr pool Ψ m (primaryGenerator v.1) v.2
|
| 79 |
+
slots lists a W lo hi hlo hs hW wFresh c θ X hc hX hw,←integral_const_mul]
|
| 80 |
+
apply integral_congr_ae
|
| 81 |
+
filter_upwards with t
|
| 82 |
+
dsimp [b,phi,g]
|
| 83 |
+
ring
|
| 84 |
+
simp_rw [heq] at hh
|
| 85 |
+
rw [normalized_energy_vector p hp hcop hg pool Ψ m slots lists a labels rows D hD] at hh
|
| 86 |
+
simpa only [b,density_norm,g] using hh
|
| 87 |
+
|
| 88 |
+
end SevenEighths.InverseMoment
|
| 89 |
+
|
| 90 |
+
end
|
| 91 |
+
|
| 92 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/ClippedFourier.lean
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Inversion.InitialOverlapFourier
|
| 2 |
+
import OAI.NumberTheory.DirichletL.Inversion.InitialClippedColumns
|
| 3 |
+
import OAI.NumberTheory.DirichletL.Inversion.SecondChildWindows
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
open scoped BigOperators Classical SchwartzMap FourierTransform ContDiff
|
| 9 |
+
open MeasureTheory FourierBridge
|
| 10 |
+
|
| 11 |
+
namespace SevenEighths.InverseMoment
|
| 12 |
+
open InverseInitialClippedColumns InverseInitialOverlapFourier SecondPassIntegration JointLogSeparation
|
| 13 |
+
open ActualEisensteinCubic FirstPassCubeLabels CompletedGauss
|
| 14 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 15 |
+
|
| 16 |
+
theorem clipped_fixed_window (W:ℝ→ℂ) (lo hi b:ℝ) (hlo:0<lo) (hb:1≤b)
|
| 17 |
+
(hW:Function.support W⊆Set.Icc lo hi):
|
| 18 |
+
∃(wFresh:𝓢(ℝ,ℂ))(af bf:ℝ),0<af ∧ af≤bf ∧ HasCompactSupport (wFresh:ℝ→ℂ) ∧
|
| 19 |
+
tsupport (wFresh:ℝ→ℂ)⊆Set.Icc af bf ∧
|
| 20 |
+
∀c,1≤c→c≤b→∀y,0<y→wFresh y*W (c*y)=W (c*y):=by
|
| 21 |
+
have hb0:0<b:=zero_lt_one.trans_le hb
|
| 22 |
+
let a:=lo/b
|
| 23 |
+
let B:=a+|hi|+1
|
| 24 |
+
have ha:0<a:=div_pos hlo hb0
|
| 25 |
+
obtain ⟨wFresh,hc,hone,hs⟩:=InverseSecondChildWindows.positive_cutoff a B ha (by dsimp [B];linarith [abs_nonneg hi])
|
| 26 |
+
refine ⟨wFresh,a/2,B+1,half_pos ha,by dsimp [B];linarith [abs_nonneg hi],hc,hs,?_⟩
|
| 27 |
+
intro c hc hcb y hy
|
| 28 |
+
by_cases hz:W (c*y)=0
|
| 29 |
+
· simp only [hz,mul_zero]
|
| 30 |
+
have hw:=hW hz
|
| 31 |
+
have hay:a≤y:=by
|
| 32 |
+
apply (div_le_iff₀ hb0).mpr
|
| 33 |
+
calc
|
| 34 |
+
lo≤c*y:=hw.1
|
| 35 |
+
_≤y*b:=by nlinarith
|
| 36 |
+
have hyhi:y≤hi:=le_trans (by nlinarith) hw.2
|
| 37 |
+
have hyB:y≤B:=by dsimp [B];linarith [le_abs_self hi]
|
| 38 |
+
rw [hone y ⟨hay,hyB⟩,one_mul]
|
| 39 |
+
|
| 40 |
+
theorem clipped_test_fourier (W:ℝ→ℂ) (lo hi:ℝ) (hlo:0<lo)
|
| 41 |
+
(hs:Function.support W⊆Set.Icc lo hi) (hW:ContDiff ℝ ∞ W)
|
| 42 |
+
(wFresh:ℝ→ℂ)(c θ y:ℝ)(hc:0<c)(hy:0<y)(hwFresh:wFresh y*W (c*y)=W (c*y)):
|
| 43 |
+
clippedTest W c θ y =
|
| 44 |
+
∫t:ℝ,density (CubicReflectionKernel.logSchwartz W lo hi hlo hs hW) (Real.log c) t *
|
| 45 |
+
childLogTest wFresh (θ+t) y:=by
|
| 46 |
+
let g:=CubicReflectionKernel.logSchwartz W lo hi hlo hs hW
|
| 47 |
+
change clippedTest W c θ y=∫t:ℝ,density g (Real.log c) t*childLogTest wFresh (θ+t) y
|
| 48 |
+
have he (t:ℝ):density g (Real.log c) t*childLogTest wFresh (θ+t) y=
|
| 49 |
+
((𝓕 g) t*logPhase t (Real.log c+Real.log y))*(wFresh y*logPhase θ (Real.log y)):=by
|
| 50 |
+
simp only [density,childLogTest,logPhase_add_frequency,logPhase_add]
|
| 51 |
+
ring
|
| 52 |
+
simp_rw [he]
|
| 53 |
+
rw [integral_mul_const]
|
| 54 |
+
have hi':(∫t:ℝ,(𝓕 g) t*logPhase t (Real.log c+Real.log y))=W (c*y):=by
|
| 55 |
+
calc
|
| 56 |
+
_=(∫t:ℝ,logPhase t (Real.log c+Real.log y)*(𝓕 g) t):=by
|
| 57 |
+
apply integral_congr_ae
|
| 58 |
+
filter_upwards with t
|
| 59 |
+
ring
|
| 60 |
+
_=g (Real.log c+Real.log y):=(schwartz_logPhase_inversion g _).symm
|
| 61 |
+
_= _:=by
|
| 62 |
+
simp only [g,CubicReflectionKernel.logSchwartz_apply,Real.exp_add,Real.exp_log hc,Real.exp_log hy]
|
| 63 |
+
rw [hi']
|
| 64 |
+
unfold clippedTest childLogTest
|
| 65 |
+
calc
|
| 66 |
+
W (c*y)*logPhase θ (Real.log y)=(wFresh y*W (c*y))*logPhase θ (Real.log y):=by rw [hwFresh]
|
| 67 |
+
_= _:=by ring
|
| 68 |
+
|
| 69 |
+
variable {ι σ:Type*}[DecidableEq ι]
|
| 70 |
+
(p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 71 |
+
(hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 72 |
+
(hg:∀i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i})
|
| 73 |
+
|
| 74 |
+
theorem canonical_clipped_mode_integrable
|
| 75 |
+
(hpr:∀i,ConcretePrimeRowBridge.goodLambda^2∣p i-1)
|
| 76 |
+
(pool:Finset ι)(Ψ:O→*ℂ)(m f k:O)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 77 |
+
(g:𝓢(ℝ,ℂ))(wFresh:ℝ→ℂ)(c θ X:ℝ):
|
| 78 |
+
Integrable (fun t:ℝ=>density g (Real.log c) t*
|
| 79 |
+
finiteCanonicalMarkedRow p hp hcop hg pool Ψ m f k slots lists a (childLogTest wFresh (θ+t)) X):=by
|
| 80 |
+
simp_rw [finiteCanonicalMarkedRow_actual_columns p hp hcop hg hpr]
|
| 81 |
+
simp only [Finset.mul_sum]
|
| 82 |
+
apply integrable_finsetSum
|
| 83 |
+
intro U hU
|
| 84 |
+
convert fourier_phase_integrable g (Real.log c+Real.log (primeProductNorm p U/X))
|
| 85 |
+
(columnWeight (CanonicalRowCompletion.rowTwist Ψ m f k) (Ideal.span {∏i∈U,p i})*
|
| 86 |
+
primeMark slots lists a U*wFresh (primeProductNorm p U/X)*logPhase θ (Real.log (primeProductNorm p U/X))) using 1
|
| 87 |
+
funext t
|
| 88 |
+
simp only [density,childLogTest,logPhase_add_frequency,logPhase_add]
|
| 89 |
+
ring
|
| 90 |
+
|
| 91 |
+
theorem canonical_clipped_fourier
|
| 92 |
+
(hpr:∀i,ConcretePrimeRowBridge.goodLambda^2∣p i-1)
|
| 93 |
+
(pool:Finset ι)(Ψ:O→*ℂ)(m f k:O)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 94 |
+
(W:ℝ→ℂ)(lo hi:ℝ)(hlo:0<lo)(hs:Function.support W⊆Set.Icc lo hi)(hW:ContDiff ℝ ∞ W)
|
| 95 |
+
(wFresh:ℝ→ℂ)(c θ X:ℝ)(hc:0<c)(hX:0<X)(hwFresh:∀y,0<y→wFresh y*W (c*y)=W (c*y)):
|
| 96 |
+
finiteCanonicalMarkedRow p hp hcop hg pool Ψ m f k slots lists a (clippedTest W c θ) X=
|
| 97 |
+
∫t:ℝ,density (CubicReflectionKernel.logSchwartz W lo hi hlo hs hW) (Real.log c) t *
|
| 98 |
+
finiteCanonicalMarkedRow p hp hcop hg pool Ψ m f k slots lists a (childLogTest wFresh (θ+t)) X:=by
|
| 99 |
+
simp_rw [finiteCanonicalMarkedRow_actual_columns p hp hcop hg hpr]
|
| 100 |
+
simp only [Finset.mul_sum]
|
| 101 |
+
have hints (U:Finset ι):Integrable (fun t:ℝ=>
|
| 102 |
+
density (CubicReflectionKernel.logSchwartz W lo hi hlo hs hW) (Real.log c) t*
|
| 103 |
+
(columnWeight (CanonicalRowCompletion.rowTwist Ψ m f k) (Ideal.span {∏i∈U,p i})*
|
| 104 |
+
(primeMark slots lists a U*childLogTest wFresh (θ+t) (primeProductNorm p U/X)))):=by
|
| 105 |
+
convert fourier_phase_integrable (CubicReflectionKernel.logSchwartz W lo hi hlo hs hW)
|
| 106 |
+
(Real.log c+Real.log (primeProductNorm p U/X))
|
| 107 |
+
(columnWeight (CanonicalRowCompletion.rowTwist Ψ m f k) (Ideal.span {∏i∈U,p i})*
|
| 108 |
+
primeMark slots lists a U*wFresh (primeProductNorm p U/X)*logPhase θ (Real.log (primeProductNorm p U/X))) using 1
|
| 109 |
+
funext t
|
| 110 |
+
simp only [density,childLogTest,logPhase_add_frequency,logPhase_add]
|
| 111 |
+
ring
|
| 112 |
+
rw [integral_finsetSum _ (fun U _=>hints U)]
|
| 113 |
+
apply Finset.sum_congr rfl
|
| 114 |
+
intro U hU
|
| 115 |
+
rw [clipped_test_fourier W lo hi hlo hs hW wFresh c θ _ hc
|
| 116 |
+
(div_pos (FirstPassCubeLabels.primeProductNorm_pos p hp U) hX) (hwFresh _ (div_pos (FirstPassCubeLabels.primeProductNorm_pos p hp U) hX))]
|
| 117 |
+
rw [←integral_const_mul,←integral_const_mul]
|
| 118 |
+
apply integral_congr_ae
|
| 119 |
+
filter_upwards with t
|
| 120 |
+
ring
|
| 121 |
+
|
| 122 |
+
end SevenEighths.InverseMoment
|
| 123 |
+
|
| 124 |
+
end
|
| 125 |
+
|
| 126 |
+
end OAI
|
lean/OAI/NumberTheory/DirichletL/Descent/ClippedUniform.lean
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.NumberTheory.DirichletL.Descent.ClippedEnergy
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
open scoped BigOperators Classical SchwartzMap FourierTransform ContDiff
|
| 7 |
+
open MeasureTheory FourierBridge
|
| 8 |
+
|
| 9 |
+
namespace SevenEighths.InverseMoment
|
| 10 |
+
open InverseInitialClippedColumns
|
| 11 |
+
local notation "O"=>ActualEisensteinCubic.O
|
| 12 |
+
|
| 13 |
+
theorem canonical_clipped_uniform
|
| 14 |
+
(W:ℝ→ℂ)(lo hi b:ℝ)(hlo:0<lo)(hb:1≤b)
|
| 15 |
+
(hs:Function.support W⊆Set.Icc lo hi)(hW:ContDiff ℝ ∞ W):
|
| 16 |
+
∃(wFresh:𝓢(ℝ,ℂ))(af bf:ℝ),0<af ∧ af≤bf ∧ HasCompactSupport (wFresh:ℝ→ℂ) ∧
|
| 17 |
+
tsupport (wFresh:ℝ→ℂ)⊆Set.Icc af bf ∧
|
| 18 |
+
∀J:ℕ,∃C:ℝ,0<C ∧ ∀{ι σ:Type*}[DecidableEq ι][DecidableEq σ]
|
| 19 |
+
(p:ι→O)(hp:∀i,p i≠0)[∀i,(Ideal.span {p i}).IsMaximal]
|
| 20 |
+
(hcop:Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
|
| 21 |
+
(hg:∀i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i})
|
| 22 |
+
(_hpr:∀i,ConcretePrimeRowBridge.goodLambda^2∣p i-1)
|
| 23 |
+
(pool:Finset ι)(Ψ:O→*ℂ)(m:O)(slots:Finset σ)(lists:σ→Finset ι)(a:σ→ι→ℂ)
|
| 24 |
+
(labels:Finset (Ideal O))(rows:Finset O)(D:Ideal O→ℝ)(_hD:∀f∈labels,0≤D f)
|
| 25 |
+
(c θ X Z F E:ℝ),1≤c→c≤b→0<X→0≤E→
|
| 26 |
+
(∀s,normalizedColumnEnergy p hp hcop hg pool Ψ m slots lists a labels rows D
|
| 27 |
+
(childLogTest wFresh s) X Z F≤E*(1+‖s‖)^(2*J))→
|
| 28 |
+
normalizedColumnEnergy p hp hcop hg pool Ψ m slots lists a labels rows D
|
| 29 |
+
(clippedTest W c θ) X Z F≤C*E*(1+‖θ‖)^(2*J):=by
|
| 30 |
+
obtain ⟨wFresh,af,bf,haf,hab,hc,hsf,hagree⟩:=clipped_fixed_window W lo hi b hlo hb hs
|
| 31 |
+
refine ⟨wFresh,af,bf,haf,hab,hc,hsf,?_⟩
|
| 32 |
+
intro J
|
| 33 |
+
let M:=(∫t:ℝ,(1+‖t‖)^J*‖(𝓕 (CubicReflectionKernel.logSchwartz W lo hi hlo hs hW)) t‖)^2
|
| 34 |
+
refine ⟨M+1,by dsimp [M];positivity,?_⟩
|
| 35 |
+
intro ι σ _ _ p hp _ hcop hg hpr pool Ψ m slots lists a labels rows D hD c θ X Z F E hc1 hcb hX hE he
|
| 36 |
+
have hh:=canonical_clipped_energy p hp hcop hg hpr pool Ψ m slots lists a labels rows D hD
|
| 37 |
+
W lo hi hlo hs hW wFresh c θ X Z F E J (zero_lt_one.trans_le hc1) hX hE
|
| 38 |
+
(hagree c hc1 hcb) he
|
| 39 |
+
apply hh.trans
|
| 40 |
+
change E*(1+‖θ‖)^(2*J)*M≤(M+1)*E*(1+‖θ‖)^(2*J)
|
| 41 |
+
have hn:0≤E*(1+‖θ‖)^(2*J):=by positivity
|
| 42 |
+
nlinarith
|
| 43 |
+
|
| 44 |
+
end SevenEighths.InverseMoment
|
| 45 |
+
|
| 46 |
+
end
|
| 47 |
+
|
| 48 |
+
end OAI
|