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.IsConnected

71 declarations and 2 deprecated aliases. Mathlib docs · Source

Connected category

Define a connected category as a nonempty category for which every functor to a discrete category is isomorphic to the constant functor.

NB. Some authors include the empty category as connected, we do not. We instead are interested in categories with exactly one 'connected component'.

We give some equivalent definitions:

  • A nonempty category for which every functor to a discrete category is constant on objects. See any_functor_const_on_obj and Connected.of_any_functor_const_on_obj.
  • A nonempty category for which every function F for which the presence of a morphism f : j₁ ⟶ j₂ implies F j₁ = F j₂ must be constant everywhere. See constant_of_preserves_morphisms and Connected.of_constant_of_preserves_morphisms.
  • A nonempty category for which any subset of its elements containing the default and closed under morphisms is everything. See induct_on_objects and Connected.of_induct.
  • A nonempty category for which every object is related under the reflexive transitive closure of the relation "there is a morphism in some direction from j₁ to j₂". See connected_zigzag and zigzag_connected.
  • A nonempty category for which for any two objects there is a sequence of morphisms (some reversed) from one to the other. See exists_zigzag' and connected_of_zigzag.

We also prove the result that the functor given by (X × -) preserves any connected limit. That is, any limit of shape J where J is a connected category is preserved by the functor (X × -). This appears in CategoryTheory.Limits.Connected.

class CategoryTheory.IsPreconnected E1 #

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

A possibly empty category for which every functor to a discrete category is constant.

ctor CategoryTheory.IsPreconnected.mk E0 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J],
  (∀ {α : Type u₁} (F : CategoryTheory.Functor J (CategoryTheory.Discrete α)) (j : J),
      Nonempty (F ≅ (CategoryTheory.Functor.const J).obj (F.obj j))) →
    CategoryTheory.IsPreconnected J

theorem CategoryTheory.IsPreconnected.iso_constant E1 #

∀ {J : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} J} [self : CategoryTheory.IsPreconnected J] {α : Type u₁}
  (F : CategoryTheory.Functor J (CategoryTheory.Discrete α)) (j : J),
  Nonempty (F ≅ (CategoryTheory.Functor.const J).obj (F.obj j))

A possibly empty category for which every functor to a discrete category is constant.

class CategoryTheory.IsConnected E1 #

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

We define a connected category as a nonempty category for which every functor to a discrete category is constant.

NB. Some authors include the empty category as connected, we do not. We instead are interested in categories with exactly one 'connected component'.

This allows us to show that the functor X ⨯ - preserves connected limits.

instance CategoryTheory.IsConnected.toIsPreconnected E0 #

∀ {J : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} J} [self : CategoryTheory.IsConnected J],
  CategoryTheory.IsPreconnected J

ctor CategoryTheory.IsConnected.mk E0 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [toIsPreconnected : CategoryTheory.IsPreconnected J]
  [is_nonempty : Nonempty J], CategoryTheory.IsConnected J

instance CategoryTheory.IsConnected.is_nonempty E0 #

∀ {J : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} J} [self : CategoryTheory.IsConnected J], Nonempty J

def CategoryTheory.isoConstant E1 #

{J : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} J] →
    [CategoryTheory.IsPreconnected J] →
      {α : Type u₂} →
        (F : CategoryTheory.Functor J (CategoryTheory.Discrete α)) →
          (j : J) → F ≅ (CategoryTheory.Functor.const J).obj (F.obj j)

If J is connected, any functor F : J ⥤ Discrete α is isomorphic to the constant functor with value F.obj j (for any choice of j).

theorem CategoryTheory.any_functor_const_on_obj E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [CategoryTheory.IsPreconnected J] {α : Type u₂}
  (F : CategoryTheory.Functor J (CategoryTheory.Discrete α)) (j j' : J), F.obj j = F.obj j'

If J is connected, any functor to a discrete category is constant on objects. The converse is given in IsConnected.of_any_functor_const_on_obj.

theorem CategoryTheory.IsPreconnected.of_any_functor_const_on_obj E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J],
  (∀ {α : Type u₁} (F : CategoryTheory.Functor J (CategoryTheory.Discrete α)) (j j' : J), F.obj j = F.obj j') →
    CategoryTheory.IsPreconnected J

If any functor to a discrete category is constant on objects, J is connected. The converse of any_functor_const_on_obj.

instance CategoryTheory.IsPreconnected.prod E0 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {K : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} K]
  [CategoryTheory.IsPreconnected J] [CategoryTheory.IsPreconnected K], CategoryTheory.IsPreconnected (J × K)

