Download data/lean/OAI/NumberTheory/CubicGram/InnerExtension.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 18.6 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/CubicGram/InnerExtension.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/CubicGram/InnerExtension.lean
-
curl -L -o InnerExtension.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/CubicGram/InnerExtension.lean
18.6 kB
| import Mathlib | |
| import OAI.NumberTheory.CubicGram.SieveImprovement | |
| namespace OAI | |
| /-! Full inner cube covers and sharp coefficient extension bounds. -/ | |
| section | |
| noncomputable section | |
| open scoped BigOperators | |
| Classical.propDecidable | |
| namespace CubicFirstMoment | |
| lemma complex_norm_sum_sq_le {ΞΉ : Type*} (I : Finset ΞΉ) (v : ΞΉ β β) : | |
| ββ i β I, v iβ^2 β€ (I.card : β)*β i β I, βv iβ^2 := by | |
| have ht := norm_sum_le I v | |
| have hc := Finset.sum_mul_sq_le_sq_mul_sq I (fun _ => (1 : β)) (fun i => βv iβ) | |
| simp only [one_mul,one_pow,Finset.sum_const,nsmul_eq_mul,mul_one] at hc | |
| exact (pow_le_pow_leftβ (_root_.norm_nonneg _) ht 2).trans hc | |
| lemma innerCubeBlock_fixed_mass (P S : Finset Eisenstein) | |
| (hP : β a β P, primary a) (hS : β s β S, primary s) | |
| (r : Eisenstein) (v : Eisenstein β β) : | |
| (β a β P, ββ s β S, v s*cubicSymbol a (r*s)β^2) β€ | |
| finiteCubicBound S P * β s β S, βv sβ^2 := by | |
| apply le_trans _ (finiteCubicBound_controls_mass S P v) | |
| apply Finset.sum_le_sum | |
| intro a ha | |
| have he : (β s β S, v s*cubicSymbol a (r*s)) = | |
| cubicSymbol a r * β s β S, v s*cubicSymbol s a := by | |
| rw [Finset.mul_sum] | |
| apply Finset.sum_congr rfl | |
| intro s hs | |
| rw [cubicSymbol_mul_upper (hP a ha),cubic_reciprocity (hP a ha) (hS s hs)] | |
| ring | |
| rw [he,norm_mul,mul_pow] | |
| apply mul_le_of_le_one_left (sq_nonneg _) | |
| exact (pow_le_pow_leftβ (_root_.norm_nonneg _) (norm_cubicSymbol_le_one (hP a ha) r) 2).trans_eq (by norm_num) | |
| theorem innerCubeBlock_mass (P S T C : Finset Eisenstein) | |
| (hP : β a β P, primary a) (hS : β s β S, primary s) | |
| (r : Eisenstein) (v : Eisenstein β Eisenstein β Eisenstein β β) | |
| (D : β) (_hD : 0 β€ D) (hv : β s β S, β t β T, β c β C, βv s t cβ β€ D) : | |
| (β a β P, ββ t β T, β c β C, β s β S, | |
| v s t c*cubicSymbol a (r*(s*t^2*c^3))β^2) β€ | |
| ((T.card : β)*C.card)^2 * finiteCubicBound S P * S.card * D^2 := by | |
| have hrow (t : Eisenstein) (ht : t β T) (c : Eisenstein) (hc : c β C) : | |
| (β a β P, ββ s β S, v s t c*cubicSymbol a (r*(s*t^2*c^3))β^2) β€ | |
| finiteCubicBound S P * S.card * D^2 := by | |
| have he : β s : Eisenstein, r*(s*t^2*c^3) = (r*t^2*c^3)*s := by intro s; ring | |
| simp_rw [he] | |
| apply (innerCubeBlock_fixed_mass P S hP hS _ (fun s => v s t c)).trans | |
| have hh : (β s β S, βv s t cβ^2) β€ (S.card : β)*D^2 := by | |
| calc | |
| _ β€ β s β S, D^2 := Finset.sum_le_sum (fun s hs => | |
| pow_le_pow_leftβ (_root_.norm_nonneg _) (hv s hs t ht c hc) 2) | |
| _ = _ := by simp | |
| exact (mul_le_mul_of_nonneg_left hh (finiteCubicBound_nonneg _ _)).trans_eq (by ring) | |
| have htriangle (a : Eisenstein) : | |
| ββ t β T, β c β C, β s β S, v s t c*cubicSymbol a (r*(s*t^2*c^3))β^2 β€ | |
| ((T.card : β)*C.card)*β t β T, β c β C, | |
| ββ s β S, v s t c*cubicSymbol a (r*(s*t^2*c^3))β^2 := by | |
| simpa only [Finset.product_eq_sprod,Finset.sum_product,Finset.card_product,Nat.cast_mul] using | |
| complex_norm_sum_sq_le (T.product C) | |
| (fun z => β s β S, v s z.1 z.2*cubicSymbol a (r*(s*z.1^2*z.2^3))) | |
| calc | |
| _ β€ β a β P, ((T.card : β)*C.card)*β t β T, β c β C, | |
| ββ s β S, v s t c*cubicSymbol a (r*(s*t^2*c^3))β^2 := | |
| Finset.sum_le_sum (fun a _ => htriangle a) | |
| _ = ((T.card : β)*C.card)*β t β T, β c β C, β a β P, | |
| ββ s β S, v s t c*cubicSymbol a (r*(s*t^2*c^3))β^2 := by | |
| rw [β Finset.mul_sum,Finset.sum_comm (s := P) (t := T)] | |
| congr 1 | |
| apply Finset.sum_congr rfl | |
| intro t ht | |
| exact Finset.sum_comm | |
| _ β€ ((T.card : β)*C.card)*β t β T, β c β C, | |
| finiteCubicBound S P * S.card * D^2 := by | |
| gcongr with t ht c hc | |
| exact hrow t ht c hc | |
| _ = _ := by simp only [Finset.sum_const,nsmul_eq_mul]; ring | |
| def finiteCoverCoefficient {ΞΉ : Type*} (I : Finset ΞΉ) (f : ΞΉ β Eisenstein) | |
| (H : Finset Eisenstein) (v : Eisenstein β β) (x : ΞΉ) : β := | |
| if f x β H then v (f x) / ((I.filter (fun y => f y = f x)).card : β) else 0 | |
| lemma finiteCoverCoefficient_norm_le {ΞΉ : Type*} (I : Finset ΞΉ) (f : ΞΉ β Eisenstein) | |
| (H : Finset Eisenstein) (v : Eisenstein β β) (D : β) (hD : 0 β€ D) | |
| (hv : β n β H, βv nβ β€ D) {x : ΞΉ} (hx : x β I) : | |
| βfiniteCoverCoefficient I f H v xβ β€ D := by | |
| unfold finiteCoverCoefficient | |
| split_ifs with h | |
| Β· have hc : 1 β€ (I.filter (fun y => f y = f x)).card := | |
| Finset.one_le_card.mpr β¨x,Finset.mem_filter.mpr β¨hx,rflβ©β© | |
| rw [norm_div,Complex.norm_natCast] | |
| exact (div_le_self (_root_.norm_nonneg _) (by exact_mod_cast hc)).trans (hv _ h) | |
| Β· simpa using hD | |
| lemma finiteCoverCoefficient_sum {ΞΉ : Type*} (I : Finset ΞΉ) (f : ΞΉ β Eisenstein) | |
| (H : Finset Eisenstein) (hcover : H β I.image f) | |
| (v k : Eisenstein β β) : | |
| (β x β I, finiteCoverCoefficient I f H v x * k (f x)) = | |
| β n β H, v n*k n := by | |
| classical | |
| have he : (β x β I, finiteCoverCoefficient I f H v x * k (f x)) = | |
| β x β I with f x β H, | |
| (v (f x) / ((I.filter (fun y => f y = f x)).card : β))*k (f x) := by | |
| rw [Finset.sum_filter] | |
| apply Finset.sum_congr rfl | |
| intro x hx | |
| simp only [finiteCoverCoefficient,ite_mul,zero_mul] | |
| rw [he,β Finset.sum_fiberwise_eq_sum_filter' I H f | |
| (fun n => (v n / ((I.filter (fun y => f y = n)).card : β))*k n)] | |
| apply Finset.sum_congr rfl | |
| intro n hn | |
| have hc : (I.filter (fun y => f y = n)).card β 0 := by | |
| obtain β¨x,hx,hfxβ© := Finset.mem_image.mp (hcover hn) | |
| exact Finset.card_ne_zero.mpr β¨x,Finset.mem_filter.mpr β¨hx,hfxβ©β© | |
| have hc' : ((I.filter (fun y => f y = n)).card : β) β 0 := by exact_mod_cast hc | |
| simp only [Finset.sum_const,nsmul_eq_mul] | |
| field_simp | |
| abbrev InnerCubeIndex := (_index : βΓβΓβ) Γ (EisensteinΓEisensteinΓEisensteinΓEisenstein) | |
| def innerCubeIndices (j : β) : Finset InnerCubeIndex := | |
| (cubeDyadTriples j).sigma (fun z => (nonzeroNormBall 729).product | |
| ((squarefreePrimaryDyad z.1).product | |
| ((squarefreePrimaryDyad z.2.1).product (frequencyDyad z.2.2)))) | |
| def innerCubeValue (q : InnerCubeIndex) : Eisenstein := | |
| q.2.1*(q.2.2.1*q.2.2.2.1^2*q.2.2.2.2^3) | |
| lemma frequencyDyad_subset_innerCubeImage (j : β) : | |
| frequencyDyad j β (innerCubeIndices j).image innerCubeValue := by | |
| intro n hn | |
| have hh := frequencyDyad_subset_cubeCover j hn | |
| obtain β¨z,hz,hmβ© := Finset.mem_biUnion.mp hh | |
| obtain β¨r,hr,hmβ© := Finset.mem_biUnion.mp hm | |
| obtain β¨m,hm,heβ© := Finset.mem_image.mp hm | |
| obtain β¨β¨s,t,cβ©,hstc,hemβ© := Finset.mem_image.mp hm | |
| obtain β¨hs,htcβ© := Finset.mem_product.mp hstc | |
| obtain β¨ht,hcβ© := Finset.mem_product.mp htc | |
| refine Finset.mem_image.mpr β¨β¨z,r,s,t,cβ©,?_,?_β© | |
| Β· exact Finset.mem_sigma.mpr β¨hz,Finset.mem_product.mpr β¨hr, | |
| Finset.mem_product.mpr β¨hs,Finset.mem_product.mpr β¨ht,hcβ©β©β©β© | |
| Β· dsimp [innerCubeValue] | |
| rw [β he,β hem] | |
| def innerCubeCoefficient (j : β) (v : Eisenstein β β) : InnerCubeIndex β β := | |
| finiteCoverCoefficient (innerCubeIndices j) innerCubeValue (frequencyDyad j) v | |
| def innerCubeBlockSum (j : β) (v : Eisenstein β β) (a : Eisenstein) | |
| (z : βΓβΓβ) (r : Eisenstein) : β := | |
| β t β squarefreePrimaryDyad z.2.1, β c β frequencyDyad z.2.2, | |
| β s β squarefreePrimaryDyad z.1, | |
| innerCubeCoefficient j v β¨z,r,s,t,cβ©*cubicSymbol a (r*(s*t^2*c^3)) | |
| lemma innerCubeCoefficient_sum (j : β) (v : Eisenstein β β) (a : Eisenstein) : | |
| (β n β frequencyDyad j, v n*cubicSymbol a n) = | |
| β z β cubeDyadTriples j, β r β nonzeroNormBall 729, | |
| innerCubeBlockSum j v a z r := by | |
| rw [β finiteCoverCoefficient_sum (innerCubeIndices j) innerCubeValue (frequencyDyad j) | |
| (frequencyDyad_subset_innerCubeImage j) v (cubicSymbol a)] | |
| simp only [innerCubeIndices,Finset.sum_sigma,Finset.product_eq_sprod,Finset.sum_product] | |
| apply Finset.sum_congr rfl | |
| intro z hz | |
| apply Finset.sum_congr rfl | |
| intro r hr | |
| dsimp only [innerCubeBlockSum,innerCubeValue,innerCubeCoefficient] | |
| rw [Finset.sum_comm (s := squarefreePrimaryDyad z.1) (t := squarefreePrimaryDyad z.2.1)] | |
| apply Finset.sum_congr rfl | |
| intro t ht | |
| exact Finset.sum_comm | |
| lemma innerCubeCoefficient_block_mass (P : Finset Eisenstein) (hP : β a β P, primary a) | |
| (j : β) (v : Eisenstein β β) (D : β) (hD : 0 β€ D) | |
| (hv : β n β frequencyDyad j, βv nβ β€ D) | |
| (z : βΓβΓβ) (hz : z β cubeDyadTriples j) (r : Eisenstein) | |
| (hr : r β nonzeroNormBall 729) : | |
| (β a β P, βinnerCubeBlockSum j v a z rβ^2) β€ | |
| (((squarefreePrimaryDyad z.2.1).card : β)*(frequencyDyad z.2.2).card)^2 * | |
| finiteCubicBound (squarefreePrimaryDyad z.1) P * | |
| (squarefreePrimaryDyad z.1).card * D^2 := by | |
| apply innerCubeBlock_mass P _ _ _ hP | |
| (fun s hs => (mem_squarefreePrimaryDyad.mp hs).2.1) r | |
| (fun s t c => innerCubeCoefficient j v β¨z,r,s,t,cβ©) D hD | |
| intro s hs t ht c hc | |
| apply finiteCoverCoefficient_norm_le _ _ _ _ D hD hv | |
| exact Finset.mem_sigma.mpr β¨hz,Finset.mem_product.mpr β¨hr, | |
| Finset.mem_product.mpr β¨hs,Finset.mem_product.mpr β¨ht,hcβ©β©β©β© | |
| lemma complex_mass_sum_sq_le {ΞΉ ΞΊ : Type*} (I : Finset ΞΉ) (P : Finset ΞΊ) | |
| (F : ΞΊ β ΞΉ β β) : | |
| (β a β P, ββ i β I, F a iβ^2) β€ | |
| (I.card : β)*β i β I, β a β P, βF a iβ^2 := by | |
| calc | |
| _ β€ β a β P, (I.card : β)*β i β I, βF a iβ^2 := | |
| Finset.sum_le_sum (fun a _ => complex_norm_sum_sq_le I (F a)) | |
| _ = _ := by rw [β Finset.mul_sum,Finset.sum_comm] | |
| theorem innerCubeCover_mass (P : Finset Eisenstein) (hP : β a β P, primary a) | |
| (j : β) (v : Eisenstein β β) (D : β) (hD : 0 β€ D) | |
| (hv : β n β frequencyDyad j, βv nβ β€ D) : | |
| (β a β P, ββ n β frequencyDyad j, v n*cubicSymbol a nβ^2) β€ | |
| (cubeDyadTriples j).card * ((nonzeroNormBall 729).card : β)^2 * | |
| β z β cubeDyadTriples j, | |
| (((squarefreePrimaryDyad z.2.1).card : β)*(frequencyDyad z.2.2).card)^2 * | |
| finiteCubicBound (squarefreePrimaryDyad z.1) P * | |
| (squarefreePrimaryDyad z.1).card * D^2 := by | |
| have htriangle := complex_mass_sum_sq_le | |
| ((cubeDyadTriples j).product (nonzeroNormBall 729)) P | |
| (fun a q => innerCubeBlockSum j v a q.1 q.2) | |
| simp only [Finset.product_eq_sprod,Finset.sum_product,Finset.card_product,Nat.cast_mul] | |
| at htriangle | |
| simp_rw [innerCubeCoefficient_sum j v] | |
| apply htriangle.trans | |
| calc | |
| _ β€ ((cubeDyadTriples j).card : β)*(nonzeroNormBall 729).card * | |
| β z β cubeDyadTriples j, β r β nonzeroNormBall 729, | |
| (((squarefreePrimaryDyad z.2.1).card : β)*(frequencyDyad z.2.2).card)^2 * | |
| finiteCubicBound (squarefreePrimaryDyad z.1) P * | |
| (squarefreePrimaryDyad z.1).card * D^2 := by | |
| apply mul_le_mul_of_nonneg_left _ (by positivity) | |
| exact Finset.sum_le_sum (fun z hz => Finset.sum_le_sum (fun r hr => | |
| innerCubeCoefficient_block_mass P hP j v D hD hv z hz r hr)) | |
| _ = _ := by simp only [Finset.sum_const,nsmul_eq_mul,β Finset.mul_sum]; ring | |
| theorem innerCubeBlock_sharp {Ξ΅ : β} (hΞ΅ : 0 < Ξ΅) : | |
| β C : β, 0 < C β§ β (P : Finset Eisenstein) (N : β), 1 β€ N β | |
| (β a β P, primary a β§ Squarefree a β§ norm a β€ N) β | |
| β (j : β) (z : βΓβΓβ), z β cubeDyadTriples j β | |
| (((squarefreePrimaryDyad z.2.1).card : β)*(frequencyDyad z.2.2).card)^2 * | |
| finiteCubicBound (squarefreePrimaryDyad z.1) P * | |
| (squarefreePrimaryDyad z.1).card β€ | |
| C*(N*(128*(2 : β)^j))^Ξ΅*(128*(2 : β)^j)* | |
| (N+128*(2 : β)^j+(N*(128*(2 : β)^j))^(2/3 : β)) := by | |
| obtain β¨C,hC,hsharpβ© := finiteCubicBound_sharp Ξ΅ hΞ΅ | |
| refine β¨18^5*C,by positivity,?_β© | |
| intro P N hN hP j z hz | |
| let S : β := 2*(2 : β)^z.1 | |
| let T : β := 2*(2 : β)^z.2.1 | |
| let K : β := 2*(2 : β)^z.2.2 | |
| let J : β := 128*(2 : β)^j | |
| have htwo (i : β) : (1 : β) β€ 2*2^i := by | |
| have hh : (1 : β) β€ 2^i := one_le_powβ (by norm_num) | |
| linarith | |
| have hS : 1 β€ S := htwo _ | |
| have hT : 1 β€ T := htwo _ | |
| have hK : 1 β€ K := htwo _ | |
| have hp : S*T^2*K^3 β€ J := cube_scaled_sizes hz | |
| have hSJ : S β€ J := by | |
| apply le_trans _ hp | |
| exact (le_mul_of_one_le_right (by positivity : 0 β€ S) (one_le_powβ hT)).trans | |
| (le_mul_of_one_le_right (by positivity) (one_le_powβ hK)) | |
| have hsf : β s β squarefreePrimaryDyad z.1, | |
| primary s β§ Squarefree s β§ norm s β€ S := by | |
| intro s hs | |
| exact β¨(mem_squarefreePrimaryDyad.mp hs).2.1,(mem_squarefreePrimaryDyad.mp hs).2.2, | |
| (frequencyDyad_norm (mem_squarefreePrimaryDyad.mp hs).1).2β© | |
| have hb : finiteCubicBound (squarefreePrimaryDyad z.1) P β€ | |
| C*(N*J)^Ξ΅*(N+J+(N*J)^(2/3 : β)) := by | |
| apply (hsharp _ _ N S hN hS hsf hP).trans | |
| gcongr | |
| have hcardS : ((squarefreePrimaryDyad z.1).card : β) β€ 18*S := by | |
| dsimp [S]; nlinarith [squarefreePrimaryDyad_card_le z.1] | |
| have hcardT : ((squarefreePrimaryDyad z.2.1).card : β) β€ 18*T := by | |
| dsimp [T]; nlinarith [squarefreePrimaryDyad_card_le z.2.1] | |
| have hcardK : ((frequencyDyad z.2.2).card : β) β€ 18*K := by | |
| dsimp [K]; nlinarith [frequencyDyad_card_le z.2.2] | |
| have hf : (((squarefreePrimaryDyad z.2.1).card : β)*(frequencyDyad z.2.2).card)^2 * | |
| (squarefreePrimaryDyad z.1).card β€ 18^5*J := by | |
| calc | |
| _ β€ ((18*T)*(18*K))^2*(18*S) := by gcongr | |
| _ = 18^5*(S*T^2*K^2) := by ring | |
| _ β€ 18^5*(S*T^2*K^3) := by | |
| gcongr | |
| norm_num | |
| _ β€ _ := mul_le_mul_of_nonneg_left hp (by norm_num) | |
| calc | |
| _ = ((((squarefreePrimaryDyad z.2.1).card : β)*(frequencyDyad z.2.2).card)^2 * | |
| (squarefreePrimaryDyad z.1).card)*finiteCubicBound (squarefreePrimaryDyad z.1) P := by ring | |
| _ β€ (18^5*J)*(C*(N*J)^Ξ΅*(N+J+(N*J)^(2/3 : β))) := | |
| mul_le_mul hf hb (finiteCubicBound_nonneg _ _) (by positivity) | |
| _ = _ := by dsimp [J]; ring | |
| theorem cubic_inner_extension_scaled {Ξ΅ : β} (hΞ΅ : 0 < Ξ΅) : | |
| β C : β, 0 < C β§ β (P : Finset Eisenstein) (N : β), 1 β€ N β | |
| (β a β P, primary a β§ Squarefree a β§ norm a β€ N) β | |
| β (j : β) (v : Eisenstein β β) (D : β), 0 β€ D β | |
| (β n β frequencyDyad j, βv nβ β€ D) β | |
| (β a β P, ββ n β frequencyDyad j, v n*cubicSymbol a nβ^2) β€ | |
| C*(N*(128*(2 : β)^j))^Ξ΅*(128*(2 : β)^j)* | |
| (N+128*(2 : β)^j+(N*(128*(2 : β)^j))^(2/3 : β))*D^2 := by | |
| obtain β¨B,hB,hblockβ© := innerCubeBlock_sharp (show 0 < Ξ΅/2 by linarith) | |
| obtain β¨E,hE,hpolyβ© := dyadic_polynomial_small_power 6 (show 0 < Ξ΅/2 by linarith) | |
| let R : β := (nonzeroNormBall 729).card | |
| refine β¨(R+1)^2*B*E,by dsimp [R]; positivity,?_β© | |
| intro P N hN hP j v D hD hv | |
| let J : β := 128*(2 : β)^j | |
| let F : β := N+J+(N*J)^(2/3 : β) | |
| have hJpos : 0 < J := by dsimp [J]; positivity | |
| have hNpos : 0 < N := zero_lt_one.trans_le hN | |
| have hF : 0 β€ F := by dsimp [F]; positivity | |
| have hR : 0 β€ R := by dsimp [R]; positivity | |
| have hR' : R β€ R+1 := by linarith | |
| have hcount : ((cubeDyadTriples j).card : β)^2 β€ E*J^(Ξ΅/2) := by | |
| have hc : ((cubeDyadTriples j).card : β) β€ ((j : β)+2)^3 := by | |
| exact_mod_cast cubeDyadTriples_card j | |
| calc | |
| _ β€ (((j : β)+2)^3)^2 := by gcongr | |
| _ = ((j : β)+2)^6 := by ring | |
| _ β€ E*((2 : β)^j)^(Ξ΅/2) := hpoly j | |
| _ β€ _ := by | |
| gcongr | |
| dsimp [J] | |
| have hh : (0 : β) β€ 2^j := by positivity | |
| linarith | |
| have heps : J^(Ξ΅/2)*(N*J)^(Ξ΅/2) β€ (N*J)^Ξ΅ := by | |
| calc | |
| _ β€ (N*J)^(Ξ΅/2)*(N*J)^(Ξ΅/2) := by | |
| gcongr | |
| exact le_mul_of_one_le_left hJpos.le hN | |
| _ = _ := by rw [β Real.rpow_add (by positivity)]; congr 1; ring | |
| have hh := innerCubeCover_mass P (fun a ha => (hP a ha).1) j v D hD hv | |
| apply hh.trans | |
| calc | |
| _ β€ (cubeDyadTriples j).card * R^2 * | |
| β z β cubeDyadTriples j, B*(N*J)^(Ξ΅/2)*J*F*D^2 := by | |
| apply mul_le_mul_of_nonneg_left _ (by positivity) | |
| apply Finset.sum_le_sum | |
| intro z hz | |
| exact mul_le_mul_of_nonneg_right (hblock P N hN hP j z hz) (sq_nonneg D) | |
| _ = ((cubeDyadTriples j).card : β)^2 * R^2 * B*(N*J)^(Ξ΅/2)*J*F*D^2 := by | |
| simp only [Finset.sum_const,nsmul_eq_mul]; ring | |
| _ β€ (E*J^(Ξ΅/2)) * (R+1)^2 * B*(N*J)^(Ξ΅/2)*J*F*D^2 := by | |
| gcongr | |
| _ = ((R+1)^2*B*E)* (J^(Ξ΅/2)*(N*J)^(Ξ΅/2))*J*F*D^2 := by ring | |
| _ β€ ((R+1)^2*B*E)* (N*J)^Ξ΅*J*F*D^2 := by gcongr | |
| _ = _ := rfl | |
| theorem cubic_inner_extension {Ξ΅ : β} (hΞ΅ : 0 < Ξ΅) : | |
| β C : β, 0 < C β§ β (P : Finset Eisenstein) (N : β), 1 β€ N β | |
| (β a β P, primary a β§ Squarefree a β§ norm a β€ N) β | |
| β (j : β) (v : Eisenstein β β) (D : β), 0 β€ D β | |
| (β n β frequencyDyad j, βv nβ β€ D) β | |
| (β a β P, ββ n β frequencyDyad j, v n*cubicSymbol a nβ^2) β€ | |
| C*(N*(2 : β)^j)^Ξ΅*(2 : β)^j* | |
| (N+(2 : β)^j+(N*(2 : β)^j)^(2/3 : β))*D^2 := by | |
| obtain β¨C,hC,hβ© := cubic_inner_extension_scaled hΞ΅ | |
| refine β¨C*128^Ξ΅*128^2,by positivity,?_β© | |
| intro P N hN hP j v D hD hv | |
| have hN0 : 0 β€ N := zero_le_one.trans hN | |
| have hJ0 : 0 < (2 : β)^j := by positivity | |
| have hp : (128 : β)^(2/3 : β) β€ 128 := by | |
| exact (Real.rpow_le_rpow_of_exponent_le (by norm_num) (by norm_num : (2/3 : β) β€ 1)).trans_eq (Real.rpow_one _) | |
| have hm : (N*(128*(2 : β)^j))^(2/3 : β) β€ | |
| 128*((N*(2 : β)^j)^(2/3 : β)) := by | |
| rw [show N*(128*(2 : β)^j) = 128*(N*(2 : β)^j) by ring, | |
| Real.mul_rpow (by norm_num) (by positivity)] | |
| exact mul_le_mul_of_nonneg_right hp (by positivity) | |
| have hb : N+128*(2 : β)^j+(N*(128*(2 : β)^j))^(2/3 : β) β€ | |
| 128*(N+(2 : β)^j+(N*(2 : β)^j)^(2/3 : β)) := by nlinarith | |
| have he : (N*(128*(2 : β)^j))^Ξ΅ = 128^Ξ΅*(N*(2 : β)^j)^Ξ΅ := by | |
| rw [show N*(128*(2 : β)^j) = 128*(N*(2 : β)^j) by ring, | |
| Real.mul_rpow (by norm_num) (by positivity)] | |
| apply (h P N hN hP j v D hD hv).trans | |
| rw [he] | |
| calc | |
| _ β€ C*(128^Ξ΅*(N*(2 : β)^j)^Ξ΅)*(128*(2 : β)^j)* | |
| (128*(N+(2 : β)^j+(N*(2 : β)^j)^(2/3 : β)))*D^2 := by gcongr | |
| _ = _ := by ring | |
| end CubicFirstMoment | |
| end | |
| end | |
| end OAI | |