Left to Solve
Problems / MathOverflow (not formalized)

Is the Yoneda Lemma ever formulated in the way below?

Open, not yet stated in LeanMathOverflow (not formalized)General Algebradifficulty55/100

Statement

For any locally small category, , let denote the category of presheaves on , and for a functor to some other category, , let denote the functor mapping whenever this functor is defined (i.e., is small for all , ).

Then the Yoneda Lemma says that for any locally small category, the functor is defined, and there is a canonical natural isomorphism

I've worked out the details for this but figured the people on here would find it more enjoyable to work this out for themselves. Let me know if you find any problems with this formulation.

Posed by Thomas Kelleher · ct.category-theory, representable-functors, yoneda-lemma

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-504339.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-504339.lean

import Mathlib

/-!
# Is the Yoneda Lemma ever formulated in the way below?

Source: https://mathoverflow.net/questions/504339
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_504339

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_504339