instance CategoryTheory.IsConnected.prod E0 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {K : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} K]
  [CategoryTheory.IsConnected J] [CategoryTheory.IsConnected K], CategoryTheory.IsConnected (J × K)

theorem CategoryTheory.IsConnected.of_any_functor_const_on_obj E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [Nonempty J],
  (∀ {α : Type u₁} (F : CategoryTheory.Functor J (CategoryTheory.Discrete α)) (j j' : J), F.obj j = F.obj j') →
    CategoryTheory.IsConnected J

If any functor to a discrete category is constant on objects, J is connected. The converse of any_functor_const_on_obj.

theorem CategoryTheory.constant_of_preserves_morphisms E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [CategoryTheory.IsPreconnected J] {α : Type u₂} (F : J → α),
  (∀ (j₁ j₂ : J) (x : j₁ ⟶ j₂), F j₁ = F j₂) → ∀ (j j' : J), F j = F j'

If J is connected, then given any function F such that the presence of a morphism j₁ ⟶ j₂ implies F j₁ = F j₂, we have that F is constant. This can be thought of as a local-to-global property.

The converse is shown in IsConnected.of_constant_of_preserves_morphisms

theorem CategoryTheory.constant_of_preserves_morphisms' E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [CategoryTheory.IsConnected J] {α : Type u₂} (F : J → α),
  (∀ (j₁ j₂ : J) (x : j₁ ⟶ j₂), F j₁ = F j₂) → ∃ a, ∀ (j : J), F j = a

If J is connected, then given any function F such that the presence of a morphism j₁ ⟶ j₂ implies F j₁ = F j₂, there exists a such that F j = a holds for any j. See constant_of_preserves_morphisms for a different formulation of the fact that F is constant. This can be thought of as a local-to-global property.

The converse is shown in IsConnected.of_constant_of_preserves_morphisms

theorem CategoryTheory.IsPreconnected.of_constant_of_preserves_morphisms E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J],
  (∀ {α : Type u₁} (F : J → α), (∀ {j₁ j₂ : J} (x : j₁ ⟶ j₂), F j₁ = F j₂) → ∀ (j j' : J), F j = F j') →
    CategoryTheory.IsPreconnected J

J is connected if: given any function F : J → α which is constant for any j₁, j₂ for which there is a morphism j₁ ⟶ j₂, then F is constant. This can be thought of as a local-to-global property.

The converse of constant_of_preserves_morphisms.

theorem CategoryTheory.IsConnected.of_constant_of_preserves_morphisms E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [Nonempty J],
  (∀ {α : Type u₁} (F : J → α), (∀ {j₁ j₂ : J} (x : j₁ ⟶ j₂), F j₁ = F j₂) → ∀ (j j' : J), F j = F j') →
    CategoryTheory.IsConnected J

J is connected if: given any function F : J → α which is constant for any j₁, j₂ for which there is a morphism j₁ ⟶ j₂, then F is constant. This can be thought of as a local-to-global property.

The converse of constant_of_preserves_morphisms.

theorem CategoryTheory.induct_on_objects E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [CategoryTheory.IsPreconnected J] (p : Set J) {j₀ : J},
  j₀ ∈ p → (∀ {j₁ j₂ : J} (x : j₁ ⟶ j₂), j₁ ∈ p ↔ j₂ ∈ p) → ∀ (j : J), j ∈ p

An inductive-like property for the objects of a connected category. If the set p is nonempty, and p is closed under morphisms of J, then p contains all of J.

The converse is given in IsConnected.of_induct.

theorem CategoryTheory.IsConnected.of_induct E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {j₀ : J},
  (∀ (p : Set J), j₀ ∈ p → (∀ {j₁ j₂ : J} (x : j₁ ⟶ j₂), j₁ ∈ p ↔ j₂ ∈ p) → ∀ (j : J), j ∈ p) →
    CategoryTheory.IsConnected J

If any maximal connected component containing some element j₀ of J is all of J, then J is connected.

The converse of induct_on_objects.

instance CategoryTheory.instIsConnectedULiftHomULift E0 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [hc : CategoryTheory.IsConnected J],
  CategoryTheory.IsConnected (CategoryTheory.ULiftHom (ULift.{u₂, u₁} J))

Lifting the universe level of morphisms and objects preserves connectedness.

theorem CategoryTheory.isPreconnected_induction E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [CategoryTheory.IsPreconnected J] (Z : J → Sort u_1)
  (h₁ : {j₁ j₂ : J} → (j₁ ⟶ j₂) → Z j₁ → Z j₂) (h₂ : {j₁ j₂ : J} → (j₁ ⟶ j₂) → Z j₂ → Z j₁) {j₀ : J} (x : Z j₀) (j : J),
  Nonempty (Z j)

Another induction principle for IsPreconnected J: given a type family Z : J → Sort* and a rule for transporting in both directions along a morphism in J, we can transport an x : Z j₀ to a point in Z j for any j.

theorem CategoryTheory.isPreconnected_of_equivalent E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {K : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} K]
  [CategoryTheory.IsPreconnected J] (e : J ≌ K), CategoryTheory.IsPreconnected K

If J and K are equivalent, then if J is preconnected then K is as well.

theorem CategoryTheory.isPreconnected_iff_of_equivalence E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {K : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} K]
  (e : J ≌ K), CategoryTheory.IsPreconnected J ↔ CategoryTheory.IsPreconnected K

theorem CategoryTheory.isConnected_of_equivalent E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {K : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} K]
  (e : J ≌ K) [CategoryTheory.IsConnected J], CategoryTheory.IsConnected K

