AFTD Auto-Formalizing Theoretical Domains

boundary_five_odd_saturated_essential_edge_patterns_with_independence

theoremverified

In the displayed four-block graph, with the explicit degree, separator, B-factor-criticality, k-extendibility and independence-number-at-most-k assumptions, every essential cross edge from a saturated vertex with exactly two cross nonneighbors satisfies one of the four displayed defect patterns.

Statement

theorem boundary_five_odd_saturated_essential_edge_patterns_with_independence
    (k c : ℕ) (hc : 7 ≤ c) (hcodd : Odd c) (hkc : c ≤ k)
    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
    (A B C D : Finset (Fin (4*k)))
    (hAB : Disjoint A B) (hAC : Disjoint A C) (hAD : Disjoint A D)
    (hBC : Disjoint B C) (hBD : Disjoint B D) (hCD : Disjoint C D)
    (hcover : A ∪ B ∪ C ∪ D = Finset.univ)
    (hA : A.card=5) (hB : B.card=2*k-5) (hC : C.card=c) (hD : D.card=2*k-c)
    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)
    (hnoCD : ∀ c ∈ C, ∀ d ∈ D, ¬ G.Adj c d)
    (hcritB : is_k_factor_critical (G.induce {v | v ∈ B}) 1)
    (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)
    (hsep : ∀ X U V : Finset (Fin (4*k)), U.Nonempty → V.Nonempty →
      Disjoint X U → Disjoint X V → Disjoint U V → X ∪ U ∪ V = Finset.univ →
      (∀ u ∈ U, ∀ v ∈ V, ¬ G.Adj u v) → 2*k ≤ X.card)
    (hext : is_k_extendable G k)
    (hind : ∀ I : Finset (Fin (4*k)),
      (∀ u ∈ I, ∀ v ∈ I, u ≠ v → ¬ G.Adj u v) → I.card ≤ k)
    (x p q : Fin (4*k)) (hx : x ∈ A)
    (hp : p ∈ C) (hq : q ∈ C) (hpq : p ≠ q)
    (hxp : ¬ G.Adj x p) (hxq : ¬ G.Adj x q)
    (hfull : ∀ y ∈ C, y ≠ p → y ≠ q → G.Adj x y)
    (hsatA : ∀ a ∈ A, a ≠ x → G.Adj x a)
    (hsatD : ∀ d ∈ D, G.Adj x d)
    (y : Fin (4*k)) (hy : y ∈ C) (hyp : y ≠ p) (hyq : y ≠ q)
    (hess : ¬ is_k_extendable (G.deleteEdges {s(x,y)}) k) :
    (∃ r ∈ ({p,q} : Finset (Fin (4*k))), ∃ U ⊆ A.erase x, U.card=2 ∧
      ∀ a ∈ U, ¬ G.Adj a y ∧ ¬ G.Adj a r) ∨
    (∀ a ∈ A.erase x, ¬ G.Adj a y) ∨
    (G.Adj p q ∧ (G.Adj y p ∨ G.Adj y q) ∧
      ∃ U ⊆ B, ∃ Z ⊆ (C \ {p,q,y}), U.card+Z.card=c-4 ∧
        (∀ b ∈ U, ¬ G.Adj b p ∧ ¬ G.Adj b q ∧ ¬ G.Adj b y) ∧
        (∀ z ∈ Z, ¬ G.Adj z p ∧ ¬ G.Adj z q ∧ ¬ G.Adj z y)) ∨
    (¬ G.Adj p q ∧ ¬ G.Adj y p ∧ ¬ G.Adj y q)
Source
OP-1957: wire the explicit independence hypothesis through the zero- and positive-barrier cases.
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 6
Used by 1

The proof, explained

