The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V08. Multilinear algebra and forms

Mathlib.RingTheory.Coalgebra.Basic

93 declarations and 4 deprecated aliases. Mathlib docs · Source

Coalgebras

In this file we define Coalgebra, and provide instances for:

  • Commutative semirings: CommSemiring.toCoalgebra
  • Binary products: Prod.instCoalgebra
  • Finitely supported functions: DFinsupp.instCoalgebra, Finsupp.instCoalgebra
  • Finite pi functions: Pi.instCoalgebra

References

def Coalgebra.ctorIdx E1 #

{R : Type u} →
  {A : Type v} → {inst : CommSemiring R} → {inst_1 : AddCommMonoid A} → {inst_2 : Module R A} → Coalgebra R A → ℕ

theorem Coalgebra.Repr.mk.inj E1 #

∀ {R : Type u} {A : Type v} {inst : CommSemiring R} {inst_1 : AddCommMonoid A} {inst_2 : Module R A}
  {inst_3 : CoalgebraStruct R A} {a : A} {ι : Type u_1} {index : Finset ι} {left right : ι → A}
  {eq : ∑ i ∈ index, left i ⊗ₜ[R] right i = CoalgebraStruct.comul a} {index_1 : Finset ι} {left_1 right_1 : ι → A}
  {eq_1 : ∑ i ∈ index_1, left_1 i ⊗ₜ[R] right_1 i = CoalgebraStruct.comul a},
  { index := index, left := left, right := right, eq := eq } =
      { index := index_1, left := left_1, right := right_1, eq := eq_1 } →
    index = index_1 ∧ left = left_1 ∧ right = right_1

def CoalgebraStruct.ctorIdx E1 #

{R : Type u} →
  {A : Type v} → {inst : CommSemiring R} → {inst_1 : AddCommMonoid A} → {inst_2 : Module R A} → CoalgebraStruct R A → ℕ

theorem Coalgebra.Repr.mk.injEq E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : CoalgebraStruct R A] {a : A} {ι : Type u_1} (index : Finset ι) (left right : ι → A)
  (eq : ∑ i ∈ index, left i ⊗ₜ[R] right i = CoalgebraStruct.comul a) (index_1 : Finset ι) (left_1 right_1 : ι → A)
  (eq_1 : ∑ i ∈ index_1, left_1 i ⊗ₜ[R] right_1 i = CoalgebraStruct.comul a),
  ({ index := index, left := left, right := right, eq := eq } =
      { index := index_1, left := left_1, right := right_1, eq := eq_1 }) =
    (index = index_1 ∧ left = left_1 ∧ right = right_1)

def Coalgebra.Repr.ctorIdx E1 #

{R : Type u} →
  {A : Type v} →
    {inst : CommSemiring R} →
      {inst_1 : AddCommMonoid A} →
        {inst_2 : Module R A} → {inst_3 : CoalgebraStruct R A} → {a : A} → {ι : Type u_1} → Coalgebra.Repr R a ι → ℕ

class CoalgebraStruct E1 #

(R : Type u) → (A : Type v) → [inst : CommSemiring R] → [inst_1 : AddCommMonoid A] → [Module R A] → Type (max u v)

Data fields for Coalgebra, to allow API to be constructed before proving Coalgebra.coassoc.

See Coalgebra for documentation.

ctor CoalgebraStruct.mk E0 #

{R : Type u} →
  {A : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid A] →
        [inst_2 : Module R A] → (A →ₗ[R] TensorProduct R A A) → (A →ₗ[R] R) → CoalgebraStruct R A

abbrev CoalgebraStruct.comul E1 #

{R : Type u} →
  {A : Type v} →
    {inst : CommSemiring R} →
      {inst_1 : AddCommMonoid A} → {inst_2 : Module R A} → [self : CoalgebraStruct R A] → A →ₗ[R] TensorProduct R A A

The comultiplication of the coalgebra

abbrev CoalgebraStruct.counit E1 #

{R : Type u} →
  {A : Type v} →
    {inst : CommSemiring R} →
      {inst_1 : AddCommMonoid A} → {inst_2 : Module R A} → [self : CoalgebraStruct R A] → A →ₗ[R] R

The counit of the coalgebra

def RingTheory.LinearMap.termε E1 #

Lean.ParserDescr

The counit of the coalgebra

def RingTheory.LinearMap.termδ E1 #

Lean.ParserDescr

The comultiplication of the coalgebra

structure Coalgebra.Repr E1 #

(R : Type u) →
  {A : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid A] → [inst_2 : Module R A] → [CoalgebraStruct R A] → A → Type u_1 → Type (max u_1 v)

A representation of an element a of a coalgebra A is a finite sum of pure tensors ∑ xᵢ ⊗ yᵢ that is equal to comul a.

ctor Coalgebra.Repr.mk E0 #

{R : Type u} →
  {A : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid A] →
        [inst_2 : Module R A] →
          [inst_3 : CoalgebraStruct R A] →
            {a : A} →
              {ι : Type u_1} →
                (index : Finset ι) →
                  (left right : ι → A) →
                    ∑ i ∈ index, left i ⊗ₜ[R] right i = CoalgebraStruct.comul a → Coalgebra.Repr R a ι

