Documentation

CslibFrontier.Foundations.NumberTheory.CRTFiniteSet

Cofactors indexed by a finite set #

The cofactor of an indexed family on a finset subtype is exactly the product over that finset with the distinguished index erased. This is Finset.prod_erase_attach in the crtCofactor API and requires no positivity or nonzero hypotheses.

Main results #

theorem Cslib.crtCofactor_finset {α : Type u_1} [DecidableEq α] (s : Finset α) (f : α → ℤ) (p : ↥s) :
crtCofactor (fun (q : ↥s) => f ↑q) p = ∏ q ∈ s.erase ↑p, f q

Replace the subtype-indexed CRT cofactor by the corresponding erased-finset product.