In computability theory, a semicomputable function is a partial function f:ℚ→ℝ that can be approximated either from above or from below by a computable function. More precisely, a partial function f:ℚ→ℝ is upper semicomputable, meaning it can be approximated from above, if there exists a computable function ϕ(x,k):ℚ×ℕ→ℚ, where x is the desired parameter for f(x) and k is the level of approximation, such that:
limk→∞ϕ(x,k)=f(x) ∀k∈ℕ:ϕ(x,k+1)≤ϕ(x,k) Similarly, a partial function f:ℚ→ℝ is lower semicomputable if and only if −f(x) is upper semicomputable or equivalently if there exists a computable function ϕ(x,k) such that:
limk→∞ϕ(x,k)=f(x) ∀k∈ℕ:ϕ(x,k+1)≥ϕ(x,k) If a partial function is both upper and lower semicomputable, it is computable.
See also Computability theory
References Ming Li and Paul Vitányi, An Introduction to Kolmogorov Complexity and Its Applications, pp 37–38, Springer, 1997.