Skip to content

Commit

Permalink
feat(Profinite): the functors from FintypeCat are fully faithful (#…
Browse files Browse the repository at this point in the history
…12139)

(both to `LightProfinite` and `Profinite`)
  • Loading branch information
dagurtomas committed Apr 15, 2024
1 parent d48d30a commit 5d49276
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Mathlib/Topology/Category/LightProfinite/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ def fintypeCatToLightProfinite : FintypeCat ⥤ LightProfinite.{u} where
obj X := X.toLightProfinite
map f := FintypeCat.toProfinite.map f

instance : fintypeCatToLightProfinite.Faithful where
map_injective h := funext fun _ ↦ (DFunLike.ext_iff.mp h) _

instance : fintypeCatToLightProfinite.Full where
preimage f := fun x ↦ f x
witness _ := rfl

end LightProfinite

noncomputable section EssentiallySmall
Expand Down
7 changes: 7 additions & 0 deletions Mathlib/Topology/Category/Profinite/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ def FintypeCat.toProfinite : FintypeCat ⥤ Profinite where
map f := ⟨f, by continuity⟩
#align Fintype.to_Profinite FintypeCat.toProfinite

instance : FintypeCat.toProfinite.Faithful where
map_injective h := funext fun _ ↦ (DFunLike.ext_iff.mp h) _

instance : FintypeCat.toProfinite.Full where
preimage f := fun x ↦ f x
witness _ := rfl

end DiscreteTopology

end Profinite
Expand Down

0 comments on commit 5d49276

Please sign in to comment.