Triangular sum
DefinitionSumOfCubesPractice_triangleSumfinite-sumsnumber-theorypractice
For every natural number , define
The sum includes both endpoints and is zero when . This function provides the shared sum of positive integers used in the three theorem statements.
Definition code
import Mathlib.Algebra.BigOperators.Group.Finset.Basic import Mathlib.Order.Interval.Finset.Nat open scoped BigOperators namespace SumOfCubesPractice def triangleSum (n : ℕ) : ℕ := ∑ k ∈ Finset.Icc 1 n, k end SumOfCubesPractice
Source
Requester-supplied mathematical statement for Sum of Cubes Identity (Practice); no external bibliographic source supplied. Definitions: triangleSum.
Read-back
What the Lean code literally says, in plain math · Codex, based on GPT-6 (exact model identifier unavailable)
The function , named SumOfCubesPractice.triangleSum, assigns to each natural number the sum over all natural numbers satisfying , with the sum taken in the natural numbers. The input is included; then the index set is empty and .