AFTD Auto-Formalizing Theoretical Domains

op1957_one_defect_criticality_numeric_transfer

theoremverified

The displayed factor-critical, four-block and single-exception hypotheses imply the sharp parity inequality in the one-defect scalar contradiction.

Statement

theorem op1957_one_defect_criticality_numeric_transfer
    {V I : Type*} [Fintype V] [DecidableEq V] [DecidableEq I]
    (G : SimpleGraph V) [DecidableRel G.Adj] (A B C D X Y : Finset V)
    (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)
    (k : ℕ) (hB : B.card + 5 = 2*k)
    (K : Finset I) (T : I → Finset V)
    (hcrit : is_k_factor_critical (G.induce {v | v ∈ B}) 1)
    (hXY : Disjoint X Y)
    (hXT : ∀ i ∈ K, Disjoint X (T i)) (hYT : ∀ i ∈ K, Disjoint Y (T i))
    (hTT : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → Disjoint (T i) (T j))
    (hantiXY : ∀ u ∈ X ∩ B, ∀ v ∈ Y ∩ B, ¬ G.Adj u v)
    (hantiXT : ∀ i ∈ K, ∀ u ∈ X, ∀ v ∈ T i, ¬ G.Adj u v)
    (hantiYT : ∀ i ∈ K, ∀ u ∈ Y, ∀ v ∈ T i, ¬ G.Adj u v)
    (hantiTT : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → ∀ u ∈ T i, ∀ v ∈ T j, ¬ G.Adj u v)
    (hYB : (Y ∩ B).Nonempty) (hoddT : ∀ i ∈ K, Odd (T i).card)
    (j : I) (hj : j ∈ K) (hother : ∀ i ∈ K, i ≠ j → T i ⊆ B) :
    let U := K.biUnion T
    K.card + (if ((U ∩ A).card+(U ∩ C).card+(U ∩ D).card)%2=0 then 1 else 0) +
      (if (X ∩ B).card%2=1 then 1 else 0) +
      (X ∩ B).card+(Y ∩ B).card+(U ∩ B).card+4 ≤ 2*k
Source
OP-1957: one-defect boundary graph-to-count transfer, arXiv:2611.22690
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
Used by 1

The proof, explained

