Documentation

Foundation.Vorspiel.Computability

theorem Nat.Partrec.projection {f : →. } (hf : Nat.Partrec f) (unif : ∀ {m n₁ n₂ a₁ a₂ : }, a₁ f (Nat.pair m n₁)a₂ f (Nat.pair m n₂)a₁ = a₂) :
∃ (g : →. ), Nat.Partrec g ∀ (a m : ), a g m ∃ (z : ), a f (Nat.pair m z)
theorem Partrec.projection {α : Type u_1} {β : Type u_2} {γ : Type u_3} [Primcodable α] [Primcodable β] [Primcodable γ] {f : αβ →. γ} (hf : Partrec₂ f) (unif : ∀ {a : α} {b₁ b₂ : β} {c₁ c₂ : γ}, c₁ f a b₁c₂ f a b₂c₁ = c₂) :
∃ (g : α →. γ), Partrec g ∀ (c : γ) (a : α), c g a ∃ (b : β), c f a b
@[simp]
theorem REPred.const {α : Type u_1} [Primcodable α] (p : Prop) :
REPred fun (x : α) => p
theorem REPred.iff {α : Type u_1} [Primcodable α] {p : αProp} :
REPred p ∃ (f : α →. Unit), Partrec f p = fun (x : α) => (f x).Dom
theorem REPred.iff' {α : Type u_1} [Primcodable α] {p : αProp} :
REPred p ∃ (f : α →. Unit), Partrec f ∀ (x : α), p x (f x).Dom
theorem REPred.and {α : Type u_1} [Primcodable α] {p q : αProp} (hp : REPred p) (hq : REPred q) :
REPred fun (x : α) => p x q x
theorem REPred.or {α : Type u_1} [Primcodable α] {p q : αProp} (hp : REPred p) (hq : REPred q) :
REPred fun (x : α) => p x q x
theorem REPred.projection {α : Type u_1} {β : Type u_2} [Primcodable α] [Primcodable β] {p : α × βProp} (hp : REPred p) :
REPred fun (x : α) => ∃ (y : β), p (x, y)
theorem REPred.comp {α : Type u_1} {β : Type u_2} [Primcodable α] [Primcodable β] {f : αβ} (hf : Computable f) {p : βProp} (hp : REPred p) :
REPred fun (x : α) => p (f x)
@[simp]
theorem ComputablePred.const {α : Type u_1} [Primcodable α] (p : Prop) :
ComputablePred fun (x : α) => p
theorem ComputablePred.and {α : Type u_1} [Primcodable α] {p q : αProp} :
ComputablePred pComputablePred qComputablePred fun (x : α) => p x q x
theorem ComputablePred.or {α : Type u_1} [Primcodable α] {p q : αProp} :
ComputablePred pComputablePred qComputablePred fun (x : α) => p x q x
theorem ComputablePred.of_graph_rePred {α : Type u_1} [Primcodable α] {g : α} (h : REPred fun (p : α × ) => p.2 = g p.1) :