abbrev Coalgebra.Repr.index E1 #

{R : Type u} →
  {A : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid A] →
        [inst_2 : Module R A] →
          [inst_3 : CoalgebraStruct R A] → {a : A} → {ι : Type u_1} → Coalgebra.Repr R a ι → Finset ι

the finite indexing set of a representation of comul a

abbrev Coalgebra.Repr.left E1 #

{R : Type u} →
  {A : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid A] →
        [inst_2 : Module R A] → [inst_3 : CoalgebraStruct R A] → {a : A} → {ι : Type u_1} → Coalgebra.Repr R a ι → ι → A

the first coordinate of a representation of comul a

abbrev Coalgebra.Repr.right E1 #

{R : Type u} →
  {A : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid A] →
        [inst_2 : Module R A] → [inst_3 : CoalgebraStruct R A] → {a : A} → {ι : Type u_1} → Coalgebra.Repr R a ι → ι → A

the second coordinate of a representation of comul a

theorem Coalgebra.Repr.eq E1 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : CoalgebraStruct R A] {a : A} {ι : Type u_1} (self : Coalgebra.Repr R a ι),
  ∑ i ∈ self.index, self.left i ⊗ₜ[R] self.right i = CoalgebraStruct.comul a

comul a is equal to a finite sum of some pure tensors

def Coalgebra.Repr.arbitrary E1 #

(R : Type u) →
  {A : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid A] →
        [inst_2 : Module R A] → [inst_3 : CoalgebraStruct R A] → (a : A) → Coalgebra.Repr R a (A × A)

An arbitrarily chosen representation.

def Coalgebra.termℛ E1 #

Lean.ParserDescr

An arbitrarily chosen representation.

class Coalgebra E3 #

(R : Type u) → (A : Type v) → [inst : CommSemiring R] → [inst_1 : AddCommMonoid A] → [Module R A] → Type (max u v)

A coalgebra over a commutative (semi)ring R is an R-module equipped with a coassociative comultiplication Δ and a counit ε obeying the left and right counitality laws.

instance Coalgebra.toCoalgebraStruct E0 #

{R : Type u} →
  {A : Type v} →
    {inst : CommSemiring R} →
      {inst_1 : AddCommMonoid A} → {inst_2 : Module R A} → [self : Coalgebra R A] → CoalgebraStruct R A

ctor Coalgebra.mk E0 #

{R : Type u} →
  {A : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid A] →
        [inst_2 : Module R A] →
          [toCoalgebraStruct : CoalgebraStruct R A] →
            ↑(TensorProduct.assoc R A A A) ∘ₗ LinearMap.rTensor A CoalgebraStruct.comul ∘ₗ CoalgebraStruct.comul =
                LinearMap.lTensor A CoalgebraStruct.comul ∘ₗ CoalgebraStruct.comul →
              LinearMap.rTensor A CoalgebraStruct.counit ∘ₗ CoalgebraStruct.comul = (TensorProduct.mk R R A) 1 →
                LinearMap.lTensor A CoalgebraStruct.counit ∘ₗ CoalgebraStruct.comul = (TensorProduct.mk R A R).flip 1 →
                  Coalgebra R A

theorem Coalgebra.coassoc E1 #

∀ {R : Type u} {A : Type v} {inst : CommSemiring R} {inst_1 : AddCommMonoid A} {inst_2 : Module R A}
  [self : Coalgebra R A],
  ↑(TensorProduct.assoc R A A A) ∘ₗ LinearMap.rTensor A CoalgebraStruct.comul ∘ₗ CoalgebraStruct.comul =
    LinearMap.lTensor A CoalgebraStruct.comul ∘ₗ CoalgebraStruct.comul

The comultiplication is coassociative

theorem Coalgebra.rTensor_counit_comp_comul E1 #

∀ {R : Type u} {A : Type v} {inst : CommSemiring R} {inst_1 : AddCommMonoid A} {inst_2 : Module R A}
  [self : Coalgebra R A],
  LinearMap.rTensor A CoalgebraStruct.counit ∘ₗ CoalgebraStruct.comul = (TensorProduct.mk R R A) 1

The counit satisfies the left counitality law

theorem Coalgebra.lTensor_counit_comp_comul E1 #

∀ {R : Type u} {A : Type v} {inst : CommSemiring R} {inst_1 : AddCommMonoid A} {inst_2 : Module R A}
  [self : Coalgebra R A],
  LinearMap.lTensor A CoalgebraStruct.counit ∘ₗ CoalgebraStruct.comul = (TensorProduct.mk R A R).flip 1

The counit satisfies the right counitality law

theorem Coalgebra.coassoc_apply E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A] (a : A),
  (TensorProduct.assoc R A A A) ((LinearMap.rTensor A CoalgebraStruct.comul) (CoalgebraStruct.comul a)) =
    (LinearMap.lTensor A CoalgebraStruct.comul) (CoalgebraStruct.comul a)

