AFTD Auto-Formalizing Theoretical Domains

op1957_small_shore_four_group_numeric_assembly

theoremverified

For four anticomplete shores and a B-only pool under the displayed saturated five-by-odd, degree, separator, extendibility, independence and group-count hypotheses, each exceptional shore meets C.

Statement

theorem op1957_small_shore_four_group_numeric_assembly
    {I : Type*} [DecidableEq I]
    (k c : ℕ) (hc : 7 ≤ c) (hkc : c ≤ k)
    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
    (A B C D E : Finset (Fin (4*k))) (F : Fin 4 → Finset (Fin (4*k)))
    (J : Finset I) (R : I → Finset (Fin (4*k))) (x y p q : 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) (hB : B.card=2*k-5) (hC : C.card=c) (hD : D.card=2*k-c)
    (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)
    (hconnB : (G.induce {v | v ∈ B}).Connected)
    (hext : is_k_extendable G k)
    (hind : ∀ I : Finset (Fin (4*k)),
      (∀ u ∈ I, ∀ v ∈ I, u ≠ v → ¬ G.Adj u v) → I.card ≤ k)
    (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)
    (hsep : ∀ S P Q : Finset (Fin (4*k)), P.Nonempty → Q.Nonempty →
      Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ →
      (∀ u ∈ P, ∀ v ∈ Q, ¬ G.Adj u v) → 2*k ≤ S.card)
    (hFdis : ∀ i j, i ≠ j → Disjoint (F i) (F j))
    (hEdis : ∀ i, Disjoint (F i) E) (hEB : E ⊆ B)
    (hFA : ∀ i : Fin 4, i ≠ 0 → Disjoint (F i) A)
    (hFD : ∀ i : Fin 4, i ≠ 0 → Disjoint (F i) D)
    (hxA : x ∈ A) (hyC : y ∈ C) (hxF : x ∈ F 0) (hyF : y ∈ F 1)
    (hfull : ∀ z ∈ C, z ≠ p → z ≠ q → G.Adj x z)
    (hcross : ∀ i j : Fin 4, i ≠ j → ∀ a ∈ F i, ∀ b ∈ F j, G.Adj a b →
      (i=0 ∧ j=1 ∧ a=x ∧ b=y) ∨ (i=1 ∧ j=0 ∧ a=y ∧ b=x))
    (hEanti : ∀ i, ∀ a ∈ F i, ∀ b ∈ E, ¬ G.Adj a b)
    (hRodd : ∀ i ∈ J, Odd (R i).card)
    (hRdis : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → Disjoint (R i) (R j))
    (hRanti : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → ∀ u ∈ R i, ∀ v ∈ R j, ¬ G.Adj u v)
    (hRcover : J.biUnion R = E)
    (hodd0 : Odd (F 0).card) (hodd1 : Odd (F 1).card)
    (hsmallA : (F 0 ∩ A).card ≤ 2)
    (he2 : ((F 2 ∩ C).card = 0 ∧ (F 2 ∩ B).card = 0) ∨ 1 ≤ (F 2 ∩ C).card)
    (he3 : ((F 3 ∩ C).card = 0 ∧ (F 3 ∩ B).card = 0) ∨ 1 ≤ (F 3 ∩ C).card)
    (heb : J.card ≤ E.card)
    (hsize : (∑ i : Fin 4, (F i).card)+E.card+J.card+
      (if 1 ≤ (F 2 ∩ C).card then 1 else 0)+
      (if 1 ≤ (F 3 ∩ C).card then 1 else 0)=2*k)
    (hspos : 1 ≤ J.card+(if 1 ≤ (F 2 ∩ C).card then 1 else 0)+
      (if 1 ≤ (F 3 ∩ C).card then 1 else 0)) :
    (F 2 ∩ C).Nonempty ∧ (F 3 ∩ C).Nonempty
Source
OP-1957 positive-barrier small-shore count transfer
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 12
Used by 1

The proof, explained

