AFTD Auto-Formalizing Theoretical Domains

extendible_balanced_cut_matching_symmetry_of_independence

theoremverified

In the stated order-4k extendible graph with independence number at most k, maximum matchings in the balanced halves have equal size.

Statement

theorem extendible_balanced_cut_matching_symmetry_of_independence
    (k : ℕ) (G : SimpleGraph (Fin (4*k))) (hext : is_k_extendable G k)
    (hind : ∀ U : Finset (Fin (4*k)),
      (∀ u ∈ U, ∀ v ∈ U, u ≠ v → ¬ G.Adj u v) → U.card ≤ k)
    (C : Finset (Fin (4*k))) (hcard : C.card = 2*k)
    (M N : G.Subgraph) (hM : M.IsMatching) (hN : N.IsMatching)
    (hMC : M.verts ⊆ (C : Set (Fin (4*k))))
    (hNC : N.verts ⊆ ((C : Set (Fin (4*k)))ᶜ))
    (hmaxM : ∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ (C : Set (Fin (4*k))) → T.edgeSet.ncard ≤ M.edgeSet.ncard)
    (hmaxN : ∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ ((C : Set (Fin (4*k)))ᶜ) → T.edgeSet.ncard ≤ N.edgeSet.ncard) :
    M.edgeSet.ncard = N.edgeSet.ncard
Source
Balanced-cut matching symmetry for OP-1957; https://arxiv.org/abs/2611.22690.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
Used by 9

The proof, explained

To prove that the maximum matchings M in G[C] and N in G[Cᶜ] have equal size in an order-4k k-extendable graph with balanced cut C, it suffices by extendible_balanced_cut_maximum_matching_sizes_equal to show that their combined size satisfies k ≤ |M| + |N|. Because the graph has independence number at most k, each balanced half satisfies |C| ≤ 2|M| + k and |Cᶜ| ≤ 2|N| + k by maximum_matching_size_from_independence. Summing these inequalities with |C| = |Cᶜ| = 2k yields 4k ≤ 2(|M| + |N|) + 2k, from which k ≤ |M| + |N| and hence |M| = |N| immediately follow.

  1. The coercion of the finset complement Cᶜ to a set coincides with the set complement of C.

    Working under classical logic, set extensionality and simplification show that an element belongs to the finset complement Cᶜ if and only if it belongs to the complement of C as a set.

    lines 12–14

      set_option maxHeartbeats 4000000 in
        classical
        have hCcomp : ((Cᶜ : Finset (Fin (4*k))) : Set (Fin (4*k))) = (C : Set (Fin (4*k)))ᶜ := by ext v; simp
  2. The complement Cᶜ has cardinality 2k.

    By Finset.card_compl, the cardinality of Cᶜ is the total number of vertices minus |C|. Since the graph has 4k vertices by Fintype.card_fin and |C| = 2k, linear integer arithmetic (omega) gives |Cᶜ| = 4k - 2k = 2k.

    lines 15–18

    uses Finset.card_compl, Fintype.card_fin

        have hCcompcard : (Cᶜ : Finset (Fin (4*k))).card = 2*k := by
          have h := Finset.card_compl C
          simp only [Fintype.card_fin] at h
          omega
  3. The cardinalities of C and Cᶜ satisfy |C| ≤ 2|M| + k and |Cᶜ| ≤ 2|N| + k.

    By maximum_matching_size_from_independence, in a graph where every independent set has size at most k, any induced vertex subset has cardinality at most twice the size of a maximum matching plus k. Applying this to C with maximum matching M and to Cᶜ with maximum matching N yields the two bounds.

    lines 19–21

    uses maximum_matching_size_from_independence

        have hm := maximum_matching_size_from_independence G C M hM hMC hmaxM k hind
        have hn := maximum_matching_size_from_independence G (Cᶜ : Finset (Fin (4*k))) N hN
          (by simpa [hCcomp] using hNC) (by simpa [hCcomp] using hmaxN) k hind
  4. The sum of the matching sizes is at least k: k ≤ |M| + |N|. automation

    Summing |C| ≤ 2|M| + k and |Cᶜ| ≤ 2|N| + k with |C| = 2k and |Cᶜ| = 2k gives 4k ≤ 2(|M| + |N|) + 2k, which linear integer arithmetic (omega) simplifies to k ≤ |M| + |N|.

    line 22

        have hsum : k ≤ M.edgeSet.ncard+N.edgeSet.ncard := by omega
  5. The maximum matchings M and N have equal size: |M| = |N|.

    By extendible_balanced_cut_maximum_matching_sizes_equal, in an order-4k k-extendable graph, maximum matchings in the two parts of a balanced cut (each of size 2k) must have equal size whenever their combined size is at least k.

    line 23

    uses extendible_balanced_cut_maximum_matching_sizes_equal

        exact extendible_balanced_cut_maximum_matching_sizes_equal k G hext C hcard M N hM hN hMC hNC hmaxM hmaxN hsum
Finset.card_compl
For any finite set s in a finite type α, the cardinality of its complement is Fintype.card α - s.card.
Fintype.card_fin
The cardinality of the standard finite type Fin n is n.
maximum_matching_size_from_independence
In a graph with independence number at most a, any induced subset of vertices S satisfies |S| ≤ 2|M| + a, where M is a maximum matching on S.
extendible_balanced_cut_maximum_matching_sizes_equal
In an order-4k k-extendable graph with a balanced cut C of size 2k, if maximum matchings M in G[C] and N in G[Cᶜ] satisfy k ≤ |M| + |N|, then |M| = |N|.

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_symmetry_of_independence    (k : ℕ) (G : SimpleGraph (Fin (4*k))) (hext : is_k_extendable G k)    (hind : ∀ U : Finset (Fin (4*k)),      (∀ u ∈ U, ∀ v ∈ U, u ≠ v → ¬ G.Adj u v) → U.card ≤ k)    (C : Finset (Fin (4*k))) (hcard : C.card = 2*k)    (M N : G.Subgraph) (hM : M.IsMatching) (hN : N.IsMatching)    (hMC : M.verts ⊆ (C : Set (Fin (4*k))))    (hNC : N.verts ⊆ ((C : Set (Fin (4*k)))ᶜ))    (hmaxM : ∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ (C : Set (Fin (4*k))) → T.edgeSet.ncard ≤ M.edgeSet.ncard)    (hmaxN : ∀ T : G.Subgraph, T.IsMatching → T.verts ⊆ ((C : Set (Fin (4*k)))ᶜ) → T.edgeSet.ncard ≤ N.edgeSet.ncard) :    M.edgeSet.ncard = N.edgeSet.ncard := by  set_option maxHeartbeats 4000000 in    classical    have hCcomp : ((Cᶜ : Finset (Fin (4*k))) : Set (Fin (4*k))) = (C : Set (Fin (4*k)))ᶜ := by ext v; simp    have hCcompcard : (Cᶜ : Finset (Fin (4*k))).card = 2*k := by      have h := Finset.card_compl C      simp only [Fintype.card_fin] at h      omega    have hm := maximum_matching_size_from_independence G C M hM hMC hmaxM k hind    have hn := maximum_matching_size_from_independence G (Cᶜ : Finset (Fin (4*k))) N hN      (by simpa [hCcomp] using hNC) (by simpa [hCcomp] using hmaxN) k hind    have hsum : k ≤ M.edgeSet.ncard+N.edgeSet.ncard := by omega    exact extendible_balanced_cut_maximum_matching_sizes_equal k G hext C hcard M N hM hN hMC hNC hmaxM hmaxN hsum
See it in the graphDiscuss this resultChallenge it