lemmaprimarySmoothedSieveMass_gram (S : FinsetEisenstein)
(hS : ∀ n ∈S, primary n) (u : Eisenstein→ℂ)
(W : ℝ→ℂ) (hW : HasCompactSupportW) (hW' : ContDiffℝ∞W)
{M : ℝ} (hM : 0 < M) :
primarySmoothedSieveMass S u WM =
∑ a ∈S, ∑ b ∈S, u a * star (u b) * primaryCharacterGram a b WM:=by
proof · 31
lines
letF (a b x : Eisenstein) : ℂ:= u a * star (u b) *
(if primary x thenW (norm x / M) * cubicSymbol a x * star (cubicSymbol b x) else0)
have hF (a : Eisenstein) (ha : a ∈S) (b : Eisenstein) (hb : b ∈S) :
Summable (F a b) :=by
apply Summable.mul_left
simpa only [and_true] using
summable_gram_restricted (hS a ha) (hS b hb) W hW hW' hM (fun _ =>True)
have hpoint (x : Eisenstein) :
(if primary x thenW (norm x / M) *
(‖∑ n ∈S, u n * cubicSymbol n x‖^2 : ℝ) else0) =
∑ a ∈S, ∑ b ∈S, F a b x :=byby_cases hx : primary x
· simp only [ite_eq_left hx, ←Complex.normSq_eq_norm_sq, ←Complex.mul_conj,
map_sum, map_mul, F]
simp_rw [Finset.sum_mul, Finset.mul_sum]
apply Finset.sum_congr rfl
intro a ha
apply Finset.sum_congr rfl
intro b hb
simp only [starRingEnd_apply]
ring
· simp [hx, F]
unfold primarySmoothedSieveMass
simp_rw [hpoint]
rw [Summable.tsum_finsetSum (fun a ha => summable_sum (fun b hb => hF a ha b hb))]
apply Finset.sum_congr rfl
intro a ha
rw [Summable.tsum_finsetSum (hF a ha)]
apply Finset.sum_congr rfl
intro b hb
exact tsum_mul_left
lemmaprimary_moebius_universal_indicator {U : FinsetEisenstein}
(hU : ∀ p ∈U, primaryPrime p) {a b : Eisenstein}
(ha : primary a) (hsa : Squarefree a) (haU : primaryPrimeFactors a ⊆U) :
(ifIsCoprime a b then (1 : ℂ) else0) =
∑ s ∈U.powerset, (idealMoebius (∏ p ∈ s, p) : ℂ) *
(if (∏ p ∈ s, p) ∣ a ∧ (∏ p ∈ s, p) ∣ b then (1 : ℂ) else0) :=by
proof · 20
lines
rw [primary_moebius_coprimality ha hsa]
calc
_ = ∑ s ∈ (primaryPrimeFactors a).powerset,
(idealMoebius (∏ p ∈ s, p) : ℂ) *
(if (∏ p ∈ s, p) ∣ a ∧ (∏ p ∈ s, p) ∣ b then (1 : ℂ) else0) :=by
apply Finset.sum_congr rfl
intro s hs
havehd : (∏ p ∈ s, p) ∣ a :=
(primary_subsets_prod_dvd ha (Finset.mem_powerset.mp hs) a).mpr
(fun p hp => (primaryPrimeFactor_spec ha (Finset.mem_powerset.mp hs hp)).2)
simp only [hd, true_and]
_ = _ :=by
apply Finset.sum_subset (Finset.powerset_mono.mpr haU)
intro s hs hn
havehnd : ¬(∏ p ∈ s, p) ∣ a :=by
intro hd
apply hn
exact Finset.mem_powerset.mpr (primeSet_subset_factors_of_prod_dvd ha
(fun p hp => hU p (Finset.mem_powerset.mp hs hp)) hd)
simp [hnd]
theoremcoprime_bilinear_moebius (STU : FinsetEisenstein)
(hS : ∀ a ∈S, primary a ∧Squarefree a)
(hU : ∀ p ∈U, primaryPrime p)
(hSU : ∀ a ∈S, primaryPrimeFactors a ⊆U) (v w : Eisenstein→ℂ) :
(∑ a ∈S, ∑ b ∈T, ifIsCoprime a b then v a * star (w b) else0) =
∑ s ∈U.powerset, (idealMoebius (∏ p ∈ s, p) : ℂ) *
(∑ a ∈S, if (∏ p ∈ s, p) ∣ a then v a else0) *
star (∑ b ∈T, if (∏ p ∈ s, p) ∣ b then w b else0) :=by
proof · 29
lines
have hpoint (a : Eisenstein) (ha : a ∈S) (b : Eisenstein) :
(ifIsCoprime a b then v a * star (w b) else0) =
∑ s ∈U.powerset, (idealMoebius (∏ p ∈ s, p) : ℂ) *
((if (∏ p ∈ s, p) ∣ a then v a else0) *
star (if (∏ p ∈ s, p) ∣ b then w b else0)) :=byhave hi := congrArg (funz : ℂ=> z * (v a * star (w b)))
(primary_moebius_universal_indicator hU (hS a ha).1 (hS a ha).2 (hSU a ha)
(b := b))
rw [Finset.sum_mul] at hi
convert hi using1
· split_ifs <;> simp
· apply Finset.sum_congr rfl
intro s hs
split_ifs <;> simp_all
simp_rw [Finset.sum_congr rfl (fun a ha =>Finset.sum_congr rfl
(fun b _ => hpoint a ha b))]
simp_rw [Finset.sum_comm (s :=T) (t :=U.powerset)]
rw [Finset.sum_comm (s :=S) (t :=U.powerset)]
apply Finset.sum_congr rfl
intro s hs
simp only [star_sum]
simp only [Finset.sum_mul, Finset.mul_sum]
rw [Finset.sum_comm (s :=T) (t :=S)]
apply Finset.sum_congr rfl
intro a ha
apply Finset.sum_congr rfl
intro b hb
ring
lemmafiniteCubicOperator_apply (SH : FinsetEisenstein) (u : Eisenstein→ℂ)
(h : H) :
finiteCubicOperator SH (WithLp.toLp 2 (funa : S=> u a.val)) h =
∑ a ∈S, u a * cubicSymbol a h.val :=by
proof · 5
lines
change (∑a : S, cubicSymbol a.val h.val * u a.val) = _
rw [←Finset.sum_subtype S (fun _ =>Iff.rfl) (fun a => cubicSymbol a h.val * u a)]
apply Finset.sum_congr rfl
intro a ha
ring
lemmafiniteCubicBound_controls_mass (SH : FinsetEisenstein) (u : Eisenstein→ℂ) :
(∑ h ∈H, ‖∑ a ∈S, u a * cubicSymbol a h‖^2) ≤
finiteCubicBound SH * ∑ a ∈S, ‖u a‖^2:=by
proof · 11
lines
letv : EuclideanSpaceℂS:=WithLp.toLp 2 (funa : S=> u a.val)
have hb := (finiteCubicOperator SH).le_opNorm v
have hs := pow_le_pow_left₀ (_root_.norm_nonneg _) hb 2
rw [mul_pow, EuclideanSpace.norm_sq_eq, EuclideanSpace.norm_sq_eq] at hs
change (∑h : H, ‖finiteCubicOperator SH v h‖^2) ≤
finiteCubicBound SH * ∑a : S, ‖u a.val‖^2 at hs
dsimp only [v] at hs
simp_rw [finiteCubicOperator_apply] at hs
simpa only [←Finset.sum_subtype H (fun _ =>Iff.rfl)
(fun h => ‖∑ a ∈S, u a * cubicSymbol a h‖^2),
←Finset.sum_subtype S (fun _ =>Iff.rfl) (fun a => ‖u a‖^2)] using hs
apply le_antisymm (matrixHilbertOperator_conj_norm_le A)
havehe : (A.map star).map star = A:=by ext i j; simp
have h := matrixHilbertOperator_conj_norm_le (A.map star)
rwa [he] at h
theoremfiniteCubicBound_bilinear (SH : FinsetEisenstein)
(v w phase : Eisenstein→ℂ) (hphase : ∀ h ∈H, ‖phase h‖ ≤1) :
‖∑ h ∈H, phase h * (∑ a ∈S, v a * cubicSymbol a h) *
star (∑ a ∈S, w a * cubicSymbol a h)‖ ≤
finiteCubicBound SH *
((∑ a ∈S, ‖v a‖^2) + (∑ a ∈S, ‖w a‖^2)) / 2:=by
proof · 22
lines
letV (h : Eisenstein) :=∑ a ∈S, v a * cubicSymbol a h
letW (h : Eisenstein) :=∑ a ∈S, w a * cubicSymbol a h
calc
_ ≤∑ h ∈H, ‖phase h * V h * star (W h)‖ := norm_sum_le _ _
_ ≤∑ h ∈H, (‖V h‖^2+‖W h‖^2)/2:=by
apply Finset.sum_le_sum
intro h hh
rw [norm_mul, norm_mul, norm_star]
calc
_ ≤1 * ‖V h‖ * ‖W h‖ :=
mul_le_mul_of_nonneg_right
(mul_le_mul_of_nonneg_right (hphase h hh) (_root_.norm_nonneg _))
(_root_.norm_nonneg _)
_ ≤ _ :=by nlinarith [sq_nonneg (‖V h‖-‖W h‖)]
_ = ((∑ h ∈H, ‖V h‖^2) + (∑ h ∈H, ‖W h‖^2))/2:=by
rw [←Finset.sum_div, Finset.sum_add_distrib]
_ ≤ _ :=byhave hv := finiteCubicBound_controls_mass SH v
have hw := finiteCubicBound_controls_mass SH w
change (∑ h ∈H, ‖V h‖^2) ≤ _ at hv
change (∑ h ∈H, ‖W h‖^2) ≤ _ at hw
nlinarith
theoremfiniteCubicBound_conjugate_bilinear (SH : FinsetEisenstein)
(v w phase : Eisenstein→ℂ) (hphase : ∀ h ∈H, ‖phase h‖ ≤1) :
‖∑ h ∈H, phase h * (∑ a ∈S, v a * star (cubicSymbol a h)) *
star (∑ a ∈S, w a * star (cubicSymbol a h))‖ ≤
finiteCubicBound SH *
((∑ a ∈S, ‖v a‖^2) + (∑ a ∈S, ‖w a‖^2)) / 2:=by
proof · 12
lines
have h := finiteCubicBound_bilinear SH (fun a => star (w a))
(fun a => star (v a)) phase hphase
simp only [norm_star] at h
havehe : (∑ h ∈H, phase h * (∑ a ∈S, v a * star (cubicSymbol a h)) *
star (∑ a ∈S, w a * star (cubicSymbol a h))) =
∑ h ∈H, phase h * (∑ a ∈S, star (w a) * cubicSymbol a h) *
star (∑ a ∈S, star (v a) * cubicSymbol a h) :=by
apply Finset.sum_congr rfl
intro h hh
simp [star_sum, star_mul, mul_comm, mul_left_comm, mul_assoc]
rw [he]
simpa only [add_comm] using h
lemmafiniteCubicOperator_norm_sq (SH : FinsetEisenstein) (u : Eisenstein→ℂ) :
‖finiteCubicOperator SH (WithLp.toLp 2 (funa : S=> u a.val))‖^2 =
∑ h ∈H, ‖∑ a ∈S, u a * cubicSymbol a h‖^2:=by
proof · 5
lines
rw [EuclideanSpace.norm_sq_eq]
change (∑h : H, ‖finiteCubicOperator SH (WithLp.toLp 2 (funa : S=> u a.val)) h‖^2) = _
simp_rw [finiteCubicOperator_apply]
exact (Finset.sum_subtype H (fun _ =>Iff.rfl)
(fun h => ‖∑ a ∈S, u a * cubicSymbol a h‖^2)).symm
apply (finiteCubicBound_le_iff SH (finiteCubicBound_nonneg TJ)).mpr
intro u
let v (a : Eisenstein) :=if a ∈Sthen u a else0have hi (h : Eisenstein) : (∑ a ∈T, v a * cubicSymbol a h) =
∑ a ∈S, u a * cubicSymbol a h :=bycalc
_ = ∑ a ∈S, v a * cubicSymbol a h :=
(Finset.sum_subset hST (fun a _ ha =>by simp [v, ha])).symm
_ = _ :=Finset.sum_congr rfl (fun a ha =>by simp [v, ha])
havehv : (∑ a ∈T, ‖v a‖^2) = ∑ a ∈S, ‖u a‖^2:=bycalc
_ = ∑ a ∈S, ‖v a‖^2:=
(Finset.sum_subset hST (fun a _ ha =>by simp [v, ha])).symm
_ = _ :=Finset.sum_congr rfl (fun a ha =>by simp [v, ha])
have hb := finiteCubicBound_controls_mass TJ v
simp_rw [hi, hv] at hb
exact (Finset.sum_le_sum_of_subset_of_nonneg hHJ (fun _ _ _ => sq_nonneg _)).trans hb
lemmafiniteCubicBound_mul_support_le (QH : FinsetEisenstein)
{m : Eisenstein} (hm : primary m) (hQ : ∀ b ∈Q, primary b) :
finiteCubicBound (Q.image (fun b => m*b)) H≤ finiteCubicBound QH:=by
proof · 26
lines
apply (finiteCubicBound_le_iff _ _ (finiteCubicBound_nonneg QH)).mpr
intro u
havehinj : ∀ a ∈Q, ∀ b ∈Q, m*a=m*b → a=b :=by
intro a ha b hb he
exact mul_left_cancel₀ (primary_ne_zero hm) he
have he (h : Eisenstein) :
(∑ a ∈Q.image (fun b => m*b), u a * cubicSymbol a h) =
cubicSymbol m h * ∑ b ∈Q, u (m*b) * cubicSymbol b h :=by
rw [Finset.sum_image hinj, Finset.mul_sum]
apply Finset.sum_congr rfl
intro b hb
rw [cubicSymbol_mul_lower (primary_ne_zero hm) (primary_ne_zero (hQ b hb))]
ring
have hn (h : Eisenstein) :
‖∑ a ∈Q.image (fun b => m*b), u a * cubicSymbol a h‖^2≤
‖∑ b ∈Q, u (m*b) * cubicSymbol b h‖^2:=by
rw [he, norm_mul]
apply pow_le_pow_left₀ (by positivity)
simpa only [one_mul] using mul_le_mul_of_nonneg_right
(norm_cubicSymbol_le_one hm h) (_root_.norm_nonneg _)
calc
_ ≤∑ h ∈H, ‖∑ b ∈Q, u (m*b) * cubicSymbol b h‖^2:=Finset.sum_le_sum (fun h _ => hn h)
_ ≤ finiteCubicBound QH * ∑ b ∈Q, ‖u (m*b)‖^2:=
finiteCubicBound_controls_mass QH (fun b => u (m*b))
_ = _ :=by rw [Finset.sum_image hinj]
theoremfiniteCubicBound_coprime_bilinear (SHU : FinsetEisenstein)
(hS : ∀ a ∈S, primary a ∧Squarefree a)
(hU : ∀ p ∈U, primaryPrime p)
(hSU : ∀ a ∈S, primaryPrimeFactors a ⊆U)
(v w phase : Eisenstein→ℂ) (hphase : ∀ h ∈H, ‖phase h‖ ≤1) :
‖∑ h ∈H, phase h * ∑ a ∈S, ∑ b ∈S,
ifIsCoprime a b then
(v a * star (cubicSymbol a h)) * star (w b * star (cubicSymbol b h)) else0‖ ≤∑ s ∈U.powerset,
finiteCubicBound (S.filter (fun a => (∏ p ∈ s, p) ∣ a)) H *
((∑ a ∈S.filter (fun a => (∏ p ∈ s, p) ∣ a), ‖v a‖^2) +
(∑ a ∈S.filter (fun a => (∏ p ∈ s, p) ∣ a), ‖w a‖^2)) / 2:=by
proof · 31
lines
letV (s : FinsetEisenstein) (h : Eisenstein) : ℂ:=∑ a ∈S.filter (fun a => (∏ p ∈ s, p) ∣ a), v a * star (cubicSymbol a h)
letW (s : FinsetEisenstein) (h : Eisenstein) : ℂ:=∑ a ∈S.filter (fun a => (∏ p ∈ s, p) ∣ a), w a * star (cubicSymbol a h)
have he (h : Eisenstein) := coprime_bilinear_moebius SSU hS hU hSU
(fun a => v a * star (cubicSymbol a h)) (fun a => w a * star (cubicSymbol a h))
have he' (h : Eisenstein) :
(∑ a ∈S, ∑ b ∈S, ifIsCoprime a b then
(v a * star (cubicSymbol a h)) * star (w b * star (cubicSymbol b h)) else0) =
∑ s ∈U.powerset, (idealMoebius (∏ p ∈ s, p) : ℂ) * V s h * star (W s h) :=by
simpa only [V, W, Finset.sum_filter] using he h
simp_rw [he', Finset.mul_sum]
rw [Finset.sum_comm]
have hfactor (s : FinsetEisenstein) :
(∑ h ∈H, phase h * ((idealMoebius (∏ p ∈ s, p) : ℂ) * V s h * star (W s h))) =
(idealMoebius (∏ p ∈ s, p) : ℂ) * ∑ h ∈H, phase h * V s h * star (W s h) :=by
rw [Finset.mul_sum]
apply Finset.sum_congr rfl
intro h hh
ring
simp_rw [hfactor]
apply (norm_sum_le _ _).trans
apply Finset.sum_le_sum
intro s hs
rw [norm_mul]
calc
_ ≤1 * ‖∑ h ∈H, phase h * V s h * star (W s h)‖ :=
mul_le_mul_of_nonneg_right (norm_idealMoebius_le_one _) (_root_.norm_nonneg _)
_ ≤ _ :=by
rw [one_mul]
exact finiteCubicBound_conjugate_bilinear _ H v w phase hphase