AFTD Auto-Formalizing Theoretical Domains

extendible_common_nonneighbor_deficit_equality_matchable

theoremverified

Under the stated high-degree extendibility and independence assumptions, if an independent U with at least two vertices is anticomplete to disjoint W and 2|U|+|W|=2k+2, then G[W] has a perfect matching.

Statement

theorem extendible_common_nonneighbor_deficit_equality_matchable
    (k : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
    (hext : is_k_extendable G k)
    (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)
    (U W : Finset (Fin (4*k))) (hdis : Disjoint U W) (hU : 2 ≤ U.card)
    (hUind : ∀ u ∈ U, ∀ v ∈ U, ¬ G.Adj u v)
    (hanti : ∀ u ∈ U, ∀ w ∈ W, ¬ G.Adj u w)
    (hequality : 2*U.card+W.card = 2*k+2) :
    ∃ P : (G.induce {v | v ∈ W}).Subgraph, P.IsPerfectMatching
Source
Positive-separator transfer for OP-1957; https://arxiv.org/abs/2611.22690.
Verified
28 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 5

The proof, explained

The theorem is proven by contradiction: its hypotheses are mutually inconsistent, making the claim vacuously true. By a previously established bound for k-extendable graphs (extendible_independent_common_nonneighbor_deficit_le_one), any nonempty independent set U that is anticomplete and disjoint to W must satisfy 2|U| + |W| ≤ 2k + 1. However, the theorem assumes 2|U| + |W| = 2k + 2, which contradicts this bound and allows the conclusion to follow by explosion.

  1. U is nonempty (U ≠ ∅).

    A finite set is nonempty if and only if it is not the empty set (Finset.nonempty_iff_ne_empty). Supposing for contradiction that U = ∅, its cardinality would be 0, which contradicts the hypothesis hU that |U| ≥ 2.

    lines 12–15

    uses Finset.nonempty_iff_ne_empty

      have hU_nonempty : U.Nonempty := by
        rw [Finset.nonempty_iff_ne_empty]
        rintro rfl
        norm_num at hU
  2. 2|U| + |W| ≤ 2k + 1

    Applying extendible_independent_common_nonneighbor_deficit_le_one with the graph properties, the disjointness of U and W, the nonemptiness and independence of U, and the anticompleteness between U and W yields the upper bound 2|U| + |W| ≤ 2k + 1.

    line 16

    uses extendible_independent_common_nonneighbor_deficit_le_one

      have hle := extendible_independent_common_nonneighbor_deficit_le_one k G hext hdegree hind U W hdis hU_nonempty hUind hanti
  3. A contradiction is obtained, discharging the goal vacuously.

    Linear integer arithmetic (omega) observes that the derived bound 2|U| + |W| ≤ 2k + 1 directly contradicts the hypothesis hequality that 2|U| + |W| = 2k + 2 (as 2k + 2 ≤ 2k + 1 is impossible in ℕ). By the principle of explosion, the contradictory hypotheses prove the existential conclusion.

    line 17

      omega
Finset.nonempty_iff_ne_empty
A finite set is nonempty if and only if it is not equal to the empty set.
extendible_independent_common_nonneighbor_deficit_le_one
In a k-extendable graph on 4k vertices with minimum degree at least 2k + 1 and independence number at most k, if a nonempty independent set U is disjoint and anticomplete to a set W, then 2|U| + |W| ≤ 2k + 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_common_nonneighbor_deficit_equality_matchable    (k : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (hext : is_k_extendable G k)    (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)    (U W : Finset (Fin (4*k))) (hdis : Disjoint U W) (hU : 2 ≤ U.card)    (hUind : ∀ u ∈ U, ∀ v ∈ U, ¬ G.Adj u v)    (hanti : ∀ u ∈ U, ∀ w ∈ W, ¬ G.Adj u w)    (hequality : 2*U.card+W.card = 2*k+2) :    ∃ P : (G.induce {v | v ∈ W}).Subgraph, P.IsPerfectMatching := by  have hU_nonempty : U.Nonempty := by    rw [Finset.nonempty_iff_ne_empty]    rintro rfl    norm_num at hU  have hle := extendible_independent_common_nonneighbor_deficit_le_one k G hext hdegree hind U W hdis hU_nonempty hUind hanti  omega
See it in the graphDiscuss this resultChallenge it