The theorem proves that the exceptional shores F_2 and F_3 both meet C, meaning F_2 ∩ C and F_3 ∩ C are nonempty. The proof packages the four shores into a 4-block system and translates the graph-theoretic hypotheses—representative degree bounds, 1-factor-criticality of B, saturated neighborhood bounds around y ∈ C, and separator inequalities—into a system of integer arithmetic inequalities. An arithmetic classification lemma (five_odd_saturated_small_shore_arithmetic_no_connectedness) restricts the configurations and forces |F_0 ∩ A| = 1. Finally, k-extendibility rules out singleton pools via saturated_small_shore_singleton_pool_empty, which forces |F_2 ∩ C| = 1 and |F_3 ∩ C| = 1 via saturated_positive_small_shore_forces_two_singleton_groups.

  1. The four shores A, B, C, D form a 4-block system L covering the vertex set, with forbidden edges between paired blocks, each block of size at least 3, pairs summing to 2k, and E ⊆ L 1, x ∈ L 0, y ∈ L 2.

    We define L = in1245_small_blocks A B C D = ![A, B, C, D] and the matching forb = ![1, 0, 3, 2] pairing A with B and C with D. The pairwise disjointness and covering hypotheses on A, B, C, D verify that L is a partition. The hypotheses hnoAB and hnoCD ensure that no edges run between L b and L (forb b). The block sizes satisfy |A| + |B| = 5 + (2k - 5) = 2k and |C| + |D| = c + (2k - c) = 2k, and each shore has cardinality at least 3 since 7 ≤ c ≤ k. Finally, E ⊆ B = L 1, x ∈ A = L 0, and y ∈ C = L 2.

    lines 1–80

    uses in1245_small_blocks, Finset.mem_biUnion, Fin.exists_fin_succ, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_fin_one

    set_option maxHeartbeats 3000000
    open scoped BigOperators
    
    def in1245_small_blocks {V : Type*} (A B C D : Finset V) : Fin 4 → Finset V := ![A,B,C,D]
    
    theorem op1957_small_shore_four_group_numeric_assembly
        {I : Type*} [DecidableEq I]
        (k c : ℕ) (hc : 7 ≤ c) (hkc : c ≤ k)
        (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
        (A B C D E : Finset (Fin (4*k))) (F : Fin 4 → Finset (Fin (4*k)))
        (J : Finset I) (R : I → Finset (Fin (4*k))) (x y p q : 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) (hB : B.card=2*k-5) (hC : C.card=c) (hD : D.card=2*k-c)
        (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)
        (hconnB : (G.induce {v | v ∈ B}).Connected)
        (hext : is_k_extendable G k)
        (hind : ∀ I : Finset (Fin (4*k)),
          (∀ u ∈ I, ∀ v ∈ I, u ≠ v → ¬ G.Adj u v) → I.card ≤ k)
        (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)
        (hsep : ∀ S P Q : Finset (Fin (4*k)), P.Nonempty → Q.Nonempty →
          Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ →
          (∀ u ∈ P, ∀ v ∈ Q, ¬ G.Adj u v) → 2*k ≤ S.card)
        (hFdis : ∀ i j, i ≠ j → Disjoint (F i) (F j))
        (hEdis : ∀ i, Disjoint (F i) E) (hEB : E ⊆ B)
        (hFA : ∀ i : Fin 4, i ≠ 0 → Disjoint (F i) A)
        (hFD : ∀ i : Fin 4, i ≠ 0 → Disjoint (F i) D)
        (hxA : x ∈ A) (hyC : y ∈ C) (hxF : x ∈ F 0) (hyF : y ∈ F 1)
        (hfull : ∀ z ∈ C, z ≠ p → z ≠ q → G.Adj x z)
        (hcross : ∀ i j : Fin 4, i ≠ j → ∀ a ∈ F i, ∀ b ∈ F j, G.Adj a b →
          (i=0 ∧ j=1 ∧ a=x ∧ b=y) ∨ (i=1 ∧ j=0 ∧ a=y ∧ b=x))
        (hEanti : ∀ i, ∀ a ∈ F i, ∀ b ∈ E, ¬ G.Adj a b)
        (hRodd : ∀ i ∈ J, Odd (R i).card)
        (hRdis : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → Disjoint (R i) (R j))
        (hRanti : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → ∀ u ∈ R i, ∀ v ∈ R j, ¬ G.Adj u v)
        (hRcover : J.biUnion R = E)
        (hodd0 : Odd (F 0).card) (hodd1 : Odd (F 1).card)
        (hsmallA : (F 0 ∩ A).card ≤ 2)
        (he2 : ((F 2 ∩ C).card = 0 ∧ (F 2 ∩ B).card = 0) ∨ 1 ≤ (F 2 ∩ C).card)
        (he3 : ((F 3 ∩ C).card = 0 ∧ (F 3 ∩ B).card = 0) ∨ 1 ≤ (F 3 ∩ C).card)
        (heb : J.card ≤ E.card)
        (hsize : (∑ i : Fin 4, (F i).card)+E.card+J.card+
          (if 1 ≤ (F 2 ∩ C).card then 1 else 0)+
          (if 1 ≤ (F 3 ∩ C).card then 1 else 0)=2*k)
        (hspos : 1 ≤ J.card+(if 1 ≤ (F 2 ∩ C).card then 1 else 0)+
          (if 1 ≤ (F 3 ∩ C).card then 1 else 0)) :
        (F 2 ∩ C).Nonempty ∧ (F 3 ∩ C).Nonempty := by
      classical
      let L : Fin 4 → Finset (Fin (4*k)) := in1245_small_blocks A B C D
      let forb : Fin 4 → Fin 4 := ![1,0,3,2]
      have hBdis : ∀ i j, i ≠ j → Disjoint (L i) (L j) := by
        intro i j hij
        fin_cases i <;> fin_cases j <;> simp_all [L,in1245_small_blocks] <;>
          first | exact hAB | exact hAB.symm | exact hAC | exact hAC.symm | exact hAD | exact hAD.symm |
            exact hBC | exact hBC.symm | exact hBD | exact hBD.symm | exact hCD | exact hCD.symm
      have hBcover : (Finset.univ : Finset (Fin 4)).biUnion L = Finset.univ := by
        rw [←hcover]
        ext z
        simp [L,in1245_small_blocks,Finset.mem_biUnion,Fin.exists_fin_succ]
      have hforbid : ∀ b, ∀ a ∈ L b, ∀ w ∈ L (forb b), ¬ G.Adj a w := by
        intro i a ha v hv h
        fin_cases i <;> simp only [L,forb,in1245_small_blocks,Matrix.cons_val_zero,Matrix.cons_val_one,Matrix.cons_val_fin_one] at ha hv
        · exact hnoAB a ha v hv h
        · exact hnoAB v hv a ha h.symm
        · exact hnoCD a ha v hv h
        · exact hnoCD v hv a ha h.symm
      have hbf : ∀ b, b ≠ forb b := by intro i; fin_cases i <;> decide
      have hblocks : ∀ b, (L b).card+(L (forb b)).card=2*k := by
        intro i
        fin_cases i <;> simp [L,forb,in1245_small_blocks,hA,hB,hC,hD] <;> omega
      have hmin : ∀ b, 3 ≤ (L b).card := by
        intro i
        fin_cases i <;> simp [L,in1245_small_blocks,hA,hB,hC,hD] <;> omega
      have hV : Fintype.card (Fin (4*k))=2*(2*k) := by simp; omega
      have hEL : E ⊆ L 1 := by simpa [L,in1245_small_blocks] using hEB
      have hxL : x ∈ L 0 := by simpa [L,in1245_small_blocks] using hxA
      have hyL : y ∈ L 2 := by simpa [L,in1245_small_blocks] using hyC
  2. The graph hypotheses provide aggregate representative bounds, block factor-criticality bounds for B, a neighborhood bound at y, and an upper bound on C-intersections.

    We invoke op1957_four_shore_aggregate_representative_bounds using the minimum degree 2k+2, four_shore_aggregate_block_criticality using the 1-factor-criticality and connectedness of B, and op1957_four_shore_aggregate_totals for total intersection sizes. Next, four_shore_saturated_y_root_count_bound bounds the intersections around y ∈ C by c. Finally, because x ∈ F 0 is adjacent to all but at most two vertices of C, saturated_other_shores_opposite_block_card_le_three bounds |F 1 ∩ C| + |F 2 ∩ C| + |F 3 ∩ C| ≤ 3.

    lines 81–90

    uses op1957_four_shore_aggregate_representative_bounds, four_shore_aggregate_block_criticality, op1957_four_shore_aggregate_totals, four_shore_saturated_y_root_count_bound, saturated_other_shores_opposite_block_card_le_three

      have hrep := op1957_four_shore_aggregate_representative_bounds G F L E x y forb (2*k)
        hFdis hEdis hBdis hBcover hEL hxL hyL hcross hEanti hbf hforbid hblocks hmin hV hdegree
      have hcrit := four_shore_aggregate_block_criticality G F L E x y J R
        hFdis hEdis hBdis hBcover hEL hxL hyL hcross hEanti hRodd hRdis hRanti hRcover hcritB hconnB
      have htot := op1957_four_shore_aggregate_totals F L E hFdis hEdis hBdis hBcover hEL
      have hroot := four_shore_saturated_y_root_count_bound k c hc hkc G A B C D E F x y
        hAB hAC hAD hBC hBD hCD hcover hFdis hEdis hEB
        (hFA 2 (by decide)) (hFD 2 (by decide)) (hFA 3 (by decide)) (hFD 3 (by decide))
        hxA hxF hyC hyF hD hcross hEanti hnoCD (hdegree y)
      have hsmall := saturated_other_shores_opposite_block_card_le_three G F C x y p q hFdis hxF hcross hfull
  3. Each component R_i is nonempty and contained in E, shores F_1, F_2, F_3 are disjoint from A and D, and local intersection sizes satisfy basic nonemptiness and parity conditions.

    Because each |R_i| is odd, R_i is nonempty; and because ⋃ R_i = E, each R_i ⊆ E. Since F_i is disjoint from A and D for i ≠ 0, partitioning each F_i across A, B, C, D via finset_card_eq_sum_four_block_inter yields |F_i| = |F_i ∩ B| + |F_i ∩ C| for i ∈ {1, 2, 3}. The witnesses x ∈ F 0 ∩ A and y ∈ F 1 ∩ C give 1 ≤ |F 0 ∩ A| ≤ 2 (using hsmallA) and 1 ≤ |F 1 ∩ C|. The odd parity of |F 0| and |F 1| transfers to their block intersection sums.

    lines 91–123

    uses Finset.card_pos.mp, Finset.mem_biUnion.mpr, Finset.disjoint_iff_inter_eq_empty.mp, finset_card_eq_sum_four_block_inter, Finset.card_pos.mpr, Finset.mem_inter.mpr

      have hRne : ∀ i ∈ J, (R i).Nonempty := by
        intro i hi
        apply Finset.card_pos.mp
        obtain ⟨t,ht⟩ := hRodd i hi
        omega
      have hRsub : ∀ i ∈ J, R i ⊆ E := by
        intro i hi v hv
        rw [←hRcover]
        exact Finset.mem_biUnion.mpr ⟨i,hi,hv⟩
      have hFAzero : ∀ i : Fin 4, i ≠ 0 → F i ∩ A = ∅ := by
        intro i hi; exact Finset.disjoint_iff_inter_eq_empty.mp (hFA i hi)
      have hFDzero : ∀ i : Fin 4, i ≠ 0 → F i ∩ D = ∅ := by
        intro i hi; exact Finset.disjoint_iff_inter_eq_empty.mp (hFD i hi)
      have hcard0 := finset_card_eq_sum_four_block_inter A B C D (F 0) hAB hAC hAD hBC hBD hCD hcover
      have hcard1 := finset_card_eq_sum_four_block_inter A B C D (F 1) hAB hAC hAD hBC hBD hCD hcover
      have hcard2 := finset_card_eq_sum_four_block_inter A B C D (F 2) hAB hAC hAD hBC hBD hCD hcover
      have hcard3 := finset_card_eq_sum_four_block_inter A B C D (F 3) hAB hAC hAD hBC hBD hCD hcover
      have h1A := hFAzero 1 (by decide)
      have h2A := hFAzero 2 (by decide)
      have h3A := hFAzero 3 (by decide)
      have h1D := hFDzero 1 (by decide)
      have h2D := hFDzero 2 (by decide)
      have h3D := hFDzero 3 (by decide)
      simp [h1A,h2A,h3A,h1D,h2D,h3D] at hcard1 hcard2 hcard3
      have ha : 1 ≤ (F 0 ∩ A).card ∧ (F 0 ∩ A).card ≤ 2 := by
        constructor
        · exact Finset.card_pos.mpr ⟨x,Finset.mem_inter.mpr ⟨hxF,hxA⟩⟩
        · exact hsmallA
      have hc1 : 1 ≤ (F 1 ∩ C).card := Finset.card_pos.mpr ⟨y,Finset.mem_inter.mpr ⟨hyF,hyC⟩⟩
      have ho0 : Odd ((F 0 ∩ A).card+(F 0 ∩ B).card+(F 0 ∩ C).card+(F 0 ∩ D).card) := by
        rw [←hcard0]; exact hodd0
      have ho1 : Odd ((F 1 ∩ B).card+(F 1 ∩ C).card) := by
        rw [←hcard1]; exact hodd1
  4. The total vertex count decomposes into the master sum equation htotal = 2k, along with bounds on the B-intersections and group counts.

    From the aggregate totals on B = L 1, the sum of B-intersections plus |E| is bounded by |B| = 2k - 5, yielding hb. The master sum identity htotal decomposes the total size 2k into individual intersections with A, B, C, D, pool size |E|, and group counts. We also establish hs bounding |J| plus the indicators of F 2 and F 3 meeting C by c - 1.

    lines 124–137

    uses in1245_small_blocks, Fin.sum_univ_four

      have hs : J.card+(if 1 ≤ (F 2 ∩ C).card then 1 else 0)+
          (if 1 ≤ (F 3 ∩ C).card then 1 else 0)+1 ≤ c := by
        have hh2 : (if 1 ≤ (F 2 ∩ C).card then 1 else 0) ≤ (F 2 ∩ C).card := by split_ifs <;> omega
        have hh3 : (if 1 ≤ (F 3 ∩ C).card then 1 else 0) ≤ (F 3 ∩ C).card := by split_ifs <;> omega
        omega
      have hb : (F 0 ∩ B).card+(F 1 ∩ B).card+(F 2 ∩ B).card+(F 3 ∩ B).card+E.card+5 ≤ 2*k := by
        have hh := htot.2.1 1
        simp [L,in1245_small_blocks,Fin.sum_univ_four,hB] at hh
        omega
      have htotal : (F 0 ∩ A).card+(F 0 ∩ B).card+(F 1 ∩ B).card+(F 2 ∩ B).card+(F 3 ∩ B).card+E.card+
          (F 0 ∩ C).card+(F 1 ∩ C).card+(F 2 ∩ C).card+(F 3 ∩ C).card+(F 0 ∩ D).card+J.card+
          (if 1 ≤ (F 2 ∩ C).card then 1 else 0)+(if 1 ≤ (F 3 ∩ C).card then 1 else 0)=2*k := by
        simp only [Fin.sum_univ_four] at hsize
        omega
  5. Representative bounds and separator bounds restrict the intersection sizes of F_i with A, B, C, D.

    Instantiating the representative bounds hrep at specific shores produces conditional inequalities: if |F 0 ∩ A| ≥ 2, the remaining C-intersections sum to at most 2 (hrepA); if |F 0 ∩ C| ≥ 1, a bound by c holds (hrep0C); and similar bounds hrep1C, hrep2C, hrep3C apply when |F 1 ∩ C| ≥ 2, |F 2 ∩ C| ≥ 1, or |F 3 ∩ C| ≥ 1. Additionally, if F 0 meets D, the separator bound op1957_four_shore_first_D_separator_bound gives hcutD.

    lines 138–186

    uses in1245_small_blocks, Fin.sum_univ_four, Finset.card_pos.mp, Finset.inter_comm, op1957_four_shore_first_D_separator_bound

      have hE1 : (Finset.univ : Finset (Fin 4)).erase 1 = {0,2,3} := by decide
      have hE3 : (Finset.univ : Finset (Fin 4)).erase 3 = {0,1,2} := by decide
      have hrepA : 2 ≤ (F 0 ∩ A).card → (F 1 ∩ C).card+(F 2 ∩ C).card+(F 3 ∩ C).card ≤ 2 := by
        intro hh
        have hr := hrep 0 0 (by simpa [L,in1245_small_blocks] using hh)
        dsimp at hr
        simp [hE1,L,forb,in1245_small_blocks,Fin.sum_univ_four,hA,h1A,h2A,h3A,h1D,h2D,h3D] at hr
        omega
      have hrep0C : 1 ≤ (F 0 ∩ C).card →
          (F 1 ∩ B).card+(F 2 ∩ B).card+(F 3 ∩ B).card+E.card+
          (F 1 ∩ C).card+(F 2 ∩ C).card+(F 3 ∩ C).card+3 ≤ c := by
        intro hh
        have hr := hrep 0 2 (by simpa [L,in1245_small_blocks] using hh)
        dsimp at hr
        simp [hE3,L,forb,in1245_small_blocks,Fin.sum_univ_four,hC,h1A,h2A,h3A,h1D,h2D,h3D] at hr
        omega
      have hcutD : 1 ≤ (F 0 ∩ D).card → (F 0 ∩ D).card+(F 1 ∩ B).card+(F 2 ∩ B).card+
          (F 3 ∩ B).card+E.card+c ≤ 2*k := by
        intro hh
        have hd : (D ∩ F 0).Nonempty := by
          apply Finset.card_pos.mp
          simpa [Finset.inter_comm] using hh
        have hr := op1957_four_shore_first_D_separator_bound G F E A B C D x y (2*k)
          hFdis hEdis hcross hEanti hEB hyC hAB hAC hAD hBC hBD hCD hcover (by omega) hnoCD hsep hd
        omega
      have hrep1C : 2 ≤ (F 1 ∩ C).card →
          (F 0 ∩ A).card+(F 0 ∩ B).card+(F 2 ∩ B).card+(F 3 ∩ B).card+E.card+
          (F 0 ∩ C).card+(F 2 ∩ C).card+(F 3 ∩ C).card+3 ≤ c := by
        intro hh
        have hr := hrep 1 2 (by simpa [L,in1245_small_blocks] using hh)
        dsimp at hr
        simp [hE3,L,forb,in1245_small_blocks,Fin.sum_univ_four,hC,h1A,h2A,h3A,h1D,h2D,h3D] at hr
        omega
      have hrep2C : 1 ≤ (F 2 ∩ C).card →
          (F 0 ∩ A).card+(F 0 ∩ B).card+(F 1 ∩ B).card+(F 3 ∩ B).card+E.card+
          (F 0 ∩ C).card+(F 1 ∩ C).card+(F 3 ∩ C).card+3 ≤ c := by
        intro hh
        have hr := hrep 2 2 (by simpa [L,in1245_small_blocks] using hh)
        dsimp at hr
        simp [hE3,L,forb,in1245_small_blocks,Fin.sum_univ_four,hC,h1A,h2A,h3A,h1D,h2D,h3D] at hr
        omega
      have hrep3C : 1 ≤ (F 3 ∩ C).card →
          (F 0 ∩ A).card+(F 0 ∩ B).card+(F 1 ∩ B).card+(F 2 ∩ B).card+E.card+
          (F 0 ∩ C).card+(F 1 ∩ C).card+(F 2 ∩ C).card+3 ≤ c := by
        intro hh
        have hr := hrep 3 2 (by simpa [L,in1245_small_blocks] using hh)
        dsimp at hr
        simp [hE3,L,forb,in1245_small_blocks,Fin.sum_univ_four,hC,h1A,h2A,h3A,h1D,h2D,h3D] at hr
        omega
  6. The factor-criticality of B is translated into an explicit arithmetic condition hcrit' on the B-intersections and |J|.

    We simplify hcrit across Fin 4 and rewrite nonemptiness of F_i ∩ B as 1 ≤ |F_i ∩ B| via Finset.card_pos. This yields hcrit': if the B-sum plus |E| + 5 < 2k, then |J| plus that sum + 6 ≤ 2k; while if it equals 2k, then |J| ≤ 1 and at most one of the intersections F_i ∩ B can be nonempty.

    lines 187–199

    uses Fin.sum_univ_four, in1245_small_blocks, Finset.card_pos

      have hcrit' : ((F 0 ∩ B).card+(F 1 ∩ B).card+(F 2 ∩ B).card+(F 3 ∩ B).card+E.card+5 < 2*k →
          J.card+(F 0 ∩ B).card+(F 1 ∩ B).card+(F 2 ∩ B).card+(F 3 ∩ B).card+E.card+6 ≤ 2*k) ∧
        ((F 0 ∩ B).card+(F 1 ∩ B).card+(F 2 ∩ B).card+(F 3 ∩ B).card+E.card+5 = 2*k → J.card ≤ 1 ∧
          (if 1 ≤ (F 0 ∩ B).card then 1 else 0)+(if 1 ≤ (F 1 ∩ B).card then 1 else 0)+
          (if 1 ≤ (F 2 ∩ B).card then 1 else 0)+(if 1 ≤ (F 3 ∩ B).card then 1 else 0)+J.card ≤ 1) := by
        dsimp at hcrit
        simp only [Fin.sum_univ_four] at hcrit
        simp [L,in1245_small_blocks,hB] at hcrit
        have hz (i : Fin 4) : (1 ≤ (F i ∩ B).card) ↔ (F i ∩ B).Nonempty := by
          rw [← Finset.card_pos]
          omega
        simp only [hz]
        omega
  7. The intersection parameters satisfy |F 0 ∩ A| = 1, and either (|F 1 ∩ C| = 3 with |F 2 ∩ C| + |F 3 ∩ C| = 0) or (|F 1 ∩ C| = 1 with |F 2 ∩ C| + |F 3 ∩ C| = 2).

    We apply the arithmetic lemma five_odd_saturated_small_shore_arithmetic_no_connectedness to the assembled system of inequalities. Linear arithmetic constraints on odd integers force |F 0 ∩ A| = 1 and narrow the distribution of C-intersections down to these two rigid configurations.

    lines 200–203

    uses five_odd_saturated_small_shore_arithmetic_no_connectedness

      have hsplit := five_odd_saturated_small_shore_arithmetic_no_connectedness
        k c J.card E.card (F 0 ∩ A).card (F 0 ∩ B).card (F 1 ∩ B).card (F 2 ∩ B).card (F 3 ∩ B).card
        (F 0 ∩ C).card (F 1 ∩ C).card (F 2 ∩ C).card (F 3 ∩ C).card (F 0 ∩ D).card
        hc hkc heb ha hc1 he2 he3 ho0 ho1 hs hb htotal hsmall hroot hrepA hrep0C hcutD hrep1C hrep2C hrep3C hcrit'
  8. If every component of E is a singleton (|E| = |J|), then the pool is empty (|J| = 0).

    Assuming |E| = |J|, we apply saturated_small_shore_singleton_pool_empty. Using the k-extendibility of G, the degree bound 2k+2 > 2k+1, independence bound k, separator bounds, and |F 0 ∩ A| = 1 from the previous step (with e = [1 ≤ |F 2 ∩ C|] + [1 ≤ |F 3 ∩ C|] ≤ 2), the lemma concludes that |J| = 0.

    lines 204–212

    uses saturated_small_shore_singleton_pool_empty

      have hpool : E.card=J.card → J.card=0 := by
        intro heq
        have hm : J.card ≤ k := by omega
        have he : ((if 1 ≤ (F 2 ∩ C).card then 1 else 0) +
          (if 1 ≤ (F 3 ∩ C).card then 1 else 0)) ≤ 2 := by split_ifs <;> omega
        exact saturated_small_shore_singleton_pool_empty k
          ((if 1 ≤ (F 2 ∩ C).card then 1 else 0) + (if 1 ≤ (F 3 ∩ C).card then 1 else 0)) G
          hext (fun v => by have := hdegree v; omega) hind hsep A B E F J R hA hAB hEB hnoAB
          hFdis hFA hEdis hEanti hRsub hRne hRdis hRanti (by omega) hm heq hsplit.1 he
  9. The parameters are uniquely forced to |J| = 0, |E| = 0, |F 1 ∩ B| = 0, and |F 1 ∩ C| = |F 2 ∩ C| = |F 3 ∩ C| = 1.

    We invoke saturated_positive_small_shore_forces_two_singleton_groups, providing the pool condition hpool together with the arithmetic hypotheses and hspos. This eliminates the configuration where F 2 and F 3 miss C, uniquely forcing |F 2 ∩ C| = 1 and |F 3 ∩ C| = 1.

    lines 213–216

    uses saturated_positive_small_shore_forces_two_singleton_groups

      have hout := saturated_positive_small_shore_forces_two_singleton_groups
        k c J.card E.card (F 0 ∩ A).card (F 0 ∩ B).card (F 1 ∩ B).card (F 2 ∩ B).card (F 3 ∩ B).card
        (F 0 ∩ C).card (F 1 ∩ C).card (F 2 ∩ C).card (F 3 ∩ C).card (F 0 ∩ D).card
        hc hkc heb ha hc1 he2 he3 ho0 ho1 hs hspos hb htotal hsmall hroot hrepA hrep0C hcutD hrep1C hrep2C hrep3C hcrit' hpool
  10. Both intersections F 2 ∩ C and F 3 ∩ C are nonempty.

    Since |F 2 ∩ C| = 1 > 0 and |F 3 ∩ C| = 1 > 0 from the previous step, Finset.card_pos.mp establishes that both intersections are nonempty.

    line 217

    uses Finset.card_pos.mp

      exact ⟨Finset.card_pos.mp (by omega),Finset.card_pos.mp (by omega)⟩
