AFTD Auto-Formalizing Theoretical Domains

op1957_four_shore_representative_budget

theoremverified

Four shore representative budget.

Statement

theorem op1957_four_shore_representative_budget
    {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj]
    (F B : Fin 4 → Finset V) (E : Finset V) (x y : V)
    (hFdis : ∀ i l : Fin 4, i ≠ l → Disjoint (F i) (F l))
    (hEdis : ∀ i : Fin 4, Disjoint (F i) E)
    (hBdis : ∀ i l : Fin 4, i ≠ l → Disjoint (B i) (B l))
    (hx : x ∈ B 0) (hy : y ∈ B 2)
    (hcross : ∀ i l : Fin 4, i ≠ l → ∀ a ∈ F i, ∀ b ∈ F l, G.Adj a b →
      (i=0 ∧ l=1 ∧ a=x ∧ b=y) ∨ (i=1 ∧ l=0 ∧ a=y ∧ b=x))
    (hEanti : ∀ i : Fin 4, ∀ a ∈ F i, ∀ w ∈ E, ¬ G.Adj a w)
    (j b forbidden : Fin 4) (hbf : b ≠ forbidden)
    (hforbid : ∀ a ∈ B b, ∀ w ∈ B forbidden, ¬ G.Adj a w)
    (L : ℕ) (hs : 3 ≤ (B b).card)
    (hsize : Fintype.card V = (B forbidden).card+(L+(B b).card-1)+1)
    (hdegree : ∀ v, L+2 ≤ (G.neighborFinset v).card)
    (hcount : (if (j=0 ∧ b=0) ∨ (j=1 ∧ b=2) then 2 else 1) ≤ (F j ∩ B b).card) :
    (∑ i ∈ (Finset.univ : Finset (Fin 4)).erase j, (F i \ B forbidden).card) +
      (E \ B forbidden).card + 3 ≤ (B b).card
Source
OP-1957; positive-separator graph-to-count transfer.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
Used by 2

The proof, explained

To bound the sum of the shore and external set sizes against the capacity |B_b|, the proof selects a representative vertex v ∈ F_j ∩ B_b that is neither the endpoint x (if j = 0) nor y (if j = 1), which exists by the intersection count hypothesis. Because cross-shore edges can only connect x and y, v has no neighbors in any other shore F_i (i ≠ j), and by pairwise disjointness of the buckets, v avoids the forbidden bucket B_forbidden to which B_b is anticomplete. Finally, applying the general degree bound lemma op1957_disjoint_shores_representative_degree_bound translates the minimum degree condition on v and the graph size into the desired budget inequality.

  1. There exists a vertex v ∈ F_j ∩ B_b such that v ≠ x (if j = 0) and v ≠ y (if j = 1).

    By hypothesis hcount, |F_j ∩ B_b| ≥ 2 when (j, b) ∈ {(0, 0), (1, 2)} and |F_j ∩ B_b| ≥ 1 otherwise. Because x ∈ B_0 and y ∈ B_2, the lemma op1957_four_shore_choose_nonendpoint_representative guarantees the existence of a representative vertex v in the intersection that avoids x when j = 0 and avoids y when j = 1.

    lines 22–24

    uses op1957_four_shore_choose_nonendpoint_representative

      classical
      obtain ⟨v,hvF,hvB,hnotx,hnoty⟩ :=
        op1957_four_shore_choose_nonendpoint_representative F B x y hBdis hx hy j b hcount
  2. The vertex v does not belong to B_forbidden.

    Since b ≠ forbidden, the buckets B_b and B_forbidden are disjoint by hypothesis hBdis. Because v ∈ B_b, applying Finset.disjoint_left.mp shows that v ∉ B_forbidden.

    line 25

    uses Finset.disjoint_left.mp

      have hvT : v ∉ B forbidden := fun h => Finset.disjoint_left.mp (hBdis b forbidden hbf) hvB h
  3. The vertex v has no neighbors in any other shore F_i for i ≠ j.

    Hypothesis hcross states that the only cross-shore edges are between x and y (with endpoints in F_0 and F_1). Since v ∈ F_j satisfies v ≠ x (if j = 0) and v ≠ y (if j = 1), lemma op1957_four_shore_nonendpoint_anticomplete shows that v is anticomplete to every shore F_i with i ≠ j.

    line 26

    uses op1957_four_shore_nonendpoint_anticomplete

      have hanti := op1957_four_shore_nonendpoint_anticomplete G F x y hcross j v hvF hnotx hnoty
  4. ∑_{i ≠ j} |F_i ∖ B_forbidden| + |E ∖ B_forbidden| + 3 ≤ |B_b|.

    We apply the general degree bound lemma op1957_disjoint_shores_representative_degree_bound with index set Finset.univ, forbidden set T = B_forbidden, and representative vertex v. The vertex v ∈ F_j has no edges to any other shore F_i (i ≠ j), no edges to E (by hEanti), and no edges to B_forbidden (by hforbid), and it does not belong to B_forbidden. Together with the minimum degree bound deg(v) ≥ L + 2 and the total graph size |V| = |B_forbidden| + (L + |B_b| - 1) + 1, the lemma yields the claimed budget inequality.

    lines 27–32

    uses op1957_disjoint_shores_representative_degree_bound, Finset.mem_univ

      apply op1957_disjoint_shores_representative_degree_bound G Finset.univ F E (B forbidden) j v
        (Finset.mem_univ j) hvF
        (by intro i _ l _ hil; exact hFdis i l hil)
        (by intro i _; exact hEdis i)
        (by intro i _ hij; exact hanti i hij)
        (hEanti j v hvF) hvT (hforbid v hvB) L (B b).card hs hsize (hdegree v)
