Download data/lean/OAI/NumberTheory/PowerFree/NormComponents.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 16.6 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/PowerFree/NormComponents.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/PowerFree/NormComponents.lean
-
curl -L -o NormComponents.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/PowerFree/NormComponents.lean
16.6 kB
| import OAI.NumberTheory.PowerFree.CurveThresholds | |
| namespace OAI | |
| namespace QuarticPowerFree | |
| section | |
| open MvPolynomial | |
| open scoped BigOperators Classical | |
| theorem quotient_pair_generates {n d : β} (a b : Fin d β MvPolynomial (Fin n) β) | |
| (hg : Algebra.adjoin β (Set.range a βͺ Set.range b) = β€) | |
| (I : Ideal (MvPolynomial (Fin n) β)) : | |
| Algebra.adjoin β (Set.range (fun i => Ideal.Quotient.mk I (a i)) βͺ | |
| Set.range (fun i => Ideal.Quotient.mk I (b i))) = β€ := by | |
| let e := Ideal.Quotient.mkβ β I | |
| have hr : Set.range (fun i => Ideal.Quotient.mk I (a i)) βͺ Set.range (fun i => Ideal.Quotient.mk I (b i)) = | |
| e '' (Set.range a βͺ Set.range b) := by | |
| simp only [Set.image_union,β Set.range_comp] | |
| rfl | |
| rw [hr,Algebra.adjoin_image,hg] | |
| apply top_unique | |
| intro z _ | |
| obtain β¨p,rflβ© := Ideal.Quotient.mkβ_surjective β I z | |
| exact β¨p,by trivial,_root_.rflβ© | |
| theorem norm_dimension_le {n d : β} (I : Ideal (MvPolynomial (Fin n) β)) [I.IsPrime] | |
| (k : β) (a b : Fin d β MvPolynomial (Fin n) β) (q : MvPolynomial (Fin n) β) (ΞΈ : Fin d β β) | |
| (ha : β i, Ideal.Quotient.mk I (a i) β 0) | |
| (heq : β i, Ideal.Quotient.mk I (a i)^k*Ideal.Quotient.mk I (b i) = | |
| Ideal.Quotient.mk I q-algebraMap β _ (ΞΈ i)) | |
| (hg : Algebra.adjoin β (Set.range a βͺ Set.range b) = β€) | |
| (hq : Transcendental β (Ideal.Quotient.mk I q)) : affineDimension I β€ d+1 := by | |
| let := pair_projection_isAlgebraic k (fun i => Ideal.Quotient.mk I (a i)) | |
| (fun i => Ideal.Quotient.mk I (b i)) (Ideal.Quotient.mk I q) ΞΈ ha heq (quotient_pair_generates a b hg I) | |
| obtain β¨m,j,_,hj,htβ© := left_coordinates_transcendence_selection | |
| (fun i => Ideal.Quotient.mk I (a i)) (Ideal.Quotient.mk I q) hq | |
| have hm : m β€ d := by simpa using Fintype.card_le_of_injective j hj | |
| have hdim := hilbert_natDegree_eq_trdeg I (coordinateHilbert I) (coordinateHilbert_eventually I) | |
| rw [ht] at hdim | |
| have hh : affineDimension I = m+1 := by exact_mod_cast hdim | |
| omega | |
| theorem polynomial_constant_at_point {n : β} (I : Ideal (MvPolynomial (Fin n) β)) | |
| (q : MvPolynomial (Fin n) β) (t : β) | |
| (ht : algebraMap β (MvPolynomial (Fin n) β β§Έ I) t = Ideal.Quotient.mk I q) | |
| (z : Fin n β β€) (hz : PointOn I z) : MvPolynomial.aeval (fun j => (z j:β)) q = t := by | |
| have hh := congrArg (pointEvaluation I z hz) ht | |
| rw [AlgHom.commutes] at hh | |
| change t = MvPolynomial.aeval (fun j => (z j:β)) q at hh | |
| exact hh.symm | |
| theorem algebraic_polynomial_fibre_count {n : β} (S : Finset (Fin n β β€)) (F : β) | |
| (q : MvPolynomial (Fin n) β) | |
| (hf : β t : β, (S.filter (fun z => MvPolynomial.aeval (fun j => (z j:β)) q = t)).card β€ F) | |
| (I : Ideal (MvPolynomial (Fin n) β)) [I.IsPrime] | |
| (hq : IsAlgebraic β (Ideal.Quotient.mk I q)) : (S.filter (PointOn I)).card β€ F := by | |
| obtain β¨t,htβ© := algebraic_coordinate_constant (Ideal.Quotient.mk I q) hq | |
| apply (Finset.card_le_card ?_).trans (hf t) | |
| intro z hz | |
| have h := Finset.mem_filter.mp hz | |
| exact Finset.mem_filter.mpr β¨h.1,polynomial_constant_at_point I q t ht z h.2β© | |
| theorem algebraic_left_fibre_count {n d : β} (S : Finset (Fin n β β€)) (F : β) | |
| (x : Fin d β Fin n) | |
| (hf : β c : Fin d β β€, (S.filter (fun z => β i, z (x i) = c i)).card β€ F) | |
| (I : Ideal (MvPolynomial (Fin n) β)) [I.IsPrime] | |
| (hx : β i, IsAlgebraic β (Ideal.Quotient.mk I (MvPolynomial.X (x i)))) : | |
| (S.filter (PointOn I)).card β€ F := by | |
| by_cases he : (S.filter (PointOn I)).Nonempty | |
| Β· obtain β¨z,hzβ© := he | |
| have hzI := (Finset.mem_filter.mp hz).2 | |
| apply (Finset.card_le_card ?_).trans (hf (fun i => z (x i))) | |
| intro w hw | |
| obtain β¨hwS,hwIβ© := Finset.mem_filter.mp hw | |
| refine Finset.mem_filter.mpr β¨hwS,fun i => ?_β© | |
| obtain β¨t,htβ© := algebraic_coordinate_constant (Ideal.Quotient.mk I (MvPolynomial.X (x i))) (hx i) | |
| exact Int.cast_injective (Ξ± := β) ((coordinate_constant_at_point I w hwI (x i) t ht).trans | |
| (coordinate_constant_at_point I z hzI (x i) t ht).symm) | |
| Β· rw [Finset.not_nonempty_iff_eq_empty.mp he,Finset.card_empty] | |
| exact Nat.zero_le _ | |
| end | |
| section | |
| open MvPolynomial | |
| theorem norm_generic_threshold_uniform {n d h : β} (hd : 5 β€ d) (hd' : d β€ 8) | |
| (hh : 2 β€ h) (hh' : h β€ d) (E D : β) (hD : 0 < D) : | |
| β C : β, 0 β€ C β§ | |
| β (I : Ideal (MvPolynomial (Fin n) β)) [I.IsPrime] | |
| (a b : Fin d β MvPolynomial (Fin n) β) (q : MvPolynomial (Fin n) β) | |
| (ΞΈ : Fin d β β), Function.Injective ΞΈ β | |
| (β i, Ideal.Quotient.mk I (a i) β 0) β | |
| (β i, Ideal.Quotient.mk I (a i)^(d-2)*Ideal.Quotient.mk I (b i) = | |
| Ideal.Quotient.mk I q-algebraMap β _ (ΞΈ i)) β | |
| Algebra.adjoin β (Set.range a βͺ Set.range b) = β€ β | |
| Transcendental β (Ideal.Quotient.mk I q) β affineDimension I = h β affineDegree I β€ E β | |
| (β i, (a i).totalDegree β€ D) β q.totalDegree β€ D β | |
| β (w : Fin n β β), (β i, w i β 0) β | |
| (β i, a i β weightedSpace w 5) β (β i, b i β weightedSpace w 6) β | |
| β (Ο : Fin n β β), (β i, 0 < Ο i) β (β i, (w i:β) = 15*Ο i) β | |
| β T : β, 1 β€ T β | |
| T^h/((h.factorial:β)*(normBoxEnvelope d h)^h)-C*T^(h-1) β€ weightedHilbert I Ο T := by | |
| have hsucc : h-1+1 = h := by omega | |
| obtain β¨C,hC,hboundβ© := norm_real_hilbert_uniform (n := n) (d := d) (h := h-1) (K := β) | |
| (k := d-2) (by omega) 5 6 (by norm_num) (by norm_num) E D hD 15 (by norm_num) | |
| refine β¨C,hC,fun I _ a b q ΞΈ hΞΈ ha heq hg hq hdim hdeg hadeg hqdeg w hw haw hbw Ο hΟ hscale T hT => ?_β© | |
| have hb := hbound I a b q ΞΈ hΞΈ ha heq (quotient_pair_generates a b hg I) hq | |
| (hsucc βΈ hdim) (hsucc βΈ hh') hdeg hadeg hqdeg w hw haw hbw Ο hΟ hscale T hT | |
| rw [hsucc] at hb | |
| norm_num only [Nat.min_def,show (5:β) β€ 6 by omega,ite_true,Nat.cast_ofNat] at hb | |
| have hc := mul_le_mul_of_nonneg_right (normBox_generic_threshold d h hd hd' hh hh') | |
| (pow_nonneg (by linarith : 0 β€ T) h) | |
| have hc' : T^h/((h.factorial:β)*(normBoxEnvelope d h)^h) β€ | |
| 5*(((d-2)*5+6:β):β)^(h-1)*15^h/((h.factorial:β)*5^h*6^h)*T^h := by | |
| simpa only [one_div_mul_eq_div] using hc | |
| linarith only [hb,hc'] | |
| theorem norm_full_threshold_uniform {n d : β} (hd : 5 β€ d) (hd' : d β€ 8) : β C : β, 0 β€ C β§ β (I : Ideal (MvPolynomial (Fin n) β)) [I.IsPrime] | |
| (a b : Fin d β MvPolynomial (Fin n) β) (q : MvPolynomial (Fin n) β) | |
| (ΞΈ : Fin d β β), | |
| (β i, Ideal.Quotient.mk I (a i) β 0) β | |
| (β i, Ideal.Quotient.mk I (a i)^(d-2)*Ideal.Quotient.mk I (b i) = | |
| Ideal.Quotient.mk I q-algebraMap β _ (ΞΈ i)) β | |
| Algebra.adjoin β (Set.range a βͺ Set.range b) = β€ β | |
| Transcendental β (Ideal.Quotient.mk I q) β affineDimension I = d+1 β | |
| β (w : Fin n β β), (β i, w i β 0) β | |
| (β i, a i β weightedSpace w 5) β (β i, b i β weightedSpace w 6) β | |
| β (Ο : Fin n β β), (β i, 0 < Ο i) β (β i, (w i:β) = 15*Ο i) β | |
| β T : β, 1 β€ T β | |
| T^(d+1)/(((d+1).factorial:β)*(normBoxEnvelope d (d+1))^(d+1))-C*T^d β€ weightedHilbert I Ο T := by | |
| have hsucc : d-1+1 = d := by omega | |
| have hsucc' : d-1+2 = d+1 := by omega | |
| have hb := norm_full_real_hilbert_uniform (N := n) (n := d-1) (K := β) | |
| (d-2) 5 6 (by norm_num) (by norm_num) 15 (by norm_num) | |
| rw [hsucc,hsucc'] at hb | |
| obtain β¨C,hC,hboundβ© := hb | |
| refine β¨C,hC,fun I _ a b q ΞΈ ha heq hg hq hdim w hw haw hbw Ο hΟ hscale T hT => ?_β© | |
| have hb := hbound I a b q ΞΈ ha heq (quotient_pair_generates a b hg I) hq | |
| hdim w hw haw hbw Ο hΟ hscale T hT | |
| have hc := mul_le_mul_of_nonneg_right (normBox_full_threshold d hd hd') | |
| (pow_nonneg (by linarith : 0 β€ T) (d+1)) | |
| have hc' : T^(d+1)/(((d+1).factorial:β)*(normBoxEnvelope d (d+1))^(d+1)) β€ | |
| (((d-2)*5+6:β):β)^(d-1)*15^(d+1)/(((d+1).factorial:β)*5^d*6^d)*T^(d+1) := by | |
| simpa only [one_div_mul_eq_div] using hc | |
| norm_num only [Nat.cast_ofNat] at hb | |
| linarith only [hb,hc'] | |
| open MvPolynomial | |
| open scoped BigOperators Classical | |
| structure NormBoxSystem (n d D : β) (Ο : Fin n β β) (w : Fin n β β) where | |
| Carrier : Type | |
| [field : Field Carrier] | |
| [charZero : CharZero Carrier] | |
| v : Fin d β Carrier | |
| independent : LinearIndependent β v | |
| Ο : Fin d β Carrier β+* β | |
| ΞΈ : Fin d β β | |
| distinct : Function.Injective ΞΈ | |
| x : Fin d β Fin n | |
| xweight : β i, Ο (x i) = 1/3 | |
| b : Fin d β MvPolynomial (Fin n) β | |
| q : MvPolynomial (Fin n) β | |
| generates : Algebra.adjoin β | |
| (Set.range (fun i => coordinateLinearForm x (Ο i β v)) βͺ Set.range b) = β€ | |
| leftDegree : β i, (coordinateLinearForm x (Ο i β v)).totalDegree β€ D | |
| qDegree : q.totalDegree β€ D | |
| leftWeight : β i, coordinateLinearForm x (Ο i β v) β weightedSpace w 5 | |
| rightWeight : β i, b i β weightedSpace w 6 | |
| attribute [instance] NormBoxSystem.field NormBoxSystem.charZero | |
| noncomputable def NormBoxSystem.a {n d D : β} {Ο : Fin n β β} {w : Fin n β β} | |
| (M : NormBoxSystem n d D Ο w) (i : Fin d) : MvPolynomial (Fin n) β := | |
| coordinateLinearForm M.x (M.Ο i β M.v) | |
| noncomputable def NormBoxSystem.equation {n d D : β} {Ο : Fin n β β} {w : Fin n β β} | |
| (M : NormBoxSystem n d D Ο w) (i : Fin d) : MvPolynomial (Fin n) β := | |
| M.a i^(d-2)*M.b i-M.q+C (M.ΞΈ i) | |
| noncomputable def NormBoxSystem.ideal {n d D : β} {Ο : Fin n β β} {w : Fin n β β} | |
| (M : NormBoxSystem n d D Ο w) : Ideal (MvPolynomial (Fin n) β) := | |
| Ideal.span (Set.range M.equation) | |
| theorem NormBoxSystem.quotient_equations {n d D : β} {Ο : Fin n β β} {w : Fin n β β} | |
| (M : NormBoxSystem n d D Ο w) (I : Ideal (MvPolynomial (Fin n) β)) (hI : M.ideal β€ I) : | |
| β i, Ideal.Quotient.mk I (M.a i)^(d-2)*Ideal.Quotient.mk I (M.b i) = | |
| Ideal.Quotient.mk I M.q-algebraMap β _ (M.ΞΈ i) := by | |
| intro i | |
| have hm : M.equation i β I := hI (Ideal.subset_span β¨i,rflβ©) | |
| have he := (Ideal.Quotient.eq_zero_iff_mem).mpr hm | |
| simp only [NormBoxSystem.equation,map_add,map_sub,map_mul,map_pow] at he | |
| change Ideal.Quotient.mk I (M.a i)^(d-2)*Ideal.Quotient.mk I (M.b i)- | |
| Ideal.Quotient.mk I M.q+algebraMap β (MvPolynomial (Fin n) β β§Έ I) (M.ΞΈ i) = 0 at he | |
| linear_combination he | |
| theorem NormBoxSystem.quotient_left_nonzero {n d D : β} {Ο : Fin n β β} {w : Fin n β β} | |
| (M : NormBoxSystem n d D Ο w) (I : Ideal (MvPolynomial (Fin n) β)) | |
| (z : Fin n β β€) (hz : PointOn I z) | |
| (ha : β i, MvPolynomial.aeval (fun j => (z j:β)) (M.a i) β 0) : | |
| β i, Ideal.Quotient.mk I (M.a i) β 0 := by | |
| intro i hi | |
| have hh := congrArg (pointEvaluation I z hz) hi | |
| rw [map_zero] at hh | |
| change MvPolynomial.aeval (fun j => (z j:β)) (M.a i) = 0 at hh | |
| exact ha i hh | |
| theorem NormBoxSystem.right_real_weight {n d D : β} {Ο : Fin n β β} {w : Fin n β β} | |
| (M : NormBoxSystem n d D Ο w) (hΟ : β i, 0 < Ο i) (hscale : β i, (w i:β) = 15*Ο i) | |
| (I : Ideal (MvPolynomial (Fin n) β)) (i : Fin d) : | |
| Ideal.Quotient.mk I (M.b i) β weightedFunctions I Ο (2/5) := by | |
| have hh := weightedSpace_map_le_weightedFunctions I w Ο hΟ 15 (by norm_num) hscale (2/5) (by norm_num) | |
| norm_num only [show (15:β)*(2/5) = 6 by norm_num,Nat.floor_natCast] at hh | |
| exact hh β¨M.b i,M.rightWeight i,rflβ© | |
| end | |
| open MvPolynomial | |
| open scoped BigOperators Classical | |
| theorem norm_component_alternatives {n d h D : β} (hd : 5 β€ d) (hd' : d β€ 8) (hh : 1 β€ h) (hh' : h β€ d+1) (hD : 0 < D) | |
| (Ο : Fin n β β) (hΟ : β i, 0 < Ο i) (hΟW : β i, Ο i β€ 2/5) | |
| (w : Fin n β β) (hw : β i, w i β 0) (hscale : β i, (w i:β) = 15*Ο i) | |
| (M : NormBoxSystem n d D Ο w) (Cbox : β) (hCbox : 0 < Cbox) | |
| (F E : β) (Ξ΅ : β) (hΞ΅ : 0 < Ξ΅) : | |
| β K H : β, 1 β€ K β§ 0 β€ H β§ β X : β, 2 β€ X β β S : Finset (Fin n β β€), | |
| (β z β S, β j, |(z j:β)| β€ Cbox*X^(Ο j)) β | |
| (β t : β, (S.filter (fun z => MvPolynomial.aeval (fun j => (z j:β)) M.q = t)).card β€ F) β | |
| (β c : Fin d β β€, (S.filter (fun z => β i, z (M.x i) = c i)).card β€ F) β | |
| β (I : Ideal (MvPolynomial (Fin n) β)), I.IsPrime β M.ideal β€ I β | |
| affineDimension I = h β affineDegree I β€ E β | |
| (β i, Ideal.Quotient.mk I (M.a i) β 0) β | |
| ((S.filter (PointOn I)).card:β) β€ K*X^Ξ΅ β¨ | |
| β T : β, 1 β€ T β T^h/((h.factorial:β)*(normBoxEnvelope d h)^h)-H*T^(h-1) β€ weightedHilbert I Ο T := by | |
| classical | |
| have hsmall (X : β) (hX : 2 β€ X) (S : Finset (Fin n β β€)) (I : Ideal (MvPolynomial (Fin n) β)) | |
| (K : β) (hKF : (F:β) β€ K) (hK : 0 β€ K) (hcard : (S.filter (PointOn I)).card β€ F) : | |
| ((S.filter (PointOn I)).card:β) β€ K*X^Ξ΅ := by | |
| have hx : 1 β€ X^Ξ΅ := Real.one_le_rpow (by linarith) hΞ΅.le | |
| calc | |
| _ β€ (F:β) := by exact_mod_cast hcard | |
| _ β€ K := hKF | |
| _ β€ K*X^Ξ΅ := by nlinarith | |
| by_cases h1 : h = 1 | |
| Β· subst h | |
| obtain β¨B,H,hB,hH,hcurveβ© := norm_curve_alternatives (n := n) (d := d) (by omega) | |
| (d-2) (by omega) Ο hΟ M.x (1/3) (2/5) (2/5) Cbox (by norm_num) (by norm_num) | |
| (by norm_num) hCbox M.xweight hΟW E Ξ΅ hΞ΅ | |
| let K : β := max 1 (max B F) | |
| have hK : 1 β€ K := le_max_left _ _ | |
| have hKF : (F:β) β€ K := (le_max_right _ _).trans (le_max_right _ _) | |
| have hKB : B β€ K := (le_max_left _ _).trans (le_max_right _ _) | |
| refine β¨K,H,hK,hH,fun X hX S hbox hnF haF I hI hMI hdim hdeg ha => ?_β© | |
| let : I.IsPrime := hI | |
| by_cases hq : IsAlgebraic β (Ideal.Quotient.mk I M.q) | |
| Β· exact Or.inl (hsmall X hX S I K hKF (by linarith) (algebraic_polynomial_fibre_count S F M.q hnF I hq)) | |
| by_cases hxa : β i, IsAlgebraic β (Ideal.Quotient.mk I (MvPolynomial.X (M.x i))) | |
| Β· exact Or.inl (hsmall X hX S I K hKF (by linarith) (algebraic_left_fibre_count S F M.x haF I hxa)) | |
| push Not at hxa | |
| obtain β¨s,hsβ© := hxa | |
| have hsS (z) (hz : z β S.filter (PointOn I)) := (Finset.mem_filter.mp hz).1 | |
| have hh := hcurve M.Carrier M.v M.independent M.Ο M.ΞΈ M.distinct X hX | |
| (S.filter (PointOn I)) (fun z hz j => hbox z (hsS z hz) j) I hI hdim.le hdeg | |
| (fun z hz => (Finset.mem_filter.mp hz).2) M.b M.q | |
| (M.right_real_weight hΟ hscale I) hq (M.quotient_equations I hMI) s hs | |
| rcases hh with hc | hHilb | |
| Β· left | |
| exact hc.trans (mul_le_mul_of_nonneg_right hKB (Real.rpow_nonneg (by linarith) _)) | |
| Β· right | |
| intro T hT | |
| have hb := hHilb T (by linarith) | |
| have hc := mul_le_mul_of_nonneg_right (normBox_curve_threshold d hd hd') (by linarith : 0 β€ T) norm_num only [pow_one,Nat.factorial_one,Nat.cast_one,one_mul,Nat.sub_self,pow_zero,mul_one] | |
| have hc' : T/normBoxEnvelope d 1 β€ min (2/(1/3:β)) (max (1/(1/3:β)) (((d-1)*(d-2-1):β)/(2/5:β)))*T := by | |
| simpa only [one_div_mul_eq_div] using hc | |
| linarith only [hb,hc'] | |
| Β· have hh2 : 2 β€ h := by omega | |
| by_cases hhd : h β€ d | |
| Β· obtain β¨H,hH,hHilbβ© := norm_generic_threshold_uniform (n := n) hd hd' hh2 hhd E D hD | |
| let K : β := max 1 F | |
| have hK : 1 β€ K := le_max_left _ _ | |
| have hKF : (F:β) β€ K := le_max_right _ _ | |
| refine β¨K,H,hK,hH,fun X hX S _ hnF _ I hI hMI hdim hdeg ha => ?_β© | |
| let : I.IsPrime := hI | |
| by_cases hq : IsAlgebraic β (Ideal.Quotient.mk I M.q) | |
| Β· exact Or.inl (hsmall X hX S I K hKF (by linarith) (algebraic_polynomial_fibre_count S F M.q hnF I hq)) | |
| Β· exact Or.inr (hHilb I M.a M.b M.q M.ΞΈ M.distinct ha (M.quotient_equations I hMI) | |
| M.generates hq hdim hdeg M.leftDegree M.qDegree w hw M.leftWeight M.rightWeight Ο hΟ hscale) | |
| Β· have he : h = d+1 := by omega | |
| subst h | |
| obtain β¨H,hH,hHilbβ© := norm_full_threshold_uniform (n := n) hd hd' | |
| let K : β := max 1 F | |
| have hK : 1 β€ K := le_max_left _ _ | |
| have hKF : (F:β) β€ K := le_max_right _ _ | |
| refine β¨K,H,hK,hH,fun X hX S _ hnF _ I hI hMI hdim _ ha => ?_β© | |
| let : I.IsPrime := hI | |
| by_cases hq : IsAlgebraic β (Ideal.Quotient.mk I M.q) | |
| Β· exact Or.inl (hsmall X hX S I K hKF (by linarith) (algebraic_polynomial_fibre_count S F M.q hnF I hq)) | |
| Β· right | |
| simpa only [Nat.add_sub_cancel] using hHilb I M.a M.b M.q M.ΞΈ ha (M.quotient_equations I hMI) | |
| M.generates hq hdim w hw M.leftWeight M.rightWeight Ο hΟ hscale | |
| end QuarticPowerFree | |
| end OAI | |