Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Crossed modules and internal Grp categories: both constructions

Proved
QAlgorithms.Papers.Independent.Intake100.P20.crossedModulesAndInternalCategories

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let ∂:C→G\partial:C\to G∂:C→G, with an automorphic left action ρ:G→Aut⁡(C)\rho:G\to\operatorname{Aut}(C)ρ:G→Aut(C), be a crossed module. It determines an internal Grp category with objects GGG, arrows C⋊ρGC\rtimes_\rho GC⋊ρ​G, and

s(c,g)=g,t(c,g)=∂(c)g,e(g)=(1,g),(d,∂(c)g)∘(c,g)=(dc,g).s(c,g)=g,\quad t(c,g)=\partial(c)g,\quad e(g)=(1,g),\quad (d,\partial(c)g)\circ(c,g)=(dc,g).s(c,g)=g,t(c,g)=∂(c)g,e(g)=(1,g),(d,∂(c)g)∘(c,g)=(dc,g).

Conversely, for an internal Grp category (A,O,s,t,e,∘)(A,O,s,t,e,\circ)(A,O,s,t,e,∘), the actual subgroup K=ker⁡sK=\ker sK=kers, boundary ∂=t∣K\partial=t|_K∂=t∣K​, and action x▹k=e(x)ke(x)−1x\triangleright k=e(x)ke(x)^{-1}x▹k=e(x)ke(x)−1 form a crossed module. The canonical group isomorphism a↦(ae(s(a))−1,s(a))a\mapsto(ae(s(a))^{-1},s(a))a↦(ae(s(a))−1,s(a)) identifies the original category with the category reconstructed from this crossed module: it preserves source, target, identities and every defined composite. In particular the semidirect composition formula is a conclusion of the internal-category axioms.

Starting instead from (C,G,∂,ρ)(C,G,\partial,\rho)(C,G,∂,ρ), the map c↦(c,1)c\mapsto(c,1)c↦(c,1) identifies CCC with the reconstructed source kernel and preserves boundary and action. Thus both constructions recover their original structures through the explicit canonical identifications. This is the source's structural correspondence, without an additional assertion about categories of morphisms.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P20
Formal statement
namespace QAlgorithms.Papers.Independent.Intake100.P20

open CategoryTheory

open scoped TensorProduct Manifold ContDiff

universe u v w z

/-- PDF pp. 9–12: BOTH explicit constructions and reconstruction compatibility.
The forward category has s(c,g)=g, t(c,g)=boundary(c)g, identity(g)=(1,g),
and (d,boundary(c)g) after (c,g) = (dc,g). The reverse crossed module is
the source kernel with restricted target and identity-conjugation action.
The original category is recovered by its computed semidirect coordinates,
including composition as a CONCLUSION of the category/interchange laws.
The original crossed module is recovered by c ↦ (c,1) in the source kernel.
No claim about a category of crossed-module morphisms is silently added. -/
theorem crossedModulesAndInternalCategories :
    (∀ {C : Type u} {G : Type v} [Group C] [Group G]
      (d : C →* G) (r : G →* MulAut C), CrossedModule d r →
      InternalCategoryInGrp (crossedCategoryMaps d r) ∧
      ∃ q : C ≃* (SemidirectProduct.rightHom : SemidirectProduct C G r →* G).ker,
        (∀ c, q c = crossedKernelMap r c) ∧
        (∀ c, (crossedCategoryMaps d r).target (q c).val = d c) ∧
        (∀ g c, (q (r g c)).val =
          (crossedCategoryMaps d r).identity g * (q c).val *
            ((crossedCategoryMaps d r).identity g)⁻¹)) ∧
    (∀ {A : Type u} {O : Type v} [Group A] [Group O]
      (D : CategoryMaps A O) (h : InternalCategoryInGrp D),
      CrossedModule (kernelBoundary D h) (kernelAction D h) ∧
      InternalCategoryInGrp (crossedCategoryMaps (kernelBoundary D h) (kernelAction D h)) ∧
      ∃ q : A ≃* SemidirectProduct (sourceHom D h).ker O (kernelAction D h),
        (∀ a, q a = categoryCoordinates D h a) ∧
        (∀ a, (q a).right = D.source a ∧
          kernelBoundary D h (q a).left * (q a).right = D.target a) ∧
        (∀ x, q (D.identity x) = ⟨1, x⟩) ∧
        (∀ f g, D.target f = D.source g →
          q (D.compose g f) = ⟨(q g).left * (q f).left, (q f).right⟩)) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P20
