Example A.2: monoidal categories as single-object bicategories
OpenQAlgorithms.Papers.Independent.Intake100.P16.monoidalDeloopingLet be a monoidal category with tensor unit , associator , and invertible unitors satisfying the usual coherence laws. There is a bicategory with one object. Its 1-morphisms are the objects of , and its 2-morphisms are the morphisms of . In the paper's composition order,
Horizontal composition is tensor product, vertical composition and identity 2-morphisms are those of , and the unitors are the given monoidal unitors, matched to their source and target. These data satisfy the bicategory axioms. Moreover,
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.
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P16
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
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every type equipped with a category structure and a monoidal category structure, let be the bicategorical opposite of the one-object bicategory associated with , whose 1-morphisms before taking the opposite are objects of and whose 2-morphisms are morphisms of . For a 1-morphism in , write for its underlying object of , and for a 2-morphism , write for its underlying morphism of . Use for composition in the order written, for whiskering, and for the tensor unit. The theorem asserts the conjunction of all the following statements: there exists a bicategory structure on ; every two objects of are equal; for every object , ; for every , , one has ; for every , , , one has
where the right-hand side is the forward monoidal associator; for every , one has and , using the forward unitor 2-morphisms on the left and forward monoidal unitors on the right; for every parallel and , , one has ; for every , one has ; and for every , , , , one has
where is the tensor product of morphisms in . Finally, is a strict bicategory if and only if all the following hold in : for all , ; for all , and ; and
where 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.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.