For a computable measure space with computable σ-finite measure we study computability on the space of measurable functions. First we prove that for a natural multi-representation finite union and intersection and countable union are computable. We introduce a natural multi-representation of the measurable functions to a computable topological space and prove that composition with continuous functions is computable. Canonically, for a computable metric space the associated computable topological space has a basis of balls with center from the dense set and rational radius. From a given sequence of finite Borel measures we can compute a dense sequence of radii such that for all k and all spheres with a from the dense set and . For measurable functions to computable compact computable metric spaces the natural multi-representation is equivalent to a multi-representation via fast uniformly converging sequences of simple functions. For non-negative measurable numerical functions the sequences can be chosen to be non-decreasing. Some results on integration are added.
In this article we study computability in elementary measure theory in the framework of TTE (Type 2 theory of effectivity, the representation approach). TTE has turned out to be the most useful approach for studying and understanding computability and computational complexity in Analysis [1,8,9,11,17,19]. This article continues [20] (which is of free open access) where several new representations of measurable sets have been introduced.
In measure theory measurable sets, measurable functions, integrable functions etc. and the corresponding equivalence classes w.r.t. the measure are studied simultaneously. In Section 2 we summarize some technical definitions of TTE. Then we study how computability of multi-functions induced by multi-representations of point sets with equivalence relations is related to computability induced by the corresponding representation of the set of equivalence classes.
In Section 3 we define three multi-representations , and ζ of the measurable sets for a computable measure on a computable σ-algebra. They correspond straightforwardly to three representations of the equivalence classes of measurable sets introduced in [20].
In Section 4 we show that finite union and intersection are computable for , and ζ and that countable union is computable for .
In Section 5 we define three multi-representations of the measurable functions from a computable measure space to a computable topological space. We prove their equivalence and show that composition with continuous functions is a computable operator.
In Section 6 we consider computable Borel measures on computable metric spaces. Let D be the dense set of the computable metric space. As a technical result we prove that from a sequence of finite Borel measures we can compute a dense sequences of radii such that for all i and all spheres with and .
In Section 7 we show that the limit operator on fast uniformly converging Cauchy sequences of measurable functions to a computable metric space is computable. On the other hand, if the space is computable compact then for every measurable function we can compute a sequence of simple functions converging to it fast uniformly.
A non-negative function is measurable iff for a sequence of simple functions . In this Section 8 we study computability on the measurable numerical functions and in particular prove a computable version of this theorem. Finally in Section 9 we study computable integration of measurable functions.
Basic TTE, factorization of multi-representations
For studying computability we use the TTE, representation approach to computable analysis [1,17]. Let Σ be a fixed finite alphabet such that . denotes the set of finite words over Σ and denotes the set of infinite sequences . A partial function (where or ) is computable, iff it can be computed by a Type-2 Turing machine. For encoding pairs and longer tuples of elements from and we use tupling functions all of which are denoted by [17, Definition 2.1.7]. For the wrapping function , , two wrapped words cannot overlap properly. For and let , , , (where , is a standard computable bijection), etc. The tupling functions and the projections of their inverses are computable. We will use definitions of the form “p is a list of all pairs such that ” meaning: is a subword of p iff .
We use canonical representations , , of the natural numbers and the rational numbers, respectively. For the real numbers let iff p is a list of all u such that , iff p is a list of all u such that and iff and .
A representation of a set X is a partial surjective function where or . For representations (), a function (operating on names) realizes the (abstract) function , iff for all . A function f is called -continuous (-computable), iff it is realized by a continuous (computable) function. A representation is reducible to (translatable to) , , iff the identity function is -computable, that is, there is a computable function h such that for all . Correspondingly, is topologically reducible to , , iff there is a continuous function h such that for all . The two representations are equivalent, , iff and . Accordingly, they are topologically equivalent, , iff and . Equivalent representations induce the same computability on the represented sets. For more details see [1,17].
Formally, a multi-function is a triple where . The set is called the domain of f. A multi-function f is called single-valued or a partial function denoted by as usual, if for every there is exactly one such that which is called .
Usually, for a multi-function , and , and .
If f is single-valued and then on the one hand and on the other hand. For avoiding this formal inconsistency, in this section we do not use “” for multi-functions f and introduce two new functions, instead.
Let be a multi-function. Define partial functions and by
The multi-function is well-defined by and also by since . Notice that and for . If is a partial function then .
We will use multi-functions with two different meanings of “” depending on the context: [18, Section 3]:
In the case of (1) we call f a “multi-representation”. Usually or . In general for a multi-representation , is not a partition.1
A non-trivial useful example is the multi-representation of the partial functions with continuous realizations for representations and [17,19].
The meaningful composition for multi-representations is the relational composition2
For and , where .
which, however, we will not use in this article [18, Lemma 22].
If we study computability of a multi-function we use the interpretation (2).3
As an example consider the multi-function mapping every real number to some upper bound in , often written as .
In this case in [18, Definition 6] composition of multi-functions and is usually defined as follows: iff and and . In our terminology . Since we obtain:
For multi-functionsand,.
Here is the well-known composition of partial functions, such that iff and . Suppose f and g are partial functions, that is, single-valued multi-functions. Then , hence . Therefore, in this special case the composition defined for multi-functions coincides with the ordinary composition of partial functions as expected. Since composition of partial functions is associative, it follows straightforwardly from Lemma 2.2 that composition of multi-functions is associative.
According to the interpretations (1) and (2) realization is defined as follows.
Let and be multi-representations.
Let be a multi-function. Then a function realizes f w.r.t. iff
The multi-function f is -continuous (-computable), iff it has a continuous (computable) realization [18, Definition 17].
γ is continuously reducible to δ, , iff and the embedding is -continuous. γ is reducible to δ, , iff and the embedding is -computable.
Notice that means “p is a γ-name of x”. Therefore, F realizes the multi-function f iff is a δ-name of some whenever p is a γ-name of x. By (3), iff for some continuous F and iff for some computable F.4
Examples: for a set X. For a topological space let . Then the quotient topology is . For a pseudo-metric space let . Then the quotient is a metric space. For a measure let .
As usual is the equivalence class containing and is the quotient set of X by ∼. Remember that for , . The following simple observation is applied everywhere in mathematics. Let and be equivalence relations and let be a partial function. If
then a partial function is well-defined by for all .
We generalize the consistency property (4) to multi-functions and show that for consistent multi-functions , -computability on the sets X, Y is the same as -computability on the sets of equivalence classes.
Let and be equivalence relations and let be a multi-function.
A multi-representation is compatible with the equivalence relation iff .
For a multi-function define the factorization of f by .
For a multi-function define the defactorization by .
A multi-function is consistent iff
The multi-representation is compatible with iff for all . Although formally has the codomain we use it like a representation with codomain . If γ is compatible and is the equality on X, then γ is single-valued and is a representation of the set such that . Formula (5) means: if are equivalent then they must be mapped to equivalent points. Notice that for single-valued functions f, (5) implies (4).
For,andis consistent.
For,extends f, that is.
Obvious. □
By the following theorem computation of a consistent multi-function f is the same as computation of its factorization.
Let γ and δ be multi-representations compatible withand, respectively. Letbe a consistent multi-function and letbe a partial function. ThenIn (
6
), the implication “⟹” holds true also if the function f is not consistent.
“F realizes f” and “F realizes ” can be formalized as follows:
(6) “⟹” Suppose f realizes f. Then
hence (10). We have not applied consistency of the function f.
(6) “⟸” Suppose (10). Then
(where the 6th line follows by consistency of f), hence (9).
Lemma 2.5 and Theorem 2.6 hold true also for n-ary and for ω-ary functions.
For and , in the literature usually “” is written instead of “”. Then for single-valued f, . Despite of this formal inconsistence for avoiding overloaded symbols in the following we will write “” instead of “”. Then “” means and for single-valued f, “” means as well.
Computable measures on computable σ-algebras
We use the terminology from [20, Section 3] which summarizes some basic facts from measure theory.
(Computable σ-algebra, computable measure).
A computable σ-algebra is a tuple such that is a countable ring in Ω, , is the σ-algebra generated by , and is a notation of such that is recursive and the functions and are computable (w.r.t. α).
A measure μ on a computable σ-algebra is computable, if is finite for all and , the restriction of μ to , is -computable.
In the following let μ be a computable measure on a computable σ-algebra . Computable measures on computable σ-algebras have been used for example in [7,21–24]. In measure theory, measurable sets are considered to be equivalent if they differ by a set of measure 0.
Let be the equivalence class containing , and for let .
In the past various representations of the measurable sets for computable measures on computable σ-algebras [20–23] have been defined and compared. For more special measures further representations could be of interest, for example for regular Borel measures on -spaces via countable intersection of open sets or countable union of compact sets (cf. [2] for Cantor space). The following representations are the multi-valued versions of representations introduced in [20]. According to the discussion in [20, Section 7] they seem to be particularly natural. This is confirmed by the results of this article.
Define multi-representations of the set of measurable sets as follows:
is (encodes) a list of all such that ,
is (encodes) a list of all such that ,
is (encodes) a list of all such that .
Here “” means ( from Definition 2.1), that is, with the interpretation “p is a -name of A” etc.
The single-valued representations , and ζ of the set of equivalence classes defined and studied in [20, Definition 4.2] must now be called , and , respectively.
The multi-representations,and ζ are compatible with the equivalence on, that is,etc.
The multi-representation ζ is up to equivalence the greatest lower bound of and .
, in particular,and,
,,,.
This follows from [20, Lemma 4.5 and Theorem 4.8] and Corollary 2.7. □
Boolean operations are computable
As a supplement to [20] in this section we study computability of the Boolean operations for , and ζ. Let be a computable σ-algebra with computable measure μ. Among others we will use the following formulas for measurable sets:
By [20, Lemma 4.4], for every multi-representation γ of a subset of ,
(accordingly with and instead of ).
For every multi-representation δ define the multi-representations and by
On the setof measurable sets
the complement function is-computable,-computable and-computable,
union and intersection are computable for,and ζ,
finite unionis-computable for,
finite intersectionis-computable for,
countable unionis-computable,
countable intersectionis-computable.
Complement: Since and is -computable, there is a computable function which given a list of all such that finds a list of all such that . Therefore, is -computable. Correspondingly, complementation is -computable.
By Lemma 3.4 is -computable and -computable. By the above result, is -computable and -computable. Again by Lemma 3.4 it is -computable.
Union for: In the following “” means union “∪”. From we want to compute , that is, from a list of all such that and a list of all such that we want to compute a list of all such that . More formally, from we want to compute a list of all such that .
By [20, Lemma 4.7] the relation (where ) is recursively enumerable w.r.t. α, and . Therefore, there is a machine which on input produces a list of all such that there are and with
where , and .
First we show that for every produced by the machine. Suppose (14)–(16). Since , by (11) and (12),
Therefore by (16),
Notice that is monotone and for and for . Therefore, the machine produces a list of such that .
It remains to show that the list contains all such . For fixed A, B let such that where and . There are some and such that
Since , . Correspondingly . Therefore, (14) and (15) are satisfied. We have
and correspondingly . Since
, hence (16) is satisfied.
Since for u and v there are S, T and ε such that (14)–(16) are satisfied, is in the list produced by the machine M on input . Therefore, M produces a -name of .
Intersection for: Replace “” in the above proof by “∩”.
Union and intersection forand ζ: As we have shown, from a -name of A and a -name of B we can compute a -name of and a -name of . As we have also shown, from these names we can compute a -name of and hence a -name of . Therefore, union is computable w.r.t. . Correspondingly intersection is computable w.r.t. . Computability of union and intersection w.r.t. ζ can be proved easily by Lemma 3.4.
Finite union and intersection: Let be a realization of binary union for . There is a computable function such that , . We show by induction that implies .
Therefore, the function h realizes finite union. The proofs for and ζ and for finite intersection are similar.
Countable union: The function is -computable. We have shown that finite union is -computable. Since by (13) the function is -computable, the function
is -computable. Since , and on the real numbers is -computable, the function is -computable, hence there is a computable function h such that
Define a multi-representation γ of by . Then the function is -computable. By (13), , hence the function is -computable.
Countable intersection: This can be reduced to countable union by since complementation is -computable and -computable. □
Remember, that computable operators map computable elements to computable elements. In general, countable union cannot be computed for or ζ, countable intersection cannot be computed for or ζ, and and cannot be computed for , or ζ (without proof).
Representations of measurable functions
In this section we study measurable functions from a measure space to a topological space. Let be a measure space and let be a second countable topological space, that is, a -space with countable base β. A function is measurable if for every open set . Let be the set of measurable functions. Notice that f is measurable iff for every base set . Let be the σ-algebra on X generated by β. Then for all . Since τ is , for all , , hence .
For measurable sets and measurable functions f, g equivalences are defined by
As usual let and .
For all measurable functions,
, in particular, this set and its complement are measurable,
1. Since τ is a -topology and ,
The set is measurable since the base β is countable and and are measurable for every .
The σ-algebra is generated from β by the operations “complement” and countable union. If then and if for then . By induction for every .
Since the base β is countable, . This implies the remaining implications. □
In the following let μ be a computable measure on a computable σ-algebra with multi-representations , and ζ of the set of measurable sets (Definition 3.2). Furthermore, let be a computable topological space with the canonical representations and of the points and of the open subsets, respectively [19].
Let be the standard representations of the set of partial functions and let be the standard representations of the set of partial continuous functions with -domain. They satisfy the universal Turing machine theorem and the smn-theorem [17].
Define multi-representations , and (via pre-images of base sets and of open sets, respectively) of the set of measurable functions as follows.
The three multi-representations,andare compatible with the equivalence relation, that is,etc.
: By the definition of , iff r is a list of all such that . There is a Type-2 machine M which on input writes a list r of all such that is in the list p. Suppose . Then is a list of all such that , hence . By the smn-theorem for there is a computable function h such that . Since , . Therefore, .
: Suppose and . Define is a subword of p (“u is listed in p”). Then . Since by Theorem 4.1 countable union on is computable for , by the universal Turing machine theorem for there is a computable function such that . By the smn-theorem for there is a computable function such that . This means . Therefore, d translates to .
: There is a computable function such that . For all , . Suppose . Then .
By the universal Turing machine theorem for and the definition of , from we can compute a list of all such that , hence from p we can compute a list r of all such that . Therefore, from p we can compute some r such that , hence . □
The representation is the direct effective version of the definition of measurable (the pre-image of open is measurable). For proving we use that countable union of measurable sets is computable. Therefore, cannot be proved if in (20) and (21) is replaced by ζ or by .
Another multi-representation of measurable functions which is used in [21, Definition 7.1] and [12, Definition 3.4] can be defined in our context as follows:
While for every base element U a -name of f allows to compute the measure from below for all ring elements R, hence a -name of , a -name of f allows to compute only the measure of the sets from below. In general the representation is not compatible with the equivalence relation (Definition 2.4, Lemma 5.3). Example: For the Lebesgue measure on the unit interval, the functions , and . have the same -names but are not equivalent.
If and are measurable then , , is measurable. We prove a computable version of this theorem. Let be another computable topological space with the canonical representations and of the points and of the open subsets, respectively. Let be the product space where , and τ is the topology generated by β as a base. is a computable topological space [13,19] with canonical representations δ and θ of the points and of the open sets, respectively.
Let , and be the multi-representations from (19), (20) and (21), respectively, of the set , let , and be the multi-representations from (19), (20) and (21), respectively, of the set , and let , and be the multi-representations from (19), (20) and (21), respectively, of the set .
The function,,
is well-defined such thatandimplies, and
is-computable.
The theorem holds accordingly forarguments.
Since for and , is measurable. Therefore, π is well-defined. Since , and implies by (18).
Finally, by Theorem 5.4 it suffices to prove -computability. Suppose and . There is a computable function which realizes intersection on for . By (20) for all ,
By the universal Turing machine theorem for there is a computable function such that . By the smn-theorem for there is a computable function such that , hence . By (20), . Therefore, the function π is -computable. By induction the result can be extended to products of factors. □
If is measurable and is continuous then is measurable. We will prove a computable version of this theorem, that is, from f and g we want to compute . We want to define composition and prove computability also for partial continuous functions with . For a partial function g with possibly for some .
For measurable and partial continuous define the composition operator Comp as follows:
Let be the canonical multi-representation of the set of partial continuous functions defined by iff realizes g w.r.t. [19, Definition 28].
The composition operator Comp is-computable.
By [19, Theorem 29], for computable topological spaces where
Therefore, by Theorem 5.4 it suffices to prove -computability. There is a computable function such that [17].
Suppose , that is , and . Then
hence by (21). Therefore, Comp is -computable and hence -computable. □
For every the function , for all , is measurable. We prove a computable version of this observation.
The function,, is-computable.
By definition, iff p is (encodes) a list of all such that .
By (19) from such that we want to compute a list of all such that where if and otherwise.
There is a machine M that on input p produces a list of all with , and and merges this list with a list of all such that u is listed in p and . Then is -name of . Therefore, the function H is -computable. □
By the following theorem which combines Theorems 5.5, 5.8 and 5.9 numerous measurable functions can be computed from given ones by continuous functions.
For let be a computable topological space with standard representation . For let be a computable topological space and let be the multi-representation from (19) of the set of . Let be the standard representation of the product space and let be the representation from (19) of the set of . Let Z be a computable topological space with canonical representation of the points and representation from (19) of the set . For the continuous partial functions we use the representation .
Define a function H by(,) whereiffexists for allandfor. The function H is-computable.
By the definitions,
By Theorem 5.9 from we can compute . By Theorem 5.5 from we can compute (a -name of) . By Theorem 5.8 with a -name of h we can compute (a -name of) f. □
Borel measures on computable metric spaces
In this section let be a computable metric space with Cauchy representation [17]. It induces a natural notation of the set of the open “rational balls” where and . Let be the topology generated by as a base. Then is a computable topological space such that where is the canonical representation of the points of the computable topological space. Let be the standard representation of the set of open subsets of X [17,19].
In the proof of Theorems 6.5 and 7.5 we apply Theorem 6.2 about Borel measures on computable metric spaces which is of interest by its own. A Borel measure on the computable metric space is a measure on the space where is the σ-algebra of Borel sets. A finite measure μ on is already defined by its values on the finite unions of base balls (). Let be the set of all finite Borel measures on the metric space.
We define a representation of the set of the finite Borel measures as follows. iff and q is (encodes) a list of all such that
This means, from a name of a measure μ we can compute (a ρ-name of) and for every finite set of balls from the base we can compute from below, that is, a -name of this number (cf. [16], [3, Lemma 2], [6, Theorem 4.2.1]). Obviously, is -computable.
For every interval and define . Then is an annulus with center x if I is a proper interval and is the circle with center x and radius r. Since , . For a representation δ let .
The following multi-function T is-computable. T maps every sequenceof finite measures to some injective sequence of real numberswhich is dense in the intervalsuch that
By (28) for every measure , every center and every j, the circle with center x and radius has measure 0. The theorem generalizes [14, Lemma 2.15], [6, Lemma 5.1.1] [5, Lemma 3.0.10 with corollaries], [21, Theorem 6.4] and [10, Proposition 2.3]. The theorem can be generalized to other appropriate families for real intervals S.
Let μ be -computable. Then is computable and T maps to some computable sequence . Let and . Since , by (28) the ρ-computable number is the sum of the two -computable numbers and , which therefore must be even ρ-computable. Since and are ρ-computable, can be used in a ring on which μ has computable values.
We prepare the proof of Theorem 6.2 by two lemmas.
The following multifunctionis-computable. H maps every finite Borel measure μ on the computable metric space, every point, every interval(,) and everyto some rational interval J such that
Since is finite, for all and all I,
Let . By (30) there are numbers such that and . Let
Then
There are rational numbers , …, such that
From we can compute some m such that . By (27) for given rational numbers with we can compute -names of for . Since “” is r.e., by exhaustive search we can find rational numbers and such that , and (32).
By (32) there is some such that . Since a ρ-name of is supplied by (a name of) μ, we can find such a number j.
Suppose . Since for , by (32),
Contradiction. Therefore, . Since ,
From we can compute some rational subinterval J with . Then (29) is true. □
The multi-valued functionmapping every sequence of real numbers that is dense into some injective subsequence that is dense inis-computable.
Let be a computable numbering of all rational intervals . Find some number m such that and let . Since the relation “” is -r.e. and is dense, such a number m can be computed. Suppose have been computed. Find some number m such that and for . Since the relation “” is -r.e., the relation “” is -r.e. and is dense, such a number m can be computed. Let . The sequence is injective by construction and dense since . □
Let be a computable numbering of all rational intervals . Let H be the multi-function from Lemma 6.3. Let be a computable numbering of the dense set D of the metric space.
For a sequence of finite Borel measures on X and let be a sequence of rational intervals such that:
Since by Lemma 6.3 for , and , the sequence is nested and converges to some .
For fixed let . The subsequence converges also to . By Lemma 6.3, . Since , . Therefore, (28) is true.
Since H is computable, from and j we can compute (a ρ-name of) some , hence from we can compute (a -name of) a sequence such that (28) is true. Since , the sequence is dense in . By Lemma 6.4 it can be transformed to an injective dense subsequence. □
For a computable measure μ on a computable σ-algebra , must be ρ-computable for every ring element [20,24]. However, for a -computable measure μ for every ball , is only -computable but not ρ-computable in general. Therefore, the ring generated by the base cannot be used to define a computable σ-algebra for which μ is a computable measure.
By these considerations the concepts of “computable measure on a computable σ-algebra” and “computable Borel measure” in Definition 6.1 seem to be incompatible. But both concepts have already been used successfully in computable measure theory, for example, [7,24] and [4,12,16].
We solve the problem by realizing that the tacit choice of as the set of radii in the definition of the base was too restrictive. By Theorem 6.2 for a -computable Borel measure μ we can find a dense sequence of ρ-computable radii such that for all and all i. Then is ρ-computable for all and all i, and set of all these balls can then be used to define a computable σ-algebra on which μ is a computable measure.
We apply Theorem 6.2 for showing that for every sequence of finite Borel measures on a computable metric space we can compute a computable σ-algebra such that for all , is a computable measure on this σ-algebra. More precisely:
Letbe a computable metric space with associated computable topological space(where the radii of the balls inare rational, see the beginning of this section). Then for every-computable sequenceof Borel measures we can find a computable topological spaceand a computable measure spacesuch that
is the ring generated by the basewith canonical notationand
is a computable measure on this computable measure space for all.
Therefore, “computable measure on a computable σ-algebra” is a more general concept than “computable Borel measure on a computable metric space”.
By Theorem 6.2 from the sequence we can compute a sequence of positive real numbers which is dense in such that for all and .
Let and define a notation of by . Then is a base of the topology generated by the metric d and is a computable topological space which is equivalent to [19, Definition 21].
Let be the closure of under union and set difference. We define a notation of inductively by for , and . Since is recursive, also and are recursive. Obviously and union and set difference on are computable for .
We show that on , is -computable uniformly in i. For let . Then for every we can compute a -name of B and a -name of .
Since for all i,
If then A is a boolean combination of balls which can (computably) be transformed into disjunctive normal form:
with pairwise disjoint such that and or for all and .
Let if and if . By (36) for all i, l,
Since intersection of open sets is computable for [19] and is -computable by (36), we can compute a -name of for every i and l. Since the are pairwise disjoint, . Therefore, for every i we can compute a -name of . By the same arguments we can compute a -name also of . Since from the name of we have a ρ-name of and since , we can compute a ρ-name of .
Therefore, for every number i, is a computable measure on the ring. □
Measurable functions to computable metric spaces
A measurable function is called simple if is a finite subset of . By a well-known elementary theorem a non-negative function is measurable iff for a sequence of simple functions . In Section 8 we will prove a computable version of this theorem as a consequence of Theorem 7.5, a more general theorem for measurable functions to computable metric spaces. Again we apply Theorem 6.2.
Let be a computable σ-algebra with computable measure μ and let be a computable metric space. Let be the associated computable topological space where , , is a natural notation of the set of open rational balls.
On the set of functions we define the “uniform metric” by . The function is not a metric in the proper meaning since possibly, .7
Infinite distances can be avoided by using the metric on X.
If a sequence of measurable functions converges to , then f is measurable. We prove a computable version of this fact.
The operatormapping every sequenceof measurable functions such thatwhich has a limit to its limit is-computable.
The limit of the sequence exists if the metric space is complete.
Let be the limit of the sequence . Then for all . We prove
for all and .
Suppose for some with . Since , . This proves “⊇” in (38).
On the other hand suppose . Since D is dense there are some k and some such that and . Then and . This proves “⊆” in (38).
By Theorem 5.4 it suffices to prove -computability. Therefore, from such that we want to compute some q such that if exists.
We show that using (38) from p and we can compute some such that where and , hence . From we can compute a list of all such that and . By (20) and the universal Turing machine theorem for for every in this list we can compute some such that . By Theorem 4.1 we can compute a -name of the union of all these , that is, a -name of by (38) if exists.
This means that there is a computable function H such that . By the smn-theorem for there is a computable function G such that . By (20), . □
Let be the set of measurable functions and let be the set of functions such that is a finite subset of the dense set D.
Define a multi-representation as follows:
iff for some there are words , sequences and sets such that
In general the in (40) are not a partition since is allowed. Also if and for is allowed.
Ifthen.
.
Define a representationin the same way as(Definition
7.2
) but with ζ instead of. Then.
1. Suppose with p as in Definition 7.2. Let be measurable such that (40)–(41) and measurable sets such that correspondingly , for , for and .
We have . Suppose . Since and implies , that is, , .
2. By Theorem 5.4 it suffices to prove . Since , for as in Definition 7.2,
where . There is a computable such that . Since the distance on D is -computable, from we can compute a sequence such that
Since and countable union is computable w.r.t. , there is a computable function H such that . By the smn-theorem there is a computable function such that . By Definition 5.2, . Therefore, .
3. follows from . On the other hand, suppose as in Definition 7.2. From the -names of the we want to compute ζ-names. Since Ω is the disjoint union of the , . By Theorem 4.1, from the -names of the we can compute a -name of and hence a -name of its complement . By Lemma 3.4 we can compute a ζ-name of . Correspondingly we can compute ζ-names of the other sets . □
If , and , then in general , since but possibly for some set B of measure 0, is not in this set for .
Letbe computable for. Defineby. Then H is computable for.
Let . Suppose with sets as in Definition 7.2 and correspondingly with sets .
Then for and for .
Define a bijection by . Then
From the given data and i, j we can compute some such that (since h is computable) and some such that (since intersection on is computable for ). Then
Therefore, from -names of s and we can compute a -name of t. □
In general the set is not dense in the metric space of measurable functions .
Consider the computable measure space where is the ring generated by the set of rational intervals , is the set of Borel sets, and α is a canonical notation of . Furthermore, let λ the Lebesgue measure on . For the co-domain consider the computable metric space with Euclidean metric . The identity is measurable since is measurable for every rational open interval I. But for every measurable function s with finite range, .
If, however, the metric space is compact then the set is dense in the space . We prove a computable version. In the proof we apply Theorem 6.2.
A computable topological space is computable compact iff for some computable p ([19, Definition 5] (see also [17, Section 5.2] for the special case ). Therefore, the computable metric space is computable compact, iff X is compact and there is a computable listing of the set of all such that .
Let X be a computable compact computable metric space. Then the multi-functionmapping every measurable functionand number n to some simple function,, such thatis-computable.
In particular, the set is dense in . However, in general the set is not countable and the distance is not computable on , hence we have no computable metric space for the set of measurable functions.
Let be a computable numbering of the ring . Let n and (a -name of) f be given. Define a sequence of finite measures on the measure space by
for .
First, from f and i we want to compute a -name of (Definition 6.1). By Theorem 5.4 and (20) from v, w we can compute a -name of . Since union on is computable for (Theorem 4.1), from we can compute a -name of . By [20] we can compute a -name of . Therefore, we can produce a list of all such that (27). Since a ρ-name of can be computed we can compute a -name of . Therefore, we can compute a -name of the sequence .
By Theorem 6.2 we can compute an injective sequence of real numbers which is dense in the interval such that (28), that is, . For all and j,
Since our metric space is computable compact, for n we can find some m and words such that and . Since the are dense, we can find such that . For let . Then .
For let where and . Then for , since , and
For let the smallest number j such that . Define by
Since , for all . Since the sets are measurable, and for all .
It remains to show that from f and n we can compute s. As we have already shown we can compute a sequence , we can compute some m and words , a sequence and for every . It remains to compute -names of the .
For every j we can compute a -name of , hence by Theorem 5.4 a -name of . Correspondingly we can compute a -name of . Since , . Therefore, for every j we can compute a -name of and a -name of . Since intersection is computable for (Theorem 4.1), we can compute names of the .
Therefore, from f and n we can compute a -name of a function s such that . □
Letbe a computable compact computable metric space.
The multi-functionmapping every measurable functionto some sequence of simple functionssuch thatis-computable.
The functionmapping every sequenceof simple functions such thatfor allto its limitis-computable.
Observe that and remember . Apply Theorems 7.5 and 7.1. □
Measurable numerical functions
A non-negative function is measurable iff for a sequence of simple functions . In this section we study computability on the measurable numerical functions and in particular prove a computable version of this theorem.
Computability on the real line can be defined via the computable topological space where is the real line topology, (the set of rational open intervals) and is a canonical notation with recursive domain [1,17,19]. For the standard representation ρ of , iff p is (encodes) a list of all such that .
For functions we consider the computable topological space where is the extended real line, is a canonical notation of the set of intervals and is the topology generated by as a base. Let and be the standard representations of the points and the open sets, respectively [17,19]. A -name of is a list of all such that . The representation is equivalent to and to where iff p is (encodes) a sequence of intervals from such that and and iff p is (encodes) a sequence of intervals from such that [17, Definition 4.1.21].
is a subspace of . The restriction of to is equivalent to the standard representation ρ of :
The functions , , , and have (straightforward) continuous extensions to .
We extend addition to by for and for .
We extend multiplication on to as follows: is undefined for and for , and .
Addition and multiplication are associative. Distributivity is not true in general.8
but is undefined.
For the representationof,
the functions,,,andare computable,
addition is computable on,
multiplication is computable on.
For rational let , and .
: There is a machine that transforms every sequence to the sequence . Then it maps every -name of some to a -name of .
: There is a machine that on input first searches for some k such that and then prints for . This machine maps -names of x and y such that to a -name of .
The other statements can be proved similarly. □
Addition on has no continuous extension to any point from and . Multiplication on has no continuous extension to any point from .
In measure theory usually multiplication is extended from to by and for . As a partial function on this multiplication is not continuous in the points and and therefore not -continuous and not -computable.
Let be the multi-representation of the measurable functions .
Forand measurable functions, the operations,,,,,,andare computable forandwhere the domains are defined in accordance with Theorem
5.10
.
Let be a list of all such that and . Then by Definition 3.2. There is a computable function such that
Then for ,
By the smn-theorem there is a computable function such that . Since for all , , by Definition 5.2. Since if , is -computable, hence -computable by Theorem 5.4. □
We want to apply Theorem 7.5 to the set of measurable numerical functions . Therefore, we need a metric on . Let further on be the computable topological space for the extended real line.
Define a computable metric space by , where .
Notice that , and . The function φ is increasing and hence a bijection from to . It maps bijectively to . Therefore, is a metric.
andare equivalent computable topological spaces and induce the same computability on.
1. Since the restriction of φ to is computable, is computable on , hence we have a computable metric space. The metric space is compact. The property for rational , can be decided. Therefore, the set of all these finite unions can be enumerated.
We can now prove the main theorem of this section. Consider Definition 7.2 for the computable metric space . Notice that for every . Let be the distance on the set of measurable functions defined by introduced at the beginning of Section 7.
The multi-valued operator T mapping every non-negative measurable functionto a sequenceof functionssuch that,andis-computable.
The inverseof T mapping every sequenceof functionssuch thatandtois-computable.
1. Since the metric space is computable compact by Theorem 7.5 from f we can compute a sequence of functions in such that for all n, . First, we compute a sequence in such that and for all n.
For let . Define by . We show that for ,
Suppose . Then . Since by , . Therefore, and . This proves (44).
Suppose where with pairwise disjoint measurable sets such that and
(see Definition 7.2).
Define by . For every x, , therefore by (44), and . There is a computable function such that . Then is a -name of .
Therefore, from the sequence we can compute a sequence such that and for all n. Notice that for all n, x since for all n and .
Let and for . Then , and . By Lemma 7.4, is computable for . Therefore, the can be computed from the . Therefore, the operator T is -computable.
2. This follows immediately from Theorem 7.1 and Lemma 7.3. □
Integration
Commonly, integration in measure theory is introduced via simple functions, where is called simple if it is measurable and has finite range. For every simple function there are real numbers and measurable sets such that where denotes the characteristic function of A. The integral of the simple function s is defined by
where also for . The integral is well-defined since it can be shown that if .
For every non-negative measurable function there is a sequence of simple functions such that for all . Then the Lebesgue integral of f is defined by
This integral is well-defined since if for non-decreasing sequences of non-negative simple functions and .
Every measurable function can be written as where and are non-negative measurable functions. By definition,
This integral exists iff the difference on exists, that is, iff or (see Lemma 8.1).
In (46) it suffices to consider simple functions s with . For such a function there are rational numbers and measurable sets such that and for and . Therefore, it suffices to use only functions for which we have introduced the multi-representation in Definition 7.2.
We summarize some simple observations about integration of non-negative functions , , and non-negative measurable functions , .
Integrationfor non-negativeis-computable. The restriction to functions with finite integral is not-computable in general.
For non-negative measurable functionsintegrationis-computable but not-computable in general.
There are a computable measure withand a-computable non-negative functionwith non-computable finite integral.
1. Let as in Definition 7.2. Then . By [20, Lemma 4.10] from the -names of the we can compute -names of the and hence an -name of . There is a computable measure space with computable measure such that is not computable. Then the -computable function has no computable integral, hence the integral operator is not -computable.
2. By Theorem 8.6 from a -name of f we can compute (-names of) functions such that . By 1. we can compute -names of the , hence a -name of by (46).
A counterexample follows from (3) of this theorem.
For a computable measure with we construct a -computable function with non-computable integral.
Let , let be the ring of finite subsets of with canonical notation α. Then is a computable σ-algebra. Let . Then μ is a computable measure such that . Let be a r.e. set which is not recursive. Then B is the range of an injective computable function . The real number is -computable but not ρ-computable [17].
Define by . Then is -computable. We show that f is -computable. By Definition 5.2 we must compute a list of all such that . For a ring element (which is a finite subset of ) and an interval ,
Since f is -computable from we can compute (an α-name of) the finite set . Since μ is -computable we can compute a list of all such that . Therefore, f is a -computable measurable function.
Define functions by for and otherwise. Then is a sequence of simple functions such that and . Since , which is not ρ-computable. Notice that the function f is unbounded, see Theorem 9.2 below.
By Theorem 9.1, in general integration is not -computable not even on the non-negative integrable functions. Roughly speaking, -names of integrable functions do not provide enough finitely accessible information for computing (the ρ-name) of the integral. We obtain a positive result for bounded functions.
The functionforis-computable.
The functionforandis-computable.
Ifis a computable real number, thenis-computable.
Ifis a computable real number, then the functionforis-computable.
1. From a -name of s we can compute -names of sets and -names of rational numbers such that , and for . Then . By Theorem 4.1 we can compute -names of the sets , hence -names of the real numbers . Since , we can compute a -name of , hence a ρ-name of . Correspondingly, we can compute ρ-names of the other . Since we can compute a ρ-name of this integral.
2. First we prove the statement for non-negative f.
The function is -computable by Lemma 8.3 and the function is -computable by Lemma 8.2. Therefore, can be computed from A and f.
By Theorem 8.6 from g we can compute (-names of) functions such that and for all i and all x, (where ). For choose such that . Then for all (by ), hence . Since can be computed, we can find some such that . Then . Since for every measurable set A, every non-negative measurable function f and every n we can find some rational number such that , the function such that and is -computable.
Since , and since and can be computed from f (Corollary 8.2), can be computed also for measurable functions with possibly negative values.
V.Brattka, P.Hertling and K.Weihrauch, A tutorial on computable analysis, in: New Computational Paradigms: Changing Conceptions of What Is Computable, S.B.Cooper, B.Löwe and A.Sorbi, eds, Springer, New York, 2008, pp. 425–491.
2.
C.J.Conidis, Effectively approximating measurable sets by open sets, Theoretical Computer Science428 (2012), 36–46.
3.
P.Gács, M.Hoyrup and C.Rojas, Randomness on computable probability spaces – A dynamical point of view, in: STACS 2009: 26th International Symposium on Theoretical Aspects of Computer Science, LIPIcs. Leibniz Int. Proc. Inform., Vol. 3, Schloss Dagstuhl. Leibniz-Zent. Inform, Wadern, 2009, pp. 469–480.
4.
P.Gács, M.Hoyrup and C.Rojas, Randomness on computable probability spaces – A dynamical point of view, Theory Comput. Syst.48(3) (2011), 465–485.
5.
S.Galatolo, M.Hoyrup and C.Rojas, Effective symbolic dynamics, random points, statistical behavior, complexity and entropy, Inform. and Comput.208(1) (2010), 23–41.
6.
M.Hoyrup and C.Rojas, Computability of probability measures and Martin–Löf randomness over metric spaces, Inform. and Comput.207(7) (2009), 830–847.
7.
M.Hoyrup, C.Rojas and K.Weihrauch, Computability of the Radon–Nikodym derivative, Computability1(1) (2012), 3–13.
8.
A.Kawamura and S.Cook, Complexity theory for operators in analysis, in: Proceedings of the 42nd ACM Symposium on Theory of Computing, STOC ’10, ACM, New York, 2010, pp. 495–502.
9.
A.Kawamura, H.Ota, C.Rösnick and M.Ziegler, Computational complexity of smooth differential equations, Logical Methods in Computer Science10(1) (2014), 6.
10.
M.Kenshi, -computability, layerwise computability and Solovay reducibility, Computability2(1) (2013), 15–29.
11.
K.-I.Ko, Complexity Theory of Real Functions, Progress in Theoretical Computer Science, Birkhäuser, Boston, 1991.
12.
N.T.Müller, Computability on random variables, Theoretical Computer Science219 (1999), 287–299.
13.
R.Rettinger and K.Weihrauch, Products of effective topological spaces and a uniformly computable Tychonoff theorem, Logical Methods in Computer Science9(4) (2013), 14.
14.
B.Volker, Notions of probabilistic computability on represented spaces, Journal of Universal Computer Science14(6) (2008), 956–995.
K.Weihrauch, The computable multi-functions on multi-represented sets are closed under programming, Journal of Universal Computer Science14(6) (2008), 801–844.
19.
K.Weihrauch and T.Grubba, Elementary computable topology, Journal of Universal Computer Science15(6) (2009), 1381–1422.
20.
K.Weihrauch and N.Tavana-Roshandel, Representations of measurable sets in computable measure theory, Logical Methods in Computer Science10(3) (2014), 7.
21.
Y.Wu, Computability on random events and variables in a computable probability space, Theoretical Computer Science460 (2012), 54–69.
22.
Y.Wu and D.Ding, Computability of measurable sets via effective metrics, Mathematical Logic Quarterly51(6) (2005), 543–559.
23.
Y.Wu and D.Ding, Computability of measurable sets via effective topologies, Archive for Mathematical Logic45(3) (2006), 365–379.
24.
Y.Wu and K.Weihrauch, A computable version of the Daniell–Stone theorem on integration and linear functionals, Theoretical Computer Science359(1–3) (2006), 28–42.