The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V25. Higher structures in categories

Mathlib.CategoryTheory.Sites.Sieves.Presieve

88 declarations. Mathlib docs · Source

theorem CategoryTheory.Presieve.ofArrows.idx.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {ι : Type u_1} {S : C} {X : ι → C}
  {f f_1 : (i : ι) → X i ⟶ S} (e_f : f = f_1) {Y : C} {g g_1 : Y ⟶ S} (e_g : g = g_1)
  (hf : CategoryTheory.Presieve.ofArrows X f g), hf.idx = ⋯.idx

theorem CategoryTheory.Presieve.BindStruct.mk.injEq E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Presieve X}
  {R : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y} {Z : C} {h : Z ⟶ X} (Y : C) (g : Z ⟶ Y) (f : Y ⟶ X)
  (hf : S f) (hg : R hf g) (fac : CategoryTheory.CategoryStruct.comp g f = h) (Y_1 : C) (g_1 : Z ⟶ Y_1) (f_1 : Y_1 ⟶ X)
  (hf_1 : S f_1) (hg_1 : R hf_1 g_1) (fac_1 : CategoryTheory.CategoryStruct.comp g_1 f_1 = h),
  ({ Y := Y, g := g, f := f, hf := hf, hg := hg, fac := fac } =
      { Y := Y_1, g := g_1, f := f_1, hf := hf_1, hg := hg_1, fac := fac_1 }) =
    (Y = Y_1 ∧ g ≍ g_1 ∧ f ≍ f_1)

theorem CategoryTheory.Presieve.BindStruct.mk.inj E1 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {X : C} {S : CategoryTheory.Presieve X}
  {R : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y} {Z : C} {h : Z ⟶ X} {Y : C} {g : Z ⟶ Y} {f : Y ⟶ X}
  {hf : S f} {hg : R hf g} {fac : CategoryTheory.CategoryStruct.comp g f = h} {Y_1 : C} {g_1 : Z ⟶ Y_1} {f_1 : Y_1 ⟶ X}
  {hf_1 : S f_1} {hg_1 : R hf_1 g_1} {fac_1 : CategoryTheory.CategoryStruct.comp g_1 f_1 = h},
  { Y := Y, g := g, f := f, hf := hf, hg := hg, fac := fac } =
      { Y := Y_1, g := g_1, f := f_1, hf := hf_1, hg := hg_1, fac := fac_1 } →
    Y = Y_1 ∧ g ≍ g_1 ∧ f ≍ f_1

def CategoryTheory.Presieve.BindStruct.ctorIdx E1 #

{C : Type u₁} →
  {inst : CategoryTheory.Category.{v₁, u₁} C} →
    {X : C} →
      {S : CategoryTheory.Presieve X} →
        {R : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y} → {Z : C} → {h : Z ⟶ X} → S.BindStruct R h → ℕ

def CategoryTheory.Presieve E1 #

{C : Type u₁} → [CategoryTheory.Category.{v₁, u₁} C] → C → Type (max u₁ v₁)

A predicate on arrows with codomain X.

instance CategoryTheory.instInhabitedPresieve E0 #

{C : Type u_1} → [inst : CategoryTheory.Category.{u_2, u_1} C] → (X : C) → Inhabited (CategoryTheory.Presieve X)

instance CategoryTheory.instCompleteLatticePresieve E0 #

{C : Type u_1} → [inst : CategoryTheory.Category.{u_2, u_1} C] → (X : C) → CompleteLattice (CategoryTheory.Presieve X)

theorem CategoryTheory.top_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : Y ⟶ X), ⊤ f

theorem CategoryTheory.bot_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : Y ⟶ X), ⊥ f ↔ False

abbrev CategoryTheory.Presieve.category E1 #

{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → {X : C} → CategoryTheory.Presieve X → Type (max u₁ v₁)

The full subcategory of the over category C/X consisting of arrows which belong to a presieve on X.

abbrev CategoryTheory.Presieve.categoryMk E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} → (P : CategoryTheory.Presieve X) → {Y : C} → (f : Y ⟶ X) → P f → P.category

Construct an object of P.category.

abbrev CategoryTheory.Presieve.diagram E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} → (S : CategoryTheory.Presieve X) → CategoryTheory.Functor S.category C