theorem Coalgebra.coassoc_symm_apply E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A] (a : A),
  (TensorProduct.assoc R A A A).symm ((LinearMap.lTensor A CoalgebraStruct.comul) (CoalgebraStruct.comul a)) =
    (LinearMap.rTensor A CoalgebraStruct.comul) (CoalgebraStruct.comul a)

theorem Coalgebra.coassoc_symm E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A],
  ↑(TensorProduct.assoc R A A A).symm ∘ₗ LinearMap.lTensor A CoalgebraStruct.comul ∘ₗ CoalgebraStruct.comul =
    LinearMap.rTensor A CoalgebraStruct.comul ∘ₗ CoalgebraStruct.comul

theorem Coalgebra.rTensor_counit_comul E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A] (a : A), (LinearMap.rTensor A CoalgebraStruct.counit) (CoalgebraStruct.comul a) = 1 ⊗ₜ[R] a

theorem Coalgebra.lTensor_counit_comul E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A] (a : A), (LinearMap.lTensor A CoalgebraStruct.counit) (CoalgebraStruct.comul a) = a ⊗ₜ[R] 1

theorem Coalgebra.sum_counit_tmul_eq E0 #

∀ {R : Type u} {A : Type v} {ι : Type u_1} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A] {a : A} (repr : Coalgebra.Repr R a ι),
  ∑ i ∈ repr.index, CoalgebraStruct.counit (repr.left i) ⊗ₜ[R] repr.right i = 1 ⊗ₜ[R] a

theorem Coalgebra.sum_tmul_counit_eq E0 #

∀ {R : Type u} {A : Type v} {ι : Type u_1} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A] {a : A} (repr : Coalgebra.Repr R a ι),
  ∑ i ∈ repr.index, repr.left i ⊗ₜ[R] CoalgebraStruct.counit (repr.right i) = a ⊗ₜ[R] 1

theorem Coalgebra.sum_tmul_tmul_eq E0 #

∀ {R : Type u} {A : Type v} {ι : Type u_1} {κ : ι → Type u_2} {Λ : ι → Type u_3} [inst : CommSemiring R]
  [inst_1 : AddCommMonoid A] [inst_2 : Module R A] [inst_3 : Coalgebra R A] {a : A} (repr : Coalgebra.Repr R a ι)
  (a₁ : (i : ι) → Coalgebra.Repr R (repr.left i) (κ i)) (a₂ : (i : ι) → Coalgebra.Repr R (repr.right i) (Λ i)),
  ∑ i ∈ repr.index, ∑ j ∈ (a₁ i).index, (a₁ i).left j ⊗ₜ[R] ((a₁ i).right j ⊗ₜ[R] repr.right i) =
    ∑ i ∈ repr.index, ∑ j ∈ (a₂ i).index, repr.left i ⊗ₜ[R] ((a₂ i).left j ⊗ₜ[R] (a₂ i).right j)

theorem Coalgebra.sum_counit_tmul_map_eq E0 #

∀ {R : Type u} {A : Type v} {ι : Type u_1} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A] {B : Type u_4} [inst_4 : AddCommMonoid B] [inst_5 : Module R B] {F : Type u_5}
  [inst_6 : FunLike F A B] [LinearMapClass F R A B] (f : F) (a : A) {repr : Coalgebra.Repr R a ι},
  ∑ i ∈ repr.index, CoalgebraStruct.counit (repr.left i) ⊗ₜ[R] f (repr.right i) = 1 ⊗ₜ[R] f a

theorem Coalgebra.sum_map_tmul_counit_eq E0 #

∀ {R : Type u} {A : Type v} {ι : Type u_1} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A] {B : Type u_4} [inst_4 : AddCommMonoid B] [inst_5 : Module R B] {F : Type u_5}
  [inst_6 : FunLike F A B] [LinearMapClass F R A B] (f : F) (a : A) {repr : Coalgebra.Repr R a ι},
  ∑ i ∈ repr.index, f (repr.left i) ⊗ₜ[R] CoalgebraStruct.counit (repr.right i) = f a ⊗ₜ[R] 1

theorem Coalgebra.sum_map_tmul_tmul_eq E0 #

∀ {R : Type u} {A : Type v} {ι : Type u_1} {κ : ι → Type u_2} {Λ : ι → Type u_3} [inst : CommSemiring R]
  [inst_1 : AddCommMonoid A] [inst_2 : Module R A] [inst_3 : Coalgebra R A] {B : Type u_4} [inst_4 : AddCommMonoid B]
  [inst_5 : Module R B] {F : Type u_5} [inst_6 : FunLike F A B] [LinearMapClass F R A B] (f g h : F) (a : A)
  {repr : Coalgebra.Repr R a ι} {a₁ : (i : ι) → Coalgebra.Repr R (repr.left i) (κ i)}
  {a₂ : (i : ι) → Coalgebra.Repr R (repr.right i) (Λ i)},
  ∑ i ∈ repr.index, ∑ j ∈ (a₂ i).index, f (repr.left i) ⊗ₜ[R] (g ((a₂ i).left j) ⊗ₜ[R] h ((a₂ i).right j)) =
    ∑ i ∈ repr.index, ∑ j ∈ (a₁ i).index, f ((a₁ i).left j) ⊗ₜ[R] (g ((a₁ i).right j) ⊗ₜ[R] h (repr.right i))

