Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

2-Yoneda via evaluation at the identity

Open
QAlgorithms.Papers.Independent.Intake100.P59.cfg_twoYoneda

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

prove2quantum

Let p:D→Cp:D\to Cp:D→C be any category fibered in groupoids and XXX any object of CCC. The representable CFG X‾\underline XX​ is the slice C/XC/XC/X with its domain projection. In Hom⁡CFG(X‾,D)\operatorname{Hom}_{\mathrm{CFG}}(\underline X,D)HomCFG​(X​,D), objects are functors strictly over CCC and arrows are natural transformations whose components project to base identities. Evaluation at the identity is an equivalence of categories:

Θ:Hom⁡CFG(X‾,D)⟶D(X),F⟼F(idX),α⟼αidX.\Theta:\operatorname{Hom}_{\mathrm{CFG}}(\underline X,D)\longrightarrow D(X),\qquad F\longmapsto F(\mathrm{id}_X),\qquad\alpha\longmapsto\alpha_{\mathrm{id}_X}.Θ:HomCFG​(X​,D)⟶D(X),F⟼F(idX​),α⟼αidX​​.

In particular this specific functor is fully faithful and essentially surjective. No descent hypothesis on DDD is needed. This describes maps from representable CFGs intrinsically.

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

/-- Lemma 4.19 (2-Yoneda), PDF pp.23–24: the specified evaluation functor is
fully faithful and essentially surjective for any CFG. No descent or stack
hypothesis is required. Natural transformations in its domain are vertical. -/
theorem cfg_twoYoneda
    {C : Type uC} {D : Type uD} [Category.{vC} C] [Category.{vD} D]
    (p : D ⥤ C) (hp : IsCFG p) (X : C) :
    (yonedaEvaluation p X).IsEquivalence := by sorry

end QAlgorithms.Papers.Independent.Intake100.P59
Source
Orbifolds as stacks?, arXiv:0806.4160v2, PDF p. 23, Lemma 4.19
Read-back

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

For arbitrary categories C,DC,DC,D, a functor p:D→Cp:D\to Cp:D→C, and an object X∈CX\in CX∈C, suppose 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 for all arrows 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) satisfying p(b)∘g=p(a)p(b)\circ g=p(a)p(b)∘g=p(a), there exists 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 evaluation at 1X:X→X1_X:X\to X1X​:X→X is an equivalence of categories from the category of functors F:C/X→DF:C/X\to DF:C/X→D equipped with an equality p∘F=forget⁡Xp\circ F=\operatorname{forget}_Xp∘F=forgetX​ to the fiber of ppp over XXX. Here C/XC/XC/X consists of arrows into XXX, with commuting triangles as morphisms, and forget⁡X\operatorname{forget}_XforgetX​ takes their domains; source morphisms are natural transformations whose component at every a:Y→Xa:Y\to Xa:Y→X maps to 1Y1_Y1Y​. The target fiber consists of objects ddd equipped with an equality p(d)=Xp(d)=Xp(d)=X, with morphisms mapping to 1X1_X1X​, all image comparisons using the given endpoint equalities. Evaluation sends FFF to F(1X)F(1_X)F(1X​) and each natural transformation to its component at 1X1_X1X​. Being an equivalence means that this evaluation induces a bijection on each set of morphisms and that every object of the fiber is isomorphic in the fiber to F(1X)F(1_X)F(1X​) for some such FFF; no assumption that the fiber is inhabited is made.

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