Documentation

Foundation.FirstOrder.Arithmetic.HFS.PRF

Primitive Recursive Functions in $\mathsf{I} \Sigma_1$ #

This contains a wrapper Blueprint for constructing functions by primitive recursion.

  • zero : { Ξ“ := 𝚺, rank := 1 }.Semisentence (k + 1)

    p.zero.Evalb (z :> v) states that z is the value at 0. Equivalently, z = c.zero v.

  • succ : { Ξ“ := 𝚺, rank := 1 }.Semisentence (k + 3)

    p.succ.Evalb (u :> z :> i :> v) states that u is the value at i + 1, where z is the value at i. Equivalently, u = c.succ v i z.

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[irreducible]
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        Instances For

          Helper lemmas for Cseqs #

          theorem FFL.FirstOrder.Arithmetic.PR.Construction.CSeq.succ {V : Type u_1} [ORingStructure V] [V↓[β„’β‚’α΅£] ⊧* π—œπšΊβ‚] {k : β„•} {p : Blueprint k} {c : Construction V p} {v : Fin k β†’ V} {s : V} (h : c.CSeq v s) (i : V) :
          i < lh s - 1 β†’ βˆ€ (z : V), βŸͺi, z⟫ ∈ s β†’ βŸͺi + 1, c.succ v i z⟫ ∈ s
          theorem FFL.FirstOrder.Arithmetic.PR.Construction.CSeq.unique {V : Type u_1} [ORingStructure V] [V↓[β„’β‚’α΅£] ⊧* π—œπšΊβ‚] {k : β„•} {p : Blueprint k} {c : Construction V p} {v : Fin k β†’ V} {s₁ sβ‚‚ : V} (H₁ : c.CSeq v s₁) (Hβ‚‚ : c.CSeq v sβ‚‚) (h₁₂ : lh s₁ ≀ lh sβ‚‚) {i : V} (hi : i < lh s₁) {z₁ zβ‚‚ : V} :
          βŸͺi, zβ‚βŸ« ∈ s₁ β†’ βŸͺi, zβ‚‚βŸ« ∈ sβ‚‚ β†’ z₁ = zβ‚‚
          theorem FFL.FirstOrder.Arithmetic.PR.Construction.CSeq.successor {V : Type u_1} [ORingStructure V] [V↓[β„’β‚’α΅£] ⊧* π—œπšΊβ‚] {k : β„•} {p : Blueprint k} {c : Construction V p} {v : Fin k β†’ V} {s l z : V} (Hs : c.CSeq v s) (hl : l + 1 = lh s) (hz : βŸͺl, z⟫ ∈ s) :
          c.CSeq v (s ⁀' c.succ v l z)

          Result of primitive recursion #

          Equations
          Instances For
            @[simp]
            instance FFL.FirstOrder.Arithmetic.PR.Construction.result_definable {V : Type u_1} [ORingStructure V] [V↓[β„’β‚’α΅£] ⊧* π—œπšΊβ‚] {k : β„•} {p : Blueprint k} (c : Construction V p) :
            { Ξ“ := 𝚺, rank := 1 }.DefinableFunction fun (v : Fin (k + 1) β†’ V) => c.result (fun (x : Fin k) => v x.succ) (v 0)