Length_Function_is_Primitive_Recursive
Provedcomputabilityprimitive-recursive-functionsproofwiki
Let . Let denote the length of . Then the function is primitive recursive.
Preamble
import Mathlib.Computability.Primrec
Formal statement
theorem Length_Function_is_Primitive_Recursive : Primrec (fun (l : List ℕ) => l.length) := by sorry
Source