AFTD Auto-Formalizing Theoretical Domains

op1957_factorcritical_endpoint_group_parity_bound

theoremverified

For disjoint endpoint shores and mutually anticomplete barrier groups in a factor-critical block, provided the second shore meets the block, the number of odd block intersections of the first shore and barrier groups plus the block vertices in their union is at most the block size.

Statement

theorem op1957_factorcritical_endpoint_group_parity_bound
    {V I : Type*} [Fintype V] [DecidableEq V] [DecidableEq I]
    (G : SimpleGraph V) [DecidableRel G.Adj] (B X Y : Finset V)
    (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) :
    let R := X ∪ Y ∪ K.biUnion T
    (K.filter (fun i => Odd ((T i) ∩ B).card)).card +
      (if Odd ((X ∩ B).card) then 1 else 0) + (B ∩ R).card ≤ B.card
Source
OP-1957: boundary minimum-degree reduction, arXiv:2611.22690
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
Used by 2

The proof, explained

The proof applies the odd-components bound for factor-critical blocks (op1957_factorcritical_block_odd_groups_inside_bound) to the region R = X ∪ Y ∪ ⋃_{i ∈ K} T_i. The odd-sized intersections T_i ∩ B, together with X ∩ B when its size is odd, are unified into a single family F of pairwise disjoint odd subsets of B ∩ R that are anticomplete to the remainder of B ∩ R. Because Y ∩ B is nonempty and Y is disjoint from X and all barrier groups, any vertex z ∈ Y ∩ B serves as an element of B ∩ R lying outside all sets in F. The odd-components bound yields |J| ≤ |B \ R|, which rearranges via |B \ R| + |B ∩ R| = |B| to the desired inequality.

  1. Define the region R, the set E of barrier groups with odd block intersection, the extended index set J, and the family of sets F.

    We define R = X ∪ Y ∪ ⋃_{i ∈ K} T_i and let E ⊆ K index those barrier groups whose intersection with B has odd size. We form the combined index set J ⊆ Option I by taking some(i) for each i ∈ E, together with none if |X ∩ B| is odd. The family F is defined on Option I by setting F(none) = X ∩ B and F(some i) = T_i ∩ B.

    lines 17–24

      classical
      dsimp only
      let R := X ∪ Y ∪ K.biUnion T
      let E := K.filter (fun i => Odd ((T i) ∩ B).card)
      let J : Finset (Option I) := E.image some ∪ (if Odd ((X ∩ B).card) then {none} else ∅)
      let F : Option I → Finset V := fun i => match i with
        | none => X ∩ B
        | some i => T i ∩ B
  2. Characterize membership in E and J.

    By definition of filtering, E ⊆ K. A case split on whether |X ∩ B| is odd establishes that some(i) ∈ J if and only if i ∈ E, and none ∈ J if and only if |X ∩ B| is odd.

    lines 25–30

    uses Finset.filter_subset

      have hEsub : E ⊆ K := Finset.filter_subset _ _
      have hJmem : ∀ i, some i ∈ J ↔ i ∈ E := by
        intro i
        by_cases ho : Odd ((X ∩ B).card) <;> simp [J,ho]
      have hJnone : none ∈ J ↔ Odd ((X ∩ B).card) := by
        by_cases ho : Odd ((X ∩ B).card) <;> simp [J,ho]
  3. Each set F(i) for i ∈ J is contained in B ∩ R.

    For any i ∈ J and u ∈ F(i), we check the cases: if i = none, then u ∈ X ∩ B ⊆ B ∩ R; if i = some(i'), then i' ∈ E ⊆ K and u ∈ T_{i'} ∩ B ⊆ B ∩ R. In both cases u ∈ B ∩ R.

    lines 31–41

    uses Finset.mem_inter, Finset.mem_inter.mpr, Finset.mem_union_left, Finset.mem_union_right, Finset.mem_biUnion.mpr

      have hsub : ∀ i ∈ J, F i ⊆ B ∩ R := by
        intro i hi u hu
        cases i with
        | none =>
          simp only [F,Finset.mem_inter] at hu
          exact Finset.mem_inter.mpr ⟨hu.2,Finset.mem_union_left _ (Finset.mem_union_left _ hu.1)⟩
        | some i =>
          have hiE := (hJmem i).mp hi
          have hiK := hEsub hiE
          simp only [F,Finset.mem_inter] at hu
          exact Finset.mem_inter.mpr ⟨hu.2,Finset.mem_union_right _ (Finset.mem_biUnion.mpr ⟨i,hiK,hu.1⟩)⟩
  4. Each set F(i) for i ∈ J has odd cardinality.

    If i = none, none ∈ J implies that |X ∩ B| is odd. If i = some(i'), then i' ∈ E, which means |T_{i'} ∩ B| is odd by definition of E.

    lines 42–46

    uses Finset.mem_filter.mp

      have hodd : ∀ i ∈ J, Odd (F i).card := by
        intro i hi
        cases i with
        | none => simpa [F] using (hJnone.mp hi)
        | some i => exact (Finset.mem_filter.mp ((hJmem i).mp hi)).2
  5. The sets F(i) for distinct i ∈ J are pairwise disjoint.

    For distinct i, j ∈ J, if one is none and the other is some(k), disjointness of X ∩ B and T_k ∩ B follows from the assumption that X is disjoint from T_k. If both are of the form some(i') and some(j') with i' ≠ j', disjointness follows from the mutual disjointness of the barrier groups T_{i'} and T_{j'}. Both cannot be none since i ≠ j.

    lines 47–67

    uses False.elim, Finset.disjoint_of_subset_left, Finset.disjoint_of_subset_right, Finset.inter_subset_left

      have hdis : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → Disjoint (F i) (F j) := by
        intro i hi j hj hij
        cases i with
        | none =>
          cases j with
          | none => exact False.elim (hij rfl)
          | some j =>
            have hjK := hEsub ((hJmem j).mp hj)
            exact Finset.disjoint_of_subset_left Finset.inter_subset_left
              (Finset.disjoint_of_subset_right Finset.inter_subset_left (hXT j hjK))
        | some i =>
          have hiK := hEsub ((hJmem i).mp hi)
          cases j with
          | none =>
            exact Finset.disjoint_of_subset_left Finset.inter_subset_left
              (Finset.disjoint_of_subset_right Finset.inter_subset_left (hXT i hiK).symm)
          | some j =>
            have hjK := hEsub ((hJmem j).mp hj)
            have hij' : i ≠ j := by intro h; subst j; exact hij rfl
            exact Finset.disjoint_of_subset_left Finset.inter_subset_left
              (Finset.disjoint_of_subset_right Finset.inter_subset_left (hTT i hiK j hjK hij'))
  6. No edges in G connect any set F(i) to the rest of B ∩ R.

    Suppose u ∈ F(i) and v ∈ (B ∩ R) \ F(i) were adjacent. The vertex v lies in X, Y, or some T_j. In every case, this contradicts one of the anticompleteness hypotheses: between X and Y (if one vertex is in X and the other in Y), between X and T_k, between Y and T_k, or between distinct barrier groups T_{i'} and T_j. Hence no such edge exists.

    lines 68–93

    uses Finset.mem_inter.mp, Finset.mem_union.mp, Finset.mem_inter.mpr, Finset.mem_biUnion.mp

      have hanti : ∀ i ∈ J, ∀ u ∈ F i, ∀ v ∈ B ∩ R, v ∉ F i → ¬ G.Adj u v := by
        intro i hi u hu v hv hvF hadj
        have hvB := (Finset.mem_inter.mp hv).1
        have hvR := (Finset.mem_inter.mp hv).2
        have hvR' : v ∈ X ∪ Y ∪ K.biUnion T := hvR
        rcases Finset.mem_union.mp hvR' with hvXY | hvT
        · rcases Finset.mem_union.mp hvXY with hvX | hvY
          · cases i with
            | none => exact hvF (Finset.mem_inter.mpr ⟨hvX,hvB⟩)
            | some i =>
              have hiK := hEsub ((hJmem i).mp hi)
              exact hantiXT i hiK v hvX u (Finset.mem_inter.mp hu).1 hadj.symm
          · cases i with
            | none => exact hantiXY u hu v (Finset.mem_inter.mpr ⟨hvY,hvB⟩) hadj
            | some i =>
              have hiK := hEsub ((hJmem i).mp hi)
              exact hantiYT i hiK v hvY u (Finset.mem_inter.mp hu).1 hadj.symm
        · obtain ⟨j,hj,hvj⟩ := Finset.mem_biUnion.mp hvT
          cases i with
          | none => exact hantiXT j hj u (Finset.mem_inter.mp hu).1 v hvj hadj
          | some i =>
            have hiK := hEsub ((hJmem i).mp hi)
            have hij : i ≠ j := by
              intro he; subst j
              exact hvF (Finset.mem_inter.mpr ⟨hvj,hvB⟩)
            exact hantiTT i hiK j hj hij u (Finset.mem_inter.mp hu).1 v hvj hadj
  7. There is a witness vertex z ∈ B ∩ R that lies outside every F(i).

    Because Y ∩ B is nonempty, choose z ∈ Y ∩ B. Then z ∈ B and z ∈ Y ⊆ R. Since Y is disjoint from X and from every barrier group T_i, z cannot belong to X ∩ B = F(none) nor to any T_i ∩ B = F(some i).

    lines 94–104

    uses Finset.mem_inter.mp, Finset.mem_union_left, Finset.mem_union_right, Finset.disjoint_left.mp

      obtain ⟨z,hz⟩ := hYB
      have hzY := (Finset.mem_inter.mp hz).1
      have hzB := (Finset.mem_inter.mp hz).2
      have hzR : z ∈ R := Finset.mem_union_left _ (Finset.mem_union_right _ hzY)
      have hz : ∀ i ∈ J, z ∉ F i := by
        intro i hi hzF
        cases i with
        | none => exact Finset.disjoint_left.mp hXY (Finset.mem_inter.mp hzF).1 hzY
        | some i =>
          have hiK := hEsub ((hJmem i).mp hi)
          exact Finset.disjoint_left.mp (hYT i hiK) hzY (Finset.mem_inter.mp hzF).1
  8. The number of odd components satisfies |J| ≤ |B \ R|.

    We apply op1957_factorcritical_block_odd_groups_inside_bound to the 1-factor-critical block G[B], the region R, the family of pairwise disjoint odd subsets F(i) ⊆ B ∩ R with no edges to (B ∩ R) \ F(i), and the outside vertex z ∈ B ∩ R. The lemma yields |J| ≤ |B \ R|.

    line 105

    uses op1957_factorcritical_block_odd_groups_inside_bound

      have hh := op1957_factorcritical_block_odd_groups_inside_bound G B R hcrit J F hsub hodd hdis hanti z hzB hzR hz
  9. The size of J is |E| plus 1 if |X ∩ B| is odd and 0 otherwise.

    Since some is injective, the image some(E) has size |E|. The set J is the disjoint union of some(E) with {none} when |X ∩ B| is odd, and equals some(E) otherwise.

    lines 106–112

    uses Finset.card_image_iff.mpr, Option.some.inj

      have himage : (E.image some).card = E.card := Finset.card_image_iff.mpr (by
        intro x hx y hy hxy
        exact Option.some.inj hxy)
      have hJcard : J.card = E.card + (if Odd ((X ∩ B).card) then 1 else 0) := by
        by_cases ho : Odd ((X ∩ B).card)
        · simp [J,ho,himage]
        · simp [J,ho,himage]
  10. The desired bound holds.

    The block B decomposes into disjoint sets B \ R and B ∩ R, so |B \ R| + |B ∩ R| = |B|. Substituting |J| ≤ |B \ R| and the cardinality formula for J into this identity gives the required inequality by linear integer arithmetic (omega).

    lines 113–116

    uses Finset.card_sdiff_add_card_inter

      have hcard := Finset.card_sdiff_add_card_inter B R
      rw [hJcard] at hh
      change E.card + (if Odd ((X ∩ B).card) then 1 else 0) + (B ∩ R).card ≤ B.card
      omega
False.elim
From a contradiction (False), any conclusion follows.
Finset.card_image_iff.mpr
The cardinality of the image f(s) equals the cardinality of s when f is injective on s.
Finset.card_sdiff_add_card_inter
For any finite sets s and t, |s \ t| + |s ∩ t| = |s|.
Finset.disjoint_left.mp
If two sets are disjoint, an element in the first is not in the second.
Finset.disjoint_of_subset_left
If s ⊆ u and u is disjoint from t, then s is disjoint from t.
Finset.disjoint_of_subset_right
If t ⊆ u and s is disjoint from u, then s is disjoint from t.
Finset.filter_subset
Filtering a finite set by a predicate produces a subset of the original set.
Finset.inter_subset_left
The intersection s₁ ∩ s₂ is a subset of s₁.
Finset.mem_biUnion.mp
An element in a bounded union ⋃ a ∈ s, f a belongs to f a for some a ∈ s.
Finset.mem_biUnion.mpr
If an element belongs to f a for some a ∈ s, it belongs to ⋃ a ∈ s, f a.
Finset.mem_filter.mp
An element in a filtered set belongs to the set and satisfies the predicate.
Finset.mem_inter
An element belongs to s₁ ∩ s₂ if and only if it belongs to s₁ and s₂.
Finset.mem_inter.mp
If an element belongs to s₁ ∩ s₂, then it belongs to s₁ and s₂.
Finset.mem_inter.mpr
If an element belongs to both s₁ and s₂, it belongs to s₁ ∩ s₂.
Finset.mem_union.mp
An element in s ∪ t belongs to s or belongs to t.
Finset.mem_union_left
An element of s belongs to s ∪ t.
Finset.mem_union_right
An element of t belongs to s ∪ t.
Option.some.inj
The constructor Option.some is injective: some x = some y implies x = y.
op1957_factorcritical_block_odd_groups_inside_bound
In a 1-factor-critical induced subgraph G[B], any collection of pairwise disjoint odd subsets of B ∩ R with no edges to (B ∩ R) \ ⋃ F i has cardinality at most |B \ R|, provided there is a vertex in B ∩ R outside the collection.

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_factorcritical_endpoint_group_parity_bound    {V I : Type*} [Fintype V] [DecidableEq V] [DecidableEq I]    (G : SimpleGraph V) [DecidableRel G.Adj] (B X Y : Finset V)    (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) :    let R := X ∪ Y ∪ K.biUnion T    (K.filter (fun i => Odd ((T i) ∩ B).card)).card +      (if Odd ((X ∩ B).card) then 1 else 0) + (B ∩ R).card ≤ B.card := by  classical  dsimp only  let R := X ∪ Y ∪ K.biUnion T  let E := K.filter (fun i => Odd ((T i) ∩ B).card)  let J : Finset (Option I) := E.image some ∪ (if Odd ((X ∩ B).card) then {none} else ∅)  let F : Option I → Finset V := fun i => match i with    | none => X ∩ B    | some i => T i ∩ B  have hEsub : E ⊆ K := Finset.filter_subset _ _  have hJmem : ∀ i, some i ∈ J ↔ i ∈ E := by    intro i    by_cases ho : Odd ((X ∩ B).card) <;> simp [J,ho]  have hJnone : none ∈ J ↔ Odd ((X ∩ B).card) := by    by_cases ho : Odd ((X ∩ B).card) <;> simp [J,ho]  have hsub : ∀ i ∈ J, F i ⊆ B ∩ R := by    intro i hi u hu    cases i with    | none =>      simp only [F,Finset.mem_inter] at hu      exact Finset.mem_inter.mpr ⟨hu.2,Finset.mem_union_left _ (Finset.mem_union_left _ hu.1)⟩    | some i =>      have hiE := (hJmem i).mp hi      have hiK := hEsub hiE      simp only [F,Finset.mem_inter] at hu      exact Finset.mem_inter.mpr ⟨hu.2,Finset.mem_union_right _ (Finset.mem_biUnion.mpr ⟨i,hiK,hu.1⟩)⟩  have hodd : ∀ i ∈ J, Odd (F i).card := by    intro i hi    cases i with    | none => simpa [F] using (hJnone.mp hi)    | some i => exact (Finset.mem_filter.mp ((hJmem i).mp hi)).2  have hdis : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → Disjoint (F i) (F j) := by    intro i hi j hj hij    cases i with    | none =>      cases j with      | none => exact False.elim (hij rfl)      | some j =>        have hjK := hEsub ((hJmem j).mp hj)        exact Finset.disjoint_of_subset_left Finset.inter_subset_left          (Finset.disjoint_of_subset_right Finset.inter_subset_left (hXT j hjK))    | some i =>      have hiK := hEsub ((hJmem i).mp hi)      cases j with      | none =>        exact Finset.disjoint_of_subset_left Finset.inter_subset_left          (Finset.disjoint_of_subset_right Finset.inter_subset_left (hXT i hiK).symm)      | some j =>        have hjK := hEsub ((hJmem j).mp hj)        have hij' : i ≠ j := by intro h; subst j; exact hij rfl        exact Finset.disjoint_of_subset_left Finset.inter_subset_left          (Finset.disjoint_of_subset_right Finset.inter_subset_left (hTT i hiK j hjK hij'))  have hanti : ∀ i ∈ J, ∀ u ∈ F i, ∀ v ∈ B ∩ R, v ∉ F i → ¬ G.Adj u v := by    intro i hi u hu v hv hvF hadj    have hvB := (Finset.mem_inter.mp hv).1    have hvR := (Finset.mem_inter.mp hv).2    have hvR' : v ∈ X ∪ Y ∪ K.biUnion T := hvR    rcases Finset.mem_union.mp hvR' with hvXY | hvT    · rcases Finset.mem_union.mp hvXY with hvX | hvY      · cases i with        | none => exact hvF (Finset.mem_inter.mpr ⟨hvX,hvB⟩)        | some i =>          have hiK := hEsub ((hJmem i).mp hi)          exact hantiXT i hiK v hvX u (Finset.mem_inter.mp hu).1 hadj.symm      · cases i with        | none => exact hantiXY u hu v (Finset.mem_inter.mpr ⟨hvY,hvB⟩) hadj        | some i =>          have hiK := hEsub ((hJmem i).mp hi)          exact hantiYT i hiK v hvY u (Finset.mem_inter.mp hu).1 hadj.symm    · obtain ⟨j,hj,hvj⟩ := Finset.mem_biUnion.mp hvT      cases i with      | none => exact hantiXT j hj u (Finset.mem_inter.mp hu).1 v hvj hadj      | some i =>        have hiK := hEsub ((hJmem i).mp hi)        have hij : i ≠ j := by          intro he; subst j          exact hvF (Finset.mem_inter.mpr ⟨hvj,hvB⟩)        exact hantiTT i hiK j hj hij u (Finset.mem_inter.mp hu).1 v hvj hadj  obtain ⟨z,hz⟩ := hYB  have hzY := (Finset.mem_inter.mp hz).1  have hzB := (Finset.mem_inter.mp hz).2  have hzR : z ∈ R := Finset.mem_union_left _ (Finset.mem_union_right _ hzY)  have hz : ∀ i ∈ J, z ∉ F i := by    intro i hi hzF    cases i with    | none => exact Finset.disjoint_left.mp hXY (Finset.mem_inter.mp hzF).1 hzY    | some i =>      have hiK := hEsub ((hJmem i).mp hi)      exact Finset.disjoint_left.mp (hYT i hiK) hzY (Finset.mem_inter.mp hzF).1  have hh := op1957_factorcritical_block_odd_groups_inside_bound G B R hcrit J F hsub hodd hdis hanti z hzB hzR hz  have himage : (E.image some).card = E.card := Finset.card_image_iff.mpr (by    intro x hx y hy hxy    exact Option.some.inj hxy)  have hJcard : J.card = E.card + (if Odd ((X ∩ B).card) then 1 else 0) := by    by_cases ho : Odd ((X ∩ B).card)    · simp [J,ho,himage]    · simp [J,ho,himage]  have hcard := Finset.card_sdiff_add_card_inter B R  rw [hJcard] at hh  change E.card + (if Odd ((X ∩ B).card) then 1 else 0) + (B ∩ R).card ≤ B.card  omega
See it in the graphDiscuss this resultChallenge it