Finset.disjoint_left.mp
If two finite sets are disjoint, an element of the first set cannot belong to the second set.
Finset.mem_univ
Every element of a finite type belongs to the finset of all elements of that type.
op1957_disjoint_shores_representative_degree_bound
In a finite graph of order |T| + (L + s - 1) + 1, if a vertex v ∈ F_j ∖ T has degree at least L + 2 and is anticomplete to all other pairwise disjoint shores F_i (i ≠ j), to an external set E, and to T, then the budget inequality ∑_{i ≠ j} |F_i ∖ T| + |E ∖ T| + 3 ≤ s holds.
op1957_four_shore_choose_nonendpoint_representative
Given pairwise disjoint sets B_i with x ∈ B_0 and y ∈ B_2, if |F_j ∩ B_b| ≥ 2 when (j, b) ∈ {(0, 0), (1, 2)} and |F_j ∩ B_b| ≥ 1 otherwise, there exists a vertex v ∈ F_j ∩ B_b such that v ≠ x (if j = 0) and v ≠ y (if j = 1).
op1957_four_shore_nonendpoint_anticomplete
If all edges between different shores F_i and F_l can only connect x ∈ F_0 and y ∈ F_1, then any vertex v ∈ F_j that is not x (if j = 0) and not y (if j = 1) has no edges to any other shore F_i (i ≠ j).

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

set_option maxHeartbeats 2000000theorem op1957_four_shore_representative_budget    {V : Type*} [Fintype V] [DecidableEq V]    (G : SimpleGraph V) [DecidableRel G.Adj]    (F B : Fin 4 → Finset V) (E : Finset V) (x y : V)    (hFdis : ∀ i l : Fin 4, i ≠ l → Disjoint (F i) (F l))    (hEdis : ∀ i : Fin 4, Disjoint (F i) E)    (hBdis : ∀ i l : Fin 4, i ≠ l → Disjoint (B i) (B l))    (hx : x ∈ B 0) (hy : y ∈ B 2)    (hcross : ∀ i l : Fin 4, i ≠ l → ∀ a ∈ F i, ∀ b ∈ F l, G.Adj a b →      (i=0 ∧ l=1 ∧ a=x ∧ b=y) ∨ (i=1 ∧ l=0 ∧ a=y ∧ b=x))    (hEanti : ∀ i : Fin 4, ∀ a ∈ F i, ∀ w ∈ E, ¬ G.Adj a w)    (j b forbidden : Fin 4) (hbf : b ≠ forbidden)    (hforbid : ∀ a ∈ B b, ∀ w ∈ B forbidden, ¬ G.Adj a w)    (L : ℕ) (hs : 3 ≤ (B b).card)    (hsize : Fintype.card V = (B forbidden).card+(L+(B b).card-1)+1)    (hdegree : ∀ v, L+2 ≤ (G.neighborFinset v).card)    (hcount : (if (j=0 ∧ b=0) ∨ (j=1 ∧ b=2) then 2 else 1) ≤ (F j ∩ B b).card) :    (∑ i ∈ (Finset.univ : Finset (Fin 4)).erase j, (F i \ B forbidden).card) +      (E \ B forbidden).card + 3 ≤ (B b).card := by  classical  obtain ⟨v,hvF,hvB,hnotx,hnoty⟩ :=    op1957_four_shore_choose_nonendpoint_representative F B x y hBdis hx hy j b hcount  have hvT : v ∉ B forbidden := fun h => Finset.disjoint_left.mp (hBdis b forbidden hbf) hvB h  have hanti := op1957_four_shore_nonendpoint_anticomplete G F x y hcross j v hvF hnotx hnoty  apply op1957_disjoint_shores_representative_degree_bound G Finset.univ F E (B forbidden) j v    (Finset.mem_univ j) hvF    (by intro i _ l _ hil; exact hFdis i l hil)    (by intro i _; exact hEdis i)    (by intro i _ hij; exact hanti i hij)    (hEanti j v hvF) hvT (hforbid v hvB) L (B b).card hs hsize (hdegree v)
See it in the graphDiscuss this resultChallenge it