Given a sieve S on X : C, its associated diagram S.diagram is defined to be the natural functor from the full subcategory of the over category C/X consisting of arrows in S to C.

abbrev CategoryTheory.Presieve.cocone E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} → (S : CategoryTheory.Presieve X) → CategoryTheory.Limits.Cocone S.diagram

Given a sieve S on X : C, its associated cocone S.cocone is defined to be the natural cocone over the diagram defined above with cocone point X.

def CategoryTheory.Presieve.bind E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} →
      (S : CategoryTheory.Presieve X) →
        (⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y) → CategoryTheory.Presieve X

Given a presieve S on X, and presieve R on Y for each f : Y ⟶ X in S, produce a presieve on X: { g ≫ f | (f : Y ⟶ X) ∈ S, (g : Z ⟶ Y) ∈ R f }.

structure CategoryTheory.Presieve.BindStruct E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} →
      (S : CategoryTheory.Presieve X) →
        (⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y) → {Z : C} → (Z ⟶ X) → Type (max u₁ v₁)

Structure which contains the data and properties for a morphism h satisfying Presieve.bind S R h.

ctor CategoryTheory.Presieve.BindStruct.mk E0 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} →
      {S : CategoryTheory.Presieve X} →
        {R : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y} →
          {Z : C} →
            {h : Z ⟶ X} →
              (Y : C) →
                (g : Z ⟶ Y) →
                  (f : Y ⟶ X) → (hf : S f) → R hf g → CategoryTheory.CategoryStruct.comp g f = h → S.BindStruct R h

abbrev CategoryTheory.Presieve.BindStruct.Y E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} →
      {S : CategoryTheory.Presieve X} →
        {R : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y} → {Z : C} → {h : Z ⟶ X} → S.BindStruct R h → C

the intermediate object

abbrev CategoryTheory.Presieve.BindStruct.g E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} →
      {S : CategoryTheory.Presieve X} →
        {R : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y} →
          {Z : C} → {h : Z ⟶ X} → (self : S.BindStruct R h) → Z ⟶ self.Y

a morphism in the family of presieves R

abbrev CategoryTheory.Presieve.BindStruct.f E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} →
      {S : CategoryTheory.Presieve X} →
        {R : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y} →
          {Z : C} → {h : Z ⟶ X} → (self : S.BindStruct R h) → self.Y ⟶ X

a morphism in the presieve S

theorem CategoryTheory.Presieve.BindStruct.hf E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Presieve X}
  {R : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y} {Z : C} {h : Z ⟶ X} (self : S.BindStruct R h), S self.f

theorem CategoryTheory.Presieve.BindStruct.hg E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Presieve X}
  {R : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y} {Z : C} {h : Z ⟶ X} (self : S.BindStruct R h),
  R ⋯ self.g

theorem CategoryTheory.Presieve.BindStruct.fac E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Presieve X}
  {R : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y} {Z : C} {h : Z ⟶ X} (self : S.BindStruct R h),
  CategoryTheory.CategoryStruct.comp self.g self.f = h

theorem CategoryTheory.Presieve.BindStruct.fac_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Presieve X}
  {R : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y} {Z : C} {h : Z ⟶ X} (self : S.BindStruct R h) {Z_1 : C}
  (h_1 : X ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp self.g (CategoryTheory.CategoryStruct.comp self.f h_1) =
    CategoryTheory.CategoryStruct.comp h h_1

def CategoryTheory.Presieve.bind.bindStruct E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} →
      {S : CategoryTheory.Presieve X} →
        {R : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y} →
          {Z : C} → {h : Z ⟶ X} → S.bind R h → S.BindStruct R h

If a morphism h satisfies Presieve.bind S R h, this is a choice of a structure in BindStruct S R h.

theorem CategoryTheory.Presieve.BindStruct.bind E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {S : CategoryTheory.Presieve X}
  {R : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y} {Z : C} {h : Z ⟶ X} (b : S.BindStruct R h), S.bind R h

