Sum of cubes
DefinitionSumOfCubesPractice_cubeSumfinite-sumsnumber-theorypractice
For every natural number , define
The sum includes both endpoints and is zero when . This function represents the sum on the left side of the main identity.
Definition code
import Mathlib.Algebra.BigOperators.Group.Finset.Basic import Mathlib.Order.Interval.Finset.Nat open scoped BigOperators namespace SumOfCubesPractice def cubeSum (n : ℕ) : ℕ := ∑ k ∈ Finset.Icc 1 n, k ^ 3 end SumOfCubesPractice
Source
Requester-supplied mathematical statement for Sum of Cubes Identity (Practice); no external bibliographic source supplied. Definitions: cubeSum.
Read-back
What the Lean code literally says, in plain math · Codex, based on GPT-6 (exact model identifier unavailable)
The function is defined for every natural number by , the sum of the cubes of all natural numbers from through , including both endpoints. In particular, is allowed, in which case the index set is empty and .