Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Every finite directed walk admits a no-longer simple path

Proved
EdmondsKarp.ShortestPath.chain_simple

by arexychen · Oct 2, 2026 · Mathlib 0df444a (Lean v4.33.1)

graph-theorynetwork-flow

Every finite list forming a chain for a binary relation admits a list of distinct vertices forming a chain for the same relation, with identical first and last vertices and no greater length.

Preamble
import Mathlib
Formal statement
theorem EdmondsKarp.ShortestPath.chain_simple {V : Type} [DecidableEq V] (R : V → V → Prop) (P : List V)
    (hP : P.IsChain R) :
    ∃ Q : List V, Q.Nodup ∧ Q.IsChain R ∧ Q.head? = P.head? ∧
      Q.getLast? = P.getLast? ∧ Q.length ≤ P.length := by sorry
Source
Auxiliary directed-path lemmas for Edmonds and Karp (1972), §1.1 p. 249 and §1.2 pp. 251–252. DOI: 10.1145/321694.321699.

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