Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Four Equivalent Versions of Non-Abelian Gerbes

Definition
QAlgorithms_Papers_Independent_Bridge50_P06

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

prove2quantum

The objects the formalized statements of Four Equivalent Versions of Non-Abelian Gerbes (arXiv:1103.4815) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • LocallyFullyFaithful: Full faithfulness on each Hom-category means bijectivity on every set of 2-morphisms, not essential surjectivity on 1-morphisms (Appendix B, PDF p. 60).
  • ChosenLifts: The two families of chosen lifts in Lemma B.1 (PDF pp. 59--60). objectComparison includes an adjoint inverse and the zigzag identities. No pseudofunctor laws or compatibility between the chosen lifts are assumed.
  • conjugatedArrow: The specific conjugated arrow used to construct G in Lemma B.1, PDF p. 60: tilde(g) = (xi_Y2 composed with g) composed with xi_Y1 inverse. Lean's composition is written from left to right.
  • inverseArrow: The prescribed underlying arrow of the inverse pseudofunctor (PDF p. 60). This is computed from the chosen lifts; it is not an independent inverse.
  • inverseCounitComponent: The prescribed object component of b : G composed with F to id_C in the construction of Lemma B.1 (PDF p. 61).
  • identityChosenLifts: Identity-pseudofunctor lift data, a sanity instance of B.1's hypotheses. It is defined for arbitrary bicategories, including those with noninvertible 2-morphisms and those with no objects.
Definition code
import Mathlib.CategoryTheory.Bicategory.Adjunction.Basic
import Mathlib.CategoryTheory.Bicategory.FunctorBicategory.Pseudo

/-!
Statements from Nikolaus--Waldorf, arXiv:1103.4815v3.
The geometric nodes deferred by this draft are listed in the assigned unit's HARD.md.
-/

namespace QAlgorithms.Papers.Independent.Bridge50.P06

open CategoryTheory
open scoped CategoryTheory.Bicategory CategoryTheory.Pseudofunctor.StrongTrans

universe uC uD vC vD wC wD

variable {C : Type uC} [Bicategory.{wC, vC} C]
variable {D : Type uD} [Bicategory.{wD, vD} D]

/-- Full faithfulness on each Hom-category means bijectivity on every set of
2-morphisms, not essential surjectivity on 1-morphisms (Appendix B, PDF p. 60). -/
def LocallyFullyFaithful (F : Pseudofunctor C D) : Prop :=
  ∀ (X1 X2 : C) (f g : X1 ⟶ X2),
    Function.Bijective (fun (eta : f ⟶ g) => F.map₂ eta)

/-- The two families of chosen lifts in Lemma B.1 (PDF pp. 59--60).
`objectComparison` includes an adjoint inverse and the zigzag identities.
No pseudofunctor laws or compatibility between the chosen lifts are assumed. -/
structure ChosenLifts (F : Pseudofunctor C D) where
  objectLift : D → C
  objectComparison (Y : D) : Bicategory.Equivalence Y (F.obj (objectLift Y))
  morphismLift {X1 X2 : C} (g : F.obj X1 ⟶ F.obj X2) : X1 ⟶ X2
  morphismComparison {X1 X2 : C} (g : F.obj X1 ⟶ F.obj X2) :
    g ≅ F.map (morphismLift g)

/-- The specific conjugated arrow used to construct G in Lemma B.1,
PDF p. 60: tilde(g) = (xi_Y2 composed with g) composed with xi_Y1 inverse.
Lean's composition is written from left to right. -/
def conjugatedArrow {F : Pseudofunctor C D} (L : ChosenLifts F)
    {Y1 Y2 : D} (g : Y1 ⟶ Y2) :
    F.obj (L.objectLift Y1) ⟶ F.obj (L.objectLift Y2) :=
  (L.objectComparison Y1).inv ≫ (g ≫ (L.objectComparison Y2).hom)

/-- The prescribed underlying arrow of the inverse pseudofunctor (PDF p. 60).
This is computed from the chosen lifts; it is not an independent inverse. -/
def inverseArrow {F : Pseudofunctor C D} (L : ChosenLifts F)
    {Y1 Y2 : D} (g : Y1 ⟶ Y2) : L.objectLift Y1 ⟶ L.objectLift Y2 :=
  L.morphismLift (conjugatedArrow L g)

