algebras [ca-0013]
algebras [ca-0013]
definition 1. ring homomorphism [chen2016infinitely, 4.5.1] [ca-0014]
definition 1. ring homomorphism [chen2016infinitely, 4.5.1] [ca-0014]
Let \((\alpha , +_\alpha , *_\alpha )\) and \((\beta , +_\beta , *_\beta )\) be rings. A ring homomorphism from \(\alpha \) to \(\beta \) is a map \(\mathit {1} : \alpha \to _{+*} \beta \) such that
- \(\mathit {1}(x +_{\alpha } y) = \mathit {1}(x) +_{\beta } \mathit {1}(y)\) for each \(x,y \in \alpha \).
- \(\mathit {1}(x *_{\alpha } y) = \mathit {1}(x) *_{\beta } \mathit {1}(y)\) for each \(x,y \in \alpha \).
- \(\mathit {1}(1_{\alpha }) = 1_{\beta }\).
definition 2. isomorphism, endomorphism, automorphism [ca-0015]
definition 2. isomorphism, endomorphism, automorphism [ca-0015]
Isomorphism \(A \cong B\) is a bijective homomorphism \(\phi : A \to B\) (it follows that \(\phi ^{-1} : B \to A\) is also a homomorphism).
Endomorphism is a homomorphism from an object to itself, denoted \(\operatorname {End}(A)\).
Automorphism is an endomorphism which is also an isomorphism, denoted \(\operatorname {Aut}(A)\).
definition 3. algebra [ca-0016]
L∃∀N
definition 3. algebra [ca-0016]
L∃∀N
Let \(R\) be a commutative ring. An algebra \(A\) over \(R\) is a pair \((A, \bullet )\), satisfying:
- \(A\) is a ring under \(*\).
- there exists a ring homomorphism from \(R\) to \(A\), denoted \(\mathit {1} : R \to _{+*} A\).
- \(\bullet : R \to M \to M\) is a scalar multiplication
- for every \(r \in R\), \(x \in A\), we have
- \(r * x = x * r\) (commutativity between \(R\) and \(A\))
- \(r \bullet x = r * x\) (definition of scalar multiplication)
notation 4. [ca-0017]
notation 4. [ca-0017]
Following literatures, for \(r \in R\),
usually we write \(\mathit {1}_A(r) : R \to _{+*} A\) as a product \(r \mathit {1}_A\) if not omitted,
while they are written as a call to
algebraMap _ _ r
in \(\textsf {Mathlib}\),
which is defined to be Algebra.toRingHom r
.
remark 5. [ca-0018]
remark 5. [ca-0018]
The definition above (adopted in \(\textsf {Mathlib}\)) is more general than the definition in literature (e.g. [jadczyk2019notes, 1.6]):
Let \(R\) be a commutative ring. An algebra \(A\) over \(R\) is a pair \((M, *)\), satisfying:
- \(A\) is a module \(M\) over \(R\) under \(+\) and \(\bullet \).
- \(A\) is a ring under \(*\).
- For \(x, y \in A, a \in R\), we have \[ a \bullet (x * y) = (a \bullet x) * y = x * (a \bullet y) \]
See Implementation notes in Algebra for details.
remark 6. [ca-0019]
remark 6. [ca-0019]
What's simply called algebra is actually associative algebra with identity, a.k.a. associative unital algebra. See the red herring principle for more about such phenomenon for naming, particularly the example of (possibly) nonassociative algebra.
definition 7. algebra homomorphism [ca-001A]
L∃∀N
definition 7. algebra homomorphism [ca-001A]
L∃∀N
Let \(A\) and \(B\) be \(R\)-algebras. \(\mathit {1}_A\) and \(\mathit {1}_B\) are ring homomorphisms from \(R\) to \(A\) and \(B\), respectively. A algebra homomorphism from \(A\) to \(B\) is a map \(f : \alpha \to _{a} \beta \) such that
- \(f\) is a ring homomorphism
- \(f(\mathit {1}_{A}(r)) = \mathit {1}_{B}(r)\) for each \(r \in R\)
definition 8. ring quotient [ca-001B]
L∃∀N
definition 8. ring quotient [ca-001B]
L∃∀N
Let \(R\) be a non-commutative ring, \(r\) an arbitrary equivalence relation on \(R\). The ring quotient of \(R\) by \(r\) is the quotient of \(R\) by the strengthen equivalence relation of \(r\) such that for all \(a, b, c\) in \(R\):
- \(a + c \sim b + c\) if \(a \sim b\)
- \(a * c \sim b * c\) if \(a \sim b\)
- \(a * b \sim a * c\) if \(b \sim c\)
remark 9. [ca-001C]
remark 9. [ca-001C]
As ideals haven't been formalized for the non-commutative case, \(\textsf {Mathlib}\) uses RingQuot in places where the quotient of non-commutative rings by ideal is needed. The universal properties of the quotient are proven, and should be used instead of the definition that is subject to change.
definition 10. free algebra [ca-001D]
definition 10. free algebra [ca-001D]
Let \(X\) be an arbitrary set. An free \(R\)-algebra on \(X\) (or "generated by \(X\)"), named \(A\), is the ring quotient of the following inductively constructed set \(A_{\mathtt {pre}}\)
- for all \(x\) in \(X\), there exists a map \(X \to A_{\mathtt {pre}}\).
- for all \(r\) in \(R\), there exists a map \(R \to A_{\mathtt {pre}}\).
- for all \(a, b\) in \(A_{\mathtt {pre}}\), \(a + b\) is in \(A_{\mathtt {pre}}\).
- for all \(a, b\) in \(A_{\mathtt {pre}}\), \(a * b\) is in \(A_{\mathtt {pre}}\).
- there exists a ring homomorphism from \(R\) to \(A_{\mathtt {pre}}\), denoted \(R \to _{+*} A_{\mathtt {pre}}\).
- \(A\) is a commutative group under \(+\).
- \(A\) is a monoid under \(*\).
- left and right distributivity under \(*\) over \(+\).
- \(0 * a \sim a * 0 \sim 0\).
- for all \(a, b, c\) in \(A\), if \(a \sim b\), we have
- \(a + c \sim b + c\)
- \(c + a \sim c + b\)
- \(a * c \sim b * c\)
- \(c * a \sim c * b\)
definition 12. linear map [ca-001F]
L∃∀N
definition 12. linear map [ca-001F]
L∃∀N
Let \(R, S\) be rings, \(M\) an \(R\)-module, \(N\) an \(S\)-module. A linear map from \(M\) to \(N\) is a function \(f : M \to _{l} N\) over a ring homomorphism \(\sigma : R \to _{+*} S\), satisfying:
- \(f(x + y) = f(x) + f(y)\) for all \(x, y \in M\).
- \(f(r \bullet x) = \sigma (r) \bullet f(x)\) for all \(r \in R\), \(x \in M\).
remark 13. Lin [ca-001G]
remark 13. Lin [ca-001G]
The set of all linear maps from \(M\) to \(M'\) is denoted \(\operatorname {Lin}(M, M')\), and \(\operatorname {Lin}(M)\) for mapping from \(M\) to itself. \(\operatorname {Lin}(M)\) is an endomorphism.
definition 14. tensor algebra [ca-001H]
L∃∀N
definition 14. tensor algebra [ca-001H]
L∃∀N
Let \(A\) be a free \(R\)-algebra generated by module \(M\), let \(\iota : M \to A\) denote the map from \(M\) to \(A\). An tensor algebra over \(M\) (or "of \(M\)") \(T\) is the ring quotient of the free \(R\)-algebra generated by \(M\), by the equivalence relation satisfying:
- for all \(a, b\) in \(M\), \(\iota (a + b) \sim \iota (a) + \iota (b)\).
- for all \(r\) in \(R\), \(a\) in \(M\), \(\iota (r \bullet a) \sim r * \iota (a)\).
remark 15. [ca-001I]
remark 15. [ca-001I]
The definition above is equivalent to the following definition in literature (e.g. [jadczyk2019notes, 1.7]):
Let \(M\) be a module over \(R\). An algebra \(T\) is called a tensor algebra over \(M\) (or "of \(M\)") if it satisfies the following universal properties:
- \(T\) is an algebra containing \(M\) as a submodule, and it is generated by \(M\),
- Every linear mapping \(\lambda \) of \(M\) into an algebra \(A\) over \(R\), can be extended to a homomorphism \(\theta \) of \(T\) into \(A\).