AFTD Auto-Formalizing Theoretical Domains

boundary_five_odd_blocks_one_defect_component_barrier_impossible

theoremverified

For the stated 5, 2k−5, c, 2k−c block partition with c odd and at most k, minimum degree 2k+2, the separator property and factor-critical B, an endpoint with at most one C nonneighbor cannot lie in an odd residual component containing at most two A vertices when the indicated odd components and barrier form a forced cross-edge decomposition.

Statement

theorem boundary_five_odd_blocks_one_defect_component_barrier_impossible
    {ι : Type*} [DecidableEq ι] (k c : ℕ) (hc : 5 ≤ c) (hcodd : Odd c) (hkc : c ≤ k)
    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
    (A B C D : 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) (hC : C.card = c)
    (hsizeAB : A.card+B.card=2*k) (hsizeCD : C.card+D.card=2*k)
    (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 : ∀ X U V : Finset (Fin (4*k)), U.Nonempty → V.Nonempty →
      Disjoint X U → Disjoint X V → Disjoint U V → X ∪ U ∪ V = Finset.univ →
      (∀ u ∈ U, ∀ v ∈ V, ¬ G.Adj u v) → 2*k ≤ X.card)
    (x y : Fin (4*k)) (hx : x ∈ A) (hy : y ∈ C) (hxy : G.Adj x y)
    (hdefect : (C.filter (fun w => ¬ G.Adj x w)).card ≤ 1)
    (X Y S : Finset (Fin (4*k))) (I : Finset ι) (T : ι → Finset (Fin (4*k)))
    (hxX : x ∈ X) (hyY : y ∈ Y) (hXY : Disjoint X Y)
    (hXS : Disjoint X S) (hYS : Disjoint Y S)
    (hXT : ∀ i ∈ I, Disjoint X (T i)) (hYT : ∀ i ∈ I, Disjoint Y (T i))
    (hST : ∀ i ∈ I, Disjoint S (T i))
    (hTT : ∀ i ∈ I, ∀ j ∈ I, i ≠ j → Disjoint (T i) (T j))
    (hoddX : Odd X.card) (hoddY : Odd Y.card) (hoddT : ∀ i ∈ I, Odd (T i).card)
    (hS : S.card = I.card) (hres : (X ∪ Y ∪ I.biUnion T ∪ S).card = 2*k)
    (hcrossXY : ∀ u ∈ X, ∀ v ∈ Y, G.Adj u v → u = x ∧ v = y)
    (hcrossXT : ∀ i ∈ I, ∀ u ∈ X, ∀ v ∈ T i, ¬ G.Adj u v)
    (hcrossYT : ∀ i ∈ I, ∀ u ∈ Y, ∀ v ∈ T i, ¬ G.Adj u v)
    (hcrossTT : ∀ i ∈ I, ∀ j ∈ I, i ≠ j → ∀ u ∈ T i, ∀ v ∈ T j, ¬ G.Adj u v)
    (hbad : (X ∩ A).card ≤ 2) : False
Source
OP-1957: arbitrary-size odd barrier component transfer for the one-defect route.
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 11
Used by 1

The proof, explained

