saturated_small_shore_pool_card_eq_groups
Under the displayed small-shore pattern and count inequalities, the B-only pool cardinality equals its number of odd groups and the first shore contains at least two D vertices; the exceptional pattern has an empty B intersection on the y shore, at least six D vertices, and m+6≤c.
Statement
theorem saturated_small_shore_pool_card_eq_groups (k c m eb a b0 b1 b2 b3 c0 c1 c2 c3 d : ℕ) (hc : 7 ≤ c) (hkc : c ≤ k) (heb : m ≤ eb) (hpat : a=1 ∧ ((c1=3 ∧ c2+c3=0 ∧ b0+c0+b2+c2+b3+c3+eb+4=c) ∨ (c1=1 ∧ c2+c3=2 ∧ (1 ≤ c2 → c2=1 ∧ b2+c2=1) ∧ (1 ≤ c3 → c3=1 ∧ b3+c3=1)))) (he2 : (c2=0 ∧ b2=0) ∨ 1 ≤ c2) (he3 : (c3=0 ∧ b3=0) ∨ 1 ≤ c3) (hodd0 : Odd (a+b0+c0+d)) (hs : m + (if 1 ≤ c2 then 1 else 0) + (if 1 ≤ c3 then 1 else 0) + 1 ≤ c) (hb : b0+b1+b2+b3+eb+5 ≤ 2*k) (htotal : a+b0+b1+b2+b3+eb+c0+c1+c2+c3+d+m+ (if 1 ≤ c2 then 1 else 0) + (if 1 ≤ c3 then 1 else 0) = 2*k) (hrep0C : 1 ≤ c0 → b1+b2+b3+eb+c1+c2+c3+3 ≤ c) (hcutD : 1 ≤ d → d+b1+b2+b3+eb+c ≤ 2*k) (hrep2C : 1 ≤ c2 → a+b0+b1+b3+eb+c0+c1+c3+3 ≤ c) (hcrit : (b0+b1+b2+b3+eb+5 < 2*k → m+b0+b1+b2+b3+eb+6 ≤ 2*k) ∧ (b0+b1+b2+b3+eb+5 = 2*k → m ≤ 1 ∧ (if 1 ≤ b0 then 1 else 0) + (if 1 ≤ b1 then 1 else 0) + (if 1 ≤ b2 then 1 else 0) + (if 1 ≤ b3 then 1 else 0) + m ≤ 1)) : eb=m ∧ 2 ≤ d ∧ (c1=1 → b1=0 ∧ m+6 ≤ c ∧ 6 ≤ d)
- Source
- OP-1957; small-shore aggregate strengthening suggested by experiments 40052, 40053 and 40055.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
The proof proceeds by unpacking the parity hypothesis on the first shore and splitting into eight configurations based on the small-shore pattern and the status of shores 2 and 3. Simplification immediately discards four contradictory configurations where the component counts conflict with their sum. The remaining configurations are then solved by Presburger linear arithmetic, with case splits on indicator functions in the capacity constraints.
There is a natural number t such that a + b0 + c0 + d = 2 * t + 1.
We unpack the oddness assumption on the vertex count of the first shore (hodd0) into an explicit witness t, yielding the equality a + b0 + c0 + d = 2 * t + 1.
obtain ⟨t,ht⟩ := hodd0It suffices to verify the conclusion across the eight configurations formed by the pattern alternatives and the status of shores 2 and 3.
We perform a case split on hpat, which provides two alternatives for (c1, c2 + c3) (either c1 = 3 with c2 + c3 = 0, or c1 = 1 with c2 + c3 = 2), and cross it with case splits on he2 and he3, which specify whether each pair (c2, b2) and (c3, b3) is (0, 0) or has the c-component at least 1.
rcases hpat with ⟨ha,hpat | hpat⟩ <;> rcases he2 with h2 | h2 <;> rcases he3 with h3 | h3
In every configuration, eb = m, 2 ≤ d, and if c1 = 1 then b1 = 0, m + 6 ≤ c, and 6 ≤ d. automation
simp_all substitutes known values into the hypotheses, immediately refuting four impossible configurations where the sum c2 + c3 contradicts the individual bounds on c2 and c3. Each of the four remaining goals is closed by Presburger arithmetic (omega), splitting on the conditions 1 ≤ b_i (split_ifs) to resolve the indicator functions in the capacity bounds hcrit.
all_goals simp_all all_goals first | omega | (split_ifs at * <;> omega)
- The arithmetic verification of all surviving branches is delegated to the automated tactic omega, with split_ifs handling case splits over indicator functions of the form if 1 ≤ b_i then 1 else 0 in the capacity hypothesis.
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 saturated_small_shore_pool_card_eq_groups (k c m eb a b0 b1 b2 b3 c0 c1 c2 c3 d : ℕ) (hc : 7 ≤ c) (hkc : c ≤ k) (heb : m ≤ eb) (hpat : a=1 ∧ ((c1=3 ∧ c2+c3=0 ∧ b0+c0+b2+c2+b3+c3+eb+4=c) ∨ (c1=1 ∧ c2+c3=2 ∧ (1 ≤ c2 → c2=1 ∧ b2+c2=1) ∧ (1 ≤ c3 → c3=1 ∧ b3+c3=1)))) (he2 : (c2=0 ∧ b2=0) ∨ 1 ≤ c2) (he3 : (c3=0 ∧ b3=0) ∨ 1 ≤ c3) (hodd0 : Odd (a+b0+c0+d)) (hs : m + (if 1 ≤ c2 then 1 else 0) + (if 1 ≤ c3 then 1 else 0) + 1 ≤ c) (hb : b0+b1+b2+b3+eb+5 ≤ 2*k) (htotal : a+b0+b1+b2+b3+eb+c0+c1+c2+c3+d+m+ (if 1 ≤ c2 then 1 else 0) + (if 1 ≤ c3 then 1 else 0) = 2*k) (hrep0C : 1 ≤ c0 → b1+b2+b3+eb+c1+c2+c3+3 ≤ c) (hcutD : 1 ≤ d → d+b1+b2+b3+eb+c ≤ 2*k) (hrep2C : 1 ≤ c2 → a+b0+b1+b3+eb+c0+c1+c3+3 ≤ c) (hcrit : (b0+b1+b2+b3+eb+5 < 2*k → m+b0+b1+b2+b3+eb+6 ≤ 2*k) ∧ (b0+b1+b2+b3+eb+5 = 2*k → m ≤ 1 ∧ (if 1 ≤ b0 then 1 else 0) + (if 1 ≤ b1 then 1 else 0) + (if 1 ≤ b2 then 1 else 0) + (if 1 ≤ b3 then 1 else 0) + m ≤ 1)) : eb=m ∧ 2 ≤ d ∧ (c1=1 → b1=0 ∧ m+6 ≤ c ∧ 6 ≤ d) := by obtain ⟨t,ht⟩ := hodd0 rcases hpat with ⟨ha,hpat | hpat⟩ <;> rcases he2 with h2 | h2 <;> rcases he3 with h3 | h3 all_goals simp_all all_goals first | omega | (split_ifs at * <;> omega)