Theory of Computer Science
- D4. Primitive Recursion and µ-Recursion
Malte Helmert
University of Basel
Theory of Computer Science D4. Primitive Recursion and -Recursion - - PowerPoint PPT Presentation
Theory of Computer Science D4. Primitive Recursion and -Recursion Malte Helmert University of Basel April 26, 2017 Introduction Basic Functions and Composition Primitive Recursion -Recursion Summary Overview: Computability Theory
University of Basel
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Post’s Correspondence Problem Undecidable Grammar Problems G¨
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
0 → N0:
j : Ni 0 → N0 for all 1 ≤ j ≤ i:
j(x1, . . . , xi) = xj
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
0 →p N0
0 →p N0,
0 →p N0 is defined as:
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Reminder: f (x1, . . . , xk) = h(g1(x1, . . . , xk), . . . , gi(x1, . . . , xk))
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Reminder: f (x1, . . . , xk) = h(g1(x1, . . . , xk), . . . , gi(x1, . . . , xk))
0 → N0 with f1(x, y) = y + 1 for all n ∈ N0.
2,
2(x, y)) for all x, y ∈ N0.
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Reminder: f (x1, . . . , xk) = h(g1(x1, . . . , xk), . . . , gi(x1, . . . , xk))
0 → N0.
0 → N0 with f2(a, b, c, d) = r(c, c, b).
3(a, b, c, d), π4 3(a, b, c, d), π4 2(a, b, c, d)).
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Reminder: f (x1, . . . , xk) = h(g1(x1, . . . , xk), . . . , gi(x1, . . . , xk))
0 → N0.
0 → N0 with f2(a, b, c, d) = r(c, c, b).
3(a, b, c, d), π4 3(a, b, c, d), π4 2(a, b, c, d)).
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Reminder: f (x1, . . . , xk) = h(g1(x1, . . . , xk), . . . , gi(x1, . . . , xk))
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
0 →p N0
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Reminder (primitive recursion with k = 1): f (0, x) = g(x) f (n + 1, x) = h(f (n, x), n, x)
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Reminder (primitive recursion with k = 1): f (0, x) = g(x) f (n + 1, x) = h(f (n, x), n, x)
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Reminder (primitive recursion with k = 1): f (0, x) = g(x) f (n + 1, x) = h(f (n, x), n, x)
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
1 Every basic function is a PRF. 2 Functions that can be created by composition
3 Functions that can be created by primitive recursion
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
2
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
0 →p N0 is defined by
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Reminder µf : (µf )(x1, . . . , xk) = min{n ∈ N0 | f (n, x1, . . . , xk) = 0 and f (m, x1, . . . , xk) is defined for all m < n} if f total: (µf )(x1, . . . , xk) = min{n ∈ N0 | f (n, x1, . . . , xk) = 0}
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Reminder µf : (µf )(x1, . . . , xk) = min{n ∈ N0 | f (n, x1, . . . , xk) = 0 and f (m, x1, . . . , xk) is defined for all m < n} if f total: (µf )(x1, . . . , xk) = min{n ∈ N0 | f (n, x1, . . . , xk) = 0}
x2 ⌉
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Reminder µf : (µf )(x1, . . . , xk) = min{n ∈ N0 | f (n, x1, . . . , xk) = 0 and f (m, x1, . . . , xk) is defined for all m < n} if f total: (µf )(x1, . . . , xk) = min{n ∈ N0 | f (n, x1, . . . , xk) = 0}
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Reminder µf : (µf )(x1, . . . , xk) = min{n ∈ N0 | f (n, x1, . . . , xk) = 0 and f (m, x1, . . . , xk) is defined for all m < n} if f total: (µf )(x1, . . . , xk) = min{n ∈ N0 | f (n, x1, . . . , xk) = 0}
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
1 Every basic function is a µRF. 2 Functions that can be created by composition
3 Functions that can be created by primitive recursion
4 Functions that can be created by the µ-operator
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
Introduction Basic Functions and Composition Primitive Recursion µ-Recursion Summary
constant zero function successor function projection functions
composition (C) primitive recursion (P) µ-operator (µ)