/-- The prescribed object component of b : G composed with F to id_C
in the construction of Lemma B.1 (PDF p. 61). -/
def inverseCounitComponent {F : Pseudofunctor C D} (L : ChosenLifts F)
    (X : C) : L.objectLift (F.obj X) ⟶ X :=
  L.morphismLift (L.objectComparison (F.obj X)).inv

/-- Identity-pseudofunctor lift data, a sanity instance of B.1's hypotheses.
It is defined for arbitrary bicategories, including those with noninvertible
2-morphisms and those with no objects. -/
def identityChosenLifts (C : Type uC) [Bicategory.{wC, vC} C] :
    ChosenLifts (Pseudofunctor.id C) where
  objectLift := fun X => X
  objectComparison := fun X => Bicategory.Equivalence.id X
  morphismLift := fun g => g
  morphismComparison := fun g => Iso.refl g

example (X : C) : (identityChosenLifts C).objectLift X = X := by
  rfl

example {X1 X2 : C} (g : X1 ⟶ X2) :
    (identityChosenLifts C).morphismLift g = g := by
  rfl

example : LocallyFullyFaithful (Pseudofunctor.id C) := by
  intro X1 X2 f g
  exact Function.bijective_id

end QAlgorithms.Papers.Independent.Bridge50.P06
Source
Four Equivalent Versions of Non-Abelian Gerbes, arXiv:1103.4815v3, https://arxiv.org/abs/1103.4815v3
Read-back

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

QAlgorithms.Papers.Independent.Bridge50.P06.ChosenLifts

For bicategories CCC and DDD and a pseudofunctor F:C→DF:C\to DF:C→D, this structure consists of a function s:Ob⁡(D)→Ob⁡(C)s:\operatorname{Ob}(D)\to\operatorname{Ob}(C)s:Ob(D)→Ob(C); for every object YYY of DDD, a chosen equivalence eY:Y≃F(s(Y))e_Y:Y\simeq F(s(Y))eY​:Y≃F(s(Y)), including its forward and inverse 111-morphisms and equivalence data; for every pair of objects X1,X2X_1,X_2X1​,X2​ of CCC and every 111-morphism g:F(X1)→F(X2)g:F(X_1)\to F(X_2)g:F(X1​)→F(X2​), a chosen 111-morphism ℓ(g):X1→X2\ell(g):X_1\to X_2ℓ(g):X1​→X2​; and, for every such ggg, a chosen invertible 222-morphism

g≅F(ℓ(g)).g\cong F(\ell(g)).g≅F(ℓ(g)).

QAlgorithms.Papers.Independent.Bridge50.P06.LocallyFullyFaithful

For bicategories CCC and DDD and a pseudofunctor F:C→DF:C\to DF:C→D, this defines the property that, for every pair of objects X1,X2X_1,X_2X1​,X2​ of CCC and every pair of 111-morphisms f,g:X1→X2f,g:X_1\to X_2f,g:X1​→X2​, the function on 222-morphisms

{η:f⇒g}⟶{α:F(f)⇒F(g)},η⟼F(η)\{\eta:f\Rightarrow g\}\longrightarrow\{\alpha:F(f)\Rightarrow F(g)\}, \qquad \eta\longmapsto F(\eta){η:f⇒g}⟶{α:F(f)⇒F(g)},η⟼F(η)

is bijective. Thus every 222-morphism F(f)⇒F(g)F(f)\Rightarrow F(g)F(f)⇒F(g) is the image of exactly one 222-morphism f⇒gf\Rightarrow gf⇒g. This requirement also applies when either of these sets is empty.

QAlgorithms.Papers.Independent.Bridge50.P06.conjugatedArrow

For bicategories C,DC,DC,D, a pseudofunctor F:C→DF:C\to DF:C→D, and chosen data LLL consisting of object lifts s(Y)s(Y)s(Y), equivalences eY:Y≃F(s(Y))e_Y:Y\simeq F(s(Y))eY​:Y≃F(s(Y)), and lifts ℓ(h):X1→X2\ell(h):X_1\to X_2ℓ(h):X1​→X2​ with invertible 222-morphisms h≅F(ℓ(h))h\cong F(\ell(h))h≅F(ℓ(h)) for every h:F(X1)→F(X2)h:F(X_1)\to F(X_2)h:F(X1​)→F(X2​), this defines, for any objects Y1,Y2Y_1,Y_2Y1​,Y2​ of DDD and any 111-morphism g:Y1→Y2g:Y_1\to Y_2g:Y1​→Y2​, the 111-morphism

