AFTD Auto-Formalizing Theoretical Domains

extendible_balanced_cut_odd_bound_of_near_perfect_hypothesis

theoremverified

Under the displayed assumptions and the explicitly assumed near-perfect maximum-matching property, the opposite side of a balanced cut has at most two odd components.

Statement

theorem extendible_balanced_cut_odd_bound_of_near_perfect_hypothesis
    (k : ℕ) (hk : 1 ≤ k) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
    (hext : is_k_extendable G k)
    (hsep : ∀ S P Q : Finset (Fin (4*k)), P.Nonempty → Q.Nonempty →
      Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ →
      (∀ u ∈ P, ∀ v ∈ Q, ¬ G.Adj u v) → 2*k ≤ S.card)
    (hdegree : ∀ v, 2*k+1 ≤ (G.neighborFinset v).card)
    (hind : ∀ I : Finset (Fin (4*k)),
      (∀ x ∈ I, ∀ y ∈ I, x ≠ y → ¬ G.Adj x y) → I.card ≤ k)
    (C : Finset (Fin (4*k))) (hcard : C.card = 2*k)
    (hcore : ∀ (M N : G.Subgraph), M.IsMatching → N.IsMatching →
      M.verts ⊆ (C : Set (Fin (4*k))) → N.verts ⊆ ((C : Set (Fin (4*k)))ᶜ) →
      (∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ (C : Set (Fin (4*k))) → T.edgeSet.ncard ≤ M.edgeSet.ncard) →
      (∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ ((C : Set (Fin (4*k)))ᶜ) → T.edgeSet.ncard ≤ N.edgeSet.ncard) →
      M.edgeSet.ncard = N.edgeSet.ncard → k ≤ M.edgeSet.ncard + 1) :
    (G.induce {v | v ∉ C}).oddComponents.ncard ≤ 2
Source
Balanced-cut reduction for OP-1957; https://arxiv.org/abs/1011.3384.
Verified
28 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 5
Used by 1

The proof, explained

To bound the number of odd components of the induced subgraph on the complement $C^c$ of a balanced cut $C$, we choose maximum matchings $M$ in $G[C]$ and $N$ in $G[C^c]$. By symmetry of maximum matchings across balanced cuts in $k$-extendable graphs with independence number at most $k$, $M$ and $N$ have equal cardinality. The assumed near-perfect matching hypothesis then implies $|M| \ge k - 1$, so $M$ contains a submatching $T$ on $C$ of size exactly $k - 1$. Applying the matching deficiency bound with deficiency $r = 1$ to $T$ shows that $G[C^c]$ has at most $1 + 1 = 2$ odd components.

  1. Define the complement $R = C^c$ and identify it with the set-theoretic complement of $C$.

    We define the vertex subset $R = C^c$ as a finite set and check by extensionality that its underlying set is precisely the complement of $C$.

    lines 17–20

      set_option maxHeartbeats 4000000 in
        classical
        let R : Finset (Fin (4*k)) := Cᶜ
        have hRcomp : (R : Set (Fin (4*k))) = (C : Set (Fin (4*k)))ᶜ := by ext v; simp [R]
  2. There exist maximum matchings $M$ in $G[C]$ and $N$ in $G[C^c]$.

    By `finite_subset_has_maximum_matching`, every subset of vertices in a finite graph supports a maximum matching. We obtain a maximum matching $M$ supported on $C$, and a maximum matching $N$ supported on $R = C^c$.

    lines 21–25

    uses finite_subset_has_maximum_matching

        obtain ⟨M,hM,hMC,hmaxM⟩ := finite_subset_has_maximum_matching G C
        obtain ⟨N,hN,hNR,hmaxNR⟩ := finite_subset_has_maximum_matching G R
        have hNC : N.verts ⊆ (C : Set (Fin (4*k)))ᶜ := by simpa [hRcomp] using hNR
        have hmaxN : ∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ (C : Set (Fin (4*k)))ᶜ → T.edgeSet.ncard ≤ N.edgeSet.ncard := by
          simpa [hRcomp] using hmaxNR
  3. The maximum matchings $M$ and $N$ have equal cardinality, and $|M| \ge k - 1$.

    By `extendible_balanced_cut_matching_symmetry_of_independence`, the maximum matchings on the two sides of a balanced cut have equal size, so $|M| = |N|$. The assumed near-perfect hypothesis (`hcore`) then applies to give $k \le |M| + 1$, which is $|M| \ge k - 1$.

    lines 26–27

    uses extendible_balanced_cut_matching_symmetry_of_independence

        have heq := extendible_balanced_cut_matching_symmetry_of_independence k G hext hind C hcard M N hM hN hMC hNC hmaxM hmaxN
        have hm := hcore M N hM hN hMC hNC hmaxM hmaxN heq
  4. There exists a submatching $T \subseteq M$ on $C$ of size exactly $k - 1$.

    Because $k - 1 \le |M|$, `finite_matching_has_submatching_of_each_smaller_size` yields a submatching $T \subseteq M$ with $|T| = k - 1$. By transitivity of subsets (`Set.Subset.trans`), the vertices of $T$ are contained in $C$ since $V(T) \subseteq V(M) \subseteq C$.

    lines 28–29

    uses finite_matching_has_submatching_of_each_smaller_size, Set.Subset.trans

        obtain ⟨T,hT,hTM,hTcard⟩ := finite_matching_has_submatching_of_each_smaller_size G M hM (k-1) (by omega)
        have hTC : T.verts ⊆ (C : Set (Fin (4*k))) := Set.Subset.trans hTM.1 hMC
  5. The induced subgraph $G[C^c]$ has at most 2 odd components.

    We apply `extendible_balanced_cut_matching_deficiency_odd_bound` with deficiency $r = 1$ to the matching $T$ on $C$, since $|T| + 1 = (k - 1) + 1 = k$. This proves that the number of odd components of $G[C^c]$ is at most $1 + 1 = 2$. Simplifying $1 + 1$ concludes the proof.

    lines 30–31

    uses extendible_balanced_cut_matching_deficiency_odd_bound

        have hodd := extendible_balanced_cut_matching_deficiency_odd_bound k 1 (by omega) G hext hsep hdegree C hcard T hT hTC (by omega)
        simpa using hodd
