OAI/Combinatorics/SecondNeighborhood/Model.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: OpenAI's pinned repository says an unreleased internal model produced the manuscripts and supporting proof artifacts. The collection builds on the mathematics community's accumulated problems, results, language, and formal libraries; each manuscript's BibTeX and bibliography are the authority for individual scholarly credit.
Project sources: Pinned openai/math documentation, Pinned formalization catalogue
4 declarations, 0 contain sorry, 0 declared as axioms
- structure
OAI.SeymourSecondNeighborhood.IsOrientedThe loopless, asymmetric relation underlying an oriented graph line 10L4DEL explanation
An oriented graph is a finite directed graph with no loops, no multiple arcs, and no pair of opposite arcs.
IsOriented rpackages the two relation-level conditions needed throughout the development: no vertex points to itself, and an arcu → vrules out the opposite arcv → u. The Lean model uses a relation rather than a graph structure, so finiteness and decidable equality are supplied separately where needed.looplessexcludesr v vfor every vertex.asymmetricexcludes a two-cycle formed by opposite arcs; it is stronger than merely having no duplicate representation of an arc.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f), OpenAI Seymour second-neighborhood manuscript
Also declared: ComparatorChallenges/SeymourSecondNeighborhood.lean:10 (same declaration text).
structure IsOriented (r : V → V → Prop) : Prop where …
- def
OAI.SeymourSecondNeighborhood.firstNeighborsThe first out-neighborhood of a vertex line 18L4DEL explanation
N1+ (v) = {u : v → u}
firstNeighbors r vis the finite set of verticesuwith an outgoing arcr v u. It is the manuscript'sN₁⁺(v), counting each reached vertex once.- The definition filters the finite universe by the predicate
r v. - It records endpoints, not arcs or paths, so parallel witnesses would not change the cardinality even in the relational presentation.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f), OpenAI Seymour second-neighborhood manuscript
Also declared: ComparatorChallenges/SeymourSecondNeighborhood.lean:18 (same declaration text).
def firstNeighbors (r : V → V → Prop) (v : V) : Finset V := by …
- The definition filters the finite universe by the predicate
- def
OAI.SeymourSecondNeighborhood.secondNeighborsVertices at directed distance exactly two line 22L4DEL explanation
Thus N2+ (v) consists of the vertices at directed distance exactly two from v.
secondNeighbors r vcontains a vertexwwhen someugives a two-step pathv → u → w, while explicitly excludingvitself and every first out-neighbor ofv. This is exact distance two, not merely reachability within two steps.- The existential witness supplies a directed walk of length two.
- The two negative conditions remove the starting vertex and all vertices already reached in one step; the surrounding
Finsetdeduplicates multiple paths to the same endpoint.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f), OpenAI Seymour second-neighborhood manuscript
Also declared: ComparatorChallenges/SeymourSecondNeighborhood.lean:22 (same declaration text).
def secondNeighbors (r : V → V → Prop) (v : V) : Finset V := by …
- def
OAI.SeymourSecondNeighborhood.GoodVertexA vertex with at least as many second as first out-neighbors line 27L4DEL explanation
Seymour’s second neighborhood conjecture asserts that some vertex satisfies
GoodVertex r vis precisely the conjectured cardinal inequality|N₁⁺(v)| ≤ |N₂⁺(v)|. It does not require either neighborhood to be nonempty, so every sink is automatically good.- Both sides count distinct vertices using the two finite-neighborhood definitions.
- The global theorem asks for the existence of at least one vertex satisfying this local predicate.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f), OpenAI Seymour second-neighborhood manuscript
Also declared: ComparatorChallenges/SeymourSecondNeighborhood.lean:27 (same declaration text).
def GoodVertex (r : V → V → Prop) (v : V) : Prop := …