Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unique compatible pullback isomorphisms and groupoid fibers

Open
QAlgorithms.Papers.Independent.Intake100.P59.cfg_pullbacks_unique_and_fibers_groupoids

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

prove2quantum

Let p:D→Cp:D\to Cp:D→C be a category fibered in groupoids, in the sense of Definition 4.2. Write D(X)D(X)D(X) for its fiber over XXX, whose arrows project to idX\mathrm{id}_XidX​. Let f:Y→Xf:Y\to Xf:Y→X, ξ∈D(X)\xi\in D(X)ξ∈D(X) and ξ1,ξ2∈D(Y)\xi_1,\xi_2\in D(Y)ξ1​,ξ2​∈D(Y), and let hi:ξi→ξh_i:\xi_i\to\xihi​:ξi​→ξ project to fff. There is exactly one isomorphism k:ξ1→ξ2k:\xi_1\to\xi_2k:ξ1​→ξ2​ in D(Y)D(Y)D(Y) with

h2∘k=h1,h1∘k−1=h2.h_2\circ k=h_1,\qquad h_1\circ k^{-1}=h_2.h2​∘k=h1​,h1​∘k−1=h2​.

Moreover every arrow of every fiber D(X)D(X)D(X) is invertible. This identifies pullbacks only through their compatible vertical isomorphism; it does not claim that all isomorphisms between their sources are unique.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P59
Formal statement
namespace QAlgorithms.Papers.Independent.Intake100.P59

open CategoryTheory

universe u v uC vC uD vD uE vE

/-- Remarks 4.6–4.7, PDF p.19: two lifts of the same base arrow have a unique
compatible vertical isomorphism, and every arrow of a fiber is invertible.
The compatibility requirement is part of the uniqueness assertion. -/
theorem cfg_pullbacks_unique_and_fibers_groupoids
    {C : Type uC} {D : Type uD} [Category.{vC} C] [Category.{vD} D]
    (p : D ⥤ C) (hp : IsCFG p) :
    (∀ {Y X : C} (f : Y ⟶ X) (x : p.Fiber X) (y1 y2 : p.Fiber Y)
      (h1 : y1.1 ⟶ x.1) (h2 : y2.1 ⟶ x.1),
      p.IsHomLift f h1 → p.IsHomLift f h2 →
        ∃! e : y1 ≅ y2, e.hom.1 ≫ h2 = h1 ∧ e.inv.1 ≫ h1 = h2) ∧
    (∀ (X : C) (x y : p.Fiber X) (f : x ⟶ y), IsIso f) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P59
Source
Orbifolds as stacks?, arXiv:0806.4160v2, PDF p. 19, remarks4.6-4.7
Read-back

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

For arbitrary categories C,DC,DC,D and a functor p:D→Cp:D\to Cp:D→C, assume that every arrow f:Y→p(x)f:Y\to p(x)f:Y→p(x) admits a lift h:y→xh:y\to xh:y→x with p(y)=Yp(y)=Yp(y)=Y and image fff, and that whenever a:x→za:x\to za:x→z, b:y→zb:y\to zb:y→z, and g:p(x)→p(y)g:p(x)\to p(y)g:p(x)→p(y) satisfy p(b)∘g=p(a)p(b)\circ g=p(a)p(b)∘g=p(a), there is exactly one k:x→yk:x\to yk:x→y with p(k)=gp(k)=gp(k)=g and b∘k=ab\circ k=ab∘k=a. Then both of the following hold. For every Y,X∈CY,X\in CY,X∈C, arrow f:Y→Xf:Y\to Xf:Y→X, object xxx of the fiber over XXX, objects y1,y2y_1,y_2y1​,y2​ of the fiber over YYY, and arrows h1:y1→xh_1:y_1\to xh1​:y1​→x, h2:y2→xh_2:y_2\to xh2​:y2​→x in DDD both lying over fff, there exists exactly one isomorphism e:y1≅y2e:y_1\cong y_2e:y1​≅y2​ in the fiber over YYY such that h2∘e=h1h_2\circ e=h_1h2​∘e=h1​ and h1∘e−1=h2h_1\circ e^{-1}=h_2h1​∘e−1=h2​, using the underlying arrows in DDD in these equations. Also, for every X∈CX\in CX∈C, every pair x,yx,yx,y of objects of the fiber over XXX, and every fiber morphism a:x→ya:x\to ya:x→y, the morphism aaa is invertible. A fiber object includes an equality p(x)=Xp(x)=Xp(x)=X, and a fiber morphism maps to 1X1_X1X​ after transport along these equalities. The first conclusion is conditional on the two specified lifts; it does not assert that a fiber is inhabited, and conclusions quantified over an empty fiber are vacuous.

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