AFTD Auto-Formalizing Theoretical Domains

extendible_balanced_cut_matching_deficiency_odd_bound

theoremverified

In an order-4k k-extendible graph with the stated 2k-separator and degree bounds, a balanced side containing a matching with deficit r has at most r+1 odd components on the other side.

Statement

theorem extendible_balanced_cut_matching_deficiency_odd_bound
    (k r : ℕ) (hr : 1 ≤ r)
    (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)
    (C : Finset (Fin (4*k))) (hcard : C.card = 2*k)
    (M : G.Subgraph)
    (hM : M.IsMatching) (hMC : M.verts ⊆ (C : Set (Fin (4*k))))
    (hm : M.edgeSet.ncard + r = k) :
    (G.induce {v | v ∉ C}).oddComponents.ncard ≤ r+1
Source
Balanced-cut structural reduction for OP-1957; https://arxiv.org/abs/2611.22690.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 6
Used by 2

The proof, explained

The proof proceeds by contradiction: suppose the induced subgraph on V \ C has at least r+2 odd components. Since every vertex has degree at least 2k+1 and |C| = 2k, every odd component must contain at least two vertices. Combining these component properties with the 2k-separator condition, balanced_cut_evenly_distributed_cross_matching produces an r-edge cross-matching between any 2r-subset of C and V \ C that meets almost all odd components with even parity. Finally, extendible_balanced_cut_odd_bound_of_parity_cross_matching uses this parity cross-matching and k-extendibility to deduce that there are at most r+1 odd components, yielding a contradiction.

  1. Assuming for contradiction that the bound fails, the induced subgraph H = G[V \ C] has at least r+2 odd components.

    We argue by contradiction. Suppose the number of odd components of H = G[V \ C] is strictly greater than r+1. Letting O be the finset of odd components and F map each component to its ambient vertex finset, the assumption implies |O| ≥ r+2 by equating the finset cardinality of O with the set cardinality of odd components via Set.ncard_eq_toFinset_card' and linear arithmetic.

    lines 14–26

    uses Set.ncard_eq_toFinset_card'

      set_option maxHeartbeats 4000000 in
        classical
        by_contra hnot
        let R : Set (Fin (4*k)) := {v | v ∉ C}
        let H := G.induce R
        let O : Finset H.ConnectedComponent := H.oddComponents.toFinset
        let F : H.ConnectedComponent → Finset (Fin (4*k)) := in1206_component_vertices G R
        have hO : r+2 ≤ O.card := by
          have heq : O.card = H.oddComponents.ncard := by
            dsimp [O]
            exact (Set.ncard_eq_toFinset_card' H.oddComponents).symm
          change ¬ H.oddComponents.ncard ≤ r+1 at hnot
          omega
  2. Each odd component's vertex set in the ambient graph is disjoint from C.

    By induced_component_ambient_vertex_properties, the ambient vertices F(i) of any component i lie entirely in R = V \ C. Since R and C are disjoint, no vertex of F(i) can belong to C, so C and F(i) are disjoint by Finset.disjoint_left.mpr.

    lines 27–32

    uses Finset.disjoint_left.mpr, induced_component_ambient_vertex_properties

        have hCH : ∀ i ∈ O, Disjoint C (F i) := by
          intro i hi
          apply Finset.disjoint_left.mpr
          intro v hvC hvF
          have hvR : v ∈ R := (induced_component_ambient_vertex_properties G R i i).1 hvF
          exact hvR hvC
  3. Distinct odd components have disjoint vertex sets.

    For distinct components i ≠ j in O, their ambient vertex sets F(i) and F(j) are disjoint directly by the pairwise disjointness property in induced_component_ambient_vertex_properties.

    lines 33–35

    uses induced_component_ambient_vertex_properties

        have hdis : ∀ i ∈ O, ∀ j ∈ O, i ≠ j → Disjoint (F i) (F j) := by
          intro i hi j hj hij
          exact (induced_component_ambient_vertex_properties G R i j).2.2.1 hij
  4. Every odd component contains at least two vertices: |F(i)| ≥ 2.

    By induced_component_ambient_vertex_properties, |F(i)| equals the vertex count of component i. Since i is nonempty, it contains a vertex a. By the degree bound, a has degree at least 2k+1, whereas |C| = 2k. Thus the neighborhood of a cannot be a subset of C (using Finset.card_le_card), so by Finset.not_subset.mp, a has a neighbor b ∉ C. As b is adjacent to a, b belongs to the same component i in H. Since G has no self-loops, a ≠ b (via congrArg), yielding a two-element subset {a, b} ⊆ i. Using Finset.card_pair, Set.mem_toFinset.mpr, and Finset.card_le_card, we conclude |F(i)| ≥ 2.

    lines 36–63

    uses congrArg, Finset.card_le_card, Finset.card_pair, Finset.mem_insert, Finset.mem_singleton, Finset.not_subset.mp, induced_component_ambient_vertex_properties, Set.mem_toFinset.mpr, Set.ncard_eq_toFinset_card'

        have hsize : ∀ i ∈ O, 2 ≤ (F i).card := by
          intro i hi
          have hc := (induced_component_ambient_vertex_properties G R i i).2.1
          change 2 ≤ (in1206_component_vertices G R i).card
          rw [hc]
          obtain ⟨a,ha⟩ := i.nonempty_supp
          have hneg : ¬ G.neighborFinset a.val ⊆ C := by
            intro h
            have hh := Finset.card_le_card h
            have hd := hdegree a.val
            omega
          obtain ⟨b,hbN,hbC⟩ := Finset.not_subset.mp hneg
          have hab : G.Adj a.val b := by simpa using hbN
          let b' : R := ⟨b,hbC⟩
          have hb : b' ∈ i.supp := i.mem_supp_of_adj_mem_supp ha hab
          have habne : a ≠ b' := by
            intro he
            have hv := congrArg Subtype.val he
            exact (G.ne_of_adj hab) hv
          have hpair : ({a,b'} : Finset R) ⊆ i.supp.toFinset := by
            intro x hx
            simp only [Finset.mem_insert, Finset.mem_singleton] at hx
            rcases hx with rfl | rfl
            · exact Set.mem_toFinset.mpr ha
            · exact Set.mem_toFinset.mpr hb
          have hh := Finset.card_le_card hpair
          rw [Finset.card_pair habne, ← Set.ncard_eq_toFinset_card'] at hh
          exact hh
  5. No vertex in an odd component F(i) is adjacent to any vertex of V \ C outside F(i).

    This component-boundary condition in G[V \ C] is provided directly by induced_component_ambient_vertex_properties.

    lines 64–66

    uses induced_component_ambient_vertex_properties

        have hanti : ∀ i ∈ O, ∀ u ∈ F i, ∀ v, v ∉ C → v ∉ F i → ¬ G.Adj u v := by
          intro i hi u hu v hvC hvF
          exact (induced_component_ambient_vertex_properties G R i i).2.2.2 u hu v hvC hvF
  6. Every 2r-subset U ⊆ C admits an r-edge cross-matching into V \ C that meets all but at most one odd component with even parity.

    We apply balanced_cut_evenly_distributed_cross_matching with the separator hypothesis hsep and the verified properties of the odd components: |O| ≥ r+2, disjointness from C, pairwise disjointness, minimum component size at least 2, and no external edges in V \ C. This produces injective endpoint maps f, g : Fin r → Fin (4k) defining matching edges f(a) ~ g(a) with f(a) ∈ U. Because each g(a) lies in some component F(i) which is disjoint from C (by Finset.disjoint_left.mp), g(a) ∉ C. Moreover, outside an exceptional set B of at most one component, the number of matching endpoints in F(i) is even (rewriting commutativity of intersection via Finset.inter_comm).

    lines 67–84

    uses balanced_cut_evenly_distributed_cross_matching, Finset.disjoint_left.mp, Finset.inter_comm

        have hcross : ∀ U : Finset (Fin (4*k)), U ⊆ C → U.card = 2*r →
            ∃ f g : Fin r → Fin (4*k), Function.Injective f ∧ Function.Injective g ∧
              (∀ i, f i ∈ U ∧ g i ∉ C ∧ G.Adj (f i) (g i)) ∧
              ∃ B : Finset H.ConnectedComponent, B.card ≤ 1 ∧
                ∀ i ∈ H.oddComponents.toFinset, i ∉ B →
                  Even ((F i) ∩ ((Finset.univ : Finset (Fin r)).image g)).card := by
          intro U hUC hU
          obtain ⟨f,g,hf,hg,hfg,hgroups,B,hB,hpar⟩ :=
            balanced_cut_evenly_distributed_cross_matching k r G hsep C U hcard hUC (by omega) O F hO hCH hdis hsize hanti
          refine ⟨f,g,hf,hg,?_,B,hB,?_⟩
          · intro a
            obtain ⟨i,hi,hgi⟩ := hgroups a
            refine ⟨(hfg a).1,?_,(hfg a).2⟩
            intro hgC
            exact Finset.disjoint_left.mp (hCH i hi) hgC hgi
          · intro i hi hiB
            have hh := hpar i hi hiB
            simpa [Finset.inter_comm] using hh
  7. The number of odd components of G[V \ C] is at most r+1, which is a contradiction.

    Using the parity cross-matching property hcross, the k-extendibility of G, and the existence of a matching M ⊆ C of deficit r, extendible_balanced_cut_odd_bound_of_parity_cross_matching implies that the number of odd components is at most r+1. This directly contradicts the assumption hnot, completing the proof.

    lines 85–86

    uses extendible_balanced_cut_odd_bound_of_parity_cross_matching

        have hb := extendible_balanced_cut_odd_bound_of_parity_cross_matching k r G hext C hcard M hM hMC hm hcross
        exact hnot hb
balanced_cut_evenly_distributed_cross_matching
Given a 2k-separator condition and at least r+2 pairwise disjoint components of size at least 2 outside C having no external edges in V \ C, any 2r-element subset U ⊆ C admits an r-edge matching into these components such that all but at most one component contain an even number of matching endpoints.
congrArg
Applying a function to equal arguments yields equal values.
extendible_balanced_cut_odd_bound_of_parity_cross_matching
In an order-4k k-extendible graph with a balanced side C containing a matching of deficit r, if every 2r-subset of C admits an r-edge cross-matching to V \ C whose endpoints meet all but at most one odd component evenly, then V \ C has at most r+1 odd components.
Finset.card_le_card
If s is a subset of t, then the cardinality of s is at most that of t.
Finset.card_pair
A pair of distinct elements has cardinality 2.
Finset.disjoint_left.mp
If two finite sets are disjoint, any element in the first set is not in the second.
Finset.disjoint_left.mpr
Two finite sets are disjoint if no element of the first belongs to the second.
Finset.inter_comm
Intersection of finite sets is commutative.
Finset.mem_insert
An element belongs to insert b s if and only if it equals b or belongs to s.
Finset.mem_singleton
An element belongs to {a} if and only if it equals a.
Finset.not_subset.mp
If s is not a subset of t, there exists an element of s that is not in t.
induced_component_ambient_vertex_properties
For connected components of an induced subgraph G[R], their vertex sets in the ambient graph are contained in R, have cardinality equal to the component's vertex count, are pairwise disjoint for distinct components, and have no edges to other vertices in R.
Set.mem_toFinset.mpr
An element of a set s belongs to the finset representation of s.
Set.ncard_eq_toFinset_card'
For a finite set s, its set cardinality (ncard) equals the cardinality of its corresponding finset.

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_matching_deficiency_odd_bound    (k r : ℕ) (hr : 1 ≤ r)    (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)    (C : Finset (Fin (4*k))) (hcard : C.card = 2*k)    (M : G.Subgraph)    (hM : M.IsMatching) (hMC : M.verts ⊆ (C : Set (Fin (4*k))))    (hm : M.edgeSet.ncard + r = k) :    (G.induce {v | v ∉ C}).oddComponents.ncard ≤ r+1 := by  set_option maxHeartbeats 4000000 in    classical    by_contra hnot    let R : Set (Fin (4*k)) := {v | v ∉ C}    let H := G.induce R    let O : Finset H.ConnectedComponent := H.oddComponents.toFinset    let F : H.ConnectedComponent → Finset (Fin (4*k)) := in1206_component_vertices G R    have hO : r+2 ≤ O.card := by      have heq : O.card = H.oddComponents.ncard := by        dsimp [O]        exact (Set.ncard_eq_toFinset_card' H.oddComponents).symm      change ¬ H.oddComponents.ncard ≤ r+1 at hnot      omega    have hCH : ∀ i ∈ O, Disjoint C (F i) := by      intro i hi      apply Finset.disjoint_left.mpr      intro v hvC hvF      have hvR : v ∈ R := (induced_component_ambient_vertex_properties G R i i).1 hvF      exact hvR hvC    have hdis : ∀ i ∈ O, ∀ j ∈ O, i ≠ j → Disjoint (F i) (F j) := by      intro i hi j hj hij      exact (induced_component_ambient_vertex_properties G R i j).2.2.1 hij    have hsize : ∀ i ∈ O, 2 ≤ (F i).card := by      intro i hi      have hc := (induced_component_ambient_vertex_properties G R i i).2.1      change 2 ≤ (in1206_component_vertices G R i).card      rw [hc]      obtain ⟨a,ha⟩ := i.nonempty_supp      have hneg : ¬ G.neighborFinset a.val ⊆ C := by        intro h        have hh := Finset.card_le_card h        have hd := hdegree a.val        omega      obtain ⟨b,hbN,hbC⟩ := Finset.not_subset.mp hneg      have hab : G.Adj a.val b := by simpa using hbN      let b' : R := ⟨b,hbC⟩      have hb : b' ∈ i.supp := i.mem_supp_of_adj_mem_supp ha hab      have habne : a ≠ b' := by        intro he        have hv := congrArg Subtype.val he        exact (G.ne_of_adj hab) hv      have hpair : ({a,b'} : Finset R) ⊆ i.supp.toFinset := by        intro x hx        simp only [Finset.mem_insert, Finset.mem_singleton] at hx        rcases hx with rfl | rfl        · exact Set.mem_toFinset.mpr ha        · exact Set.mem_toFinset.mpr hb      have hh := Finset.card_le_card hpair      rw [Finset.card_pair habne, ← Set.ncard_eq_toFinset_card'] at hh      exact hh    have hanti : ∀ i ∈ O, ∀ u ∈ F i, ∀ v, v ∉ C → v ∉ F i → ¬ G.Adj u v := by      intro i hi u hu v hvC hvF      exact (induced_component_ambient_vertex_properties G R i i).2.2.2 u hu v hvC hvF    have hcross : ∀ U : Finset (Fin (4*k)), U ⊆ C → U.card = 2*r →        ∃ f g : Fin r → Fin (4*k), Function.Injective f ∧ Function.Injective g ∧          (∀ i, f i ∈ U ∧ g i ∉ C ∧ G.Adj (f i) (g i)) ∧          ∃ B : Finset H.ConnectedComponent, B.card ≤ 1 ∧            ∀ i ∈ H.oddComponents.toFinset, i ∉ B →              Even ((F i) ∩ ((Finset.univ : Finset (Fin r)).image g)).card := by      intro U hUC hU      obtain ⟨f,g,hf,hg,hfg,hgroups,B,hB,hpar⟩ :=        balanced_cut_evenly_distributed_cross_matching k r G hsep C U hcard hUC (by omega) O F hO hCH hdis hsize hanti      refine ⟨f,g,hf,hg,?_,B,hB,?_⟩      · intro a        obtain ⟨i,hi,hgi⟩ := hgroups a        refine ⟨(hfg a).1,?_,(hfg a).2⟩        intro hgC        exact Finset.disjoint_left.mp (hCH i hi) hgC hgi      · intro i hi hiB        have hh := hpar i hi hiB        simpa [Finset.inter_comm] using hh    have hb := extendible_balanced_cut_odd_bound_of_parity_cross_matching k r G hext C hcard M hM hMC hm hcross    exact hnot hb
See it in the graphDiscuss this resultChallenge it