If J and K are equivalent, then if J is connected then K is as well.

theorem CategoryTheory.isConnected_iff_of_equivalence E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {K : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} K]
  (e : J ≌ K), CategoryTheory.IsConnected J ↔ CategoryTheory.IsConnected K

instance CategoryTheory.isPreconnected_op E0 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [CategoryTheory.IsPreconnected J],
  CategoryTheory.IsPreconnected Jᵒᵖ

If J is preconnected, then Jᵒᵖ is preconnected as well.

instance CategoryTheory.isConnected_op E0 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [CategoryTheory.IsConnected J],
  CategoryTheory.IsConnected Jᵒᵖ

If J is connected, then Jᵒᵖ is connected as well.

theorem CategoryTheory.isPreconnected_of_isPreconnected_op E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [CategoryTheory.IsPreconnected Jᵒᵖ],
  CategoryTheory.IsPreconnected J

theorem CategoryTheory.isConnected_of_isConnected_op E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [CategoryTheory.IsConnected Jᵒᵖ],
  CategoryTheory.IsConnected J

theorem CategoryTheory.isConnected_op_iff_isConnected E0 #

∀ (J : Type u₁) [inst : CategoryTheory.Category.{v₁, u₁} J],
  CategoryTheory.IsConnected Jᵒᵖ ↔ CategoryTheory.IsConnected J

def CategoryTheory.Zag E1 #

{J : Type u₁} → [CategoryTheory.Category.{v₁, u₁} J] → J → J → Prop

j₁ and j₂ are related by Zag if there is a morphism between them.

theorem CategoryTheory.Zag.refl E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] (X : J), CategoryTheory.Zag X X

instance CategoryTheory.zag_symm E0 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J], Std.Symm CategoryTheory.Zag

theorem CategoryTheory.Zag.symm E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {j₁ j₂ : J},
  CategoryTheory.Zag j₁ j₂ → CategoryTheory.Zag j₂ j₁

theorem CategoryTheory.Zag.of_hom E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {j₁ j₂ : J} (f : j₁ ⟶ j₂), CategoryTheory.Zag j₁ j₂

theorem CategoryTheory.Zag.of_inv E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {j₁ j₂ : J} (f : j₂ ⟶ j₁), CategoryTheory.Zag j₁ j₂

def CategoryTheory.Zigzag E1 #

{J : Type u₁} → [CategoryTheory.Category.{v₁, u₁} J] → J → J → Prop

j₁ and j₂ are related by Zigzag if there is a chain of morphisms from j₁ to j₂, with backward morphisms allowed.

instance CategoryTheory.zigzag_symm E0 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J], Std.Symm CategoryTheory.Zigzag

theorem CategoryTheory.zigzag_equivalence E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J], Equivalence CategoryTheory.Zigzag

theorem CategoryTheory.Zigzag.refl E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] (X : J), CategoryTheory.Zigzag X X

theorem CategoryTheory.Zigzag.symm E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {j₁ j₂ : J},
  CategoryTheory.Zigzag j₁ j₂ → CategoryTheory.Zigzag j₂ j₁

theorem CategoryTheory.Zigzag.trans E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {j₁ j₂ j₃ : J},
  CategoryTheory.Zigzag j₁ j₂ → CategoryTheory.Zigzag j₂ j₃ → CategoryTheory.Zigzag j₁ j₃