The proof argues by contradiction against the existence of a barrier decomposition with odd residual components X, Y, and (T_i)_{i ∈ I} (with union U) such that |X ∩ A| ≤ 2. By partitioning the total size |X ∪ Y ∪ U ∪ S| = 2k across the four graph blocks A, B, C, D, the argument gathers a large system of numeric constraints on the twelve block intersection sizes |P ∩ Q|: degree and defect bounds at endpoints x and y, pool bounds for U, separator bounds, and factor-critical parity bounds on B. Finally, the lemma boundary_five_odd_blocks_one_defect_uniform_count_impossible proves that no non-negative integer assignment can satisfy all these constraints simultaneously, deriving False.

  1. Define the pooled odd component U and compute the exact sizes of blocks B and D.

    We define U = ⋃_{i ∈ I} T_i as the union of all odd residual components other than X and Y. Since |A| = 5, |C| = c, and the block pairs have total size |A| + |B| = 2k and |C| + |D| = 2k, linear arithmetic immediately gives |B| = 2k - 5 and |D| = 2k - c (as well as |B| + 5 = 2k and |D| + c = 2k).

    lines 32–37

      classical
      let U := I.biUnion T
      have hB : B.card=2*k-5 := by omega
      have hD : D.card=2*k-c := by omega
      have hB' : B.card+5=2*k := by omega
      have hD' : D.card+c=2*k := by omega
  2. The pooled set U is disjoint from X, Y, and S, and there are no edges between U and either X or Y.

    Since X, Y, and S are each assumed disjoint from every component T_i for i ∈ I, they are disjoint from their union U by Finset.disjoint_biUnion_right. Furthermore, because there are no cross-edges between X (or Y) and any T_i, unpacking any vertex v ∈ U into some component T_i via Finset.mem_biUnion.mp shows that no edge exists between X and U or between Y and U.

    lines 38–48

    uses Finset.disjoint_biUnion_right, Finset.mem_biUnion.mp

      have hXU : Disjoint X U := (Finset.disjoint_biUnion_right X I T).mpr hXT
      have hYU : Disjoint Y U := (Finset.disjoint_biUnion_right Y I T).mpr hYT
      have hSU : Disjoint S U := (Finset.disjoint_biUnion_right S I T).mpr hST
      have hantiX : ∀ u ∈ X, ∀ v ∈ U, ¬ G.Adj u v := by
        intro u hu v hv
        obtain ⟨i,hi,hvi⟩ := Finset.mem_biUnion.mp hv
        exact hcrossXT i hi u hu v hvi
      have hantiY : ∀ u ∈ Y, ∀ v ∈ U, ¬ G.Adj u v := by
        intro u hu v hv
        obtain ⟨i,hi,hvi⟩ := Finset.mem_biUnion.mp hv
        exact hcrossYT i hi u hu v hvi
  3. There are no edges between X ∩ B and Y ∩ B.

    Suppose for contradiction there were an edge between u ∈ X ∩ B and v ∈ Y ∩ B. By assumption hcrossXY, the only edge between X and Y is the specified edge xy, so u = x. But x ∈ A, which is disjoint from B by Finset.disjoint_left.mp, contradicting u ∈ B.

    lines 49–54

    uses Finset.mem_inter.mp, Finset.disjoint_left.mp

      have hantiXY : ∀ u ∈ X ∩ B, ∀ v ∈ Y ∩ B, ¬ G.Adj u v := by
        intro u hu v hv h
        obtain ⟨huX,huB⟩ := Finset.mem_inter.mp hu
        obtain ⟨hvY,hvB⟩ := Finset.mem_inter.mp hv
        obtain ⟨hux,hvy⟩ := hcrossXY u huX v hvY h
        exact Finset.disjoint_left.mp hAB hx (hux ▸ huB)
  4. Every pool component T_i is nonempty, and the number of components |I| is at most |U|.

    Each component T_i has odd cardinality, hence its size is positive and T_i is nonempty by Finset.card_pos.mp. By case analysis on whether I is nonempty: if I is nonempty, pairwise_disjoint_nonempty_groups_card_bound gives |T_i| + |I| ≤ |U| + 1 for any i ∈ I, which implies |I| ≤ |U| since |T_i| ≥ 1; if I is empty, |I| = 0 ≤ |U| trivially holds.

    lines 55–68

    uses Finset.card_pos.mp, pairwise_disjoint_nonempty_groups_card_bound, Finset.card_pos.mpr, Finset.not_nonempty_iff_eq_empty.mp

      have hne : ∀ i ∈ I, (T i).Nonempty := by
        intro i hi
        apply Finset.card_pos.mp
        obtain ⟨a,ha⟩ := hoddT i hi
        omega
      have hR : I.card ≤ U.card := by
        by_cases hI : I.Nonempty
        · obtain ⟨i,hi⟩ := hI
          have hpool := pairwise_disjoint_nonempty_groups_card_bound I T i hi hTT hne
          have hTi := Finset.card_pos.mpr (hne i hi)
          change (T i).card+I.card ≤ U.card+1 at hpool
          omega
        · have hI0 : I=∅ := Finset.not_nonempty_iff_eq_empty.mp hI
          simp [hI0]
  5. The sum of the cardinalities of the twelve block intersections of X, Y, U with A, B, C, D, plus |I|, equals 2k.

    Using pairwise disjointness of X, Y, U, and S via Finset.disjoint_union_left.mpr and Finset.card_union_of_disjoint, the assumption |X ∪ Y ∪ U ∪ S| = 2k rewrites to |X| + |Y| + |U| + |S| = 2k. Applying finset_card_eq_sum_four_block_inter decomposes each of |X|, |Y|, and |U| into the sum of its intersections with the partition blocks A, B, C, D. Substituting these decompositions and |S| = |I| yields the partitioned total sum equation.

    lines 69–82

    uses Finset.disjoint_union_left.mpr, Finset.card_union_of_disjoint, finset_card_eq_sum_four_block_inter

      have hXYU : Disjoint (X ∪ Y) U := Finset.disjoint_union_left.mpr ⟨hXU,hYU⟩
      have hXYUS : Disjoint (X ∪ Y ∪ U) S := Finset.disjoint_union_left.mpr
        ⟨Finset.disjoint_union_left.mpr ⟨hXS,hYS⟩,hSU.symm⟩
      have htotal : X.card+Y.card+U.card+S.card=2*k := by
        rw [Finset.card_union_of_disjoint hXYUS,Finset.card_union_of_disjoint hXYU,
          Finset.card_union_of_disjoint hXY] at hres
        omega
      have hparts (P : Finset (Fin (4*k))) := finset_card_eq_sum_four_block_inter A B C D P hAB hAC hAD hBC hBD hCD hcover
      have hXparts := hparts X
      have hYparts := hparts Y
      have hUparts := hparts U
      have htotal' : (X ∩ A).card+(X ∩ B).card+(X ∩ C).card+(X ∩ D).card+
          (Y ∩ A).card+(Y ∩ B).card+(Y ∩ C).card+(Y ∩ D).card+
          (U ∩ A).card+(U ∩ B).card+(U ∩ C).card+(U ∩ D).card+I.card=2*k := by omega
  6. Obtain numerical constraints on the block intersections from the degrees of x, y and the defect bound.

    Invoking op1957_one_defect_endpoint_numeric_bounds provides bounds on the block counts: 1 ≤ |X ∩ A|, 1 ≤ |Y ∩ C|, |Y ∩ C| + |U ∩ C| ≤ 2, neighborhood bounds for x and y, and conditional bounds based on whether |X ∩ A| ≥ 2, |X ∩ C| ≥ 1, |X ∩ D| ≥ 1, |Y ∩ A| ≥ 1, or |Y ∩ C| ≥ 2.

    lines 83–87

    uses op1957_one_defect_endpoint_numeric_bounds

      have hend := op1957_one_defect_endpoint_numeric_bounds k c hc hkc G A B C D X Y U
        hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD hdegree
        x y hx hy hxX hyY hXY hXU hYU hcrossXY hantiX hantiY hdefect
      dsimp only at hend
      obtain ⟨ha0,hc1,hcsmall,hxcount,hycount,hqa0,hqc0,hqd0,hqa1,hqc1⟩ := hend
  7. Obtain numerical constraints from the pool components T_i.

    Invoking op1957_one_defect_pool_numeric_bounds yields conditional bounds (hqa2, hqc2, hqd2) that constrain the intersection sizes whenever the pool U intersects A, C, or D.

    lines 88–92

    uses op1957_one_defect_pool_numeric_bounds

      have hpoolbounds := op1957_one_defect_pool_numeric_bounds k c hc hkc G A B C D X Y
        hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD hdegree
        I T hoddT hTT hXY hXT hYT hcrossXT hcrossYT hcrossTT
      dsimp only at hpoolbounds
      obtain ⟨hqa2,hqc2,hqd2⟩ := hpoolbounds
  8. Obtain numerical bounds from the separator property.

    Invoking op1957_one_defect_separator_numeric_bounds uses the separator hypothesis to establish bounds hcut0 and hcut1, bounding combined component and separator sizes by at most 2k whenever X or Y intersects D.

    lines 93–96

    uses op1957_one_defect_separator_numeric_bounds

      have hcuts := op1957_one_defect_separator_numeric_bounds k c G A B C D X Y U
        hAB hAC hAD hBC hBD hCD hcover hsizeAB hD' hnoCD hsep x y hx hy hxX hyY
        hXY hXU hYU hcrossXY hantiX hantiY
      obtain ⟨hcut0,hcut1⟩ := hcuts
  9. Derive numerical inequalities from the 1-factor-criticality of G[B].

    When Y ∩ B is nonempty (checked via Finset.card_pos.mp), the two conclusions of op1957_one_defect_factorcritical_two_numeric_bounds yield: first, an upper bound on |I| + |X ∩ B| + |Y ∩ B| + |U ∩ B| + 5 with an odd-parity correction term; and second, a tighter bound of at most 2k when U ∩ A is also nonempty and the non-B intersections sum to 2.

    lines 97–114

    uses Finset.card_pos.mp, op1957_one_defect_factorcritical_two_numeric_bounds

      have hcritnum : 1 ≤ (Y ∩ B).card →
          I.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
        intro hYB
        have hYN : (Y ∩ B).Nonempty := Finset.card_pos.mp (by omega)
        exact (op1957_one_defect_factorcritical_two_numeric_bounds k G A B C D X Y
          hAB hAC hAD hBC hBD hCD hcover hA hsizeAB hnoAB hcritB hdegree
          I T hXY hXT hYT hTT hantiXY hcrossXT hcrossYT hcrossTT hYN hoddT x y hx hy hxX hyY).1
      have hcritgroup : 1 ≤ (Y ∩ B).card → 1 ≤ (U ∩ A).card →
          (X ∩ A).card+(X ∩ C).card+(X ∩ D).card+(Y ∩ A).card+(Y ∩ C).card+(Y ∩ D).card=2 →
          I.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
        intro hYB hUA _
        have hYN : (Y ∩ B).Nonempty := Finset.card_pos.mp (by omega)
        have hUAN : (U ∩ A).Nonempty := Finset.card_pos.mp (by omega)
        exact (op1957_one_defect_factorcritical_two_numeric_bounds k G A B C D X Y
          hAB hAC hAD hBC hBD hCD hcover hA hsizeAB hnoAB hcritB hdegree
          I T hXY hXT hYT hTT hantiXY hcrossXT hcrossYT hcrossTT hYN hoddT x y hx hy hxX hyY).2 hUAN
  10. Reach a contradiction, proving that no such configuration can exist.

    We apply boundary_five_odd_blocks_one_defect_uniform_count_impossible, supplying all established numerical parameters: the total partition sum, the degree bounds, the assumption |X ∩ A| ≤ 2, the pool implications (discharging nonemptiness via Finset.card_pos.mp), and the factor-critical inequalities. That lemma shows this system of integer constraints is inconsistent, closing the proof with False.

    lines 115–131

    uses boundary_five_odd_blocks_one_defect_uniform_count_impossible, Finset.card_pos.mp

      apply boundary_five_odd_blocks_one_defect_uniform_count_impossible
        k c I.card (X ∩ A).card (X ∩ B).card (X ∩ C).card (X ∩ D).card
        (Y ∩ A).card (Y ∩ B).card (Y ∩ C).card (Y ∩ D).card
        (U ∩ A).card (U ∩ B).card (U ∩ C).card (U ∩ D).card
        hkc (by have hh := hUparts; omega) ha0 hbad hc1 hcsmall htotal' hxcount hycount
        hqa0 hqc0 hqd0 hcut0 hqa1 hqc1 hcut1
      · intro hh
        have hp : 0 < (U ∩ A).card := by omega
        exact hqa2 (Finset.card_pos.mp hp)
      · intro hh
        have hp : 0 < (U ∩ C).card := by omega
        exact hqc2 (Finset.card_pos.mp hp)
      · intro hh
        have hp : 0 < (U ∩ D).card := by omega
        exact hqd2 (Finset.card_pos.mp hp)
      · exact hcritnum
      · exact hcritgroup
