AFTD Auto-Formalizing Theoretical Domains

five_odd_saturated_half_pool_full_count_model

theoremverified

For every t the displayed full saturated small-shore count hypotheses have a solution with k=c=4t+9 and m=(k−1)/2. This is an arithmetic model, not an assertion of a graph realization.

Statement

theorem five_odd_saturated_half_pool_full_count_model (t : ℕ) :
  let c := 4*t+9
  let k := c
  let m := 2*t+4
  let eb := m
  let g : Fin 4 → Fin 4 → ℕ := ![![1,2*t+1,0,3], ![0,2*t+2,3,0], ![0,0,0,0], ![0,0,0,0]]
  Odd c ∧ 2*m+1=k ∧ t ≤ m ∧
  (7 ≤ c) ∧
  (c ≤ k) ∧
  (m ≤ eb) ∧
  (∀ j : Fin 4, j ≠ 0 → g j 0 = 0 ∧ g j 3 = 0) ∧
  (Odd (∑ b : Fin 4, g 0 b)) ∧
  (Odd (∑ b : Fin 4, g 1 b)) ∧
  (∀ j : Fin 4, j = 2 ∨ j = 3 →
      (g j 2 = 0 ∧ g j 1 = 0) ∨ 1 ≤ g j 2) ∧
  (1 ≤ g 0 0 ∧ g 0 0 ≤ 2 ∧ 1 ≤ g 1 2) ∧
  (let s := m + (if 1 ≤ g 2 2 then 1 else 0) + (if 1 ≤ g 3 2 then 1 else 0);
      let sz : Fin 4 → ℕ := ![5, 2*k-5, c, 2*k-c];
      let tot : Fin 4 → ℕ := fun b => (∑ j : Fin 4, g j b) + (if b = 1 then eb else 0);
      s+1 ≤ c ∧ s+1 ≤ k ∧ (∀ b, tot b ≤ sz b) ∧
      (∑ b : Fin 4, tot b) + s = 2*k ∧ g 1 2 + g 2 2 + g 3 2 ≤ 3 ∧
      (∑ j ∈ (Finset.univ : Finset (Fin 4)).erase 0, (g j 0 + g j 2 + g j 3)) ≤ 3 ∧
      (∑ j ∈ (Finset.univ : Finset (Fin 4)).erase 1, (g j 0 + g j 1 + g j 2)) + eb + 2 ≤ c) ∧
  (let sz : Fin 4 → ℕ := ![5, 2*k-5, c, 2*k-c];
      let forbid : Fin 4 → Fin 4 := ![1,0,3,2];
      let tot : Fin 4 → ℕ := fun b => (∑ j : Fin 4, g j b) + (if b = 1 then eb else 0);
      ∀ j b : Fin 4,
        (if (j = 0 ∧ b = 0) ∨ (j = 1 ∧ b = 2) then 2 else 1) ≤ g j b →
        (∑ t ∈ (Finset.univ : Finset (Fin 4)).erase (forbid b), (tot t - g j t)) + 3 ≤ sz b) ∧
  (let sz : Fin 4 → ℕ := ![5, 2*k-5, c, 2*k-c];
      let tot : Fin 4 → ℕ := fun b => (∑ j : Fin 4, g j b) + (if b = 1 then eb else 0);
      (∀ j b : Fin 4, (b = 1 ∨ b = 3) → 1 ≤ g j b →
        g j b + (tot 1 - g j 1) + (tot 3 - g j 3) ≤ sz b) ∧
      (m > 0 → tot 1 + tot 3 ≤ sz 1) ∧
      (∀ j : Fin 4,
        (1 ≤ g j 0 - (if j = 0 then 1 else 0) →
          g j 0 - (if j = 0 then 1 else 0) + (tot 3 - g j 3) ≤ 5) ∧
        (1 ≤ g j 2 - (if j = 1 then 1 else 0) →
          g j 2 - (if j = 1 then 1 else 0) + (tot 1 - g j 1) ≤ c) ∧
        (1 ≤ tot 0 - g j 0 - (if j = 1 then 1 else 0) →
          g j 0 + g j 2 + g j 3 + (tot 0 - g j 0 - (if j = 1 then 1 else 0)) ≤ 5 + (tot 1 - g j 1)) ∧
        (1 ≤ tot 2 - g j 2 - (if j = 0 then 1 else 0) →
          g j 0 + g j 1 + g j 2 + (tot 2 - g j 2 - (if j = 0 then 1 else 0)) ≤ c + (tot 3 - g j 3)))) ∧
  (let sz : Fin 4 → ℕ := ![5, 2*k-5, c, 2*k-c];
      let tot : Fin 4 → ℕ := fun b => (∑ j : Fin 4, g j b) + (if b = 1 then eb else 0);
      let groups : Fin 4 → ℕ := fun b => (∑ j : Fin 4, if 1 ≤ g j b then 1 else 0) + (if b = 1 then m else 0);
      (tot 1 < sz 1 → m + tot 1 + 1 ≤ sz 1) ∧
        (tot 1 = sz 1 → m ≤ 1 ∧ groups 1 ≤ 1)) ∧
  ((g 0 0 = 1 → g 0 2 + g 0 3 = 0 → g 0 1 = 0) ∧
   (g 1 2 = 1 → g 1 0 + g 1 1 = 0 → g 1 3 = 0))
