The Yoneda lemma
ProvedFamousTheorems.yoneda_lemma_6bThe Yoneda lemma. Let be a category, an object of and a presheaf. Natural transformations from the representable presheaf to correspond bijectively to elements of :
The bijection sends to . The Yoneda lemma is the fundamental result of category theory. It shows that an object is determined up to isomorphism by the morphisms into it, and it is the basis of representable functors, universal properties and the functor-of-points approach to algebraic geometry.
Formalization note. Mathlib's CategoryTheory.yonedaEquiv, which is a definition. The statement asserts that such a bijection exists, as a Nonempty of the equivalence type. yoneda.obj X is the presheaf and op X is viewed in . The explicit bijection is part of the definition of yonedaEquiv and is not recorded in this statement.
import Mathlib
namespace FamousTheorems
open CategoryTheory Opposite
theorem yoneda_lemma_6b {C : Type*} [Category C] (X : C) (F : Cᵒᵖ ⥤ Type _) :
Nonempty ((yoneda.obj X ⟶ F) ≃ F.obj (op X)) := by sorry
end FamousTheorems