AFTD Auto-Formalizing Theoretical Domains

op1957_one_defect_criticality_general_numeric_transfer

theoremverified

The displayed factor-critical and four-block hypotheses imply the general odd-group inequality in the one-defect scalar contradiction.

Statement

theorem op1957_one_defect_criticality_general_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)
    :
    let U := K.biUnion T
    K.card + (if (X ∩ B).card%2=1 then 1 else 0) +
      (X ∩ B).card+(Y ∩ B).card+(U ∩ B).card+5 ≤
      2*k + (U ∩ A).card+(U ∩ C).card+(U ∩ D).card
Source
OP-1957: one-defect boundary graph-to-count transfer, arXiv:2611.22690
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
  • op1957_factorcritical_general_group_defect_boundUnder the displayed factor-critical block and anticomplete shore hypotheses, the number of odd groups plus the first-shore odd indicator…
  • finset_card_eq_sum_four_block_interIf four pairwise disjoint finite sets cover a finite type, every finite set has size equal to the sum of the sizes of its intersections…
  • 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ᶜ…
Used by 1

The proof, explained

The proof transfers a defect bound for factor-critical graphs to a numerical scalar inequality. First, it invokes op1957_factorcritical_general_group_defect_bound to obtain an upper bound on |K| + [|X ∩ B| is odd] + |B ∩ R| in terms of |B| + |U \ B|, where U = ⋃_{i ∈ K} T_i and R = X ∪ Y ∪ U. Next, using pairwise disjointness, it expands |B ∩ R| into |X ∩ B| + |Y ∩ B| + |U ∩ B| and rewrites |U \ B| as |U ∩ A| + |U ∩ C| + |U ∩ D| via the partition {A, B, C, D}. Finally, substituting these sums into the defect bound and applying |B| + 5 = 2k completes the inequality by linear arithmetic.

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

    We define U = ⋃_{i ∈ K} T_i and R = X ∪ Y ∪ U. Under the 1-factor-criticality of the subgraph induced by B and the disjointness, oddness, and anti-adjacency hypotheses on X, Y, and the family (T_i)_{i ∈ K}, the theorem op1957_factorcritical_general_group_defect_bound provides this upper bound on |B ∩ R|.

    lines 23–29

    uses op1957_factorcritical_general_group_defect_bound

      classical
      let U := K.biUnion T
      let R := X ∪ Y ∪ U
      have hbound := op1957_factorcritical_general_group_defect_bound G B X Y K T
        hcrit hXY hXT hYT hTT hantiXY hantiXT hantiYT hantiTT hYB hoddT
      change K.card + (if Odd ((X ∩ B).card) then 1 else 0) +
          (B ∩ R).card ≤ B.card + (U \ B).card at hbound
  2. The sets X ∩ B, Y ∩ B, and U ∩ B are pairwise disjoint, and (X ∪ Y) ∩ B is disjoint from U ∩ B.

    Because X and Y are disjoint from each T_i for i ∈ K, Finset.disjoint_biUnion_right implies they are disjoint from U. By Finset.disjoint_union_left.mpr, their union X ∪ Y is disjoint from U. Intersecting with B preserves disjointness (using Finset.disjoint_of_subset_left, Finset.disjoint_of_subset_right, and Finset.inter_subset_left), so X ∩ B and Y ∩ B are disjoint, as are (X ∪ Y) ∩ B and U ∩ B.

    lines 30–36

    uses Finset.disjoint_biUnion_right, Finset.disjoint_union_left.mpr, Finset.disjoint_of_subset_left, Finset.disjoint_of_subset_right, Finset.inter_subset_left

      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)
  3. |B ∩ R| = |X ∩ B| + |Y ∩ B| + |U ∩ B|.

    By definition, R = (X ∪ Y) ∪ U. Intersecting with B distributes across the unions via Finset.union_inter_distrib_right and Finset.inter_comm. Using the disjointness properties proved in the previous step, the cardinality of the union is the sum of the cardinalities via Finset.card_union_of_disjoint.

    lines 37–41

    uses Finset.inter_comm, Finset.union_inter_distrib_right, Finset.card_union_of_disjoint

      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]
  4. |U \ B| = |U ∩ A| + |U ∩ C| + |U ∩ D|.

    Because A, B, C, D partition the universe, finset_card_eq_sum_four_block_inter gives |U| = |U ∩ A| + |U ∩ B| + |U ∩ C| + |U ∩ D|. Furthermore, Finset.card_inter_add_card_sdiff states that |U ∩ B| + |U \ B| = |U|. Subtracting |U ∩ B| from both sides via linear arithmetic (omega) yields the expression 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
  5. The desired numeric transfer inequality holds.

    Rewriting the defect bound hbound with the identities for |B ∩ R| and |U \ B|, converting Odd to % 2 = 1 via Nat.odd_iff, and adding 5 to both sides allows substituting |B| + 5 = 2 * k. The resulting linear inequality is solved directly by omega.

    lines 45–50

    uses Nat.odd_iff

      rw [hinter,hout] at hbound
      simp only [Nat.odd_iff] at hbound
      change K.card + (if (X ∩ B).card%2=1 then 1 else 0) +
          (X ∩ B).card+(Y ∩ B).card+(U ∩ B).card+5 ≤
          2*k + (U ∩ A).card+(U ∩ C).card+(U ∩ D).card
      omega