Source
Group Objects and Internal Categories, arXiv:math/0212065v1, PDF p. 9, §3, Crossed Modules and Internal Categories, pp. 9–12
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

The theorem asserts the conjunction of the following two universally quantified claims. To specify all their requirements, for groups HHH and PPP and total maps s,t:H→Ps,t:H\to Ps,t:H→P, e:P→He:P\to He:P→H, and m:H×H→Hm:H\times H\to Hm:H×H→H, write I(s,t,e,m)\mathcal I(s,t,e,m)I(s,t,e,m) for the following explicit collection of conditions: for every x∈Px\in Px∈P, s(e(x))=xs(e(x))=xs(e(x))=x and t(e(x))=xt(e(x))=xt(e(x))=x; for every f,g∈Hf,g\in Hf,g∈H with t(f)=s(g)t(f)=s(g)t(f)=s(g), s(m(g,f))=s(f)s(m(g,f))=s(f)s(m(g,f))=s(f) and t(m(g,f))=t(g)t(m(g,f))=t(g)t(m(g,f))=t(g); for every f∈Hf\in Hf∈H, m(e(t(f)),f)=fm(e(t(f)),f)=fm(e(t(f)),f)=f and m(f,e(s(f)))=fm(f,e(s(f)))=fm(f,e(s(f)))=f; for every f,g,h∈Hf,g,h\in Hf,g,h∈H with t(f)=s(g)t(f)=s(g)t(f)=s(g) and t(g)=s(h)t(g)=s(h)t(g)=s(h), m(h,m(g,f))=m(m(h,g),f)m(h,m(g,f))=m(m(h,g),f)m(h,m(g,f))=m(m(h,g),f); the maps s,t,es,t,es,t,e preserve identities and multiplication, meaning s(1H)=t(1H)=1Ps(1_H)=t(1_H)=1_Ps(1H​)=t(1H​)=1P​, e(1P)=1He(1_P)=1_He(1P​)=1H​, s(ab)=s(a)s(b)s(ab)=s(a)s(b)s(ab)=s(a)s(b) and t(ab)=t(a)t(b)t(ab)=t(a)t(b)t(ab)=t(a)t(b) for every a,b∈Ha,b\in Ha,b∈H, and e(xy)=e(x)e(y)e(xy)=e(x)e(y)e(xy)=e(x)e(y) for every x,y∈Px,y\in Px,y∈P; furthermore m(1H,1H)=1Hm(1_H,1_H)=1_Hm(1H​,1H​)=1H​, and, for every f,g,a,b∈Hf,g,a,b\in Hf,g,a,b∈H satisfying t(f)=s(g)t(f)=s(g)t(f)=s(g) and t(a)=s(b)t(a)=s(b)t(a)=s(b), m(gb,fa)=m(g,f)m(b,a)m(gb,fa)=m(g,f)m(b,a)m(gb,fa)=m(g,f)m(b,a). First, for arbitrary groups C,GC,GC,G and group homomorphisms d:C→Gd:C\to Gd:C→G and r:G→Aut⁡(C)r:G\to\operatorname{Aut}(C)r:G→Aut(C), suppose that

