This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(topology/category/*/projective): CompHaus and Profinite have eno…
…ugh projectives (#8613) Co-authored-by: Adam Topaz <github@adamtopaz.com> Co-authored-by: Adam Topaz <github@adamtopaz.com>
- Loading branch information
Showing
7 changed files
with
265 additions
and
7 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
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,64 @@ | ||
/- | ||
Copyright (c) 2021 Johan Commelin. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Johan Commelin | ||
-/ | ||
|
||
import topology.category.CompHaus | ||
import topology.stone_cech | ||
import category_theory.preadditive.projective | ||
|
||
/-! | ||
# CompHaus has enough projectives | ||
In this file we show that `CompHaus` has enough projectives. | ||
## Main results | ||
Let `X` be a compact Hausdorff space. | ||
* `CompHaus.projective_ultrafilter`: the space `ultrafilter X` is a projective object | ||
* `CompHaus.projective_presentation`: the natural map `ultrafilter X → X` | ||
is a projective presentation | ||
## Reference | ||
See [miraglia2006introduction] Chapter 21 for a proof that `CompHaus` has enough projectives. | ||
-/ | ||
|
||
noncomputable theory | ||
|
||
open category_theory function | ||
|
||
namespace CompHaus | ||
|
||
instance projective_ultrafilter (X : Type*) : | ||
projective (of $ ultrafilter X) := | ||
{ factors := λ Y Z f g hg, | ||
begin | ||
rw epi_iff_surjective at hg, | ||
obtain ⟨g', hg'⟩ := hg.has_right_inverse, | ||
let t : X → Y := g' ∘ f ∘ (pure : X → ultrafilter X), | ||
let h : ultrafilter X → Y := ultrafilter.extend t, | ||
have hh : continuous h := continuous_ultrafilter_extend _, | ||
use ⟨h, hh⟩, | ||
apply faithful.map_injective (forget CompHaus), | ||
simp only [forget_map_eq_coe, continuous_map.coe_mk, coe_comp], | ||
convert dense_range_pure.equalizer (g.continuous.comp hh) f.continuous _, | ||
rw [comp.assoc, ultrafilter_extend_extends, ← comp.assoc, hg'.comp_eq_id, comp.left_id], | ||
end } | ||
|
||
/-- For any compact Hausdorff space `X`, | ||
the natural map `ultrafilter X → X` is a projective presentation. -/ | ||
def projective_presentation (X : CompHaus) : projective_presentation X := | ||
{ P := of $ ultrafilter X, | ||
f := ⟨_, continuous_ultrafilter_extend id⟩, | ||
projective := CompHaus.projective_ultrafilter X, | ||
epi := concrete_category.epi_of_surjective _ $ | ||
λ x, ⟨(pure x : ultrafilter X), congr_fun (ultrafilter_extend_extends (𝟙 X)) x⟩ } | ||
|
||
instance : enough_projectives CompHaus := | ||
{ presentation := λ X, ⟨projective_presentation X⟩ } | ||
|
||
end CompHaus |
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,59 @@ | ||
/- | ||
Copyright (c) 2021 Johan Commelin. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Johan Commelin | ||
-/ | ||
|
||
import topology.category.Profinite | ||
import topology.stone_cech | ||
import category_theory.preadditive.projective | ||
|
||
/-! | ||
# Profinite sets have enough projectives | ||
In this file we show that `Profinite` has enough projectives. | ||
## Main results | ||
Let `X` be a profinite set. | ||
* `Profinite.projective_ultrafilter`: the space `ultrafilter X` is a projective object | ||
* `Profinite.projective_presentation`: the natural map `ultrafilter X → X` | ||
is a projective presentation | ||
-/ | ||
|
||
noncomputable theory | ||
|
||
open category_theory function | ||
|
||
namespace Profinite | ||
|
||
instance projective_ultrafilter (X : Type*) : | ||
projective (of $ ultrafilter X) := | ||
{ factors := λ Y Z f g hg, | ||
begin | ||
rw epi_iff_surjective at hg, | ||
obtain ⟨g', hg'⟩ := hg.has_right_inverse, | ||
let t : X → Y := g' ∘ f ∘ (pure : X → ultrafilter X), | ||
let h : ultrafilter X → Y := ultrafilter.extend t, | ||
have hh : continuous h := continuous_ultrafilter_extend _, | ||
use ⟨h, hh⟩, | ||
apply faithful.map_injective (forget Profinite), | ||
simp only [forget_map_eq_coe, continuous_map.coe_mk, coe_comp], | ||
refine dense_range_pure.equalizer (g.continuous.comp hh) f.continuous _, | ||
rw [comp.assoc, ultrafilter_extend_extends, ← comp.assoc, hg'.comp_eq_id, comp.left_id], | ||
end } | ||
|
||
/-- For any profinite `X`, the natural map `ultrafilter X → X` is a projective presentation. -/ | ||
def projective_presentation (X : Profinite) : projective_presentation X := | ||
{ P := of $ ultrafilter X, | ||
f := ⟨_, continuous_ultrafilter_extend id⟩, | ||
projective := Profinite.projective_ultrafilter X, | ||
epi := concrete_category.epi_of_surjective _ $ | ||
λ x, ⟨(pure x : ultrafilter X), congr_fun (ultrafilter_extend_extends (𝟙 X)) x⟩ } | ||
|
||
instance : enough_projectives Profinite := | ||
{ presentation := λ X, ⟨projective_presentation X⟩ } | ||
|
||
end Profinite |
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