Set_of_Even_Numbers_is_Primitive_Recursive
Provedcomputabilityprimitive-recursive-functionsproofwiki
Let be the set of all even natural numbers. Then is primitive recursive.
Preamble
import Mathlib.Computability.Primrec
Formal statement
theorem Set_of_Even_Numbers_is_Primitive_Recursive : Nat.Primrec (fun n => if n % 2 = 0 then 1 else 0) := by sorry
Source