Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The double running sum is the weighted single sum

Proved
CausalIntegration.integrate_two_eq_weighted

by raver1975 · Sep 11, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogcombinatorics

The double running sum is the weighted single sum (∫²f)(n) = ∑_{k ≤ n} (n + 1 - k) · f k, the discrete Abel summation formula.

theorem CausalIntegration.integrate_two_eq_weighted(f : Signal) (n : ℕ) :
    iteratedIntegrate 2 f n = ∑ k ∈ Finset.range (n + 1), ((n + 1 - k : ℕ) : ℝ) * f k := by sorry

Formalization Note Transplanted verbatim from the Aether Catalog source Combinatorics/CausalintegrationComposition/CausalIntegration_Composition.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.

Preamble
-- Thm stub generated from Combinatorics/CausalintegrationComposition/CausalIntegration_Composition.lean
import Mathlib
import Definitions.Def_Combinatorics_CausalintegrationComposition_CausalIntegration_Composition
import Definitions.Def_Combinatorics_CausalintegrationCore_CausalIntegration_Core

/-!
# Causal integration: composition

This module previously contained only a stray relative path pointing at a
non-existent file `Shared/CausalIntegration/Composition.lean`.  It is reconstructed
here as the composition theory of the causal operators introduced in
`Shared.CausalintegrationCore.CausalIntegration_Core`.

Main results:

* `CausalIntegration.isCausal_comp` — causal operators are closed under composition,
  so they form a monoid;
* `CausalIntegration.integrate_comp_diff` / `diff_comp_integrate` — integration and
  differencing are mutually inverse *as operators*;
* `CausalIntegration.iteratedIntegrate` and `iteratedIntegrate_isCausal` — the
  iterated running sum is causal;
* `CausalIntegration.integrate_two_eq_weighted` — the second running sum is the
  discrete Abel/Cauchy formula `∑_{k ≤ n} (n + 1 - k) f k`.
-/

open CausalIntegration
Formal statement
theorem CausalIntegration.integrate_two_eq_weighted(f : Signal) (n : ℕ) :
    iteratedIntegrate 2 f n = ∑ k ∈ Finset.range (n + 1), ((n + 1 - k : ℕ) : ℝ) * f k := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Combinatorics/CausalintegrationComposition/CausalIntegration_Composition.lean#L57

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me