Fin.sum_univ_four
The sum of a function over the four-element type Fin 4 is the sum of its values at 0, 1, 2, and 3.
Fin.exists_fin_succ
An existential statement over Fin (n + 1) is equivalent to the disjunction of the property at 0 and an existential statement over the successors.
Finset.card_pos
A finite set has strictly positive cardinality if and only if it is nonempty.
Finset.card_pos.mp
If a finite set has strictly positive cardinality, then it is nonempty.
Finset.card_pos.mpr
If a finite set is nonempty, then its cardinality is strictly positive.
Finset.disjoint_iff_inter_eq_empty.mp
Two sets are disjoint if and only if their intersection is empty.
Finset.inter_comm
Intersection of finite sets is commutative.
Finset.mem_biUnion
An element belongs to a big union of finsets indexed by a finset if and only if it belongs to one of the component sets.
Finset.mem_biUnion.mpr
An element belonging to a component set indexed by a member of the index set belongs to the big union.
Finset.mem_inter.mpr
If an element belongs to both s and t, it belongs to their intersection s ∩ t.
Matrix.cons_val_zero
The first element of a vector formed by prepending an element x to a vector u is x.
Matrix.cons_val_one
The second element (index 1) of a vector formed by prepending x to u is the first element of u.
Matrix.cons_val_fin_one
Any index of a 1-element vector returns the sole element.
in1245_small_blocks
The 4-vector consisting of sets A, B, C, D in order.
finset_card_eq_sum_four_block_inter
When four pairwise disjoint sets partition the universe, the cardinality of any set is the sum of the cardinalities of its intersections with the four sets.
op1957_four_shore_aggregate_representative_bounds
Under the 4-block anticomplete configuration and degree conditions, bounds the representative intersections of each F_i with the blocks.
four_shore_aggregate_block_criticality
When block B_1 is 1-factor-critical and connected, provides arithmetic constraints on the pool size |J| and the intersection sizes with B_1.
op1957_four_shore_aggregate_totals
The sum over blocks of the intersection sizes with F_i (plus |E| for block 1) equals the cardinality of the intersection with (⋃ F_i) ∪ E, which is bounded by the block size.
four_shore_saturated_y_root_count_bound
Bounds the sum of block intersections around a root vertex y in shore C plus |E| + 2 by the cardinality c of C.
saturated_other_shores_opposite_block_card_le_three
If x in F_0 is adjacent to all but at most two vertices of C, then the sum of intersections of F_1, F_2, F_3 with C is at most 3.
op1957_four_shore_first_D_separator_bound
If D ∩ F_0 is nonempty, the separator condition bounds |F_0 ∩ D| plus the sum of B-intersections of other shores and |E| by |D|.
five_odd_saturated_small_shore_arithmetic_no_connectedness
A purely arithmetic lemma stating that under the assembled parity, degree, and representative bounds, |F_0 ∩ A| = 1 and either c_1 = 3 with c_2 + c_3 = 0, or c_1 = 1 with c_2 + c_3 = 2.
saturated_small_shore_singleton_pool_empty
In an extendable graph under separator, degree, and independence bounds, if |F_0 ∩ A| = 1 and all pool components are singletons (|E| = |J|), then the pool must be empty (|J| = 0).
saturated_positive_small_shore_forces_two_singleton_groups
Under the assembled arithmetic bounds, positive group count, and the singleton pool condition, the parameters are uniquely forced to |J| = 0, |E| = 0, |F_1 ∩ B| = 0, and |F_1 ∩ C| = |F_2 ∩ C| = |F_3 ∩ C| = 1.

