Bounded_Summation_is_Primitive_Recursive
Provedcomputabilityprimitive-recursive-functionsproofwiki
Let the function be primitive recursive. Then so is the function defined as
Preamble
import Mathlib.Computability.Primrec
Formal statement
theorem Bounded_Summation_is_Primitive_Recursive (f : ℕ → ℕ) (hf : Nat.Primrec f) : Nat.Primrec (fun n => (List.range n).map f |>.foldl (· + ·) 0) := by sorry
Source