AFTD Auto-Formalizing Theoretical Domains

boundary_five_odd_blocks_one_defect_essential_edge_forces_two

theoremverified

For an odd c with 5≤c≤k, consider the explicitly displayed order-4k four-block partition with |A|=5, |C|=c, factor-critical B, minimum degree at least 2k+2, and the stated 2k-separator property. If x in A has at most one nonneighbor in C, then every essential edge xy to y in C has at least two A vertices nonadjacent to y.

Statement

theorem boundary_five_odd_blocks_one_defect_essential_edge_forces_two
    (k c : ℕ) (hc : 5 ≤ 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) (hC : C.card=c)
    (hsizeAB : A.card+B.card=2*k) (hsizeCD : C.card+D.card=2*k)
    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)
    (hnoCD : ∀ a ∈ C, ∀ b ∈ D, ¬ G.Adj a b)
    (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) (x y : Fin (4*k)) (hx : x ∈ A) (hy : y ∈ C)
    (hxy : G.Adj x y) (hess : ¬ is_k_extendable (G.deleteEdges {s(x,y)}) k)
    (hdefect : (C.filter (fun w => ¬ G.Adj x w)).card ≤ 1) :
    2 ≤ (A.filter (fun v => ¬ G.Adj v y)).card
Source
OP-1957: proposed uniform one-defect reduction for a five-vertex boundary block.
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 11
Used by 2

The proof, explained

