cfahlgren1/math / lean /OAI /NumberTheory /PowerFree /QuarticSurfaces.lean
cfahlgren1's picture
download
raw
15.9 kB
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.