Chinese Remainder Theorem

ChineseRemainderTheorem(Is, as) : SeqEnum[AlgEtQIdl], SeqEnum[AlgEtQElt]-> AlgEtQElt
Given a sequence Is of ideals of S, pairwise coprime, and a sequence as of elements of S, it returns an element e such that e - as[i] ∈Is[i] for every i.
ChineseRemainderTheorem(I, J, a, b) : AlgEtQIdl, AlgEtQIdl, AlgEtQElt, AlgEtQElt -> AlgEtQElt
Given two coprime ideals I and J of S, two elements a, b ∈S, finds e such that (e - a) ∈I and (e - b) ∈J.
V2.29, 21 October 2025