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 / V24. Category theory

Mathlib.CategoryTheory.Category.Pairwise

48 declarations. Mathlib docs · Source

theorem CategoryTheory.Pairwise.pair.injEq E0 #

∀ {ι : Type v} (a a_1 a_2 a_3 : ι),
  (CategoryTheory.Pairwise.pair a a_1 = CategoryTheory.Pairwise.pair a_2 a_3) = (a = a_2 ∧ a_1 = a_3)

def CategoryTheory.Pairwise.ctorIdx E1 #

{ι : Type v} → CategoryTheory.Pairwise ι → ℕ

theorem CategoryTheory.Pairwise.diagramMap.match_1.congr_eq_1 E1 #

∀ {ι : Type u_1} (motive : (x x_1 : CategoryTheory.Pairwise ι) → (x ⟶ x_1) → Sort u_2)
  (x x_1 : CategoryTheory.Pairwise ι) (x_2 : x ⟶ x_1)
  (h_1 :
    (i : ι) →
      motive (CategoryTheory.Pairwise.single i) (CategoryTheory.Pairwise.single i)
        (CategoryTheory.Pairwise.Hom.id_single i))
  (h_2 :
    (i j : ι) →
      motive (CategoryTheory.Pairwise.pair i j) (CategoryTheory.Pairwise.pair i j)
        (CategoryTheory.Pairwise.Hom.id_pair i j))
  (h_3 :
    (i j : ι) →
      motive (CategoryTheory.Pairwise.pair i j) (CategoryTheory.Pairwise.single i)
        (CategoryTheory.Pairwise.Hom.left i j))
  (h_4 :
    (i j : ι) →
      motive (CategoryTheory.Pairwise.pair i j) (CategoryTheory.Pairwise.single j)
        (CategoryTheory.Pairwise.Hom.right i j))
  (i : ι),
  x = CategoryTheory.Pairwise.single i →
    x_1 = CategoryTheory.Pairwise.single i →
      x_2 ≍ CategoryTheory.Pairwise.Hom.id_single i →
        (match x, x_1, x_2 with
          | .(CategoryTheory.Pairwise.single i), .(CategoryTheory.Pairwise.single i),
            CategoryTheory.Pairwise.Hom.id_single i => h_1 i
          | .(CategoryTheory.Pairwise.pair i j), .(CategoryTheory.Pairwise.pair i j),
            CategoryTheory.Pairwise.Hom.id_pair i j => h_2 i j
          | .(CategoryTheory.Pairwise.pair i j), .(CategoryTheory.Pairwise.single i),
            CategoryTheory.Pairwise.Hom.left i j => h_3 i j
          | .(CategoryTheory.Pairwise.pair i j), .(CategoryTheory.Pairwise.single j),
            CategoryTheory.Pairwise.Hom.right i j => h_4 i j) ≍
          h_1 i

theorem CategoryTheory.instFintypePairwise.match_5.congr_eq_1 E1 #

∀ (ι : Type u_1) (motive : CategoryTheory.Pairwise ι → Sort u_2) (x : CategoryTheory.Pairwise ι)
  (h_1 : (a : ι) → motive (CategoryTheory.Pairwise.single a))
  (h_2 : (a a_1 : ι) → motive (CategoryTheory.Pairwise.pair a a_1)) (a : ι),
  x = CategoryTheory.Pairwise.single a →
    (match x with
      | CategoryTheory.Pairwise.single a => h_1 a
      | CategoryTheory.Pairwise.pair a a_1 => h_2 a a_1) ≍
      h_1 a

theorem CategoryTheory.Pairwise.diagramMap.match_1.congr_eq_4 E1 #

