OAI/Combinatorics/SecondNeighborhood/Model.lean

GitHub source file

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

  1. structure OAI.SeymourSecondNeighborhood.IsOriented The loopless, asymmetric relation underlying an oriented graph line 10

    L4DEL explanation

    An oriented graph is a finite directed graph with no loops, no multiple arcs, and no pair of opposite arcs.

    IsOriented r packages the two relation-level conditions needed throughout the development: no vertex points to itself, and an arc u → v rules out the opposite arc v → u. The Lean model uses a relation rather than a graph structure, so finiteness and decidable equality are supplied separately where needed.

    1. loopless excludes r v v for every vertex.
    2. asymmetric excludes 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
    …
  2. def OAI.SeymourSecondNeighborhood.firstNeighbors The first out-neighborhood of a vertex line 18

    L4DEL explanation

    N1+ (v) = {u : v → u}

    firstNeighbors r v is the finite set of vertices u with an outgoing arc r v u. It is the manuscript's N₁⁺(v), counting each reached vertex once.

    1. The definition filters the finite universe by the predicate r v.
    2. 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
    …
  3. def OAI.SeymourSecondNeighborhood.secondNeighbors Vertices at directed distance exactly two line 22

    L4DEL explanation

    Thus N2+ (v) consists of the vertices at directed distance exactly two from v.

    secondNeighbors r v contains a vertex w when some u gives a two-step path v → u → w, while explicitly excluding v itself and every first out-neighbor of v. This is exact distance two, not merely reachability within two steps.

    1. The existential witness supplies a directed walk of length two.
    2. The two negative conditions remove the starting vertex and all vertices already reached in one step; the surrounding Finset deduplicates 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
    …
  4. def OAI.SeymourSecondNeighborhood.GoodVertex A vertex with at least as many second as first out-neighbors line 27

    L4DEL explanation

    Seymour’s second neighborhood conjecture asserts that some vertex satisfies

    GoodVertex r v is precisely the conjectured cardinal inequality |N₁⁺(v)| ≤ |N₂⁺(v)|. It does not require either neighborhood to be nonempty, so every sink is automatically good.

    1. Both sides count distinct vertices using the two finite-neighborhood definitions.
    2. 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 :=
    …