#42067 feat(RingTheory): define Frobenius algebras
In plain words
Defines Frobenius algebras: a (possibly non-unital, non-associative) -algebra with a chosen linear functional such that is a bijection . Basic API: the isomorphism with the dual and nondegeneracy of the form; constructors from an associative isomorphism or from a left-separating associative bilinear form; finite-dimensionality over a field; the Nakayama automorphism; matrix algebras with the trace. A second file connects this to the existing Coalgebra.IsFrobenius. Over a field, a Frobenius algebra carries a coalgebra structure (not an instance) satisfying the Frobenius equations. Conversely, an algebra with a coalgebra structure satisfying them is a Frobenius algebra with the counit. Three nondegeneracy lemmas move from Coalgebra/IsFrobenius.lean to the new file and are reproved from the general ones.
Transcriptions are drafted with an LLM from the diff and are a reading aid, not a verified statement: the Lean code is the reference.
PR description
A FrobeniusAlgebra is an algebra that is equipped with a dual : Module.Dual R A such that the bilinear form (LinearMap.mul R A).compr₂ dual is bijective.
A straightforward example: a matrix over a field with the trace as its dual is a Frobenius algebra. (Not an instance because there can be other choices of the dual.)
A FrobeniusAlgebra induces a coalgebra such that it satisfies the Frobenius equations (Coalgebra.IsFrobenius).
Note that this is not an instance since you can have a different coalgebra that is not equal to this one (for example, if you have a Bialgebra R A where A is not isomorphic to R then the coalgebra cannot satisfy the Frobenius equations, so this is not equal to the coalgebra coming from a FrobeniusAlgebra R A).
A coalgebra that satisfies the Frobenius equations (Coalgebra.IsFrobenius) naturally induces a Frobenius algebra (FrobeniusAlgebra).
Conversation on GitHub 5
PR summary 950c34ab99
Import changes for modified files
No significant changes to the import graph
<details><summary>Import changes for all files</summary>
|Files|Import difference|
|-|-|
| Mathlib.RingTheory.FrobeniusAlgebra.Basic (new file)|1621|
| Mathlib.RingTheory.FrobeniusAlgebra.IsFrobenius (new file)|1629|
</details>
<details><summary>
Declarations diff (regex)
</summary>
+ FrobeniusAlgebra
+ _root_.Matrix.frobeniusAlgebra
+ _root_.Matrix.frobeniusAlgebraDual_eq_traceLinearMap
+ algEquiv_eq_nakayamaAlgEquiv_iff
+ comulLeft
+ comulLeft_eq_comulRight
+ comulRight
+ dual_apply_symm_equivDual_mul
+ dual_nakayamaAlgEquiv
+ dual_nakayamaAlgEquiv_mul
+ equivDual
+ equivDual_apply
+ equivDual_apply_apply
+ forall_dual_mul_left_eq_zero_iff
+ forall_dual_mul_right_eq_zero_iff
+ instFiniteDimensional
+ instance : FrobeniusAlgebra R R
+ isFrobenius_toCoalgebra
+ lTensor_dual_comp_comulLeft_comp_lid
+ nakayamaAlgEquiv
+ nondegenerate_equivDual
+ ofBilinForm
+ ofIsFrobenius
+ ofIsFrobenius_dual_eq
+ ofLinearEquiv
+ rTensor_comp_comulRight_comp_rid
+ symm_equivDual_compr₂_mul_dual
+ toCoalgebra
+ toLinearMap_equivDual
<details>
<summary>You can run this locally as follows</summary>
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>
</details>
The doc-module for scripts/pr_summary/declarations_diff.sh in the undefined repository contains some details about this script.
</details>
<details><summary>
Declarations diff (Lean)
</summary>
✅ Lean-aware diff — post-build, computed from the Lean environment (commit
950c34a).
- +40 new declarations
- −0 removed declarations
+FrobeniusAlgebra
+FrobeniusAlgebra.algEquiv_eq_nakayamaAlgEquiv_iff
+FrobeniusAlgebra.bijective_compr₂_mul
+FrobeniusAlgebra.casesOn
+FrobeniusAlgebra.comulLeft
+FrobeniusAlgebra.comulLeft_eq_comulRight
+FrobeniusAlgebra.comulRight
+FrobeniusAlgebra.ctorIdx
+FrobeniusAlgebra.dual
+FrobeniusAlgebra.dual_apply_symm_equivDual_mul
+FrobeniusAlgebra.dual_nakayamaAlgEquiv
+FrobeniusAlgebra.dual_nakayamaAlgEquiv_mul
+FrobeniusAlgebra.equivDual
+FrobeniusAlgebra.equivDual_apply
+FrobeniusAlgebra.equivDual_apply_apply
+FrobeniusAlgebra.forall_dual_mul_left_eq_zero_iff
+FrobeniusAlgebra.forall_dual_mul_right_eq_zero_iff
+FrobeniusAlgebra.inst
+FrobeniusAlgebra.instFiniteDimensional
+FrobeniusAlgebra.isFrobenius_toCoalgebra
+FrobeniusAlgebra.lTensor_dual_comp_comulLeft_comp_lid
+FrobeniusAlgebra.mk
+FrobeniusAlgebra.mk.noConfusion
+FrobeniusAlgebra.nakayamaAlgEquiv
+FrobeniusAlgebra.nakayamaAlgEquiv.congr_simp
+FrobeniusAlgebra.noConfusion
+FrobeniusAlgebra.noConfusionType
+FrobeniusAlgebra.nondegenerate_equivDual
+FrobeniusAlgebra.ofBilinForm
+FrobeniusAlgebra.ofIsFrobenius
+FrobeniusAlgebra.ofIsFrobenius_dual_eq
+FrobeniusAlgebra.ofLinearEquiv
+FrobeniusAlgebra.rTensor_comp_comulRight_comp_rid
+FrobeniusAlgebra.rec
+FrobeniusAlgebra.recOn
+FrobeniusAlgebra.symm_equivDual_compr₂_mul_dual
+FrobeniusAlgebra.toCoalgebra
+FrobeniusAlgebra.toLinearMap_equivDual
+Matrix.frobeniusAlgebra
+Matrix.frobeniusAlgebraDual_eq_traceLinearMap
</details>
No changes to strong technical debt. No changes to weak technical debt.
Current commit 950c34ab99 Reference commit 8b63df8c67
This script lives in the undefined repository. To run it locally, from your mathlib4 directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
✅ PR Title Formatted Correctly
The title of this PR has been updated to match our commit style conventions. Thank you!
This pull request has conflicts, please merge master and resolve them.
Just a remark. In my Hecke repo, I constructed a non-degenerate symmetric pairing by evaluating at one composed with multiplication, which is very close to what is happening here. But from there we can already construct trace elements for compact representations, which are central, and note that the Hecke algebra is usually infinite dimensional. It would be great if we can have some more general machinery.
This PR/issue depends on:
- ~~leanprover-community/mathlib4#27493~~
- ~~leanprover-community/mathlib4#42077~~
By Dependent Issues (🤖). Happy coding!
Mathlib.lean +2 −0
public import Mathlib.RingTheory.FractionalIdeal.OperationsMathlib/RingTheory/Coalgebra/IsFrobenius.lean +3 −21
import Mathlib.RingTheory.Coalgebra.CoassocSimpsIn texts, this is what the Frobenius equations are usually referred to as.instance instProjective : Module.Projective R A := byMathlib/RingTheory/FrobeniusAlgebra/Basic.lean +166 −0 new file
dual sounds weird to me. I think it is just a linear functional. "The dual of a Frobenius algebra" sounds like another algebra.
Should this be part of data so that we write [FrobeniusAlgebra R A Φ] where Φ is the linear functional? I wouldn't assume such functionals are canonical.
dual is indeed a weird name for the function, I'll change it.
As for your second question, I think that could be a separate definition IsFrobeniusAlgebra? I guess depends on usefulness
The problem is that if you have two functionals how can you express them in your variable? [FrobeniusAlgebra k A] and [Frobenius k A]??? note that such functionals are not unique, e.g. any nontrivial scaling over a field would again gives one. This natually arises from group algebra: you can use evaluation at one, but you can also take the trace of regular representation differing by the scalar |G|. This feels like writing Module V without the coeff k. I think it is as reasonable as CommRing R which can be IsMulCommutative + Ring in principle.
Another option is to use type synonyms. OK, I am not sure which is better.
I will push the draft SymmNondegenerateAlg soon where I will capital Φ. Probably we should share some notations. Will let you know.
Yes you can have multiple Frobenius algebra structures, just like you can have multiple coalgebra and algebra structures. It's usage should be up to the user, this is just the basic framework that allows you to work in this setting.
Another option is to use type synonyms
Yes, that's the idea I think. When you want to have multiple structures, you should use type synonyms. For example, see instMulWithConvMatrix where we're using type synonyms to have two separate algebra structures
Here it is #45067
Can you explain why we use bijective_compr₂_mul as the field? In my Hecke repo, I need a similar class
class SymmNondegenerateAlgebra (k A : Type*) [CommSemiring k] [NonUnitalNonAssocSemiring A]
[Module k A] [SMulCommClass k A A] [IsScalarTower k A A] where
functional : A →ₗ[k] k
isSymm : ∀ a b : A, functional (a * b) = functional (b * a)
separatingLeft (a : A) : (∀ b : A, functional (a * b) = 0) → a = 0
Note that separatingLeft is weaker than bijective. For infinite dimensional algebras, being bijective is too strong. Is it possible to define a class NondegenerateAlgebra so that both your Frobenius and my SymmNondegenerate extends it?
When you specialize to FiniteDimensional A Ring A, NondegenerateAlgebra will recover your FrobeniusAlgebra
If the generality of FrobeniusAlgebra does not buy anything away from Field k Ring A, I would question why not choose NondegenearteAlgebra as the main API since it has application in the infinite dimensional case.
But then it wouldn't induce a coalgebra that satisfies the Frobenius equations (Coalgebra.IsFrobenius). I'll need to think about this more
I'm not convinced that we want this in that generality. We'd be losing a lot of usefulness from Frobenius algebras. I think if we do eventually want an almost Frobenius algebra (the one from your definition without the symmetry), then we can add it and have the definition of Frobenius algebra extend it.
I'm not convinced either. For me, Symm is essential. But there is an old annals paper exactly using that definition www.jstor.org/stable/1970189. It seems that this definition is rarely used later, so I am not completely sure.
I think here we have a coe toLinearMap hidden. Should we name the bilinear map (equivDual R A).toLinearMap explicitly?