∀ {ι : Type u_1} (motive : (x x_1 : CategoryTheory.Pairwise ι) → (x ⟶ x_1) → Sort u_2)
  (x x_1 : CategoryTheory.Pairwise ι) (x_2 : x ⟶ x_1)
  (h_1 :
    (i : ι) →
      motive (CategoryTheory.Pairwise.single i) (CategoryTheory.Pairwise.single i)
        (CategoryTheory.Pairwise.Hom.id_single i))
  (h_2 :
    (i j : ι) →
      motive (CategoryTheory.Pairwise.pair i j) (CategoryTheory.Pairwise.pair i j)
        (CategoryTheory.Pairwise.Hom.id_pair i j))
  (h_3 :
    (i j : ι) →
      motive (CategoryTheory.Pairwise.pair i j) (CategoryTheory.Pairwise.single i)
        (CategoryTheory.Pairwise.Hom.left i j))
  (h_4 :
    (i j : ι) →
      motive (CategoryTheory.Pairwise.pair i j) (CategoryTheory.Pairwise.single j)
        (CategoryTheory.Pairwise.Hom.right i j))
  (i j : ι),
  x = CategoryTheory.Pairwise.pair i j →
    x_1 = CategoryTheory.Pairwise.single j →
      x_2 ≍ CategoryTheory.Pairwise.Hom.right i j →
        (match x, x_1, x_2 with
          | .(CategoryTheory.Pairwise.single i), .(CategoryTheory.Pairwise.single i),
            CategoryTheory.Pairwise.Hom.id_single i => h_1 i
          | .(CategoryTheory.Pairwise.pair i j), .(CategoryTheory.Pairwise.pair i j),
            CategoryTheory.Pairwise.Hom.id_pair i j => h_2 i j
          | .(CategoryTheory.Pairwise.pair i j), .(CategoryTheory.Pairwise.single i),
            CategoryTheory.Pairwise.Hom.left i j => h_3 i j
          | .(CategoryTheory.Pairwise.pair i j), .(CategoryTheory.Pairwise.single j),
            CategoryTheory.Pairwise.Hom.right i j => h_4 i j) ≍
          h_4 i j

abbrev CategoryTheory.Pairwise.proxyType E1 #

Type v → Type v

A "proxy type" equivalent to CategoryTheory.Pairwise that is constructed from Unit, PLift, Sigma, Empty, and Sum. See CategoryTheory.Pairwise.proxyTypeEquiv for the equivalence. (Generated by the proxy_equiv% elaborator.)

abbrev CategoryTheory.Pairwise.proxyTypeEquiv E1 #

(ι : Type v) → ι ⊕ (_ : ι) × ι ≃ CategoryTheory.Pairwise ι

An equivalence between the "proxy type" CategoryTheory.Pairwise.proxyType and CategoryTheory.Pairwise. The proxy type is a reducible definition that represents the inductive type using Unit, PLift, Sigma, Empty, and Sum (and whatever other inductive types appear within the inductive type), and the intended use is to define typeclass instances uses pre-existing instances on these. (Generated by the proxy_equiv% elaborator.)

def CategoryTheory.Pairwise.Hom.ctorIdx E1 #

{ι : Type v} → {a a_1 : CategoryTheory.Pairwise ι} → a.Hom a_1 → ℕ

theorem CategoryTheory.Pairwise.single.injEq E0 #

∀ {ι : Type v} (a a_1 : ι), (CategoryTheory.Pairwise.single a = CategoryTheory.Pairwise.single a_1) = (a = a_1)

abbrev CategoryTheory.Pairwise.Hom.ctorElimType E1 #

{ι : Type v} →
  {motive : (a a_1 : CategoryTheory.Pairwise ι) → a.Hom a_1 → Sort u} →
    ℕ → Sort (max 1 (imax (v + 1) u) (imax (v + 1) (v + 1) u))

theorem CategoryTheory.Pairwise.pair.inj E1 #

∀ {ι : Type v} {a a_1 a_2 a_3 : ι},
  CategoryTheory.Pairwise.pair a a_1 = CategoryTheory.Pairwise.pair a_2 a_3 → a = a_2 ∧ a_1 = a_3

theorem CategoryTheory.Pairwise.diagramMap.match_1.congr_eq_2 E1 #