Written by a model (gemini-3.8-flash) from the Lean source alone (no goal states were available). Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

set_option maxHeartbeats 3000000open scoped BigOperatorsdef in1245_small_blocks {V : Type*} (A B C D : Finset V) : Fin 4 → Finset V := ![A,B,C,D]theorem op1957_small_shore_four_group_numeric_assembly    {I : Type*} [DecidableEq I]    (k c : ℕ) (hc : 7 ≤ c) (hkc : c ≤ k)    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (A B C D E : Finset (Fin (4*k))) (F : Fin 4 → Finset (Fin (4*k)))    (J : Finset I) (R : I → Finset (Fin (4*k))) (x y p q : 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) (hB : B.card=2*k-5) (hC : C.card=c) (hD : D.card=2*k-c)    (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)    (hconnB : (G.induce {v | v ∈ B}).Connected)    (hext : is_k_extendable G k)    (hind : ∀ I : Finset (Fin (4*k)),      (∀ u ∈ I, ∀ v ∈ I, u ≠ v → ¬ G.Adj u v) → I.card ≤ k)    (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)    (hsep : ∀ S P Q : Finset (Fin (4*k)), P.Nonempty → Q.Nonempty →      Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ →      (∀ u ∈ P, ∀ v ∈ Q, ¬ G.Adj u v) → 2*k ≤ S.card)    (hFdis : ∀ i j, i ≠ j → Disjoint (F i) (F j))    (hEdis : ∀ i, Disjoint (F i) E) (hEB : E ⊆ B)    (hFA : ∀ i : Fin 4, i ≠ 0 → Disjoint (F i) A)    (hFD : ∀ i : Fin 4, i ≠ 0 → Disjoint (F i) D)    (hxA : x ∈ A) (hyC : y ∈ C) (hxF : x ∈ F 0) (hyF : y ∈ F 1)    (hfull : ∀ z ∈ C, z ≠ p → z ≠ q → G.Adj x z)    (hcross : ∀ i j : Fin 4, i ≠ j → ∀ a ∈ F i, ∀ b ∈ F j, G.Adj a b →      (i=0 ∧ j=1 ∧ a=x ∧ b=y) ∨ (i=1 ∧ j=0 ∧ a=y ∧ b=x))    (hEanti : ∀ i, ∀ a ∈ F i, ∀ b ∈ E, ¬ G.Adj a b)    (hRodd : ∀ i ∈ J, Odd (R i).card)    (hRdis : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → Disjoint (R i) (R j))    (hRanti : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → ∀ u ∈ R i, ∀ v ∈ R j, ¬ G.Adj u v)    (hRcover : J.biUnion R = E)    (hodd0 : Odd (F 0).card) (hodd1 : Odd (F 1).card)    (hsmallA : (F 0 ∩ A).card ≤ 2)    (he2 : ((F 2 ∩ C).card = 0 ∧ (F 2 ∩ B).card = 0) ∨ 1 ≤ (F 2 ∩ C).card)    (he3 : ((F 3 ∩ C).card = 0 ∧ (F 3 ∩ B).card = 0) ∨ 1 ≤ (F 3 ∩ C).card)    (heb : J.card ≤ E.card)    (hsize : (∑ i : Fin 4, (F i).card)+E.card+J.card+      (if 1 ≤ (F 2 ∩ C).card then 1 else 0)+      (if 1 ≤ (F 3 ∩ C).card then 1 else 0)=2*k)    (hspos : 1 ≤ J.card+(if 1 ≤ (F 2 ∩ C).card then 1 else 0)+      (if 1 ≤ (F 3 ∩ C).card then 1 else 0)) :    (F 2 ∩ C).Nonempty ∧ (F 3 ∩ C).Nonempty := by  classical  let L : Fin 4 → Finset (Fin (4*k)) := in1245_small_blocks A B C D  let forb : Fin 4 → Fin 4 := ![1,0,3,2]  have hBdis : ∀ i j, i ≠ j → Disjoint (L i) (L j) := by    intro i j hij    fin_cases i <;> fin_cases j <;> simp_all [L,in1245_small_blocks] <;>      first | exact hAB | exact hAB.symm | exact hAC | exact hAC.symm | exact hAD | exact hAD.symm |        exact hBC | exact hBC.symm | exact hBD | exact hBD.symm | exact hCD | exact hCD.symm  have hBcover : (Finset.univ : Finset (Fin 4)).biUnion L = Finset.univ := by    rw [←hcover]    ext z    simp [L,in1245_small_blocks,Finset.mem_biUnion,Fin.exists_fin_succ]  have hforbid : ∀ b, ∀ a ∈ L b, ∀ w ∈ L (forb b), ¬ G.Adj a w := by    intro i a ha v hv h    fin_cases i <;> simp only [L,forb,in1245_small_blocks,Matrix.cons_val_zero,Matrix.cons_val_one,Matrix.cons_val_fin_one] at ha hv    · exact hnoAB a ha v hv h    · exact hnoAB v hv a ha h.symm    · exact hnoCD a ha v hv h    · exact hnoCD v hv a ha h.symm  have hbf : ∀ b, b ≠ forb b := by intro i; fin_cases i <;> decide  have hblocks : ∀ b, (L b).card+(L (forb b)).card=2*k := by    intro i    fin_cases i <;> simp [L,forb,in1245_small_blocks,hA,hB,hC,hD] <;> omega  have hmin : ∀ b, 3 ≤ (L b).card := by    intro i    fin_cases i <;> simp [L,in1245_small_blocks,hA,hB,hC,hD] <;> omega  have hV : Fintype.card (Fin (4*k))=2*(2*k) := by simp; omega  have hEL : E ⊆ L 1 := by simpa [L,in1245_small_blocks] using hEB  have hxL : x ∈ L 0 := by simpa [L,in1245_small_blocks] using hxA  have hyL : y ∈ L 2 := by simpa [L,in1245_small_blocks] using hyC  have hrep := op1957_four_shore_aggregate_representative_bounds G F L E x y forb (2*k)    hFdis hEdis hBdis hBcover hEL hxL hyL hcross hEanti hbf hforbid hblocks hmin hV hdegree  have hcrit := four_shore_aggregate_block_criticality G F L E x y J R    hFdis hEdis hBdis hBcover hEL hxL hyL hcross hEanti hRodd hRdis hRanti hRcover hcritB hconnB  have htot := op1957_four_shore_aggregate_totals F L E hFdis hEdis hBdis hBcover hEL  have hroot := four_shore_saturated_y_root_count_bound k c hc hkc G A B C D E F x y    hAB hAC hAD hBC hBD hCD hcover hFdis hEdis hEB    (hFA 2 (by decide)) (hFD 2 (by decide)) (hFA 3 (by decide)) (hFD 3 (by decide))    hxA hxF hyC hyF hD hcross hEanti hnoCD (hdegree y)  have hsmall := saturated_other_shores_opposite_block_card_le_three G F C x y p q hFdis hxF hcross hfull  have hRne : ∀ i ∈ J, (R i).Nonempty := by    intro i hi    apply Finset.card_pos.mp    obtain ⟨t,ht⟩ := hRodd i hi    omega  have hRsub : ∀ i ∈ J, R i ⊆ E := by    intro i hi v hv    rw [←hRcover]    exact Finset.mem_biUnion.mpr ⟨i,hi,hv⟩  have hFAzero : ∀ i : Fin 4, i ≠ 0 → F i ∩ A = ∅ := by    intro i hi; exact Finset.disjoint_iff_inter_eq_empty.mp (hFA i hi)  have hFDzero : ∀ i : Fin 4, i ≠ 0 → F i ∩ D = ∅ := by    intro i hi; exact Finset.disjoint_iff_inter_eq_empty.mp (hFD i hi)  have hcard0 := finset_card_eq_sum_four_block_inter A B C D (F 0) hAB hAC hAD hBC hBD hCD hcover  have hcard1 := finset_card_eq_sum_four_block_inter A B C D (F 1) hAB hAC hAD hBC hBD hCD hcover  have hcard2 := finset_card_eq_sum_four_block_inter A B C D (F 2) hAB hAC hAD hBC hBD hCD hcover  have hcard3 := finset_card_eq_sum_four_block_inter A B C D (F 3) hAB hAC hAD hBC hBD hCD hcover  have h1A := hFAzero 1 (by decide)  have h2A := hFAzero 2 (by decide)  have h3A := hFAzero 3 (by decide)  have h1D := hFDzero 1 (by decide)  have h2D := hFDzero 2 (by decide)  have h3D := hFDzero 3 (by decide)  simp [h1A,h2A,h3A,h1D,h2D,h3D] at hcard1 hcard2 hcard3  have ha : 1 ≤ (F 0 ∩ A).card ∧ (F 0 ∩ A).card ≤ 2 := by    constructor    · exact Finset.card_pos.mpr ⟨x,Finset.mem_inter.mpr ⟨hxF,hxA⟩⟩    · exact hsmallA  have hc1 : 1 ≤ (F 1 ∩ C).card := Finset.card_pos.mpr ⟨y,Finset.mem_inter.mpr ⟨hyF,hyC⟩⟩  have ho0 : Odd ((F 0 ∩ A).card+(F 0 ∩ B).card+(F 0 ∩ C).card+(F 0 ∩ D).card) := by    rw [←hcard0]; exact hodd0  have ho1 : Odd ((F 1 ∩ B).card+(F 1 ∩ C).card) := by    rw [←hcard1]; exact hodd1  have hs : J.card+(if 1 ≤ (F 2 ∩ C).card then 1 else 0)+      (if 1 ≤ (F 3 ∩ C).card then 1 else 0)+1 ≤ c := by    have hh2 : (if 1 ≤ (F 2 ∩ C).card then 1 else 0) ≤ (F 2 ∩ C).card := by split_ifs <;> omega    have hh3 : (if 1 ≤ (F 3 ∩ C).card then 1 else 0) ≤ (F 3 ∩ C).card := by split_ifs <;> omega    omega  have hb : (F 0 ∩ B).card+(F 1 ∩ B).card+(F 2 ∩ B).card+(F 3 ∩ B).card+E.card+5 ≤ 2*k := by    have hh := htot.2.1 1    simp [L,in1245_small_blocks,Fin.sum_univ_four,hB] at hh    omega  have htotal : (F 0 ∩ A).card+(F 0 ∩ B).card+(F 1 ∩ B).card+(F 2 ∩ B).card+(F 3 ∩ B).card+E.card+      (F 0 ∩ C).card+(F 1 ∩ C).card+(F 2 ∩ C).card+(F 3 ∩ C).card+(F 0 ∩ D).card+J.card+      (if 1 ≤ (F 2 ∩ C).card then 1 else 0)+(if 1 ≤ (F 3 ∩ C).card then 1 else 0)=2*k := by    simp only [Fin.sum_univ_four] at hsize    omega  have hE1 : (Finset.univ : Finset (Fin 4)).erase 1 = {0,2,3} := by decide  have hE3 : (Finset.univ : Finset (Fin 4)).erase 3 = {0,1,2} := by decide  have hrepA : 2 ≤ (F 0 ∩ A).card → (F 1 ∩ C).card+(F 2 ∩ C).card+(F 3 ∩ C).card ≤ 2 := by    intro hh    have hr := hrep 0 0 (by simpa [L,in1245_small_blocks] using hh)    dsimp at hr    simp [hE1,L,forb,in1245_small_blocks,Fin.sum_univ_four,hA,h1A,h2A,h3A,h1D,h2D,h3D] at hr    omega  have hrep0C : 1 ≤ (F 0 ∩ C).card →      (F 1 ∩ B).card+(F 2 ∩ B).card+(F 3 ∩ B).card+E.card+      (F 1 ∩ C).card+(F 2 ∩ C).card+(F 3 ∩ C).card+3 ≤ c := by    intro hh    have hr := hrep 0 2 (by simpa [L,in1245_small_blocks] using hh)    dsimp at hr    simp [hE3,L,forb,in1245_small_blocks,Fin.sum_univ_four,hC,h1A,h2A,h3A,h1D,h2D,h3D] at hr    omega  have hcutD : 1 ≤ (F 0 ∩ D).card → (F 0 ∩ D).card+(F 1 ∩ B).card+(F 2 ∩ B).card+      (F 3 ∩ B).card+E.card+c ≤ 2*k := by    intro hh    have hd : (D ∩ F 0).Nonempty := by      apply Finset.card_pos.mp      simpa [Finset.inter_comm] using hh    have hr := op1957_four_shore_first_D_separator_bound G F E A B C D x y (2*k)      hFdis hEdis hcross hEanti hEB hyC hAB hAC hAD hBC hBD hCD hcover (by omega) hnoCD hsep hd    omega  have hrep1C : 2 ≤ (F 1 ∩ C).card →      (F 0 ∩ A).card+(F 0 ∩ B).card+(F 2 ∩ B).card+(F 3 ∩ B).card+E.card+      (F 0 ∩ C).card+(F 2 ∩ C).card+(F 3 ∩ C).card+3 ≤ c := by    intro hh    have hr := hrep 1 2 (by simpa [L,in1245_small_blocks] using hh)    dsimp at hr    simp [hE3,L,forb,in1245_small_blocks,Fin.sum_univ_four,hC,h1A,h2A,h3A,h1D,h2D,h3D] at hr    omega  have hrep2C : 1 ≤ (F 2 ∩ C).card →      (F 0 ∩ A).card+(F 0 ∩ B).card+(F 1 ∩ B).card+(F 3 ∩ B).card+E.card+      (F 0 ∩ C).card+(F 1 ∩ C).card+(F 3 ∩ C).card+3 ≤ c := by    intro hh    have hr := hrep 2 2 (by simpa [L,in1245_small_blocks] using hh)    dsimp at hr    simp [hE3,L,forb,in1245_small_blocks,Fin.sum_univ_four,hC,h1A,h2A,h3A,h1D,h2D,h3D] at hr    omega  have hrep3C : 1 ≤ (F 3 ∩ C).card →      (F 0 ∩ A).card+(F 0 ∩ B).card+(F 1 ∩ B).card+(F 2 ∩ B).card+E.card+      (F 0 ∩ C).card+(F 1 ∩ C).card+(F 2 ∩ C).card+3 ≤ c := by    intro hh    have hr := hrep 3 2 (by simpa [L,in1245_small_blocks] using hh)    dsimp at hr    simp [hE3,L,forb,in1245_small_blocks,Fin.sum_univ_four,hC,h1A,h2A,h3A,h1D,h2D,h3D] at hr    omega  have hcrit' : ((F 0 ∩ B).card+(F 1 ∩ B).card+(F 2 ∩ B).card+(F 3 ∩ B).card+E.card+5 < 2*k →      J.card+(F 0 ∩ B).card+(F 1 ∩ B).card+(F 2 ∩ B).card+(F 3 ∩ B).card+E.card+6 ≤ 2*k) ∧    ((F 0 ∩ B).card+(F 1 ∩ B).card+(F 2 ∩ B).card+(F 3 ∩ B).card+E.card+5 = 2*k → J.card ≤ 1 ∧      (if 1 ≤ (F 0 ∩ B).card then 1 else 0)+(if 1 ≤ (F 1 ∩ B).card then 1 else 0)+      (if 1 ≤ (F 2 ∩ B).card then 1 else 0)+(if 1 ≤ (F 3 ∩ B).card then 1 else 0)+J.card ≤ 1) := by    dsimp at hcrit    simp only [Fin.sum_univ_four] at hcrit    simp [L,in1245_small_blocks,hB] at hcrit    have hz (i : Fin 4) : (1 ≤ (F i ∩ B).card) ↔ (F i ∩ B).Nonempty := by      rw [← Finset.card_pos]      omega    simp only [hz]    omega  have hsplit := five_odd_saturated_small_shore_arithmetic_no_connectedness    k c J.card E.card (F 0 ∩ A).card (F 0 ∩ B).card (F 1 ∩ B).card (F 2 ∩ B).card (F 3 ∩ B).card    (F 0 ∩ C).card (F 1 ∩ C).card (F 2 ∩ C).card (F 3 ∩ C).card (F 0 ∩ D).card    hc hkc heb ha hc1 he2 he3 ho0 ho1 hs hb htotal hsmall hroot hrepA hrep0C hcutD hrep1C hrep2C hrep3C hcrit'  have hpool : E.card=J.card → J.card=0 := by    intro heq    have hm : J.card ≤ k := by omega    have he : ((if 1 ≤ (F 2 ∩ C).card then 1 else 0) +      (if 1 ≤ (F 3 ∩ C).card then 1 else 0)) ≤ 2 := by split_ifs <;> omega    exact saturated_small_shore_singleton_pool_empty k      ((if 1 ≤ (F 2 ∩ C).card then 1 else 0) + (if 1 ≤ (F 3 ∩ C).card then 1 else 0)) G      hext (fun v => by have := hdegree v; omega) hind hsep A B E F J R hA hAB hEB hnoAB      hFdis hFA hEdis hEanti hRsub hRne hRdis hRanti (by omega) hm heq hsplit.1 he  have hout := saturated_positive_small_shore_forces_two_singleton_groups    k c J.card E.card (F 0 ∩ A).card (F 0 ∩ B).card (F 1 ∩ B).card (F 2 ∩ B).card (F 3 ∩ B).card    (F 0 ∩ C).card (F 1 ∩ C).card (F 2 ∩ C).card (F 3 ∩ C).card (F 0 ∩ D).card    hc hkc heb ha hc1 he2 he3 ho0 ho1 hs hspos hb htotal hsmall hroot hrepA hrep0C hcutD hrep1C hrep2C hrep3C hcrit' hpool  exact ⟨Finset.card_pos.mp (by omega),Finset.card_pos.mp (by omega)⟩
See it in the graphDiscuss this resultChallenge it