AFTD Auto-Formalizing Theoretical Domains

boundary_five_blocks_short_c_shore_arithmetic

theoremverified

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

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$.

  1. 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$.

    lines 18–21

      obtain ⟨i, hi⟩ := hQe
      obtain ⟨j, hj⟩ := hWe
      by_contra hn
      have ha : qa ≤ 1 := by omega
  2. 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$.

    lines 22–33

      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
  3. 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$.

    lines 34–44

      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
  4. 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$.

    lines 45–50

      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
  5. 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$.

    lines 51–54

      have hwa0 : wa=0 := by
        by_contra hnwa
        have hh := hwa (by omega)
        omega
  6. 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$.

    lines 55–58

      have hqc0 : qc=0 := by
        by_contra hnqc
        have hh := hqc (by omega)
        omega
  7. 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$.

    lines 59–63

      have hs := hsep hdp
      by_cases hc0 : wc = 0
      · omega
      · have hh := hwc (by omega)
        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

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
See it in the graphDiscuss this resultChallenge it