AFTD Auto-Formalizing Theoretical Domains

extendible_balanced_cut_internal_matching_component_bound

theoremverified

In an order-4k extendible graph with the displayed 2k-separator property, a balanced side containing a matching of k−r edges forces at most r+1 odd components on the other side if one of them contains at least r vertices.

Statement

theorem extendible_balanced_cut_internal_matching_component_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)
    (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)
    (K : (G.induce {v | v ∉ C}).ConnectedComponent)
    (hK : K ∈ (G.induce {v | v ∉ C}).oddComponents)
    (hlarge : r ≤ K.supp.ncard) :
    (G.induce {v | v ∉ C}).oddComponents.ncard ≤ r+1
Source
Balanced-cut matching obstruction for OP-1957; https://arxiv.org/abs/2611.22690.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 8
Used by 1

The proof, explained

To bound the number of odd components in the complement of C, the proof extracts the vertex set H of the given odd component K and verifies the conditions needed to apply balanced_cut_extend_internal_matching: H is disjoint from C, has size at least r, and has no edges to the rest of the complement. That theorem extends the internal matching M of size k - r to a matching T of size k within C ∪ H, leaving exactly r vertices of C unmatched. By k-extendability, T is contained in a perfect matching P of G. Applying odd_component_bound_after_forced_matching to P and T then immediately bounds the number of odd components in the complement by r + 1.

  1. Let R be the complement of C and H the vertex set of the component K; then H ⊆ R, |H| = |K|, and H has no edges to R \ H.

    We work classically and define R as the complement V \ C. We define H as the vertices of the component K in the ambient graph G. Applying induced_component_ambient_vertex_properties establishes the basic properties of H: it is a subset of R, its cardinality equals the number of vertices in K, and no vertex in H is adjacent to any vertex in R \ H.

    lines 15–18

    uses induced_component_ambient_vertex_properties

      classical
      let R : Set (Fin (4*k)) := {v | v ∉ C}
      let H := in1206_component_vertices G R K
      have hprops := induced_component_ambient_vertex_properties G R K K
  2. The sets C and H are disjoint.

    To show C and H are disjoint via Finset.disjoint_left.mpr, suppose for contradiction that some vertex v belongs to both C and H. Since H ⊆ R, v must belong to R = {u | u ∉ C}, which contradicts v ∈ C.

    lines 19–23

    uses Finset.disjoint_left.mpr

      have hCH : Disjoint C H := by
        apply Finset.disjoint_left.mpr
        intro v hvC hvH
        have hvR : v ∈ R := hprops.1 hvH
        exact hvR hvC
  3. There are no edges in G between H and any vertex outside C ∪ H.

    Given u ∈ H and v ∉ C with v ∉ H, the vertex v belongs to R \ H. By the isolation property of H recorded in hprops, there is no edge between u and v in G.

    lines 24–26

      have hanti : ∀ u ∈ H, ∀ v, v ∉ C → v ∉ H → ¬ G.Adj u v := by
        intro u hu v hvC hvH
        exact hprops.2.2.2 u hu v hvC hvH
  4. The set H contains at least r vertices (r ≤ |H|).

    By hprops, the cardinality of H equals the number of vertices in K, which is at least r by the hypothesis hlarge.

    lines 27–29

      have hrH : r ≤ H.card := by
        rw [hprops.2.1]
        exact hlarge
  5. The matching M extends to a matching T of size k supported on C ∪ H, leaving exactly r vertices of C unmatched.

    We apply balanced_cut_extend_internal_matching. All its preconditions are satisfied: G has order 4k and satisfies the 2k-separator condition, |C| = 2k, H is disjoint from C with |H| ≥ r, H has no edges to (V \ C) \ H, and M is a matching within C of size k - r. This produces an extended matching T ⊇ M of size k with V(T) ⊆ C ∪ H leaving |C \ V(T)| = r.

    lines 30–32

    uses balanced_cut_extend_internal_matching

      obtain ⟨T,hT,hTcard,hMT,hsub,hremain⟩ :=
        balanced_cut_extend_internal_matching k r hr G hsep C H hcard hCH
          hanti hrH M hM hMC hm
  6. The matching T extends to a perfect matching P of G.

    Because G is assumed to be k-extendable and T is a matching of size k, the definition of k-extendability yields a perfect matching P containing T.

    line 33

      obtain ⟨P,hP,hTP⟩ := hext.2.2 T hT hTcard
  7. The number of odd components of G[V \ C] is at most r + 1.

    We invoke odd_component_bound_after_forced_matching. Its prerequisites are satisfied: K is an odd component of G[V \ C], P is a perfect matching containing T, V(T) ⊆ C ∪ H (matching the union of C and K's vertices), and |C \ V(T)| = r. This concludes the proof.

    lines 34–36

    uses odd_component_bound_after_forced_matching

      apply odd_component_bound_after_forced_matching k r G C K hK P T hP hT hTP
      · simpa [H,R] using hsub
      · exact hremain
induced_component_ambient_vertex_properties
In an induced subgraph on a vertex subset R, for any connected component, its ambient vertex set is contained in R, its size equals that of the component, distinct components have disjoint vertex sets, and there are no edges in the graph between vertices in the component and vertices in R outside the component.
Finset.disjoint_left.mpr
Two finite sets are disjoint if no element of the first set belongs to the second set.
balanced_cut_extend_internal_matching
In an order-4k graph with the 2k-separator property, given a balanced set C of size 2k, a disjoint subset H of size at least r with no edges to (V \ C) \ H, and a matching M within C of size k - r, M can be extended to a matching T of size k supported on C ∪ H such that exactly r vertices of C remain unmatched.
odd_component_bound_after_forced_matching
In an order-4k graph, given a balanced set C of size 2k, an odd component K in V \ C, and a matching T of size k contained in a perfect matching P such that V(T) ⊆ C ∪ V(K) and |C \ V(T)| = r, the number of odd components in V \ C is at most r + 1.

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_internal_matching_component_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)    (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)    (K : (G.induce {v | v ∉ C}).ConnectedComponent)    (hK : K ∈ (G.induce {v | v ∉ C}).oddComponents)    (hlarge : r ≤ K.supp.ncard) :    (G.induce {v | v ∉ C}).oddComponents.ncard ≤ r+1 := by  classical  let R : Set (Fin (4*k)) := {v | v ∉ C}  let H := in1206_component_vertices G R K  have hprops := induced_component_ambient_vertex_properties G R K K  have hCH : Disjoint C H := by    apply Finset.disjoint_left.mpr    intro v hvC hvH    have hvR : v ∈ R := hprops.1 hvH    exact hvR hvC  have hanti : ∀ u ∈ H, ∀ v, v ∉ C → v ∉ H → ¬ G.Adj u v := by    intro u hu v hvC hvH    exact hprops.2.2.2 u hu v hvC hvH  have hrH : r ≤ H.card := by    rw [hprops.2.1]    exact hlarge  obtain ⟨T,hT,hTcard,hMT,hsub,hremain⟩ :=    balanced_cut_extend_internal_matching k r hr G hsep C H hcard hCH      hanti hrH M hM hMC hm  obtain ⟨P,hP,hTP⟩ := hext.2.2 T hT hTcard  apply odd_component_bound_after_forced_matching k r G C K hK P T hP hT hTP  · simpa [H,R] using hsub  · exact hremain
See it in the graphDiscuss this resultChallenge it