1.2 Commutative rings and modules
1.2.1 Reminder: Commutative rings
A commutative ring means a set \(K\) equipped with three maps
and two elements \(\mathbf{0}\in K\) and \(\mathbf{1}\in K\) satisfying the following axioms:
Commutativity of addition: We have \(a\oplus b=b\oplus a\) for all \(a,b\in K\).
Associativity of addition: We have \(a\oplus \left( b\oplus c\right) =\left( a\oplus b\right) \oplus c\) for all \(a,b,c\in K\).
Neutrality of zero: We have \(a\oplus \mathbf{0}=\mathbf{0}\oplus a=a\) for all \(a\in K\).
Subtraction undoes addition: Let \(a,b,c\in K\). We have \(a\oplus b=c\) if and only if \(a=c\ominus b\).
Commutativity of multiplication: We have \(a\odot b=b\odot a\) for all \(a,b\in K\).
Associativity of multiplication: We have \(a\odot \left( b\odot c\right) =\left( a\odot b\right) \odot c\) for all \(a,b,c\in K\).
Distributivity: We have
\[ a\odot \left( b\oplus c\right) =\left( a\odot b\right) \oplus \left( a\odot c\right) \ \ \ \ \ \ \ \ \ \ \text{and}\ \ \ \ \ \ \ \ \ \ \left( a\oplus b\right) \odot c=\left( a\odot c\right) \oplus \left( b\odot c\right) \]for all \(a,b,c\in K\).
Neutrality of one: We have \(a\odot \mathbf{1}=\mathbf{1}\odot a=a\) for all \(a\in K\).
Annihilation: We have \(a\odot \mathbf{0}=\mathbf{0}\odot a=\mathbf{0}\) for all \(a\in K\).
The operations \(\oplus \), \(\ominus \) and \(\odot \) are called the addition, the subtraction and the multiplication of the ring \(K\). When confusion is unlikely, we will denote these three operations \(\oplus \), \(\ominus \) and \(\odot \) by \(+\), \(-\) and \(\cdot \), respectively, and we will abbreviate \(a\odot b=a\cdot b\) by \(ab\).
The elements \(\mathbf{0}\) and \(\mathbf{1}\) are called the zero and the unity (or the one) of the ring \(K\). We will simply call these elements \(0\) and \(1\) when confusion with the corresponding numbers is unlikely.
We will use PEMDAS conventions for the three operations \(\oplus \), \(\ominus \) and \(\odot \). These imply that the operation \(\odot \) has higher precedence than \(\oplus \) and \(\ominus \), while the operations \(\oplus \) and \(\ominus \) are left-associative.
1.2.2 Standard rules in commutative rings
Let \(K\) be a commutative ring. For any \(a,b\in K\), we have \(-\left( a+b\right) =\left( -a\right) +\left( -b\right)\).
Standard ring theory.
Let \(K\) be a commutative ring. For any \(a\in K\), we have \(-\left( -a\right) =a\).
Standard ring theory.
Let \(K\) be a commutative ring. For any \(a\in K\) and \(n,m\in \mathbb {Z}\), we have \(\left( n+m\right) a=na+ma\).
Standard ring theory.
Let \(K\) be a commutative ring. For any \(a\in K\) and \(n,m\in \mathbb {Z}\), we have \(\left( nm\right) a=n\left( ma\right)\).
Standard ring theory.
Let \(K\) be a commutative ring. For any \(a,b,c\in K\), we have \(a\left( b-c\right) =\left( ab\right) -\left( ac\right)\).
Standard ring theory.
Let \(K\) be a commutative ring. For any \(a,b\in K\) and \(n\in \mathbb {N}\), we have \(\left( ab\right) ^{n}=a^{n}b^{n}\).
Standard ring theory (induction on \(n\)).
Let \(K\) be a commutative ring. For any \(a\in K\) and \(n,m\in \mathbb {N}\), we have \(a^{n+m}=a^{n}a^{m}\).
Standard ring theory (induction on \(m\)).
Let \(K\) be a commutative ring. For any \(a\in K\) and \(n,m\in \mathbb {N}\), we have \(a^{nm}=\left( a^{n}\right) ^{m}\).
Standard ring theory (induction on \(m\)).
(Binomial Theorem.) Let \(K\) be a commutative ring. For any \(a,b\in K\) and \(n\in \mathbb {N}\),
Standard; this is the binomial theorem from Mathlib.
Let \(K\) be a commutative ring. For any \(a,b\in K\) and \(n\in \mathbb {N}\),
Write \(a - b = a + (-b)\) and apply Theorem 1.51.
1.2.3 Finite sums and products
Let \(K\) be a commutative ring. Let \(S\) be a finite type, and let \(X, Y\) be disjoint finite subsets of \(S\). For any family \((a_s)_{s \in S}\) of elements of \(K\), we have \(\sum _{s\in X\cup Y}a_{s}=\sum _{s\in X}a_{s}+\sum _{s\in Y}a_{s}\).
Standard.
Let \(K\) be a commutative ring. Let \(T\) be a finite set and \((a_s)_{s\in T}\), \((b_s)_{s\in T}\) be two families of elements of \(K\). Then \(\sum _{s\in T}\left( a_{s}+b_{s}\right) =\sum _{s\in T}a_{s}+\sum _{s\in T}b_{s}\).
Standard.
Let \(K\) be a commutative ring. If \(S=\varnothing \), then \(\sum _{s\in S}a_{s}=0\).
By definition.
Let \(K\) be a commutative ring. If \(S=\varnothing \), then \(\prod _{s\in S}a_{s}=1\).
By definition.
1.2.4 \(K\)-modules
Let \(K\) be a commutative ring.
A \(K\)-module means a set \(M\) equipped with three maps
(notice that the third map has domain \(K\times M\), not \(M\times M\)) and an element \(\overrightarrow {0}\in M\) satisfying the following axioms:
Commutativity of addition: We have \(a\oplus b=b\oplus a\) for all \(a,b\in M\).
Associativity of addition: We have \(a\oplus \left( b\oplus c\right) =\left( a\oplus b\right) \oplus c\) for all \(a,b,c\in M\).
Neutrality of zero: We have \(a\oplus \overrightarrow {0}=\overrightarrow {0}\oplus a=a\) for all \(a\in M\).
Subtraction undoes addition: Let \(a,b,c\in M\). We have \(a\oplus b=c\) if and only if \(a=c\ominus b\).
Associativity of scaling: We have \(u\rightharpoonup \left( v\rightharpoonup a\right) =\left( uv\right) \rightharpoonup a\) for all \(u,v\in K\) and \(a\in M\).
Left distributivity: We have \(u\rightharpoonup \left( a\oplus b\right) =\left( u\rightharpoonup a\right) \oplus \left( u\rightharpoonup b\right) \) for all \(u\in K\) and \(a,b\in M\).
Right distributivity: We have \(\left( u+v\right) \rightharpoonup a=\left( u\rightharpoonup a\right) \oplus \left( v\rightharpoonup a\right) \) for all \(u,v\in K\) and \(a\in M\).
Neutrality of one: We have \(1\rightharpoonup a=a\) for all \(a\in M\).
Left annihilation: We have \(0\rightharpoonup a=\overrightarrow {0}\) for all \(a\in M\).
Right annihilation: We have \(u\rightharpoonup \overrightarrow {0}=\overrightarrow {0}\) for all \(u\in K\).
The operations \(\oplus \), \(\ominus \) and \(\rightharpoonup \) are called the addition, the subtraction and the scaling (or the \(K\)-action) of the \(K\)-module \(M\). When confusion is unlikely, we will denote these three operations \(\oplus \), \(\ominus \) and \(\rightharpoonup \) by \(+\), \(-\) and \(\cdot \), respectively, and we will abbreviate \(a\rightharpoonup b=a\cdot b\) by \(ab\).
The element \(\overrightarrow {0}\) is called the zero (or the zero vector) of the \(K\)-module \(M\). We will usually just call it \(0\).
When \(M\) is a \(K\)-module, the elements of \(M\) are called vectors, while the elements of \(K\) are called scalars.
We will use PEMDAS conventions for the three operations \(\oplus \), \(\ominus \) and \(\rightharpoonup \), with the operation \(\rightharpoonup \) having higher precedence than \(\oplus \) and \(\ominus \).
1.2.5 Additive inverses in modules
Let \(K\) be a commutative ring and \(M\) a \(K\)-module. For any \(a\in M\), the additive inverse of \(a\) can be constructed as \((-1)\cdot a\), i.e., \(-a = (-1)\cdot a\).
Standard module theory.
Let \(K\) be a commutative ring and \(M\) a \(K\)-module. For any \(a,b\in M\), we have \(a - b = a + (-b)\).
Standard module theory.
Let \(K\) be a commutative ring and \(M\) a \(K\)-module. For any \(a,b\in M\), we have \(a - b = a + (-1)\cdot b\).
Combine the fact that \(-b = (-1)\cdot b\) with \(a - b = a + (-b)\).
Let \(K\) be a commutative ring and \(M\) a \(K\)-module. For any \(a,b\in M\), we have \(-(a+b) = (-a) + (-b)\).
Standard module theory.
Let \(K\) be a commutative ring and \(M\) a \(K\)-module. For any \(a\in M\), we have \(-(-a) = a\).
Standard module theory.
1.2.6 Inverses in commutative rings
Let \(L\) be a commutative ring and \(a, b \in L\).
(a) We say that \(b\) is an inverse (or multiplicative inverse) of \(a\) if \(a \cdot b = 1\).
(b) We say that \(a\) is invertible in \(L\) (or a unit of \(L\)) if \(a\) has an inverse.
- AlgebraicCombinatorics.FPS.IsInverse a b = (a * b = 1)
Let \(L\) be a commutative ring. If \(b\) and \(c\) are both inverses of \(a\), then \(b = c\). In other words, the inverse of an element (if it exists) is unique.
We have \(b = b \cdot 1 = b \cdot (a \cdot c) = (b \cdot a) \cdot c = 1 \cdot c = c\).
An element \(a \in L\) is invertible if there exists \(b \in L\) such that \(a \cdot b = 1\).
- AlgebraicCombinatorics.FPS.IsInvertible a = ∃ (b : L), AlgebraicCombinatorics.FPS.IsInverse a b
The definition of invertibility from Definition 1.63 is equivalent to the definition of a unit in Mathlib.
Both express the existence of a multiplicative inverse; the equivalence is immediate from the definitions.
If \(a\) and \(b\) are invertible in \(L\), then \(a \cdot b\) is invertible.
Convert to the equivalent notion of a unit and use the fact that the product of two units is a unit.
In a field \(F\), an element \(a\) is invertible if and only if \(a \neq 0\).
Every nonzero element of a field has a multiplicative inverse.
1.2.7 Fractions and integer powers
For an invertible element \(a\) and any \(b \in L\), the fraction \(b/a\) is defined as \(b \cdot a^{-1}\).
- AlgebraicCombinatorics.FPS.fraction b u = b * ↑u⁻¹
For an invertible element \(a\) and elements \(b, c \in L\), we have \(b / a = c\) if and only if \(b = c \cdot a\).
Multiply both sides by \(a\) (or \(a^{-1}\)) and use \(a \cdot a^{-1} = 1\).
For an invertible element \(a\) and a natural number \(n\), we have \(a^{-n} = (a^{-1})^n\). This defines negative integer powers.
By the definition of integer powers on units.
For an invertible element \(a\) and integers \(m, n \in \mathbb {Z}\), we have \(a^{m+n} = a^m \cdot a^n\).
Standard property of integer powers.