Definitions for Orbifolds as stacks?
DefinitionQAlgorithms_Papers_Independent_Intake100_P59The objects the formalized statements of Orbifolds as stacks? (arXiv:0806.4160) are stated in. Each was checked against the paper by a blind read-back and a moderator.
IsCFG: Definition 4.2, PDF p.18: a category fibered in groupoids. Every arrow admits the unique lifting of base triangles required by (2); this is a condition on all arrows, not only a chosen class of cartesian ones.IsHomLiftrecords equality of both projected endpoints and the base arrow.OverFunctor: Definition 4.8, PDF p.19: a functor strictly over the fixed base. The corresponding morphisms below are required to be vertical, as explicitly used in the proof of 2-Yoneda on PDF pp.23–24.yonedaEvaluation: The evaluation functor of Lemma 4.19, PDF p.23. The representable CFG is the sliceOver Xwith the domain projection; the target is the strict fiber, whose arrows lie over the base identity.
import Mathlib
/-!
Statements from Eugene Lerman, *Orbifolds as stacks?*, arXiv:0806.4160v2.
The smooth geometric interfaces not constructed in this module are explicitly
inventoried in this unit's HARD.md and GAPS.json. No surrogate geometry is used.
-/
namespace QAlgorithms.Papers.Independent.Intake100.P59
open CategoryTheory
universe u v uC vC uD vD uE vE
/-- Definition 4.2, PDF p.18: a category fibered in groupoids.
Every arrow admits the unique lifting of base triangles required by (2);
this is a condition on all arrows, not only a chosen class of cartesian ones.
`IsHomLift` records equality of both projected endpoints and the base arrow. -/
structure IsCFG {C : Type uC} {D : Type uD}
[Category.{vC} C] [Category.{vD} D] (p : D ⥤ C) : Prop where
lift : ∀ (x : D) (Y : C) (f : Y ⟶ p.obj x),
∃ (y : D) (h : y ⟶ x), p.IsHomLift f h
triangle : ∀ {x y z : D} (f : x ⟶ z) (h : y ⟶ z)
(g : p.obj x ⟶ p.obj y), g ≫ p.map h = p.map f →
∃! k : x ⟶ y, p.map k = g ∧ k ≫ h = f
/-- The identity projection is a CFG even when the base is not a groupoid. -/
example {C : Type uC} [Category.{vC} C] : IsCFG (𝟭 C) where
lift x Y f := ⟨Y, f, IsHomLift.map (𝟭 C) f⟩
triangle f h g hcomm := ⟨g, ⟨rfl, hcomm⟩, fun k hk => hk.1⟩
/-- Definition 4.8, PDF p.19: a functor strictly over the fixed base.
The corresponding morphisms below are required to be vertical, as explicitly
used in the proof of 2-Yoneda on PDF pp.23–24. -/
structure OverFunctor {C : Type uC} {D : Type uD} {E : Type uE}
[Category.{vC} C] [Category.{vD} D] [Category.{vE} E]
(p : D ⥤ C) (q : E ⥤ C) where
val : D ⥤ E
commutes : val ⋙ q = p
namespace OverFunctor
variable {C : Type uC} {D : Type uD} {E : Type uE}
[Category.{vC} C] [Category.{vD} D] [Category.{vE} E]
{p : D ⥤ C} {q : E ⥤ C}
/-- Vertical natural transformations, with their ordinary componentwise composition. -/
instance category : Category (OverFunctor p q) where
Hom F G := {α : F.val ⟶ G.val //
∀ x : D, q.IsHomLift (𝟙 (p.obj x)) (α.app x)}
id F := ⟨𝟙 F.val, fun x =>
IsHomLift.id (congrArg (fun K : D ⥤ C => K.obj x) F.commutes)⟩
comp α β := ⟨α.1 ≫ β.1, fun x => by
haveI := α.2 x
haveI := β.2 x
exact IsHomLift.comp_of_lift_id q (p.obj x) (α.1.app x) (β.1.app x)⟩
id_comp α := Subtype.ext (Category.id_comp α.1)
comp_id α := Subtype.ext (Category.comp_id α.1)
assoc α β γ := Subtype.ext (Category.assoc α.1 β.1 γ.1)
/-- Identity transformations in the over-base Hom category project to identities. -/
example (F : OverFunctor p q) (x : D) :
q.IsHomLift (𝟙 (p.obj x)) ((𝟙 F : F ⟶ F).1.app x) :=
(𝟙 F : F ⟶ F).2 x
end OverFunctor
/-- The evaluation functor of Lemma 4.19, PDF p.23.
The representable CFG is the slice `Over X` with the domain projection;
the target is the strict fiber, whose arrows lie over the base identity. -/
def yonedaEvaluation {C : Type uC} {D : Type uD}
[Category.{vC} C] [Category.{vD} D] (p : D ⥤ C) (X : C) :
OverFunctor (Over.forget X) p ⥤ p.Fiber X where
obj F := ⟨F.val.obj (Over.mk (𝟙 X)),
congrArg (fun K : Over X ⥤ C => K.obj (Over.mk (𝟙 X))) F.commutes⟩
map α := ⟨α.1.app (Over.mk (𝟙 X)), α.2 (Over.mk (𝟙 X))⟩
map_id F := rfl
map_comp α β := rfl
/-- Evaluation on objects really is evaluation at the identity, with no choice of pullbacks. -/
example {C : Type uC} {D : Type uD}
[Category.{vC} C] [Category.{vD} D] (p : D ⥤ C) (X : C)
(F : OverFunctor (Over.forget X) p) :
((yonedaEvaluation p X).obj F).1 = F.val.obj (Over.mk (𝟙 X)) := rfl
end QAlgorithms.Papers.Independent.Intake100.P59
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intake100.P59.IsCFG
For arbitrary categories and , with arbitrary object and morphism universes, and a functor , the proposition consists of two requirements. First, for every object , object , and morphism , there exist an object and a morphism lying over : the source image equals , and after transporting along the endpoint equalities. Second, for every , morphisms and , and morphism satisfying , there exists exactly one morphism satisfying both and . These requirements quantify over all such objects and morphisms; in particular, both are vacuous if has no objects.
QAlgorithms.Papers.Independent.Intake100.P59.OverFunctor.category
For arbitrary categories and functors and , the objects consisting of functors equipped with equalities form a category as follows. A morphism from such an to such a is a natural transformation for which every component , for every object , lies over the identity of : its image under , after transporting along the object equalities supplied by , equals . Identities are identity natural transformations, and composition is ordinary composition of natural transformations, so that the component of the composite of and is . These operations satisfy the identity and associativity laws. No assumption that or satisfies is required, and when is empty the component condition is vacuous.
QAlgorithms.Papers.Independent.Intake100.P59.OverFunctor
For arbitrary categories , with arbitrary object and morphism universes, and functors and , an object of consists of a functor together with an equality of functors. Thus the composite agrees with by equality of functors, including its action on objects and morphisms; a natural isomorphism between these functors is not the supplied datum. No lifting or invertibility assumption is imposed on or .
QAlgorithms.Papers.Independent.Intake100.P59.yonedaEvaluation
For arbitrary categories , a functor , and an object , this declaration defines a functor from to the fiber of over . Here the slice category has objects arrows , and a morphism from to is an arrow satisfying ; sends an arrow to its domain. An object of the source is therefore a functor with an equality , and a morphism is a natural transformation whose component at each maps under to , with the endpoint equalities understood. The fiber has objects equipped with an equality , and arrows those morphisms in mapping to after transport. The defined functor sends to , equipped with the equality of its image with obtained from , and sends a natural transformation to its component at . This assignment preserves identities and composition and requires no assumption.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.