Lean4
/-- Every functor `G : Grothendieck F ⥤ H` induces a natural transformation from `G` to the
composition of the forgetful functor on `Grothendieck F` with the fiberwise colimit on `G`. -/
@[simps]
def natTransIntoForgetCompFiberwiseColimit : G ⟶ Grothendieck.forget F ⋙ fiberwiseColimit G
where
app X := colimit.ι (Grothendieck.ι F X.base ⋙ G) X.fiber
naturality _ _
f :=
by
simp only [Functor.comp_obj, Grothendieck.forget_obj, fiberwiseColimit_obj, Functor.comp_map,
Grothendieck.forget_map, fiberwiseColimit_map, ι_colimMap_assoc, Grothendieck.ι_obj, NatTrans.comp_app,
whiskerRight_app, Functor.associator_hom_app, Category.comp_id, colimit.ι_pre]
rw [← colimit.w (Grothendieck.ι F _ ⋙ G) f.fiber]
simp only [← Category.assoc, Functor.comp_obj, Functor.comp_map, ← G.map_comp]
congr 2
apply Grothendieck.ext <;> simp