theorem CategoryTheory.Presieve.bind_comp E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : C} (f : Y ⟶ X) {S : CategoryTheory.Presieve X}
  {R : ⦃Y : C⦄ → ⦃f : Y ⟶ X⦄ → S f → CategoryTheory.Presieve Y} {g : Z ⟶ Y} (h₁ : S f),
  R h₁ g → S.bind R (CategoryTheory.CategoryStruct.comp g f)

inductive CategoryTheory.Presieve.singleton E1 #

{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → {X Y : C} → (Y ⟶ X) → CategoryTheory.Presieve X

The singleton presieve.

ctor CategoryTheory.Presieve.singleton.mk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} {f : Y ⟶ X}, CategoryTheory.Presieve.singleton f f

theorem CategoryTheory.Presieve.singleton_eq_iff_domain E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f g : Y ⟶ X),
  CategoryTheory.Presieve.singleton f g ↔ f = g

theorem CategoryTheory.Presieve.singleton_self E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : Y ⟶ X), CategoryTheory.Presieve.singleton f f

theorem CategoryTheory.Presieve.singleton_le_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : Y ⟶ X) {R : CategoryTheory.Presieve X},
  CategoryTheory.Presieve.singleton f ≤ R ↔ R f

class CategoryTheory.Presieve.HasPullbacks E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] → {X : C} → CategoryTheory.Presieve X → {Y : C} → (Y ⟶ X) → Prop

A presieve R has pullbacks along f if for every h in R, the pullback with f exists.

ctor CategoryTheory.Presieve.HasPullbacks.mk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {R : CategoryTheory.Presieve X} {Y : C} {f : Y ⟶ X},
  (∀ {Z : C} {h : Z ⟶ X}, R h → CategoryTheory.Limits.HasPullback h f) → R.HasPullbacks f

theorem CategoryTheory.Presieve.HasPullbacks.hasPullback E1 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {X : C} {R : CategoryTheory.Presieve X} {Y : C} (f : Y ⟶ X)
  [self : R.HasPullbacks f] {Z : C} {h : Z ⟶ X}, R h → CategoryTheory.Limits.HasPullback h f

theorem CategoryTheory.Presieve.hasPullback E1 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {X : C} {R : CategoryTheory.Presieve X} {Y : C} (f : Y ⟶ X)
  [self : R.HasPullbacks f] {Z : C} {h : Z ⟶ X}, R h → CategoryTheory.Limits.HasPullback h f

Alias of CategoryTheory.Presieve.HasPullbacks.hasPullback.

instance CategoryTheory.Presieve.instHasPullbacksOfHasPullbacks E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} [CategoryTheory.Limits.HasPullbacks C]
  (R : CategoryTheory.Presieve X) {Y : C} (f : Y ⟶ X), R.HasPullbacks f

instance CategoryTheory.Presieve.instHasPullbacksSingletonOfHasPullback E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : C} (f : Y ⟶ X) (g : Z ⟶ X)
  [CategoryTheory.Limits.HasPullback g f], (CategoryTheory.Presieve.singleton g).HasPullbacks f

inductive CategoryTheory.Presieve.pullbackArrows E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} → (f : Y ⟶ X) → (R : CategoryTheory.Presieve X) → [R.HasPullbacks f] → CategoryTheory.Presieve Y

Pullback a presieve along a fixed map, by taking the pullback in the category. This is not the same as the underlying presieve of Sieve.pullback, but there is a relation between them in pullbackArrows_comm.

ctor CategoryTheory.Presieve.pullbackArrows.mk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} {f : Y ⟶ X} {R : CategoryTheory.Presieve X}
  [inst_1 : R.HasPullbacks f] (Z : C) (h : Z ⟶ X) (hRh : R h),
  CategoryTheory.Presieve.pullbackArrows f R (CategoryTheory.Limits.pullback.snd h f)

theorem CategoryTheory.Presieve.pullback_singleton E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : C} (f : Y ⟶ X) (g : Z ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasPullback g f],
  CategoryTheory.Presieve.pullbackArrows f (CategoryTheory.Presieve.singleton g) =
    CategoryTheory.Presieve.singleton (CategoryTheory.Limits.pullback.snd g f)

inductive CategoryTheory.Presieve.ofArrows E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} → {ι : Type u_1} → (Y : ι → C) → ((i : ι) → Y i ⟶ X) → CategoryTheory.Presieve X

