AFTD Auto-Formalizing Theoretical Domains

op1957_disjoint_shores_representative_degree_bound

theoremverified

Disjoint shores representative degree bound.

Statement

theorem op1957_disjoint_shores_representative_degree_bound
    {V I : Type*} [Fintype V] [DecidableEq V] [DecidableEq I]
    (G : SimpleGraph V) [DecidableRel G.Adj]
    (J : Finset I) (F : I → Finset V) (E T : Finset V) (j : I) (v : V)
    (hj : j ∈ J) (hv : v ∈ F j)
    (hdis : ∀ i ∈ J, ∀ l ∈ J, i ≠ l → Disjoint (F i) (F l))
    (hdisE : ∀ i ∈ J, Disjoint (F i) E)
    (hanti : ∀ i ∈ J, i ≠ j → ∀ w ∈ F i, ¬ G.Adj v w)
    (hantiE : ∀ w ∈ E, ¬ G.Adj v w)
    (hvT : v ∉ T) (hforbid : ∀ w ∈ T, ¬ G.Adj v w)
    (L s : ℕ) (hs : 3 ≤ s)
    (hsize : Fintype.card V = T.card+(L+s-1)+1)
    (hdegree : L+2 ≤ (G.neighborFinset v).card) :
    (∑ i ∈ J.erase j, (F i \ T).card) + (E \ T).card + 3 ≤ s
Source
OP-1957; positive-separator graph-to-count transfer.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
Used by 1

The proof, explained

The theorem bounds the total size of the shores $F_i \setminus T$ (for $i \neq j$) plus $E \setminus T$, offset by $3$, by $s$. The strategy is to apply `op1957_disjoint_shores_defect_budget` with defect $d = L + s - 1$ and defect budget $r = s - 3$. A preliminary linear arithmetic step shows that the lower bound on the degree of $v$ implies the required degree condition, and adding $3$ to the resulting bound completes the proof.

  1. $L + s - 1 \le |N(v)| + (s - 3)$

    From the degree hypothesis $|N(v)| \ge L + 2$ and the condition $s \ge 3$, linear integer arithmetic immediately gives $L + s - 1 \le |N(v)| + (s - 3)$.

    line 17

      have hd : L+s-1 ≤ (G.neighborFinset v).card+(s-3) := by omega
  2. $\sum_{i \in J \setminus \{j\}} |F_i \setminus T| + |E \setminus T| \le s - 3$

    This applies `op1957_disjoint_shores_defect_budget` with defect parameter $d = L + s - 1$ and defect budget $r = s - 3$. The lemma's hypotheses are met: the total vertex count matches $|T| + (L + s - 1) + 1$, the degree condition was just established, and the disjointness and non-adjacency relations between $v$, the shores $F_i$, $E$, and $T$ are provided by the theorem's assumptions.

    lines 18–19

    uses op1957_disjoint_shores_defect_budget

      have hh := op1957_disjoint_shores_defect_budget G J F E T j v hj hv hdis hdisE hanti hantiE
        hvT hforbid (L+s-1) (s-3) hsize hd
  3. $\sum_{i \in J \setminus \{j\}} |F_i \setminus T| + |E \setminus T| + 3 \le s$

    Adding $3$ to both sides of the inequality from the previous step yields the final bound, which linear arithmetic (`omega`) confirms since $s \ge 3$.

    line 20

      omega
op1957_disjoint_shores_defect_budget
In a finite graph $G$, if pairwise disjoint sets $F_i$ and a set $E$ are given such that a vertex $v \in F_j$ has no neighbors in the other shores $F_i$ ($i \neq j$), in $E$, or in $T$, and if the total number of vertices is $|T| + d + 1$ with $d \le |N(v)| + r$, then the remaining vertices of the shores and $E$ outside $T$ satisfy $\sum_{i \in J \setminus \{j\}} |F_i \setminus T| + |E \setminus T| \le r$.

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_disjoint_shores_representative_degree_bound    {V I : Type*} [Fintype V] [DecidableEq V] [DecidableEq I]    (G : SimpleGraph V) [DecidableRel G.Adj]    (J : Finset I) (F : I → Finset V) (E T : Finset V) (j : I) (v : V)    (hj : j ∈ J) (hv : v ∈ F j)    (hdis : ∀ i ∈ J, ∀ l ∈ J, i ≠ l → Disjoint (F i) (F l))    (hdisE : ∀ i ∈ J, Disjoint (F i) E)    (hanti : ∀ i ∈ J, i ≠ j → ∀ w ∈ F i, ¬ G.Adj v w)    (hantiE : ∀ w ∈ E, ¬ G.Adj v w)    (hvT : v ∉ T) (hforbid : ∀ w ∈ T, ¬ G.Adj v w)    (L s : ℕ) (hs : 3 ≤ s)    (hsize : Fintype.card V = T.card+(L+s-1)+1)    (hdegree : L+2 ≤ (G.neighborFinset v).card) :    (∑ i ∈ J.erase j, (F i \ T).card) + (E \ T).card + 3 ≤ s := by  have hd : L+s-1 ≤ (G.neighborFinset v).card+(s-3) := by omega  have hh := op1957_disjoint_shores_defect_budget G J F E T j v hj hv hdis hdisE hanti hantiE    hvT hforbid (L+s-1) (s-3) hsize hd  omega
See it in the graphDiscuss this resultChallenge it