/-
Copyright (c) 2022 Rémi Bottinelli. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémi Bottinelli
-/
module
public import Mathlib.Algebra.Group.Basic
public import Mathlib.Algebra.Group.Equiv.Defs
public import Mathlib.CategoryTheory.PathCategory.Basic
/-!
# Vertex group
This file defines the vertex group (*aka* isotropy group) of a groupoid at a vertex.
## Implementation notes
* The instance is defined "manually", instead of relying on `CategoryTheory.Aut.group` or
using `CategoryTheory.inv`.
* The multiplication order therefore matches the categorical one: `x * y = x ≫ y`.
* The inverse is directly defined in terms of the groupoidal inverse: `x ⁻¹ = Groupoid.inv x`.
## Tags
isotropy, vertex group, groupoid
-/
@[expose] public section
namespace CategoryTheory
namespace Groupoid
universe u v
variable {C : Type u} [Groupoid C]
/-- The vertex group at `c`. -/
@[simps mul one inv]
instance vertexGroup (c : C) : Group (c ⟶ c) where
mul := fun x y : c ⟶ c => x ≫ y
mul_assoc := Category.assoc
one := c
one_mul := Category.id_comp
mul_one := Category.comp_id
inv := Groupoid.inv
inv_mul_cancel := inv_comp
/-- The inverse in the group is equal to the inverse given by `CategoryTheory.inv`. -/
theorem vertexGroup.inv_eq_inv (c : C) (γ : c ⟶ c) : γ⁻¹ = CategoryTheory.inv γ :=
Groupoid.inv_eq_inv γ
/-- An arrow in the groupoid defines, by conjugation, an isomorphism of groups between
its endpoints.
-/
@[simps]
def vertexGroupIsomOfMap {c d : C} (f : c ⟶ d) : (c ⟶ c) ≃* (d ⟶ d) where
toFun γ := inv f ≫ γ ≫ f
invFun δ := f ≫ δ ≫ inv f
left_inv γ := by
simp_rw [Category.assoc, comp_inv, Category.comp_id, ← Category.assoc, comp_inv,
Category.id_comp]
right_inv δ := by
simp_rw [Category.assoc, inv_comp, ← Category.assoc, inv_comp, Category.id_comp,
Category.comp_id]
map_mul' γ₁ γ₂ := by
simp only [vertexGroup_mul, inv_eq_inv, Category.assoc, IsIso.hom_inv_id_assoc]
/-- A path in the groupoid defines an isomorphism between its endpoints.
-/
def vertexGroupIsomOfPath {c d : C} (p : Quiver.Path c d) : (c ⟶ c) ≃* (d ⟶ d) :=
vertexGroupIsomOfMap (composePath p)
/-- A functor defines a morphism of vertex groups. -/
@[simps]
def _root_.CategoryTheory.Functor.mapVertexGroup {D : Type v} [Groupoid D] (φ : C ⥤ D) (c : C) :
(c ⟶ c) →* (φ.obj c ⟶ φ.obj c) where
toFun := φ.map
map_one' := φ.map_id c
map_mul' := φ.map_comp
set_option linter.dupNamespace false in
@[deprecated (since := "2026-05-24")]
alias CategoryTheory.Functor.mapVertexGroup := CategoryTheory.Functor.mapVertexGroup
set_option linter.dupNamespace false in
@[deprecated (since := "2026-05-24")]
alias CategoryTheory.Functor.mapVertexGroup_apply := CategoryTheory.Functor.mapVertexGroup_apply
end Groupoid
end CategoryTheory
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland