Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Cohomology sets are the hom-sets of the homotopy category: H(X,A)=π0H(X,A)=HoH(X,A)H(X,A) = \pi_0\mathbf{H}(X,A) = \mathrm{Ho}_{\mathbf{H}}(X,A)H(X,A)=π0​H(X,A)=HoH​(X,A)

Proved
NLabCohomology.cohomology_homotopy_category

by LG · Nov 18, 2026 · Mathlib 0df444a (Lean v4.33.1)

algebraic-topologycategory-theorycohomology

Let H\mathbf{H}H be an (∞,1)-category with hom ∞-groupoids H(X,A)\mathbf{H}(X,A)H(X,A), and let H(X,A)=π0 H(X,A)H(X,A) = \pi_0\,\mathbf{H}(X,A)H(X,A)=π0​H(X,A) be the cohomology sets of the general definition. The nLab entry opens the definition with the identification

π0 H(X,A)  =  HoH(X,A),\pi_0\,\mathbf{H}(X,A) \;=\; \mathrm{Ho}_{\mathbf{H}}(X,A),π0​H(X,A)=HoH​(X,A),

where HoH\mathrm{Ho}_{\mathbf{H}}HoH​ is the homotopy category of H\mathbf{H}H: the cohomology sets are the hom-sets of a category whose objects are those of H\mathbf{H}H.

This theorem asserts exactly that structure: there is a composition law on cohomology classes,

H(X,Y)×H(Y,Z)⟶H(X,Z),H(X,Y) \times H(Y,Z) \longrightarrow H(X,Z),H(X,Y)×H(Y,Z)⟶H(X,Z),

such that

  1. the class of the identity cocycle of XXX is a left unit, and the class of the identity cocycle of YYY a right unit;
  2. the composition is associative;
  3. on classes of cocycles it is induced by composition of cocycles: [c]⋅[d]=[c⋅d][c] \cdot [d] = [c \cdot d][c]⋅[d]=[c⋅d].

Together these say that the cohomology sets form the hom-sets of the homotopy category HoH\mathrm{Ho}_{\mathbf{H}}HoH​, which is the defining identification of the general definition of cohomology. The content is the descent of composition to connected components: it must be independent of the chosen cocycle representatives.

Formalization Note. The homotopy category is specified by its category laws on the cohomology sets rather than by a separate construction, so the statement is the existence of the composition together with unit, associativity, and compatibility clauses.

Preamble
import Definitions.Def_NLabCohomology_Cohomology

universe u

open CategoryTheory Simplicial Opposite
Formal statement
namespace NLabCohomology

theorem cohomology_homotopy_category (H : InfinityOneCategory.{u}) :
    ∃ comp : ∀ (X Y Z : H.Obj), Cohomology H X Y → Cohomology H Y Z → Cohomology H X Z,
      (∀ (X Y : H.Obj) (f : Cohomology H X Y),
        comp X X Y (cohomologyClass H (H.id X)) f = f) ∧
      (∀ (X Y : H.Obj) (f : Cohomology H X Y),
        comp X Y Y f (cohomologyClass H (H.id Y)) = f) ∧
      (∀ (W X Y Z : H.Obj) (f : Cohomology H W X) (g : Cohomology H X Y)
        (h : Cohomology H Y Z),
        comp W Y Z (comp W X Y f g) h = comp W X Z f (comp X Y Z g h)) ∧
      (∀ (X Y Z : H.Obj) (c : Cocycle H X Y) (d : Cocycle H Y Z),
        comp X Y Z (cohomologyClass H c) (cohomologyClass H d) =
          cohomologyClass H (H.comp c d)) := by sorry

end NLabCohomology
Source
nLab, 'cohomology', section 3 (Definition), subsection 'General definition'; https://ncatlab.org/nlab/show/cohomology#Definition (page last revised August 11, 2026). Opening paragraph of 'General definition': π₀𝐇(X,A) = Ho_𝐇(X,A).
Human review
  • Endorsed by Shuze Chen · Nov 18, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Nov 18, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me