Reflexive graphs as presheaves
Statement
Setup
I understand from the literature that we may view directed multigraphs, with loops allowed, as presheaves of the category
.
Such a presheaf consists of two sets (the vertex and edge sets of a directed multigraph) and two functions between them (assigning to each edge a source vertex and a target vertex).
Now I would like to find a category, such that the presheaves of that category are exactly reflexive directed multigraphs, with loops allowed.
I understand that the desired category looks like
with a relation between the morphisms.
Confusion
Now depending on where I look, this relation is either or .
I believe that the latter relation is the one which gives the correct construction, but from my reading of various sources, some give the former relation. Which one is it, and where does the confusion lie? I have tried to be careful in my reading about whether or not the author(s) are describing the opposite category.
Examples in which the former relation is given
• A Guided Tour in the Topos of Graphs says and then mentions the extra morphism and condition required for …
Posed by user14464173 · ct.category-theory, graph-theory
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-499466.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-499466.lean
import Mathlib /-! # Reflexive graphs as presheaves Source: https://mathoverflow.net/questions/499466 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_499466 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_499466