Construct the presieve given by the family of arrows indexed by ι.

ctor CategoryTheory.Presieve.ofArrows.mk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {ι : Type u_1} {Y : ι → C} {f : (i : ι) → Y i ⟶ X}
  (i : ι), CategoryTheory.Presieve.ofArrows Y f (f i)

theorem CategoryTheory.Presieve.ofArrows.mk' E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {ι : Type u_1} {Y : ι → C} {f : (i : ι) → Y i ⟶ X}
  {Z : C} {g : Z ⟶ X} (i : ι) (h : Z = Y i),
  g = CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom h) (f i) → CategoryTheory.Presieve.ofArrows Y f g

instance CategoryTheory.Presieve.instHasPullbacksOfArrowsOfHasPullback E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : Y ⟶ X) {ι : Type u_1} (Z : ι → C)
  (g : (i : ι) → Z i ⟶ X) [∀ (i : ι), CategoryTheory.Limits.HasPullback (g i) f],
  (CategoryTheory.Presieve.ofArrows Z g).HasPullbacks f

theorem CategoryTheory.Presieve.ofArrows_pullback E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : Y ⟶ X) {ι : Type u_1} (Z : ι → C)
  (g : (i : ι) → Z i ⟶ X) [inst_1 : ∀ (i : ι), CategoryTheory.Limits.HasPullback (g i) f],
  (CategoryTheory.Presieve.ofArrows (fun i ↦ CategoryTheory.Limits.pullback (g i) f) fun x ↦
      CategoryTheory.Limits.pullback.snd (g x) f) =
    CategoryTheory.Presieve.pullbackArrows f (CategoryTheory.Presieve.ofArrows Z g)

theorem CategoryTheory.Presieve.ofArrows_bind E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {ι : Type u_1} (Z : ι → C) (g : (i : ι) → Z i ⟶ X)
  (j : ⦃Y : C⦄ → (f : Y ⟶ X) → CategoryTheory.Presieve.ofArrows Z g f → Type u_2)
  (W : ⦃Y : C⦄ → (f : Y ⟶ X) → (H : CategoryTheory.Presieve.ofArrows Z g f) → j f H → C)
  (k : ⦃Y : C⦄ → (f : Y ⟶ X) → (H : CategoryTheory.Presieve.ofArrows Z g f) → (i : j f H) → W f H i ⟶ Y),
  ((CategoryTheory.Presieve.ofArrows Z g).bind fun x f H ↦ CategoryTheory.Presieve.ofArrows (W f H) (k f H)) =
    CategoryTheory.Presieve.ofArrows (fun i ↦ W (g i.fst) ⋯ i.snd) fun ij ↦
      CategoryTheory.CategoryStruct.comp (k (g ij.fst) ⋯ ij.snd) (g ij.fst)

theorem CategoryTheory.Presieve.ofArrows_surj E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {ι : Type u_1} {Y : ι → C} (f : (i : ι) → Y i ⟶ X)
  {Z : C} (g : Z ⟶ X),
  CategoryTheory.Presieve.ofArrows Y f g →
    ∃ i, ∃ (h : Y i = Z), g = CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯) (f i)

theorem CategoryTheory.Presieve.exists_eq_ofArrows E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (R : CategoryTheory.Presieve X),
  ∃ ι Y f, R = CategoryTheory.Presieve.ofArrows Y f

theorem CategoryTheory.Presieve.ofArrows_category E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {S : C} (R : CategoryTheory.Presieve S),
  (CategoryTheory.Presieve.ofArrows (fun f ↦ f.obj.left) fun f ↦ f.obj.hom) = R

def CategoryTheory.Presieve.ofArrows.idx E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {ι : Type u_1} →
      {S : C} →
        {X : ι → C} → {f : (i : ι) → X i ⟶ S} → {Y : C} → {g : Y ⟶ S} → CategoryTheory.Presieve.ofArrows X f g → ι

If g : Y ⟶ S is in the presieve given by the indexed family fᵢ, this is a choice of index such that g = fᵢ modulo eqToHom. Note: This should generally not be used! If possible, use the induction principle for the type Presieve.ofArrows instead (using e.g., rintro / obtain).

