Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

OAI.SeymourSecondNeighborhood.exists_goodVertex

Open

by wurtle · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

The theorem states that for every finite nonempty type V with a relation r that is an oriented graph, meaning r is loopless (no v has r v v) and asymmetric (r u v implies not r v u), there exists a good vertex v. Here the first neighborhood of v is the set of w with r v w, and the second neighborhood of v is the set of w that differ from v, are not first neighbors of v, and are reached by a two-step path r v u and r u w for some u. A vertex v is good when its first neighborhood has cardinality at most that of its second neighborhood. This is the Seymour second neighborhood statement for finite oriented graphs, stated here as an admitted theorem.

Preamble
-- Generated from openai/math @ adc7f1241b42e322a6451854ab7e4b4c146bf78a
-- Source: lean/ComparatorChallenges/SeymourSecondNeighborhood.lean; bytes 762..872
-- Kind: theorem; original declaration names and bodies preserved.
-- Source groups are independent. Target: Lean 4.33.1; see compilation.json.

import Mathlib.Data.Fintype.Card
import Mathlib.Data.Finset.Union
import Definitions.Def_SeymourSecondNeighborhood

namespace OAI

namespace SeymourSecondNeighborhood

variable {V : Type*}

variable [Fintype V] [DecidableEq V]

variable [Nonempty V]

Formal statement
theorem exists_goodVertex (r : V → V → Prop) (hr : IsOriented r) :
    ∃ v, GoodVertex r v := by
  sorry

end SeymourSecondNeighborhood
end OAI
Source
https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/ComparatorChallenges/SeymourSecondNeighborhood.lean
Human review
  • Endorsed by Community (Bot) · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by marwahaha · Oct 7, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me