theorem Coalgebra.sum_counit_smul E1 #

∀ {R : Type u} {A : Type v} {ι : Type u_1} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A] {a : A} (𝓡 : Coalgebra.Repr R a ι),
  ∑ x ∈ 𝓡.index, CoalgebraStruct.counit (𝓡.left x) • 𝓡.right x = a

theorem Coalgebra.lift_lsmul_comp_counit_comp_comul E1 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A],
  TensorProduct.lift (LinearMap.lsmul R A ∘ₗ CoalgebraStruct.counit) ∘ₗ CoalgebraStruct.comul = LinearMap.id

class Coalgebra.IsCocomm E1 #

(R : Type u) →
  (A : Type v) → [inst : CommSemiring R] → [inst_1 : AddCommMonoid A] → [inst_2 : Module R A] → [Coalgebra R A] → Prop

A coalgebra A is cocommutative if its comultiplication δ : A → A ⊗ A commutes with the swapping β : A ⊗ A ≃ A ⊗ A of the factors in the tensor product.

ctor Coalgebra.IsCocomm.mk E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A],
  ↑(TensorProduct.comm R A A) ∘ₗ CoalgebraStruct.comul = CoalgebraStruct.comul → Coalgebra.IsCocomm R A

theorem Coalgebra.IsCocomm.comm_comp_comul E1 #

∀ {R : Type u} {A : Type v} {inst : CommSemiring R} {inst_1 : AddCommMonoid A} {inst_2 : Module R A}
  {inst_3 : Coalgebra R A} [self : Coalgebra.IsCocomm R A],
  ↑(TensorProduct.comm R A A) ∘ₗ CoalgebraStruct.comul = CoalgebraStruct.comul

theorem Coalgebra.comm_comp_comul E0 #

∀ (R : Type u) (A : Type v) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A] [Coalgebra.IsCocomm R A],
  ↑(TensorProduct.comm R A A) ∘ₗ CoalgebraStruct.comul = CoalgebraStruct.comul

theorem Coalgebra.comm_comul E0 #

∀ (R : Type u) {A : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A] [Coalgebra.IsCocomm R A] (a : A),
  (TensorProduct.comm R A A) (CoalgebraStruct.comul a) = CoalgebraStruct.comul a

instance CommSemiring.toCoalgebra E0 #

(R : Type u) → [inst : CommSemiring R] → Coalgebra R R

Every commutative (semi)ring is a coalgebra over itself, with Δ r = 1 ⊗ₜ r.

theorem CommSemiring.comul_apply E0 #

∀ (R : Type u) [inst : CommSemiring R] (r : R), CoalgebraStruct.comul r = 1 ⊗ₜ[R] r

theorem CommSemiring.counit_apply E0 #

∀ (R : Type u) [inst : CommSemiring R] (r : R), CoalgebraStruct.counit r = r

instance CommSemiring.instIsCocomm E0 #

∀ (R : Type u) [inst : CommSemiring R], Coalgebra.IsCocomm R R

instance Prod.instCoalgebraStruct E0 #

(R : Type u) →
  (A : Type v) →
    (B : Type w) →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoid A] →
          [inst_2 : AddCommMonoid B] →
            [inst_3 : Module R A] →
              [inst_4 : Module R B] → [Coalgebra R A] → [Coalgebra R B] → CoalgebraStruct R (A × B)

theorem Prod.comul_apply E0 #

∀ (R : Type u) (A : Type v) (B : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : AddCommMonoid B]
  [inst_3 : Module R A] [inst_4 : Module R B] [inst_5 : Coalgebra R A] [inst_6 : Coalgebra R B] (r : A × B),
  CoalgebraStruct.comul r =
    (TensorProduct.map (LinearMap.inl R A B) (LinearMap.inl R A B)) (CoalgebraStruct.comul r.1) +
      (TensorProduct.map (LinearMap.inr R A B) (LinearMap.inr R A B)) (CoalgebraStruct.comul r.2)

theorem Prod.counit_apply E0 #

∀ (R : Type u) (A : Type v) (B : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : AddCommMonoid B]
  [inst_3 : Module R A] [inst_4 : Module R B] [inst_5 : Coalgebra R A] [inst_6 : Coalgebra R B] (r : A × B),
  CoalgebraStruct.counit r = CoalgebraStruct.counit r.1 + CoalgebraStruct.counit r.2

theorem Prod.comul_comp_inl E1 #

∀ (R : Type u) (A : Type v) (B : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : AddCommMonoid B]
  [inst_3 : Module R A] [inst_4 : Module R B] [inst_5 : Coalgebra R A] [inst_6 : Coalgebra R B],
  CoalgebraStruct.comul ∘ₗ LinearMap.inl R A B =
    TensorProduct.map (LinearMap.inl R A B) (LinearMap.inl R A B) ∘ₗ CoalgebraStruct.comul

theorem Prod.comul_comp_inr E1 #