finite_subset_has_maximum_matching
In any finite graph, every vertex subset contains a matching whose vertices are within the subset and whose cardinality is maximal among all matchings within that subset.
extendible_balanced_cut_matching_symmetry_of_independence
In a $k$-extendable graph on $4k$ vertices with independence number at most $k$, for any balanced cut of size $2k$, maximum matchings on the two complementary sides have the same number of edges.
finite_matching_has_submatching_of_each_smaller_size
In a finite graph, any matching of size at least $m$ contains a submatching of size exactly $m$.
Set.Subset.trans
Subset inclusion is transitive: if $A \subseteq B$ and $B \subseteq C$, then $A \subseteq C$.
extendible_balanced_cut_matching_deficiency_odd_bound
In a $k$-extendable graph on $4k$ vertices satisfying the connectivity, degree, and balanced cut conditions, if a matching on one side $C$ has deficiency $r$ (size $k - r$ with $1 \le r$), then the induced subgraph on $C^c$ has at most $r + 1$ odd components.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

theorem extendible_balanced_cut_odd_bound_of_near_perfect_hypothesis    (k : ℕ) (hk : 1 ≤ k) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (hext : is_k_extendable G k)    (hsep : ∀ S P Q : Finset (Fin (4*k)), P.Nonempty → Q.Nonempty →      Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ →      (∀ u ∈ P, ∀ v ∈ Q, ¬ G.Adj u v) → 2*k ≤ S.card)    (hdegree : ∀ v, 2*k+1 ≤ (G.neighborFinset v).card)    (hind : ∀ I : Finset (Fin (4*k)),      (∀ x ∈ I, ∀ y ∈ I, x ≠ y → ¬ G.Adj x y) → I.card ≤ k)    (C : Finset (Fin (4*k))) (hcard : C.card = 2*k)    (hcore : ∀ (M N : G.Subgraph), M.IsMatching → N.IsMatching →      M.verts ⊆ (C : Set (Fin (4*k))) → N.verts ⊆ ((C : Set (Fin (4*k)))ᶜ) →      (∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ (C : Set (Fin (4*k))) → T.edgeSet.ncard ≤ M.edgeSet.ncard) →      (∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ ((C : Set (Fin (4*k)))ᶜ) → T.edgeSet.ncard ≤ N.edgeSet.ncard) →      M.edgeSet.ncard = N.edgeSet.ncard → k ≤ M.edgeSet.ncard + 1) :    (G.induce {v | v ∉ C}).oddComponents.ncard ≤ 2 := by  set_option maxHeartbeats 4000000 in    classical    let R : Finset (Fin (4*k)) := Cᶜ    have hRcomp : (R : Set (Fin (4*k))) = (C : Set (Fin (4*k)))ᶜ := by ext v; simp [R]    obtain ⟨M,hM,hMC,hmaxM⟩ := finite_subset_has_maximum_matching G C    obtain ⟨N,hN,hNR,hmaxNR⟩ := finite_subset_has_maximum_matching G R    have hNC : N.verts ⊆ (C : Set (Fin (4*k)))ᶜ := by simpa [hRcomp] using hNR    have hmaxN : ∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ (C : Set (Fin (4*k)))ᶜ → T.edgeSet.ncard ≤ N.edgeSet.ncard := by      simpa [hRcomp] using hmaxNR    have heq := extendible_balanced_cut_matching_symmetry_of_independence k G hext hind C hcard M N hM hN hMC hNC hmaxM hmaxN    have hm := hcore M N hM hN hMC hNC hmaxM hmaxN heq    obtain ⟨T,hT,hTM,hTcard⟩ := finite_matching_has_submatching_of_each_smaller_size G M hM (k-1) (by omega)    have hTC : T.verts ⊆ (C : Set (Fin (4*k))) := Set.Subset.trans hTM.1 hMC    have hodd := extendible_balanced_cut_matching_deficiency_odd_bound k 1 (by omega) G hext hsep hdegree C hcard T hT hTC (by omega)    simpa using hodd
See it in the graphDiscuss this resultChallenge it