Finset.disjoint_biUnion_right
A set s is disjoint from a union ⋃_{i ∈ t} f(i) if and only if s is disjoint from f(i) for every i ∈ t.
Finset.mem_biUnion.mp
If an element belongs to a union ⋃_{i ∈ I} T_i, then it belongs to T_i for some i ∈ I.
Finset.mem_inter.mp
If an element belongs to the intersection s ∩ t, then it belongs to both s and t.
Finset.disjoint_left.mp
If two sets s and t are disjoint, any element of s does not belong to t.
Finset.card_pos.mp
A finite set with cardinality strictly greater than zero is nonempty.
pairwise_disjoint_nonempty_groups_card_bound
For a family of pairwise disjoint nonempty finite sets (T_i)_{i ∈ I} and any index j ∈ I, the sum |T_j| + |I| is at most |⋃_{i ∈ I} T_i| + 1.
Finset.card_pos.mpr
A nonempty finite set has cardinality strictly greater than zero.
Finset.not_nonempty_iff_eq_empty.mp
A finite set that is not nonempty is the empty set.
Finset.disjoint_union_left.mpr
If two sets s and t are each disjoint from u, then their union s ∪ t is disjoint from u.
Finset.card_union_of_disjoint
If two finite sets s and t are disjoint, the cardinality of their union is the sum of their cardinalities.
finset_card_eq_sum_four_block_inter
If four pairwise disjoint sets A, B, C, D partition the universe, then any subset P has cardinality equal to the sum of the cardinalities of its intersections with A, B, C, D.
op1957_one_defect_endpoint_numeric_bounds
In the 4-block graph partition with minimum degree 2k+2 and an edge xy ∈ A × C where x has at most one non-neighbor in C, the intersection sizes of residual components X, Y, U with blocks A, B, C, D satisfy a system of linear bounds and conditional bounds derived from vertex degrees and defect.
op1957_one_defect_pool_numeric_bounds
Under the 4-block partition and degree conditions, if the union of odd components U intersects A, C, or D, the block intersection sizes of X, Y, U satisfy corresponding upper bounds.
op1957_one_defect_separator_numeric_bounds
Under the 4-block partition and separator property, if X or Y intersects D, the combined cardinalities of the components and separator are bounded by at most 2k.
op1957_one_defect_factorcritical_two_numeric_bounds
In the 4-block configuration with G[B] 1-factor-critical, if Y ∩ B is nonempty, the sizes of the intersections with B and the number of components satisfy two linear inequalities incorporating parity corrections.
boundary_five_odd_blocks_one_defect_uniform_count_impossible
An integer arithmetic impossibility theorem stating that no non-negative integer values can simultaneously satisfy the total partition sum of 2k alongside all the degree, separator, pool, defect, and factor-critical inequalities.

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 boundary_five_odd_blocks_one_defect_component_barrier_impossible    {ι : Type*} [DecidableEq ι] (k c : ℕ) (hc : 5 ≤ c) (hcodd : Odd c) (hkc : c ≤ k)    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (A B C D : 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) (hC : C.card = c)    (hsizeAB : A.card+B.card=2*k) (hsizeCD : C.card+D.card=2*k)    (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 : ∀ X U V : Finset (Fin (4*k)), U.Nonempty → V.Nonempty →      Disjoint X U → Disjoint X V → Disjoint U V → X ∪ U ∪ V = Finset.univ →      (∀ u ∈ U, ∀ v ∈ V, ¬ G.Adj u v) → 2*k ≤ X.card)    (x y : Fin (4*k)) (hx : x ∈ A) (hy : y ∈ C) (hxy : G.Adj x y)    (hdefect : (C.filter (fun w => ¬ G.Adj x w)).card ≤ 1)    (X Y S : Finset (Fin (4*k))) (I : Finset ι) (T : ι → Finset (Fin (4*k)))    (hxX : x ∈ X) (hyY : y ∈ Y) (hXY : Disjoint X Y)    (hXS : Disjoint X S) (hYS : Disjoint Y S)    (hXT : ∀ i ∈ I, Disjoint X (T i)) (hYT : ∀ i ∈ I, Disjoint Y (T i))    (hST : ∀ i ∈ I, Disjoint S (T i))    (hTT : ∀ i ∈ I, ∀ j ∈ I, i ≠ j → Disjoint (T i) (T j))    (hoddX : Odd X.card) (hoddY : Odd Y.card) (hoddT : ∀ i ∈ I, Odd (T i).card)    (hS : S.card = I.card) (hres : (X ∪ Y ∪ I.biUnion T ∪ S).card = 2*k)    (hcrossXY : ∀ u ∈ X, ∀ v ∈ Y, G.Adj u v → u = x ∧ v = y)    (hcrossXT : ∀ i ∈ I, ∀ u ∈ X, ∀ v ∈ T i, ¬ G.Adj u v)    (hcrossYT : ∀ i ∈ I, ∀ u ∈ Y, ∀ v ∈ T i, ¬ G.Adj u v)    (hcrossTT : ∀ i ∈ I, ∀ j ∈ I, i ≠ j → ∀ u ∈ T i, ∀ v ∈ T j, ¬ G.Adj u v)    (hbad : (X ∩ A).card ≤ 2) : False := by  classical  let U := I.biUnion T  have hB : B.card=2*k-5 := by omega  have hD : D.card=2*k-c := by omega  have hB' : B.card+5=2*k := by omega  have hD' : D.card+c=2*k := by omega  have hXU : Disjoint X U := (Finset.disjoint_biUnion_right X I T).mpr hXT  have hYU : Disjoint Y U := (Finset.disjoint_biUnion_right Y I T).mpr hYT  have hSU : Disjoint S U := (Finset.disjoint_biUnion_right S I T).mpr hST  have hantiX : ∀ u ∈ X, ∀ v ∈ U, ¬ G.Adj u v := by    intro u hu v hv    obtain ⟨i,hi,hvi⟩ := Finset.mem_biUnion.mp hv    exact hcrossXT i hi u hu v hvi  have hantiY : ∀ u ∈ Y, ∀ v ∈ U, ¬ G.Adj u v := by    intro u hu v hv    obtain ⟨i,hi,hvi⟩ := Finset.mem_biUnion.mp hv    exact hcrossYT i hi u hu v hvi  have hantiXY : ∀ u ∈ X ∩ B, ∀ v ∈ Y ∩ B, ¬ G.Adj u v := by    intro u hu v hv h    obtain ⟨huX,huB⟩ := Finset.mem_inter.mp hu    obtain ⟨hvY,hvB⟩ := Finset.mem_inter.mp hv    obtain ⟨hux,hvy⟩ := hcrossXY u huX v hvY h    exact Finset.disjoint_left.mp hAB hx (hux ▸ huB)  have hne : ∀ i ∈ I, (T i).Nonempty := by    intro i hi    apply Finset.card_pos.mp    obtain ⟨a,ha⟩ := hoddT i hi    omega  have hR : I.card ≤ U.card := by    by_cases hI : I.Nonempty    · obtain ⟨i,hi⟩ := hI      have hpool := pairwise_disjoint_nonempty_groups_card_bound I T i hi hTT hne      have hTi := Finset.card_pos.mpr (hne i hi)      change (T i).card+I.card ≤ U.card+1 at hpool      omega    · have hI0 : I=∅ := Finset.not_nonempty_iff_eq_empty.mp hI      simp [hI0]  have hXYU : Disjoint (X ∪ Y) U := Finset.disjoint_union_left.mpr ⟨hXU,hYU⟩  have hXYUS : Disjoint (X ∪ Y ∪ U) S := Finset.disjoint_union_left.mpr    ⟨Finset.disjoint_union_left.mpr ⟨hXS,hYS⟩,hSU.symm⟩  have htotal : X.card+Y.card+U.card+S.card=2*k := by    rw [Finset.card_union_of_disjoint hXYUS,Finset.card_union_of_disjoint hXYU,      Finset.card_union_of_disjoint hXY] at hres    omega  have hparts (P : Finset (Fin (4*k))) := finset_card_eq_sum_four_block_inter A B C D P hAB hAC hAD hBC hBD hCD hcover  have hXparts := hparts X  have hYparts := hparts Y  have hUparts := hparts U  have htotal' : (X ∩ A).card+(X ∩ B).card+(X ∩ C).card+(X ∩ D).card+      (Y ∩ A).card+(Y ∩ B).card+(Y ∩ C).card+(Y ∩ D).card+      (U ∩ A).card+(U ∩ B).card+(U ∩ C).card+(U ∩ D).card+I.card=2*k := by omega  have hend := op1957_one_defect_endpoint_numeric_bounds k c hc hkc G A B C D X Y U    hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD hdegree    x y hx hy hxX hyY hXY hXU hYU hcrossXY hantiX hantiY hdefect  dsimp only at hend  obtain ⟨ha0,hc1,hcsmall,hxcount,hycount,hqa0,hqc0,hqd0,hqa1,hqc1⟩ := hend  have hpoolbounds := op1957_one_defect_pool_numeric_bounds k c hc hkc G A B C D X Y    hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD hdegree    I T hoddT hTT hXY hXT hYT hcrossXT hcrossYT hcrossTT  dsimp only at hpoolbounds  obtain ⟨hqa2,hqc2,hqd2⟩ := hpoolbounds  have hcuts := op1957_one_defect_separator_numeric_bounds k c G A B C D X Y U    hAB hAC hAD hBC hBD hCD hcover hsizeAB hD' hnoCD hsep x y hx hy hxX hyY    hXY hXU hYU hcrossXY hantiX hantiY  obtain ⟨hcut0,hcut1⟩ := hcuts  have hcritnum : 1 ≤ (Y ∩ B).card →      I.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    intro hYB    have hYN : (Y ∩ B).Nonempty := Finset.card_pos.mp (by omega)    exact (op1957_one_defect_factorcritical_two_numeric_bounds k G A B C D X Y      hAB hAC hAD hBC hBD hCD hcover hA hsizeAB hnoAB hcritB hdegree      I T hXY hXT hYT hTT hantiXY hcrossXT hcrossYT hcrossTT hYN hoddT x y hx hy hxX hyY).1  have hcritgroup : 1 ≤ (Y ∩ B).card → 1 ≤ (U ∩ A).card →      (X ∩ A).card+(X ∩ C).card+(X ∩ D).card+(Y ∩ A).card+(Y ∩ C).card+(Y ∩ D).card=2 →      I.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    intro hYB hUA _    have hYN : (Y ∩ B).Nonempty := Finset.card_pos.mp (by omega)    have hUAN : (U ∩ A).Nonempty := Finset.card_pos.mp (by omega)    exact (op1957_one_defect_factorcritical_two_numeric_bounds k G A B C D X Y      hAB hAC hAD hBC hBD hCD hcover hA hsizeAB hnoAB hcritB hdegree      I T hXY hXT hYT hTT hantiXY hcrossXT hcrossYT hcrossTT hYN hoddT x y hx hy hxX hyY).2 hUAN  apply boundary_five_odd_blocks_one_defect_uniform_count_impossible    k c I.card (X ∩ A).card (X ∩ B).card (X ∩ C).card (X ∩ D).card    (Y ∩ A).card (Y ∩ B).card (Y ∩ C).card (Y ∩ D).card    (U ∩ A).card (U ∩ B).card (U ∩ C).card (U ∩ D).card    hkc (by have hh := hUparts; omega) ha0 hbad hc1 hcsmall htotal' hxcount hycount    hqa0 hqc0 hqd0 hcut0 hqa1 hqc1 hcut1  · intro hh    have hp : 0 < (U ∩ A).card := by omega    exact hqa2 (Finset.card_pos.mp hp)  · intro hh    have hp : 0 < (U ∩ C).card := by omega    exact hqc2 (Finset.card_pos.mp hp)  · intro hh    have hp : 0 < (U ∩ D).card := by omega    exact hqd2 (Finset.card_pos.mp hp)  · exact hcritnum  · exact hcritgroup
See it in the graphDiscuss this resultChallenge it