/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/modulepublicimportMathlib.Algebra.Category.ModuleCat.AlgebrapublicimportMathlib.Algebra.Category.ModuleCat.BasicpublicimportMathlib.LinearAlgebra.FiniteDimensional.DefspublicimportMathlib.RingTheory.Bialgebra.Basic@[expose]publicnoncomputablesection
The trivial module of a bialgebra
If A is a bialgebra over a commutative ring R, the counit A →ₐ[R] R makes R into an
A-module, the trivial module. We package it as the object Bialgebra.trivialModuleCat R A of
ModuleCat A.
Over a field k, restricting scalars along algebraMap k A recovers the k-module structure of
k itself (Bialgebra.trivialModuleCat_smul_base), so the trivial module is one-dimensional;
Bialgebra.trivialModuleCatLinearEquiv and the FiniteDimensional instance record this. That
k-module structure is ModuleCat.moduleOfAlgebraModule, a scoped instance, so a file stating
FiniteDimensional k (trivialModuleCat k A) must open scoped ModuleCat.Algebra.
The bialgebra A acts on its trivial module through the counit. The carrier of
trivialModuleCat R A is R by definition, so the product on the right is the product of R.
The k-module structure on the trivial module of a bialgebra over a field k, obtained by
restricting scalars along algebraMap k B, is the module structure of k itself: the counit is a
k-algebra map, so it sends algebraMap k B c to c.