The proof transfers the defect parity bound op1957_factorcritical_single_exception_parity_bound to the four-block partition setting. It decomposes |B ∩ (X ∪ Y ∪ U)| into |X ∩ B| + |Y ∩ B| + |U ∩ B| using the pairwise disjointness of X, Y, and U, and expresses the external size |U \ B| as |U ∩ A| + |U ∩ C| + |U ∩ D| using the four-block partition of the universe. Converting evenness and oddness into modulo-2 conditions and adding 4 to both sides completes the inequality, matching |B| + 5 with 2*k.

  1. The parity bound holds: |K| + (if |U \ B| is even then 1 else 0) + (if |X ∩ B| is odd then 1 else 0) + |B ∩ R| ≤ |B| + 1, where U = ⋃_{i ∈ K} T_i and R = X ∪ Y ∪ U.

    We define U = ⋃_{i ∈ K} T_i and R = X ∪ Y ∪ U. Because G induced on B is 1-factor-critical, X and Y are disjoint, the components T_i are pairwise disjoint and odd, only the single component T_j may not be contained in B, and all anti-adjacency conditions are met, the lemma op1957_factorcritical_single_exception_parity_bound applies directly to yield the upper bound on |K| plus the two parity indicator bonuses plus |B ∩ R|.

    lines 23–29

    uses op1957_factorcritical_single_exception_parity_bound

      classical
      let U := K.biUnion T
      let R := X ∪ Y ∪ U
      have hbound := op1957_factorcritical_single_exception_parity_bound G B X Y K T
        hcrit hXY hXT hYT hTT hantiXY hantiXT hantiYT hantiTT hYB hoddT j hj hother
      change K.card + (if Even (U \ B).card then 1 else 0) +
          (if Odd ((X ∩ B).card) then 1 else 0) + (B ∩ R).card ≤ B.card + 1 at hbound
  2. The intersection size decomposes as |B ∩ R| = |X ∩ B| + |Y ∩ B| + |U ∩ B|.

    Since X and Y are disjoint from each T_i, Finset.disjoint_biUnion_right implies they are disjoint from U, and therefore X ∪ Y is disjoint from U by Finset.disjoint_union_left.mpr. Passing disjointness to intersections with B via Finset.disjoint_of_subset_left and Finset.disjoint_of_subset_right shows that X ∩ B, Y ∩ B, and U ∩ B are pairwise disjoint. Distributing intersection over union and applying Finset.card_union_of_disjoint shows that |B ∩ R| = |(X ∪ Y ∪ U) ∩ B| is the sum of these three cardinalities.

    lines 30–41

    uses Finset.disjoint_biUnion_right, Finset.disjoint_union_left.mpr, Finset.disjoint_of_subset_left, Finset.inter_subset_left, Finset.disjoint_of_subset_right, Finset.inter_comm, Finset.union_inter_distrib_right, Finset.card_union_of_disjoint

      have hXU : Disjoint X U := (Finset.disjoint_biUnion_right X K T).mpr hXT
      have hYU : Disjoint Y U := (Finset.disjoint_biUnion_right Y K T).mpr hYT
      have hXYU : Disjoint (X ∪ Y) U := Finset.disjoint_union_left.mpr ⟨hXU,hYU⟩
      have hXB_YB : Disjoint (X ∩ B) (Y ∩ B) :=
        Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hXY)
      have hXYB_UB : Disjoint ((X ∪ Y) ∩ B) (U ∩ B) :=
        Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hXYU)
      have hinter : (B ∩ R).card = (X ∩ B).card+(Y ∩ B).card+(U ∩ B).card := by
        rw [Finset.inter_comm B R]
        dsimp only [R]
        rw [Finset.union_inter_distrib_right,Finset.card_union_of_disjoint hXYB_UB,
          Finset.union_inter_distrib_right,Finset.card_union_of_disjoint hXB_YB]
  3. The number of vertices of U outside B satisfies |U \ B| = |U ∩ A| + |U ∩ C| + |U ∩ D|.

    Since A, B, C, D partition the universe into four pairwise disjoint blocks, finset_card_eq_sum_four_block_inter gives |U| = |U ∩ A| + |U ∩ B| + |U ∩ C| + |U ∩ D|. Combined with |U| = |U ∩ B| + |U \ B| from Finset.card_inter_add_card_sdiff, subtracting |U ∩ B| gives the formula for |U \ B|.

    lines 42–44

    uses finset_card_eq_sum_four_block_inter, Finset.card_inter_add_card_sdiff

      have hsplit := finset_card_eq_sum_four_block_inter A B C D U hAB hAC hAD hBC hBD hCD hcover
      have hdiff := Finset.card_inter_add_card_sdiff U B
      have hout : (U \ B).card = (U ∩ A).card+(U ∩ C).card+(U ∩ D).card := by omega
  4. The target inequality holds: |K| + (if (|U ∩ A| + |U ∩ C| + |U ∩ D|) % 2 = 0 then 1 else 0) + (if |X ∩ B| % 2 = 1 then 1 else 0) + |X ∩ B| + |Y ∩ B| + |U ∩ B| + 4 ≤ 2*k.

    Substituting the decomposition of |B ∩ R| and the expression for |U \ B| into the parity bound, and rewriting Even and Odd in terms of modulo 2 arithmetic using Nat.even_iff and Nat.odd_iff, transforms the left-hand side into the sum in the goal without the '+ 4'. Adding 4 to both sides yields an upper bound of |B| + 1 + 4 = |B| + 5 on the right-hand side, which equals 2*k by hypothesis hB. Linear arithmetic (omega) finishes the proof.

    lines 45–50

    uses Nat.even_iff, Nat.odd_iff

      rw [hinter,hout] at hbound
      simp only [Nat.even_iff,Nat.odd_iff] at hbound
      change K.card + (if ((U ∩ A).card+(U ∩ C).card+(U ∩ D).card)%2=0 then 1 else 0) +
          (if (X ∩ B).card%2=1 then 1 else 0) +
          (X ∩ B).card+(Y ∩ B).card+(U ∩ B).card+4 ≤ 2*k
      omega
