-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(CategoryTheory/Galois): finite
G
-sets are a PreGaloisCategory
(
#9879) We show that the category of finite `G`-sets is a `PreGaloisCategory` and the forgetful functor to finite sets is a `FibreFunctor`.
- Loading branch information
Showing
4 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
/- | ||
Copyright (c) 2024 Christian Merten. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Christian Merten | ||
-/ | ||
import Mathlib.CategoryTheory.Galois.Basic | ||
import Mathlib.RepresentationTheory.Action.Basic | ||
import Mathlib.RepresentationTheory.Action.Limits | ||
import Mathlib.CategoryTheory.Limits.FintypeCat | ||
import Mathlib.CategoryTheory.Limits.Shapes.Types | ||
import Mathlib.Logic.Equiv.TransferInstance | ||
|
||
/-! | ||
# Examples of Galois categories and fibre functors | ||
We show that for a group `G` the category of finite `G`-sets is a `PreGaloisCategory` and that the | ||
forgetful functor to `FintypeCat` is a `FibreFunctor`. | ||
## Todo | ||
* Characterize connected objects in the category of finite `G`-sets as those with transitive | ||
`G`-action | ||
-/ | ||
|
||
universe u v w | ||
|
||
namespace CategoryTheory | ||
|
||
namespace FintypeCat | ||
|
||
open Limits Functor PreGaloisCategory | ||
|
||
/-- Complement of the image of a morphism `f : X ⟶ Y` in `FintypeCat`. -/ | ||
noncomputable def imageComplement {X Y : FintypeCat.{u}} (f : X ⟶ Y) : | ||
FintypeCat.{u} := by | ||
haveI : Fintype (↑(Set.range f)ᶜ) := Fintype.ofFinite _ | ||
exact FintypeCat.of (↑(Set.range f)ᶜ) | ||
|
||
/-- The inclusion from the complement of the image of `f : X ⟶ Y` into `Y`. -/ | ||
def imageComplementIncl {X Y : FintypeCat.{u}} | ||
(f : X ⟶ Y) : imageComplement f ⟶ Y := | ||
Subtype.val | ||
|
||
variable (G : Type u) [Group G] | ||
|
||
/-- Given `f : X ⟶ Y` for `X Y : Action FintypeCat (MonCat.of G)`, the complement of the image | ||
of `f` has a natural `G`-action. -/ | ||
noncomputable def Action.imageComplement {X Y : Action FintypeCat (MonCat.of G)} | ||
(f : X ⟶ Y) : Action FintypeCat (MonCat.of G) where | ||
V := FintypeCat.imageComplement f.hom | ||
ρ := MonCat.ofHom <| { | ||
toFun := fun g y ↦ Subtype.mk (Y.ρ g y.val) <| by | ||
intro ⟨x, h⟩ | ||
apply y.property | ||
use X.ρ g⁻¹ x | ||
calc (X.ρ g⁻¹ ≫ f.hom) x | ||
= (Y.ρ g⁻¹ * Y.ρ g) y.val := by rw [f.comm, FintypeCat.comp_apply, h]; rfl | ||
_ = y.val := by rw [← map_mul, mul_left_inv, Action.ρ_one, FintypeCat.id_apply] | ||
map_one' := by simp only [Action.ρ_one]; rfl | ||
map_mul' := fun g h ↦ FintypeCat.hom_ext _ _ <| fun y ↦ Subtype.ext <| by | ||
exact congrFun (MonoidHom.map_mul Y.ρ g h) y.val | ||
} | ||
|
||
/-- The inclusion from the complement of the image of `f : X ⟶ Y` into `Y`. -/ | ||
def Action.imageComplementIncl {X Y : Action FintypeCat (MonCat.of G)} (f : X ⟶ Y) : | ||
Action.imageComplement G f ⟶ Y where | ||
hom := FintypeCat.imageComplementIncl f.hom | ||
comm _ := rfl | ||
|
||
instance {X Y : Action FintypeCat (MonCat.of G)} (f : X ⟶ Y) : | ||
Mono (Action.imageComplementIncl G f) := by | ||
apply Functor.mono_of_mono_map (forget _) | ||
apply ConcreteCategory.mono_of_injective | ||
exact Subtype.val_injective | ||
|
||
/-- The category of finite sets has quotients by finite groups in arbitrary universes. -/ | ||
instance [Finite G] : HasColimitsOfShape (SingleObj G) FintypeCat.{w} := by | ||
obtain ⟨G', hg, hf, ⟨e⟩⟩ := Finite.exists_type_zero_nonempty_mulEquiv G | ||
exact Limits.hasColimitsOfShape_of_equivalence e.toSingleObjEquiv.symm | ||
|
||
noncomputable instance : PreservesFiniteLimits (forget (Action FintypeCat (MonCat.of G))) := by | ||
show PreservesFiniteLimits (Action.forget FintypeCat _ ⋙ FintypeCat.incl) | ||
apply compPreservesFiniteLimits | ||
|
||
/-- The category of finite `G`-sets is a `PreGaloisCategory`. -/ | ||
instance : PreGaloisCategory (Action FintypeCat (MonCat.of G)) where | ||
hasQuotientsByFiniteGroups G _ _ := inferInstance | ||
monoInducesIsoOnDirectSummand {X Y} i h := | ||
⟨Action.imageComplement G i, Action.imageComplementIncl G i, | ||
⟨isColimitOfReflects (Action.forget _ _ ⋙ FintypeCat.incl) <| | ||
(isColimitMapCoconeBinaryCofanEquiv (forget _) i _).symm | ||
(Types.isCoprodOfMono ((forget _).map i))⟩⟩ | ||
|
||
/-- The forgetful functor from finite `G`-sets to sets is a `FibreFunctor`. -/ | ||
noncomputable instance : FibreFunctor (Action.forget FintypeCat (MonCat.of G)) where | ||
preservesFiniteCoproducts := ⟨fun _ _ ↦ inferInstance⟩ | ||
preservesQuotientsByFiniteGroups _ _ _ := inferInstance | ||
reflectsIsos := ⟨fun f (h : IsIso f.hom) => inferInstance⟩ | ||
|
||
end FintypeCat | ||
|
||
end CategoryTheory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters