cfahlgren1's picture
download
raw
30.2 kB
import OAI.NumberTheory.DirichletL.Eisenstein.ReflectionFibers
namespace OAI
noncomputable section
open scoped BigOperators
open MulChar AddChar
open scoped BigOperators
open Filter Asymptotics MeasureTheory
open scoped Topology
open MeasureTheory Real
open scoped FourierTransform SchwartzMap
open Finset Complex
open scoped Classical
open scoped Classical
open Filter Real Asymptotics
open ActualEisensteinCubic
open Filter
open ActualEisensteinCubic RationalPrimeExtraction ShortDraftLatticeCount
open ActualEisensteinCubic ShortDraftLatticeCount
open Filter
open scoped Topology
open EisensteinEmbedding ConcreteTraceCRT ActualEisensteinCubic
open MulChar AddChar
open Filter Asymptotics
open scoped LSeries.notation ArithmeticFunction.Moebius
open Filter
open MulChar AddChar
open MulChar AddChar
open scoped LSeries.notation ArithmeticFunction.Moebius
open Filter Asymptotics MeasureTheory
open scoped Topology
open Filter Asymptotics
open Ideal NumberField RingOfIntegers UniqueFactorizationMonoid
open Ideal NumberField RingOfIntegers UniqueFactorizationMonoid
open Ideal NumberField RingOfIntegers UniqueFactorizationMonoid
open Ideal NumberField RingOfIntegers UniqueFactorizationMonoid
open Ideal NumberField RingOfIntegers UniqueFactorizationMonoid
open Filter Asymptotics
open Filter Asymptotics MeasureTheory
open scoped Topology
open Filter Asymptotics Ideal NumberField
open Filter
open Filter Asymptotics MeasureTheory
open scoped Topology
open Filter Asymptotics MeasureTheory
open scoped Topology
open Filter Asymptotics MeasureTheory
open scoped Topology
open MeasureTheory Real
open scoped ContDiff FourierTransform SchwartzMap
open scoped BigOperators Classical
open scoped BigOperators Classical
open scoped BigOperators Classical
open scoped BigOperators Classical SchwartzMap ContDiff
open scoped BigOperators Classical SchwartzMap ContDiff
open scoped BigOperators Classical
open scoped BigOperators Classical SchwartzMap ContDiff
open scoped BigOperators Classical
open scoped BigOperators Classical SchwartzMap ContDiff
open scoped BigOperators Classical SchwartzMap ContDiff
open scoped BigOperators Classical SchwartzMap ContDiff
open scoped BigOperators Classical
open scoped BigOperators Classical SchwartzMap ContDiff
open MeasureTheory Set
open scoped BigOperators
open scoped BigOperators Classical
open scoped BigOperators Classical
open ActualEisensteinCubic UniqueFactorizationMonoid
open scoped BigOperators
open scoped BigOperators
open scoped BigOperators Classical SchwartzMap
open scoped BigOperators Classical
section
open scoped BigOperators Classical
namespace CanonicalRowCompletion
section
open ActualEisensteinCubic CompletedGauss CanonicalQuadraticSieve UniqueFactorizationMonoid
local notation "Eis" => ActualEisensteinCubic.O
def freePrimePool (lengthScale Q0:Ideal Eis) : Finset (Ideal Eis) :=
(CompletedGauss.primeSupport lengthScale).filter (fun P=>¬Q0≤P)
lemma mem_freePrimePool (lengthScale Q0 P:Ideal Eis) :
P∈freePrimePool lengthScale Q0 ↔ P∈CompletedGauss.primeSupport lengthScale ∧ ¬Q0≤P := by
simp only [freePrimePool,Finset.mem_filter]
lemma residual_nonresidual_disjoint (I Q Q0:Ideal Eis) :
Disjoint (CompletedGauss.primeSupport (rowResidualPart I Q)) (FreeReflection.pool I Q Q0) := by
apply Finset.disjoint_left.mpr
intro P hP ht
exact FreeReflection.pool_nonresidual I Q Q0 ⟨P,ht⟩
(dvd_of_mem_normalizedFactors (Multiset.mem_toFinset.mp hP))
theorem freePrimePool_eq_residual_union (lengthScale I Q Q0:Ideal Eis)
(hI:I≠0) (hQ:Q≠0)
(hbad:∀P∈fixedBadPrimes,P∣Q)
(hcop:IsCoprime Q0 (rowResidualPart I Q))
(hs:CompletedGauss.primeSupport lengthScale=
(CompletedGauss.primeSupport (I*Q)).filter
(fun P=>lambda∉P ∧ ringChar (Eis⧸P)≠2)) :
freePrimePool lengthScale Q0=
CompletedGauss.primeSupport (rowResidualPart I Q) ∪ FreeReflection.pool I Q Q0 := by
have hk:=rowResidualPart_admissible I Q hbad
ext P
constructor
· intro hP
obtain ⟨hL,hfree⟩:=Finset.mem_filter.mp hP
rw [hs] at hL
obtain ⟨hprod,hgood,hodd⟩:=Finset.mem_filter.mp hL
have hp:Prime P:=prime_of_normalized_factor P (Multiset.mem_toFinset.mp hprod)
by_cases hr:P∣rowResidualPart I Q
· exact Finset.mem_union_left _ (Multiset.mem_toFinset.mpr
((UniqueFactorizationMonoid.mem_normalizedFactors_iff hk.1).mpr ⟨hp,hr⟩))
· apply Finset.mem_union_right
apply Finset.mem_filter.mpr
exact ⟨Finset.mem_filter.mpr ⟨hprod,hgood,hodd,hr⟩,hfree⟩
· intro hP
rcases Finset.mem_union.mp hP with hr|ht
· have hfactor:=Multiset.mem_toFinset.mp hr
have hp:Prime P:=prime_of_normalized_factor P hfactor
have hrow:=rowResidualPart_prime_exponent I Q P hfactor
have hgood:=hk.2.2 P hfactor
have hfree:¬Q0≤P:=by
intro hQP
exact hp.not_isUnit (hcop.isUnit_of_dvd'
(Ideal.dvd_iff_le.mpr hQP) (dvd_of_mem_normalizedFactors hfactor))
apply Finset.mem_filter.mpr
refine ⟨?_,hfree⟩
rw [hs]
apply Finset.mem_filter.mpr
exact ⟨Multiset.mem_toFinset.mpr ((UniqueFactorizationMonoid.mem_normalizedFactors_iff (mul_ne_zero hI hQ)).mpr
⟨hp,dvd_mul_of_dvd_left (dvd_of_mem_normalizedFactors hrow.1) Q⟩),hgood⟩
· obtain ⟨hpool,hfree⟩:=Finset.mem_filter.mp ht
obtain ⟨hprod,hgood,hodd,_⟩:=Finset.mem_filter.mp hpool
apply Finset.mem_filter.mpr
refine ⟨?_,hfree⟩
rw [hs]
exact Finset.mem_filter.mpr ⟨hprod,hgood,hodd⟩
def primeUnionToFree (lengthScale Q0 k:Ideal Eis) (T:Finset (Ideal Eis))
(hs:freePrimePool lengthScale Q0=CompletedGauss.primeSupport k∪T) :
PrimeIndex k ⊕ T → FreePrimeIndex lengthScale Q0 := fun P=>by
have hm:(Sum.elim Subtype.val Subtype.val P)∈freePrimePool lengthScale Q0:=by
rw [hs]
cases P with
| inl P=>exact Finset.mem_union_left _ P.property
| inr P=>exact Finset.mem_union_right _ P.property
exact ⟨⟨Sum.elim Subtype.val Subtype.val P,(Finset.mem_filter.mp hm).1⟩,
(Finset.mem_filter.mp hm).2⟩
lemma primeUnionToFree_val (lengthScale Q0 k:Ideal Eis) (T:Finset (Ideal Eis))
(hs:freePrimePool lengthScale Q0=CompletedGauss.primeSupport k∪T) (P:PrimeIndex k⊕T) :
(primeUnionToFree lengthScale Q0 k T hs P).val.val=Sum.elim Subtype.val Subtype.val P := rfl
lemma primeUnionToFree_bijective (lengthScale Q0 k:Ideal Eis) (T:Finset (Ideal Eis))
(hs:freePrimePool lengthScale Q0=CompletedGauss.primeSupport k∪T)
(hd:Disjoint (CompletedGauss.primeSupport k) T) :
Function.Bijective (primeUnionToFree lengthScale Q0 k T hs) := by
constructor
· intro P R he
have hv:=congrArg (fun S:FreePrimeIndex lengthScale Q0=>S.val.val) he
change Sum.elim Subtype.val Subtype.val P=Sum.elim Subtype.val Subtype.val R at hv
cases P with
| inl P=>cases R with
| inl R=>exact congrArg Sum.inl (Subtype.ext hv)
| inr R=>
change P.val=R.val at hv
exact (Finset.disjoint_left.mp hd P.property (hv.symm ▸ R.property)).elim
| inr P=>cases R with
| inl R=>
change P.val=R.val at hv
exact (Finset.disjoint_left.mp hd R.property (hv ▸ P.property)).elim
| inr R=>exact congrArg Sum.inr (Subtype.ext hv)
· intro P
have hm:P.val.val∈CompletedGauss.primeSupport k∪T:=by
rw [←hs]
exact Finset.mem_filter.mpr ⟨P.val.property,P.property⟩
rcases Finset.mem_union.mp hm with hl|hr
· exact ⟨Sum.inl ⟨P.val.val,hl⟩,Subtype.ext (Subtype.ext rfl)⟩
· exact ⟨Sum.inr ⟨P.val.val,hr⟩,Subtype.ext (Subtype.ext rfl)⟩
noncomputable def primeUnionEquiv (lengthScale Q0 k:Ideal Eis) (T:Finset (Ideal Eis))
(hs:freePrimePool lengthScale Q0=CompletedGauss.primeSupport k∪T)
(hd:Disjoint (CompletedGauss.primeSupport k) T) :
PrimeIndex k⊕T ≃ FreePrimeIndex lengthScale Q0 :=
Equiv.ofBijective (primeUnionToFree lengthScale Q0 k T hs) (primeUnionToFree_bijective lengthScale Q0 k T hs hd)
lemma primeUnionEquiv_val (lengthScale Q0 k:Ideal Eis) (T:Finset (Ideal Eis))
(hs:freePrimePool lengthScale Q0=CompletedGauss.primeSupport k∪T)
(hd:Disjoint (CompletedGauss.primeSupport k) T) (P:PrimeIndex k⊕T) :
(primeUnionEquiv lengthScale Q0 k T hs hd P).val.val=Sum.elim Subtype.val Subtype.val P := rfl
theorem prod_freePrimeIndex_eq {M:Type*} [CommMonoid M]
(lengthScale Q0 k:Ideal Eis) (T:Finset (Ideal Eis))
(hs:freePrimePool lengthScale Q0=CompletedGauss.primeSupport k∪T)
(hd:Disjoint (CompletedGauss.primeSupport k) T) (f:Ideal Eis → M) :
(∏P:FreePrimeIndex lengthScale Q0,f P.val.val)=(∏P:PrimeIndex k,f P.val)*(∏P:T,f P.val) := by
calc
_=(∏P:PrimeIndex k⊕T,f (Sum.elim Subtype.val Subtype.val P)):=
(Fintype.prod_equiv (primeUnionEquiv lengthScale Q0 k T hs hd) _ _ (fun P=>rfl)).symm
_=_:=Fintype.prod_sum_type _
end
section
open ActualEisensteinCubic CompletedGauss CanonicalQuadraticSieve UniqueFactorizationMonoid
local notation "Eis" => ActualEisensteinCubic.O
variable (I F Q0:Ideal Eis) (hI:I≠0) (hF:Squarefree F)
(m f z:Eis) (hm0:m≠0) (hf:Ideal.span {f}=F) (hz:Ideal.span {z}=I)
(um:Eisˣ) (am bm:ℕ) (g:Eis) (hg:Supported (Ideal.span {g}))
(hm:m=um.val*lambda^am*(2:Eis)^bm*g)
(u:Eisˣ) (a b:ℕ) (r:Eis) (hr:Supported (Ideal.span {r}))
(hx:f^4*z=u.val*lambda^a*(2:Eis)^b*r)
(hbad:∀P∈fixedBadPrimes,P∣Ideal.span {m}*F)
(hcop:IsCoprime Q0 (rowResidualPart I (Ideal.span {m}*F)))
include I F Q0 hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx hbad hcop
theorem goodMaskFreePrimePool :
freePrimePool (goodMaskMovingIdeal g r) Q0=
CompletedGauss.primeSupport (rowResidualPart I (Ideal.span {m}*F)) ∪
FreeReflection.pool I (Ideal.span {m}*F) Q0 := by
apply freePrimePool_eq_residual_union _ _ _ _ hI
(mul_ne_zero (Ideal.span_singleton_eq_bot.not.mpr hm0) hF.ne_zero) hbad hcop
exact goodMaskMovingIdeal_primeSupport I F hI hF.ne_zero m f z hm0 hf hz
um am bm g hg hm u a b r hr hx
noncomputable def goodMaskFreePrimeEquiv :
PrimeIndex (rowResidualPart I (Ideal.span {m}*F)) ⊕ FreeReflection.pool I (Ideal.span {m}*F) Q0 ≃
FreePrimeIndex (goodMaskMovingIdeal g r) Q0 :=
primeUnionEquiv _ _ _ _
(goodMaskFreePrimePool I F Q0 hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx hbad hcop)
(residual_nonresidual_disjoint I (Ideal.span {m}*F) Q0)
lemma goodMaskFreePrimeEquiv_val
(P:PrimeIndex (rowResidualPart I (Ideal.span {m}*F)) ⊕ FreeReflection.pool I (Ideal.span {m}*F) Q0) :
(goodMaskFreePrimeEquiv I F Q0 hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx hbad hcop P).val.val=
Sum.elim Subtype.val Subtype.val P := rfl
lemma goodMaskFreePrimeEquiv_residual_exponent
(P:PrimeIndex (rowResidualPart I (Ideal.span {m}*F))) :
(normalizedFactors (goodMaskMovingIdeal g r)).count
(goodMaskFreePrimeEquiv I F Q0 hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx hbad hcop
(Sum.inl P)).val.val%6=1 := by
change (normalizedFactors (goodMaskMovingIdeal g r)).count P.val%6=1
have hp:=(rowResidualPart_admissible I (Ideal.span {m}*F) hbad).2.2
P.val (Multiset.mem_toFinset.mp P.property)
rw [goodMaskMovingIdeal_exponent I F hI hF m f z hf hz um am bm g hg hm u a b r hr hx P.val hp.1 hp.2]
exact completedLocalExponent_residual I F _ (dvd_mul_left F (Ideal.span {m})) P
lemma goodMaskFreePrimeEquiv_nonresidual_exponent
(P:FreeReflection.pool I (Ideal.span {m}*F) Q0) :
(normalizedFactors (goodMaskMovingIdeal g r)).count
(goodMaskFreePrimeEquiv I F Q0 hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx hbad hcop
(Sum.inr P)).val.val%6=completedLocalExponent I F P.val := by
change (normalizedFactors (goodMaskMovingIdeal g r)).count P.val%6=completedLocalExponent I F P.val
let:P.val.IsMaximal:=FreeReflection.pool_maximal I (Ideal.span {m}*F) Q0 P
exact goodMaskMovingIdeal_exponent I F hI hF m f z hf hz um am bm g hg hm u a b r hr hx P.val
(FreeReflection.pool_good I (Ideal.span {m}*F) Q0 P)
(FreeReflection.pool_odd I (Ideal.span {m}*F) Q0 P)
theorem goodMaskFreePrimeEquiv_exponent
(P:PrimeIndex (rowResidualPart I (Ideal.span {m}*F)) ⊕ FreeReflection.pool I (Ideal.span {m}*F) Q0) :
(normalizedFactors (goodMaskMovingIdeal g r)).count
(goodMaskFreePrimeEquiv I F Q0 hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx hbad hcop P).val.val%6=
Sum.elim (fun _=>1) (fun R=>completedLocalExponent I F R.val) P := by
cases P with
| inl P=>
exact goodMaskFreePrimeEquiv_residual_exponent I F Q0 hI hF m f z hm0 hf hz
um am bm g hg hm u a b r hr hx hbad hcop P
| inr P=>
exact goodMaskFreePrimeEquiv_nonresidual_exponent I F Q0 hI hF m f z hm0 hf hz
um am bm g hg hm u a b r hr hx hbad hcop P
end
section
variable {α β γ:Type*} [Fintype α] [Fintype β] [Fintype γ]
def optionalPrimeActive (e:α⊕β ≃ γ) (A:Finset γ) : Finset β :=
Finset.univ.filter (fun b=>e (Sum.inr b)∈A)
omit [Fintype α] [Fintype γ] in
lemma mem_optionalPrimeActive (e:α⊕β ≃ γ) (A:Finset γ) (b:β) :
b∈optionalPrimeActive e A ↔ e (Sum.inr b)∈A := by
simp only [optionalPrimeActive,Finset.mem_filter,Finset.mem_univ,true_and]
def activePrimeUnionMap (e:α⊕β ≃ γ) (A:Finset γ)
(hA:∀a:α,e (Sum.inl a)∈A) : α⊕optionalPrimeActive e A → A :=
Sum.elim (fun a=>⟨e (Sum.inl a),hA a⟩)
(fun b=>⟨e (Sum.inr b.val),(mem_optionalPrimeActive e A b.val).mp b.property⟩)
omit [Fintype α] [Fintype γ] in
lemma activePrimeUnionMap_bijective (e:α⊕β ≃ γ) (A:Finset γ)
(hA:∀a:α,e (Sum.inl a)∈A) : Function.Bijective (activePrimeUnionMap e A hA) := by
constructor
· intro x y hxy
have hv:=congrArg Subtype.val hxy
cases x with
| inl x=>cases y with
| inl y=>exact congrArg Sum.inl (Sum.inl.inj (e.injective hv))
| inr y=>cases e.injective hv
| inr x=>cases y with
| inl y=>cases e.injective hv
| inr y=>exact congrArg Sum.inr (Subtype.ext (Sum.inr.inj (e.injective hv)))
· intro a
obtain ⟨x,hx⟩:=e.surjective a.val
cases x with
| inl x=>exact ⟨Sum.inl x,Subtype.ext hx⟩
| inr x=>
have hm:x∈optionalPrimeActive e A:=(mem_optionalPrimeActive e A x).mpr (hx.symm ▸ a.property)
exact ⟨Sum.inr ⟨x,hm⟩,Subtype.ext hx⟩
noncomputable def activePrimeUnionEquiv (e:α⊕β ≃ γ) (A:Finset γ)
(hA:∀a:α,e (Sum.inl a)∈A) : α⊕optionalPrimeActive e A ≃ A :=
Equiv.ofBijective (activePrimeUnionMap e A hA) (activePrimeUnionMap_bijective e A hA)
omit [Fintype α] [Fintype γ] in
lemma activePrimeUnionEquiv_inl (e:α⊕β ≃ γ) (A:Finset γ)
(hA:∀a:α,e (Sum.inl a)∈A) (a:α) :
(activePrimeUnionEquiv e A hA (Sum.inl a)).val=e (Sum.inl a) := rfl
omit [Fintype α] [Fintype γ] in
lemma activePrimeUnionEquiv_inr (e:α⊕β ≃ γ) (A:Finset γ)
(hA:∀a:α,e (Sum.inl a)∈A) (b:optionalPrimeActive e A) :
(activePrimeUnionEquiv e A hA (Sum.inr b)).val=e (Sum.inr b.val) := rfl
omit [Fintype γ] in
theorem prod_activePrimeUnionEquiv {M:Type*} [CommMonoid M]
(e:α⊕β ≃ γ) (A:Finset γ) (hA:∀a:α,e (Sum.inl a)∈A) (f:A → M) :
(∏a:A,f a)=
(∏a:α,f (activePrimeUnionEquiv e A hA (Sum.inl a)))*
(∏b:optionalPrimeActive e A,f (activePrimeUnionEquiv e A hA (Sum.inr b))) := by
calc
_=(∏x:α⊕optionalPrimeActive e A,f (activePrimeUnionEquiv e A hA x)):=
(Fintype.prod_equiv (activePrimeUnionEquiv e A hA) _ _ (fun _=>rfl)).symm
_=_:=Fintype.prod_sum_type _
omit [Fintype γ] in
theorem sum_activePrimeUnionEquiv {M:Type*} [AddCommMonoid M]
(e:α⊕β ≃ γ) (A:Finset γ) (hA:∀a:α,e (Sum.inl a)∈A) (f:A → M) :
(∑a:A,f a)=
(∑a:α,f (activePrimeUnionEquiv e A hA (Sum.inl a)))+
(∑b:optionalPrimeActive e A,f (activePrimeUnionEquiv e A hA (Sum.inr b))) := by
calc
_=(∑x:α⊕optionalPrimeActive e A,f (activePrimeUnionEquiv e A hA x)):=
(Fintype.sum_equiv (activePrimeUnionEquiv e A hA) _ _ (fun _=>rfl)).symm
_=_:=Fintype.sum_sum_type _
theorem sum_prime_active_sets {M:Type*} [AddCommMonoid M]
(e:α⊕β ≃ γ) (f:Finset γ → M) :
(∑A:Finset γ,f A)=∑A:Finset (α⊕β),f (A.map e.toEmbedding) := by
exact (Fintype.sum_equiv e.finsetCongr _ _ (fun _=>rfl)).symm
end
section
open ActualEisensteinCubic CompletedGauss CanonicalQuadraticSieve UniqueFactorizationMonoid
local notation "Eis" => ActualEisensteinCubic.O
def nonresidualPoolEquiv (R I Q Q0:Ideal Eis) (hR:R≠0) (hI:I≠0) (hQ:Q≠0)
(hA:rowPowerfulPart R=rowPowerfulPart I)
(hT:rowMaskPart R Q=rowMaskPart I Q) :
FreeReflection.pool R Q Q0 ≃ FreeReflection.pool I Q Q0 := by
have he:=FreeReflection.pool_eq_on_fiber R I Q Q0 hR hI hQ hA hT
exact {
toFun:=fun P=>⟨P.val,he ▸ P.property⟩
invFun:=fun P=>⟨P.val,he.symm ▸ P.property⟩
left_inv:=fun _=>rfl
right_inv:=fun _=>rfl }
lemma nonresidualPoolEquiv_val (R I Q Q0:Ideal Eis) (hR:R≠0) (hI:I≠0) (hQ:Q≠0)
(hA:rowPowerfulPart R=rowPowerfulPart I) (hT:rowMaskPart R Q=rowMaskPart I Q)
(P:FreeReflection.pool R Q Q0) :
(nonresidualPoolEquiv R I Q Q0 hR hI hQ hA hT P).val=P.val := rfl
lemma nonresidualPoolEquiv_exponent (R I F Q Q0:Ideal Eis) (hR:R≠0) (hI:I≠0) (hQ:Q≠0)
(hA:rowPowerfulPart R=rowPowerfulPart I) (hT:rowMaskPart R Q=rowMaskPart I Q)
(P:FreeReflection.pool R Q Q0) :
completedLocalExponent I F (nonresidualPoolEquiv R I Q Q0 hR hI hQ hA hT P).val=
completedLocalExponent R F P.val :=
(completedReflectionPool_exponent_eq R I F Q hR hI hQ hA hT
⟨P.val,FreeReflection.pool_subset R Q Q0 P.property⟩).symm
variable (R I F Q0:Ideal Eis) (hR:R≠0) (hI:I≠0) (hF:Squarefree F)
(m f z:Eis) (hm0:m≠0) (hf:Ideal.span {f}=F) (hz:Ideal.span {z}=I)
(um:Eisˣ) (am bm:ℕ) (g:Eis) (hg:Supported (Ideal.span {g}))
(hm:m=um.val*lambda^am*(2:Eis)^bm*g)
(u:Eisˣ) (a b:ℕ) (r:Eis) (hr:Supported (Ideal.span {r}))
(hx:f^4*z=u.val*lambda^a*(2:Eis)^b*r)
(hbad:∀P∈fixedBadPrimes,P∣Ideal.span {m}*F)
(hcop:IsCoprime Q0 (rowResidualPart I (Ideal.span {m}*F)))
(hA:rowPowerfulPart R=rowPowerfulPart I)
(hT:rowMaskPart R (Ideal.span {m}*F)=rowMaskPart I (Ideal.span {m}*F))
include R I F Q0 hR hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx hbad hcop hA hT
noncomputable def goodMaskFreePrimeFiberEquiv :
PrimeIndex (rowResidualPart I (Ideal.span {m}*F)) ⊕ FreeReflection.pool R (Ideal.span {m}*F) Q0 ≃
FreePrimeIndex (goodMaskMovingIdeal g r) Q0 :=
(Equiv.sumCongr (Equiv.refl _)
(nonresidualPoolEquiv R I (Ideal.span {m}*F) Q0 hR hI
(mul_ne_zero (Ideal.span_singleton_eq_bot.not.mpr hm0) hF.ne_zero) hA hT)).trans
(goodMaskFreePrimeEquiv I F Q0 hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx hbad hcop)
lemma goodMaskFreePrimeFiberEquiv_val
(P:PrimeIndex (rowResidualPart I (Ideal.span {m}*F)) ⊕ FreeReflection.pool R (Ideal.span {m}*F) Q0) :
(goodMaskFreePrimeFiberEquiv R I F Q0 hR hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx
hbad hcop hA hT P).val.val=Sum.elim Subtype.val Subtype.val P := by
cases P <;> rfl
theorem goodMaskFreePrimeFiberEquiv_exponent
(P:PrimeIndex (rowResidualPart I (Ideal.span {m}*F)) ⊕ FreeReflection.pool R (Ideal.span {m}*F) Q0) :
(normalizedFactors (goodMaskMovingIdeal g r)).count
(goodMaskFreePrimeFiberEquiv R I F Q0 hR hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx
hbad hcop hA hT P).val.val%6=
Sum.elim (fun _=>1) (fun S=>completedLocalExponent R F S.val) P := by
cases P with
| inl P=>
exact goodMaskFreePrimeEquiv_residual_exponent I F Q0 hI hF m f z hm0 hf hz
um am bm g hg hm u a b r hr hx hbad hcop P
| inr P=>
exact (goodMaskFreePrimeEquiv_nonresidual_exponent I F Q0 hI hF m f z hm0 hf hz
um am bm g hg hm u a b r hr hx hbad hcop
(nonresidualPoolEquiv R I (Ideal.span {m}*F) Q0 hR hI
(mul_ne_zero (Ideal.span_singleton_eq_bot.not.mpr hm0) hF.ne_zero) hA hT P)).trans
(nonresidualPoolEquiv_exponent R I F (Ideal.span {m}*F) Q0 hR hI
(mul_ne_zero (Ideal.span_singleton_eq_bot.not.mpr hm0) hF.ne_zero) hA hT P)
end
open ActualEisensteinCubic CompletedGauss CanonicalQuadraticSieve UniqueFactorizationMonoid
local notation "Eis" => ActualEisensteinCubic.O
section
variable (R I F Q0:Ideal Eis) (hR:R≠0) (hI:I≠0) (hF:Squarefree F)
(m f z:Eis) (hm0:m≠0) (hf:Ideal.span {f}=F) (hz:Ideal.span {z}=I)
(um:Eisˣ) (am bm:ℕ) (g:Eis) (hg:Supported (Ideal.span {g}))
(hm:m=um.val*lambda^am*(2:Eis)^bm*g)
(u:Eisˣ) (a b:ℕ) (r:Eis) (hr:Supported (Ideal.span {r}))
(hx:f^4*z=u.val*lambda^a*(2:Eis)^b*r)
(hbad:∀P∈fixedBadPrimes,P∣Ideal.span {m}*F)
(hcop:IsCoprime Q0 (rowResidualPart I (Ideal.span {m}*F)))
(hA:rowPowerfulPart R=rowPowerfulPart I)
(hT:rowMaskPart R (Ideal.span {m}*F)=rowMaskPart I (Ideal.span {m}*F))
include R I F Q0 hR hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx hbad hcop hA hT
local notation "splitIndex" => (goodMaskFreePrimeFiberEquiv R I F Q0 hR hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx hbad hcop hA hT)
noncomputable def goodMaskActivePrimeEquiv
(A:Finset (FreePrimeIndex (goodMaskMovingIdeal g r) Q0))
(hactive:∀P:PrimeIndex (rowResidualPart I (Ideal.span {m}*F)),splitIndex (Sum.inl P)∈A) :
PrimeIndex (rowResidualPart I (Ideal.span {m}*F)) ⊕ optionalPrimeActive splitIndex A ≃ A :=
activePrimeUnionEquiv splitIndex A hactive
lemma goodMaskActivePrimeEquiv_residual_val
(A:Finset (FreePrimeIndex (goodMaskMovingIdeal g r) Q0))
(hactive:∀P:PrimeIndex (rowResidualPart I (Ideal.span {m}*F)),splitIndex (Sum.inl P)∈A)
(P:PrimeIndex (rowResidualPart I (Ideal.span {m}*F))) :
(goodMaskActivePrimeEquiv R I F Q0 hR hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx
hbad hcop hA hT A hactive (Sum.inl P)).val.val.val=P.val := rfl
lemma goodMaskActivePrimeEquiv_nonresidual_val
(A:Finset (FreePrimeIndex (goodMaskMovingIdeal g r) Q0))
(hactive:∀P:PrimeIndex (rowResidualPart I (Ideal.span {m}*F)),splitIndex (Sum.inl P)∈A)
(P:optionalPrimeActive splitIndex A) :
(goodMaskActivePrimeEquiv R I F Q0 hR hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx
hbad hcop hA hT A hactive (Sum.inr P)).val.val.val=P.val.val := rfl
theorem goodMaskActivePrimeEquiv_exponent
(A:Finset (FreePrimeIndex (goodMaskMovingIdeal g r) Q0))
(hactive:∀P:PrimeIndex (rowResidualPart I (Ideal.span {m}*F)),splitIndex (Sum.inl P)∈A)
(P:PrimeIndex (rowResidualPart I (Ideal.span {m}*F)) ⊕ optionalPrimeActive splitIndex A) :
(normalizedFactors (goodMaskMovingIdeal g r)).count
(goodMaskActivePrimeEquiv R I F Q0 hR hI hF m f z hm0 hf hz um am bm g hg hm u a b r hr hx
hbad hcop hA hT A hactive P).val.val.val%6=
Sum.elim (fun _=>1) (fun S=>completedLocalExponent R F S.val.val) P := by
cases P with
| inl P=>
exact goodMaskFreePrimeFiberEquiv_exponent R I F Q0 hR hI hF m f z hm0 hf hz
um am bm g hg hm u a b r hr hx hbad hcop hA hT (Sum.inl P)
| inr P=>
exact goodMaskFreePrimeFiberEquiv_exponent R I F Q0 hR hI hF m f z hm0 hf hz
um am bm g hg hm u a b r hr hx hbad hcop hA hT (Sum.inr P.val)
end
lemma reflection_row_mask_bad (q:ℕ) (m:Eis) (F:Ideal Eis) :
∀P∈fixedBadPrimes,P∣Ideal.span {m*excludedGenerator (reflectionExcludedPrimes q)}*F := by
intro P hP
exact excluded_prime_dvd_row_mask q m F P (reflectionExcludedPrimes_bad q hP)
lemma residual_coprime_free_base (q:ℕ) (hq:q≠0) (m:Eis) (F I:Ideal Eis) :
IsCoprime (CanonicalCoefficientClass.fixedBaseConductor q*Ideal.span {(72:Eis)})
(rowResidualPart I (Ideal.span {m*excludedGenerator (reflectionExcludedPrimes q)}*F)) := by
have hc:=residual_coprime_fixed_conductor q hq m F I
rw [reflectionConductor_ideal] at hc
exact hc.of_isCoprime_of_dvd_left (dvd_mul_left _ (Ideal.span {(9:Eis)}))
end CanonicalRowCompletion
local instance (priority := 2000) residualLabelDecidableEq (A B:Type*) : DecidableEq (A⊕B) :=
Classical.decEq _
namespace CompletedGauss
open ActualEisensteinCubic LocalReflectionBrackets
local notation "Eis" => ActualEisensteinCubic.O
variable {α β:Type*} [Fintype α] [Fintype β]
def residualZeroLabel (e:β→Fin 3) : α⊕β→Fin 3 := Sum.elim (fun _=>0) e
theorem sum_labels_drop_residual (f:(α⊕β→Fin 3)→ℂ)
(hzero:∀e,(∃i:α,e (Sum.inl i)≠0)→f e=0) :
(∑e:α⊕β→Fin 3,f e)=∑e:β→Fin 3,f (residualZeroLabel e) := by
rw [←(Equiv.sumArrowEquivProdArrow α β (Fin 3)).symm.sum_comp]
rw [Fintype.sum_prod_type,Finset.sum_comm]
apply Finset.sum_congr rfl
intro e he
rw [Finset.sum_eq_single (fun _ : α=>0)]
· rfl
· intro d hd hn
apply hzero
have hx:∃i:α,d i≠0:=by
by_contra h
push Not at h
exact hn (funext h)
obtain ⟨i,hi⟩:=hx
exact ⟨i,hi⟩
· simp
lemma reflectedBranch_residual_label_zero
(P:α⊕β→Ideal Eis) [∀i,(P i).IsMaximal] (hg:∀i,lambda∉P i)
(j:α⊕β→ℕ) (hj:∀i:α,j (Sum.inl i)=1)
(e:α⊕β→Fin 3) (hbad:∃i:α,e (Sum.inl i)≠0) (n b:Eis) :
reflectedBranch P hg j e n b=0 := by
obtain ⟨i,hi⟩:=hbad
unfold reflectedBranch
apply Finset.prod_eq_zero (Finset.mem_univ (Sum.inl i))
simp only [reflectedLocalPiece,hj,show (1:ℕ)≠4 by decide,ite_false,ite_eq_right hi]
lemma reflectionExtractedDivisor_drop_residual
(P:α⊕β→Ideal Eis) (j:α⊕β→ℕ) (hj:∀i:α,j (Sum.inl i)=1)
(e:α⊕β→Fin 3) (v:Fin 3) :
reflectionExtractedDivisor P j e v=
reflectionExtractedDivisor (fun i:β=>P (Sum.inr i)) (fun i=>j (Sum.inr i))
(fun i=>e (Sum.inr i)) v := by
simp only [reflectionExtractedDivisor,Fintype.prod_sum_type]
have hz:(∏i:α,reflectionExtractedPrime (P (Sum.inl i)) (j (Sum.inl i)) (e (Sum.inl i)) v)=1 := by
simp only [hj,reflectionExtractedPrime,show (1:ℕ)≠4 by decide,show (1:ℕ)≠0 by decide,
false_and,false_or,ite_false,Finset.prod_const_one]
rw [hz,one_mul]
lemma reflectedBranch_drop_residual
(P:α⊕β→Ideal Eis) [∀i,(P i).IsMaximal] (hg:∀i,lambda∉P i)
(j:α⊕β→ℕ) (hj:∀i:α,j (Sum.inl i)=1)
(e:β→Fin 3) (n b:Eis) :
reflectedBranch P hg j (residualZeroLabel e) n b=
(∏i:α,bracket (actualSextic (P (Sum.inl i)) (hg (Sum.inl i))) 1
(Ideal.Quotient.mk _ (n*b^3)))*
reflectedBranch (fun i:β=>P (Sum.inr i)) (fun i=>hg (Sum.inr i))
(fun i=>j (Sum.inr i)) e n b := by
simp only [reflectedBranch,Fintype.prod_sum_type,residualZeroLabel,Sum.elim_inl,Sum.elim_inr]
congr 1
apply Finset.prod_congr rfl
intro i hi
simp only [reflectedLocalPiece,hj,show (1:ℕ)≠4 by decide,ite_false,ite_true]
end CompletedGauss
end
open scoped BigOperators Classical
local instance (priority := 2000) residualEquivDecidableEq (A B:Type*) : DecidableEq (A⊕B) :=
Classical.decEq _
namespace CompletedGauss
open ActualEisensteinCubic LocalReflectionBrackets
local notation "Eis" => ActualEisensteinCubic.O
variable {α β ι:Type*} [Fintype α] [Fintype β] [Fintype ι]
def residualLabelVia (E:α⊕β≃ι) (e:β→Fin 3) : ι→Fin 3 :=
residualZeroLabel e ∘ E.symm
omit [Fintype α] [Fintype β] [Fintype ι] in
lemma residualLabelVia_apply (E:α⊕β≃ι) (e:β→Fin 3) (i:α⊕β) :
residualLabelVia E e (E i)=residualZeroLabel e i := by
simp only [residualLabelVia,Function.comp_apply,Equiv.symm_apply_apply]
theorem sum_labels_drop_residual_equiv (E:α⊕β≃ι) (f:(ι→Fin 3)→ℂ)
(hzero:∀e,(∃i:α,e (E (Sum.inl i))≠0)→f e=0) :
(∑e:ι→Fin 3,f e)=∑e:β→Fin 3,f (residualLabelVia E e) := by
let e:=Equiv.arrowCongr E (Equiv.refl (Fin 3))
rw [←e.sum_comp f]
apply sum_labels_drop_residual
intro l hl
apply hzero
obtain ⟨i,hi⟩:=hl
refine ⟨i,?_⟩
simpa only [e,Equiv.arrowCongr_apply,Function.comp_apply,Equiv.refl_apply,Equiv.symm_apply_apply] using hi
omit [Fintype α] [Fintype β] in
lemma reflectedBranch_residual_zero_equiv (E:α⊕β≃ι)
(P:ι→Ideal Eis) [∀i,(P i).IsMaximal] (hg:∀i,lambda∉P i)
(j:ι→ℕ) (hj:∀i:α,j (E (Sum.inl i))=1)
(e:ι→Fin 3) (hbad:∃i:α,e (E (Sum.inl i))≠0) (n b:Eis) :
reflectedBranch P hg j e n b=0 := by
obtain ⟨i,hi⟩:=hbad
unfold reflectedBranch
apply Finset.prod_eq_zero (Finset.mem_univ (E (Sum.inl i)))
simp only [reflectedLocalPiece,hj,show (1:ℕ)≠4 by decide,ite_false,ite_eq_right hi]
lemma reflectionExtractedDivisor_drop_residual_equiv (E:α⊕β≃ι)
(P:ι→Ideal Eis) (j:ι→ℕ) (hj:∀i:α,j (E (Sum.inl i))=1)
(e:β→Fin 3) (v:Fin 3) :
reflectionExtractedDivisor P j (residualLabelVia E e) v=
reflectionExtractedDivisor (fun i:β=>P (E (Sum.inr i))) (fun i=>j (E (Sum.inr i))) e v := by
calc
_=reflectionExtractedDivisor (fun i=>P (E i)) (fun i=>j (E i)) (residualZeroLabel e) v := by
unfold reflectionExtractedDivisor
rw [←E.prod_comp]
apply Finset.prod_congr rfl
intro i hi
rw [residualLabelVia_apply]
_=_:=reflectionExtractedDivisor_drop_residual _ _ hj _ _
lemma reflectedBranch_drop_residual_equiv (E:α⊕β≃ι)
(P:ι→Ideal Eis) [∀i,(P i).IsMaximal] (hg:∀i,lambda∉P i)
(j:ι→ℕ) (hj:∀i:α,j (E (Sum.inl i))=1)
(e:β→Fin 3) (n b:Eis) :
reflectedBranch P hg j (residualLabelVia E e) n b=
(∏i:α,bracket (actualSextic (P (E (Sum.inl i))) (hg (E (Sum.inl i)))) 1
(Ideal.Quotient.mk _ (n*b^3)))*
reflectedBranch (fun i:β=>P (E (Sum.inr i))) (fun i=>hg (E (Sum.inr i)))
(fun i=>j (E (Sum.inr i))) e n b := by
calc
_=reflectedBranch (fun i=>P (E i)) (fun i=>hg (E i)) (fun i=>j (E i)) (residualZeroLabel e) n b := by
unfold reflectedBranch
rw [←E.prod_comp]
apply Finset.prod_congr rfl
intro i hi
rw [residualLabelVia_apply]
_=_:=reflectedBranch_drop_residual _ _ _ hj _ _ _
end CompletedGauss
end
end OAI

Xet Storage Details

Size:
30.2 kB
·
Xet hash:
a64d2bb3ada87677b559fc59672c7de43cd91038196fa86266605989abcaed19

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.