AFTD Auto-Formalizing Theoretical Domains

large_extendible_high_degree_independence_number_bound

theoremverifiedformalization

For k at least two, a connected k-extendible graph on 4k vertices with minimum degree at least 2k+1 has no independent vertex set larger than k.

Statement

theorem large_extendible_high_degree_independence_number_bound
    (k : ℕ) (hk : 2 ≤ k)
    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
    (hext : is_k_extendable G k) (hconn : G.Connected)
    (hdegree : ∀ v, 2*k+1 ≤ (G.neighborFinset v).card)
    (U : Finset (Fin (4*k)))
    (hind : ∀ u ∈ U, ∀ v ∈ U, u ≠ v → ¬ G.Adj u v) : U.card ≤ k
Formalizes
https://ajc.maths.uq.edu.au/pdf/12/ocr-ajc-v12-p59.pdf, Lemma 4, specialized to order 4k.
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 4

Read back from the Lean

For any natural number $k$ with $k \ge 2$, let $G$ be a simple graph on the vertex set $\mathrm{Fin}(4k)$ with decidable adjacency. Assume that: 1. $G$ is $k$-extendable (i.e., $2k + 2 \le 4k$, there exists a matching in $G$ of size $k$, and every matching of size $k$ can be extended to a perfect matching of $G$); 2. $G$ is connected; 3. Every vertex $v$ of $G$ has degree at least $2k + 1$ (that is, the cardinality of the neighbor finset of $v$ is at least $2k + 1$). Then, for every subset of vertices $U \subseteq \mathrm{Fin}(4k)$, if $U$ is an independent set in $G$ (meaning for all $u, v \in U$ with $u \ne v$, $u$ and $v$ are not adjacent), the cardinality of $U$ is at most $k$ ($|U| \le k$).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

The bound |U| ≤ k is proved using op1957_extendible_independence_of_complement_matching, which reduces bounding the independence number of a k-extendible graph on 4k vertices to showing that deleting any k+1 vertices leaves a subgraph with a matching of size k. For any set I of k+1 vertices, the induced subgraph on V \ I retains at least 4k - (k+1) ≥ 2k vertices since k ≥ 2. Furthermore, because every vertex initially had degree at least 2k+1, removing at most k+1 neighbors leaves each vertex in V \ I with degree at least k. By op1957_min_degree_forces_matching, any graph on at least 2k vertices with minimum degree at least k has a matching of size k, completing the proof.

  1. It suffices to show that removing any vertex set of size k + 1 leaves an induced subgraph containing a matching of size k.

    We apply the reduction lemma op1957_extendible_independence_of_complement_matching for k-extendible graphs on 4k vertices. This reduces the target bound |U| ≤ k on independent sets to two conditions: finding a matching of size k in G[V \ I] for every set I of size k + 1, and verifying that U is independent (which is given as an assumption).

    lines 8–9

    uses op1957_extendible_independence_of_complement_matching

      classical
      apply op1957_extendible_independence_of_complement_matching k G hext
  2. For any chosen subset I of size k + 1, every vertex in G has degree at least k + |I|.

    Fix a subset I of vertices with |I| = k + 1. The degree hypothesis ensures that every vertex v has degree at least 2k + 1. Since k + |I| = 2k + 1, linear arithmetic (omega) confirms that deg(v) ≥ k + |I|.

    lines 10–14

      · intro I hI
        have hdegree' : ∀ v, k+I.card ≤ (G.neighborFinset v).card := by
          intro v
          have hh := hdegree v
          omega
  3. The vertex complement V \ I has cardinality at least 2k.

    By Fintype.card_subtype_compl, the number of vertices not in I is |V| - |I|. Evaluating the cardinality of Fin (4k) via Fintype.card_fin and simplifying the finset coercion via Fintype.card_coe yields |V \ I| = 4k - |I|. Since |I| = k + 1 and k ≥ 2, linear arithmetic (omega) shows that 4k - |I| ≥ 2k.

    lines 15–19

    uses Fintype.card_subtype_compl, Fintype.card_fin, Fintype.card_coe

        have hcard := Fintype.card_subtype_compl (fun v : Fin (4*k) => v ∈ I)
        simp only [Fintype.card_fin,Fintype.card_coe] at hcard
        have hsize : 2*k ≤ Fintype.card {v : Fin (4*k) // v ∉ I} := by
          rw [hcard]
          omega
  4. The induced subgraph G[V \ I] contains a matching of size k.

    By op1957_induced_complement_min_degree, deleting the vertices of I from G yields an induced subgraph where every vertex has degree at least k, since each vertex originally had degree at least k + |I| and lost at most |I| neighbors. Then, op1957_min_degree_forces_matching ensures that any graph with at least 2k vertices and minimum degree at least k contains a matching of size k.

    lines 20–21

    uses op1957_induced_complement_min_degree, op1957_min_degree_forces_matching

        have hdeg := op1957_induced_complement_min_degree G I k hdegree'
        exact op1957_min_degree_forces_matching (G.induce {v | v ∉ I}) k hsize hdeg
  5. The set U satisfies the independence requirement of the reduction lemma.

    The second branch produced by the reduction lemma requires U to be an independent set, which holds immediately by the assumption hind.

    line 22

      · exact hind
op1957_extendible_independence_of_complement_matching
In a k-extendible graph on 4k vertices, if the induced subgraph on the complement of every (k+1)-element vertex set contains a matching of size k, then any independent set has size at most k.
Fintype.card_subtype_compl
For a predicate on a finite type, the number of elements satisfying its negation equals the total number of elements minus the number of elements satisfying the predicate.
Fintype.card_fin
The finite type Fin n has cardinality n.
Fintype.card_coe
The cardinality of the subtype corresponding to a finset equals the cardinality of the finset itself.
op1957_induced_complement_min_degree
If every vertex in a graph has degree at least d + |I|, then in the induced subgraph obtained by removing the vertex set I, every vertex has degree at least d.
op1957_min_degree_forces_matching
A graph on at least 2k vertices with minimum degree at least k contains a matching of size k.

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 large_extendible_high_degree_independence_number_bound    (k : ℕ) (hk : 2 ≤ k)    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (hext : is_k_extendable G k) (hconn : G.Connected)    (hdegree : ∀ v, 2*k+1 ≤ (G.neighborFinset v).card)    (U : Finset (Fin (4*k)))    (hind : ∀ u ∈ U, ∀ v ∈ U, u ≠ v → ¬ G.Adj u v) : U.card ≤ k := by  classical  apply op1957_extendible_independence_of_complement_matching k G hext  · intro I hI    have hdegree' : ∀ v, k+I.card ≤ (G.neighborFinset v).card := by      intro v      have hh := hdegree v      omega    have hcard := Fintype.card_subtype_compl (fun v : Fin (4*k) => v ∈ I)    simp only [Fintype.card_fin,Fintype.card_coe] at hcard    have hsize : 2*k ≤ Fintype.card {v : Fin (4*k) // v ∉ I} := by      rw [hcard]      omega    have hdeg := op1957_induced_complement_min_degree G I k hdegree'    exact op1957_min_degree_forces_matching (G.induce {v | v ∉ I}) k hsize hdeg  · exact hind
See it in the graphDiscuss this resultChallenge it