The theorem proves that any essential cross-edge $xy$ between $x \in A$ and $y \in C \setminus \{p,q\}$ satisfies one of four defect patterns. Since $|B| = 2k - 5 \ge 9$ and $B$ induces a 1-factor-critical subgraph, $G[B]$ is nontrivial and connected. Applying the Gallai-Edmonds-type structure theorem for essential edges in $k$-extendable graphs produces a partition of the ambient graph into disjoint sets $X, Y, U$ and an integer deficiency parameter $s \ge 0$ with $|X| + |Y| + |U| + s = 2k$, where $x \in X$, $y \in Y$, $|X|$ and $|Y|$ are odd, and no edges run between $U$ and $X \cup Y$. The argument then branches on whether $s = 0$ or $s \ge 1$: the empty barrier case ($s = 0$) forces one of the first three patterns via `boundary_five_odd_saturated_empty_barrier_force_patterns`, while the positive barrier case ($s \ge 1$) invokes `boundary_five_odd_positive_barrier_forces_patterns_with_extendibility` under the independence-number assumption $\alpha(G) \le k$ to deduce the four-way disjunction.

  1. The induced subgraph $G[B]$ is connected.

    Since $7 \le c \le k$, we have $k \ge 7$, so $|B| = 2k - 5 \ge 9 > 1$. By `Finset.one_lt_card.mp`, $B$ contains two distinct vertices. Because $G[B]$ is 1-factor-critical (`hcritB`) and has at least two vertices, `nontrivial_factorcritical_graph_connected` implies that the induced subgraph $G[B]$ is connected.

    lines 35–40

    uses Finset.one_lt_card.mp, nontrivial_factorcritical_graph_connected, congrArg, Subtype.val

      classical
      have hB2 : 1 < B.card := by omega
      obtain ⟨a,ha,b,hb,hab⟩ := Finset.one_lt_card.mp hB2
      have hconnB : (G.induce {v | v ∈ B}).Connected :=
        nontrivial_factorcritical_graph_connected (G.induce {v | v ∈ B}) hcritB
          ⟨a,ha⟩ ⟨b,hb⟩ (fun h => hab (congrArg Subtype.val h))
  2. The vertices $x$ and $y$ are adjacent, and there exists an ambient odd-shore decomposition $(X, Y, U, s)$ associated with the essential edge $xy$.

    Because $y \in C$ with $y \neq p, q$, the saturation hypothesis (`hfull`) ensures that $x \sim y$. Applying the structure theorem for essential edges in $k$-extendable graphs (`extendible_essential_edge_ambient_odd_shores`) to $xy$ yields pairwise disjoint vertex subsets $X, Y, U$ and an integer $s \ge 0$ such that $x \in X$, $y \in Y$, $|X|$ and $|Y|$ are odd, $|X| + |Y| + |U| + s = 2k$, $xy$ is the only edge between $X$ and $Y$, and there are no edges between $U$ and $X \cup Y$.

    lines 41–43

    uses extendible_essential_edge_ambient_odd_shores

      have hxy : G.Adj x y := hfull y hy hyp hyq
      obtain ⟨X,Y,U,s,hXY,hXU,hYU,hxX,hyY,hoddX,hoddY,hsize,hUodd,hUparity,hcross,hantiX,hantiY⟩ :=
        extendible_essential_edge_ambient_odd_shores k G x y hxy hext hess
  3. It suffices to analyze separately the cases where the deficiency parameter $s$ is zero and where $s$ is positive.

    We split the analysis into two cases based on whether $s = 0$ or $s \neq 0$.

    line 44

      by_cases hz : s = 0
  4. If $s = 0$, the edge $xy$ satisfies one of the first three defect patterns.

    When $s = 0$, the size equation simplifies to $|X| + |Y| + |U| = 2k$. By the symmetry of adjacency, the absence of edges from $X$ to $U$ (`hantiX`) implies there are no edges from $U$ to $X$. Applying the empty-barrier classification theorem (`boundary_five_odd_saturated_empty_barrier_force_patterns`) gives a three-way disjunction covering patterns 1, 2, and 3, each of which is injected into the four-way disjunction of the theorem via `Or.inl` and `Or.inr`.

    lines 45–56

    uses boundary_five_odd_saturated_empty_barrier_force_patterns, Or.inl, Or.inr

      · have hsize0 : X.card+Y.card+U.card=2*k := by omega
        have hanti : ∀ u ∈ U, ∀ a ∈ X, ¬ G.Adj u a := by
          intro u hu a ha h
          exact hantiX a ha u hu h.symm
        have hh := boundary_five_odd_saturated_empty_barrier_force_patterns
          k c hc hcodd hkc G A B C D hAB hAC hAD hBC hBD hCD hcover hA hB hC hD
          hnoAB hnoCD hconnB hdegree hsep x p q hx hp hq hpq hxp hxq hfull hsatA hsatD
          y hy hyp hyq X Y U hXY hXU hYU hsize0 hxX hyY hoddX hoddY hcross hanti
        rcases hh with h | h | h
        · exact Or.inl h
        · exact Or.inr (Or.inl h)
        · exact Or.inr (Or.inr (Or.inl h))
  5. If $s \ge 1$, the edge $xy$ satisfies one of the four defect patterns.

    When $s \neq 0$, we have $s \ge 1$. The positive-barrier classification theorem (`boundary_five_odd_positive_barrier_forces_patterns_with_extendibility`), which uses the $k$-extendibility and the independence-number bound $\alpha(G) \le k$, directly establishes that one of the four defect patterns must hold.

    lines 57–62

    uses boundary_five_odd_positive_barrier_forces_patterns_with_extendibility

      · have hs : 1 ≤ s := by omega
        exact boundary_five_odd_positive_barrier_forces_patterns_with_extendibility
          k c hc hcodd hkc G A B C D hAB hAC hAD hBC hBD hCD hcover hA hB hC hD
          hnoAB hnoCD hcritB hconnB hext hind hdegree hsep x p q y hx hp hq hpq hxp hxq
          hfull hsatA hsatD hy hyp hyq X Y U s hXY hXU hYU hxX hyY hoddX hoddY hs hsize
          hUodd hUparity hcross hantiX hantiY
