Definitions for Four Equivalent Versions of Non-Abelian Gerbes
DefinitionQAlgorithms_Papers_Independent_Bridge50_P06The 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).objectComparisonincludes 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.
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
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Bridge50.P06.ChosenLifts
For bicategories and and a pseudofunctor , this structure consists of a function ; for every object of , a chosen equivalence , including its forward and inverse -morphisms and equivalence data; for every pair of objects of and every -morphism , a chosen -morphism ; and, for every such , a chosen invertible -morphism
QAlgorithms.Papers.Independent.Bridge50.P06.LocallyFullyFaithful
For bicategories and and a pseudofunctor , this defines the property that, for every pair of objects of and every pair of -morphisms , the function on -morphisms
is bijective. Thus every -morphism is the image of exactly one -morphism . This requirement also applies when either of these sets is empty.
QAlgorithms.Papers.Independent.Bridge50.P06.conjugatedArrow
For bicategories , a pseudofunctor , and chosen data consisting of object lifts , equivalences , and lifts with invertible -morphisms for every , this defines, for any objects of and any -morphism , the -morphism
Here denotes the chosen inverse -morphism of the equivalence , and means first , then ; the displayed parentheses specify the bracketing of composition.
QAlgorithms.Papers.Independent.Bridge50.P06.identityChosenLifts
For every type in universe equipped with a bicategory structure whose -morphism and -morphism types have universe levels and , respectively, this defines chosen lift data for the identity pseudofunctor on : each object lifts to itself; its comparison equivalence is the identity equivalence ; every -morphism lifts to itself; and its comparison is the identity invertible -morphism . This construction also applies when has no objects.
QAlgorithms.Papers.Independent.Bridge50.P06.inverseArrow
For bicategories , a pseudofunctor , and chosen data consisting of object lifts , equivalences , and lifts with invertible -morphisms for every , this defines, for any objects of and any -morphism , the -morphism
Here is the chosen inverse -morphism of , and composition written with a semicolon proceeds from left to right with the indicated bracketing.
QAlgorithms.Papers.Independent.Bridge50.P06.inverseCounitComponent
For bicategories , a pseudofunctor , and chosen data consisting of object lifts , equivalences , and lifts with invertible -morphisms for every , this defines, for every object of , the -morphism
The argument of is the chosen inverse -morphism .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.