AFTD Auto-Formalizing Theoretical Domains

five_odd_saturated_small_aggregate_unbounded_model

theoremverified

For every t, the displayed full small-shore aggregate count hypotheses, including the earlier connectedness conditions, have an explicit solution with odd c and at least t block-only groups. This is an arithmetic model, with no assertion that it is realizable by a graph.

Statement

theorem five_odd_saturated_small_aggregate_unbounded_model (t : ℕ) :
  let c := 2*t+7
  let k := c
  let m := c-4
  let eb := m
  let g : Fin 4 → Fin 4 → ℕ := ![![1,0,0,4], ![0,0,3,0], ![0,0,0,0], ![0,0,0,0]]
  Odd c ∧ 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; saturated barrier graph-to-count reduction.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The theorem shows that for every parameter t, the full small-aggregate count model with five odd components has an explicit arithmetic solution with odd c and at least t block-only groups. The proof constructs an explicit model by setting c = k = 2*t+7, m = eb = 2*t+3, and choosing a constant 4×4 matrix g whose only nonzero rows are [1,0,0,4] and [0,0,3,0]. All required conditions—parity requirements, aggregate totals, capacity inequalities, and forbidden-coordinate connectivity bounds—are then verified by exhaustive case analysis over Fin 4 combined with linear integer arithmetic.

  1. The defined parameters and matrix are unfolded, and the punctured index sets of Fin 4 are explicitly computed.

    The initial dsimp only substitutes the explicit definitions of c, k, m, eb, and g into the goal. Lines 54–57 precompute the four complements e0, e1, e2, e3 obtained by erasing 0, 1, 2, and 3 from the universal set of indices Fin 4 by direct decision (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. c is odd and t ≤ m.

    The parity condition Odd c for c = 2*t+7 is established by providing the witness t+3, since 2*(t+3)+1 = 2*t+7. The inequality t ≤ m (where m = 2*t+3) is verified by linear arithmetic (omega).

    lines 58–61

      constructor
      · exact ⟨t+3, by omega⟩
      constructor
      · omega
  3. The baseline parameter bounds 7 ≤ c, c ≤ k, and m ≤ eb hold.

    Linear arithmetic (omega) discharges 7 ≤ 2*t+7, c ≤ c, and m ≤ m, splitting the remaining conjuncts into ten separate goals.

    line 62

      refine ⟨by omega, by omega, by omega, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_⟩
  4. The matrix g satisfies the basic row, column, and parity conditions.

    Rows j ≠ 0 vanish in columns 0 and 3 by case exhaustion on j ∈ Fin 4. The row sums for row 0 (1+0+0+4=5) and row 1 (0+0+3+0=3) are odd, verified by numeric evaluation. For j ∈ {2, 3}, all entries in columns 1 and 2 vanish. Finally, the entries g 0 0 = 1 and g 1 2 = 3 satisfy 1 ≤ g 0 0 ≤ 2 and 1 ≤ g 1 2 by numeric evaluation.

    lines 63–69

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

      · intro j hj
        fin_cases j <;> simp_all
      · norm_num [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail]
      · norm_num [Fin.sum_univ_four, 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]
  5. The small-aggregate totals and shore bounds of the first block are satisfied.

    With s = m = 2*t+3, shore capacities sz = [5, 4*t+9, 2*t+7, 2*t+7], and column totals tot = [1, 2*t+3, 3, 4], the summation expressions are simplified. The shore capacity bounds tot b ≤ sz b are verified for each b ∈ Fin 4 by finite case analysis and linear arithmetic. The remaining conditions—s+1 ≤ c, s+1 ≤ k, the total sum (∑ tot b) + s = 2*k, and the bounds on sums with erased indices—are closed by omega.

    lines 70–74

    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]
        constructor
        · intro b
          fin_cases b <;> simp [Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail] <;> omega
        · constructor <;> omega
  6. The forbidden-coordinate capacity bounds hold for all pairs (j, b) ∈ Fin 4 × Fin 4.

    For each pair (j, b), whenever g j b meets the activation threshold, the sum of remaining components outside the forbidden coordinate forbid b plus 3 is at most the shore capacity sz b. This is established by exhaustive case analysis over all 16 pairs (j, b), simplifying matrix lookups and the precomputed index sets, and solving each resulting arithmetic inequality with omega.

    lines 75–76

    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
  7. The aggregated connectivity and column shift inequalities of the third block hold.

    The block contains three sub-clauses: first, for columns b ∈ {1, 3} and active entries g j b ≥ 1, the residual column sum condition is verified across all pairs (j, b) by case exhaustion. Second, the implication m > 0 → tot 1 + tot 3 ≤ sz 1 simplifies to (2*t+3) + 4 ≤ 4*t+9, which omega discharges. Third, for every row j, the four shifted inequality constraints relating component adjustments to shore capacities and residuals are verified by case analysis on j ∈ Fin 4 and linear arithmetic.

    lines 77–84

    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
  8. The block-group size constraints of the fourth block hold.

    Expanding the summation shows that tot 1 < sz 1 requires (2*t+3) + (2*t+3) + 1 ≤ 4*t+9, which simplifies to 4*t+7 ≤ 4*t+9 and is proved by omega. The equality case tot 1 = sz 1 requires 2*t+3 = 4*t+9, which has no solution in ℕ, so its implication holds vacuously.

    lines 85–86

    uses Fin.sum_univ_four

      · simp [Fin.sum_univ_four]
        omega
  9. The conditional zero-entry implications for rows 0 and 1 hold.

    In the first implication, g 0 2 + g 0 3 = 0 + 4 = 4 ≠ 0, so the premise g 0 2 + g 0 3 = 0 is false. In the second implication, g 1 2 = 3 ≠ 1, so the premise g 1 2 = 1 is false. Both implications are vacuously true, verified by norm_num.

    line 87

    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
Expands a summation over all elements of Fin 4 into the explicit sum f 0 + f 1 + f 2 + f 3.
Matrix.cons_val_two
Evaluates the entry at index 2 of an explicitly constructed vector literal.
Matrix.cons_val_three
Evaluates the entry at index 3 of an explicitly constructed vector literal.
Matrix.vecHead
Extracts the first element (index 0) of a vector.
Matrix.vecTail
Extracts the tail of a vector by dropping its first element.

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_small_aggregate_unbounded_model (t : ℕ) :  let c := 2*t+7  let k := c  let m := c-4  let eb := m  let g : Fin 4 → Fin 4 → ℕ := ![![1,0,0,4], ![0,0,3,0], ![0,0,0,0], ![0,0,0,0]]  Odd c ∧ 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 ⟨t+3, by omega⟩  constructor  · omega  refine ⟨by omega, by omega, by omega, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_⟩  · intro j hj    fin_cases j <;> simp_all  · norm_num [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail]  · norm_num [Fin.sum_univ_four, 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]  · simp [Fin.sum_univ_four, Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail, e0, e1, e2, e3]    constructor    · intro b      fin_cases b <;> simp [Matrix.cons_val_two, Matrix.cons_val_three, Matrix.vecHead, Matrix.vecTail] <;> omega    · constructor <;> 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