Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example A.2: monoidal categories as single-object bicategories

Open
QAlgorithms.Papers.Independent.Intake100.P16.monoidalDelooping

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

prove2quantum

Let CCC be a monoidal category with tensor unit III, associator α\alphaα, and invertible unitors satisfying the usual coherence laws. There is a bicategory BCBCBC with one object. Its 1-morphisms are the objects of CCC, and its 2-morphisms are the morphisms of CCC. In the paper's composition order,

g∘f=g⊗f,af,g,h=αh,g,f,id∗=I.g\circ f=g\otimes f,\qquad a_{f,g,h}=\alpha_{h,g,f},\qquad \mathrm{id}_*=I.g∘f=g⊗f,af,g,h​=αh,g,f​,id∗​=I.

Horizontal composition is tensor product, vertical composition and identity 2-morphisms are those of CCC, and the unitors are the given monoidal unitors, matched to their source and target. These data satisfy the bicategory axioms. Moreover,

BC is strict⟺C is strict as the specified monoidal category.BC\text{ is strict}\quad\Longleftrightarrow\quad C\text{ is strict as the specified monoidal category}.BC is strict⟺C is strict as the specified monoidal category.

Strictness here requires the tensor to be associative and unital as equalities, and the given associator and unitors to be identity morphisms under those equalities. It does not mean merely equivalence to a strict monoidal category.

This construction translates monoidal categories into the 2-categorical language used for target bicategories.

Formalization Note The 1-cell opposite of Mathlib's monoidal delooping supplies the source order without assuming a braiding. Mathlib's inverse bicategory associator is the paper's forward associator.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P16
Formal statement
namespace QAlgorithms.Papers.Independent.Intake100.P16

open CategoryTheory CategoryTheory.Bicategory CategoryTheory.MonoidalCategory

open scoped CategoryTheory.Pseudofunctor.StrongTrans

universe uS vS wS uT vT wT uC vC

/-- Example A.2, PDF pp.39–40. The specified delooping is a bicategory,
with tensor composition, the source's alpha_{Z,Y,X}, the corresponding
unitors, and the original category's vertical composition and identities.
It is strict exactly when the given monoidal structure is strict.
The inverse Mathlib bicategory associator is the paper's forward associator. -/
theorem monoidalDelooping
    (C : Type uC) [Category.{vC} C] [MonoidalCategory C] :
    Nonempty (Bicategory (PaperDelooping C)) ∧
    (∀ a b : PaperDelooping C, a = b) ∧
    (∀ a : PaperDelooping C, ((𝟙 a : a ⟶ a).unop : C) = 𝟙_ C) ∧
    (∀ {a b c : PaperDelooping C} (f : a ⟶ b) (g : b ⟶ c),
      (f ≫ g).unop = g.unop ⊗ f.unop) ∧
    (∀ {a b c d : PaperDelooping C} (f : a ⟶ b) (g : b ⟶ c) (h : c ⟶ d),
      ((Bicategory.associator f g h).inv).unop2 = (MonoidalCategory.associator h.unop g.unop f.unop).hom) ∧
    (∀ {a b : PaperDelooping C} (f : a ⟶ b),
      ((Bicategory.leftUnitor f).hom).unop2 = (MonoidalCategory.rightUnitor f.unop).hom ∧
      ((Bicategory.rightUnitor f).hom).unop2 = (MonoidalCategory.leftUnitor f.unop).hom) ∧
    (∀ {a b : PaperDelooping C} {f g h : a ⟶ b} (e : f ⟶ g) (z : g ⟶ h),
      (e ≫ z).unop2 = e.unop2 ≫ z.unop2) ∧
    (∀ {a b : PaperDelooping C} (f : a ⟶ b),
      Bicategory.Opposite.Hom2.unop2 (𝟙 f : f ⟶ f) = 𝟙 f.unop) ∧
    (∀ {a b c : PaperDelooping C} {f fnew : a ⟶ b} {g gnew : b ⟶ c}
      (e : f ⟶ fnew) (z : g ⟶ gnew),
      ((e ▷ g) ≫ (fnew ◁ z)).unop2 = z.unop2 ⊗ₘ e.unop2) ∧
    (Bicategory.Strict (PaperDelooping C) ↔ IsStrictMonoidal C) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P16
Source
Local Theory for 2-Functors on Path 2-Groupoids, arXiv:1303.4663v1, PDF p. 39, A.2
Read-back

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

