boundary_two_extra_shores_count_impossible
The displayed nonnegative integer block counts, residual size, two nonempty extra-shore witnesses and defect inequalities are inconsistent.
Statement
theorem boundary_two_extra_shores_count_impossible
(k s a0 b0 c0 d0 a1 b1 c1 d1 a2 b2 c2 d2 a3 b3 c3 d3 : ℕ) (hk : 5 ≤ k) (hs : 2 ≤ s)
(hs4 : s ≤ 4) (hx : 1 ≤ a0) (hy : 1 ≤ c1)
(htotal : a0+b0+c0+d0+a1+b1+c1+d1+a2+b2+c2+d2+a3+b3+c3+d3+s = 2*k)
(hwsize : s ≤ a3+b3+c3+d3+1)
(hA : a0+a1+a2+a3 ≤ 5)
(hB : b0+b1+b2+b3+5 ≤ 2*k)
(hC : c0+c1+c2+c3 ≤ 5)
(hD : d0+d1+d2+d3+5 ≤ 2*k)
(hxdef : a1+c1+d1+a2+c2+d2+a3+c3+d3 ≤ 3)
(hydef : a0+b0+c0+a2+b2+c2+a3+b3+c3 ≤ 3)
(hz : (1 ≤ a2 ∧ a0+c0+d0+a1+c1+d1+a3+c3+d3 ≤ 2) ∨
(1 ≤ b2 ∧ b0+c0+d0+b1+c1+d1+b3+c3+d3+8 ≤ 2*k) ∨
(1 ≤ c2 ∧ a0+b0+c0+a1+b1+c1+a3+b3+c3 ≤ 2) ∨
(1 ≤ d2 ∧ a0+b0+d0+a1+b1+d1+a3+b3+d3+8 ≤ 2*k))
(hw : (1 ≤ a3 ∧ a0+c0+d0+a1+c1+d1+a2+c2+d2 ≤ 2) ∨
(1 ≤ b3 ∧ b0+c0+d0+b1+c1+d1+b2+c2+d2+8 ≤ 2*k) ∨
(1 ≤ c3 ∧ a0+b0+c0+a1+b1+c1+a2+b2+c2 ≤ 2) ∨
(1 ≤ d3 ∧ a0+b0+d0+a1+b1+d1+a2+b2+d2+8 ≤ 2*k)) : False- Source
- OP-1957: arithmetic for two anticomplete extra shores in the nonclique four-block route.
- Verified
- 22 Nov 2026
- Axioms
Quot.soundpropext
The proof, explained
The proof proceeds by contradiction through an exhaustive case analysis on the locations of the two extra-shore witnesses. The hypotheses $hz$ and $hw$ each provide four alternatives for which block contains witness $z$ and witness $w$, respectively, yielding 16 cases in total. In every case, the resulting system of linear inequalities over $\mathbb{N}$ is inconsistent and is refuted automatically by Presburger arithmetic.
A contradiction is derived in all 16 cases, showing that no such block counts and witnesses can simultaneously exist. automation
We perform a case split on the four possibilities for the witness $z$ given by `hz` (whether $1 \le a_2$, $1 \le b_2$, $1 \le c_2$, or $1 \le d_2$, along with the associated defect bound) and the four possibilities for the witness $w$ given by `hw` (whether $1 \le a_3$, $1 \le b_3$, $1 \le c_3$, or $1 \le d_3$, with its defect bound). This generates $4 \times 4 = 16$ cases. In each case, the system of linear inequalities—comprising the nonnegativity of all block counts, the parameter bounds $5 \le k$ and $2 \le s \le 4$, the total count $\sum (a_i + b_i + c_i + d_i) + s = 2k$, the defect conditions, and the case-specific witness inequalities—is inconsistent over $\mathbb{N}$. The `omega` tactic solves and refutes each of these 16 linear integer systems automatically.
rcases hz with hz | hz | hz | hz <;> rcases hw with hw | hw | hw | hw <;> omega
- The refutation of each of the 16 linear systems is performed entirely by Lean's `omega` decision procedure for Presburger arithmetic without explicit intermediate arithmetic deductions.
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_two_extra_shores_count_impossible (k s a0 b0 c0 d0 a1 b1 c1 d1 a2 b2 c2 d2 a3 b3 c3 d3 : ℕ) (hk : 5 ≤ k) (hs : 2 ≤ s) (hs4 : s ≤ 4) (hx : 1 ≤ a0) (hy : 1 ≤ c1) (htotal : a0+b0+c0+d0+a1+b1+c1+d1+a2+b2+c2+d2+a3+b3+c3+d3+s = 2*k) (hwsize : s ≤ a3+b3+c3+d3+1) (hA : a0+a1+a2+a3 ≤ 5) (hB : b0+b1+b2+b3+5 ≤ 2*k) (hC : c0+c1+c2+c3 ≤ 5) (hD : d0+d1+d2+d3+5 ≤ 2*k) (hxdef : a1+c1+d1+a2+c2+d2+a3+c3+d3 ≤ 3) (hydef : a0+b0+c0+a2+b2+c2+a3+b3+c3 ≤ 3) (hz : (1 ≤ a2 ∧ a0+c0+d0+a1+c1+d1+a3+c3+d3 ≤ 2) ∨ (1 ≤ b2 ∧ b0+c0+d0+b1+c1+d1+b3+c3+d3+8 ≤ 2*k) ∨ (1 ≤ c2 ∧ a0+b0+c0+a1+b1+c1+a3+b3+c3 ≤ 2) ∨ (1 ≤ d2 ∧ a0+b0+d0+a1+b1+d1+a3+b3+d3+8 ≤ 2*k)) (hw : (1 ≤ a3 ∧ a0+c0+d0+a1+c1+d1+a2+c2+d2 ≤ 2) ∨ (1 ≤ b3 ∧ b0+c0+d0+b1+c1+d1+b2+c2+d2+8 ≤ 2*k) ∨ (1 ≤ c3 ∧ a0+b0+c0+a1+b1+c1+a2+b2+c2 ≤ 2) ∨ (1 ≤ d3 ∧ a0+b0+d0+a1+b1+d1+a2+b2+d2+8 ≤ 2*k)) : False := by rcases hz with hz | hz | hz | hz <;> rcases hw with hw | hw | hw | hw <;> omega