Download data/lean/OAI/NumberTheory/CubicGram/CubicOperator.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 20.7 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/CubicGram/CubicOperator.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/CubicGram/CubicOperator.lean
-
curl -L -o CubicOperator.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/CubicGram/CubicOperator.lean
20.7 kB
| import Mathlib | |
| import OAI.NumberTheory.CubicGram.CommonFactors | |
| namespace OAI | |
| /-! Finite cubic sieve operators, bilinear norms and coprime completion. -/ | |
| section | |
| noncomputable section | |
| open scoped BigOperators ContDiff | |
| open Set Filter MeasureTheory Topology | |
| attribute [local instance] Classical.propDecidable | |
| namespace CubicFirstMoment | |
| def primarySmoothedSieveMass (S : Finset Eisenstein) (u : Eisenstein β β) | |
| (W : β β β) (M : β) : β := | |
| β' x : Eisenstein, if primary x then | |
| W (norm x / M) * (ββ n β S, u n * cubicSymbol n xβ^2 : β) else 0 | |
| lemma primarySmoothedSieveMass_gram (S : Finset Eisenstein) | |
| (hS : β n β S, primary n) (u : Eisenstein β β) | |
| (W : β β β) (hW : HasCompactSupport W) (hW' : ContDiff β β W) | |
| {M : β} (hM : 0 < M) : | |
| primarySmoothedSieveMass S u W M = | |
| β a β S, β b β S, u a * star (u b) * primaryCharacterGram a b W M := by | |
| let F (a b x : Eisenstein) : β := u a * star (u b) * | |
| (if primary x then W (norm x / M) * cubicSymbol a x * star (cubicSymbol b x) else 0) | |
| 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 then W (norm x / M) * | |
| (ββ n β S, u n * cubicSymbol n xβ^2 : β) else 0) = | |
| β a β S, β b β S, F a b x := by | |
| by_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 | |
| end CubicFirstMoment | |
| open UniqueFactorizationMonoid | |
| namespace CubicFirstMoment | |
| lemma primaryPrime_mem_factors {n p : Eisenstein} (hn : primary n) | |
| (hp : primaryPrime p) (hd : p β£ n) : p β primaryPrimeFactors n := by | |
| obtain β¨q,hq,hpqβ© := exists_mem_normalizedFactors_of_dvd | |
| (primary_ne_zero hn) hp.2.irreducible hd | |
| apply Finset.mem_image.mpr | |
| refine β¨q, Multiset.mem_toFinset.mpr hq, ?_β© | |
| apply primary_associated_eq | |
| (primaryNormalize_primary (unit_residue_of_dvd_primary hn (dvd_of_mem_normalizedFactors hq))) hp.1 | |
| exact (primaryNormalize_associated q).symm.trans hpq.symm | |
| lemma primaryPrime_mem_factors_iff {n p : Eisenstein} (hn : primary n) : | |
| p β primaryPrimeFactors n β primaryPrime p β§ p β£ n := | |
| β¨primaryPrimeFactor_spec hn, fun h => primaryPrime_mem_factors hn h.1 h.2β© | |
| lemma primeSet_subset_factors_of_prod_dvd {n : Eisenstein} (hn : primary n) | |
| {s : Finset Eisenstein} (hs : β p β s, primaryPrime p) | |
| (hd : (β p β s, p) β£ n) : s β primaryPrimeFactors n := by | |
| intro p hp | |
| exact primaryPrime_mem_factors hn (hs p hp) | |
| ((Finset.dvd_prod_of_mem (fun p : Eisenstein => p) hp).trans hd) | |
| lemma primary_moebius_universal_indicator {U : Finset Eisenstein} | |
| (hU : β p β U, primaryPrime p) {a b : Eisenstein} | |
| (ha : primary a) (hsa : Squarefree a) (haU : primaryPrimeFactors a β U) : | |
| (if IsCoprime a b then (1 : β) else 0) = | |
| β s β U.powerset, (idealMoebius (β p β s, p) : β) * | |
| (if (β p β s, p) β£ a β§ (β p β s, p) β£ b then (1 : β) else 0) := by | |
| 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 : β) else 0) := by | |
| apply Finset.sum_congr rfl | |
| intro s hs | |
| have hd : (β 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 | |
| have hnd : Β¬(β 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] | |
| theorem coprime_bilinear_moebius (S T U : Finset Eisenstein) | |
| (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, if IsCoprime a b then v a * star (w b) else 0) = | |
| β s β U.powerset, (idealMoebius (β p β s, p) : β) * | |
| (β a β S, if (β p β s, p) β£ a then v a else 0) * | |
| star (β b β T, if (β p β s, p) β£ b then w b else 0) := by | |
| have hpoint (a : Eisenstein) (ha : a β S) (b : Eisenstein) : | |
| (if IsCoprime a b then v a * star (w b) else 0) = | |
| β s β U.powerset, (idealMoebius (β p β s, p) : β) * | |
| ((if (β p β s, p) β£ a then v a else 0) * | |
| star (if (β p β s, p) β£ b then w b else 0)) := by | |
| have hi := congrArg (fun z : β => 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 using 1 | |
| Β· 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 | |
| end CubicFirstMoment | |
| namespace CubicFirstMoment | |
| def finiteCubicOperator (S H : Finset Eisenstein) : | |
| EuclideanSpace β S βL[β] EuclideanSpace β H := | |
| (Matrix.toEuclideanLin (fun (h : H) (a : S) => cubicSymbol a.val h.val)).toContinuousLinearMap | |
| def finiteCubicBound (S H : Finset Eisenstein) : β := βfiniteCubicOperator S Hβ^2 | |
| lemma finiteCubicBound_nonneg (S H : Finset Eisenstein) : 0 β€ finiteCubicBound S H := | |
| sq_nonneg _ | |
| lemma finiteCubicOperator_apply (S H : Finset Eisenstein) (u : Eisenstein β β) | |
| (h : H) : | |
| finiteCubicOperator S H (WithLp.toLp 2 (fun a : S => u a.val)) h = | |
| β a β S, u a * cubicSymbol a h.val := by | |
| 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 | |
| lemma finiteCubicBound_controls_mass (S H : Finset Eisenstein) (u : Eisenstein β β) : | |
| (β h β H, ββ a β S, u a * cubicSymbol a hβ^2) β€ | |
| finiteCubicBound S H * β a β S, βu aβ^2 := by | |
| let v : EuclideanSpace β S := WithLp.toLp 2 (fun a : S => u a.val) | |
| have hb := (finiteCubicOperator S H).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 S H v hβ^2) β€ | |
| finiteCubicBound S H * β 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 | |
| end CubicFirstMoment | |
| namespace CubicFirstMoment | |
| private def euclideanConj {ΞΉ : Type*} [Fintype ΞΉ] (v : EuclideanSpace β ΞΉ) : | |
| EuclideanSpace β ΞΉ := WithLp.toLp 2 (fun i => star (v i)) | |
| private lemma euclideanConj_norm {ΞΉ : Type*} [Fintype ΞΉ] (v : EuclideanSpace β ΞΉ) : | |
| βeuclideanConj vβ = βvβ := by | |
| apply (sq_eq_sqβ (_root_.norm_nonneg _) (_root_.norm_nonneg _)).mp | |
| simp [EuclideanSpace.norm_sq_eq, euclideanConj] | |
| private def matrixHilbertOperator {ΞΉ ΞΊ : Type*} [Fintype ΞΉ] [Fintype ΞΊ] | |
| (A : Matrix ΞΉ ΞΊ β) : EuclideanSpace β ΞΊ βL[β] EuclideanSpace β ΞΉ := | |
| A.toEuclideanLin.toContinuousLinearMap | |
| private lemma matrixHilbertOperator_conj {ΞΉ ΞΊ : Type*} [Fintype ΞΉ] [Fintype ΞΊ] | |
| (A : Matrix ΞΉ ΞΊ β) (v : EuclideanSpace β ΞΊ) : | |
| matrixHilbertOperator (A.map star) v = | |
| euclideanConj (matrixHilbertOperator A (euclideanConj v)) := by | |
| apply PiLp.ext | |
| intro i | |
| change (β j, star (A i j) * v j) = star (β j, A i j * star (v j)) | |
| simp [star_sum, star_mul, mul_comm] | |
| private lemma matrixHilbertOperator_conj_norm_le {ΞΉ ΞΊ : Type*} [Fintype ΞΉ] [Fintype ΞΊ] | |
| (A : Matrix ΞΉ ΞΊ β) : | |
| βmatrixHilbertOperator (A.map star)β β€ βmatrixHilbertOperator Aβ := by | |
| apply (ContinuousLinearMap.opNorm_le_iff (f := matrixHilbertOperator (A.map star)) | |
| (_root_.norm_nonneg (matrixHilbertOperator A))).mpr | |
| intro v | |
| rw [matrixHilbertOperator_conj, euclideanConj_norm] | |
| simpa only [euclideanConj_norm] using | |
| (matrixHilbertOperator A).le_opNorm (euclideanConj v) | |
| private lemma matrixHilbertOperator_conj_norm {ΞΉ ΞΊ : Type*} [Fintype ΞΉ] [Fintype ΞΊ] | |
| (A : Matrix ΞΉ ΞΊ β) : | |
| βmatrixHilbertOperator (A.map star)β = βmatrixHilbertOperator Aβ := by | |
| apply le_antisymm (matrixHilbertOperator_conj_norm_le A) | |
| have he : (A.map star).map star = A := by ext i j; simp | |
| have h := matrixHilbertOperator_conj_norm_le (A.map star) | |
| rwa [he] at h | |
| private lemma matrixHilbertOperator_transpose_norm {ΞΉ ΞΊ : Type*} | |
| [Fintype ΞΉ] [Fintype ΞΊ] (A : Matrix ΞΉ ΞΊ β) : | |
| βmatrixHilbertOperator A.transposeβ = βmatrixHilbertOperator Aβ := by | |
| have hc : A.transpose = (A.conjTranspose).map star := by | |
| ext i j | |
| simp | |
| rw [hc, matrixHilbertOperator_conj_norm] | |
| change βLinearMap.toContinuousLinearMap A.conjTranspose.toEuclideanLinβ = _ | |
| rw [Matrix.toEuclideanLin_conjTranspose_eq_adjoint, LinearMap.adjoint_toContinuousLinearMap] | |
| exact ContinuousLinearMap.adjoint.norm_map _ | |
| theorem finiteCubicBound_symm (S H : Finset Eisenstein) | |
| (hS : β a β S, primary a) (hH : β h β H, primary h) : | |
| finiteCubicBound S H = finiteCubicBound H S := by | |
| let A : Matrix H S β := fun h a => cubicSymbol a.val h.val | |
| have hmat : (fun (a : S) (h : H) => cubicSymbol h.val a.val) = A.transpose := by | |
| funext a h | |
| exact cubic_reciprocity (hH h.val h.property) (hS a.val a.property) | |
| unfold finiteCubicBound finiteCubicOperator | |
| rw [hmat] | |
| exact congrArg (fun x : β => x^2) (matrixHilbertOperator_transpose_norm A).symm | |
| end CubicFirstMoment | |
| namespace CubicFirstMoment | |
| theorem finiteCubicBound_bilinear (S H : Finset Eisenstein) | |
| (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 S H * | |
| ((β a β S, βv aβ^2) + (β a β S, βw aβ^2)) / 2 := by | |
| let V (h : Eisenstein) := β a β S, v a * cubicSymbol a h | |
| let W (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] | |
| _ β€ _ := by | |
| have hv := finiteCubicBound_controls_mass S H v | |
| have hw := finiteCubicBound_controls_mass S H w | |
| change (β h β H, βV hβ^2) β€ _ at hv | |
| change (β h β H, βW hβ^2) β€ _ at hw | |
| nlinarith | |
| theorem finiteCubicBound_conjugate_bilinear (S H : Finset Eisenstein) | |
| (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 S H * | |
| ((β a β S, βv aβ^2) + (β a β S, βw aβ^2)) / 2 := by | |
| have h := finiteCubicBound_bilinear S H (fun a => star (w a)) | |
| (fun a => star (v a)) phase hphase | |
| simp only [norm_star] at h | |
| have he : (β 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 | |
| end CubicFirstMoment | |
| namespace CubicFirstMoment | |
| lemma coefficientVector_norm_sq (S : Finset Eisenstein) (u : Eisenstein β β) : | |
| β(WithLp.toLp 2 (fun a : S => u a.val) : EuclideanSpace β S)β^2 = | |
| β a β S, βu aβ^2 := by | |
| rw [EuclideanSpace.norm_sq_eq] | |
| exact (Finset.sum_subtype S (fun _ => Iff.rfl) (fun a => βu aβ^2)).symm | |
| lemma finiteCubicOperator_norm_sq (S H : Finset Eisenstein) (u : Eisenstein β β) : | |
| βfiniteCubicOperator S H (WithLp.toLp 2 (fun a : S => u a.val))β^2 = | |
| β h β H, ββ a β S, u a * cubicSymbol a hβ^2 := by | |
| rw [EuclideanSpace.norm_sq_eq] | |
| change (β h : H, βfiniteCubicOperator S H (WithLp.toLp 2 (fun a : 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 | |
| lemma finiteCubicBound_le_iff (S H : Finset Eisenstein) {C : β} (hC : 0 β€ C) : | |
| finiteCubicBound S H β€ C β β u : Eisenstein β β, | |
| (β h β H, ββ a β S, u a * cubicSymbol a hβ^2) β€ | |
| C * β a β S, βu aβ^2 := by | |
| constructor | |
| Β· intro h u | |
| exact (finiteCubicBound_controls_mass S H u).trans | |
| (mul_le_mul_of_nonneg_right h (Finset.sum_nonneg (fun _ _ => sq_nonneg _))) | |
| Β· intro h | |
| have hn : βfiniteCubicOperator S Hβ β€ Real.sqrt C := by | |
| apply (ContinuousLinearMap.opNorm_le_iff (f := finiteCubicOperator S H) | |
| (Real.sqrt_nonneg C)).mpr | |
| intro v | |
| let u (a : Eisenstein) : β := if ha : a β S then v β¨a, haβ© else 0 | |
| have hv : WithLp.toLp 2 (fun a : S => u a.val) = v := by | |
| apply PiLp.ext | |
| intro a | |
| simp [u] | |
| have hh : βfiniteCubicOperator S H vβ^2 β€ C*βvβ^2 := by | |
| rw [β hv, finiteCubicOperator_norm_sq, coefficientVector_norm_sq] | |
| exact h u | |
| apply (sq_le_sqβ (_root_.norm_nonneg _) (mul_nonneg (Real.sqrt_nonneg _) (_root_.norm_nonneg _))).mp | |
| simpa only [mul_pow, Real.sq_sqrt hC] using hh | |
| exact (pow_le_pow_leftβ (_root_.norm_nonneg _) hn 2).trans_eq (Real.sq_sqrt hC) | |
| end CubicFirstMoment | |
| namespace CubicFirstMoment | |
| lemma finiteCubicBound_mono {S T H J : Finset Eisenstein} (hST : S β T) (hHJ : H β J) : | |
| finiteCubicBound S H β€ finiteCubicBound T J := by | |
| apply (finiteCubicBound_le_iff S H (finiteCubicBound_nonneg T J)).mpr | |
| intro u | |
| let v (a : Eisenstein) := if a β S then u a else 0 | |
| have hi (h : Eisenstein) : (β a β T, v a * cubicSymbol a h) = | |
| β a β S, u a * cubicSymbol a h := by | |
| calc | |
| _ = β 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]) | |
| have hv : (β a β T, βv aβ^2) = β a β S, βu aβ^2 := by | |
| calc | |
| _ = β 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 T J v | |
| simp_rw [hi, hv] at hb | |
| exact (Finset.sum_le_sum_of_subset_of_nonneg hHJ (fun _ _ _ => sq_nonneg _)).trans hb | |
| lemma finiteCubicBound_mul_support_le (Q H : Finset Eisenstein) | |
| {m : Eisenstein} (hm : primary m) (hQ : β b β Q, primary b) : | |
| finiteCubicBound (Q.image (fun b => m*b)) H β€ finiteCubicBound Q H := by | |
| apply (finiteCubicBound_le_iff _ _ (finiteCubicBound_nonneg Q H)).mpr | |
| intro u | |
| have hinj : β 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 Q H * β b β Q, βu (m*b)β^2 := | |
| finiteCubicBound_controls_mass Q H (fun b => u (m*b)) | |
| _ = _ := by rw [Finset.sum_image hinj] | |
| end CubicFirstMoment | |
| namespace CubicFirstMoment | |
| lemma norm_idealMoebius_le_one (m : Eisenstein) : β(idealMoebius m : β)β β€ 1 := by | |
| have hs : (idealMoebius m : β)^2 β€ 1 := by | |
| rw [idealMoebius_sq] | |
| split_ifs <;> norm_num | |
| have hn : β(idealMoebius m : β)β = |(idealMoebius m : β)| := | |
| Complex.norm_intCast _ | |
| rw [hn] | |
| nlinarith [sq_abs (idealMoebius m : β), abs_nonneg (idealMoebius m : β)] | |
| theorem finiteCubicBound_coprime_bilinear (S H U : Finset Eisenstein) | |
| (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, | |
| if IsCoprime a b then | |
| (v a * star (cubicSymbol a h)) * star (w b * star (cubicSymbol b h)) else 0β β€ | |
| β 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 | |
| let V (s : Finset Eisenstein) (h : Eisenstein) : β := | |
| β a β S.filter (fun a => (β p β s, p) β£ a), v a * star (cubicSymbol a h) | |
| let W (s : Finset Eisenstein) (h : Eisenstein) : β := | |
| β a β S.filter (fun a => (β p β s, p) β£ a), w a * star (cubicSymbol a h) | |
| have he (h : Eisenstein) := coprime_bilinear_moebius S S U 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, if IsCoprime a b then | |
| (v a * star (cubicSymbol a h)) * star (w b * star (cubicSymbol b h)) else 0) = | |
| β 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 : Finset Eisenstein) : | |
| (β 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 | |
| end CubicFirstMoment | |
| end | |
| end | |
| end OAI | |