Set_Operations_on_Primitive_Recursive_Relations
Provedcomputabilityprimitive-recursive-functionsproofwiki
Let and be -ary relations on . Let and be primitive recursive. Then the following are all primitive recursive relations
Preamble
import Mathlib.Computability.Primrec
Formal statement
theorem Set_Operations_on_Primitive_Recursive_Relations (R1 R2 : ℕ → ℕ → Prop) [DecidableRel R1] [DecidableRel R2] (hR1 : PrimrecRel R1) (hR2 : PrimrecRel R2) : PrimrecRel (fun a b => R1 a b ∧ R2 a b) ∧ PrimrecRel (fun a b => R1 a b ∨ R2 a b) ∧ PrimrecRel (fun a b => ¬R1 a b) := by sorry
Source