theorem CategoryTheory.Presieve.ofArrows.obj_idx E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {ι : Type u_1} {S : C} {X : ι → C} {f : (i : ι) → X i ⟶ S}
  {Y : C} {g : Y ⟶ S} (hf : CategoryTheory.Presieve.ofArrows X f g), X hf.idx = Y

theorem CategoryTheory.Presieve.ofArrows.hom_idx E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {ι : Type u_1} {S : C} {X : ι → C} {f : (i : ι) → X i ⟶ S}
  {Y : C} {g : Y ⟶ S} (hf : CategoryTheory.Presieve.ofArrows X f g),
  f hf.idx = CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯) g

theorem CategoryTheory.Presieve.ofArrows_comp_le E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {ι : Type u_1} {σ : Type u_2} {Y : ι → C}
  (f : (i : ι) → Y i ⟶ X) (a : σ → ι),
  (CategoryTheory.Presieve.ofArrows (Y ∘ a) fun i ↦ f (a i)) ≤ CategoryTheory.Presieve.ofArrows Y f

theorem CategoryTheory.Presieve.ofArrows_comp_eq_of_surjective E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {ι : Type u_1} {σ : Type u_2} {Y : ι → C}
  (f : (i : ι) → Y i ⟶ X) {a : σ → ι},
  Function.Surjective a →
    (CategoryTheory.Presieve.ofArrows (Y ∘ a) fun i ↦ f (a i)) = CategoryTheory.Presieve.ofArrows Y f

theorem CategoryTheory.Presieve.ofArrows_le_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {ι : Type u_1} {Y : ι → C} {f : (i : ι) → Y i ⟶ X}
  {R : CategoryTheory.Presieve X}, CategoryTheory.Presieve.ofArrows Y f ≤ R ↔ ∀ (i : ι), R (f i)

theorem CategoryTheory.Presieve.ofArrows_of_unique E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {ι : Type u_1} [inst_1 : Unique ι] {Y : ι → C}
  (f : (i : ι) → Y i ⟶ X), CategoryTheory.Presieve.ofArrows Y f = CategoryTheory.Presieve.singleton (f default)

theorem CategoryTheory.Presieve.ofArrows_pUnit E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : Y ⟶ X),
  (CategoryTheory.Presieve.ofArrows (fun x ↦ Y) fun x ↦ f) = CategoryTheory.Presieve.singleton f

theorem CategoryTheory.Presieve.ofArrows_of_isEmpty E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {ι : Type u_1} [IsEmpty ι] {Y : ι → C}
  (f : (i : ι) → Y i ⟶ X), CategoryTheory.Presieve.ofArrows Y f = ⊥

inductive CategoryTheory.Presieve.bindOfArrows E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {ι : Type u_1} →
      {X : C} →
        (Y : ι → C) → ((i : ι) → Y i ⟶ X) → ((i : ι) → CategoryTheory.Presieve (Y i)) → CategoryTheory.Presieve X

A convenient constructor for a refinement of a presieve of the form Presieve.ofArrows. This contains a sieve obtained by Sieve.bind and Sieve.ofArrows, see Presieve.bind_ofArrows_le_bindOfArrows, but has better definitional properties.

ctor CategoryTheory.Presieve.bindOfArrows.mk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {ι : Type u_1} {X : C} {Y : ι → C} {f : (i : ι) → Y i ⟶ X}
  {R : (i : ι) → CategoryTheory.Presieve (Y i)} (i : ι) {Z : C} (g : Z ⟶ Y i),
  R i g → CategoryTheory.Presieve.bindOfArrows Y f R (CategoryTheory.CategoryStruct.comp g (f i))

theorem CategoryTheory.Presieve.bindOfArrows_ofArrows E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {ι : Type u_1} {S : C} {X : ι → C} (f : (i : ι) → X i ⟶ S)
  {σ : ι → Type u_2} {Y : (i : ι) → σ i → C} (g : (i : ι) → (j : σ i) → Y i j ⟶ X i),
  (CategoryTheory.Presieve.bindOfArrows X f fun i ↦ CategoryTheory.Presieve.ofArrows (Y i) (g i)) =
    CategoryTheory.Presieve.ofArrows (fun p ↦ Y p.fst p.snd) fun p ↦
      CategoryTheory.CategoryStruct.comp (g p.fst p.snd) (f p.fst)

