Chapter 02 — Categorical Language and the van Kampen Theorem
Proofs omitted. Hover over highlighted terms to see their Lean types.
2.1 — Categories
Definition 2.1.1
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.1.1: a category consists of objects, morphism sets C(A, B), identity morphisms id_A, and an associative composition law satisfying the left and right unit laws.
universe u v
open CategoryTheory
recall Category (C : Type u) : Type (max u (v + 1))Definition 2.1.2
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.1.2: a category is small when its objects form a set; in mathlib this is the canonical abbreviation SmallCategory, expressing that the objects and morphisms live in the same universe level.
universe u
open CategoryTheory
recall SmallCategory (C : Type u) : Type (u + 1)Example 2.1.3
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Example 2.1.3: standard examples of categories in mathlib include the category of types with functions, the category of topological spaces with continuous maps, the category of groups with homomorphisms, and the category of abelian groups with homomorphisms. For Type u, the canonical owner is the large-category instance CategoryTheory.types.
universe u
open CategoryTheory
#check (inferInstance : LargeCategory (Type u))2.2 — Functors
Definition 2.2.1
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.2.1: a covariant functor from C to D is the canonical mathlib notion C ⥤ D (equivalently, CategoryTheory.Functor C D), with an object map, a morphism map, and axioms expressing preservation of identity morphisms and composition.
universe v₁ v₂ u₁ u₂
open CategoryTheory
variable (C : Type u₁) [Category.{v₁} C]
variable (D : Type u₂) [Category.{v₂} D]
#check (C ⥤ D)Definition 2.2.2
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.2.2: a contravariant functor from C to D is equivalently a covariant functor from the opposite category Cᵒᵖ to D, so it reverses the direction of morphisms while keeping the same underlying objects.
universe v₁ v₂ u₁ u₂
open CategoryTheory
variable (C : Type u₁) [Category.{v₁} C]
variable (D : Type u₂) [Category.{v₂} D]
#check (Cᵒᵖ ⥤ D)2.3 — Natural Transformations
Definition 2.3.1
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.3.1: a natural transformation from F to G is the canonical mathlib structure CategoryTheory.NatTrans F G, written F ⟶ G, consisting of component morphisms α.app A : F.obj A ⟶ G.obj A for each object A, subject to the naturality condition for every morphism f : A ⟶ B.
universe v₁ v₂ u₁ u₂
open CategoryTheory
variable (C : Type u₁) [Category.{v₁} C]
variable (D : Type u₂) [Category.{v₂} D]
variable (F G : C ⥤ D)
#check (F ⟶ G)Example 2.3.2
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Example 2.3.2: the inclusion of a set S into the underlying set of its free abelian group is the unit natural transformation of the free-forgetful adjunction, hence is natural in S.
universe u
open CategoryTheory
#check (AddCommGrpCat.adj).unitDefinition 2.3.3
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.3.3: the free abelian group functor is left adjoint to the forgetful functor from abelian groups to sets, meaning that morphisms from the free abelian group on a set S to an abelian group A are naturally identified with functions from S to the underlying set of A.
#check AddCommGrpCat.adjDefinition 2.3.4
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.3.4: categories C and D are equivalent via the canonical mathlib notion C ≌ D, which packages a forward functor, an inverse functor, and natural isomorphisms identifying each composite with the corresponding identity functor.
universe v₁ v₂ u₁ u₂
open CategoryTheory
variable (C : Type u₁) [Category.{v₁} C] (D : Type u₂) [Category.{v₂} D]
#check (C ≌ D)2.4 — Homotopy Categories and Homotopy Equivalences
Definition 2.4.1
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.4.1: the category T of based spaces is the under category of the terminal topological space, so its objects are spaces equipped with chosen basepoints and its morphisms are continuous maps preserving those basepoints.
open CategoryTheory Limits
variable (X : TopCat)
#check Under (⊤_ TopCat)Lemma 2.4.2
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Lemma 2.4.2: the fundamental group defines a functor from based spaces to groups.
open CategoryTheory Limits
noncomputable def fundamentalGroupFunctor : Under (⊤_ TopCat) ⥤ GrpCatDefinition 2.4.3
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.4.3: given a homotopy relation on a category C, the homotopy category hC is realized by the quotient category CategoryTheory.Quotient r, which has the same objects as C and morphisms given by homotopy classes of maps.
universe u v
recall CategoryTheory.Quotient (C : Type u) [CategoryTheory.Category.{v} C] (r : HomRel C) :
Type uLemma 2.4.4
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Lemma 2.4.4: the fundamental-group functor on based spaces is homotopy invariant and therefore factors through the homotopy category of based spaces, realized as the quotient by based homotopy.
open CategoryTheory ContinuousMap CategoryTheory.Quotient
def fundamentalGroupFunctorDesc : CategoryTheory.Quotient basedHomotopyRel ⥤ GrpCat :=
lift basedHomotopyRel fundamentalGroupFunctor
(fun _ _ _ _ h ↦ fundamentalGroupFunctor_map_eq_of_based_homotopy h)Definition 2.4.5
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.4.5: a morphism is a homotopy equivalence if it admits a two-sided inverse up to the homotopy relation r. This always becomes an isomorphism after passing to the quotient category CategoryTheory.Quotient r, and the converse holds when r is a congruence.
universe u v
open CategoryTheory
namespace CategoryTheory.HomRel
variable {C : Type u} [Category.{v} C] (r : HomRel C)
def IsHomotopyEquivalence {X Y : C} (f : X ⟶ Y) : Prop :=
∃ g : Y ⟶ X, r (g ≫ f) (𝟙 Y) ∧ r (f ≫ g) (𝟙 X)Proposition 2.4.6
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Proposition 2.4.6: if e : X ≃ₕ Y is an unbased homotopy equivalence, then for every basepoint x : X the induced map e_* : π₁(X, x) → π₁(Y, e x) is an isomorphism of groups.
universe u v
open CategoryTheory
open scoped ContinuousMap
variable {X : Type u} [TopologicalSpace X]
variable {Y : Type v} [TopologicalSpace Y]
def fundamentalGroupMulEquivOfHomotopyEquiv
(e : X ≃ₕ Y)
(x : X) :
FundamentalGroup X x ≃* FundamentalGroup Y (e x) :=
let F := (FundamentalGroupoidFunctor.equivOfHomotopyEquiv e).functor
let hF : F.FullyFaithful := .ofFullyFaithful F
hF.mulEquivEnd (FundamentalGroupoid.mk x)Corollary 2.4.7
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Corollary 2.4.7: a contractible space has trivial fundamental group at every basepoint.
universe u
variable {X : Type u} [TopologicalSpace X] [ContractibleSpace X]
theorem fundamentalGroup_subsingleton_of_contractible (x : X) :
Subsingleton (FundamentalGroup X x)2.5 — The Fundamental Groupoid
Definition 2.5.1
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.5.1: the fundamental groupoid Π(X) is the canonical groupoid πₓ (TopCat.of X), whose objects are the points of X and whose morphisms are endpoint-fixed homotopy classes of paths.
universe u
open CategoryTheory FundamentalGroupoid
open scoped FundamentalGroupoid
variable (X : Type u) [TopologicalSpace X]
variable {X} {x y : TopCat.of X}
#check (πₓ (TopCat.of X))Definition 2.5.2
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.5.2: a groupoid is the canonical structure Groupoid C, namely a category in which every morphism is an isomorphism; a group is realized as the corresponding one-object groupoid SingleObj G.
universe u v
open CategoryTheory
recall Groupoid (C : Type u) : Type (max u (v + 1))Lemma 2.5.3
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Lemma 2.5.3 (1): for a topological space X, the fundamental groupoid πₓ (TopCat.of X) carries the canonical groupoid structure whose inverses are represented by path reversal.
universe u
open CategoryTheory
open scoped FundamentalGroupoid
variable (X : Type u) [TopologicalSpace X]
#check (inferInstance : Groupoid (πₓ (TopCat.of X)))Definition 2.5.4
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.5.4: a skeleton of a category C is expressed by the canonical predicate IsSkeletonOf F, saying that F : D ⥤ C exhibits D as a skeletal full subcategory of C, equivalently one containing exactly one object from each isomorphism class of objects of C.
universe v₁ v₂ u₁ u₂
open CategoryTheory
variable (C : Type u₁) [Category.{v₁} C]
variable (D : Type u₂) [Category.{v₂} D]
recall IsSkeletonOf (F : D ⥤ C) : PropLemma 2.5.5
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Lemma 2.5.5: if J : sk C ⥤ C exhibits sk C as a skeleton of C, then the functor J is an equivalence of categories.
universe v₁ v₂ u₁ u₂
open CategoryTheory
variable (C : Type u₁) [Category.{v₁} C]
variable (skC : Type u₂) [Category.{v₂} skC]
recall IsSkeletonOf.eqv (J : skC ⥤ C) (hJ : IsSkeletonOf C skC J) : J.IsEquivalenceDefinition 2.5.6
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.5.6: the canonical notion of a connected category is CategoryTheory.IsConnected; in a nonempty category this is equivalent to saying that any two objects are linked by a zigzag of morphisms, and for a groupoid it is equivalent to saying that any two objects are isomorphic.
universe v u
open CategoryTheory
recall CategoryTheory.IsConnected (J : Type u) [Category.{v} J] : PropProposition 2.5.7
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Proposition 2.5.7: if X is path connected, then for each basepoint x, the inclusion of π₁(X,x) viewed as a one-object category into the fundamental groupoid Π(X) is an equivalence of categories.
universe u
open CategoryTheory
open scoped FundamentalGroupoid
variable {X : Type u} [TopologicalSpace X]
theorem fundamental_group_inclusion_is_equivalence (x : X) [PathConnectedSpace X] :
Functor.IsEquivalence (SingleObj.functor (MonoidHom.id (FundamentalGroup X x)))2.6 — Limits and Colimits
Definition 2.6.1
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.6.1: for a small category D and a category C, a D-shaped diagram in C is just a covariant functor as in Definition 2.2.1, namely the canonical functor type D ⥤ C (equivalently, CategoryTheory.Functor D C).
universe v u₁ u₂
open CategoryTheory
variable (D : Type u₁) [SmallCategory D]
variable (C : Type u₂) [Category.{v} C]
#check (D ⥤ C)Definition 2.6.2
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.6.2: a morphism of D-shaped diagrams is the canonical natural transformation between functors F G : D ⥤ C, namely F ⟶ G; for a fixed object X : C, the constant diagram is the functor sending every object of D to X and every morphism to 𝟙 X.
universe v₁ v₂ u₁ u₂
open CategoryTheory
variable (D : Type u₁) [Category.{v₁} D]
variable (C : Type u₂) [Category.{v₂} C]
variable (F G : D ⥤ C)
variable (X : C)
#check (F ⟶ G)Definition 2.6.3
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.6.3: the colimit of a diagram F is the canonical object colimit F of C.
universe v u₁ u₂
open CategoryTheory Limits
variable (D : Type u₁) [Category.{v} D]
variable (C : Type u₂) [Category.{v} C]
variable (F : D ⥤ C)
variable [HasColimit F]
#check (colimit F : C)Definition 2.6.4
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.6.4: the limit of a diagram F is the canonical object limit F of C.
universe v u₁ u₂
open CategoryTheory Limits
variable (D : Type u₁) [Category.{v} D]
variable (C : Type u₂) [Category.{v} C]
variable (F : D ⥤ C)
variable [HasLimit F]
#check (limit F : C)Example 2.6.5
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Example 2.6.5: when a diagram is indexed by a discrete type ι, the existence of its colimit is expressed by the canonical coproduct class HasCoproduct f.
universe v u₁ u₂
open CategoryTheory CategoryTheory.Limits
variable {ι : Type u₁} {C : Type u₂} [Category.{v} C] (f : ι → C)
#check (HasCoproduct f : Prop)Example 2.6.6
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Example 2.6.6: for a diagram shape Y ← X → Z, the corresponding colimit is a pushout; for a parallel pair it is a coequalizer, and reversing the arrows gives pullbacks and equalizers.
universe v u
open CategoryTheory CategoryTheory.Limits
variable {C : Type u} [Category.{v} C]
variable {X Y Z : C}
recall pushout.isColimit (f : X ⟶ Y) (g : X ⟶ Z) [HasPushout f g] :
IsColimit (pushout.cocone f g)Definition 2.6.7
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.6.7: a category is cocomplete when it has all colimits, expressed by the canonical abbreviation HasColimits.
universe v u
open CategoryTheory Limits
recall HasColimits (C : Type u) [Category.{v} C] : PropRemark 2.6.8
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Remark 2.6.8: the category of sets is complete and cocomplete, via the canonical instances HasLimits (Type u) and HasColimits (Type u).
universe u
open CategoryTheory Limits
#check (inferInstance : HasLimits (Type u))2.7 — The van Kampen Theorem
Theorem 2.7.1
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Theorem 2.7.1: if O is an open cover of X by path-connected open subsets and O is closed under finite intersections, then the canonical cocone from the diagram U ↦ Π(U) to Π(X) is a colimit cocone.
universe u v
open CategoryTheory CategoryTheory.Limits
open Path.Homotopic.Quotient
open TopologicalSpace.Opens
open unitInterval
open scoped FundamentalGroupoid
variable {ι : Type v} {X : Type u} [TopologicalSpace X]
def fundamental_groupoid_is_colimit_of_path_connected_open_cover
(O : ι → TopologicalSpace.Opens (TopCat.of X))
(hO : TopologicalSpace.IsOpenCover O)
(hpath : ∀ i, PathConnectedSpace (O i))
(hinter : TopologicalSpace.IsOpenCover.ClosedUnderNonemptyFiniteIntersections O) :
IsColimit (fundamental_groupoid_cover_cocone O) :=
-- Reduce the colimit claim to the unique factorization property isolated above.
IsColimit.ofExistsUnique (fundamental_groupoid_cover_existsUnique O hO hpath hinter)Proof Step 2.7.2
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
ProofStep 2.7.2: if an open cover is closed under finite intersections, then the binary intersection O i ∩ O j of any two members is itself another member of the cover. This is the overlap used in the van Kampen construction to compare the chosen cover elements.
universe u v
open TopologicalSpace.Opens
variable {ι : Type v} {X : Type u} [TopologicalSpace X]
namespace TopologicalSpace.IsOpenCover.ClosedUnderNonemptyFiniteIntersections
theorem exists_eq_inf
{O : ι → Opens X}
(hinter : TopologicalSpace.IsOpenCover.ClosedUnderNonemptyFiniteIntersections O)
{i j : ι} :
∃ k, O k = O i ⊓ O jProof Step 2.7.3
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
ProofStep 2.7.3: every path in X admits a finite subdivision whose successive subpaths lie in members of an open cover O; this is the geometric input showing that compatible data on the fundamental groupoids Π(U) determine a value on each path class in Π(X).
universe u v
open unitInterval
variable {ι : Type v} {X : Type u} [TopologicalSpace X]
theorem path_subdivision_subordinate_to_open_cover
(O : ι → TopologicalSpace.Opens X)
(hO : TopologicalSpace.IsOpenCover O)
{x y : X} (γ : Path x y) :
∃ n : ℕ, ∃ t : Fin (n + 1) → I,
t 0 = 0 ∧
t (Fin.last n) = 1 ∧
StrictMono t ∧
∃ i : Fin n → ι,
∀ k : Fin n, Set.range (γ.truncate (t k.castSucc) (t k.succ)) ⊆ O (i k)Proof Step 2.7.4
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
ProofStep 2.7.4: once a path homotopy square has been subdivided so that each small subsquare lies inside a single cover member, the equality of the two boundary paths is reduced to the endpoint-fixed homotopy relation already valid in that individual fundamental groupoid Π(U). Any functor out of Π(U) therefore identifies the two boundary paths, which is the local relation used in the van Kampen subdivision argument.
universe u v
open CategoryTheory FundamentalGroupoid
open Path.Homotopic.Quotient
open scoped FundamentalGroupoid
variable {X : Type u} [TopologicalSpace X]
theorem functor_map_eq_of_homotopic_paths_in_open
(U : TopologicalSpace.Opens (TopCat.of X))
{C : Type v} [Category C]
(F : πₓ (TopCat.of U) ⥤ C)
{x y : U} {p q : Path x y}
(h : Path.Homotopic p q) :
F.map (fromPath ⟦p⟧) = F.map (fromPath ⟦q⟧)Theorem 2.7.5
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Theorem 2.7.5: if O is an open cover by path-connected open subsets, every member of O contains the common basepoint x, and O is closed under finite intersections, then π₁(X, x) is the colimit of the diagram U ↦ π₁(U, x) in groups. Under these hypotheses, X is automatically path connected, so this is the group-level form of van Kampen obtained from the groupoid colimit theorem and the equivalences π₁(U, x) ≃ Π(U) and π₁(X, x) ≃ Π(X).
universe u v
open CategoryTheory CategoryTheory.Limits
open TopologicalSpace.Opens
open unitInterval
open scoped FundamentalGroupoid
variable {ι : Type v} {X : Type u} [TopologicalSpace X]
local notation "U[" O ", " S "]" => finite_intersection_closed_union O S
def fundamental_group_is_colimit_of_path_connected_open_cover
(O : ι → TopologicalSpace.Opens (TopCat.of X))
(hO : TopologicalSpace.IsOpenCover O)
(x : X) (hx : ∀ i, x ∈ O i)
(hpath : ∀ i, PathConnectedSpace (O i))
(hinter : TopologicalSpace.IsOpenCover.ClosedUnderNonemptyFiniteIntersections O) :
IsColimit (fundamental_group_cover_cocone O x hx)Lemma 2.7.6
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Lemma 2.7.6 is the finite-cover specialization of the canonical group-level van Kampen theorem from Theorem 2.7.5. The owner of the open-cover diagram and its colimit statement is therefore fundamental_group_is_colimit_of_path_connected_open_cover, not a separate finite-cover copy.
#check fundamental_group_is_colimit_of_path_connected_open_coverProof Step 2.7.7
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
ProofStep 2.7.7: for a finite open cover by path-connected open subsets that is closed under finite intersections and contains the common basepoint x, one can choose for each y : X a path from x to y such that whenever y ∈ O i, the chosen path is entirely contained in O i.
universe u v
open unitInterval
variable {ι : Type v} {X : Type u} [TopologicalSpace X]
theorem exists_cover_compatible_basepoint_paths
(O : ι → TopologicalSpace.Opens X)
[Finite ι]
(hO : TopologicalSpace.IsOpenCover O)
(x : X) (hx : ∀ i, x ∈ O i)
(hpath : ∀ i, PathConnectedSpace (O i))
(hinter : TopologicalSpace.IsOpenCover.ClosedUnderNonemptyFiniteIntersections O) :
∃ γ : ∀ y : X, Path x y,
∀ (i : ι) (y : X), y ∈ O i → ∀ t : I, γ y t ∈ O iProof Step 2.7.8
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
ProofStep 2.7.8 is the bridge/view obtained by applying the canonical owner CategoryTheory.Functor.mapEnd to the universal colimit-desc functor hPi.desc S at the object FundamentalGroupoid.mk x. This restricts the universal functor Π(X) ⥤ S.pt to the vertex group π₁(X, x).
universe u v
open CategoryTheory CategoryTheory.Limits
open scoped FundamentalGroupoid
variable {X : Type u} [TopologicalSpace X]
variable {ι : Type v}
variable
(O : ι → TopologicalSpace.Opens (TopCat.of X))
(hPi : IsColimit (fundamental_groupoid_cover_cocone O))
(S : Cocone (fundamental_groupoid_cover_diagram O))
(x : X)
#check (hPi.desc S).mapEnd (FundamentalGroupoid.mk x)Proof Step 2.7.9
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
A finite subcollection of an indexed open cover is closed under nonempty finite intersections if every nonempty finite subfamily has its intersection represented by another member of that same finite subcollection.
universe u v
variable {ι : Type v} {X : Type u} [TopologicalSpace X]
def Finset.IsClosedUnderNonemptyFiniteIntersections
(S : Finset ι) (O : ι → TopologicalSpace.Opens X) : Prop :=
∀ t : Finset ι, ∀ ht : t.Nonempty, (t : Set ι) ⊆ S → ∃ i ∈ S, t.inf' ht O = O iLemma 2.7.10
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Lemma 2.7.10: the colimit of the groups π₁(U_S, x) over nonempty finite intersection-closed subcollections S of the cover is the ambient fundamental group π₁(X, x).
universe u v
open CategoryTheory CategoryTheory.Limits TopologicalSpace.Opens unitInterval
variable {ι : Type v} {X : Type u} [TopologicalSpace X]
local notation "U[" O ", " S "]" => finite_intersection_closed_union O S
def fundamental_group_is_colimit_of_finite_intersection_closed_subcover_unions
(O : ι → TopologicalSpace.Opens (TopCat.of X))
(hO : TopologicalSpace.IsOpenCover O)
(x : X) (hx : ∀ i, x ∈ O i)
(hinter : TopologicalSpace.IsOpenCover.ClosedUnderNonemptyFiniteIntersections O) :
IsColimit (finite_intersection_closed_subcover_fundamental_group_cocone O x hx) :=
IsColimit.ofExistsUnique
(finite_intersection_closed_subcover_fundamental_group_existsUnique O hO x hx hinter)Lemma 2.7.11
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Lemma 2.7.11 is the GrpCat specialization of the canonical Grothendieck-construction comparison isomorphism: taking the fiberwise colimit first and then the colimit over the base is canonically isomorphic to taking the single colimit over all pairs (S, U).
universe v₁ v₂ u₁ u₂
open CategoryTheory CategoryTheory.Limits
variable {C : Type u₁} [Category.{v₁} C]
variable {F : C ⥤ Cat}
variable [∀ S : C, HasColimitsOfShape (F.obj S) GrpCat]
variable [HasColimitsOfShape C GrpCat]
#check
(fun fundamentalGroupDiagram : Grothendieck F ⥤ GrpCat ↦
(colimitFiberwiseColimitIso fundamentalGroupDiagram :
colimit (fiberwiseColimit fundamentalGroupDiagram) ≅
colimit fundamentalGroupDiagram))2.8 — Examples of the van Kampen Theorem
Proposition 2.8.1
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Proposition 2.8.1: if X i is a path-connected family of based spaces and each X i has a contractible neighborhood that contracts to its chosen basepoint, then the canonical homomorphism from the free product of the groups π₁(X i) to the fundamental group of the wedge sum ∐ X is an isomorphism.
universe u v
open CategoryTheory Limits
open unitInterval
open scoped unitInterval
variable {ι : Type v}
theorem wedge_fundamental_group_is_free_product
(X : ι → Under (⊤_ TopCat)) [HasCoproduct X]
[∀ i, PathConnectedSpace (X i).right]
(hV : ∀ i, has_contractible_base_neighborhood (X i)) :
IsIso (GrpCat.ofHom (wedge_fundamental_group_comparison X))Corollary 2.8.2
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Corollary 2.8.2: the canonical map from the free group on one generator for each circle to the fundamental group of the wedge of those circles is bijective.
open CategoryTheory Limits
open unitInterval
open scoped unitInterval
theorem wedge_of_circles_fundamental_group_comparison_bijective (ι : Type 0) :
Function.Bijective (wedge_of_circles_fundamental_group_comparison ι)Remark 2.8.3
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Remark 2.8.3: the compact-surface computation is a roadmap consequence rather than a single new theorem. The formalized inputs are the group-level van Kampen theorem, the identification of wedges with free products on fundamental groups, and the product formula for fundamental groupoids; together with a separate computation of π₁(ℝP²), these inputs compute the fundamental group of any compact surface.
#check fundamental_group_is_colimit_of_path_connected_open_coverLemma 2.8.4
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Lemma 2.8.4: for based spaces X and Y, the projection-induced homomorphism π₁(X × Y) → π₁(X) × π₁(Y) is an isomorphism.
open CategoryTheory
open scoped FundamentalGroupoid
theorem fundamental_group_product_isIso (X Y : Under (⊤_ TopCat)) :
IsIso
(GrpCat.ofHom
(MonoidHom.prod
(FundamentalGroup.map
ContinuousMap.fst
(underTopBasepoint X, underTopBasepoint Y))
(FundamentalGroup.map
ContinuousMap.snd
(underTopBasepoint X, underTopBasepoint Y))))Definition 2.8.5
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Definition 2.8.5: a topological space is simply connected when it is path connected and its fundamental group is trivial; the canonical mathlib owner for this notion is SimplyConnectedSpace.
universe u
recall SimplyConnectedSpace (X : Type u) [TopologicalSpace X] : PropProposition 2.8.6
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Proposition 2.8.6 (1): if X = U ∪ V with U and U ∩ V path connected at the basepoint and V simply connected, then the inclusion-induced map π₁(U,x) → π₁(X,x) is surjective.
universe u
open CategoryTheory CategoryTheory.Limits
open TopologicalSpace.Opens
variable {X : Type u} [TopologicalSpace X]
theorem fundamental_group_left_to_union_surjective
(U V : TopologicalSpace.Opens (TopCat.of X))
(hcover : U ⊔ V = ⊤)
(x : X) (hxU : x ∈ U) (hxV : x ∈ V)
[PathConnectedSpace U]
[PathConnectedSpace ↥(U ⊓ V)]
[SimplyConnectedSpace V] :
Function.Surjective (FundamentalGroup.map (inclusion' U).hom ⟨x, hxU⟩)Problems
Problem 2.9.1
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Problem 2.9.1: a based space admitting the standard genus-2 cell decomposition, equivalently the compact surface obtained by sewing two punctured tori along their boundary circle, has fundamental group the presented group ⟨a1, b1, a2, b2 | [a1,b1][a2,b2] = 1⟩.
universe u
open scoped commutatorElement
variable {X : Type u} [TopologicalSpace X]
variable (U V : TopologicalSpace.Opens (TopCat.of X)) (hcover : U ⊔ V = ⊤)
variable (x : X) (hxU : x ∈ U) (hxV : x ∈ V)
variable
(pi1_U_equiv :
FundamentalGroup ↥U ⟨x, hxU⟩ ≃* FreeGroup GenusTwoSurfaceGenerator)
(pi1_inter_equiv :
FundamentalGroup ↥(U ⊓ V) ⟨x, ⟨hxU, hxV⟩⟩ ≃* FreeGroup Unit)
variable [PathConnectedSpace ↥U] [PathConnectedSpace ↥(U ⊓ V)] [SimplyConnectedSpace V]
variable
(attaching_map_eq :
(pi1_U_equiv.toMonoidHom.comp (fundamental_group_inf_to_left U V x hxU hxV)).comp
pi1_inter_equiv.symm.toMonoidHom =
FreeGroup.lift fun _ : Unit ↦ genus_two_surface_relator)
def genus_two_surface_fundamental_group
: FundamentalGroup X x ≃* genus_two_surface_groupProblem 2.9.2
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Problem 2.9.2: a based space admitting the standard Klein-bottle decomposition, equivalently the quotient (S^1 × I)/(z,0) ∼ (z⁻¹,1), has fundamental group ⟨a, b \mid aba^{-1}b = 1⟩, equivalently ⟨a, b \mid aba^{-1} = b^{-1}⟩.
universe u
open CategoryTheory
open TopologicalSpace.Opens
variable {X : Type u} [TopologicalSpace X]
variable (U V : TopologicalSpace.Opens (TopCat.of X)) (hcover : U ⊔ V = ⊤)
variable (x : X) (hxU : x ∈ U) (hxV : x ∈ V)
variable
(pi1_U_equiv :
FundamentalGroup ↥U ⟨x, hxU⟩ ≃* FreeGroup KleinBottleGenerator)
(pi1_inter_equiv :
FundamentalGroup ↥(U ⊓ V) ⟨x, ⟨hxU, hxV⟩⟩ ≃* FreeGroup Unit)
variable [PathConnectedSpace ↥U] [PathConnectedSpace ↥(U ⊓ V)] [SimplyConnectedSpace V]
variable
(attaching_map_eq :
(pi1_U_equiv.toMonoidHom.comp (fundamental_group_inf_to_left U V x hxU hxV)).comp
pi1_inter_equiv.symm.toMonoidHom =
FreeGroup.lift fun _ : Unit ↦ klein_bottle_relator)
def klein_bottle_fundamental_group :
FundamentalGroup X x ≃* klein_bottle_groupProblem 2.9.3
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Problem 2.9.3: the diagonal map p ↦ (p, p) from S^n to the space of non-antipodal pairs in S^n × S^n is the forward map of a homotopy equivalence.
open scoped unitInterval ContinuousMap TopCat
local notation "V[" n "]" => EuclideanSpace ℝ (Fin (n + 1))
theorem sphere_diagonal_map_homotopy_equiv (n : ℕ) :
∃ e : 𝕊 n ≃ₕ nonantipodal_pair_space n,
e.toFun = sphere_diagonal_map nProblem 2.9.4
Lean contributors (project-level attribution): Ze Yuan, Zichen Wang.
Problem 2.9.4 (1): any category with all coproducts and coequalizers is cocomplete, as expressed by the canonical theorem constructing all colimits from these two classes of colimits.
universe v u
open CategoryTheory Limits
recall has_colimits_of_hasCoequalizers_and_coproducts {C : Type u} [Category.{v} C]
[HasCoproducts.{v} C] [HasCoequalizers C] : HasColimits C