Buckets:
| import OAI.NumberTheory.PowerFree.TwoPoles | |
| namespace OAI | |
| namespace QuarticPowerFree | |
| section | |
| open scoped BigOperators Classical | |
| open MvPolynomial | |
| theorem twoPole_hilbert_lower {Ο K : Type*} [Fintype Ο] [Field K] | |
| (I : Ideal (MvPolynomial Ο K)) (Ο : Ο β β) (hΟ : β j, 0 < Ο j) | |
| (rβ rβ ΞΈβ ΞΈβ : K) (hr : rβ β rβ) | |
| (t q bβ bβ uβ : MvPolynomial Ο K β§Έ I) | |
| (hi : AlgebraicIndependent K (fun o : Option PUnit => o.elim q (fun _ => t))) | |
| (hβ : (t-algebraMap K _ rβ)^2*bβ=q-algebraMap K _ ΞΈβ) | |
| (hβ : (t-algebraMap K _ rβ)^2*bβ=q-algebraMap K _ ΞΈβ) | |
| (huβ : (t-algebraMap K _ rβ)^2*uβ=1) | |
| (U V : β) (hU : 0 < U) (hV : 0 < V) | |
| (ht : t β weightedFunctions I Ο U) (hbβ : bβ β weightedFunctions I Ο V) | |
| (hbβ : bβ β weightedFunctions I Ο V) (huw : uβ β weightedFunctions I Ο V) : | |
| β T : β, 0 β€ T β ((V+4*U)/(2*U*V^2))*T^2- | |
| ((V+4*U)*(U+V)/(U*V^2))*T β€ weightedHilbert I Ο T := by | |
| intro T hT0 | |
| by_cases hT : U β€ T | |
| Β· let M := β(T-U)/Vββ | |
| let N := fun m : Fin (M+1) => β(T-V*m.val)/Uββ+1 | |
| let ΞΉ := Ξ£ m : Fin (M+1), Fin (N m) β ((Fin m.val Γ Fin 2) β (Fin (M-m.val) Γ Fin 2)) | |
| let v : ΞΉ β MvPolynomial Ο K β§Έ I := fun i => | |
| twoPoleFunction t (t-algebraMap K _ rβ) (t-algebraMap K _ rβ) bβ bβ uβ M i.1.val (N i.1) i.2 | |
| have hM : V*(M:β) β€ T-U := by | |
| have hh := Nat.floor_le (div_nonneg (sub_nonneg.mpr hT) hV.le) | |
| simpa only [mul_comm] using (le_div_iffβ hV).mp hh | |
| have htβ : t-algebraMap K _ rβ β weightedFunctions I Ο U := | |
| (weightedFunctions I Ο U).sub_mem ht (weightedFunctions_algebraMap I Ο hΟ hU.le rβ) | |
| have htβ : t-algebraMap K _ rβ β weightedFunctions I Ο U := | |
| (weightedFunctions I Ο U).sub_mem ht (weightedFunctions_algebraMap I Ο hΟ hU.le rβ) | |
| have hv (i : ΞΉ) : v i β weightedFunctions I Ο T := by | |
| obtain β¨m,jβ© := i | |
| have hm : (m.val:β) β€ M := by exact_mod_cast (show m.val β€ M by omega) | |
| cases j with | |
| | inl j => | |
| apply weightedFunctions_mono I Ο hΟ _ (weightedFunctions_mul I Ο hΟ | |
| (weightedFunctions_pow I Ο hΟ ht j.val) (weightedFunctions_pow I Ο hΟ hbβ m.val)) | |
| have hn : 0 β€ T-V*m.val := by nlinarith | |
| have hj : (j.val:β) β€ β(T-V*m.val)/Uββ := by | |
| exact_mod_cast (show j.val β€ β(T-V*m.val)/Uββ by have := j.isLt; dsimp [N] at this; omega) | |
| have hf := hj.trans (Nat.floor_le (div_nonneg hn hU.le)) | |
| have hh := (le_div_iffβ hU).mp hf | |
| nlinarith | |
| | inr j => | |
| cases j with | |
| | inl j => | |
| apply weightedFunctions_mono I Ο hΟ _ (weightedFunctions_mul I Ο hΟ | |
| (weightedFunctions_mul I Ο hΟ (weightedFunctions_pow I Ο hΟ hbβ (m.val-(j.1.val+1))) | |
| (weightedFunctions_pow I Ο hΟ hbβ (j.1.val+1))) (weightedFunctions_pow I Ο hΟ htβ j.2.val)) | |
| have hj : j.1.val+1 β€ m.val := by omega | |
| rw [Nat.cast_sub hj] | |
| have he : (j.2.val:β) β€ 1 := by exact_mod_cast (show j.2.val β€ 1 by omega) | |
| nlinarith [mul_le_mul_of_nonneg_left hm hV.le,mul_le_mul_of_nonneg_left he hU.le] | |
| | inr j => | |
| apply weightedFunctions_mono I Ο hΟ _ (weightedFunctions_mul I Ο hΟ | |
| (weightedFunctions_mul I Ο hΟ (weightedFunctions_pow I Ο hΟ hbβ m.val) | |
| (weightedFunctions_pow I Ο hΟ huw (j.1.val+1))) (weightedFunctions_pow I Ο hΟ htβ j.2.val)) | |
| have hj : ((j.1.val+1:β):β) β€ (M:β)-m.val := by | |
| rw [βNat.cast_sub (by omega : m.val β€ M)] | |
| exact_mod_cast (show j.1.val+1 β€ M-m.val by omega) | |
| have he : (j.2.val:β) β€ 1 := by exact_mod_cast (show j.2.val β€ 1 by omega) | |
| nlinarith [mul_le_mul_of_nonneg_left hj hV.le,mul_le_mul_of_nonneg_left he hU.le] | |
| have hi' : LinearIndependent K v := twoPole_functions_independent rβ rβ ΞΈβ ΞΈβ hr t q bβ bβ uβ hi hβ hβ huβ M N | |
| let u : ΞΉ β weightedFunctions I Ο T := fun i => β¨v i,hv iβ© | |
| have hu : LinearIndependent K u := LinearIndependent.of_comp (weightedFunctions I Ο T).subtype hi' | |
| have hcard : (Fintype.card ΞΉ:β) β€ weightedHilbert I Ο T := by | |
| exact_mod_cast hu.fintype_card_le_finrank | |
| have hce : (Fintype.card ΞΉ:β) = (β m : Fin (M+1), (N m:β))+2*(M:β)*(M+1) := by | |
| simp only [ΞΉ,Fintype.card_sigma,Fintype.card_sum,Fintype.card_fin,Fintype.card_prod, | |
| Nat.cast_sum,Nat.cast_add,Nat.cast_mul,Nat.cast_ofNat] | |
| have he (m : Fin (M+1)) : (N m:β)+((m.val:β)*2+((M-m.val:β):β)*2) = (N m:β)+2*(M:β) := by | |
| rw [Nat.cast_sub (by omega : m.val β€ M)] | |
| ring | |
| simp_rw [he,Finset.sum_add_distrib,Finset.sum_const,Finset.card_univ,Fintype.card_fin,nsmul_eq_mul] | |
| push_cast | |
| ring | |
| rw [hce] at hcard | |
| exact (pole_family_count_lower U V T hU hV hT).trans hcard | |
| Β· have hc : 0 < (V+4*U)/(2*U*V^2) := by positivity | |
| have he : (V+4*U)*(U+V)/(U*V^2) = ((V+4*U)/(2*U*V^2))*(2*(U+V)) := by ring | |
| rw [he] | |
| have hh : ((V+4*U)/(2*U*V^2))*T^2- | |
| ((V+4*U)/(2*U*V^2))*(2*(U+V))*T β€ 0 := by | |
| have hsmall : T β€ 2*(U+V) := by linarith | |
| nlinarith [mul_le_mul_of_nonneg_left hsmall hT0, | |
| mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left hsmall hT0) hc.le] | |
| exact hh.trans (Nat.cast_nonneg _) | |
| end | |
| section | |
| open scoped Classical | |
| open MvPolynomial | |
| lemma affine_pole_identity {K A : Type*} [Field K] [CommRing A] [Algebra K A] | |
| (c b : K) (hc : c β 0) (t : A) : | |
| algebraMap K A c*t+algebraMap K A b = algebraMap K A c*(t-algebraMap K A (-b/c)) := by | |
| rw [mul_sub,βmap_mul] | |
| have he : c*(-b/c) = -b := by field_simp | |
| rw [he,map_neg,sub_neg_eq_add] | |
| theorem affine_pole_hilbert {n : β} {K : Type*} [Field K] | |
| (I : Ideal (MvPolynomial (Fin n) K)) (Ο : Fin n β β) (hΟ : β j, 0 < Ο j) | |
| (r ΞΈ : Fin 4 β K) (hΞΈ : Function.Injective ΞΈ) | |
| (t q : MvPolynomial (Fin n) K β§Έ I) (b : Fin 4 β MvPolynomial (Fin n) K β§Έ I) | |
| (hi : AlgebraicIndependent K (fun o : Option PUnit => o.elim q (fun _ => t))) | |
| (heq : β i, (t-algebraMap K _ (r i))^2*b i=q-algebraMap K _ (ΞΈ i)) | |
| (U V : β) (hU : 0 < U) (hV : 0 < V) | |
| (ht : t β weightedFunctions I Ο U) (hb : β i, b i β weightedFunctions I Ο V) | |
| (hr : Β¬ β i, r i = r 0) : | |
| β T : β, 0 β€ T β ((V+4*U)/(2*U*V^2))*T^2- | |
| ((V+4*U)*(U+V)/(U*V^2))*T β€ weightedHilbert I Ο T := by | |
| classical | |
| by_cases hinj : Function.Injective r | |
| Β· exact threePole_hilbert_lower I Ο hΟ (r 0) (ΞΈ 0) | |
| (fun i : Fin 2 => r (β¨i.val+1,by omegaβ© : Fin 4)) (fun i : Fin 2 => ΞΈ (β¨i.val+1,by omegaβ© : Fin 4)) | |
| (by intro i he; have hh := hinj he; have hv := congrArg Fin.val hh; fin_cases i <;> norm_num at hv) | |
| (by intro i j he; have hh := congrArg Fin.val (hinj he); fin_cases i <;> fin_cases j <;> norm_num at *) | |
| t q (b 0) (fun i : Fin 2 => b (β¨i.val+1,by omegaβ© : Fin 4)) hi (heq 0) (fun i => heq _) U V hU hV ht (hb 0) (fun i => hb _) | |
| Β· obtain β¨i,j,hij,hneβ© := Function.not_injective_iff.mp hinj | |
| have hex : β l, r l β r i := by | |
| by_contra hn | |
| push Not at hn | |
| exact hr (fun l => (hn l).trans (hn 0).symm) | |
| obtain β¨l,hlβ© := hex | |
| let u := algebraMap K (MvPolynomial (Fin n) K β§Έ I) (ΞΈ j-ΞΈ i)β»ΒΉ*(b i-b j) | |
| have hu : (t-algebraMap K _ (r i))^2*u = 1 := by | |
| have he : (t-algebraMap K _ (r i))^2*(b i-b j) = algebraMap K _ (ΞΈ j-ΞΈ i) := by | |
| rw [mul_sub,heq i,hij,heq j,map_sub] | |
| ring | |
| dsimp [u] | |
| rw [mul_left_comm,he,βmap_mul,inv_mul_cancelβ (sub_ne_zero.mpr (Ne.symm (hΞΈ.ne hne))),map_one] | |
| have huw : u β weightedFunctions I Ο V := by | |
| dsimp only [u] | |
| rw [Algebra.algebraMap_eq_smul_one,smul_mul_assoc,one_mul] | |
| exact (weightedFunctions I Ο V).smul_mem _ ((weightedFunctions I Ο V).sub_mem (hb i) (hb j)) | |
| exact twoPole_hilbert_lower I Ο hΟ (r i) (r l) (ΞΈ i) (ΞΈ l) hl.symm t q | |
| (b i) (b l) u hi (heq i) (heq l) hu U V hU hV ht (hb i) (hb l) huw | |
| end | |
| open MvPolynomial | |
| lemma radial_affine_points {n d : β} (I : Ideal (MvPolynomial (Fin n) β)) | |
| (a : Fin d β MvPolynomial (Fin n) β) (c : Fin d β β) (r : β) | |
| (t : MvPolynomial (Fin n) β β§Έ I) | |
| (he : β i, Ideal.Quotient.mk I (a i)=algebraMap β _ (c i)*(t-algebraMap β _ r)) | |
| (s : Fin d) (zβ : Fin n β β€) (hzβ : PointOn I zβ) | |
| (haβ : MvPolynomial.aeval (fun j => (zβ j:β)) (a s) β 0) | |
| (z : Fin n β β€) (hz : PointOn I z) : | |
| β u : β, β i, MvPolynomial.aeval (fun j => (z j:β)) (a i) = | |
| u*MvPolynomial.aeval (fun j => (zβ j:β)) (a i) := by | |
| have hh (w : Fin n β β€) (hw : PointOn I w) (i) : | |
| MvPolynomial.aeval (fun j => (w j:β)) (a i)=c i*(pointEvaluation I w hw t-r) := by | |
| have h := congrArg (pointEvaluation I w hw) (he i) | |
| simp only [map_mul,map_sub,AlgHom.commutes,Algebra.algebraMap_self,RingHom.id_apply] at h | |
| exact h | |
| have hn : pointEvaluation I zβ hzβ t-r β 0 := by | |
| intro hn | |
| apply haβ | |
| rw [hh zβ hzβ s,hn,mul_zero] | |
| refine β¨(pointEvaluation I z hz t-r)/(pointEvaluation I zβ hzβ t-r),fun i => ?_β© | |
| rw [hh z hz i,hh zβ hzβ i] | |
| field_simp | |
| open MvPolynomial | |
| open scoped Classical | |
| theorem quartic_surface_alternatives {n D A B : β} (hD : 0 < D) | |
| (U V L : β) (hU : 0 < U) (hV : 0 < V) (hL : 0 < L) | |
| (hA : (A:β)=L*U) (hB : (B:β)=L*V) | |
| (Ο : Fin n β β) (hΟ : β i, 0 < Ο i) (w : Fin n β β) (hw : β i, w i β 0) | |
| (hscale : β i, (w i:β)=L*Ο i) (M : QuarticBoxSystem n D A B U Ο w) (E : β) : | |
| β H : β, 0 β€ H β§ β (S : Finset (Fin n β β€)) (F R : β), | |
| (β c : Fin 4 β β€, (S.filter (fun z => β i, z (M.x i) = c i)).card β€ F) β | |
| (β zβ β S, (S.filter (fun z => β c : β, β i, | |
| MvPolynomial.aeval (fun j => (z j:β)) (M.a i)=c*MvPolynomial.aeval (fun j => (zβ j:β)) (M.a i))).card β€ R) β | |
| (β z β S, β i, MvPolynomial.aeval (fun j => (z j:β)) (M.a i) β 0) β | |
| β (I : Ideal (MvPolynomial (Fin n) β)), I.IsPrime β M.ideal β€ I β | |
| (β z β S, PointOn I z) β | |
| (β i, Ideal.Quotient.mk I (M.a i) β 0) β | |
| Transcendental β (Ideal.Quotient.mk I M.q) β affineDimension I = 2 β affineDegree I β€ E β | |
| S.card β€ F+R β¨ β T : β, 1 β€ T β | |
| min (((min (2*A) B:β):β)*((2*A+B:β):β)*L^2/(2*(A:β)^2*(B:β)^2)) | |
| ((V+4*U)/(2*U*V^2))*T^2-H*T β€ weightedHilbert I Ο T := by | |
| classical | |
| have hAn : 0 < A := by | |
| have : (0:β) < A := by rw [hA]; positivity | |
| exact_mod_cast this | |
| have hBn : 0 < B := by | |
| have : (0:β) < B := by rw [hB]; positivity | |
| exact_mod_cast this | |
| obtain β¨C,hC,hboundβ© := norm_real_hilbert_uniform_affine_pair (n := n) (d := 4) (K := β) | |
| (k := 2) (by omega) A B hAn hBn E D hD L hL | |
| let H := C+(V+4*U)*(U+V)/(U*V^2) | |
| have hH : 0 β€ H := by dsimp [H]; positivity | |
| refine β¨H,hH,fun S F R hF hR hn I hI hMI hon ha hq hdim hdeg => ?_β© | |
| let : I.IsPrime := hI | |
| by_cases hp : β z β S, β v β S, (fun i => z (M.x i)) β (fun i => v (M.x i)) | |
| swap | |
| Β· left | |
| by_cases hs : S.Nonempty | |
| Β· obtain β¨z,hzβ© := hs | |
| have ht : S.filter (fun v => β i, v (M.x i)=z (M.x i)) = S := by | |
| apply Finset.filter_true_of_mem | |
| intro v hv i | |
| have he : (fun i => v (M.x i))=(fun i => z (M.x i)) := by | |
| by_contra he; exact hp β¨v,hv,z,hz,heβ© | |
| exact congrFun he i | |
| have hh := hF (fun i => z (M.x i)); rw [ht] at hh; omega | |
| Β· rw [Finset.not_nonempty_iff_eq_empty.mp hs,Finset.card_empty]; omega | |
| obtain β¨z,hz,v,hv,hzvβ© := hp | |
| obtain β¨s,hindβ© := norm_surface_left_basis I 2 M.a M.b M.q M.ΞΈ ha | |
| (M.quotient_equations I hMI) (quotient_pair_generates M.a M.b M.generates I) hq hdim | |
| have hts : Transcendental β (Ideal.Quotient.mk I (M.a s)) := by | |
| exact hind.transcendental (Fin.succ 0) | |
| rcases affine_left_dichotomy (fun i => Ideal.Quotient.mk I (M.a i)) s hts with β¨i,hiβ©|β¨c,b,heβ© | |
| Β· right | |
| let j : Fin 2 β Fin 4 := fun l => if l=0 then i else s | |
| have hj : Function.Injective j := by | |
| have hh := hi.injective | |
| intro u v huv | |
| have he : (some u:Option (Fin 2))=some v := hh (by simpa only [Option.elim,j,apply_ite] using congrArg (fun l => Ideal.Quotient.mk I (M.a l)) huv) | |
| exact Option.some.inj he | |
| have hh := hbound I M.a M.b M.q M.ΞΈ M.distinct ha (M.quotient_equations I hMI) | |
| j hj (by simpa [j] using hind) (by simpa only [j,apply_ite] using hi) hdim hdeg M.leftDegree M.qDegree w hw M.leftWeight M.rightWeight Ο hΟ hscale | |
| intro T hT | |
| have hb := hh T hT | |
| norm_num only [Nat.factorial_two,Nat.cast_ofNat,pow_one] at hb | |
| have hm := mul_le_mul_of_nonneg_right (min_le_left | |
| (((min (2*A) B:β):β)*((2*A+B:β):β)*L^2/(2*(A:β)^2*(B:β)^2)) ((V+4*U)/(2*U*V^2))) (sq_nonneg T) | |
| have he : C*T β€ H*T := mul_le_mul_of_nonneg_right (by dsimp [H]; exact le_add_of_nonneg_right (by positivity)) (by linarith) | |
| linarith | |
| Β· have hc : β i, c i β 0 := fun i => conjugate_affine_slope_ne_zero M.v M.independent (M.Ο i) | |
| M.x I (c i) (b i) (Ideal.Quotient.mk I (M.a s)) (he i) z v (hon z hz) (hon v hv) hzv | |
| let r := fun i => -b i/c i | |
| have hr (i) : Ideal.Quotient.mk I (M.a i)=algebraMap β _ (c i)* | |
| (Ideal.Quotient.mk I (M.a s)-algebraMap β _ (r i)) := | |
| (he i).trans (affine_pole_identity (c i) (b i) (hc i) _) | |
| by_cases hr0 : β i, r i=r 0 | |
| Β· left | |
| have ht : S.filter (fun w => β u : β, β i, MvPolynomial.aeval (fun j => (w j:β)) (M.a i)= | |
| u*MvPolynomial.aeval (fun j => (z j:β)) (M.a i))=S := by | |
| apply Finset.filter_true_of_mem | |
| intro w hw | |
| exact radial_affine_points I M.a c (r 0) (Ideal.Quotient.mk I (M.a s)) | |
| (fun i => by rw [βhr0 i]; exact hr i) s z (hon z hz) (hn z hz s) w (hon w hw) | |
| have hh := hR z hz; rw [ht] at hh; omega | |
| Β· right | |
| let b' := fun i => algebraMap β (MvPolynomial (Fin n) β β§Έ I) (c i)^2*Ideal.Quotient.mk I (M.b i) | |
| have hbw : β i, b' i β weightedFunctions I Ο V := by | |
| intro i | |
| dsimp [b'] | |
| rw [βmap_pow,Algebra.algebraMap_eq_smul_one,smul_mul_assoc,one_mul] | |
| exact (weightedFunctions I Ο V).smul_mem _ (M.right_real_weight hΟ L V hL hV.le hB hscale I i) | |
| have ht : Ideal.Quotient.mk I (M.a s) β weightedFunctions I Ο U := by | |
| have hh := weightedSpace_map_le_weightedFunctions I w Ο hΟ L hL hscale U hU.le | |
| rw [βhA,Nat.floor_natCast] at hh | |
| exact hh β¨M.a s,M.leftWeight s,rflβ© | |
| have heq : β i, (Ideal.Quotient.mk I (M.a s)-algebraMap β _ (r i))^2*b' i= | |
| Ideal.Quotient.mk I M.q-algebraMap β _ (M.ΞΈ i) := by | |
| intro i | |
| rw [βM.quotient_equations I hMI i,hr i] | |
| dsimp [b']; ring | |
| have hind' : AlgebraicIndependent β (fun o : Option PUnit => o.elim (Ideal.Quotient.mk I M.q) | |
| (fun _ => Ideal.Quotient.mk I (M.a s))) := by | |
| let e : Option PUnit.{1} β Fin 2 := fun o => o.elim 0 (fun _ => 1) | |
| have hei : Function.Injective e := by decide | |
| convert hind.comp e hei using 1 | |
| Β· funext o; cases o <;> rfl | |
| intro T hT | |
| have hh := affine_pole_hilbert I Ο hΟ r M.ΞΈ M.distinct (Ideal.Quotient.mk I (M.a s)) | |
| (Ideal.Quotient.mk I M.q) b' hind' heq U V hU hV ht hbw hr0 T (by linarith) | |
| have hm := mul_le_mul_of_nonneg_right (min_le_right | |
| (((min (2*A) B:β):β)*((2*A+B:β):β)*L^2/(2*(A:β)^2*(B:β)^2)) ((V+4*U)/(2*U*V^2))) (sq_nonneg T) | |
| have he : ((V+4*U)*(U+V)/(U*V^2))*T β€ H*T := mul_le_mul_of_nonneg_right | |
| (by dsimp [H]; linarith) (by linarith) | |
| linarith | |
| end QuarticPowerFree | |
| end OAI | |
Xet Storage Details
- Size:
- 15.9 kB
- Xet hash:
- 3ca9c781d68b1a62bc56ca87dd39bb6f50f8136008ce12b7a3f5617124bb964d
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.