AFTD Auto-Formalizing Theoretical Domains

saturated_small_shore_three_c_vertices_pool_card_eq

theoremverified

In the first small-shore arithmetic branch, the displayed degree, separator, criticality and count inequalities force the pool vertex count eb to equal its group count m.

Statement

theorem saturated_small_shore_three_c_vertices_pool_card_eq (k c m eb b0 b1 c0 d : ℕ)
    (hc : 7 ≤ c) (hkc : c ≤ k) (heb : m ≤ eb)
    (hroot : b0+c0+eb+4=c)
    (htotal : b0+b1+eb+c0+d+m+4=2*k)
    (hb : b0+b1+eb+5≤2*k)
    (hrep0 : 1≤c0 → b1+eb+6≤c)
    (hcut : 1≤d → d+b1+eb+c≤2*k)
    (hcrit : (b0+b1+eb+5<2*k → m+b0+b1+eb+6≤2*k) ∧
      (b0+b1+eb+5=2*k → m≤1 ∧
        (if 1≤b0 then 1 else 0) + (if 1≤b1 then 1 else 0) + m ≤ 1)) :
    eb=m
Source
OP-1957: arithmetic reduction of the saturated positive-barrier branches.
Verified
27 Nov 2026
Axioms
Quot.soundpropext
Used by 1

The proof, explained

The theorem proves that the pool vertex count eb equals the group count m by first showing 1 ≤ d through a contradiction argument. Assuming d = 0, the repository condition forces c₀ = 0, and the two branches of the criticality hypothesis both produce linear arithmetic contradictions against the total sum and the bound c ≤ k. Once 1 ≤ d is established, the cut inequality bounds d + b₁ + eb + c by 2k, which, combined with the total sum equation rewritten using the root formula, forces eb ≤ m and therefore eb = m.

  1. Assuming d < 1 for contradiction forces d = 0.

    To show 1 ≤ d, we assume the negation ¬(1 ≤ d). Because d is a natural number, this immediately implies d = 0.

    lines 12–14

      have hd : 1 ≤ d := by
        by_contra h
        have hz : d = 0 := by omega
  2. Under the assumption d = 0, c₀ must also be 0.

    Suppose for contradiction that c₀ ≠ 0, so 1 ≤ c₀. Then hypothesis hrep0 gives b₁ + eb + 6 ≤ c. From hroot, we have c = b₀ + c₀ + eb + 4. Substituting this and d = 0 into the total sum htotal yields c + b₁ + m = 2k. Since c ≤ k, we have 2c ≤ 2k = c + b₁ + m, so c ≤ b₁ + m. Combined with b₁ + eb + 6 ≤ c, this yields eb + 6 ≤ m, which contradicts m ≤ eb.

    lines 15–18

        have hc0 : c0 = 0 := by
          by_contra hh
          have hrep := hrep0 (by omega)
          omega
  3. The case b₀ + b₁ + eb + 5 < 2k is impossible when d = 0 and c₀ = 0.

    If b₀ + b₁ + eb + 5 < 2k, the first branch of the criticality condition hcrit gives m + b₀ + b₁ + eb + 6 ≤ 2k. However, with d = 0 and c₀ = 0, the total sum htotal reduces to m + b₀ + b₁ + eb + 4 = 2k. These two statements together would imply 2k + 2 ≤ 2k, an impossibility.

    lines 19–21

        by_cases hlt : b0+b1+eb+5 < 2*k
        · have hh := hcrit.1 hlt
          omega
  4. The equality b₀ + b₁ + eb + 5 = 2k is also impossible, establishing 1 ≤ d.

    Since the strict inequality failed and b₀ + b₁ + eb + 5 ≤ 2k holds, we must have b₀ + b₁ + eb + 5 = 2k. Comparing this with the total sum equation b₀ + b₁ + eb + m + 4 = 2k forces m = 1. The second branch of hcrit then bounds the indicator terms for 1 ≤ b₀ and 1 ≤ b₁ plus m by 1, which requires b₀ = 0 and b₁ = 0. With b₀ = c₀ = 0, hroot gives c = eb + 4, while b₀ = b₁ = 0 gives 2k = eb + 5. But c ≤ k implies 2c ≤ 2k, meaning 2(eb + 4) ≤ eb + 5, or eb + 3 ≤ 0, which is impossible in ℕ. Thus, all cases fail and we have 1 ≤ d.

    lines 22–24

        · have heq : b0+b1+eb+5=2*k := by omega
          obtain ⟨hm,hs⟩ := hcrit.2 heq
          split_ifs at hs <;> omega
  5. eb = m.

    Applying the cut condition hcut to 1 ≤ d yields d + b₁ + eb + c ≤ 2k. Regrouping the total sum htotal as (b₀ + c₀ + eb + 4) + b₁ + d + m = 2k and substituting hroot reveals that c + b₁ + d + m = 2k. Comparing the two relations gives c + b₁ + d + eb ≤ c + b₁ + d + m, which cancels down to eb ≤ m. Combined with the initial assumption m ≤ eb, we conclude eb = m.

    lines 25–26

      have hh := hcut hd
      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 saturated_small_shore_three_c_vertices_pool_card_eq (k c m eb b0 b1 c0 d : ℕ)    (hc : 7 ≤ c) (hkc : c ≤ k) (heb : m ≤ eb)    (hroot : b0+c0+eb+4=c)    (htotal : b0+b1+eb+c0+d+m+4=2*k)    (hb : b0+b1+eb+5≤2*k)    (hrep0 : 1≤c0 → b1+eb+6≤c)    (hcut : 1≤d → d+b1+eb+c≤2*k)    (hcrit : (b0+b1+eb+5<2*k → m+b0+b1+eb+6≤2*k) ∧      (b0+b1+eb+5=2*k → m≤1 ∧        (if 1≤b0 then 1 else 0) + (if 1≤b1 then 1 else 0) + m ≤ 1)) :    eb=m := by  have hd : 1 ≤ d := by    by_contra h    have hz : d = 0 := by omega    have hc0 : c0 = 0 := by      by_contra hh      have hrep := hrep0 (by omega)      omega    by_cases hlt : b0+b1+eb+5 < 2*k    · have hh := hcrit.1 hlt      omega    · have heq : b0+b1+eb+5=2*k := by omega      obtain ⟨hm,hs⟩ := hcrit.2 heq      split_ifs at hs <;> omega  have hh := hcut hd  omega
See it in the graphDiscuss this resultChallenge it