definitialColumn (Ψ : O→* ℂ) (j Cd h : O)
(H : Finset ι→ℂ) (S : Finset ι) : ℂ:=
body · 4
lines
columnCoefficient p hp hcop hg S * Ψ (∏ i∈S,p i) *
rowCoprimeMask (fun i=>Ideal.span {p i}) S (j*C) *
star (finiteSquarefreeRow (fun i=>Ideal.span {p i}) hg S d) *
finiteSquarefreeRow (fun i=>Ideal.span {p i}) hg S h * HS
theoreminitialColumn_eq_secondPre (Ψ : O→* ℂ) (j Cd h : O)
(H : Finset ι→ℂ) (S : Finset ι) :
initialColumn p hp hcop hg Ψ j C d h HS =
secondPreColumn p hp hcop hg Ψ (j*C) 11 d h HS:=by
proof · 2
lines
have hone :=ActualEisensteinCubic.finiteSquarefreeRow_one (fun i=>Ideal.span {p i}) hg S
simp only [initialColumn,secondPreColumn,hone,one_pow,mul_one]
theoreminitial_common_extraction (hpr : ∀ i,λ₀^2∣p i-1)
(Ψ : O→* ℂ) (j t d h : O) (H : Finset ι→ℂ)
(VN : Finset ι) (hVN : DisjointVN) :
initialColumn p hp hcop hg Ψ j (d*t) d h H (V∪N) =
initialColumn p hp hcop hg Ψ j (d*t) d h (fun _=>1) V *
secondChildColumn p hp hcop hg Ψ (j*t) (d*∏ i∈V,p i) (d*h)
(funU=>H (V∪U)) N:=by
proof · 2
lines
simp only [initialColumn_eq_secondPre]
simpa only [one_mul] using secondPreColumn_union p hp hcop hg hpr Ψ j t 11 d h HVN hVN
theoreminitial_marked_child (FVA : Finset ι) (Ψ : O→* ℂ) (j t d h : O)
(slots : Finset σ) (lists : σ→Finset ι) (a : σ→ι→ℂ)
(W : ℝ→ℂ) (X : ℝ) :
(∑N∈(F\V).powerset,
secondChildColumn p hp hcop hg Ψ (j*t) (d*∏ i∈V,p i) (d*h)
(funU=>primeMark slots lists a (A∪V∪U)*
W (primeProductNorm p (V∪U)/X)) N) =
∑J∈slots.powerset,primeMark J lists a (A∪V)*
finiteCanonicalMarkedRow p hp hcop hg F Ψ (j*t) (d*∏ i∈V,p i) (d*h)
(slots\J) (fun i=>lists i\A) a W (X/primeProductNorm p V) :=by
proof · 2
lines
simpa only [secondChildSum,one_mul,←Finset.union_assoc] using
secondChildSum_marked_fixed_pool p hp hcop hg FVA Ψ j t 11 d h slots lists a WX
theoremsourceIdeal_dvd (EG : Finset ι) (hEG : E⊆G) : sourceIdeal p E∣sourceIdeal p G:=by
proof · 3
lines
refine ⟨sourceIdeal p (G\E),?_⟩
rw [←sourceIdeal_union p E (G\E) (by exact Finset.disjoint_left.mpr (fun i hi hj=>(Finset.mem_sdiff.mp hj).2 hi)),
Finset.union_sdiff_of_subset hEG]
refine ⟨sourceIdeal_ne_zero p hp G,sourceIdeal_ne_zero p hp V,?_,
sourceIdeal_dvd p EG hEG,?_⟩
· change primaryGenerator (sourceIdeal p E)≠0
rw [sourceIdeal_gen p hp hpr E]
exact Finset.prod_ne_zero_iff.mpr (fun i _=>hp i)
· intro i
change (sourcePrime p (assigned i)).val∣sourceIdeal p G*sourceIdeal p V
rcases Finset.mem_union.mp (ha i) with hi|hi
· exact dvd_mul_of_dvd_left (source_prime_dvd p G (assigned i) hi) _
· exact dvd_mul_of_dvd_right (source_prime_dvd p V (assigned i) hi) _
theoremsource_quotient (GE : Finset ι) (hEG : E⊆G) :
CanonicalQuadraticSieve.idealQuotient (sourceIdeal p E) (sourceIdeal p G)=
sourceIdeal p (G\E) :=by
proof · 4
lines
apply mul_left_cancel₀ (sourceIdeal_ne_zero p hp E)
rw [CanonicalQuadraticSieve.idealQuotient_mul (sourceIdeal_dvd p EG hEG)]
rw [←sourceIdeal_union p E (G\E) (by exact Finset.disjoint_left.mpr (fun i hi hj=>(Finset.mem_sdiff.mp hj).2 hi)),
Finset.union_sdiff_of_subset hEG]
theoreminitial_pair_children
(hinj : Function.Injective (fun i=>Ideal.span {p i}))
(hpr : ∀ i,λ₀^2∣p i-1) (F : Finset ι) (Ψ₁ Ψ₂ : O→* ℂ)
(j t d h₁ h₂ : O) (H₁H₂ : Finset ι→ℂ) :
(∑S∈F.powerset,∑T∈F.powerset,ifDisjointSTthen
star (initialColumn p hp hcop hg Ψ₁ j (d*t) d h₁ H₁S)*
initialColumn p hp hcop hg Ψ₂ j (d*t) d h₂ H₂Telse0) =
∑V∈F.powerset,
(FirstCauchyArithmetic.supportMobius (fun i=>Ideal.span {p i}) V *
star (initialColumn p hp hcop hg Ψ₁ j (d*t) d h₁ (fun _=>1) V)*
initialColumn p hp hcop hg Ψ₂ j (d*t) d h₂ (fun _=>1) V) *
star (∑N∈(F\V).powerset,secondChildColumn p hp hcop hg Ψ₁
(j*t) (d*∏ i∈V,p i) (d*h₁) (funU=>H₁ (V∪U)) N) *
(∑N∈(F\V).powerset,secondChildColumn p hp hcop hg Ψ₂
(j*t) (d*∏ i∈V,p i) (d*h₂) (funU=>H₂ (V∪U)) N) :=by
proof · 3
lines
simp only [initialColumn_eq_secondPre]
simpa only [secondSeparatedPair,secondCommonWeight,secondChildSum,one_mul] using
secondSeparatedPair_eq_children p hp hcop hg hinj hpr F Ψ₁ Ψ₂ j t 11 d h₁ h₂ H₁H₂
theoreminitial_scalar_self_pair
(hc : ∀ i,ringChar (O ⧸ Ideal.span {p i})≠2)
(Ψ : O→* ℂ) (j Cd h : O) (V : Finset ι)
(hΨ : ‖Ψ (∏ i∈V,p i)‖=1) :
star (initialColumn p hp hcop hg Ψ j C d h (fun _=>1) V)*
initialColumn p hp hcop hg Ψ j C d h (fun _=>1) V =
rowCoprimeMask (fun i=>Ideal.span {p i}) V (j*C)*
rowCoprimeMask (fun i=>Ideal.span {p i}) V d *
rowCoprimeMask (fun i=>Ideal.span {p i}) V h :=by
proof · 22
lines
have hcol := columnCoefficient_mul_star p hp hcop hg hc Vhavehphase : Ψ (∏ i∈V,p i)*star (Ψ (∏ i∈V,p i))=1:=by
rw [←starRingEnd_apply,Complex.mul_conj',hΨ]
norm_num
havehmask : star (rowCoprimeMask (fun i=>Ideal.span {p i}) V (j*C))*
rowCoprimeMask (fun i=>Ideal.span {p i}) V (j*C)=
rowCoprimeMask (fun i=>Ideal.span {p i}) V (j*C) :=by
unfold rowCoprimeMask
split_ifs <;> simp
have hd := finiteSquarefreeRow_self_pair (fun i=>Ideal.span {p i}) hg V d
have hh := finiteSquarefreeRow_self_pair (fun i=>Ideal.span {p i}) hg V h
simp only [initialColumn,mul_one,star_mul,star_star]
calc
_ = (columnCoefficient p hp hcop hg V*star (columnCoefficient p hp hcop hg V))*
(Ψ (∏ i∈V,p i)*star (Ψ (∏ i∈V,p i)))*
(star (rowCoprimeMask (fun i=>Ideal.span {p i}) V (j*C))*
rowCoprimeMask (fun i=>Ideal.span {p i}) V (j*C))*
(star (finiteSquarefreeRow (fun i=>Ideal.span {p i}) hg V d)*
finiteSquarefreeRow (fun i=>Ideal.span {p i}) hg V d)*
(star (finiteSquarefreeRow (fun i=>Ideal.span {p i}) hg V h)*
finiteSquarefreeRow (fun i=>Ideal.span {p i}) hg V h) :=by ring
_ = _ :=by rw [hcol,hphase,hmask,hd,hh]; ring
intro x y he
have hC := congrArg InitialTuple.common he
have hD := congrArg InitialTuple.divisor he
have hV := congrArg InitialTuple.residual he
have hf := congrArg InitialTuple.frequency he
have ha := congrArg InitialTuple.assigned he
apply Source.ext
· exact sourceIdeal_injective p hinj hC
· exact sourceIdeal_injective p hinj hD
· exact sourceIdeal_injective p hinj hV
· exact hf
· funext i
apply hinj
exact congrArg Subtype.val (congrFun ha i)
letS:= sources.filter (fun x=>initialChild (toTuple p x)=(t,f,k))
letT:=S.image (toTuple p)
havehvalid : ∀ y∈T, Valid y t f k :=by
intro y hy
obtain ⟨x,hx,rfl⟩ :=Finset.mem_image.mp hy
obtain ⟨hxs,hchild⟩ :=Finset.mem_filter.mp hx
have hv := initialChild_valid (toTuple p x)
(actual_source_valid p hp hpr x (hdiv x hxs) lists a (hterm x hxs))
simpa only [hchild] using hv
have hh := valid_tuple_card_le_separated T t f k ht hf hvalid
havehcard : T.card=S.card :=Finset.card_image_of_injective _ (toTuple_injective p hinj)
rw [hcard] at hh
exact hh
intro x y he
apply Source.ext
· simpa only [sectorSource] using congrArg (funz : Source (ι:=ι) J=>z.common) he
· simpa only [sectorSource] using congrArg (funz : Source (ι:=ι) J=>z.divisor) he
· simpa only [sectorSource] using congrArg (funz : Source (ι:=ι) J=>z.overlap) he
· have hh := congrArg Source.frequency he
exact mul_left_cancel₀ (pow_ne_zero 5 (Units.ne_zero u)) hh
· simpa only [sectorSource] using congrArg (funz : Source (ι:=ι) J=>z.assigned) he
letS:= sources.filter (fun x=>initialChild (toTuple p (sectorSource u x))=(t,f,k))
letT:=S.image (fun x=>toTuple p (sectorSource u x))
havehv : ∀ y∈T, Valid y t f k :=by
intro y hy
obtain ⟨x,hx,rfl⟩ :=Finset.mem_image.mp hy
obtain ⟨hxs,hchild⟩ :=Finset.mem_filter.mp hx
have he := initialChild_valid (toTuple p (sectorSource u x))
(actual_source_valid p hp hpr (sectorSource u x) (hdiv x hxs) lists a (hterm x hxs))
simpa only [hchild] using he
have hh := valid_tuple_card_le_separated T t f k ht hf hv
havehcard : T.card=S.card :=Finset.card_image_of_injective _ (sectorTuple_injective p hinj u)
rw [hcard] at hh
exact hh
theoreminitial_poisson_child_normalized
(hpr : ∀ i,λ₀^2∣p i-1) (GEV : Finset ι) (Ψ : O→* ℂ)
(j e t h : O) (he : Ideal.span {e}=sourceIdeal p E)
(ht : Ideal.span {t}=sourceIdeal p (G\E)) :
∃u : Oˣ, e=(u:O)*primaryGenerator (sourceIdeal p E) ∧∀ (H : Finset ι→ℂ) (N : Finset ι),
secondChildColumn p hp hcop hg Ψ (j*t) (e*∏ i∈V,p i) (e*h) HN =
secondChildColumn p hp hcop hg Ψ
(j*primaryGenerator (sourceIdeal p (G\E)))
(primaryGenerator (sourceIdeal p E*sourceIdeal p V))
(primaryGenerator (sourceIdeal p E)*((u:O)^5*h)) HN:=by
proof · 17
lines
havehgE : primaryGenerator (sourceIdeal p E)≠0:=by
rw [sourceIdeal_gen p hp hpr E]
exact Finset.prod_ne_zero_iff.mpr (fun i _=>hp i)
obtain ⟨u,hu⟩ := generator_eq_unit_primary (sourceIdeal p E) e he hgE
refine ⟨u,hu,?_⟩
intro HNhavehts : Ideal.span {t}=Ideal.span {primaryGenerator (sourceIdeal p (G\E))} :=by
rw [ht,sourceIdeal_gen p hp hpr (G\E)]
rfl
have hmask := rowCoprimeMask_mul_eq_of_span_eq (fun i=>Ideal.span {p i}) N j hts
havehchange : secondChildColumn p hp hcop hg Ψ (j*t) (e*∏ i∈V,p i) (e*h) HN =
secondChildColumn p hp hcop hg Ψ (j*primaryGenerator (sourceIdeal p (G\E)))
(e*∏ i∈V,p i) (e*h) HN:=by
simp only [secondChildColumn,hmask]
rw [hchange,hu,primaryGenerator_mul,sourceIdeal_gen p hp hpr V]
rw [mul_assoc (u:O)]
exact secondChildColumn_generator_unit p hp hcop hg Ψ u _ _ _ h HN