Subgroupoid #
This file defines subgroupoids as structure
s containing the subsets of arrows and their
stability under composition and inversion.
Also defined are:
- containment of subgroupoids is a complete lattice;
- images and preimages of subgroupoids under a functor;
- the notion of normality of subgroupoids and its stability under intersection and preimage;
- compatibility of the above with
CategoryTheory.Groupoid.vertexGroup
.
Main definitions #
Given a type C
with associated groupoid C
instance.
CategoryTheory.Subgroupoid C
is the type of subgroupoids ofC
CategoryTheory.Subgroupoid.IsNormal
is the property that the subgroupoid is stable under conjugation by arbitrary arrows, and that all identity arrows are contained in the subgroupoid.CategoryTheory.Subgroupoid.comap
is the "preimage" map of subgroupoids along a functor.CategoryTheory.Subgroupoid.map
is the "image" map of subgroupoids along a functor injective on objects.CategoryTheory.Subgroupoid.vertexSubgroup
is the subgroup of the vertex group at a given vertexv
, assumingv
is contained in theCategoryTheory.Subgroupoid
(meaning, by definition, that the arrowπ v
is contained in the subgroupoid).
Implementation details #
The structure of this file is copied from/inspired by Mathlib/GroupTheory/Subgroup/Basic.lean
and Mathlib/Combinatorics/SimpleGraph/Subgraph.lean
.
TODO #
- Equivalent inductive characterization of generated (normal) subgroupoids.
- Characterization of normal subgroupoids as kernels.
- Prove that
CategoryTheory.Subgroupoid.full
andCategoryTheory.Subgroupoid.disconnect
preserve intersections (andCategoryTheory.Subgroupoid.disconnect
also unions)
Tags #
category theory, groupoid, subgroupoid
A sugroupoid of C
consists of a choice of arrows for each pair of vertices, closed
under composition and inverses.
- inv {c d : C} {p : c βΆ d} : p β self.arrows c d β CategoryTheory.Groupoid.inv p β self.arrows d c
Instances For
The vertices of C
on which S
has non-trivial isotropy
Equations
- S.objs = {c : C | (S.arrows c c).Nonempty}
Instances For
A subgroupoid seen as a quiver on vertex set C
Instances For
The coercion of a subgroupoid as a groupoid
Equations
- S.coe = CategoryTheory.Groupoid.mk (fun {X Y : βS.objs} (p : X βΆ Y) => β¨CategoryTheory.Groupoid.inv βp, β―β©) β― β―
The embedding of the coerced subgroupoid to its parent
Equations
Instances For
The subgroup of the vertex group at c
given by the subgroupoid
Equations
- S.vertexSubgroup hc = { carrier := S.arrows c c, mul_mem' := β―, one_mem' := β―, inv_mem' := β― }
Instances For
The set of all arrows of a subgroupoid, as a set in Ξ£ c d : C, c βΆ d
.
Instances For
Equations
- CategoryTheory.Subgroupoid.instSetLikeSigmaHom = { coe := CategoryTheory.Subgroupoid.toSet, coe_injective' := β― }
Equations
- CategoryTheory.Subgroupoid.instTop = { top := { arrows := fun (x x_1 : C) => Set.univ, inv := β―, mul := β― } }
Equations
- CategoryTheory.Subgroupoid.instMin = { min := fun (S T : CategoryTheory.Subgroupoid C) => { arrows := fun (c d : C) => S.arrows c d β© T.arrows c d, inv := β―, mul := β― } }
Equations
- CategoryTheory.Subgroupoid.instInfSet = { sInf := fun (s : Set (CategoryTheory.Subgroupoid C)) => { arrows := fun (c d : C) => β S β s, S.arrows c d, inv := β―, mul := β― } }
Equations
- CategoryTheory.Subgroupoid.instCompleteLattice = CompleteLattice.mk β― β― β― β― β― β―
The functor associated to the embedding of subgroupoids
Equations
- CategoryTheory.Subgroupoid.inclusion h = { obj := fun (s : βS.objs) => β¨βs, β―β©, map := fun {X Y : βS.objs} (f : X βΆ Y) => β¨βf, β―β©, map_id := β―, map_comp := β― }
Instances For
The family of arrows of the discrete groupoid
- id {C : Type u} [CategoryTheory.Groupoid C] (c : C) : CategoryTheory.Subgroupoid.Discrete.Arrows c c (CategoryTheory.CategoryStruct.id c)
Instances For
The only arrows of the discrete groupoid are the identity arrows.
Equations
- CategoryTheory.Subgroupoid.discrete = { arrows := fun (c d : C) => {p : c βΆ d | CategoryTheory.Subgroupoid.Discrete.Arrows c d p}, inv := β―, mul := β― }
Instances For
A subgroupoid is wide if its carrier set is all of C
- wide (c : C) : CategoryTheory.CategoryStruct.id c β S.arrows c c
Instances For
A subgroupoid is normal if it is wide and satisfies the expected stability under conjugacy.
- conj {c d : C} (p : c βΆ d) {Ξ³ : c βΆ c} : Ξ³ β S.arrows c c β CategoryTheory.CategoryStruct.comp (CategoryTheory.Groupoid.inv p) (CategoryTheory.CategoryStruct.comp Ξ³ p) β S.arrows d d
Instances For
The subgropoid generated by the set of arrows X
Equations
- CategoryTheory.Subgroupoid.generated X = sInf {S : CategoryTheory.Subgroupoid C | β (c d : C), X c d β S.arrows c d}
Instances For
The normal sugroupoid generated by the set of arrows X
Equations
- CategoryTheory.Subgroupoid.generatedNormal X = sInf {S : CategoryTheory.Subgroupoid C | (β (c d : C), X c d β S.arrows c d) β§ S.IsNormal}
Instances For
A functor between groupoid defines a map of subgroupoids in the reverse direction by taking preimages.
Equations
- CategoryTheory.Subgroupoid.comap Ο S = { arrows := fun (c d : C) => {f : c βΆ d | Ο.map f β S.arrows (Ο.obj c) (Ο.obj d)}, inv := β―, mul := β― }
Instances For
The kernel of a functor between subgroupoid is the preimage.
Equations
- CategoryTheory.Subgroupoid.ker Ο = CategoryTheory.Subgroupoid.comap Ο CategoryTheory.Subgroupoid.discrete
Instances For
The family of arrows of the image of a subgroupoid under a functor injective on objects
- im {C : Type u} [CategoryTheory.Groupoid C] {D : Type u_1} [CategoryTheory.Groupoid D] {Ο : CategoryTheory.Functor C D} {hΟ : Function.Injective Ο.obj} {S : CategoryTheory.Subgroupoid C} {c d : C} (f : c βΆ d) (hf : f β S.arrows c d) : CategoryTheory.Subgroupoid.Map.Arrows Ο hΟ S (Ο.obj c) (Ο.obj d) (Ο.map f)
Instances For
The "forward" image of a subgroupoid under a functor injective on objects
Equations
- CategoryTheory.Subgroupoid.map Ο hΟ S = { arrows := fun (c d : D) => {x : c βΆ d | CategoryTheory.Subgroupoid.Map.Arrows Ο hΟ S c d x}, inv := β―, mul := β― }
Instances For
The image of a functor injective on objects
Equations
- CategoryTheory.Subgroupoid.im Ο hΟ = CategoryTheory.Subgroupoid.map Ο hΟ β€
Instances For
A subgroupoid is thin (CategoryTheory.Subgroupoid.IsThin
) if it has at most one arrow between
any two vertices.
Equations
- S.IsThin = Quiver.IsThin βS.objs
Instances For
A subgroupoid IsTotallyDisconnected
if it has only isotropy arrows.
Equations
- S.IsTotallyDisconnected = CategoryTheory.Groupoid.IsTotallyDisconnected βS.objs
Instances For
The isotropy subgroupoid of S
Equations
Instances For
The full subgroupoid on a set D : Set C