The theorem is proved by contradiction. Assuming y ∈ C has at most one non-neighbor in A, the essential edge xy produces an ambient odd shore decomposition (X, Y, U), which forces all vertices in (X ∩ A) \ {x} to be non-neighbors of y and hence |X ∩ A| ≤ 2. Converting these odd shores into a component barrier then contradicts an impossibility result for such barriers in this 4-block configuration.

  1. Assume for contradiction that y has at most one non-neighbor in A.

    We proceed by contradiction (`by_contra hn`). If the number of non-neighbors of y in A is not at least 2, linear integer arithmetic (`omega`) implies |{v ∈ A | ¬G.Adj v y}| ≤ 1.

    lines 21–23

      classical
      by_contra hn
      have hnon : (A.filter (fun v => ¬ G.Adj v y)).card ≤ 1 := by omega
  2. There exists an ambient odd shore decomposition (X, Y, U, s) for the essential edge xy.

    Since G is k-extendable and the edge xy is essential (its deletion destroys k-extendability), `extendible_essential_edge_ambient_odd_shores` provides disjoint sets X, Y, U and an integer s. The vertices satisfy x ∈ X and y ∈ Y, the cardinalities |X| and |Y| are odd, |X| + |Y| + |U| + s = 2k, s is at most the number of odd components of G[U], there are no edges between X ∪ Y and U, and xy is the unique edge between X and Y.

    lines 24–25

    uses extendible_essential_edge_ambient_odd_shores

      obtain ⟨X,Y,U,s,hXY,hXU,hYU,hxX,hyY,hoddX,hoddY,hsize,hUodd,hUpar,hcross,hantiX,hantiY⟩ :=
        extendible_essential_edge_ambient_odd_shores k G x y hxy hext hess
  3. Every vertex in (X ∩ A) \ {x} is a non-neighbor of y in A.

    Given any v ∈ (X ∩ A) \ {x}, we have v ∈ A, v ∈ X, and v ≠ x. If v were adjacent to y ∈ Y, the uniqueness of xy as an edge between X and Y (`hcross`) would force v = x, contradicting v ≠ x. Hence v is not adjacent to y, showing (X ∩ A) \ {x} ⊆ {v ∈ A | ¬G.Adj v y}.

    lines 26–34

    uses Finset.mem_erase.mp, Finset.mem_inter.mp, Finset.mem_filter.mpr

      have hsub : (X ∩ A).erase x ⊆ A.filter (fun v => ¬ G.Adj v y) := by
        intro v hv
        have hv' := Finset.mem_erase.mp hv
        have hvX := (Finset.mem_inter.mp hv'.2).1
        have hvA := (Finset.mem_inter.mp hv'.2).2
        apply Finset.mem_filter.mpr
        refine ⟨hvA,?_⟩
        intro hadj
        exact hv'.1 (hcross v hvX y hyY hadj).1
  4. |X ∩ A| ≤ 2.

    Because x ∈ X ∩ A, removing x decreases the cardinality by 1 (`Finset.card_erase_add_one`). Since (X ∩ A) \ {x} embeds into the non-neighbors of y in A (`Finset.card_le_card`), which has at most 1 element, linear arithmetic (`omega`) yields |X ∩ A| ≤ 2.

    lines 35–39

    uses Finset.mem_inter.mpr, Finset.card_le_card, Finset.card_erase_add_one

      have hbad : (X ∩ A).card ≤ 2 := by
        have hx' : x ∈ X ∩ A := Finset.mem_inter.mpr ⟨hxX,hx⟩
        have hh := Finset.card_le_card hsub
        have he := Finset.card_erase_add_one hx'
        omega
  5. The ambient odd shores yield a component barrier (X, Y', S, T) of total size 2k.

    Applying `op1957_ambient_odd_shores_to_component_barrier` transforms the ambient odd shores into a component barrier: a shore Y' containing y, a separator S of size t, and t pairwise disjoint odd components T_i, such that all sets are mutually disjoint, their union has cardinality 2k, no edges run between X ∪ Y' and any T_i or between distinct components, and xy remains the unique edge between X and Y'.

    lines 40–42

    uses op1957_ambient_odd_shores_to_component_barrier

      obtain ⟨Y',S,t,T,hxX',hyY',hXY',hXS,hYS,hXT,hYT,hST,hTT,hoddX',hoddY',hoddT,hS,hres,hcross',hcrossXT,hcrossYT,hcrossTT⟩ :=
        op1957_ambient_odd_shores_to_component_barrier k G X Y U s x y hXY hXU hYU hxX hyY
          hoddX hoddY hsize hUodd hUpar hcross hantiX hantiY
  6. A contradiction is reached, completing the proof.

    Lemma `boundary_five_odd_blocks_one_defect_component_barrier_impossible` establishes that in this four-block configuration, no component barrier for an essential edge between A and C can have |X ∩ A| ≤ 2. Providing the constructed barrier and the bound |X ∩ A| ≤ 2 derives False.

    lines 43–49

    uses boundary_five_odd_blocks_one_defect_component_barrier_impossible

      exact boundary_five_odd_blocks_one_defect_component_barrier_impossible
        k c hc hcodd hkc G A B C D hAB hAC hAD hBC hBD hCD hcover hA hC hsizeAB hsizeCD
        hnoAB hnoCD hcritB hdegree hsep x y hx hy hxy hdefect X Y' S Finset.univ T hxX' hyY'
        hXY' hXS hYS (fun i _ => hXT i) (fun i _ => hYT i) (fun i _ => hST i)
        (fun i _ j _ hij => hTT i j hij) hoddX' hoddY' (fun i _ => hoddT i) (by simpa using hS)
        hres hcross' (fun i _ => hcrossXT i) (fun i _ => hcrossYT i)
        (fun i _ j _ hij => hcrossTT i j hij) hbad
extendible_essential_edge_ambient_odd_shores
An essential edge xy in a k-extendable graph yields pairwise disjoint sets X, Y, U and an integer s such that x ∈ X, y ∈ Y, |X| and |Y| are odd, |X| + |Y| + |U| + s = 2k, s ≤ oddComponents(G[U]), xy is the only edge between X and Y, and there are no edges between X ∪ Y and U.
Finset.mem_erase.mp
An element v belongs to s.erase a if and only if v ≠ a and v ∈ s.
Finset.mem_inter.mp
If an element belongs to s ∩ t, then it belongs to s and to t.
Finset.mem_filter.mpr
If v ∈ s and P(v) holds, then v belongs to the filtered sub-finset {w ∈ s | P(w)}.
Finset.mem_inter.mpr
If an element belongs to s and to t, then it belongs to s ∩ t.
Finset.card_le_card
If s ⊆ t, then |s| ≤ |t|.
Finset.card_erase_add_one
If a ∈ s, then |s.erase a| + 1 = |s|.
op1957_ambient_odd_shores_to_component_barrier
Converts ambient odd shores (X, Y, U, s) for an essential edge xy into a component barrier consisting of shores X, Y', a separator S of size t, and t odd components T_i with total size 2k.
boundary_five_odd_blocks_one_defect_component_barrier_impossible
In an order-4k graph partitioned into A, B, C, D with the given degree, separator, and 1-defect assumptions, no component barrier for an essential edge xy (with x ∈ A and y ∈ C) can satisfy |X ∩ A| ≤ 2.

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_blocks_one_defect_essential_edge_forces_two    (k c : ℕ) (hc : 5 ≤ 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) (hC : C.card=c)    (hsizeAB : A.card+B.card=2*k) (hsizeCD : C.card+D.card=2*k)    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)    (hnoCD : ∀ a ∈ C, ∀ b ∈ D, ¬ G.Adj a b)    (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) (x y : Fin (4*k)) (hx : x ∈ A) (hy : y ∈ C)    (hxy : G.Adj x y) (hess : ¬ is_k_extendable (G.deleteEdges {s(x,y)}) k)    (hdefect : (C.filter (fun w => ¬ G.Adj x w)).card ≤ 1) :    2 ≤ (A.filter (fun v => ¬ G.Adj v y)).card := by  classical  by_contra hn  have hnon : (A.filter (fun v => ¬ G.Adj v y)).card ≤ 1 := by omega  obtain ⟨X,Y,U,s,hXY,hXU,hYU,hxX,hyY,hoddX,hoddY,hsize,hUodd,hUpar,hcross,hantiX,hantiY⟩ :=    extendible_essential_edge_ambient_odd_shores k G x y hxy hext hess  have hsub : (X ∩ A).erase x ⊆ A.filter (fun v => ¬ G.Adj v y) := by    intro v hv    have hv' := Finset.mem_erase.mp hv    have hvX := (Finset.mem_inter.mp hv'.2).1    have hvA := (Finset.mem_inter.mp hv'.2).2    apply Finset.mem_filter.mpr    refine ⟨hvA,?_⟩    intro hadj    exact hv'.1 (hcross v hvX y hyY hadj).1  have hbad : (X ∩ A).card ≤ 2 := by    have hx' : x ∈ X ∩ A := Finset.mem_inter.mpr ⟨hxX,hx⟩    have hh := Finset.card_le_card hsub    have he := Finset.card_erase_add_one hx'    omega  obtain ⟨Y',S,t,T,hxX',hyY',hXY',hXS,hYS,hXT,hYT,hST,hTT,hoddX',hoddY',hoddT,hS,hres,hcross',hcrossXT,hcrossYT,hcrossTT⟩ :=    op1957_ambient_odd_shores_to_component_barrier k G X Y U s x y hXY hXU hYU hxX hyY      hoddX hoddY hsize hUodd hUpar hcross hantiX hantiY  exact boundary_five_odd_blocks_one_defect_component_barrier_impossible    k c hc hcodd hkc G A B C D hAB hAC hAD hBC hBD hCD hcover hA hC hsizeAB hsizeCD    hnoAB hnoCD hcritB hdegree hsep x y hx hy hxy hdefect X Y' S Finset.univ T hxX' hyY'    hXY' hXS hYS (fun i _ => hXT i) (fun i _ => hYT i) (fun i _ => hST i)    (fun i _ j _ hij => hTT i j hij) hoddX' hoddY' (fun i _ => hoddT i) (by simpa using hS)    hres hcross' (fun i _ => hcrossXT i) (fun i _ => hcrossYT i)    (fun i _ j _ hij => hcrossTT i j hij) hbad
See it in the graphDiscuss this resultChallenge it