AFTD Auto-Formalizing Theoretical Domains

ambient_matching_deficiency_of_induced_barrier

theoremverified

The stated matching-deficiency barrier assertion transfers from an induced graph to the ambient graph.

Statement

theorem ambient_matching_deficiency_of_induced_barrier
    {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) (R : Finset V) (p : ℕ)
    (hsize : 2*p ≤ R.card)
    (hdef : (¬ ∃ M : (G.induce {v | v ∈ R}).Subgraph, M.IsMatching ∧ p ≤ M.edgeSet.ncard) →
      ∃ Y : Finset {v : V | v ∈ R},
        Fintype.card {v : V | v ∈ R}-2*p+2+Y.card ≤
          ((G.induce {v | v ∈ R}).induce {v | v ∉ Y}).oddComponents.ncard)
    (hnone : ¬ ∃ M : G.Subgraph, M.IsMatching ∧ M.verts ⊆ (R : Set V) ∧ p ≤ M.edgeSet.ncard) :
    ∃ X : Finset V, X ⊆ R ∧
      R.card-2*p+2+X.card ≤ (G.induce {v | v ∈ R ∧ v ∉ X}).oddComponents.ncard
Source
Balanced-cut k=7 reduction for OP-1957; https://arxiv.org/abs/2611.22690.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
  • induced_matching_liftsA matching of an induced graph lifts to an ambient matching supported in the inducing set with the same size.
  • induced_subgraph_barrier_liftA barrier in an induced graph maps to an ambient barrier of the same size, preserving the odd-component count after deletion.

The proof, explained

The theorem transfers a Tutte-Berge-type matching deficiency barrier from an induced subgraph $G[R]$ to the ambient graph $G$. Since any matching of size at least $p$ in $G[R]$ would lift to a matching in $G$ supported on $R$, the assumption that no such ambient matching exists implies no such matching exists in $G[R]$. The deficiency hypothesis on $G[R]$ then yields an induced barrier set $Y$, which lifts via `induced_subgraph_barrier_lift` to a subset $X \subseteq R$ preserving cardinality and the number of odd components, establishing the barrier inequality in $G$.

  1. There is no matching with at least $p$ edges in the induced subgraph $G[R]$.

    Suppose for contradiction that $G[R]$ has a matching $M$ with at least $p$ edges. By `induced_matching_lifts`, $M$ lifts to a matching $N$ in the ambient graph $G$ with vertices contained in $R$ and the same number of edges as $M$, so $|E(N)| \ge p$. This contradicts the hypothesis `hnone` that no such matching exists in $G$.

    lines 11–16

    uses induced_matching_lifts

      set_option maxHeartbeats 4000000 in
        classical
        have hnone' : ¬ ∃ M : (G.induce {v | v ∈ R}).Subgraph, M.IsMatching ∧ p ≤ M.edgeSet.ncard := by
          rintro ⟨M,hM,hm⟩
          obtain ⟨N,hN,hNR,hNcard⟩ := induced_matching_lifts G {v | v ∈ R} M hM
          exact hnone ⟨N,hN,hNR,by omega⟩
  2. There exists a subset $X \subseteq R$ lifting a deficiency barrier $Y$ from the induced subgraph, with $|X| = |Y|$ and preserving the number of odd components.

    Applying the deficiency hypothesis `hdef` to the nonexistence of a size-$p$ matching in $G[R]$ produces a barrier set $Y$ of vertices in the induced subgraph. By `induced_subgraph_barrier_lift`, $Y$ lifts to a finset $X \subseteq R$ in $V$ such that $|X| = |Y|$ and the number of odd components of $(G[R]) \setminus Y$ equals the number of odd components of $G[R \setminus X]$.

    lines 17–18

    uses induced_subgraph_barrier_lift

        obtain ⟨Y,hY⟩ := hdef hnone'
        obtain ⟨X,hXR,hXY,heq⟩ := induced_subgraph_barrier_lift G R Y
  3. The subset $X \subseteq R$ satisfies the matching deficiency barrier inequality in $G$.

    We select $X$ as the witness, which satisfies $X \subseteq R$. The cardinality of the subtype $\{v \mid v \in R\}$ equals $|R|$ by simplification. Substituting this into the barrier inequality for $Y$, the desired inequality $|R| - 2p + 2 + |X| \le o(G[R \setminus X])$ follows by linear arithmetic (`omega`), using $|X| = |Y|$ and the equality between the odd component counts.

    lines 19–22

        have hcard : Fintype.card {v : V | v ∈ R} = R.card := by simp
        refine ⟨X,hXR,?_⟩
        rw [hcard] at hY
        omega
induced_matching_lifts
Any matching in an induced subgraph $G[R]$ lifts to a matching in the ambient graph $G$ whose vertices are contained in $R$ and with the same number of edges.
induced_subgraph_barrier_lift
A subset $Y$ of vertices of an induced subgraph $G[R]$ lifts to a subset $X \subseteq R$ in the ambient graph with $|X| = |Y|$ such that the number of odd components of $(G[R]) \setminus Y$ equals that of $G[R \setminus X]$.

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 ambient_matching_deficiency_of_induced_barrier    {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) (R : Finset V) (p : ℕ)    (hsize : 2*p ≤ R.card)    (hdef : (¬ ∃ M : (G.induce {v | v ∈ R}).Subgraph, M.IsMatching ∧ p ≤ M.edgeSet.ncard) →      ∃ Y : Finset {v : V | v ∈ R},        Fintype.card {v : V | v ∈ R}-2*p+2+Y.card ≤          ((G.induce {v | v ∈ R}).induce {v | v ∉ Y}).oddComponents.ncard)    (hnone : ¬ ∃ M : G.Subgraph, M.IsMatching ∧ M.verts ⊆ (R : Set V) ∧ p ≤ M.edgeSet.ncard) :    ∃ X : Finset V, X ⊆ R ∧      R.card-2*p+2+X.card ≤ (G.induce {v | v ∈ R ∧ v ∉ X}).oddComponents.ncard := by  set_option maxHeartbeats 4000000 in    classical    have hnone' : ¬ ∃ M : (G.induce {v | v ∈ R}).Subgraph, M.IsMatching ∧ p ≤ M.edgeSet.ncard := by      rintro ⟨M,hM,hm⟩      obtain ⟨N,hN,hNR,hNcard⟩ := induced_matching_lifts G {v | v ∈ R} M hM      exact hnone ⟨N,hN,hNR,by omega⟩    obtain ⟨Y,hY⟩ := hdef hnone'    obtain ⟨X,hXR,hXY,heq⟩ := induced_subgraph_barrier_lift G R Y    have hcard : Fintype.card {v : V | v ∈ R} = R.card := by simp    refine ⟨X,hXR,?_⟩    rw [hcard] at hY    omega
See it in the graphDiscuss this resultChallenge it