∀ {ι : Type u_1} (motive : (x x_1 : CategoryTheory.Pairwise ι) → (x ⟶ x_1) → Sort u_2)
  (x x_1 : CategoryTheory.Pairwise ι) (x_2 : x ⟶ x_1)
  (h_1 :
    (i : ι) →
      motive (CategoryTheory.Pairwise.single i) (CategoryTheory.Pairwise.single i)
        (CategoryTheory.Pairwise.Hom.id_single i))
  (h_2 :
    (i j : ι) →
      motive (CategoryTheory.Pairwise.pair i j) (CategoryTheory.Pairwise.pair i j)
        (CategoryTheory.Pairwise.Hom.id_pair i j))
  (h_3 :
    (i j : ι) →
      motive (CategoryTheory.Pairwise.pair i j) (CategoryTheory.Pairwise.single i)
        (CategoryTheory.Pairwise.Hom.left i j))
  (h_4 :
    (i j : ι) →
      motive (CategoryTheory.Pairwise.pair i j) (CategoryTheory.Pairwise.single j)
        (CategoryTheory.Pairwise.Hom.right i j))
  (i j : ι),
  x = CategoryTheory.Pairwise.pair i j →
    x_1 = CategoryTheory.Pairwise.pair i j →
      x_2 ≍ CategoryTheory.Pairwise.Hom.id_pair i j →
        (match x, x_1, x_2 with
          | .(CategoryTheory.Pairwise.single i), .(CategoryTheory.Pairwise.single i),
            CategoryTheory.Pairwise.Hom.id_single i => h_1 i
          | .(CategoryTheory.Pairwise.pair i j), .(CategoryTheory.Pairwise.pair i j),
            CategoryTheory.Pairwise.Hom.id_pair i j => h_2 i j
          | .(CategoryTheory.Pairwise.pair i j), .(CategoryTheory.Pairwise.single i),
            CategoryTheory.Pairwise.Hom.left i j => h_3 i j
          | .(CategoryTheory.Pairwise.pair i j), .(CategoryTheory.Pairwise.single j),
            CategoryTheory.Pairwise.Hom.right i j => h_4 i j) ≍
          h_2 i j

abbrev CategoryTheory.Pairwise.ctorElimType E1 #

{ι : Type v} →
  {motive : CategoryTheory.Pairwise ι → Sort u} → ℕ → Sort (max 1 (imax (v + 1) u) (imax (v + 1) (v + 1) u))

theorem CategoryTheory.Pairwise.diagramMap.match_1.congr_eq_3 E1 #

∀ {ι : Type u_1} (motive : (x x_1 : CategoryTheory.Pairwise ι) → (x ⟶ x_1) → Sort u_2)
  (x x_1 : CategoryTheory.Pairwise ι) (x_2 : x ⟶ x_1)
  (h_1 :
    (i : ι) →
      motive (CategoryTheory.Pairwise.single i) (CategoryTheory.Pairwise.single i)
        (CategoryTheory.Pairwise.Hom.id_single i))
  (h_2 :
    (i j : ι) →
      motive (CategoryTheory.Pairwise.pair i j) (CategoryTheory.Pairwise.pair i j)
        (CategoryTheory.Pairwise.Hom.id_pair i j))
  (h_3 :
    (i j : ι) →
      motive (CategoryTheory.Pairwise.pair i j) (CategoryTheory.Pairwise.single i)
        (CategoryTheory.Pairwise.Hom.left i j))
  (h_4 :
    (i j : ι) →
      motive (CategoryTheory.Pairwise.pair i j) (CategoryTheory.Pairwise.single j)
        (CategoryTheory.Pairwise.Hom.right i j))
  (i j : ι),
  x = CategoryTheory.Pairwise.pair i j →
    x_1 = CategoryTheory.Pairwise.single i →
      x_2 ≍ CategoryTheory.Pairwise.Hom.left i j →
        (match x, x_1, x_2 with
          | .(CategoryTheory.Pairwise.single i), .(CategoryTheory.Pairwise.single i),
            CategoryTheory.Pairwise.Hom.id_single i => h_1 i
          | .(CategoryTheory.Pairwise.pair i j), .(CategoryTheory.Pairwise.pair i j),
            CategoryTheory.Pairwise.Hom.id_pair i j => h_2 i j
          | .(CategoryTheory.Pairwise.pair i j), .(CategoryTheory.Pairwise.single i),
            CategoryTheory.Pairwise.Hom.left i j => h_3 i j
          | .(CategoryTheory.Pairwise.pair i j), .(CategoryTheory.Pairwise.single j),
            CategoryTheory.Pairwise.Hom.right i j => h_4 i j) ≍
          h_3 i j

theorem CategoryTheory.instFintypePairwise.match_5.congr_eq_2 E1 #

∀ (ι : Type u_1) (motive : CategoryTheory.Pairwise ι → Sort u_2) (x : CategoryTheory.Pairwise ι)
  (h_1 : (a : ι) → motive (CategoryTheory.Pairwise.single a))
  (h_2 : (a a_1 : ι) → motive (CategoryTheory.Pairwise.pair a a_1)) (a a_1 : ι),
  x = CategoryTheory.Pairwise.pair a a_1 →
    (match x with
      | CategoryTheory.Pairwise.single a => h_1 a
      | CategoryTheory.Pairwise.pair a a_2 => h_2 a a_2) ≍
      h_2 a a_1

