Skip to content

Commit 8103de0

Browse files
themathqueenrobertmaxton42
authored andcommitted
chore(RingTheory/Coalgebra/TensorProduct): generalize (leanprover-community#29157)
Defining `comul` and `counit` for tensor products should only require `CoalgebraStruct` and not `Coalgebra`.
1 parent ce86fe6 commit 8103de0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Mathlib/RingTheory/Coalgebra/TensorProduct.lean

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ the base change `S ⊗[R] B` as an `S`-coalgebra.
2525
open TensorProduct
2626

2727
variable {R S A B : Type*} [CommSemiring R] [CommSemiring S] [AddCommMonoid A] [AddCommMonoid B]
28-
[Algebra R S] [Module R A] [Module S A] [Module R B] [Coalgebra R B]
29-
[Coalgebra S A] [IsScalarTower R S A]
28+
[Algebra R S] [Module R A] [Module S A] [Module R B] [IsScalarTower R S A]
3029

3130
namespace TensorProduct
3231

3332
open Coalgebra
3433

34+
section CoalgebraStruct
35+
variable [CoalgebraStruct R B] [CoalgebraStruct S A]
36+
3537
noncomputable
3638
instance instCoalgebraStruct : CoalgebraStruct S (A ⊗[R] B) where
3739
comul :=
@@ -63,6 +65,10 @@ lemma comul_tmul (x : A) (y : B) :
6365
lemma counit_tmul (x : A) (y : B) :
6466
counit (R := S) (x ⊗ₜ[R] y) = counit (R := R) y • counit (R := S) x := rfl
6567

68+
end CoalgebraStruct
69+
70+
variable [Coalgebra R B] [Coalgebra S A]
71+
6672
open Lean.Parser.Tactic in
6773
/-- `hopf_tensor_induction x with x₁ x₂` attempts to replace `x` by
6874
`x₁ ⊗ₜ x₂` via linearity. This is an implementation detail that is used to set up tensor products

0 commit comments

Comments
 (0)