rw [←PrimeFamily.residual_product K hK]
apply IsCoprime.prod_right_iff.mpr
intro i hi
exact (PrimeFamily.residual K hK).level_coprime Q₀ c hc
(fun i => hcop.of_isCoprime_of_dvd_right (PrimeFamily.residual_dvd K hK i)) i
intro K hK
obtain ⟨I,hI,he⟩ :=Finset.mem_image.mp hK
subst K
obtain ⟨hi,hp,hm⟩ :=Finset.mem_filter.mp hI
have hk := rowResidualPart_admissible IQ hbad
refine ⟨hk,?_,?_⟩
· intro b
exact poolPrimeFamily_fiber_row_coprime JIQQ₀ hJ (hrows I hi) hQ hp.symm hm.symm b.val
· apply residual_level_coprime _ Q₀ hk c hc
exact (squarefreeResidualPart_coprime (rowSimplePart I) Q).symm.of_isCoprime_of_dvd_left hperiod
(fun p hp i => hmax i _ (((mem_fixedSlotTupleSet LFrozen.ideal p).mp (hsub hp)).1 i))
(fun p hp i => hgood i _ (((mem_fixedSlotTupleSet LFrozen.ideal p).mp (hsub hp)).1 i))
∀P∈tuples.image slotTupleProduct,
(∏ i,(SP).ideal i)=P∧Pairwise (Function.onFun IsCoprime (Frozen.sum (SP)).ideal) ∧
(∀ b,IsCoprime (Ideal.span {N}) ((Frozen.sum (SP)).ideal b)) ∧
(∀ b,ringChar (Eis⧸(Frozen.sum (SP)).ideal b)≠2) :=by
dsimp only
let hm :=fun p hp i => hmax i _ (((mem_fixedSlotTupleSet LFrozen.ideal p).mp (hsub hp)).1 i)
let hg :=fun p hp i => hgood i _ (((mem_fixedSlotTupleSet LFrozen.ideal p).mp (hsub hp)).1 i)
havehs : ∀ p∈tuples,∀ i,p i∈L i :=fun p hp => ((mem_fixedSlotTupleSet LFrozen.ideal p).mp (hsub hp)).1
intro P hP
refine ⟨tuplePrimeFamily_product tuples hne hm hg P hP,?_,?_,?_⟩
· exact tuplePrimeFamily_sum_pairwise Frozen hFrozen L hL tuples hne hs hm hg
(fun p hp => ((mem_fixedSlotTupleSet LFrozen.ideal p).mp (hsub hp)).2) P
· intro b
cases b with
| inl b => exact hFN b
| inr b => exact hLN b _ (hs _ (tupleRepresentative_mem tuples hne P) b)
· intro b
cases b with
| inl b => exact hFodd b
| inr b => exact hLodd b _ (hs _ (tupleRepresentative_mem tuples hne P) b)