For f(x) = x² the discrete Itô formula (discrete_ito_formula) collapses to an exact algebraic identity, because the second-order Taylor expansion of x² around any point is exact — the third-order remainder vanishes.
For any real sequence X : ℕ → ℝ and any N,
X_N² − X_0² = 2 · ∑_{k<N} X_k · (X_{k+1} − X_k) + ∑_{k<N} (X_{k+1} − X_k)².
This is the discrete Itô formula for squaring — the pre-probabilistic content of B_t² − B_0² = 2 ∫₀ᵗ B_s dB_s + ⟨B⟩_t, the keystone Itô identity that drives variance-swap pricing, the Black–Scholes PDE derivation, and (via Doob's quadratic-variation theorem) the very definition of the stochastic integral against a martingale.
The identity is pathwise (one ω at a time) and contains no probability; the probabilistic L² version requires the continuous-time Itô integral as a process plus the L² convergence of the partition QV to deterministic t. That bridge is deferred to a follow-up: see the "continuous Itô lemma" track in the resume plan.
Main results
discreteTaylorRemainder_sq — the Taylor remainder for f = x² is 0.discrete_squaring_identity — the pathwise identity X_N² − X_0² = 2·∑ X_k·ΔX_k + ∑ (ΔX_k)².
Tags
discrete Itô formula, squaring identity, telescoping sum, quadratic variation, Itô lemma, MSC 60H05, MSC 60G44