Finset.one_lt_card.mp
A finite set with cardinality strictly greater than 1 contains at least two distinct elements.
nontrivial_factorcritical_graph_connected
A 1-factor-critical graph containing at least two distinct vertices is connected.
congrArg
Applying a function to equal inputs produces equal outputs ($a_1 = a_2 \implies f(a_1) = f(a_2)$).
Subtype.val
Extracts the underlying value from a subtype element.
extendible_essential_edge_ambient_odd_shores
For any essential edge $xy$ in a $k$-extendable graph on $4k$ vertices, there exist disjoint sets $X, Y, U$ and an integer parameter $s \ge 0$ such that $x \in X$, $y \in Y$, $|X|$ and $|Y|$ are odd, $|X| + |Y| + |U| + s = 2k$, $s$ is at most the number of odd components of $G[U]$, $|U| \equiv s \pmod 2$, $xy$ is the only edge between $X$ and $Y$, and there are no edges between $U$ and $X \cup Y$.
boundary_five_odd_saturated_empty_barrier_force_patterns
In the boundary-five setting with odd $c$ and an empty barrier ($s = 0$, so $|X| + |Y| + |U| = 2k$), the essential edge satisfies one of the first three defect patterns.
boundary_five_odd_positive_barrier_forces_patterns_with_extendibility
In the boundary-five setting with odd $c$, $k$-extendibility, and $\alpha(G) \le k$, a positive barrier ($s \ge 1$) forces the essential edge to satisfy one of the four defect patterns.
Or.inl
Deduces $A \lor B$ from a proof of $A$.
Or.inr
Deduces $A \lor B$ from a proof of $B$.

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 boundary_five_odd_saturated_essential_edge_patterns_with_independence    (k c : ℕ) (hc : 7 ≤ c) (hcodd : Odd c) (hkc : c ≤ k)    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (A B C D : Finset (Fin (4*k)))    (hAB : Disjoint A B) (hAC : Disjoint A C) (hAD : Disjoint A D)    (hBC : Disjoint B C) (hBD : Disjoint B D) (hCD : Disjoint C D)    (hcover : A ∪ B ∪ C ∪ D = Finset.univ)    (hA : A.card=5) (hB : B.card=2*k-5) (hC : C.card=c) (hD : D.card=2*k-c)    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)    (hnoCD : ∀ c ∈ C, ∀ d ∈ D, ¬ G.Adj c d)    (hcritB : is_k_factor_critical (G.induce {v | v ∈ B}) 1)    (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)    (hsep : ∀ X U V : Finset (Fin (4*k)), U.Nonempty → V.Nonempty →      Disjoint X U → Disjoint X V → Disjoint U V → X ∪ U ∪ V = Finset.univ →      (∀ u ∈ U, ∀ v ∈ V, ¬ G.Adj u v) → 2*k ≤ X.card)    (hext : is_k_extendable G k)    (hind : ∀ I : Finset (Fin (4*k)),      (∀ u ∈ I, ∀ v ∈ I, u ≠ v → ¬ G.Adj u v) → I.card ≤ k)    (x p q : Fin (4*k)) (hx : x ∈ A)    (hp : p ∈ C) (hq : q ∈ C) (hpq : p ≠ q)    (hxp : ¬ G.Adj x p) (hxq : ¬ G.Adj x q)    (hfull : ∀ y ∈ C, y ≠ p → y ≠ q → G.Adj x y)    (hsatA : ∀ a ∈ A, a ≠ x → G.Adj x a)    (hsatD : ∀ d ∈ D, G.Adj x d)    (y : Fin (4*k)) (hy : y ∈ C) (hyp : y ≠ p) (hyq : y ≠ q)    (hess : ¬ is_k_extendable (G.deleteEdges {s(x,y)}) k) :    (∃ r ∈ ({p,q} : Finset (Fin (4*k))), ∃ U ⊆ A.erase x, U.card=2 ∧      ∀ a ∈ U, ¬ G.Adj a y ∧ ¬ G.Adj a r) ∨    (∀ a ∈ A.erase x, ¬ G.Adj a y) ∨    (G.Adj p q ∧ (G.Adj y p ∨ G.Adj y q) ∧      ∃ U ⊆ B, ∃ Z ⊆ (C \ {p,q,y}), U.card+Z.card=c-4 ∧        (∀ b ∈ U, ¬ G.Adj b p ∧ ¬ G.Adj b q ∧ ¬ G.Adj b y) ∧        (∀ z ∈ Z, ¬ G.Adj z p ∧ ¬ G.Adj z q ∧ ¬ G.Adj z y)) ∨    (¬ G.Adj p q ∧ ¬ G.Adj y p ∧ ¬ G.Adj y q) := by  classical  have hB2 : 1 < B.card := by omega  obtain ⟨a,ha,b,hb,hab⟩ := Finset.one_lt_card.mp hB2  have hconnB : (G.induce {v | v ∈ B}).Connected :=    nontrivial_factorcritical_graph_connected (G.induce {v | v ∈ B}) hcritB      ⟨a,ha⟩ ⟨b,hb⟩ (fun h => hab (congrArg Subtype.val h))  have hxy : G.Adj x y := hfull y hy hyp hyq  obtain ⟨X,Y,U,s,hXY,hXU,hYU,hxX,hyY,hoddX,hoddY,hsize,hUodd,hUparity,hcross,hantiX,hantiY⟩ :=    extendible_essential_edge_ambient_odd_shores k G x y hxy hext hess  by_cases hz : s = 0  · have hsize0 : X.card+Y.card+U.card=2*k := by omega    have hanti : ∀ u ∈ U, ∀ a ∈ X, ¬ G.Adj u a := by      intro u hu a ha h      exact hantiX a ha u hu h.symm    have hh := boundary_five_odd_saturated_empty_barrier_force_patterns      k c hc hcodd hkc G A B C D hAB hAC hAD hBC hBD hCD hcover hA hB hC hD      hnoAB hnoCD hconnB hdegree hsep x p q hx hp hq hpq hxp hxq hfull hsatA hsatD      y hy hyp hyq X Y U hXY hXU hYU hsize0 hxX hyY hoddX hoddY hcross hanti    rcases hh with h | h | h    · exact Or.inl h    · exact Or.inr (Or.inl h)    · exact Or.inr (Or.inr (Or.inl h))  · have hs : 1 ≤ s := by omega    exact boundary_five_odd_positive_barrier_forces_patterns_with_extendibility      k c hc hcodd hkc G A B C D hAB hAC hAD hBC hBD hCD hcover hA hB hC hD      hnoAB hnoCD hcritB hconnB hext hind hdegree hsep x p q y hx hp hq hpq hxp hxq      hfull hsatA hsatD hy hyp hyq X Y U s hXY hXU hYU hxX hyY hoddX hoddY hs hsize      hUodd hUparity hcross hantiX hantiY
See it in the graphDiscuss this resultChallenge it