Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2, p. 7, Definition — strict 2-groups, internal functors and internal natural transformations form the 2-category 2-Grp

Proved
StrictTwoGroups.TwoEquiv.twoGrp_isStrict2Category

by mikedeng1 · Oct 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

2-categoryp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1strict-2-group

Strict 2-groups, their morphisms (functors in the category of groups) and their 2-morphisms (natural transformations in the category of groups), with componentwise composition of morphisms, vertical composition (ϑˉ∙ϑ)(g)=ϑˉg∘′ϑg(\bar\vartheta\bullet\vartheta)(g)=\bar\vartheta g\circ'\vartheta g(ϑˉ∙ϑ)(g)=ϑˉg∘′ϑg, horizontal composition

(ϑ′∘ϑ)(g)=ϑ′(E0g)∘′′F1′(ϑg)(\vartheta'\circ\vartheta)(g)=\vartheta'(E_0g)\circ''F'_1(\vartheta g)(ϑ′∘ϑ)(g)=ϑ′(E0​g)∘′′F1′​(ϑg)

and identity 2-cells g↦i′(F0g)g\mapsto i'(F_0g)g↦i′(F0​g), form a 2-category 2-Grp2\text{-}\mathit{Grp}2-Grp: lawful cells are closed under all compositions and identities, every hom 2-Grp(G,G′)2\text{-}\mathit{Grp}(\mathcal G,\mathcal G')2-Grp(G,G′) is a category, horizontal composition is a functor (identities and interchange law), it is associative, and identities are units.

This is the source 2-category of the 2-equivalence of §6.

Formalization Note IsStrict2Category twoGrp quantifies over lawful objects, 1-cells and 2-cells only. Compositions are written diagrammatically.

Differences from the source:

  • encoding: 2-categories given by their cells, compositions and identities; morphisms and 2-morphisms are group morphisms / maps with their source and target → raw data (Raw2Cat) with lawfulness predicates IsOb, Is1, Is2, every law quantified over lawful cells only; 2-cells typed by their objects with the boundary 1-cells as explicit arguments; cells are plain functions and "is a group morphism" is a clause of Is1 / Is2; reason: changes no instance: the lawful objects, 1-cells and 2-cells are exactly the paper's, and nothing is asserted about the others.
  • encoding: applicative composition (γ′ ∘ γ, η′ ∘ η, E ∘ F) → diagrammatic comp1 f g, vcomp, hcomp and Raw2Functor.comp ("first, then second"); reason: notation only; every composite is the same map as on the page.
  • encoding: composition ∘ : G1 s×t G1 → G1 of a strict 2-group → total function comp : G1 → G1 → G1 with every axiom stated on composable pairs; reason: values off the pullback are never constrained or used.
Preamble
import Mathlib
import Definitions.Def_StrictTwoGroups_TwoEquiv_TwoGrp
Formal statement
namespace StrictTwoGroups.TwoEquiv

universe u

/-- §2, p. 7, Definition (with §1, p. 5, Example): strict 2-groups, their morphisms and their
2-morphisms form a 2-category `2-Grp`. -/
theorem twoGrp_isStrict2Category : Raw2Cat.IsStrict2Category twoGrp.{u} := by sorry

end StrictTwoGroups.TwoEquiv
Source
Porst, Strict 2-Groups are Crossed Modules, arXiv:0812.1464v1, p. 7, §2 Definition (2-Grp); p. 5, §1 Example (internal categories form a 2-category)
Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 24, 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