AFTD Auto-Formalizing Theoretical Domains

wager_fraction_squared_telescoping_sum

theoremverified

For any sequence Q : ℕ → ℚ of rational numbers such that Q 0 = 0, Q t ≤ Q (t + 1) for all t, and Q (t + 1) - Q t ≤ 1/2 for all t, any sequence h : ℕ → ℚ such that for all t, (h t)^2 ≤ (Q (t + 1) - Q t) / (4 * (1 + Q t)^2), and any natural number n, the partial sum ∑_{t=0}^{n-1} (h t)^2 ≤ 1/2.

Statement

lemma wager_fraction_squared_telescoping_sum (Q : ℕ → ℚ) (hQ0 : Q 0 = 0)
    (hQ_mono : ∀ t, Q t ≤ Q (t + 1))
    (hQ_step : ∀ t, Q (t + 1) - Q t ≤ 1 / 2)
    (h : ℕ → ℚ)
    (hh : ∀ t, (h t)^2 ≤ (Q (t + 1) - Q t) / (4 * (1 + Q t)^2))
    (n : ℕ) :
    ∑ t ∈ Finset.range n, (h t)^2 ≤ 1 / 2
Source
arXiv:2611.31004 Lemma 2
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1

Read back from the Lean

Let $Q : \mathbb{N} \to \mathbb{Q}$ be a sequence of rational numbers such that: 1. $Q(0) = 0$, 2. $Q(t) \le Q(t + 1)$ for all $t \in \mathbb{N}$, and 3. $Q(t + 1) - Q(t) \le \frac{1}{2}$ for all $t \in \mathbb{N}$. Let $h : \mathbb{N} \to \mathbb{Q}$ be a sequence of rational numbers such that: 4. $(h(t))^2 \le \frac{Q(t + 1) - Q(t)}{4 (1 + Q(t))^2}$ for all $t \in \mathbb{N}$. Then, for any natural number $n \in \mathbb{N}$, $$\sum_{t=0}^{n - 1} (h(t))^2 \le \frac{1}{2}.$$

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- Telescoping sum bound for squared wager fractions: the sum of squared fractions is at most 1/2. -/
lemma wager_fraction_squared_telescoping_sum (Q : ℕ → ℚ) (hQ0 : Q 0 = 0)
    (hQ_mono : ∀ t, Q t ≤ Q (t + 1))
    (hQ_step : ∀ t, Q (t + 1) - Q t ≤ 1 / 2)
    (h : ℕ → ℚ)
    (hh : ∀ t, (h t)^2 ≤ (Q (t + 1) - Q t) / (4 * (1 + Q t)^2))
    (n : ℕ) :
    ∑ t ∈ Finset.range n, (h t)^2 ≤ 1 / 2 := by
  have hQ_nonneg : ∀ t, 0 ≤ Q t := by
    intro t
    induction t with
    | zero => simp [hQ0]
    | succ t ih => exact le_trans ih (hQ_mono t)
  have hterm : ∀ t, (h t)^2 ≤ (1 / (1 + Q t) - 1 / (1 + Q (t + 1))) / 2 := by
    intro t
    exact le_trans (hh t) (wager_fraction_squared_le_telescoping (Q t) (Q (t + 1))
      (hQ_nonneg t) (hQ_mono t) (hQ_step t))
  calc
    ∑ t ∈ Finset.range n, (h t)^2
        ≤ ∑ t ∈ Finset.range n, (1 / (1 + Q t) - 1 / (1 + Q (t + 1))) / 2 :=
          Finset.sum_le_sum (fun t _ => hterm t)
    _ = (1 / (1 + Q 0) - 1 / (1 + Q n)) / 2 := by
          rw [← Finset.sum_div]
          congr 1
          exact Finset.sum_range_sub' (fun t => 1 / (1 + Q t)) n
    _ ≤ 1 / 2 := by
          have h0 : 1 / (1 + Q 0) = 1 := by simp [hQ0]
          have hn : 0 ≤ 1 / (1 + Q n) := by
            have : 0 < 1 + Q n := by linarith [hQ_nonneg n]
            positivity
          rw [h0]
          linarith
See it in the graphDiscuss this resultChallenge it