∀ (R : Type u) (A : Type v) (B : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : AddCommMonoid B]
  [inst_3 : Module R A] [inst_4 : Module R B] [inst_5 : Coalgebra R A] [inst_6 : Coalgebra R B],
  CoalgebraStruct.comul ∘ₗ LinearMap.inr R A B =
    TensorProduct.map (LinearMap.inr R A B) (LinearMap.inr R A B) ∘ₗ CoalgebraStruct.comul

theorem Prod.comul_comp_fst E1 #

∀ (R : Type u) (A : Type v) (B : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : AddCommMonoid B]
  [inst_3 : Module R A] [inst_4 : Module R B] [inst_5 : Coalgebra R A] [inst_6 : Coalgebra R B],
  CoalgebraStruct.comul ∘ₗ LinearMap.fst R A B =
    TensorProduct.map (LinearMap.fst R A B) (LinearMap.fst R A B) ∘ₗ CoalgebraStruct.comul

theorem Prod.comul_comp_snd E1 #

∀ (R : Type u) (A : Type v) (B : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : AddCommMonoid B]
  [inst_3 : Module R A] [inst_4 : Module R B] [inst_5 : Coalgebra R A] [inst_6 : Coalgebra R B],
  CoalgebraStruct.comul ∘ₗ LinearMap.snd R A B =
    TensorProduct.map (LinearMap.snd R A B) (LinearMap.snd R A B) ∘ₗ CoalgebraStruct.comul

theorem Prod.counit_comp_inr E0 #

∀ (R : Type u) (A : Type v) (B : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : AddCommMonoid B]
  [inst_3 : Module R A] [inst_4 : Module R B] [inst_5 : Coalgebra R A] [inst_6 : Coalgebra R B],
  CoalgebraStruct.counit ∘ₗ LinearMap.inr R A B = CoalgebraStruct.counit

theorem Prod.counit_comp_inl E0 #

∀ (R : Type u) (A : Type v) (B : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : AddCommMonoid B]
  [inst_3 : Module R A] [inst_4 : Module R B] [inst_5 : Coalgebra R A] [inst_6 : Coalgebra R B],
  CoalgebraStruct.counit ∘ₗ LinearMap.inl R A B = CoalgebraStruct.counit

instance Prod.instCoalgebra E0 #

(R : Type u) →
  (A : Type v) →
    (B : Type w) →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoid A] →
          [inst_2 : AddCommMonoid B] →
            [inst_3 : Module R A] → [inst_4 : Module R B] → [Coalgebra R A] → [Coalgebra R B] → Coalgebra R (A × B)

instance Prod.instIsCocomm E0 #

∀ (R : Type u) (A : Type v) (B : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : AddCommMonoid B]
  [inst_3 : Module R A] [inst_4 : Module R B] [inst_5 : Coalgebra R A] [inst_6 : Coalgebra R B] [Coalgebra.IsCocomm R A]
  [Coalgebra.IsCocomm R B], Coalgebra.IsCocomm R (A × B)

instance DFinsupp.instCoalgebraStruct E0 #

(R : Type u) →
  (ι : Type v) →
    (A : ι → Type w) →
      [DecidableEq ι] →
        [inst : CommSemiring R] →
          [inst_1 : (i : ι) → AddCommMonoid (A i)] →
            [inst_2 : (i : ι) → Module R (A i)] →
              [(i : ι) → CoalgebraStruct R (A i)] → CoalgebraStruct R (Π₀ (i : ι), A i)

theorem DFinsupp.comul_single E0 #

∀ (R : Type u) (ι : Type v) (A : ι → Type w) [inst : DecidableEq ι] [inst_1 : CommSemiring R]
  [inst_2 : (i : ι) → AddCommMonoid (A i)] [inst_3 : (i : ι) → Module R (A i)]
  [inst_4 : (i : ι) → CoalgebraStruct R (A i)] (i : ι) (a : A i),
  (CoalgebraStruct.comul fun₀ | i => a) =
    (TensorProduct.map (DFinsupp.lsingle i) (DFinsupp.lsingle i)) (CoalgebraStruct.comul a)

theorem DFinsupp.counit_single E0 #

∀ (R : Type u) (ι : Type v) (A : ι → Type w) [inst : DecidableEq ι] [inst_1 : CommSemiring R]
  [inst_2 : (i : ι) → AddCommMonoid (A i)] [inst_3 : (i : ι) → Module R (A i)]
  [inst_4 : (i : ι) → CoalgebraStruct R (A i)] (i : ι) (a : A i),
  (CoalgebraStruct.counit fun₀ | i => a) = CoalgebraStruct.counit a

theorem DFinsupp.comul_comp_lsingle E1 #

∀ (R : Type u) (ι : Type v) (A : ι → Type w) [inst : DecidableEq ι] [inst_1 : CommSemiring R]
  [inst_2 : (i : ι) → AddCommMonoid (A i)] [inst_3 : (i : ι) → Module R (A i)]
  [inst_4 : (i : ι) → CoalgebraStruct R (A i)] (i : ι),
  CoalgebraStruct.comul ∘ₗ DFinsupp.lsingle i =
    TensorProduct.map (DFinsupp.lsingle i) (DFinsupp.lsingle i) ∘ₗ CoalgebraStruct.comul

