-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(CategoryTheory/Sites): a functor into a precoherent category sat…
…isfying `Functor.EffectivelyEnough` is cover dense (#11686)
- Loading branch information
1 parent
04a0187
commit 4de5add
Showing
3 changed files
with
71 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,59 @@ | ||
/- | ||
Copyright (c) 2024 Dagur Asgeirsson. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Dagur Asgeirsson | ||
-/ | ||
import Mathlib.CategoryTheory.EffectiveEpi.Enough | ||
import Mathlib.CategoryTheory.Sites.Coherent.Basic | ||
import Mathlib.CategoryTheory.Sites.DenseSubsite | ||
/-! | ||
# Cover-dense functors into precoherent categories | ||
We prove that if for a functor `F : C ⥤ D` into a precoherent category we have | ||
`F.EffectivelyEnough`, then `F.IsCoverDense (coherentTopology _)`. | ||
We give the corresponding result for the regular topology as well. | ||
-/ | ||
|
||
namespace CategoryTheory | ||
|
||
open Limits | ||
|
||
variable {C D : Type*} [Category C] [Category D] (F : C ⥤ D) | ||
[F.EffectivelyEnough] | ||
|
||
namespace coherentTopology | ||
|
||
variable [Precoherent D] | ||
|
||
instance : F.IsCoverDense (coherentTopology _) := by | ||
refine F.isCoverDense_of_generate_singleton_functor_π_mem _ fun B ↦ ⟨_, F.effectiveEpiOver B, ?_⟩ | ||
apply Coverage.saturate.of | ||
refine ⟨Unit, inferInstance, fun _ => F.effectiveEpiOverObj B, | ||
fun _ => F.effectiveEpiOver B, ?_ , ?_⟩ | ||
· funext X f | ||
ext | ||
refine ⟨fun ⟨⟩ ↦ ⟨()⟩, ?_⟩ | ||
rintro ⟨⟩ | ||
simp only [Presieve.singleton_eq_iff_domain] | ||
· rw [← effectiveEpi_iff_effectiveEpiFamily] | ||
infer_instance | ||
|
||
end coherentTopology | ||
|
||
namespace regularTopology | ||
|
||
variable [Preregular D] | ||
|
||
instance : F.IsCoverDense (regularTopology _) := by | ||
refine F.isCoverDense_of_generate_singleton_functor_π_mem _ fun B ↦ ⟨_, F.effectiveEpiOver B, ?_⟩ | ||
apply Coverage.saturate.of | ||
refine ⟨F.effectiveEpiOverObj B, F.effectiveEpiOver B, ?_, inferInstance⟩ | ||
funext X f | ||
ext | ||
refine ⟨fun ⟨⟩ ↦ ⟨()⟩, ?_⟩ | ||
rintro ⟨⟩ | ||
simp only [Presieve.singleton_eq_iff_domain] | ||
|
||
end regularTopology |
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