AFTD Auto-Formalizing Theoretical Domains

op1957_one_defect_component_barrier_is_positive

theoremverified

Under the displayed five-by-odd degree, separator, factor-criticality and one-defect hypotheses, any component-barrier decomposition with a small first shore has positive barrier size.

Statement

theorem op1957_one_defect_component_barrier_is_positive
    {ι : Type*} [DecidableEq ι] (k c : ℕ) (hc : 7 ≤ c) (hkc : c ≤ k)
    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
    (A B C D X Y S : Finset (Fin (4*k))) (I : Finset ι) (T : ι → 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 : ∀ 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 : ∀ S P Q : Finset (Fin (4*k)), P.Nonempty → Q.Nonempty →
      Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ →
      (∀ u ∈ P, ∀ v ∈ Q, ¬ G.Adj u v) → 2*k ≤ S.card)
    (x y : Fin (4*k)) (hxA : x ∈ A) (hyC : y ∈ C) (hxX : x ∈ X) (hyY : y ∈ Y)
    (hXY : Disjoint X Y) (hS : S.card=I.card)
    (hres : (X ∪ Y ∪ I.biUnion T ∪ S).card=2*k)
    (hcross : ∀ a ∈ X, ∀ b ∈ Y, G.Adj a b → a=x ∧ b=y)
    (hdefect : (C.filter (fun w => ¬ G.Adj x w)).card ≤ 1)
    (hsmallA : (X ∩ A).card ≤ 2) : 1 ≤ I.card
Source
OP-1957 one-defect barrier reduction
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
  • op1957_one_defect_empty_barrier_impossibleIn the displayed five-by-odd partition with degree, separator and factor-criticality hypotheses, two disjoint endpoint shores covering 2k…
  • is_k_factor_criticalA simple graph G on a finite vertex type V is k-factor-critical if for every subset S of V with cardinality k, the induced subgraph on Sᶜ…

The proof, explained

We prove that 1 ≤ |I| by contradiction. Supposing |I| < 1 forces |I| = 0 and |S| = 0, so both the index set I and the barrier set S are empty. The cardinality condition on the component-barrier union then simplifies to |X| + |Y| = 2k, which directly contradicts the auxiliary theorem op1957_one_defect_empty_barrier_impossible ruling out an empty barrier under these hypotheses.

  1. Assuming the conclusion fails, both the index set I and the barrier set S are empty.

    We proceed by contradiction (by_contra), assuming ¬(1 ≤ |I|). In the natural numbers, this forces |I| = 0, which implies I = ∅ by Finset.card_eq_zero.mp. Since |S| = |I| by hypothesis hS, linear arithmetic (omega) yields |S| = 0, so S = ∅ as well.

    lines 22–27

    uses Finset.card_eq_zero.mp

      classical
      by_contra hn
      have hIcard : I.card=0 := by omega
      have hI : I=∅ := Finset.card_eq_zero.mp hIcard
      have hScard : S.card=0 := by omega
      have hS0 : S=∅ := Finset.card_eq_zero.mp hScard
  2. |X| + |Y| = 2k.

    Hypothesis hres states that |(X ∪ Y ∪ ⋃_{i ∈ I} T(i) ∪ S)| = 2k. Since I = ∅, the indexed union over I is empty, and since S = ∅, the entire union collapses to X ∪ Y. Because X and Y are disjoint (hXY), Finset.card_union_of_disjoint simplifies |X ∪ Y| to |X| + |Y|, establishing |X| + |Y| = 2k.

    lines 28–29

    uses Finset.card_union_of_disjoint

      have hsize : X.card+Y.card=2*k := by
        simpa [hI,hS0,Finset.card_union_of_disjoint hXY] using hres
  3. A contradiction is reached, completing the proof.

    We apply op1957_one_defect_empty_barrier_impossible, which establishes that under the ambient graph structure, degree bounds, factor-criticality, separator condition, and defect bound, it is impossible to have an empty barrier—that is, disjoint shores X and Y whose sizes sum to 2k.

    lines 30–32

    uses op1957_one_defect_empty_barrier_impossible

      exact op1957_one_defect_empty_barrier_impossible k c hc hkc G A B C D X Y
        hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD hcritB hdegree hsep
        x y hxA hyC hxX hyY hXY hsize hcross hdefect hsmallA
Finset.card_eq_zero.mp
If a finite set has cardinality 0, then it is the empty set.
Finset.card_union_of_disjoint
The cardinality of the union of two disjoint finite sets is the sum of their cardinalities.
op1957_one_defect_empty_barrier_impossible
Under the 5-by-odd degree, separator, factor-criticality, and one-defect hypotheses, no disjoint sets X and Y with cardinality sum 2k can satisfy the cross-edge and defect conditions.

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 op1957_one_defect_component_barrier_is_positive    {ι : Type*} [DecidableEq ι] (k c : ℕ) (hc : 7 ≤ c) (hkc : c ≤ k)    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (A B C D X Y S : Finset (Fin (4*k))) (I : Finset ι) (T : ι → 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 : ∀ 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 : ∀ S P Q : Finset (Fin (4*k)), P.Nonempty → Q.Nonempty →      Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ →      (∀ u ∈ P, ∀ v ∈ Q, ¬ G.Adj u v) → 2*k ≤ S.card)    (x y : Fin (4*k)) (hxA : x ∈ A) (hyC : y ∈ C) (hxX : x ∈ X) (hyY : y ∈ Y)    (hXY : Disjoint X Y) (hS : S.card=I.card)    (hres : (X ∪ Y ∪ I.biUnion T ∪ S).card=2*k)    (hcross : ∀ a ∈ X, ∀ b ∈ Y, G.Adj a b → a=x ∧ b=y)    (hdefect : (C.filter (fun w => ¬ G.Adj x w)).card ≤ 1)    (hsmallA : (X ∩ A).card ≤ 2) : 1 ≤ I.card := by  classical  by_contra hn  have hIcard : I.card=0 := by omega  have hI : I=∅ := Finset.card_eq_zero.mp hIcard  have hScard : S.card=0 := by omega  have hS0 : S=∅ := Finset.card_eq_zero.mp hScard  have hsize : X.card+Y.card=2*k := by    simpa [hI,hS0,Finset.card_union_of_disjoint hXY] using hres  exact op1957_one_defect_empty_barrier_impossible k c hc hkc G A B C D X Y    hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD hcritB hdegree hsep    x y hxA hyC hxX hyY hXY hsize hcross hdefect hsmallA
See it in the graphDiscuss this resultChallenge it