theorem DFinsupp.comul_comp_lapply E1 #

∀ (R : Type u) (ι : Type v) (A : ι → Type w) [inst : DecidableEq ι] [inst_1 : CommSemiring R]
  [inst_2 : (i : ι) → AddCommMonoid (A i)] [inst_3 : (i : ι) → Module R (A i)]
  [inst_4 : (i : ι) → CoalgebraStruct R (A i)] (i : ι),
  CoalgebraStruct.comul ∘ₗ DFinsupp.lapply i =
    TensorProduct.map (DFinsupp.lapply i) (DFinsupp.lapply i) ∘ₗ CoalgebraStruct.comul

theorem DFinsupp.counit_comp_lsingle E0 #

∀ (R : Type u) (ι : Type v) (A : ι → Type w) [inst : DecidableEq ι] [inst_1 : CommSemiring R]
  [inst_2 : (i : ι) → AddCommMonoid (A i)] [inst_3 : (i : ι) → Module R (A i)]
  [inst_4 : (i : ι) → CoalgebraStruct R (A i)] (i : ι),
  CoalgebraStruct.counit ∘ₗ DFinsupp.lsingle i = CoalgebraStruct.counit

instance DFinsupp.instCoalgebra E0 #

(R : Type u) →
  (ι : Type v) →
    (A : ι → Type w) →
      [DecidableEq ι] →
        [inst : CommSemiring R] →
          [inst_1 : (i : ι) → AddCommMonoid (A i)] →
            [inst_2 : (i : ι) → Module R (A i)] → [(i : ι) → Coalgebra R (A i)] → Coalgebra R (Π₀ (i : ι), A i)

The R-module whose elements are dependent functions (i : ι) → A i which are zero on all but finitely many elements of ι has a coalgebra structure.

The coproduct Δ is given by Δ(fᵢ a) = fᵢ a₁ ⊗ fᵢ a₂ where Δ(a) = a₁ ⊗ a₂ and the counit ε by ε(fᵢ a) = ε(a), where fᵢ a is the function sending i to a and all other elements of ι to zero.

instance DFinsupp.instIsCocomm E0 #

∀ (R : Type u) (ι : Type v) (A : ι → Type w) [inst : DecidableEq ι] [inst_1 : CommSemiring R]
  [inst_2 : (i : ι) → AddCommMonoid (A i)] [inst_3 : (i : ι) → Module R (A i)] [inst_4 : (i : ι) → Coalgebra R (A i)]
  [∀ (i : ι), Coalgebra.IsCocomm R (A i)], Coalgebra.IsCocomm R (Π₀ (i : ι), A i)

instance Finsupp.instCoalgebraStruct E0 #

(R : Type u) →
  (ι : Type v) →
    (A : Type w) →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoid A] → [inst_2 : Module R A] → [CoalgebraStruct R A] → CoalgebraStruct R (ι →₀ A)

theorem Finsupp.comul_single E0 #

∀ (R : Type u) (ι : Type v) (A : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : CoalgebraStruct R A] (i : ι) (a : A),
  (CoalgebraStruct.comul fun₀ | i => a) =
    (TensorProduct.map (Finsupp.lsingle i) (Finsupp.lsingle i)) (CoalgebraStruct.comul a)

theorem Finsupp.counit_single E0 #

∀ (R : Type u) (ι : Type v) (A : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : CoalgebraStruct R A] (i : ι) (a : A), (CoalgebraStruct.counit fun₀ | i => a) = CoalgebraStruct.counit a

theorem Finsupp.comul_comp_lsingle E1 #

∀ (R : Type u) (ι : Type v) (A : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : CoalgebraStruct R A] (i : ι),
  CoalgebraStruct.comul ∘ₗ Finsupp.lsingle i =
    TensorProduct.map (Finsupp.lsingle i) (Finsupp.lsingle i) ∘ₗ CoalgebraStruct.comul

theorem Finsupp.comul_comp_lapply E1 #

∀ (R : Type u) (ι : Type v) (A : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : CoalgebraStruct R A] (i : ι),
  CoalgebraStruct.comul ∘ₗ Finsupp.lapply i =
    TensorProduct.map (Finsupp.lapply i) (Finsupp.lapply i) ∘ₗ CoalgebraStruct.comul

theorem Finsupp.counit_comp_lsingle E0 #

∀ (R : Type u) (ι : Type v) (A : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : CoalgebraStruct R A] (i : ι), CoalgebraStruct.counit ∘ₗ Finsupp.lsingle i = CoalgebraStruct.counit

instance Finsupp.instCoalgebra E0 #

(R : Type u) →
  (ι : Type v) →
    (A : Type w) →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoid A] → [inst_2 : Module R A] → [Coalgebra R A] → Coalgebra R (ι →₀ A)

