Skip to content

Commit 5154924

Browse files
committed
Sweedler docstring/spacing
1 parent 90e3c6c commit 5154924

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

FLT/for_mathlib/Coalgebra/Sweedler.lean

+17-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,21 @@ Authors: Yunzhou Xie, Yichen Feng, Yanqiao Zhou, Jujian Zhang
66

77
import Mathlib.RingTheory.Bialgebra
88

9-
set_option autoImplicit false
9+
/-!
10+
11+
# "Sweedler notation"
12+
13+
Sweedler notation seems to be the practice of writing `comul x` (for `x` in a
14+
coalgebra) as `∑ᵢ x₁ᵢ ⊗ x₂ᵢ` and then dropping the sum and instead writing
15+
`x⁽¹⁾ ⊗ x⁽²⁾`. The axioms of a coalgebra/bialgebra/Hopf algebra can be
16+
rewritten using Sweedler notation and look a little less cluttered this way.
17+
Something which surprised me (KB): sometimes `ext` is not enough and one really
18+
has to decompose elements in this way; so we take the time to write a small API for
19+
this idea, although we do not attempt to remove the `∑` symbol. The finite
20+
index set that `i` runs through is, somewhat arbitrarily, defined to be
21+
a subset of `A ⊗ A` with `A` the coalgebra in question.
22+
23+
-/
1024

1125
open BigOperators TensorProduct
1226

@@ -51,12 +65,12 @@ lemma comul_repr (a : A) :
5165

5266
lemma sum_counit_tmul (a : A) {ι : Type*} (s : Finset ι) (x y : ι → A)
5367
(repr : comul a = ∑ i in s, x i ⊗ₜ[R] y i) :
54-
∑ i in s, counit (R := R) (x i) ⊗ₜ y i = 1 ⊗ₜ[R] a := by
68+
∑ i in s, counit (R := R) (x i) ⊗ₜ y i = 1 ⊗ₜ[R] a := by
5569
simpa [repr, map_sum] using congr($(rTensor_counit_comp_comul (R := R) (A := A)) a)
5670

5771
lemma sum_tmul_counit (a : A) {ι : Type*} (s : Finset ι) (x y : ι → A)
5872
(repr : comul a = ∑ i in s, x i ⊗ₜ[R] y i) :
59-
∑ i in s, (x i) ⊗ₜ counit (R := R) (y i) = a ⊗ₜ[R] 1 := by
73+
∑ i in s, (x i) ⊗ₜ counit (R := R) (y i) = a ⊗ₜ[R] 1 := by
6074
simpa [repr, map_sum] using congr($(lTensor_counit_comp_comul (R := R) (A := A)) a)
6175

6276
end Coalgebra

0 commit comments

Comments
 (0)