For every type CCC equipped with a category structure and a monoidal category structure, let DDD be the bicategorical opposite of the one-object bicategory associated with CCC, whose 1-morphisms before taking the opposite are objects of CCC and whose 2-morphisms are morphisms of CCC. For a 1-morphism fff in DDD, write fˉ\bar ffˉ​ for its underlying object of CCC, and for a 2-morphism eee, write eˉ\bar eeˉ for its underlying morphism of CCC. Use ;;; for composition in the order written, ◃,▹\triangleleft,\triangleright◃,▹ for whiskering, and III for the tensor unit. The theorem asserts the conjunction of all the following statements: there exists a bicategory structure on DDD; every two objects a,ba,ba,b of DDD are equal; for every object aaa, 1a‾=I\overline{1_a}=I1a​​=I; for every f:a→bf:a\to bf:a→b, g:b→cg:b\to cg:b→c, one has f;g‾=gˉ⊗fˉ\overline{f;g}=\bar g\otimes\bar ff;g​=gˉ​⊗fˉ​; for every f:a→bf:a\to bf:a→b, g:b→cg:b\to cg:b→c, h:c→dh:c\to dh:c→d, one has

(αf,g,hD)−1‾=αhˉ,gˉ,fˉC,\overline{(\alpha^D_{f,g,h})^{-1}} = \alpha^C_{\bar h,\bar g,\bar f},(αf,g,hD​)−1​=αhˉ,gˉ​,fˉ​C​,

where the right-hand side is the forward monoidal associator; for every f:a→bf:a\to bf:a→b, one has λfD‾=ρfˉC\overline{\lambda^D_f}=\rho^C_{\bar f}λfD​​=ρfˉ​C​ and ρfD‾=λfˉC\overline{\rho^D_f}=\lambda^C_{\bar f}ρfD​​=λfˉ​C​, using the forward unitor 2-morphisms on the left and forward monoidal unitors on the right; for every parallel f,g,h:a→bf,g,h:a\to bf,g,h:a→b and e:f⇒ge:f\Rightarrow ge:f⇒g, z:g⇒hz:g\Rightarrow hz:g⇒h, one has e;z‾=eˉ;zˉ\overline{e;z}=\bar e;\bar ze;z​=eˉ;zˉ; for every f:a→bf:a\to bf:a→b, one has 1f‾=1fˉ\overline{1_f}=1_{\bar f}1f​​=1fˉ​​; and for every f,f′:a→bf,f':a\to bf,f′:a→b, g,g′:b→cg,g':b\to cg,g′:b→c, e:f⇒f′e:f\Rightarrow f'e:f⇒f′, z:g⇒g′z:g\Rightarrow g'z:g⇒g′, one has

(e▹g);(f′◃z)‾=zˉ⊗moreˉ,\overline{(e\triangleright g);(f'\triangleleft z)} = \bar z\otimes_{\mathrm{mor}}\bar e,(e▹g);(f′◃z)​=zˉ⊗mor​eˉ,

where ⊗mor\otimes_{\mathrm{mor}}⊗mor​ is the tensor product of morphisms in CCC. Finally, DDD is a strict bicategory if and only if all the following hold in CCC: for all X,Y,ZX,Y,ZX,Y,Z, (X⊗Y)⊗Z=X⊗(Y⊗Z)(X\otimes Y)\otimes Z=X\otimes(Y\otimes Z)(X⊗Y)⊗Z=X⊗(Y⊗Z); for all XXX, I⊗X=XI\otimes X=XI⊗X=X and X⊗I=XX\otimes I=XX⊗I=X; and

αX,Y,ZC≐1(X⊗Y)⊗Z,λXC≐1I⊗X,ρXC≐1X⊗I,\alpha^C_{X,Y,Z}\doteq1_{(X\otimes Y)\otimes Z}, \qquad \lambda^C_X\doteq1_{I\otimes X}, \qquad \rho^C_X\doteq1_{X\otimes I},αX,Y,ZC​≐1(X⊗Y)⊗Z​,λXC​≐1I⊗X​,ρXC​≐1X⊗I​,

where ≐\doteq≐ denotes heterogeneous equality, allowing the compared morphisms to have different types. Every displayed object and morphism is universally quantified over the indicated types, including identity morphisms and coincident objects.

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

    Confirmed by the moderator at approval.

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