Source
OP-1957; experiment 39909 checks this count family at k=9,13,...,101.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The theorem shows that for every parameter t ∈ ℕ, the explicit configuration c = k = 4t + 9, m = eb = 2t + 4, and the 4×4 matrix g with rows [1, 2t+1, 0, 3], [0, 2t+2, 3, 0], [0, 0, 0, 0], [0, 0, 0, 0] satisfies the full saturated small-shore count hypotheses. Because the indices range over the four-element type Fin 4, the proof proceeds by exhaustive case analysis (`fin_cases`) to expand all universally quantified conditions into concrete scalar statements, which are then dispatched by linear Presburger arithmetic (`omega`) and matrix evaluation lemmas.

  1. The definitions of c, k, m, eb, and g are simplified, and the complements of singletons {0}, {1}, {2}, {3} in Fin 4 are explicitly computed.

    The let-bindings are simplified in the goal using `dsimp`. Computing the complement of each element i ∈ {0, 1, 2, 3} in the universal set on Fin 4 leaves the remaining three elements; each equation is verified by finite evaluation (`decide`).

    lines 53–57

      dsimp only
      have e0 : (Finset.univ : Finset (Fin 4)).erase 0 = {1,2,3} := by decide
      have e1 : (Finset.univ : Finset (Fin 4)).erase 1 = {0,2,3} := by decide
      have e2 : (Finset.univ : Finset (Fin 4)).erase 2 = {0,1,3} := by decide
      have e3 : (Finset.univ : Finset (Fin 4)).erase 3 = {0,1,2} := by decide
  2. The global scalar relations hold: c is odd, 2m + 1 = k, t ≤ m, 7 ≤ c, c ≤ k, and m ≤ eb.

    Substituting c = k = 4t + 9 and m = eb = 2t + 4, the witness 2t + 4 shows 4t + 9 = 2(2t + 4) + 1, so c is odd. Linear Presburger arithmetic (`omega`) closes 2(2t + 4) + 1 = 4t + 9, t ≤ 2t + 4, 7 ≤ 4t + 9, and the trivial equalities c ≤ k and m ≤ eb, leaving ten subgoals for the remaining conditions.

    lines 58–64

      constructor
      · exact ⟨2*t+4, by omega⟩
      constructor
      · omega
      constructor
      · omega
      refine ⟨by omega, by omega, by omega, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_⟩
  3. For all row indices j ≠ 0, the boundary entries satisfy g(j, 0) = 0 and g(j, 3) = 0.

    Exhaustive case analysis on j ∈ {0, 1, 2, 3}: the case j = 0 is ruled out by hypothesis, while for j = 1, 2, 3 the explicit matrix rows give g(1, 0) = g(1, 3) = 0 and rows 2 and 3 are identically zero.

    lines 65–66

      · intro j hj
        fin_cases j <;> simp_all
  4. The sum of entries in row 0 and the sum of entries in row 1 are both odd.

    Expanding the sum over Fin 4 with `Fin.sum_univ_four`, the row 0 sum is 1 + (2t + 1) + 0 + 3 = 2t + 5 = 2(t + 2) + 1, and the row 1 sum is 0 + (2t + 2) + 3 + 0 = 2t + 5 = 2(t + 2) + 1. In both cases, t + 2 provides the witness for oddness.

    lines 67–70

    uses Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail

      · refine ⟨t+2, ?_⟩
        simp [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail] <;> omega
      · refine ⟨t+2, ?_⟩
        simp [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail] <;> omega
  5. Rows 2 and 3 vanish at columns 1 and 2, and the designated entries satisfy 1 ≤ g(0, 0) ≤ 2 and 1 ≤ g(1, 2).

    Rows 2 and 3 are all zeros, satisfying the condition g(j, 2) = 0 ∧ g(j, 1) = 0 for j ∈ {2, 3}. Direct evaluation of matrix entries confirms g(0, 0) = 1 ∈ [1, 2] and g(1, 2) = 3 ≥ 1.

    lines 71–73

    uses Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail

      · intro j hj
        fin_cases j <;> simp_all
      · norm_num [Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail]
  6. The count conditions on total column sizes tot(b), the parameter s, and the erased row sums are satisfied.

    Since g(2, 2) = g(3, 2) = 0, the parameter s simplifies to m = 2t + 4. Linear arithmetic verifies s + 1 ≤ c and the total sum identity ∑ tot(b) + s = (1) + (6t + 7) + 3 + 3 + (2t + 4) = 8t + 18 = 2k. For each column b ∈ Fin 4, tot(b) ≤ sz(b) is checked by case exhaustion on b and linear arithmetic (`omega`).

    lines 74–77

    uses Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail

      · simp [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail, e0, e1, e2, e3]
        refine ⟨by omega, ?_, by omega, by omega⟩
        intro b
        fin_cases b <;> simp [Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail] <;> omega
  7. For every cell (j, b) where g(j, b) meets the threshold, the sum of remaining column totals avoiding forbid(b) plus 3 is at most sz(b). automation

    The proof examines all 16 pairs (j, b) ∈ Fin 4 × Fin 4 using `fin_cases`. In each case, the sum over the erased set is expanded and simplified, and the resulting linear inequalities over ℕ are closed by `omega`.

    lines 78–79

    uses Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail

      · intro j b
        fin_cases j <;> fin_cases b <;> simp [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail, e0, e1, e2, e3] <;> omega
  8. The bounds on columns 1 and 3, the implication for m > 0, and the four cell-balance conditions for each row j hold. automation

    The three conditions are split: the bound for b ∈ {1, 3} and 1 ≤ g(j, b) is verified across all 16 pairs (j, b); the condition tot(1) + tot(3) ≤ sz(1) when m > 0 reduces to (6t + 7) + 3 ≤ 8t + 13, closed by `omega`; and the four row inequalities are checked for each row j ∈ {0, 1, 2, 3} via matrix expansion and linear arithmetic.

    lines 80–87

    uses Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail

      · constructor
        · intro j b hb
          fin_cases j <;> fin_cases b <;> simp_all [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail, e0, e1, e2, e3] <;> omega
        constructor
        · simp [Fin.sum_univ_four]
          omega
        · intro j
          fin_cases j <;> simp [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail, e0, e1, e2, e3] <;> omega
  9. The group saturation conditions on column 1 hold.

    Expanding the summation shows tot(1) = 6t + 7 and sz(1) = 8t + 13. Since m = 2t + 4, m + tot(1) + 1 = 8t + 12 ≤ 8t + 13, so the antecedent tot(1) < sz(1) yields the required bound. The equality tot(1) = sz(1) is impossible over ℕ, making the second implication vacuously true; `omega` dispatches both.

    lines 88–89

    uses Fin.sum_univ_four

      · simp [Fin.sum_univ_four]
        omega
  10. The implication edge conditions on g(0, 0) and g(1, 2) are satisfied.

    The condition requires g(0, 1) = 0 whenever g(0, 0) = 1 and g(0, 2) + g(0, 3) = 0. Because g(0, 2) + g(0, 3) = 0 + 3 = 3 ≠ 0, the premise is false, so the implication holds vacuously. Similarly, g(1, 0) + g(1, 1) = 2t + 2 ≠ 0 falsifies the antecedent for row 1. Numerical evaluation (`norm_num`) dispatches both implications.

    line 90

    uses Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail

      · norm_num [Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail]