def CategoryTheory.Presieve.pushforward E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} → (X ⟶ Y) → CategoryTheory.Presieve X → CategoryTheory.Presieve Y

Compose a presieve on the right with a morphism.

theorem CategoryTheory.Presieve.pushforward_apply_comp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : C} {f : X ⟶ Y} {R : CategoryTheory.Presieve X}
  {g : Z ⟶ X}, R g → CategoryTheory.Presieve.pushforward f R (CategoryTheory.CategoryStruct.comp g f)

theorem CategoryTheory.Presieve.pushforward_ofArrows E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {ι : Type u_1} {U : ι → C} {X Y : C} (g : (i : ι) → U i ⟶ X)
  (f : X ⟶ Y),
  CategoryTheory.Presieve.pushforward f (CategoryTheory.Presieve.ofArrows U g) =
    CategoryTheory.Presieve.ofArrows U fun x ↦ CategoryTheory.CategoryStruct.comp (g x) f

theorem CategoryTheory.Presieve.pushforward_singleton E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : C} (f : X ⟶ Y) (g : Y ⟶ Z),
  CategoryTheory.Presieve.pushforward g (CategoryTheory.Presieve.singleton f) =
    CategoryTheory.Presieve.singleton (CategoryTheory.CategoryStruct.comp f g)

def CategoryTheory.Presieve.pullback E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} → (X ⟶ Y) → CategoryTheory.Presieve Y → CategoryTheory.Presieve X

The pullback of a presieve R on Y along a morphism f : X ⟶ Y is the presieve on X given by all morphisms g : Z ⟶ X such that g ≫ f is in R.

theorem CategoryTheory.Presieve.pullback_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} {f : Y ⟶ X} {R : CategoryTheory.Presieve X}
  {Z : C} {g : Z ⟶ Y}, CategoryTheory.Presieve.pullback f R g ↔ R (CategoryTheory.CategoryStruct.comp g f)

theorem CategoryTheory.Presieve.pushforward_le_iff_le_pullback E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : Y ⟶ X) (R : CategoryTheory.Presieve Y)
  (T : CategoryTheory.Presieve X),
  CategoryTheory.Presieve.pushforward f R ≤ T ↔ R ≤ CategoryTheory.Presieve.pullback f T

theorem CategoryTheory.Presieve.galoisConnection_pushforward_pullback E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : Y ⟶ X),
  GaloisConnection (CategoryTheory.Presieve.pushforward f) (CategoryTheory.Presieve.pullback f)

theorem CategoryTheory.Presieve.monotone_pushforward E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : Y ⟶ X),
  Monotone (CategoryTheory.Presieve.pushforward f)

theorem CategoryTheory.Presieve.monotone_pullback E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : Y ⟶ X),
  Monotone (CategoryTheory.Presieve.pullback f)

theorem CategoryTheory.Presieve.pushforward_pullback_le E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : Y ⟶ X) (R : CategoryTheory.Presieve X),
  CategoryTheory.Presieve.pushforward f (CategoryTheory.Presieve.pullback f R) ≤ R

theorem CategoryTheory.Presieve.le_pullback_pushforward E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : Y ⟶ X) (R : CategoryTheory.Presieve Y),
  R ≤ CategoryTheory.Presieve.pullback f (CategoryTheory.Presieve.pushforward f R)

theorem CategoryTheory.Presieve.pullback_id E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (R : CategoryTheory.Presieve X),
  CategoryTheory.Presieve.pullback (CategoryTheory.CategoryStruct.id X) R = R

theorem CategoryTheory.Presieve.pullback_comp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : C} (f : Y ⟶ X) (R : CategoryTheory.Presieve Z)
  (g : X ⟶ Z),
  CategoryTheory.Presieve.pullback (CategoryTheory.CategoryStruct.comp f g) R =
    CategoryTheory.Presieve.pullback f (CategoryTheory.Presieve.pullback g R)

theorem CategoryTheory.Presieve.pushforward_id E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (R : CategoryTheory.Presieve X),
  CategoryTheory.Presieve.pushforward (CategoryTheory.CategoryStruct.id X) R = R

