The elements of one ideal congruent to one modulo another #
For ideals I and J of a commutative ring, the elements of I congruent to 1 modulo J form
a coset of I ⊓ J inside I, translated by any one of them. Such an element exists exactly when
I and J are coprime, and coprimality also turns I ⊓ J into I * J.
This is the shape a counting argument wants: the set is a translate of a fixed subgroup, so it can be enumerated by translating that subgroup once.
Main results #
Ideal.isCoprime_iff_exists_mem_and_sub_one_mem: the set is nonempty exactly whenIandJare coprime;Ideal.setOf_mem_and_sub_one_mem_eq_vadd_inf: the set is a coset ofI ⊓ J;Ideal.setOf_mem_and_sub_one_mem_eq_vadd_mul: the same coset written overI * J.