eY1−1 ; (g ; eY2):F(s(Y1))⟶F(s(Y2)).e_{Y_1}^{-1}\,;\,\bigl(g\,;\,e_{Y_2}\bigr): F(s(Y_1))\longrightarrow F(s(Y_2)).eY1​−1​;(g;eY2​​):F(s(Y1​))⟶F(s(Y2​)).

Here eY−1e_Y^{-1}eY−1​ denotes the chosen inverse 111-morphism of the equivalence eYe_YeY​, and a ; ba\,;\,ba;b means first aaa, then bbb; the displayed parentheses specify the bracketing of composition.

QAlgorithms.Papers.Independent.Bridge50.P06.identityChosenLifts

For every type CCC in universe uCu_CuC​ equipped with a bicategory structure whose 111-morphism and 222-morphism types have universe levels vCv_CvC​ and wCw_CwC​, respectively, this defines chosen lift data for the identity pseudofunctor on CCC: each object XXX lifts to itself; its comparison equivalence is the identity equivalence X≃XX\simeq XX≃X; every 111-morphism g:X1→X2g:X_1\to X_2g:X1​→X2​ lifts to ggg itself; and its comparison is the identity invertible 222-morphism g≅gg\cong gg≅g. This construction also applies when CCC has no objects.

QAlgorithms.Papers.Independent.Bridge50.P06.inverseArrow

For bicategories C,DC,DC,D, a pseudofunctor F:C→DF:C\to DF:C→D, and chosen data LLL consisting of object lifts s(Y)s(Y)s(Y), equivalences eY:Y≃F(s(Y))e_Y:Y\simeq F(s(Y))eY​:Y≃F(s(Y)), and lifts ℓ(h):X1→X2\ell(h):X_1\to X_2ℓ(h):X1​→X2​ with invertible 222-morphisms h≅F(ℓ(h))h\cong F(\ell(h))h≅F(ℓ(h)) for every h:F(X1)→F(X2)h:F(X_1)\to F(X_2)h:F(X1​)→F(X2​), this defines, for any objects Y1,Y2Y_1,Y_2Y1​,Y2​ of DDD and any 111-morphism g:Y1→Y2g:Y_1\to Y_2g:Y1​→Y2​, the 111-morphism

ℓ ⁣(eY1−1 ; (g ; eY2)):s(Y1)⟶s(Y2).\ell\!\left(e_{Y_1}^{-1}\,;\,\bigl(g\,;\,e_{Y_2}\bigr)\right): s(Y_1)\longrightarrow s(Y_2).ℓ(eY1​−1​;(g;eY2​​)):s(Y1​)⟶s(Y2​).

Here eY−1e_Y^{-1}eY−1​ is the chosen inverse 111-morphism of eYe_YeY​, and composition written with a semicolon proceeds from left to right with the indicated bracketing.

QAlgorithms.Papers.Independent.Bridge50.P06.inverseCounitComponent

For bicategories C,DC,DC,D, a pseudofunctor F:C→DF:C\to DF:C→D, and chosen data LLL consisting of object lifts s(Y)s(Y)s(Y), equivalences eY:Y≃F(s(Y))e_Y:Y\simeq F(s(Y))eY​:Y≃F(s(Y)), and lifts ℓ(h):X1→X2\ell(h):X_1\to X_2ℓ(h):X1​→X2​ with invertible 222-morphisms h≅F(ℓ(h))h\cong F(\ell(h))h≅F(ℓ(h)) for every h:F(X1)→F(X2)h:F(X_1)\to F(X_2)h:F(X1​)→F(X2​), this defines, for every object XXX of CCC, the 111-morphism

ℓ ⁣(eF(X)−1):s(F(X))⟶X.\ell\!\left(e_{F(X)}^{-1}\right):s(F(X))\longrightarrow X.ℓ(eF(X)−1​):s(F(X))⟶X.

The argument of ℓ\ellℓ is the chosen inverse 111-morphism eF(X)−1:F(s(F(X)))→F(X)e_{F(X)}^{-1}:F(s(F(X)))\to F(X)eF(X)−1​:F(s(F(X)))→F(X).

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

    Confirmed by the moderator at approval.

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