theorem CategoryTheory.Presieve.pushforward_comp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : C} (f : Y ⟶ X) (R : CategoryTheory.Presieve Y)
  (g : X ⟶ Z),
  CategoryTheory.Presieve.pushforward (CategoryTheory.CategoryStruct.comp f g) R =
    CategoryTheory.Presieve.pushforward g (CategoryTheory.Presieve.pushforward f R)

class CategoryTheory.Presieve.HasPairwisePullbacks E1 #

{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → {X : C} → CategoryTheory.Presieve X → Prop

Given a presieve R on X, the predicate R.HasPairwisePullbacks means that for all arrows f and g in R, the pullback of f and g exists.

ctor CategoryTheory.Presieve.HasPairwisePullbacks.mk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {R : CategoryTheory.Presieve X},
  (∀ {Y Z : C} {f : Y ⟶ X}, R f → ∀ {g : Z ⟶ X}, R g → CategoryTheory.Limits.HasPullback f g) → R.HasPairwisePullbacks

theorem CategoryTheory.Presieve.HasPairwisePullbacks.has_pullbacks E1 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {X : C} {R : CategoryTheory.Presieve X}
  [self : R.HasPairwisePullbacks] {Y Z : C} {f : Y ⟶ X},
  R f → ∀ {g : Z ⟶ X}, R g → CategoryTheory.Limits.HasPullback f g

For all arrows f and g in R, the pullback of f and g exists.

instance CategoryTheory.Presieve.instHasPairwisePullbacksOfHasPullbacks E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (R : CategoryTheory.Presieve X)
  [CategoryTheory.Limits.HasPullbacks C], R.HasPairwisePullbacks

instance CategoryTheory.Presieve.instHasPullbackOfHasPairwisePullbacksOfArrows E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {α : Type v₂} {X : α → C} {B : C} (π : (a : α) → X a ⟶ B)
  [(CategoryTheory.Presieve.ofArrows X π).HasPairwisePullbacks] (a b : α), CategoryTheory.Limits.HasPullback (π a) (π b)

def CategoryTheory.Presieve.uncurry E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] → {X : C} → CategoryTheory.Presieve X → Set ((Y : C) × (Y ⟶ X))

Uncurry a presieve to one set over the sigma type.

theorem CategoryTheory.Presieve.uncurry_singleton E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (u : Y ⟶ X),
  (CategoryTheory.Presieve.singleton u).uncurry = {⟨Y, u⟩}

theorem CategoryTheory.Presieve.uncurry_pullbackArrows E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (s : CategoryTheory.Presieve X)
  [inst_1 : CategoryTheory.Limits.HasPullbacks C] {B : C} (b : B ⟶ X),
  (CategoryTheory.Presieve.pullbackArrows b s).uncurry =
    (fun f ↦ ⟨CategoryTheory.Limits.pullback f.snd b, CategoryTheory.Limits.pullback.snd f.snd b⟩) '' s.uncurry

theorem CategoryTheory.Presieve.uncurry_bind E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (s : CategoryTheory.Presieve X)
  (t : ⦃Y : C⦄ → (f : Y ⟶ X) → s f → CategoryTheory.Presieve Y),
  (s.bind t).uncurry =
    ⋃ i,
      ⋃ (h : i ∈ s.uncurry), (Sigma.map id fun Z g ↦ CategoryTheory.CategoryStruct.comp g i.snd) '' (t i.snd h).uncurry

theorem CategoryTheory.Presieve.uncurry_ofArrows E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {ι : Type u_1} (Y : ι → C) (f : (i : ι) → Y i ⟶ X),
  (CategoryTheory.Presieve.ofArrows Y f).uncurry = Set.range fun i ↦ ⟨Y i, f i⟩

theorem CategoryTheory.Presieve.ofArrows_eq_ofArrows_uncurry E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {ι : Type u_1} {S : C} {X : ι → C} (f : (i : ι) → X i ⟶ S),
  CategoryTheory.Presieve.ofArrows X f =
    CategoryTheory.Presieve.ofArrows (fun i ↦ X (CategoryTheory.Presieve.ofArrows.idx ⋯)) fun i ↦
      f (CategoryTheory.Presieve.ofArrows.idx ⋯)