theorem CategoryTheory.Pairwise.single.inj E1 #

∀ {ι : Type v} {a a_1 : ι}, CategoryTheory.Pairwise.single a = CategoryTheory.Pairwise.single a_1 → a = a_1

inductive CategoryTheory.Pairwise E1 #

Type v → Type v

An inductive type representing either a single term of a type ι, or a pair of terms. We use this as the objects of a category to describe the sheaf condition.

ctor CategoryTheory.Pairwise.single E0 #

{ι : Type v} → ι → CategoryTheory.Pairwise ι

ctor CategoryTheory.Pairwise.pair E0 #

{ι : Type v} → ι → ι → CategoryTheory.Pairwise ι

instance CategoryTheory.instFintypePairwise E0 #

{ι : Type u_1} → [Fintype ι] → Fintype (CategoryTheory.Pairwise ι)

def CategoryTheory.instDecidableEqPairwise.decEq E1 #

{ι : Type u_1} → [DecidableEq ι] → (x x_1 : CategoryTheory.Pairwise ι) → Decidable (x = x_1)

instance CategoryTheory.instDecidableEqPairwise E0 #

{ι : Type u_1} → [DecidableEq ι] → DecidableEq (CategoryTheory.Pairwise ι)

instance CategoryTheory.Pairwise.pairwiseInhabited E0 #

{ι : Type v} → [Inhabited ι] → Inhabited (CategoryTheory.Pairwise ι)

inductive CategoryTheory.Pairwise.Hom E1 #

{ι : Type v} → CategoryTheory.Pairwise ι → CategoryTheory.Pairwise ι → Type v

Morphisms in the category CategoryTheory.Pairwise ι. The only non-identity morphisms are left i j : single i ⟶ pair i j and right i j : single j ⟶ pair i j.

ctor CategoryTheory.Pairwise.Hom.id_single E0 #

{ι : Type v} → (i : ι) → (CategoryTheory.Pairwise.single i).Hom (CategoryTheory.Pairwise.single i)

ctor CategoryTheory.Pairwise.Hom.id_pair E0 #

{ι : Type v} → (i j : ι) → (CategoryTheory.Pairwise.pair i j).Hom (CategoryTheory.Pairwise.pair i j)

ctor CategoryTheory.Pairwise.Hom.left E0 #

{ι : Type v} → (i j : ι) → (CategoryTheory.Pairwise.pair i j).Hom (CategoryTheory.Pairwise.single i)

ctor CategoryTheory.Pairwise.Hom.right E0 #

{ι : Type v} → (i j : ι) → (CategoryTheory.Pairwise.pair i j).Hom (CategoryTheory.Pairwise.single j)

def CategoryTheory.Pairwise.instDecidableEqHom.decEq E1 #

{ι : Type u_1} → {a a_1 : CategoryTheory.Pairwise ι} → [DecidableEq ι] → (x x_1 : a.Hom a_1) → Decidable (x = x_1)

instance CategoryTheory.Pairwise.instDecidableEqHom E0 #

{ι : Type u_1} → {a a_1 : CategoryTheory.Pairwise ι} → [DecidableEq ι] → DecidableEq (a.Hom a_1)

instance CategoryTheory.Pairwise.homInhabited E0 #

{ι : Type v} →
  [inst : Inhabited ι] →
    Inhabited ((CategoryTheory.Pairwise.single default).Hom (CategoryTheory.Pairwise.single default))

def CategoryTheory.Pairwise.id E1 #

{ι : Type v} → (o : CategoryTheory.Pairwise ι) → o.Hom o

The identity morphism in CategoryTheory.Pairwise ι.

def CategoryTheory.Pairwise.comp E1 #

{ι : Type v} → {o₁ o₂ o₃ : CategoryTheory.Pairwise ι} → o₁.Hom o₂ → o₂.Hom o₃ → o₁.Hom o₃

Composition of morphisms in CategoryTheory.Pairwise ι.

instance CategoryTheory.Pairwise.instCategoryStruct E0 #

{ι : Type v} → CategoryTheory.CategoryStruct.{v, v} (CategoryTheory.Pairwise ι)