instance CategoryTheory.instTransZigzag E0 #

{J : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} J] →
    Trans (fun x1 x2 ↦ CategoryTheory.Zigzag x1 x2) (fun x1 x2 ↦ CategoryTheory.Zigzag x1 x2) fun x1 x2 ↦
      CategoryTheory.Zigzag x1 x2

theorem CategoryTheory.Zigzag.of_zag E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {j₁ j₂ : J},
  CategoryTheory.Zag j₁ j₂ → CategoryTheory.Zigzag j₁ j₂

theorem CategoryTheory.Zigzag.of_hom E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {j₁ j₂ : J} (f : j₁ ⟶ j₂), CategoryTheory.Zigzag j₁ j₂

theorem CategoryTheory.Zigzag.of_inv E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {j₁ j₂ : J} (f : j₂ ⟶ j₁), CategoryTheory.Zigzag j₁ j₂

theorem CategoryTheory.Zigzag.of_zag_trans E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {j₁ j₂ j₃ : J},
  CategoryTheory.Zag j₁ j₂ → CategoryTheory.Zag j₂ j₃ → CategoryTheory.Zigzag j₁ j₃

instance CategoryTheory.instTransZagZigzag E0 #

{J : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} J] →
    Trans (fun x1 x2 ↦ CategoryTheory.Zag x1 x2) (fun x1 x2 ↦ CategoryTheory.Zigzag x1 x2) fun x1 x2 ↦
      CategoryTheory.Zigzag x1 x2

instance CategoryTheory.instTransZigzagZag E0 #

{J : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} J] →
    Trans (fun x1 x2 ↦ CategoryTheory.Zigzag x1 x2) (fun x1 x2 ↦ CategoryTheory.Zag x1 x2) fun x1 x2 ↦
      CategoryTheory.Zigzag x1 x2

instance CategoryTheory.instTransZagZigzag_1 E0 #

{J : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} J] →
    Trans (fun x1 x2 ↦ CategoryTheory.Zag x1 x2) (fun x1 x2 ↦ CategoryTheory.Zag x1 x2) fun x1 x2 ↦
      CategoryTheory.Zigzag x1 x2

theorem CategoryTheory.Zigzag.of_hom_hom E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {j₁ j₂ j₃ : J} (f₁₂ : j₁ ⟶ j₂) (f₂₃ : j₂ ⟶ j₃),
  CategoryTheory.Zigzag j₁ j₃

theorem CategoryTheory.Zigzag.of_hom_inv E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {j₁ j₂ j₃ : J} (f₁₂ : j₁ ⟶ j₂) (f₃₂ : j₃ ⟶ j₂),
  CategoryTheory.Zigzag j₁ j₃

theorem CategoryTheory.Zigzag.of_inv_hom E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {j₁ j₂ j₃ : J} (f₂₁ : j₂ ⟶ j₁) (f₂₃ : j₂ ⟶ j₃),
  CategoryTheory.Zigzag j₁ j₃

theorem CategoryTheory.Zigzag.of_inv_inv E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {j₁ j₂ j₃ : J} (f₂₁ : j₂ ⟶ j₁) (f₃₂ : j₃ ⟶ j₂),
  CategoryTheory.Zigzag j₁ j₃

def CategoryTheory.Zigzag.setoid E1 #

(J : Type u₂) → [CategoryTheory.Category.{v₁, u₂} J] → Setoid J

The setoid given by the equivalence relation Zigzag. A quotient for this setoid is a connected component of the category.

theorem CategoryTheory.zigzag_prefunctor_obj_of_zigzag E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {K : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} K]
  (F : J ⥤q K) {j₁ j₂ : J}, CategoryTheory.Zigzag j₁ j₂ → CategoryTheory.Zigzag (F.obj j₁) (F.obj j₂)

If there is a zigzag from j₁ to j₂, then there is a zigzag from F j₁ to F j₂ as long as F is a prefunctor.

theorem CategoryTheory.zigzag_obj_of_zigzag E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {K : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} K]
  (F : CategoryTheory.Functor J K) {j₁ j₂ : J},
  CategoryTheory.Zigzag j₁ j₂ → CategoryTheory.Zigzag (F.obj j₁) (F.obj j₂)

If there is a zigzag from j₁ to j₂, then there is a zigzag from F j₁ to F j₂ as long as F is a functor.

