Documentation

MathematicalLogic.FirstOrder.Theories.Peano.Representation

Representation theorem #

This file formalizes Representation Theorem.

  1. In the first part, we prove one direction, that any partial recursive function is weakly representable in Q (rep_iff_of_mem). Moreover, in PA we prove the uniqueness (rep_unique) and the totality of primitive recursive functions (repPrim_total).
  2. 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 of Q (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.
@[irreducible]

The representation formula of a partial recursive function.

Instances For
    theorem FirstOrder.Language.Proof.existsN_andN_of_andN_exists {n m : } {L : Language} {Γ : L.FormulaSet n} {v : Vec (L.Formula (n + 1)) m} :
    Γ( (i : Fin m), ∃' v i) ∃^[m] ( (i : Fin m), (v i)[#(i.castAdd' n) ∷ᵥ Subst.shift m]ₚ)
    theorem FirstOrder.Language.Theory.Q.rep_iff_of_mem {n : } {v : Vec n} {m k : } {t : peano.Term k} {f : Partrec n} (h : m f.eval v) :
    theorem FirstOrder.Language.Theory.Q.rep_of_mem {n : } {v : Vec n} {m k : } {f : Partrec n} (h : m f.eval v) :
    theorem FirstOrder.Language.Theory.Q.neg_rep_of_not_mem {n : } {v : Vec n} {m k : } {f : Partrec n} (hf : (f.eval v).Dom) (h : mf.eval v) :
    theorem FirstOrder.Language.Theory.Q.repRel_of_pos {n : } {v : Vec n} {k : } {f : Partrec n} :
    0 < f.eval v↑ᵀ^[k] Q(peano.repRel f)[Subst.of fun (i : Fin n) => peano.ofNat (v i)]ₚ
    theorem FirstOrder.Language.Theory.Q.neg_repRel_of_zero {n : } {v : Vec n} {k : } {f : Partrec n} :
    0 f.eval v↑ᵀ^[k] Q~ (peano.repRel f)[Subst.of fun (i : Fin n) => peano.ofNat (v i)]ₚ
    theorem FirstOrder.Language.Theory.PA.rep_unique {n k : } {t₁ : peano.Term k} {σ : Vec (peano.Term k) n} {t₂ : peano.Term k} {f : Partrec n} :
    ↑ᵀ^[k] PA(peano.rep f)[t₁ ∷ᵥ σ]ₚ (peano.rep f)[t₂ ∷ᵥ σ]ₚ t₁ t₂
    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.

    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) :
    IsRecursive s ∃ (p : peano.Formula 1), (∀ xs, Tp[[peano.ofEncode x]ᵥ]ₚ) xs, T~ p[[peano.ofEncode x]ᵥ]ₚ

    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.