boundary_clique_same_y_shore_count
The displayed odd-shore, size and defect constraints force the three stated counts in the same-y placement.
Statement
theorem boundary_clique_same_y_shore_count
(k a b c d : ℕ) (hk : 5 ≤ k) (ha : 1 ≤ a) (hc : 1 ≤ c)
(hb : b ≤ 2*k-5) (htotal : a+b+c+d=2*k)
(ha3 : a ≤ 3) (haodd : Odd a) (hx : c+d ≤ 3)
(hotherA : 2 ≤ a → c+d ≤ 2)
(hotherC : 2 ≤ c → a ≤ 2) :
a=3 ∧ c=1 ∧ d=1- Source
- OP-1957: arithmetic in the clique-block essential-edge classification; experiment 37117.
- Verified
- 22 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
The theorem deduces the exact values a = 3, c = 1, and d = 1 from the boundary counts and defect conditions. Because a is an odd natural number at most 3, it can only be 1 or 3; the upper bounds on b and c + d prevent a = 1 since the total sum would fall short of 2k, forcing a = 3. This forces c + d ≤ 2 via the first defect implication, which with the total sum tightens to c + d = 2. Finally, c ≥ 2 would force a ≤ 2 by the second defect implication, contradicting a = 3, which leaves c = 1 and d = 1.
a = 3
Because a is odd, we can write a = 2i + 1 for some natural number i. If a = 1, then using the upper bounds b ≤ 2k - 5 and c + d ≤ 3, the sum a + b + c + d would be at most 1 + (2k - 5) + 3 = 2k - 1, which contradicts the total sum a + b + c + d = 2k. Hence a ≠ 1. Since 1 ≤ a ≤ 3, a is odd, and a ≠ 1, linear arithmetic (omega) forces a = 3.
obtain ⟨i, hi⟩ := haodd have hane1 : a ≠ 1 := by omega have ha_eq : a=3 := by omega
c + d = 2
Since a = 3 ≥ 2, the conditional hypothesis hotherA yields c + d ≤ 2. On the other hand, from a + b + c + d = 2k with a = 3 and b ≤ 2k - 5, we have c + d = 2k - 3 - b ≥ 2k - 3 - (2k - 5) = 2. Linear arithmetic (omega) combines these bounds to conclude c + d = 2.
have hcd : c+d=2 := by have h := hotherA (by omega) omega
c = 1
Suppose, for contradiction, that c ≠ 1. Since c ≥ 1, this implies 2 ≤ c. The hypothesis hotherC then gives a ≤ 2, directly contradicting a = 3. Linear arithmetic (omega) derives False from this contradiction, concluding that c = 1.
have hc1 : c=1 := by by_contra h have hh := hotherC (by omega) omega
a = 3 ∧ c = 1 ∧ d = 1
Combining a = 3, c = 1, and c + d = 2, linear arithmetic (omega) immediately gives d = 1 and satisfies the full conjunction.
omega
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_clique_same_y_shore_count (k a b c d : ℕ) (hk : 5 ≤ k) (ha : 1 ≤ a) (hc : 1 ≤ c) (hb : b ≤ 2*k-5) (htotal : a+b+c+d=2*k) (ha3 : a ≤ 3) (haodd : Odd a) (hx : c+d ≤ 3) (hotherA : 2 ≤ a → c+d ≤ 2) (hotherC : 2 ≤ c → a ≤ 2) : a=3 ∧ c=1 ∧ d=1 := by obtain ⟨i, hi⟩ := haodd have hane1 : a ≠ 1 := by omega have ha_eq : a=3 := by omega have hcd : c+d=2 := by have h := hotherA (by omega) omega have hc1 : c=1 := by by_contra h have hh := hotherC (by omega) omega omega