d(r(g)(c))=g d(c) g−1(g∈G, c∈C),r(d(c))(c′)=cc′c−1(c,c′∈C).d(r(g)(c))=g\,d(c)\,g^{-1}\quad(g\in G,\ c\in C), \qquad r(d(c))(c')=cc'c^{-1}\quad(c,c'\in C).d(r(g)(c))=gd(c)g−1(g∈G, c∈C),r(d(c))(c′)=cc′c−1(c,c′∈C).

On H=C⋊rGH=C\rtimes_r GH=C⋊r​G, whose multiplication is (c,g)(c′,g′)=(c r(g)(c′),gg′)(c,g)(c',g')=(c\,r(g)(c'),gg')(c,g)(c′,g′)=(cr(g)(c′),gg′), define s(c,g)=gs(c,g)=gs(c,g)=g, t(c,g)=d(c)gt(c,g)=d(c)gt(c,g)=d(c)g, e(g)=(1C,g)e(g)=(1_C,g)e(g)=(1C​,g), and m((c′,g′),(c,g))=(c′c,g)m((c',g'),(c,g))=(c'c,g)m((c′,g′),(c,g))=(c′c,g). Then I(s,t,e,m)\mathcal I(s,t,e,m)I(s,t,e,m) holds, and there exists a group isomorphism q:C→Kq:C\to Kq:C→K, where K=ker⁡(π)K=\ker(\pi)K=ker(π) for π:H→G\pi:H\to Gπ:H→G, π(c,g)=g\pi(c,g)=gπ(c,g)=g, such that, for every c∈Cc\in Cc∈C, q(c)q(c)q(c) is the kernel element with underlying pair (c,1G)(c,1_G)(c,1G​), and t(q(c)‾)=d(c)t(\overline{q(c)})=d(c)t(q(c)​)=d(c); here a bar denotes the underlying element of HHH. In addition, for every g∈Gg\in Gg∈G and c∈Cc\in Cc∈C,

q(r(g)(c))‾=(1C,g) q(c)‾ (1C,g)−1.\overline{q(r(g)(c))} =(1_C,g)\,\overline{q(c)}\,(1_C,g)^{-1}.q(r(g)(c))​=(1C​,g)q(c)​(1C​,g)−1.

Second, for arbitrary groups A,OA,OA,O and total maps s,t:A→Os,t:A\to Os,t:A→O, e:O→Ae:O\to Ae:O→A, and m:A×A→Am:A\times A\to Am:A×A→A, suppose that I(s,t,e,m)\mathcal I(s,t,e,m)I(s,t,e,m) holds. Let K={a∈A:s(a)=1O}K=\{a\in A:s(a)=1_O\}K={a∈A:s(a)=1O​}, with its inherited group structure, let ∂:K→O\partial:K\to O∂:K→O be the group homomorphism ∂(k)=t(kˉ)\partial(k)=t(\bar k)∂(k)=t(kˉ), and let ρ:O→Aut⁡(K)\rho:O\to\operatorname{Aut}(K)ρ:O→Aut(K) be the group homomorphism whose action is conjugation by e(x)e(x)e(x), so that ρ(x)(k)‾=e(x)kˉe(x)−1\overline{\rho(x)(k)}=e(x)\bar k e(x)^{-1}ρ(x)(k)​=e(x)kˉe(x)−1. Then, for all x∈Ox\in Ox∈O and k,ℓ∈Kk,\ell\in Kk,ℓ∈K,

∂(ρ(x)(k))=x ∂(k) x−1,ρ(∂(k))(ℓ)=kℓk−1.\partial(\rho(x)(k))=x\,\partial(k)\,x^{-1}, \qquad \rho(\partial(k))(\ell)=k\ell k^{-1}.∂(ρ(x)(k))=x∂(k)x−1,ρ(∂(k))(ℓ)=kℓk−1.

Moreover, on K⋊ρOK\rtimes_\rho OK⋊ρ​O, the maps

s′(k,x)=x,t′(k,x)=∂(k)x,e′(x)=(1K,x),m′((ℓ,y),(k,x))=(ℓk,x)s'(k,x)=x,\qquad t'(k,x)=\partial(k)x,\qquad e'(x)=(1_K,x),\qquad m'((\ell,y),(k,x))=(\ell k,x)s′(k,x)=x,t′(k,x)=∂(k)x,e′(x)=(1K​,x),m′((ℓ,y),(k,x))=(ℓk,x)

satisfy I(s′,t′,e′,m′)\mathcal I(s',t',e',m')I(s′,t′,e′,m′), and there exists a group isomorphism q:A→K⋊ρOq:A\to K\rtimes_\rho Oq:A→K⋊ρ​O such that, for every a∈Aa\in Aa∈A,

q(a)=(a e(s(a))−1, s(a)),q(a)=\bigl(a\,e(s(a))^{-1},\,s(a)\bigr),q(a)=(ae(s(a))−1,s(a)),

where the first coordinate is regarded as an element of KKK. Writing q(a)=(ka,xa)q(a)=(k_a,x_a)q(a)=(ka​,xa​), this isomorphism also satisfies xa=s(a)x_a=s(a)xa​=s(a) and ∂(ka)xa=t(a)\partial(k_a)x_a=t(a)∂(ka​)xa​=t(a) for every a∈Aa\in Aa∈A, satisfies q(e(x))=(1K,x)q(e(x))=(1_K,x)q(e(x))=(1K​,x) for every x∈Ox\in Ox∈O, and satisfies

q(m(g,f))=(kgkf,xf)for every f,g∈A with t(f)=s(g).q(m(g,f))=(k_gk_f,x_f) \quad\text{for every }f,g\in A\text{ with }t(f)=s(g).q(m(g,f))=(kg​kf​,xf​)for every f,g∈A with t(f)=s(g).

All groups in both claims may be trivial. The composition maps are defined on every pair of arrows, including pairs whose endpoints do not match; each displayed law with an endpoint-matching hypothesis is required only when that hypothesis holds.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 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