def CategoryTheory.Pairwise.pairwiseCases E1 #

Lean.Elab.Tactic.TacticM Unit

A helper tactic for cat_disch and CategoryTheory.Pairwise.

instance CategoryTheory.Pairwise.instCategory E0 #

{ι : Type v} → CategoryTheory.Category.{v, v} (CategoryTheory.Pairwise ι)

instance CategoryTheory.Pairwise.instDecidableEqHom_1 E0 #

{ι : Type v} → {i j : CategoryTheory.Pairwise ι} → [DecidableEq ι] → DecidableEq (i ⟶ j)

instance CategoryTheory.Pairwise.instFinCategoryOfFintypeOfDecidableEq E0 #

{ι : Type v} → [Fintype ι] → [DecidableEq ι] → CategoryTheory.FinCategory (CategoryTheory.Pairwise ι)

def CategoryTheory.Pairwise.diagramObj E1 #

{ι : Type v} → {α : Type u} → (ι → α) → [SemilatticeInf α] → CategoryTheory.Pairwise ι → α

Auxiliary definition for diagram.

def CategoryTheory.Pairwise.diagramMap E1 #

{ι : Type v} →
  {α : Type u} →
    (U : ι → α) →
      [inst : SemilatticeInf α] →
        {o₁ o₂ : CategoryTheory.Pairwise ι} →
          (o₁ ⟶ o₂) → (CategoryTheory.Pairwise.diagramObj U o₁ ⟶ CategoryTheory.Pairwise.diagramObj U o₂)

Auxiliary definition for diagram.

def CategoryTheory.Pairwise.diagram E1 #

{ι : Type v} → {α : Type u} → (ι → α) → [inst : SemilatticeInf α] → CategoryTheory.Functor (CategoryTheory.Pairwise ι) α

Given a function U : ι → α for [SemilatticeInf α], we obtain a functor CategoryTheory.Pairwise ι ⥤ α, sending single i to U i and pair i j to U i ⊓ U j, and the morphisms to the obvious inequalities.

theorem CategoryTheory.Pairwise.diagram_obj E0 #

∀ {ι : Type v} {α : Type u} (U : ι → α) [inst : SemilatticeInf α] (a : CategoryTheory.Pairwise ι),
  (CategoryTheory.Pairwise.diagram U).obj a = CategoryTheory.Pairwise.diagramObj U a

theorem CategoryTheory.Pairwise.diagram_map E0 #

∀ {ι : Type v} {α : Type u} (U : ι → α) [inst : SemilatticeInf α] {X Y : CategoryTheory.Pairwise ι} (x : X ⟶ Y),
  (CategoryTheory.Pairwise.diagram U).map x = CategoryTheory.Pairwise.diagramMap U x

def CategoryTheory.Pairwise.coconeιApp E1 #

{ι : Type v} →
  {α : Type u} →
    (U : ι → α) →
      [inst : CompleteLattice α] → (o : CategoryTheory.Pairwise ι) → CategoryTheory.Pairwise.diagramObj U o ⟶ iSup U

Auxiliary definition for cocone.

def CategoryTheory.Pairwise.cocone E1 #

{ι : Type v} →
  {α : Type u} →
    (U : ι → α) → [inst : CompleteLattice α] → CategoryTheory.Limits.Cocone (CategoryTheory.Pairwise.diagram U)

Given a function U : ι → α for [CompleteLattice α], iSup U provides a cocone over diagram U.

theorem CategoryTheory.Pairwise.cocone_pt E0 #

∀ {ι : Type v} {α : Type u} (U : ι → α) [inst : CompleteLattice α], (CategoryTheory.Pairwise.cocone U).pt = iSup U

theorem CategoryTheory.Pairwise.cocone_ι_app E0 #

∀ {ι : Type v} {α : Type u} (U : ι → α) [inst : CompleteLattice α] (o : CategoryTheory.Pairwise ι),
  (CategoryTheory.Pairwise.cocone U).ι.app o = CategoryTheory.Pairwise.coconeιApp U o

def CategoryTheory.Pairwise.coconeIsColimit E1 #

{ι : Type v} →
  {α : Type u} →
    (U : ι → α) → [inst : CompleteLattice α] → CategoryTheory.Limits.IsColimit (CategoryTheory.Pairwise.cocone U)

Given a function U : ι → α for [CompleteLattice α], iInf U provides a limit cone over diagram U.