Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Case 4: deleting a degree-two vertex and identifying its neighbours keeps a series-parallel network

Proved
ChvatalPolytopes.SeriesParallel.deleteIdentify_isSeriesParallel

by mikedeng1 · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

graph-theoryp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1series-parallel

Let G=(V,E)G=(V,E)G=(V,E) be a finite series-parallel network and let uuu be a vertex of degree d(u)=2d(u)=2d(u)=2 whose two neighbours v≠wv\ne wv=w are not adjacent. Delete uuu and identify vvv and www; call the resulting graph G′G'G′ (vertex set V∖{u,w}V\setminus\{u,w\}V∖{u,w}, the vertex vvv standing for v≡wv\equiv wv≡w). Then

G′ is again a series-parallel network.G'\ \text{is again a series-parallel network.}G′ is again a series-parallel network.

This closure property is the step that makes the induction in the proof of Theorem 7.1 go through in its hardest case.

Formalization Note G′G'G′ is deleteIdentify G u v w. "The two neighbours of uuu are v,wv,wv,w" is encoded by uv,uw∈Euv,uw\in Euv,uw∈E, v≠wv\ne wv=w and d(u)=2d(u)=2d(u)=2.

Preamble
import Mathlib
import Definitions.Def_ChvatalPolytopes_SeriesParallel_IsSeriesParallel
import Definitions.Def_ChvatalPolytopes_SeriesParallel_deleteIdentify
Formal statement
namespace ChvatalPolytopes.SeriesParallel

/-- Chvátal 1975, p. 151, proof of Theorem 7.1, Case 4: let `u` be a vertex of degree two whose
two neighbours `v`, `w` are not adjacent. Delete `u` and identify its neighbours `v`, `w`. The
resulting graph `G'` is again a series-parallel network. -/
theorem deleteIdentify_isSeriesParallel {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] (hG : IsSeriesParallel G)
    (u v w : V) (hvw : v ≠ w) (huv : G.Adj u v) (huw : G.Adj u w)
    (hdeg : G.degree u = 2) (hnadj : ¬ G.Adj v w) :
    IsSeriesParallel (deleteIdentify G u v w) := by sorry

end ChvatalPolytopes.SeriesParallel
Source
Chvátal, On certain polytopes associated with graphs, J. Combin. Theory Ser. B 18 (1975), p. 151, proof of Theorem 7.1, Case 4
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Let VVV be a finite vertex set, GGG a simple graph on VVV, and u,v,w∈Vu, v, w \in Vu,v,w∈V.

The hypotheses are:

  1. GGG is series-parallel. This means there are no four distinct vertices b0,…,b3b_0,\dots,b_3b0​,…,b3​ together with paths pijp_{ij}pij​ in GGG from bib_ibi​ to bjb_jbj​, for all six pairs i<ji<ji<j, such that:

    • each pijp_{ij}pij​ repeats no vertex;
    • each pijp_{ij}pij​ contains no bkb_kbk​ other than its own endpoints;
    • paths for different pairs share only branch vertices bkb_kbk​.

    Walks for i≥ji \ge ji≥j must exist but face no conditions. The paths need not form an induced subgraph.

  2. v≠wv \ne wv=w.

  3. uuu is adjacent to vvv and to www in GGG. This forces u≠vu \ne vu=v and u≠wu \ne wu=w.

  4. deg⁡G(u)=2\deg_G(u) = 2degG​(u)=2. Together with (2) and (3), this makes the neighbourhood of uuu exactly {v,w}\{v, w\}{v,w}.

  5. vvv and www are not adjacent in GGG.

The conclusion is that the graph G′G'G′ is series-parallel, in the same sense as hypothesis 1 applied to G′G'G′. Here G′G'G′ is defined as follows:

  • Its vertex set is V∖{u,w}V \setminus \{u, w\}V∖{u,w}, which contains vvv.
  • Two distinct vertices a,ba, ba,b are adjacent in G′G'G′ when they are adjacent in GGG, or one of them is vvv and the other is adjacent to www in GGG.

So G′G'G′ deletes uuu and merges www into vvv.

Degenerate cases. The hypotheses can be satisfied, for example by the path v−u−wv - u - wv−u−w. When V={u,v,w}V = \{u, v, w\}V={u,v,w}, the graph G′G'G′ has the single vertex vvv and is automatically series-parallel. More generally, whenever V∖{u,w}V \setminus \{u,w\}V∖{u,w} has fewer than four vertices, the conclusion holds for trivial reasons.

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me