AFTD Auto-Formalizing Theoretical Domains

is_k_extendable_two_mul_add_two_le

theoremverified

A k-extendable graph has at least 2k+2 vertices.

Statement

theorem is_k_extendable_two_mul_add_two_le {V : Type*} [Fintype V] {G : SimpleGraph V} {k : ℕ}
    (h : is_k_extendable G k) : 2 * k + 2 ≤ Fintype.card V
Source
sanity lemma for is_k_extendable (arXiv:2611.22690, Section 2)
Verified
19 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • is_k_extendableFor a finite vertex type V (with [Fintype V]), a simple graph G : SimpleGraph V and k : ℕ, is_k_extendable G k is the Prop that is the…

The proof, explained

By definition in this formalization, a graph is k-extendable if three conditions hold: 2k + 2 ≤ |V|, there is a matching of size k, and every matching of size k extends to a perfect matching. The theorem follows immediately by projecting the first conjunct from the definition.

  1. 2 * k + 2 ≤ |V|

    The definition of a graph being k-extendable is a conjunction whose first condition is precisely the inequality 2 * k + 2 ≤ |V|. Taking the first component (h.1) of the assumption h immediately establishes the claim.

    line 3

      exact h.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 is_k_extendable_two_mul_add_two_le {V : Type*} [Fintype V] {G : SimpleGraph V} {k : ℕ}    (h : is_k_extendable G k) : 2 * k + 2 ≤ Fintype.card V := by  exact h.1
See it in the graphDiscuss this resultChallenge it