The R-module whose elements are functions ι → A which are zero on all but finitely many elements of ι has a coalgebra structure. The coproduct Δ is given by Δ(fᵢ a) = fᵢ a₁ ⊗ fᵢ a₂ where Δ(a) = a₁ ⊗ a₂ and the counit ε by ε(fᵢ a) = ε(a), where fᵢ a is the function sending i to a and all other elements of ι to zero.

instance Finsupp.instIsCocomm E0 #

∀ (R : Type u) (ι : Type v) (A : Type w) [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : Coalgebra R A] [Coalgebra.IsCocomm R A], Coalgebra.IsCocomm R (ι →₀ A)

instance Pi.instCoalgebraStruct E0 #

{R : Type u_1} →
  {n : Type u_2} →
    [inst : CommSemiring R] →
      [Fintype n] →
        [DecidableEq n] →
          {A : n → Type u_3} →
            [inst_3 : (i : n) → AddCommMonoid (A i)] →
              [inst_4 : (i : n) → Module R (A i)] →
                [(i : n) → CoalgebraStruct R (A i)] → CoalgebraStruct R ((i : n) → A i)

theorem Pi.comul_single E0 #

∀ {R : Type u_1} {n : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {A : n → Type u_3}
  [inst_3 : (i : n) → AddCommMonoid (A i)] [inst_4 : (i : n) → Module R (A i)]
  [inst_5 : (i : n) → CoalgebraStruct R (A i)] (i : n) (a : A i),
  CoalgebraStruct.comul (Pi.single i a) =
    (TensorProduct.map (LinearMap.single R A i) (LinearMap.single R A i)) (CoalgebraStruct.comul a)

theorem Pi.counit_single E0 #

∀ {R : Type u_1} {n : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {A : n → Type u_3}
  [inst_3 : (i : n) → AddCommMonoid (A i)] [inst_4 : (i : n) → Module R (A i)]
  [inst_5 : (i : n) → CoalgebraStruct R (A i)] (i : n) (a : A i),
  CoalgebraStruct.counit (Pi.single i a) = CoalgebraStruct.counit a

theorem Pi.comul_comp_single E1 #

∀ {R : Type u_1} {n : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {A : n → Type u_3}
  [inst_3 : (i : n) → AddCommMonoid (A i)] [inst_4 : (i : n) → Module R (A i)]
  [inst_5 : (i : n) → CoalgebraStruct R (A i)] (i : n),
  CoalgebraStruct.comul ∘ₗ LinearMap.single R A i =
    TensorProduct.map (LinearMap.single R A i) (LinearMap.single R A i) ∘ₗ CoalgebraStruct.comul

theorem Pi.comul_comp_proj E1 #

∀ {R : Type u_1} {n : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {A : n → Type u_3}
  [inst_3 : (i : n) → AddCommMonoid (A i)] [inst_4 : (i : n) → Module R (A i)]
  [inst_5 : (i : n) → CoalgebraStruct R (A i)] (i : n),
  CoalgebraStruct.comul ∘ₗ LinearMap.proj i =
    TensorProduct.map (LinearMap.proj i) (LinearMap.proj i) ∘ₗ CoalgebraStruct.comul

theorem Pi.counit_comp_single E0 #

∀ {R : Type u_1} {n : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {A : n → Type u_3}
  [inst_3 : (i : n) → AddCommMonoid (A i)] [inst_4 : (i : n) → Module R (A i)]
  [inst_5 : (i : n) → CoalgebraStruct R (A i)] (i : n),
  CoalgebraStruct.counit ∘ₗ LinearMap.single R A i = CoalgebraStruct.counit

theorem Pi.counit_comp_dFinsuppCoeFnLinearMap E1 #

∀ {R : Type u_1} {n : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {A : n → Type u_3}
  [inst_3 : (i : n) → AddCommMonoid (A i)] [inst_4 : (i : n) → Module R (A i)]
  [inst_5 : (i : n) → CoalgebraStruct R (A i)],
  CoalgebraStruct.counit ∘ₗ DFinsupp.coeFnLinearMap R = CoalgebraStruct.counit

theorem Pi.counit_coe_dFinsupp E0 #

∀ {R : Type u_1} {n : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {A : n → Type u_3}
  [inst_3 : (i : n) → AddCommMonoid (A i)] [inst_4 : (i : n) → Module R (A i)]
  [inst_5 : (i : n) → CoalgebraStruct R (A i)] (x : Π₀ (i : n), A i),
  CoalgebraStruct.counit ⇑x = CoalgebraStruct.counit x

theorem Pi.comul_comp_dFinsuppCoeFnLinearMap E1 #

∀ {R : Type u_1} {n : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {A : n → Type u_3}
  [inst_3 : (i : n) → AddCommMonoid (A i)] [inst_4 : (i : n) → Module R (A i)]
  [inst_5 : (i : n) → CoalgebraStruct R (A i)],
  CoalgebraStruct.comul ∘ₗ DFinsupp.coeFnLinearMap R =
    TensorProduct.map (DFinsupp.coeFnLinearMap R) (DFinsupp.coeFnLinearMap R) ∘ₗ CoalgebraStruct.comul

theorem Pi.comul_coe_dFinsupp E0 #

∀ {R : Type u_1} {n : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {A : n → Type u_3}
  [inst_3 : (i : n) → AddCommMonoid (A i)] [inst_4 : (i : n) → Module R (A i)]
  [inst_5 : (i : n) → CoalgebraStruct R (A i)] (x : Π₀ (i : n), A i),
  CoalgebraStruct.comul ⇑x =
    (TensorProduct.map (DFinsupp.coeFnLinearMap R) (DFinsupp.coeFnLinearMap R)) (CoalgebraStruct.comul x)

theorem Pi.counit_comp_finsuppLcoeFun E1 #

∀ {R : Type u_1} {n : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {M : Type u_4}
  [inst_3 : AddCommMonoid M] [inst_4 : Module R M] [inst_5 : CoalgebraStruct R M],
  CoalgebraStruct.counit ∘ₗ Finsupp.lcoeFun = CoalgebraStruct.counit

theorem Pi.counit_coe_finsupp E0 #

∀ {R : Type u_1} {n : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {M : Type u_4}
  [inst_3 : AddCommMonoid M] [inst_4 : Module R M] [inst_5 : CoalgebraStruct R M] (x : n →₀ M),
  CoalgebraStruct.counit ⇑x = CoalgebraStruct.counit x

theorem Pi.comul_comp_finsuppLcoeFun E1 #

∀ {R : Type u_1} {n : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {M : Type u_4}
  [inst_3 : AddCommMonoid M] [inst_4 : Module R M] [inst_5 : CoalgebraStruct R M],
  CoalgebraStruct.comul ∘ₗ Finsupp.lcoeFun = TensorProduct.map Finsupp.lcoeFun Finsupp.lcoeFun ∘ₗ CoalgebraStruct.comul

theorem Pi.comul_coe_finsupp E0 #

∀ {R : Type u_1} {n : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {M : Type u_4}
  [inst_3 : AddCommMonoid M] [inst_4 : Module R M] [inst_5 : CoalgebraStruct R M] (x : n →₀ M),
  CoalgebraStruct.comul ⇑x = (TensorProduct.map Finsupp.lcoeFun Finsupp.lcoeFun) (CoalgebraStruct.comul x)

instance Pi.instCoalgebra E0 #

{R : Type u_1} →
  {n : Type u_2} →
    [inst : CommSemiring R] →
      [Fintype n] →
        [DecidableEq n] →
          {A : n → Type u_3} →
            [inst_3 : (i : n) → AddCommMonoid (A i)] →
              [inst_4 : (i : n) → Module R (A i)] → [(i : n) → Coalgebra R (A i)] → Coalgebra R ((i : n) → A i)

The R-module whose elements are functions Π i, A i for finite n has a coalgebra structure. The coproduct Δ is given by Δ(fᵢ a) = fᵢ a₁ ⊗ fᵢ a₂ where Δ(a) = a₁ ⊗ a₂ and the counit ε by ε(fᵢ a) = ε(a), where fᵢ a is the function sending i to a and all other elements of ι to zero.

instance Pi.instIsCocomm E0 #

∀ {R : Type u_1} {n : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {A : n → Type u_3}
  [inst_3 : (i : n) → AddCommMonoid (A i)] [inst_4 : (i : n) → Module R (A i)] [inst_5 : (i : n) → Coalgebra R (A i)]
  [∀ (i : n), Coalgebra.IsCocomm R (A i)], Coalgebra.IsCocomm R ((i : n) → A i)

abbrev LinearEquiv.coalgebraStruct E1 #

(R : Type u_1) →
  {A : Type u_2} →
    {B : Type u_3} →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoid A] →
          [inst_2 : Module R A] →
            [inst_3 : AddCommMonoid B] →
              [inst_4 : Module R B] → [CoalgebraStruct R B] → (A ≃ₗ[R] B) → CoalgebraStruct R A

Transfer CoalgebraStruct across a LinearEquiv.

abbrev LinearEquiv.coalgebra E1 #

(R : Type u_1) →
  {A : Type u_2} →
    {B : Type u_3} →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoid A] →
          [inst_2 : Module R A] →
            [inst_3 : AddCommMonoid B] → [inst_4 : Module R B] → [Coalgebra R B] → (A ≃ₗ[R] B) → Coalgebra R A

Transfer Coalgebra across a LinearEquiv.

theorem LinearEquiv.coalgebraIsCocomm E1 #

∀ (R : Type u_1) {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid A] [inst_2 : Module R A]
  [inst_3 : AddCommMonoid B] [inst_4 : Module R B] [inst_5 : Coalgebra R B] [Coalgebra.IsCocomm R B] (e : A ≃ₗ[R] B),
  Coalgebra.IsCocomm R A

Transfer Coalgebra.IsCocomm across a LinearEquiv.

Deprecated aliases

NameNew nameSince
Coalgebra.Repr.ι2026-05-31
Equiv.coalgebraLinearEquiv.coalgebra2026-08-10
Equiv.coalgebraIsCocommLinearEquiv.coalgebraIsCocomm2026-08-10
Equiv.coalgebraStructLinearEquiv.coalgebraStruct2026-08-10