op1957_factorcritical_general_group_defect_bound
In a graph where the subgraph induced by B is 1-factor-critical, given pairwise disjoint sets X, Y and odd sets T_i (i ∈ K) with no edges between them, if Y ∩ B is non-empty, then |K| + [|X ∩ B| is odd] + |B ∩ (X ∪ Y ∪ ⋃_{i ∈ K} T_i)| ≤ |B| + |(⋃_{i ∈ K} T_i) \ B|.
Finset.disjoint_biUnion_right
A finite set is disjoint from a union of sets indexed by a finite set if and only if it is disjoint from each indexed set individually.
Finset.disjoint_union_left.mpr
If two sets are each disjoint from a third set, then their union is disjoint from the third set.
Finset.disjoint_of_subset_left
A subset of a set disjoint from t is also disjoint from t.
Finset.disjoint_of_subset_right
A set disjoint from u is also disjoint from any subset of u.
Finset.inter_subset_left
The intersection of two sets is a subset of the first set.
Finset.inter_comm
Intersection of finite sets is commutative.
Finset.union_inter_distrib_right
Intersection distributes over union from the right.
Finset.card_union_of_disjoint
The cardinality of the union of two disjoint finite sets is the sum of their cardinalities.
finset_card_eq_sum_four_block_inter
If four sets form a pairwise disjoint partition of the universe, then the cardinality of any set is the sum of the cardinalities of its intersections with the four blocks.
Finset.card_inter_add_card_sdiff
For any finite sets s and t, |s ∩ t| + |s \ t| = |s|.
Nat.odd_iff
A natural number is odd if and only if its remainder modulo 2 is 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_general_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)    :    let U := K.biUnion T    K.card + (if (X ∩ B).card%2=1 then 1 else 0) +      (X ∩ B).card+(Y ∩ B).card+(U ∩ B).card+5 ≤      2*k + (U ∩ A).card+(U ∩ C).card+(U ∩ D).card := by  classical  let U := K.biUnion T  let R := X ∪ Y ∪ U  have hbound := op1957_factorcritical_general_group_defect_bound G B X Y K T    hcrit hXY hXT hYT hTT hantiXY hantiXT hantiYT hantiTT hYB hoddT  change K.card + (if Odd ((X ∩ B).card) then 1 else 0) +      (B ∩ R).card ≤ B.card + (U \ B).card 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.odd_iff] at hbound  change K.card + (if (X ∩ B).card%2=1 then 1 else 0) +      (X ∩ B).card+(Y ∩ B).card+(U ∩ B).card+5 ≤      2*k + (U ∩ A).card+(U ∩ C).card+(U ∩ D).card  omega
See it in the graphDiscuss this resultChallenge it