AFTD Auto-Formalizing Theoretical Domains

op1957_one_defect_factorcritical_two_numeric_bounds

theoremverified

Under the displayed four-block degree, factor-criticality and anticompleteness assumptions, the general one-defect factor-critical inequality holds; if the pool meets the five-vertex block, the sharper single-exception parity inequality also holds.

Statement

theorem op1957_one_defect_factorcritical_two_numeric_bounds
    {I : Type*} [DecidableEq I] (k : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
    (A B C D X Y : 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) (hsizeAB : A.card+B.card=2*k)
    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)
    (hcrit : is_k_factor_critical (G.induce {v | v ∈ B}) 1)
    (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)
    (K : Finset I) (T : I → Finset (Fin (4*k)))
    (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)
    (x y : Fin (4*k)) (hxA : x ∈ A) (hyC : y ∈ C) (hxX : x ∈ X) (hyY : y ∈ Y) :
    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) ∧
    ((U ∩ A).Nonempty →
      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 4
Used by 1

The proof, explained

The theorem proves two numeric transfer inequalities for a graph partitioned into four blocks A, B, C, D where G[B] is 1-factor-critical. The first bound is the general numeric transfer inequality, established directly by `op1957_one_defect_criticality_general_numeric_transfer`. For the second bound, assuming U = ⋃_{i ∈ K} T_i meets the 5-vertex block A at some vertex w ∈ T_j, the vertices x ∈ A ∩ X and y ∈ C ∩ Y provide two distinct non-neighbors of w outside B and outside all T_i; together with the degree bound on w, `op1957_two_defects_force_one_outside_group` forces all other components T_i (i ≠ j) to lie entirely inside B, which enables `op1957_one_defect_criticality_numeric_transfer` to establish the sharper single-exception parity inequality.

  1. |B| + 5 = 2k automation

    Since |A| = 5 and |A| + |B| = 2k, linear integer arithmetic immediately yields |B| + 5 = 2k.

    lines 29–31

      classical
      let U := K.biUnion T
      have hB : B.card+5=2*k := by omega
  2. The general numeric transfer inequality holds: |K| + [|X ∩ B| is odd] + |X ∩ B| + |Y ∩ B| + |U ∩ B| + 5 ≤ 2k + |U ∩ A| + |U ∩ C| + |U ∩ D|.

    The main goal is a conjunction of two inequalities. Splitting it produces two subgoals; the first is resolved directly by applying `op1957_one_defect_criticality_general_numeric_transfer`, whose premises match the given graph partition, anticompleteness, and factor-criticality assumptions.

    lines 32–35

    uses op1957_one_defect_criticality_general_numeric_transfer

      refine ⟨?_,?_⟩
      · exact op1957_one_defect_criticality_general_numeric_transfer G A B C D X Y
          hAB hAC hAD hBC hBD hCD hcover k hB K T hcrit hXY hXT hYT hTT
          hantiXY hantiXT hantiYT hantiTT hYB hoddT
  3. There exist an index j ∈ K and a vertex w ∈ T_j ∩ A.

    To prove the second conjunct, we assume that U ∩ A is nonempty. We choose a witness vertex w ∈ U ∩ A, meaning w ∈ U and w ∈ A. Unfolding U = ⋃_{i ∈ K} T_i gives an index j ∈ K such that w ∈ T_j.

    lines 36–40

    uses Finset.mem_inter.mp, Finset.mem_biUnion.mp

      · intro hUA
        obtain ⟨w,hw⟩ := hUA
        have hwU := (Finset.mem_inter.mp hw).1
        have hwA := (Finset.mem_inter.mp hw).2
        obtain ⟨j,hj,hwT⟩ := Finset.mem_biUnion.mp hwU
  4. None of the vertices w, x, or y belongs to B.

    Because A and B are disjoint, the elements w ∈ A and x ∈ A cannot belong to B. Likewise, because C and B are disjoint, y ∈ C cannot belong to B.

    lines 41–43

    uses Finset.disjoint_left.mp

        have hwB : w ∉ B := fun h => Finset.disjoint_left.mp hAB hwA h
        have hxB : x ∉ B := fun h => Finset.disjoint_left.mp hAB hxA h
        have hyB : y ∉ B := fun h => Finset.disjoint_left.mp hBC h hyC
  5. The vertices w, x, and y are pairwise distinct: x ≠ w, y ≠ w, and x ≠ y.

    If x = w, then x ∈ X would belong to T_j, contradicting the disjointness of X and T_j. If y = w, then y ∈ Y would belong to T_j, contradicting the disjointness of Y and T_j. If x = y, then x ∈ A would belong to C, contradicting the disjointness of A and C.

    lines 44–52

    uses Finset.disjoint_left.mp

        have hxw : x ≠ w := by
          intro he; subst x
          exact Finset.disjoint_left.mp (hXT j hj) hxX hwT
        have hyw : y ≠ w := by
          intro he; subst y
          exact Finset.disjoint_left.mp (hYT j hj) hyY hwT
        have hxy : x ≠ y := by
          intro he; subst x
          exact Finset.disjoint_left.mp hAC hxA hyC
  6. The vertex w is adjacent to neither x nor y.

    Since w ∈ T_j and x ∈ X, the anticompleteness hypothesis between X and T_j implies ¬G.Adj(w, x). Similarly, since y ∈ Y, anticompleteness between Y and T_j implies ¬G.Adj(w, y).

    lines 53–54

        have hnx : ¬ G.Adj w x := fun h => hantiXT j hj x hxX w hwT h.symm
        have hny : ¬ G.Adj w y := fun h => hantiYT j hj y hyY w hwT h.symm
  7. Neither x nor y belongs to any component T_i for i ∈ K.

    For any i ∈ K, disjointness of X from T_i implies x ∉ T_i (since x ∈ X), and disjointness of Y from T_i implies y ∉ T_i (since y ∈ Y).

    lines 55–60

    uses Finset.disjoint_left.mp

        have hxT : ∀ i ∈ K, x ∉ T i := by
          intro i hi hx
          exact Finset.disjoint_left.mp (hXT i hi) hxX hx
        have hyT : ∀ i ∈ K, y ∉ T i := by
          intro i hi hy
          exact Finset.disjoint_left.mp (hYT i hi) hyY hy
  8. The graph vertex count satisfies |V| = |B| + (2k+4) + 1, and the degree of w satisfies 2k+4 ≤ d(w) + 2. automation

    The vertex set Fin(4k) has cardinality 4k. Since |B| + 5 = 2k, we have 4k = |B| + (2k+4) + 1, defining the defect parameter d = 2k+4. By the global degree hypothesis d(w) ≥ 2k+2, linear arithmetic gives 2k+4 ≤ d(w) + 2.

    lines 61–64

    uses Fintype.card_fin

        have hsize : Fintype.card (Fin (4*k)) = B.card+(2*k+4)+1 := by
          simp only [Fintype.card_fin]
          omega
        have hdegree' : 2*k+4 ≤ (G.neighborFinset w).card+2 := by have hh := hdegree w; omega
  9. For every index i ∈ K distinct from j, the component T_i is entirely contained in B.

    We invoke `op1957_two_defects_force_one_outside_group` with d = 2k+4. The vertex w ∈ T_j ∖ B has no neighbors in B (since w ∈ A and there are no edges between A and B), its degree satisfies 2k+4 ≤ d(w) + 2, and x, y are two distinct non-neighbors of w outside B and outside all components T_i. The lemma deduces that every other component T_i (for i ≠ j) is a subset of B.

    lines 65–66

    uses op1957_two_defects_force_one_outside_group

        have hother := op1957_two_defects_force_one_outside_group G B (2*k+4) hsize K T j hj
          hantiTT w x y hwT hwB (hnoAB w hwA) hdegree' hxB hyB hxw hyw hxy hnx hny hxT hyT hTT
  10. The second conjunct holds: if U ∩ A is nonempty, then |K| + [|U ∩ (A ∪ C ∪ D)| is even] + [|X ∩ B| is odd] + |X ∩ B| + |Y ∩ B| + |U ∩ B| + 4 ≤ 2k.

    With the distinguished index j ∈ K and the guarantee that all other T_i are contained in B, `op1957_one_defect_criticality_numeric_transfer` applies to complete the proof of the single-exception parity bound.

    lines 67–69

    uses op1957_one_defect_criticality_numeric_transfer

        exact op1957_one_defect_criticality_numeric_transfer G A B C D X Y
          hAB hAC hAD hBC hBD hCD hcover k hB K T hcrit hXY hXT hYT hTT
          hantiXY hantiXT hantiYT hantiTT hYB hoddT j hj (fun i hi hij => hother i hi hij.symm)
Finset.mem_inter.mp
If x belongs to the intersection S ∩ T, then x ∈ S and x ∈ T.
Finset.mem_biUnion.mp
If x belongs to a union ⋃_{i ∈ K} T_i, then x ∈ T_j for some j ∈ K.
Finset.disjoint_left.mp
If S and T are disjoint, then any element of S does not belong to T.
Fintype.card_fin
The finite type Fin n has cardinality n.
op1957_one_defect_criticality_general_numeric_transfer
Under the four-block partition and anticompleteness assumptions with G[B] 1-factor-critical and odd components T_i, the general numeric transfer inequality holds.
op1957_two_defects_force_one_outside_group
In a graph of size |B| + d + 1 with anticomplete odd components T_i, a vertex w ∈ T_j ∖ B with no neighbors in B and degree at least d - 2, along with two defect vertices x, y ∉ B ∪ ⋃_i T_i non-adjacent to w, forces all other components T_i (i ≠ j) to be entirely contained in B.
op1957_one_defect_criticality_numeric_transfer
Under the one-defect factor-criticality transfer assumptions, if all components T_i except possibly one T_j are contained in B, then the single-exception parity inequality holds.

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_factorcritical_two_numeric_bounds    {I : Type*} [DecidableEq I] (k : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (A B C D X Y : 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) (hsizeAB : A.card+B.card=2*k)    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)    (hcrit : is_k_factor_critical (G.induce {v | v ∈ B}) 1)    (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)    (K : Finset I) (T : I → Finset (Fin (4*k)))    (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)    (x y : Fin (4*k)) (hxA : x ∈ A) (hyC : y ∈ C) (hxX : x ∈ X) (hyY : y ∈ Y) :    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) ∧    ((U ∩ A).Nonempty →      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  have hB : B.card+5=2*k := by omega  refine ⟨?_,?_⟩  · exact op1957_one_defect_criticality_general_numeric_transfer G A B C D X Y      hAB hAC hAD hBC hBD hCD hcover k hB K T hcrit hXY hXT hYT hTT      hantiXY hantiXT hantiYT hantiTT hYB hoddT  · intro hUA    obtain ⟨w,hw⟩ := hUA    have hwU := (Finset.mem_inter.mp hw).1    have hwA := (Finset.mem_inter.mp hw).2    obtain ⟨j,hj,hwT⟩ := Finset.mem_biUnion.mp hwU    have hwB : w ∉ B := fun h => Finset.disjoint_left.mp hAB hwA h    have hxB : x ∉ B := fun h => Finset.disjoint_left.mp hAB hxA h    have hyB : y ∉ B := fun h => Finset.disjoint_left.mp hBC h hyC    have hxw : x ≠ w := by      intro he; subst x      exact Finset.disjoint_left.mp (hXT j hj) hxX hwT    have hyw : y ≠ w := by      intro he; subst y      exact Finset.disjoint_left.mp (hYT j hj) hyY hwT    have hxy : x ≠ y := by      intro he; subst x      exact Finset.disjoint_left.mp hAC hxA hyC    have hnx : ¬ G.Adj w x := fun h => hantiXT j hj x hxX w hwT h.symm    have hny : ¬ G.Adj w y := fun h => hantiYT j hj y hyY w hwT h.symm    have hxT : ∀ i ∈ K, x ∉ T i := by      intro i hi hx      exact Finset.disjoint_left.mp (hXT i hi) hxX hx    have hyT : ∀ i ∈ K, y ∉ T i := by      intro i hi hy      exact Finset.disjoint_left.mp (hYT i hi) hyY hy    have hsize : Fintype.card (Fin (4*k)) = B.card+(2*k+4)+1 := by      simp only [Fintype.card_fin]      omega    have hdegree' : 2*k+4 ≤ (G.neighborFinset w).card+2 := by have hh := hdegree w; omega    have hother := op1957_two_defects_force_one_outside_group G B (2*k+4) hsize K T j hj      hantiTT w x y hwT hwB (hnoAB w hwA) hdegree' hxB hyB hxw hyw hxy hnx hny hxT hyT hTT    exact op1957_one_defect_criticality_numeric_transfer G A B C D X Y      hAB hAC hAD hBC hBD hCD hcover k hB K T hcrit hXY hXT hYT hTT      hantiXY hantiXT hantiYT hantiTT hYB hoddT j hj (fun i hi hij => hother i hi hij.symm)
See it in the graphDiscuss this resultChallenge it