Consider two paths in the unit square such that , , and . By continuity of f and g there is a point of intersection. We prove that there is a computable point of intersection if f and g are computable.
A path in the Euclidean plane is a continuous function , a curve is the range of a path. The following is known about planar curves.
Letbe two paths in the unit square such thatThen the two curvesandintersect.
Figure 1 visualizes the theorem. Manukyan [10] (in Russian) has proved the following surprising theorem, cited in [8, page 279] as follows:
(Manukyan).
There are two constructive (and therefore continuous) planar curvesandsuch that
Since the paths in Theorem 1.1 are continuous, the two theorems seem to be contradictory. The contradiction vanishes by the observation that in Theorem 1.2, “constructive” means “Markov computable” or computable in the “Russian” way [1,7,12]. In the Russian approach only the countable set of computable real numbers is considered, hence .
Intersecting curves.
In this article we use the definition of computable real functions f and g introduced by Grzegorczyk and Lacombe [4,5,9] and call them computable. We assume that the reader is familiar with the basic properties of this concept [3,12,13]. We will prove the following theorem.
Letbe twocomputablepaths in the unit square such thatThen there is acomputablepoint.
The restrictions and of the computable functions f and g, respectively, to the computable points are Markov-computable [12]. This is no contradiction to Theorem 1.2 but merely means that the functions and from Theorem 1.2 have no extensions to computable functions . The existence of computable intersection points in various other situations has been studied by Iljazović and Pažek in [6].
In the next sections we will prove the following formally weaker but equivalent version of Theorem 1.3.
Letbe twocomputablepaths in the unit square such thatThen there is a computable point.
Obviously Theorem 1.3 implies Theorem 1.4. The converse is also true: Suppose, Theorem 1.4 is true. Let be computable functions such that (2) is true. We extend f and g to functions by and for and . We transform the square together with and to the unit square. For let and . Then and satisfy (3) and (4). By Theorem 1.4 there are (not necessarily computable) numbers such that and is computable, hence . Since and cannot intersect outside the unit square where and . Therefore . The point is computable.
A corollary of Theorem 1.4 is the computable intermediate value theorem [12].
(Computable intermediate value).
Every computable functionwithandhas a computable zero (that is,for some computable number t).
For a proof as a corollary of Theorem 1.4, define and . By an easily provable corollary of Theorem 1.4, there are numbers s, t and a computable point such that , hence . Therefore, is computable and .
The intermediate value theorem can be proved directly as follows:
Define a predicate by
Suppose . Then for some rational (hence computable) number .
Suppose . Call an interval a crossing, if and . By continuity of h the following can be shown easily:
Since the set of crossings is c.e., beginning with we can compute a nested sequence of crossings which converges to some real number t. Then .
Computable curves can be extremely complicated. Consider, for example, a space-filling curve or a curve with infinitely many spirals, each of which containing infinitely many sub-spirals etc. infinitely often or curves with chaotic behavior. Furthermore, there is a computable function with and such that has measure but contains only a single computable number.1
There is a computable open set with measure which contains the computable real numbers ([11], [12, Theorem 4.2.8]). Define a computable function such that and . Construct h from .
Therefore at first glance there might be enough freedom to construct computable functions f and g which avoid to cross in a computable point.
In Sections 2 to 5 we prove Theorem 1.4 corresponding to Steps A, B, C, D above. In Section 2 we define a predicate Q which corresponds to the in Step A above. In Section 3 we prove that Q implies the existence of a computable point of intersection. In Section 4 assuming we define crossings and show that every crossing has a much smaller sub-crossing. In Section 5 we prove that every crossing has a proper sub-crossing and that the set of proper crossings is c.e. Then we compute a point of intersection of f and g as the limit of a decreasing sequence of proper crossings. In Section 6 we outline a proof for the special case that f is injective and add some further considerations.
Computability on the real numbers, on open and on compact subsets and of is defined via canonical representations2
A name of an open set U is a list of open rational balls such that , a name of a compact set K is a list of all finite covers of K with rational balls.
[12 ,13]. In the following, f and g will be computable functions satisfying the conditions (3) and (4) from Theorem 1.4.
Two alternatives
In this section we define a predicate Q which corresponds to the predicate from Step A in Section 1. We consider Euclidean balls such that and . Since iff , and (for ),
For such that define
The definitions are illustrated in Fig. 2. We can interpret the arguments of f and g as “time”. Starting at time a in positive direction f leaves the open ball at time and leaves the closed ball at time . Correspondingly, starting at time a in negative direction f leaves the open ball at time and leaves the closed ball at time . For radii r and s, Fig. 2 shows a time interval from to and its image. The function f can be much more complicated than shown in the figure. For example there is a computable function f such that and . Notice that f may cross the ball additionally at times t with or .
and
The numbers , , and are not computable in general but semi-computable.
The setsare c.e.
From the compact set we can compute the compact set . Since for compact K and open O is c.e. we can enumerate the set of all such that . Since is equivalent to (in ), we can enumerate the set of all such that . (17) follows from (11), (13) and (15). Accordingly . □
We define a predicate Q which in this proof corresponds to the predicate from the proof of the computable intermediate value theorem in Section 1.
In Fig. 2, and are the marked points on the circle with radius r. By Q for every radius at least one of the corresponding marked points must be in . We will prove that contains a computable point. In general neither Q nor are c.e.
The first alternative
We assume Q from (18). Therefore, there are with and such that
For an interval I let be its length. For closed real intervals K, L define iff . If let .4
We consider as a generalized interval with lower bound K and upper bound L.
From rational a, r, s, ε such that,andwe can compute rational numbers,and rational intervals I, J such that
First we prove that such numbers , exist. There is a sequence of rational numbers such that . Then by (20)
Since all these intervals are pairwise disjoint, there are pairwise disjoint rational intervals and such that and . Since there are only finitely many numbers i such that and only finitely many numbers i such that . Hence for some number i, and . Choose , , and .
In general, for closed intervals , iff there are disjoint rational intervals , such that , and . Therefore by Lemma 2.1 we can compute appropriate radii , and intervals I and J. □
If Q thenfor some computable number.
By Lemma 3.1 from a, r, s we can compute a sequence of pairs of rational radii and sequences and of rational intervals such that and for all n,
Let
Suppose . Then , hence , therefore, .
Therefore, is a descending sequence of closed rational intervals such that and by (22). The sequence converges to a point which is computable since the sequence is computable. Correspondingly, , and the sequence converges to a computable point α.
We apply assumption Q. By (19),
(see the marked points in Fig. 2), hence
Suppose infinitely often. Then for some increasing sequence of indices, where . By , , hence the sequence converges to α. Since f is continuous, the sequence converges to . Since , is a sequence in which converges to . Since is compact it is complete. Therefore, . Correspondingly, if infinitely often then .
Therefore, we have shown that Q implies for some computable number . □
If Q thenfor some computable number.
By symmetry. □
Gates
In this section we generalize Step C of the proof of the computable intermediate value theorem in Section 1. We define gates and prove that every gate crossed by g contains a much smaller gate crossed by g. In Section 5 we compute an intersection point of f and g as the limit of a converging sequence of crossings. Let Q be the predicate defined in (18). In the following we assume , that is, for all such that and ,
First we introduce gates and a concept of crossing. Gates generalize the intervals in our proof of the computable intermediate value theorem in Section 1.
(Passage, gate).
A passage is a pair such that V is the open unit square or a ball () with or the strict intersection5
Where we call the intersection of and strict if , and .
of two such balls, and with .
Let be the longest open interval I such that and and for with let be the longest open interval I such that and (cf. (8) and (9)).
A gate is a passage such that and .
A gate is crossed by g via if and the straight line segments from to and from to intersect. We say that the gate is crossed by g if it is crossed via some d.
Figure 3 shows a ball-shaped gate which is not crossed by g via d since the dotted line segments do not intersect (equivalently, surrounding the circle (boundary of V) the four endpoints of the curve segments do not alternate in f and g). Notice that nevertheless the curve segment of f and the curve segment of g intersect inside of V. Such intersection points will be irrelevant in our construction.
On the right Fig. 3 shows a lens-shaped gate (intersection of two balls) which is crossed by the path g via d (the dotted line segments intersect). As an example, is a gate which is crossed by g via the point (see Fig. 1). Here .
A ball-shaped gate not crossed by g via d and a lens-shaped gate crossed by g via d.
In the remainder of this section we prove the following central lemma which generalizes Step C of the proof of the computable intermediate value theorem in Section 1.
Supposeand letbe a gate crossed by g. Then there is a gatecrossed by g such thatand.
We define a sequence of overlapping ball-shaped gates covering such that also the intersections of consecutive balls (lenses) are gates and show that at least one of these gates must be crossed by g. Figure 4 shows a ball-shaped gate with such a sequence of balls. The picture is topologically correct but not metrically. In general the sequence of balls may have numerous loops. The exact details are given below.
A ball-shaped gate with a chain of balls covering f in V.
First we define balls and rational numbers . Since the functions f and g are continuous on the compact interval , they are uniformly continuous. Therefore, there is an non-decreasing modulus function such that for all ,
Since (since is a gate) and is compact, there is a rational number such that
(see the first ball and the last ball in Fig. 4). Since is crossed by g, . Therefore for avoiding pathological cases, we may assume
Since f is continuous, there are rational numbers , such that
Since and are compact and is a compact subset of the open set V, there is a rational number such that
For let . Then . We choose , rational numbers , , , and a real number inductively as follows.
, .
Suppose and such that and have been chosen.
If then define (End of construction.), else choose , , , and such that
Figure 5 illustrates the construction. Notice that in general is much smaller than shown in the figure since it converges to 0 while for all i (by (42)).
The definition of , and from and .
We define
These balls are shown in Fig. 4. We must show that the construction is sound, in particular that it ends after finitely many steps. First we show that numbers , , , and exist provided .
Since the assumptions of Lemma 4.3 are true for (, ), the construction can be started with . If it has been performed for then (41)–(46) are true for . By (42), and . Then the construction can be continued with i, provided . By (46) there is a greatest number i such that . This number has been called n. Then .
By Lemma 4.5.2 in Fig. 6 the points and are positioned correctly, in particular by Lemma 4.5.2 they are different and not in (the peaks of ). Notice that is not excluded, but always by definition. The line segments in Fig. 6 correspond to the dotted line segments in Fig. 3.
Figure 7 (as a detail of Fig. 4) shows an example of the balls . The figure is topologically correct but not metrically, in particular since (31) and (33) are not satisfied.
For let be the straight line segment from to and for let . These line segments correspond to the dotted lines in Fig. 3. The sequence forms a polygon path running from to (Fig. 7).6
We have (where by (44) and ). However, running along the straight line segments in Fig. 6 the point is visited before the point . This is no contradiction.
The balls , inside of the set V and the path .
Now we complete the proof of Lemma 4.2. We have a gate crossed by g via some d as in Fig. 4 ( and are not marked in this figure) with more details in Fig. 7. Let . By (28),
The polygon may have loops (not only loops inside a gate as shown in Fig. 7 but much longer ones). By cutting the loops we obtain a loop-free polygon running from to . Then is the disjoint union of and two connected sets , such that the set is not connected, and since is crossed by g. (The polygon cuts the set into disjoint parts and with and , see Fig. 4.)
Suppose . Then . Since , and is connected, . Therefore,
We observe for increasing . Whenever g enters a gate or it must leave it at the same side of the line or , respectively, without crossing it.
Now we replace the assumption by the weaker assumption: none of the gates and is crossed by g. If g enters (by Definition 4.1 the endpoints of are not in ) then it may cross the line but must stay in and finally leave in the same side. The line segment can be crossed only locally. (correspondingly for and ), see the left example in Fig. 3. Therefore, also with this weaker assumption
Since by the definition of and , and , is impossible. By (42) and (33),
Since , is impossible. Therefore (50) is false. Contradiction.7
Consider the path as a fence with posts and planks between consecutive posts. Then it is not possible to walk from to without crossing one of the planks. If we replace each plank by a belt which allows to cross the plank only locally it is still impossible to walk from at time .
We conclude that one of the gates and must be crossed by g. This ends the proof of Lemma 4.2.
The second alternative
In this section we generalize Step D of the proof of the computable intermediate value theorem in Section 1. We generalize the sets K and L from (10), (11) and Fig. 2 to gates. If is a gate crossed by g via d we call a crossing.
A meeting is a triple , such that and where V is either a ball (a ball-shaped meeting) such that and or V is the strict intersection8
We call the intersection of and strict if , and .
of two such balls, where and (a lens-shaped meeting). For a lens-shaped meeting let (the peaks of V).
For a meeting define
The numbers and intervals , , , , and are defined accordingly.
A meeting is a crossing if the four points , , and are pairwise different and alternate in f and g on the boundary of V (equivalently, if the straight line segments from to and from to intersect in V).
A meeting is a proper crossing, if there are rational balls (i.e. balls with rational c and r) , , , such that
and if is lens-shaped then for each of the four balls B,
Figure 8 shows a ball-shaped proper crossing. The right side shows a ball violating (54).
A proper ball-shaped proper crossing and a ball violating (54).
Every proper crossing is a crossing.
By the definitions , , and (see Fig. 2). Since the four sets are pairwise disjoint the four points are pairwise different. By (52) the four points , , and alternate in f and g on the boundary of V. □
In our new terminology Lemma 4.2 can be expressed as follows:
For every crossingthere is a crossingsuch thatand.
We will compute an intersection point of f and g as the limit of a nested decreasing sequence of crossings. Unfortunately the set of crossings is not c.e. since the endpoints of the sets K and L are not computable so that the condition from Definition 5.1.3 is not c.e.9
For example, for a crossing possibly .
We solve the problem by Lemma 5.4 and Lemma 5.5 below.
For every crossingthere is a proper crossingsuch that.
We consider the case of a lens-shaped crossing. The proof for ball-shaped crossings is similar but simpler. Consider a crossing where . For let where and .
There is some such that if . Therefore, for we have intervals and points according to Definition 5.1.2 (see Fig. 2).
By Definition 5.1.3 the four points , , and are pairwise different. Therefore, there is some , , such that the four balls , , and are pairwise disjoint and for each of these balls B with radius ,
First we consider the point . Since f is continuous there is some , , such that . There is some such that . For every we obtain (where the longest interval I such that and ), hence
Correspondingly for the other numbers , , there are numbers , and . Choose some such that
We show that is a proper crossing. Since , . Therefore, is a meeting. For let be the numbers and intervals introduced in Definition 5.1. We must verify Definition 5.1.4 for . By (56),
where the balls are not necessarily rational.
First we consider . Since is a compact subset of there is some such that
Define . Then . Therefore (53) is true for . We apply (55).
Suppose . Since and , . Therefore (54) is true for the case . If then (54) is true for the case accordingly.
Suppose in (55) , that is, . By (57) and (59), , hence . Therefore (54) is true for the case . If then (54) is true for the case accordingly.
All of this can be proved for , and (see (58)) accordingly. Therefore (54) has been proved for .
Since is a crossing the points , , and are pairwise different and alternate in f and g on the boundary of V. Let be a lower bound of the mutual distances of these four points. We may choose and . Then obviously the four balls , , and alternate in f and g on the boundary of . We omit a detailed verification. This proves (52) for .
Therefore, is a proper crossing. □
The set of ball-shaped proper crossings and the set of lens-shaped proper crossings are c.e.
More precisely, the set of tuples such that is a proper crossing is c.e., and the set of tuples such that is a proper crossing is c.e.
We consider the case of lens-shaped crossings. The proof for ball-shaped crossings is similar. We use Definition 5.1.
For a tuple , is a proper crossing if there are rational balls , , and such that is a meeting and (51)–(54) are true.
The predicate ( is a meeting) is c.e. The properties (51), (52) and (54) are decidable. Since (for rational , ) is c.e. (c.f. Lemma 2.1), can computed (as a compact set). Since f is computable, can be computed (as a compact set). Therefore is c.e. Since the other three predicates from (53) are c.e. accordingly, (53) is c.e.
Therefore, the set of tuples such that is a proper crossing is c.e. □
We can now prove the generalization of Step D of the proof of the computable intermediate value theorem in Section 1.
Ifthen there is a computable point.
We assume (18). By Definition 4.1 the unit square, more precisely is a gate which is crossed by g via . By Lemma 4.2 there is a gate crossed by g via some d such that . According to Definition 5.1, is a crossing. which by Lemma 5.4 has a smaller proper subcrossing. By Lemma 5.3 and Lemma 5.4 every proper crossing has a has a proper subcrossing with much smaller diameter. By Lemma 5.5 we can compute a sequence of proper crossings such that and . The limit such that is a computable point.
Every neighborhood of x contains for some . Since is compact, is compact, hence complete. Therefore, . Accordingly, . □
The main theorem 1.4 follows from Theorems 3.2 and 5.6.
Final remarks
For Case Q we have shown that for some computable number α (Theorem 3.2). But we have not shown that for this α there is a computable number β such that .
For Case in the proof of Theorem 5.6 we have shown that the converge to x. (This does not mean that, for example, the sequence converges.) But we have not computed some such that . Correspondingly, we have not computed some such that . Therefore, possibly for no computable numbers α and β.
In general, from the fact that is computable we cannot conclude that for some computable number t. In the following example for many real numbers t but for no computable one.
Let . Let be the function from Footnote 1. From we can define a computable function such that and and have the same zeroes. Define
Then for many non-computable numbers t but for no computable one.
If f and g are continuous but not necessarily computable our constructions are still computable in f and g (w.r.t. the canonical representation of the continuous functions [12,13]). The predicate Q (31) however, is not continuous (hence not computable) in f, g and furthermore, in the proof of Theorem 3.2, the decision required in (24) is not continuous (hence not computable) in f, g. Possibly, the predicate Q is not optimal. Also for finding α and β such that possibly some other predicate must be used.
The degree of unsolvability of the operator finding a point of intersection in Theorem 1.1 has not yet been located in the Weihrauch lattice [2]. By [2, Theorem 7.34] . Presumably the following claim is true.
The multi-valued operator H mapping each pairof continuous functions with the properties from Theorem
1.1
to a pairof closed intervals such thatis computable.
From this claim Corollaries 6.3 and 6.4 can be proved
.
For a realization of it suffices to find some real number α such that . For finding such a number first apply H from Claim 6.2 and then apply to the set . This shows . The statement follows from . □
From Claim 6.2 we obtain a slight improvement of Theorem 1.3.
Under the assumptions of Theorem
1.3
there is a computable number α such that.
If (a singleton) then α is computable. Otherwise for some rational number α which is computable. □
References
1.
O.Aberth, Computable Analysis, McGraw-Hill, New York, 1980.
2.
V.Brattka, G.Gherardi and A.Pauly, Weihrauch complexity in computable analysis, 2017, arXiv:1707.03202v1 [math.LO].
3.
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. doi:10.1007/978-0-387-68546-5_18.
A.Grzegorczyk, On the definitions of computable real continuous functions, Fundamenta Mathematicae44 (1957), 61–71. doi:10.4064/fm-44-1-61-71.
6.
Z.Iljazović and B.Pažek, Computable intersection points, Preprint, 2017.
7.
B.A.Kušner, Lectures on Constructive Mathematical Analysis, Izdat. Nauka, 1973(in Russian). Translated: by E. Mendelson and edited by L.J. Leifman, Transl. Math. Monographs, Vol. 60, 1984.
D.Lacombe, Extension de la notion de fonction récursive aux fonctions d’une ou plusieurs variables réelles I, Comptes Rendus Académie des Sciences Paris240 (1955), 2478–2480, Théorie des fonctions.
10.
S.N.Manukyan, O nekotorykh topologicheskikh osobennostyakh konstruktivnykh prostykh dug, in: Issledovaniya po Teorii Algorifmov i Matematicheskoy Logike, Vol. 2, B.A.Kushner and A.A.Markov, eds, Vychislitel’ny Tsentr AN SSSR, Moscow, 1976, pp. 122–129(in Russian).
11.
E.Specker, Der Satz vom Maximum in der rekursiven Analysis, in: Constructivity in Mathematics, Aug. 26–31, 1957, Amsterdam, A.Heyting, ed., Studies in Logic and the Foundations of Mathematics, North-Holland. Proc. Colloq., Amsterdam, 1959, pp. 254–265.