op1957_factorcritical_single_exception_parity_bound
For a 1-factor-critical induced subgraph on B with pairwise disjoint odd components T_i where all but at most one exception T_j are contained in B, and disjoint sets X and Y with the required anti-adjacency conditions, the parity bound |K| + (if |U \ B| is even then 1 else 0) + (if |X ∩ B| is odd then 1 else 0) + |B ∩ (X ∪ Y ∪ U)| ≤ |B| + 1 holds, where U = ⋃_{i ∈ K} T_i.
Finset.disjoint_biUnion_right
A set s is disjoint from an indexed union ⋃_{i ∈ t} f(i) if and only if s is disjoint from each piece f(i) for all i ∈ t.
Finset.disjoint_union_left.mpr
If s is disjoint from u and t is disjoint from u, then s ∪ t is disjoint from u.
Finset.disjoint_of_subset_left
If u and t are disjoint, and s ⊆ u, then s and t are disjoint.
Finset.inter_subset_left
The intersection s₁ ∩ s₂ is a subset of s₁.
Finset.disjoint_of_subset_right
If s and u are disjoint, and t ⊆ u, then s and t are disjoint.
Finset.inter_comm
Intersection of sets is commutative: s₁ ∩ s₂ = s₂ ∩ s₁.
Finset.union_inter_distrib_right
Intersection distributes over union from the right: (s ∪ t) ∩ u = (s ∩ u) ∪ (t ∩ u).
Finset.card_union_of_disjoint
The cardinality of the union of two disjoint finite sets is the sum of their cardinalities: |s ∪ t| = |s| + |t|.
finset_card_eq_sum_four_block_inter
If four pairwise disjoint sets A, B, C, D partition the universe, then any set P satisfies |P| = |P ∩ A| + |P ∩ B| + |P ∩ C| + |P ∩ D|.
Finset.card_inter_add_card_sdiff
For any sets s and t, |s ∩ t| + |s \ t| = |s|.
Nat.even_iff
A natural number n is even if and only if n % 2 = 0.
Nat.odd_iff
A natural number n is odd if and only if n % 2 = 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 op1957_one_defect_criticality_numeric_transfer    {V I : Type*} [Fintype V] [DecidableEq V] [DecidableEq I]    (G : SimpleGraph V) [DecidableRel G.Adj] (A B C D X Y : Finset V)    (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)    (k : ℕ) (hB : B.card + 5 = 2*k)    (K : Finset I) (T : I → Finset V)    (hcrit : is_k_factor_critical (G.induce {v | v ∈ B}) 1)    (hXY : Disjoint X Y)    (hXT : ∀ i ∈ K, Disjoint X (T i)) (hYT : ∀ i ∈ K, Disjoint Y (T i))    (hTT : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → Disjoint (T i) (T j))    (hantiXY : ∀ u ∈ X ∩ B, ∀ v ∈ Y ∩ B, ¬ G.Adj u v)    (hantiXT : ∀ i ∈ K, ∀ u ∈ X, ∀ v ∈ T i, ¬ G.Adj u v)    (hantiYT : ∀ i ∈ K, ∀ u ∈ Y, ∀ v ∈ T i, ¬ G.Adj u v)    (hantiTT : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → ∀ u ∈ T i, ∀ v ∈ T j, ¬ G.Adj u v)    (hYB : (Y ∩ B).Nonempty) (hoddT : ∀ i ∈ K, Odd (T i).card)    (j : I) (hj : j ∈ K) (hother : ∀ i ∈ K, i ≠ j → T i ⊆ B) :    let U := K.biUnion T    K.card + (if ((U ∩ A).card+(U ∩ C).card+(U ∩ D).card)%2=0 then 1 else 0) +      (if (X ∩ B).card%2=1 then 1 else 0) +      (X ∩ B).card+(Y ∩ B).card+(U ∩ B).card+4 ≤ 2*k := by  classical  let U := K.biUnion T  let R := X ∪ Y ∪ U  have hbound := op1957_factorcritical_single_exception_parity_bound G B X Y K T    hcrit hXY hXT hYT hTT hantiXY hantiXT hantiYT hantiTT hYB hoddT j hj hother  change K.card + (if Even (U \ B).card then 1 else 0) +      (if Odd ((X ∩ B).card) then 1 else 0) + (B ∩ R).card ≤ B.card + 1 at hbound  have hXU : Disjoint X U := (Finset.disjoint_biUnion_right X K T).mpr hXT  have hYU : Disjoint Y U := (Finset.disjoint_biUnion_right Y K T).mpr hYT  have hXYU : Disjoint (X ∪ Y) U := Finset.disjoint_union_left.mpr ⟨hXU,hYU⟩  have hXB_YB : Disjoint (X ∩ B) (Y ∩ B) :=    Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hXY)  have hXYB_UB : Disjoint ((X ∪ Y) ∩ B) (U ∩ B) :=    Finset.disjoint_of_subset_left Finset.inter_subset_left (Finset.disjoint_of_subset_right Finset.inter_subset_left hXYU)  have hinter : (B ∩ R).card = (X ∩ B).card+(Y ∩ B).card+(U ∩ B).card := by    rw [Finset.inter_comm B R]    dsimp only [R]    rw [Finset.union_inter_distrib_right,Finset.card_union_of_disjoint hXYB_UB,      Finset.union_inter_distrib_right,Finset.card_union_of_disjoint hXB_YB]  have hsplit := finset_card_eq_sum_four_block_inter A B C D U hAB hAC hAD hBC hBD hCD hcover  have hdiff := Finset.card_inter_add_card_sdiff U B  have hout : (U \ B).card = (U ∩ A).card+(U ∩ C).card+(U ∩ D).card := by omega  rw [hinter,hout] at hbound  simp only [Nat.even_iff,Nat.odd_iff] at hbound  change K.card + (if ((U ∩ A).card+(U ∩ C).card+(U ∩ D).card)%2=0 then 1 else 0) +      (if (X ∩ B).card%2=1 then 1 else 0) +      (X ∩ B).card+(Y ∩ B).card+(U ∩ B).card+4 ≤ 2*k  omega
See it in the graphDiscuss this resultChallenge it