Unbiasing symmetric monoidal categories in Lean
Symmetric monoidal categories in Lean's Mathlib require biased binary tensor products, making higher-arity tensor products and their coherences cumbersome to work with formally.
The authors formalize the unbiasing process for symmetric monoidal categories in Lean 4 within Mathlib. They extend the data of a symmetric monoidal category to a Cat-valued pseudofunctor from the (2,1)-category of spans of finite sets, encoding tensor products of higher arities and their coherences. The construction uses a formalization of Mac Lane's coherence theorem via Piceghello's presentation of free symmetric monoidal categories as symmetric lists, and an encoding of universal formulas via a Kleisli bicategory.
The formalization provides a complete unbiasing construction within Mathlib's framework, enabling seamless manipulation of higher-arity tensor products with automatically derived coherence isomorphisms.