theorem CategoryTheory.zag_of_zag_obj E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {K : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} K]
  (F : CategoryTheory.Functor J K) [F.Full] {j₁ j₂ : J},
  CategoryTheory.Zag (F.obj j₁) (F.obj j₂) → CategoryTheory.Zag j₁ j₂

theorem CategoryTheory.equiv_relation E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [CategoryTheory.IsPreconnected J] (r : J → J → Prop),
  Equivalence r → (∀ {j₁ j₂ : J} (x : j₁ ⟶ j₂), r j₁ j₂) → ∀ (j₁ j₂ : J), r j₁ j₂

Any equivalence relation containing (⟶) holds for all pairs of a connected category.

theorem CategoryTheory.isPreconnected_zigzag E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [CategoryTheory.IsPreconnected J] (j₁ j₂ : J),
  CategoryTheory.Zigzag j₁ j₂

In a connected category, any two objects are related by Zigzag.

theorem CategoryTheory.zigzag_isPreconnected E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J],
  (∀ (j₁ j₂ : J), CategoryTheory.Zigzag j₁ j₂) → CategoryTheory.IsPreconnected J

theorem CategoryTheory.zigzag_isConnected E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [Nonempty J],
  (∀ (j₁ j₂ : J), CategoryTheory.Zigzag j₁ j₂) → CategoryTheory.IsConnected J

If any two objects in a nonempty category are related by Zigzag, the category is connected.

theorem CategoryTheory.exists_zigzag' E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [CategoryTheory.IsConnected J] (j₁ j₂ : J),
  ∃ l, List.IsChain CategoryTheory.Zag (j₁ :: l) ∧ (j₁ :: l).getLast ⋯ = j₂

theorem CategoryTheory.isPreconnected_of_zigzag E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J],
  (∀ (j₁ j₂ : J), ∃ l, List.IsChain CategoryTheory.Zag (j₁ :: l) ∧ (j₁ :: l).getLast ⋯ = j₂) →
    CategoryTheory.IsPreconnected J

If any two objects in a nonempty category are linked by a sequence of (potentially reversed) morphisms, then J is connected.

The converse of exists_zigzag'.

theorem CategoryTheory.isConnected_of_zigzag E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [Nonempty J],
  (∀ (j₁ j₂ : J), ∃ l, List.IsChain CategoryTheory.Zag (j₁ :: l) ∧ (j₁ :: l).getLast ⋯ = j₂) →
    CategoryTheory.IsConnected J

If any two objects in a nonempty category are linked by a sequence of (potentially reversed) morphisms, then J is connected.

The converse of exists_zigzag'.

def CategoryTheory.discreteIsConnectedEquivPUnit E1 #

{α : Type u₁} → [CategoryTheory.IsConnected (CategoryTheory.Discrete α)] → α ≃ PUnit.{u₁ + 1}

If Discrete α is connected, then α is (type-)equivalent to PUnit.

theorem CategoryTheory.nat_trans_from_is_connected E1 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {C : Type w₂} [inst_1 : CategoryTheory.Category.{w₁, w₂} C]
  [CategoryTheory.IsPreconnected J] {X Y : C}
  (α : (CategoryTheory.Functor.const J).obj X ⟶ (CategoryTheory.Functor.const J).obj Y) (j j' : J), α.app j = α.app j'

For objects X Y : C, any natural transformation α : const X ⟶ const Y from a connected category must be constant. This is the key property of connected categories which we use to establish properties about limits.

instance CategoryTheory.instFullFunctorConstOfIsConnected E0 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] {C : Type w₂} [inst_1 : CategoryTheory.Category.{w₁, w₂} C]
  [CategoryTheory.IsConnected J], (CategoryTheory.Functor.const J).Full

instance CategoryTheory.nonempty_hom_of_preconnected_groupoid E0 #

∀ {G : Type u_1} [inst : CategoryTheory.Groupoid G] [CategoryTheory.IsPreconnected G] (x y : G), Nonempty (x ⟶ y)

instance CategoryTheory.isPreconnected_of_subsingleton E0 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [Subsingleton J], CategoryTheory.IsPreconnected J

instance CategoryTheory.isConnected_of_nonempty_and_subsingleton E0 #

∀ {J : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} J] [Nonempty J] [Subsingleton J], CategoryTheory.IsConnected J

Deprecated aliases

NameNew nameSince
CategoryTheory.zag_symmetricCategoryTheory.zag_symm2026-06-10
CategoryTheory.zigzag_symmetricCategoryTheory.zigzag_symm2026-06-10