Representation theorem #
This file formalizes Representation Theorem.
- In the first part, we prove one direction, that any partial recursive function is weakly
representable in
Q(rep_iff_of_mem). Moreover, inPAwe prove the uniqueness (rep_unique) and the totality of primitive recursive functions (repPrim_total). - In the second part, we prove the converse direction, that any weakly representable relation is
enumerable in ω-consistent extension of
Q(enumerable_iff_weakly_representable), and any strongly representable relation is recursive in consistent extension ofQ(recursive_iff_strongly_representable). Note that the ω-consistency condition in the former can be weakened to consistency, but to prove that we need Gödel's fixed point construction and Rosser's trick -- we will prove that in future.
theorem
FirstOrder.Language.peano.rep_prec
{a✝ : ℕ}
{f : Partrec a✝}
{g : Partrec (a✝ + 2)}
:
rep (f.prec g) = ∃' (∃' ((rep f)[#0 ∷ᵥ Subst.shift 4]ₚ ⩑ beta (#0) (#1) 0) ⩑ ∀[≺ #2] ∃' ∃' ((rep g)[#0 ∷ᵥ #2 ∷ᵥ #1 ∷ᵥ Subst.shift 6]ₚ ⩑ beta #1 #3 #2 ⩑ beta (#0) (#3) (succ #2)) ⩑ beta #1 #0 #2 ⩑ ∀[≺ #0] (∃' ((rep f)[#0 ∷ᵥ Subst.shift 5]ₚ ⩑ nbeta (#0) (#1) 0) ⩒ ∃[≺ #3] ∃' ∃' ((rep g)[#0 ∷ᵥ #2 ∷ᵥ #1 ∷ᵥ Subst.shift 7]ₚ ⩑ beta #1 #3 #2 ⩑ nbeta (#0) (#3) (succ #2))))
@[reducible, inline]
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
Instances For
Equations
Instances For
theorem
FirstOrder.Language.Theory.Q.enumerable_iff_weakly_representable
{α : Type u_1}
[Encodable α]
{s : Set α}
{T : peano.Theory}
[Recursive T]
[Q ⊆ᵀ T]
(h : peano.OmegaConsistent T)
:
In an ω-consistent recursive theory T extending Q, a set is weakly representable in T iff it
is enumerable. The ω-consistency condition can be weakened to consistency using Rosser's trick.
theorem
FirstOrder.Language.Theory.Q.recursive_iff_strongly_representable
{α : Type u_1}
[Encodable α]
{s : Set α}
{T : peano.Theory}
[Recursive T]
[Q ⊆ᵀ T]
(h : Consistent T)
:
In a consistent theory T extending Q, a set is strongly representable in T iff it is recursive.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.