Fin.sum_univ_four
The sum of any function over the four-element type Fin 4 equals f 0 + f 1 + f 2 + f 3.
Matrix.cons_val_two
The entry at index 2 of a vector constructed by prepending an element with vecCons is the head of the tail of the remainder.
Matrix.cons_val_three
The entry at index 3 of a vector constructed by prepending an element with vecCons is the head of the second tail of the remainder.
Matrix.vecHead
The first element (head) of a vector indexed by Fin (n + 1).
Matrix.vecTail
The subvector formed by dropping the first element of a vector indexed by Fin (n + 1).

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

set_option maxHeartbeats 2000000theorem five_odd_saturated_half_pool_full_count_model (t : ℕ) :  let c := 4*t+9  let k := c  let m := 2*t+4  let eb := m  let g : Fin 4 → Fin 4 → ℕ := ![![1,2*t+1,0,3], ![0,2*t+2,3,0], ![0,0,0,0], ![0,0,0,0]]  Odd c ∧ 2*m+1=k ∧ t ≤ m ∧  (7 ≤ c) ∧  (c ≤ k) ∧  (m ≤ eb) ∧  (∀ j : Fin 4, j ≠ 0 → g j 0 = 0 ∧ g j 3 = 0) ∧  (Odd (∑ b : Fin 4, g 0 b)) ∧  (Odd (∑ b : Fin 4, g 1 b)) ∧  (∀ j : Fin 4, j = 2 ∨ j = 3 →      (g j 2 = 0 ∧ g j 1 = 0) ∨ 1 ≤ g j 2) ∧  (1 ≤ g 0 0 ∧ g 0 0 ≤ 2 ∧ 1 ≤ g 1 2) ∧  (let s := m + (if 1 ≤ g 2 2 then 1 else 0) + (if 1 ≤ g 3 2 then 1 else 0);      let sz : Fin 4 → ℕ := ![5, 2*k-5, c, 2*k-c];      let tot : Fin 4 → ℕ := fun b => (∑ j : Fin 4, g j b) + (if b = 1 then eb else 0);      s+1 ≤ c ∧ s+1 ≤ k ∧ (∀ b, tot b ≤ sz b) ∧      (∑ b : Fin 4, tot b) + s = 2*k ∧ g 1 2 + g 2 2 + g 3 2 ≤ 3 ∧      (∑ j ∈ (Finset.univ : Finset (Fin 4)).erase 0, (g j 0 + g j 2 + g j 3)) ≤ 3 ∧      (∑ j ∈ (Finset.univ : Finset (Fin 4)).erase 1, (g j 0 + g j 1 + g j 2)) + eb + 2 ≤ c) ∧  (let sz : Fin 4 → ℕ := ![5, 2*k-5, c, 2*k-c];      let forbid : Fin 4 → Fin 4 := ![1,0,3,2];      let tot : Fin 4 → ℕ := fun b => (∑ j : Fin 4, g j b) + (if b = 1 then eb else 0);      ∀ j b : Fin 4,        (if (j = 0 ∧ b = 0) ∨ (j = 1 ∧ b = 2) then 2 else 1) ≤ g j b →        (∑ t ∈ (Finset.univ : Finset (Fin 4)).erase (forbid b), (tot t - g j t)) + 3 ≤ sz b) ∧  (let sz : Fin 4 → ℕ := ![5, 2*k-5, c, 2*k-c];      let tot : Fin 4 → ℕ := fun b => (∑ j : Fin 4, g j b) + (if b = 1 then eb else 0);      (∀ j b : Fin 4, (b = 1 ∨ b = 3) → 1 ≤ g j b →        g j b + (tot 1 - g j 1) + (tot 3 - g j 3) ≤ sz b) ∧      (m > 0 → tot 1 + tot 3 ≤ sz 1) ∧      (∀ j : Fin 4,        (1 ≤ g j 0 - (if j = 0 then 1 else 0) →          g j 0 - (if j = 0 then 1 else 0) + (tot 3 - g j 3) ≤ 5) ∧        (1 ≤ g j 2 - (if j = 1 then 1 else 0) →          g j 2 - (if j = 1 then 1 else 0) + (tot 1 - g j 1) ≤ c) ∧        (1 ≤ tot 0 - g j 0 - (if j = 1 then 1 else 0) →          g j 0 + g j 2 + g j 3 + (tot 0 - g j 0 - (if j = 1 then 1 else 0)) ≤ 5 + (tot 1 - g j 1)) ∧        (1 ≤ tot 2 - g j 2 - (if j = 0 then 1 else 0) →          g j 0 + g j 1 + g j 2 + (tot 2 - g j 2 - (if j = 0 then 1 else 0)) ≤ c + (tot 3 - g j 3)))) ∧  (let sz : Fin 4 → ℕ := ![5, 2*k-5, c, 2*k-c];      let tot : Fin 4 → ℕ := fun b => (∑ j : Fin 4, g j b) + (if b = 1 then eb else 0);      let groups : Fin 4 → ℕ := fun b => (∑ j : Fin 4, if 1 ≤ g j b then 1 else 0) + (if b = 1 then m else 0);      (tot 1 < sz 1 → m + tot 1 + 1 ≤ sz 1) ∧        (tot 1 = sz 1 → m ≤ 1 ∧ groups 1 ≤ 1)) ∧  ((g 0 0 = 1 → g 0 2 + g 0 3 = 0 → g 0 1 = 0) ∧   (g 1 2 = 1 → g 1 0 + g 1 1 = 0 → g 1 3 = 0)) := by  dsimp only  have e0 : (Finset.univ : Finset (Fin 4)).erase 0 = {1,2,3} := by decide  have e1 : (Finset.univ : Finset (Fin 4)).erase 1 = {0,2,3} := by decide  have e2 : (Finset.univ : Finset (Fin 4)).erase 2 = {0,1,3} := by decide  have e3 : (Finset.univ : Finset (Fin 4)).erase 3 = {0,1,2} := by decide  constructor  · exact ⟨2*t+4, by omega⟩  constructor  · omega  constructor  · omega  refine ⟨by omega, by omega, by omega, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_⟩  · intro j hj    fin_cases j <;> simp_all  · refine ⟨t+2, ?_⟩    simp [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail] <;> omega  · refine ⟨t+2, ?_⟩    simp [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail] <;> omega  · intro j hj    fin_cases j <;> simp_all  · norm_num [Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail]  · simp [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail, e0, e1, e2, e3]    refine ⟨by omega, ?_, by omega, by omega⟩    intro b    fin_cases b <;> simp [Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail] <;> omega  · intro j b    fin_cases j <;> fin_cases b <;> simp [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail, e0, e1, e2, e3] <;> omega  · constructor    · intro j b hb      fin_cases j <;> fin_cases b <;> simp_all [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail, e0, e1, e2, e3] <;> omega    constructor    · simp [Fin.sum_univ_four]      omega    · intro j      fin_cases j <;> simp [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail, e0, e1, e2, e3] <;> omega  · simp [Fin.sum_univ_four]    omega  · norm_num [Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail]
See it in the graphDiscuss this resultChallenge it