boundary_five_blocks_short_c_shore_arithmetic
The displayed degree, parity, size and separator counts imply at least two A vertices in the first shore when the opposite shore contains at most one C vertex.
Statement
theorem boundary_five_blocks_short_c_shore_arithmetic
(m r qa qb qc qd wa wb wc wd Q W : ℕ)
(hm : 5 ≤ m) (hr : r ≤ 2) (hrc : wc ≤ r)
(hqcapa : qa+wa ≤ 4) (hqcapb : qb+wb ≤ m)
(hqcapc : qc+wc ≤ 4) (hqcapd : qd+wd ≤ m)
(hQ : Q=qa+qb+qc+qd) (hW : W=wa+wb+wc+wd)
(hQe : Even Q) (hWe : Even W) (htotal : Q+W=m+3)
(hx : wa+wd+r ≤ 2) (hy : qa+qb+qc ≤ 2)
(hqa : 0<qa → wa+wc+wd+1 ≤ 2)
(hqb : 0<qb → wb+wc+wd+1+3 ≤ m)
(hqc : 0<qc → wa+wb+wc+1 ≤ 2)
(hqd : 0<qd → wa+wb+wd+3 ≤ m)
(hwa : 0<wa → qa+qc+qd+1 ≤ 2)
(hwb : 0<wb → qb+qc+qd+3 ≤ m)
(hwc : 0<wc → qa+qb+qc+1 ≤ 2)
(hwd : 0<wd → qa+qb+qd+1+3 ≤ m)
(hsep : 0<qd → qd+wb+wd ≤ m) (hwc1 : wc ≤ 1) : 2 ≤ qa- Source
- OP-1957: unbounded arithmetic core of the two-five-block boundary classification.
- Verified
- 24 Nov 2026
- Axioms
Quot.soundpropext- Used by 3
- boundary_five_blocks_essential_edge_cross_defect_patternIn the displayed four-block partition with both selected blocks of size five, minimum degree at least 2k+2, a separator property and…
- boundary_five_blocks_two_defect_shore_arithmeticThe displayed degree, parity, size and separator counts force the second shore to contain both C nonneighbors of x, no A vertices on the…
- boundary_five_blocks_bridge_shore_defect_patternUnder the displayed four-block, minimum-degree and separator hypotheses, the indicated even bridge shores have at least two A vertices on…
The proof, explained
The theorem is proved by contradiction: assuming $qa \le 1$, we show that both $qd$ and $wb$ must be strictly positive by ruling out zero values through the degree and parity constraints. With $qd > 0$ and $wb > 0$, the corresponding degree inequalities force $qd \ge 4$ and $wb \ge 4$, which in turn implies $wa = 0$ and $qc = 0$. Finally, combining the separator condition with a case split on $wc = 0$ derives a linear arithmetic contradiction in both branches, establishing $qa \ge 2$.
Assume for contradiction that $qa \le 1$ and unpack the evenness of $Q$ and $W$.
The evenness hypotheses for $Q$ and $W$ provide integer witnesses with $Q = 2i$ and $W = 2j$. Assuming the negation of $2 \le qa$, linear integer arithmetic gives $qa \le 1$.
obtain ⟨i, hi⟩ := hQe obtain ⟨j, hj⟩ := hWe by_contra hn have ha : qa ≤ 1 := by omega
The vertex count $qd$ must be strictly positive ($qd > 0$).
Suppose for contradiction that $qd = 0$. Linear arithmetic with the parity constraints and the total sum forces $Q = 2$ and $wb \ge m - 1$. Case analysis on $qb$ and $qc$ then leads to a contradiction in every branch: if $qb > 0$, the degree bound $wb + wc + wd + 4 \le m$ contradicts $wb \ge m - 1$ since $m \ge 5$; if $qb = 0$ and $qc > 0$, the bound $wa + wb + wc + 1 \le 2$ contradicts $wb \ge m - 1 \ge 4$; and if $qb = qc = 0$, then $Q = qa = 2$, contradicting $qa \le 1$. Hence $qd > 0$.
have hdp : 0 < qd := by by_contra hnD have hD : qd = 0 := by omega have hQ2 : Q = 2 := by omega have hB : m-1 ≤ wb := by omega by_cases hb : 0 < qb · have hh := hqb hb omega · by_cases hc : 0 < qc · have hh := hqc hc omega · omega
The vertex count $wb$ must be strictly positive ($wb > 0$).
Suppose for contradiction that $wb = 0$. Symmetrically, linear arithmetic forces $qd \ge m - 1$. If $wa > 0$, the bound $qa + qc + qd + 1 \le 2$ contradicts $qd \ge m - 1 \ge 4$. If $wa = 0$ and $wd > 0$, the bound $qa + qb + qd + 4 \le m$ contradicts $qd \ge m - 1$. Finally, if $wa = wd = 0$, then $W = wc \le 1$, which is incompatible with $W$ being even and $Q + W = m + 3$. Thus $wb > 0$.
have hbp : 0 < wb := by by_contra hnB have hB : wb = 0 := by omega have hD : m-1 ≤ qd := by omega by_cases h1 : 0 < wa · have hh := hwa h1 omega · by_cases h2 : 0 < wd · have hh := hwd h2 omega · omega
The shore totals and block counts satisfy $Q \ge 6$, $W \ge 6$, $qd \ge 4$, and $wb \ge 4$. automation
Since $qd > 0$ and $wb > 0$, the conditional degree bounds imply $wa + wb + wd + 3 \le m$ and $qb + qc + qd + 3 \le m$. Combining these with $Q + W = m + 3$, the evenness of $Q$ and $W$, and $m \ge 5$, linear arithmetic establishes $Q \ge 6$, $W \ge 6$, $qd \ge 4$, and $wb \ge 4$.
have hdW := hqd hdp have hbQ := hwb hbp have hQ6 : 6 ≤ Q := by omega have hW6 : 6 ≤ W := by omega have hD4 : 4 ≤ qd := by omega have hB4 : 4 ≤ wb := by omega
The vertex count $wa$ equals 0.
If $wa > 0$, the degree bound yields $qa + qc + qd + 1 \le 2$, which contradicts $qd \ge 4$. Therefore $wa = 0$.
have hwa0 : wa=0 := by by_contra hnwa have hh := hwa (by omega) omega
The vertex count $qc$ equals 0.
If $qc > 0$, the degree bound yields $wa + wb + wc + 1 \le 2$, which contradicts $wb \ge 4$. Therefore $qc = 0$.
have hqc0 : qc=0 := by by_contra hnqc have hh := hqc (by omega) omega
A contradiction is reached in all cases, establishing $2 \le qa$. automation
Because $qd > 0$, the separator condition yields $qd + wb + wd \le m$. A case split on $wc = 0$ completes the proof: if $wc = 0$, linear arithmetic derives a contradiction from the accumulated lower bounds and equality constraints; if $wc > 0$, the condition $qa + qb + qc + 1 \le 2$ holds and also contradicts the bounds. Both branches contradict $qa \le 1$, concluding that $2 \le qa$.
have hs := hsep hdp by_cases hc0 : wc = 0 · omega · have hh := hwc (by omega) omega
- The proof relies heavily on the `omega` decision procedure to solve systems of linear integer inequalities combined with parity constraints.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem boundary_five_blocks_short_c_shore_arithmetic (m r qa qb qc qd wa wb wc wd Q W : ℕ) (hm : 5 ≤ m) (hr : r ≤ 2) (hrc : wc ≤ r) (hqcapa : qa+wa ≤ 4) (hqcapb : qb+wb ≤ m) (hqcapc : qc+wc ≤ 4) (hqcapd : qd+wd ≤ m) (hQ : Q=qa+qb+qc+qd) (hW : W=wa+wb+wc+wd) (hQe : Even Q) (hWe : Even W) (htotal : Q+W=m+3) (hx : wa+wd+r ≤ 2) (hy : qa+qb+qc ≤ 2) (hqa : 0<qa → wa+wc+wd+1 ≤ 2) (hqb : 0<qb → wb+wc+wd+1+3 ≤ m) (hqc : 0<qc → wa+wb+wc+1 ≤ 2) (hqd : 0<qd → wa+wb+wd+3 ≤ m) (hwa : 0<wa → qa+qc+qd+1 ≤ 2) (hwb : 0<wb → qb+qc+qd+3 ≤ m) (hwc : 0<wc → qa+qb+qc+1 ≤ 2) (hwd : 0<wd → qa+qb+qd+1+3 ≤ m) (hsep : 0<qd → qd+wb+wd ≤ m) (hwc1 : wc ≤ 1) : 2 ≤ qa := by obtain ⟨i, hi⟩ := hQe obtain ⟨j, hj⟩ := hWe by_contra hn have ha : qa ≤ 1 := by omega have hdp : 0 < qd := by by_contra hnD have hD : qd = 0 := by omega have hQ2 : Q = 2 := by omega have hB : m-1 ≤ wb := by omega by_cases hb : 0 < qb · have hh := hqb hb omega · by_cases hc : 0 < qc · have hh := hqc hc omega · omega have hbp : 0 < wb := by by_contra hnB have hB : wb = 0 := by omega have hD : m-1 ≤ qd := by omega by_cases h1 : 0 < wa · have hh := hwa h1 omega · by_cases h2 : 0 < wd · have hh := hwd h2 omega · omega have hdW := hqd hdp have hbQ := hwb hbp have hQ6 : 6 ≤ Q := by omega have hW6 : 6 ≤ W := by omega have hD4 : 4 ≤ qd := by omega have hB4 : 4 ≤ wb := by omega have hwa0 : wa=0 := by by_contra hnwa have hh := hwa (by omega) omega have hqc0 : qc=0 := by by_contra hnqc have hh := hqc (by omega) omega have hs := hsep hdp by_cases hc0 : wc = 0 · omega · have hh := hwc (by omega) omega