Consider two paths in the unit square such that , , and . By continuity of ϕ and ψ there is a point of intersection. We prove that from ϕ and ψ we can compute closed intervals such that .
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. In Markov-style computable analysis [4] Manukyan [7] has proved a related theorem (in Russian), cited in [5, Page 279] as follows:
(Manukyan).
There are two constructive (and therefore continuous) planar curvesandsuch that
While in (Grzegorczyk-Lacombe- [2,6]) computable analysis the following has been proved [10]:
Intersecting curves ϕ and ψ with extensions f and g.
(Weihrauch).
If ϕ and ψ in Theorem
1.1
are computable then there is a computable point.
This is not contradictory. In Markov’s approach only functions on the computable real numbers which are encoded by Gödel numbers are considered and computations transform Gödel numbers to Gödel numbers. While in the Grzegorczyk-Lacombe-approach all real numbers are considered, where real numbers are encoded by (fast converging) Cauchy sequences of rational numbers and computations transform infinite Cauchy sequences to infinite Cauchy sequences.
Letbe the multi-valued operator mapping every pairof paths in the unit square such thatto some pairof closed intervals such that. Then the operatoris computable.
Theorem 1.3 follows straightforwardly from Theorem 1.4. In the proof from ϕ and ψ we compute sequences and of closed intervals with rational endpoints such that .
Curves (even computable ones) can be much more complicated than the examples shown in Fig. 1. Consider, for example, space-filling curves or curves with infinitely many spirals, each of which containing infinitely many sub-spirals etc. infinitely often or curves with “completely” chaotic behavior.
This article is a contribution to computable analysis. There are various non equivalent definitions of computability in analysis. One of these is Markov’s constructive analysis [4,5]. Theorem 1.2 is a result in this theory. We use “TTE”, an approach which is based on ideas from [2,3,6]. In TTE computability on and Cantor space (the finite and infinite 0-1-sequences) is defined explicitly (e.g. by Turing machines with finite or infinite one-way input and output tapes) and computability on other sets X is induced via representations or (partial surjective) where finite or infinite 0-1-sequences are interpreted as names and computations are performed on names. We consider canonical representations of the real numbers, open subsets, closed subsets, compact subsets and real functions. Equivalently any finite alphabet Σ (with at least two elements) can be used instead of . We assume that the reader is familiar with the basic concepts of TTE. Details can be found in [1,9,11].
For technical reasons we extend ϕ and ψ trivially to continuous functions which intersect in the same way as ϕ and ψ, that is, (see Figure (1)):
We will consider closed rational sub-intervals and of the real interval such that for the restrictions of f to I and of g to J,
Since and are compact this means
where .
We will approximate and by rational polygon paths h and , respectively, and consider the intersections , that is, pairs such that . In order to keep this number finite we consider only pairs such that contains no straight line segment. For such pairs every intersection is either a crossing or tangent. As a central lemma we will prove that the parity (even or odd) of the number of crossings does not depend on h and (it is an invariant of ). We call it the crossing parity of the pair . In the proof we will apply transformations of polygon paths which may change the number of crossings but do not change the parity (even or odd) of the number of crossings.
The crossing parity
For points such that let be the straight line segment from x to y. In this article is not a straight line segment.
A track is a sequence such that and for . The points are the vertices of p.
For tracks p, q we want to count the number of crossings of the paths and . In order to keep this number finite we consider only pairs such that and have no common straight line segment. Furthermore, we will not count all intersections of and but only “proper” crossings.
Let where and be a pair of tracks such that and have no common straight line segment.
An intersection of p and q is a pair such that , and . We call the corresponding intersection point.
For an intersection of p and q with intersection point let be a number such that contains no vertex of p and no vertex of q. Let
If on the boundary of the four points , , and occur in the order or in the order ,1
That is, on the boundary of the four points alternate in x and y.
we call a crossing and x the corresponding crossing point, else x is a touch point.
Let be the number of crossings of p and q and let be its parity ( even and odd).
Obviously, for no number i, and where denotes the boundary of . This is true correspondingly for , and .
Figure 2 shows several kinds of intersection of p and q (thin lines for and thick lines for ) the first two of which are crossings. In (a) possibly the center x is no vertex of p or no vertex of q.
and in the ball for .
The definition of a crossing depends on the number only formally.
The definition of a crossing does not depend on the choice of.
Let be a crossing of p and q defined via some . Let .
Let and . Then . This is true correspondingly for the other three cases. Obviously the four points on alternate in the same way as the four corresponding points on . □
Notice that since and have no common straight line segment. In the applications below the endpoints of are not in and the endpoints of are not in . Therefore it suffices to consider and in the definition of intersections.
We introduce a separation concept for tracks p and q which induces that and have no common straight line segment.
Let be a track.
Define .
For with let be the straight line through x and y.
Define
We call tracks p and q weakly separated, , iff
Figure 3 shows on the left the set of a track p and a straight line through a point and on the right the set of a track q and a straight line through a point .
and .
Ifthen every straight line through the point y intersects every straight line fromat most once.
Iforthen thenandhave no common straight line segment.
If a straight line through y intersects a straight line from twice then . Contradiction.
Let . Suppose for some i and j, and have a common straight line segment. Then , but . Correspondingly, . □
As an essential tool we will use local transformations of tracks which leave the crossing parity invariant. The following lemma justifies these transformations.
Letbe tracks and let B be a ball such thatThen.
Remember that by Definition 2.1, , , and . By Eq. (14), .
If and have a common straight line segment then or , but . Therefore, is well-defined. Correspondingly, is well-defined. We distinguish several cases, see Fig. 4. The “open ended” line segments are parts of .
Case (b),and: In Fig. 4(b) the track is drawn in thick lines. If then . If then and differ by an even number. In both cases .
Case (c),and: In Fig. 4(c) the track is drawn in thick lines. Let Δ be the closed triangle with boundary () and let be its interior.
If and have a common straight line segment then , a contradiction by Eq. (14). Therefore and have no common straight line segment. This is true correspondingly for and . Therefore
Let such that . Let be the longest interval such that and . Figure 4(c) shows an example for σ with and positioned at the images under and . Obviously, . We show that and are crossing points of p and or of p and .
Suppose
Since is a chain of straight line segments there is some such that is a straight line segment with and by Eq. (17) .
Since is a chain of straight line segments and is the smallest number a with , there is some such that is straight line segment with and by Eq. (17).
If we draw a sufficiently small circle around then (with the terminology from Definition 2.2)) the intersections and of it with and the intersections and of it with alternate on this circle in x and y. Therefore, for every σ such that ,
and correspondingly,
On the other hand, every crossing point of p and or is equal to or for some σ with . Therefore, the number N of crossings of p with or is even. Since by Eq. (14) , is an even number, hence .
Case (d),and: Let for . By Case (b), and by Case (c), .
Case (e),: Let for . By Case (c), and .
Case (f)and: Proof via as in (d) and (e). □
For tracks p, q and , by tiny shifts of the vertices of p we can obtain a track such that and .
Letand let q andbe tracks. Then for everythere is some tracksuch that,andfor.
Ifandare tracks such thatforthenfor all.
We must find (prove the existence of) points such that and for ,
The following statements are true since is a finite set of points and is a finite set of straight lines.
There is some such that .
Suppose has been determined for some . There is some such that
After these technical preparations we prove the following central lemma.
Let. Let p andbe n-approximations ofand let q andbe n-approximations ofsuch thatand. Then.
Let
where and . Notice that possibly p and as well as and q have common straight line segments such that and are not defined. By Lemma 2.7 there is some track
such that
Figure 5 shows the ⋈-relation (indicated by lines) between the tracks p, q, , and . It suffices to prove
We use the facts that by the definitions the points , , and are close together and that the points , and are close together.
The ⋈-relation between the tracks p, q, , and .
In the following we prove the second equation of Eq. (27) in detail. Let
be n-approximations of . As an example, Fig. 6 shows the arguments of a track q on the real line and and the arguments of a track on the real line (thick black dots).
Insertion of redundant vertices into q and .
From Eq. (26) we know that and . In a first step we add “redundant” vertices to q and such that the resulting tracks and have the same number of vertices and such that , , and .
Let i be a number such that . There is a unique j such that (e.g. and in Fig. 6).
The point is an element of the straight line segment and different from and . We would like to add the “redundant” pair to with result
But possibly . Instead, we add a pair with to which is very close to . Let
Since , by Lemma 2.5 intersects every straight line from at most once. Therefore, the straight line segment contains only finitely many points of . Thus there is some t such that and . Then (see Eq. (9)). We add the pair to with result
Then . Let be the track obtained from by adding a pair in this way for every i such that in turn. Then and .
Correspondingly let be the track obtained from q in the same way. Then and . In summary,
In Fig. 6 the inserted arguments t are within the circles. The new tracks can be written as
where and . By the condition in the definition of above,
The next Proposition prepares the proof of Proposition 2.12.
For the tracksand, for all,
Proof of Eq. (
36
): Consider as a part of . Then has already been in q, that is, for some i or it has been inserted via some j such that . Therefore, there is some i such that (see Fig. 6)
Consider Eq. (40). Then by Eq. (23). Furthermore, . Since , , hence by Eq. (24). Therefore, . By symmetry . Therefore, .
We transform the track in two phases to the track preserving the crossing parity in each step. Remember Eq. (32) and Proposition 2.11 for
In the first phase for every we replace every by some without changing . For let be the following property:
There are points such that for all
where is the track
Let . Then , hence is true. Suppose for some we have proved . There is some such that
By definition,
Since is a track, by Eq. (44), is a track (neighboring vertices must be different). Also by Eq. (44), Eq. (42) is true also for . By Proposition 2.11 Lemma 2.6 can be applied to the boldface sub-tracks and such that . Since the vertices of and are not in , hence not in , . Therefore, we have proved .
We continue the proof of Lemma 2.10. Since and by Eq. (32), , which is the second equation from Eq. (27). The first and the third equation can be poved accordingly. We omit the details. □
Lemma 2.10 allows to define the parity of the pair .
for an arbitrary n-approximation p of and an arbitrary n-approximation q of such that and .
Let f, g, J andbe as before such that Eq. (
8
). Letandwhereand. Then
There are numbers and such that
, and . There are n-approximations and q of and , respectively, such that for some i and .
Let and .
Then and . Therefore and are well-defined such that (see Definition 2.2)
hence . Equation (47) follows by Definition 2.13. □
Crossing parities can be computed
In TTE computability is defined on represented sets . A representation is a function (if X is finite) or (if X has at most continuum cardinality). If then w is considered as a “name” (or a “δ-name”) of x. Every must have a name (and may have many names) but not every must be a name of some , hence δ is a partial surjective function.
For represented sets where , , a partial function is computable, if there is a computable function which realizes f, that is, if w is a -name of then is a -name of (accordingly functions on Cartesian products). For most sets in Analysis there are canonical (or standard or effective or obvious) representations which we use here. We will say “computable” without mentioning the (standard) representations.
We need the concept of computable multi-functions on represented sets. As an example, for the standard represented sets , and there is no computable function such that . But there is a computable function which from every name of x and every name of n computes a name of some such that . The computed number a depends on the names of x and n and not only on . The function h realizes the multi-function such that . Informally we say: f maps every to some such that , more formally, such that . In the following we apply results about computability on sets with standard representations from [1 ,8 ,9 ,11].
In Lemma 3.1 we consider n-approximations p and q of and , respectively such that . We prove that p and q can be computed from . We use from TTE, that () such that ) is computable.
Letbe the multi-function mapping continuous functions, closed rational intervalsand a numberto a pair,and, of rational tracks such thatThenis computable.
Since rational tracks are “discrete” objects there is no compuble funtion but only a computable multi-function (known from TTE).
It is known [1 ,9,11] that from continuous functions we can compute a modulus of continuity of f and a modulus of continuity of g. We can compute , which is a modulus of continuity of f and of g. Let and . Consider Definition 2.8.
First we compute p.
Choose some k and rational numbers such that for . Choose some such that . Suppose, has been chosen for . Then choose some such that and . Since for , is a rational track. It is an n-approximation of .
Next we compute q.
Choose some l and rational numbers such that for . Choose some such that and . Suppose, have been chosen for some . Then choose some such that , , and .
Since for , is a rational track. It is an n-approximation of . We have since for all i. We have since for all . Therefore, .
All of this can be computed from continuous functions , rational intervals and n. □
Letbe continuous functions and letbe closed rational intervals such that. Then.
Since and are compact, and hence . There is some number n such that and .
By Lemma 3.1 there are n-approximations p and q of and , respectively, such that . By definition 2.13, . By Eq. (25), and .2
Where .
Since , , hence . We obtain and . By Definition 2.13, . □
From continuous functionsand closed rational intervalswe can compute.
From continuous functionsand closed rational intervalssuch thatwe can compute.
Remember that is equivalent to .
Equation (1) From f, and we can compute the compact set . From g and J we can compute the compact set . The function on (non-empty) compact set is computable. Therefore, from f, g, I, J we can compute . Correspondingly we can compute and hence their minimum .
Equation (2) Compute . Find some n such that . By Lemma 3.1 we can compute n-approximations p and q of and , respectively such that . Compute the number of crossings and its parity . By Definition 2.13, . □
The crossing parity of f and g
The crossing parity does not depend on f and g as long as are continuous and Eq. (1) is true. For showing we construct special tracks p and q. For tracks p define (Eq. (11) and Fig. 3).
There are 5-approximationsandof f and g, respectively, such that
There is a modulus of uniform continuity of f and g (cf. Eq. (20)). There are some k and rational numbers such that for . There are points such that and for all . Then is a 5-approximation of f such that . There are some l and rational numbers such that for . There is some such that and . Suppose () have been found. Then there is some such that , , and . By induction, we can define . Then obviously Eqs (51) and (52) are true for p and q. □
.
For we have , and (Eq. (8) and Fig. 1). Since by Definition 2.13, for (arbitrary) 5-approximations p and q of f and g such that Eqs (51) and (52). Notice that Eq. (52) implies . In the following we prove . We define
Figure 8 shows f and g, the ball and the two boxes and . By the definitions of f and g in Eqs (6) and (7), for . First we prove
Intersecting curves ϕ and ψ with extensions f and g.
We show Eq. (56). Let . Then for some i, . Then since . Correspondingly, . Since and is convex, .
We show Eq. (57). If then . If then (from above). Hence for . By symmetry, also for .
For , . Therefore Eq. (57) is true. Since there are indices such that
By Eqs (56)–(58),
We simplify the track p step by step by means of Lemma 2.6. For define
Since the are pairwise different (by ), . Therefore, is a track, see Definition 2.1. We prove by induction
Since , .
Suppose for some . We define
We apply Lemma 2.6 to and . We have (cf. Eqs (14)–(16))
(For the last line: , hence . Accordingly .) By Lemma 2.6, . Since , , hence . Therefore, replacing by in does not change the crossing parity. We show this in detail.
Since , for all i, hence
Since ,
By induction
By Eqs (56) and (58), runs in the box for , then its graph is the straight line segment and finally remains in the box for , see Fig. 8.
Since , . Keeping fixed we can simplify the track q accordingly. Therefore there are indices such that for , , where runs in the box for , then its graph is the straight line segment and finally remains in the box for as shown in Fig. 9.
Since and (we omit the straightforward formal verifications), . We obtain . □
The tracks and .
The proof of the main theorem
For and a number let be the δ-neighborhood of A. From f and g we will compute sequences and of rational closed intervals such that . First we prove the following lemma.
From f, g, rational intervalsandsuch that such thatandwe can compute a rational intervalsuch that
Perform the following computations:
From J and g compute the compact set .
Compute some sequence of rational numbers such that .
Suppose and . Then , hence for some , and . Therefore,
Since and , , hence
Therefore, we can find a sub-sequence of such that
Let . (In Fig. 10, and .)
Suppose Eq. (75), that is, . (In Fig. 10 this is true for .) By Eq. (71) for all and , , hence , therefore,
Suppose Eq. (76), that is, . (In Fig. 10 this is true for .) By Eq. (72) for all there is some such that , hence . Furthermore by Eq. (74), . The same is true for instead of j, therefore .
Since and , . In summary,
By Lemma 2.14,
Therefore, there is some j such that . By Eq. (77), Eq. (75) cannot be true for j, hence Eq. (76) is true for j, hence Eq. (78) is true for .
For computing K from f, g, I, J and n, first compute , then compute the sub-sequence of such that Eqs (74)–(76). Then find some j such that . Let . Then Eq. (70) is true by Eq. (78). □
From functions f and g, closed rational intervalsandsuch thatandwe can compute closed rational intervals,such that
Compute and some number such that .
By Lemma 5.1 we can compute a rational interval ( in the lemma) such that by Eq. (70),
Again by Lemma 5.1 with (f and g exchanged) first compute and some number such that , then compute some such that
Equation (79) follows from Eq. (83), Eq. (80) is true by the construction and Eq. (81) follows from Eqs (82) and (83) by and . □
From functions f and g (as defined in Eqs (
6
) and (
7
)) we can compute sequencesandof rational closed intervals such that.
By Lemma 5.2 starting with we can compute sequences and of rational closed intervals such that for all ,
The following equations follow from continuity of f and g.
We give elementary proofs. Since for all m, .
Suppose . Then there is a sequence such that for all m, and . Since is compact there is a subsequence converging to some . Since f is continuous, . Assume for some k. Then for some , , hence , a contradiction. Therefore for all k, hence and .
Suppose . Assume for some k. Since is compact for some . Therefore, , hence , a contradiction. Therefore for all k, hence .
Therefore Eq. (85) is true. By symmetry also Eq. (86) is true. By Eqs (84)–(86), . Accordingly, . □
After these preparations Theorem 1.4 can be proved straightforwardly. For the canonical representation (most conveniently the canonical multi-representation [11]) of functions the function f can be computed from ϕ and the function g can be computed from ψ. By the outer representation of the set of the closed real intervals, a name of S is a sequence of closed rational intervals such that . Therefore, by Lemma 5.3 the multi-function such that is computable. Thus we have proved Theorem 1.4.
The main theorem from [10] follows straightforwardly from Theorem 1.4.
If ϕ and ψ in Theorem
1.1
are computable then there are computable numbers a and b such that(hence) and(hence).
Restricted to the pairswhich have a unique intersection point, the point x such thatcan be computed from ϕ and ψ.
Restricted to the pairssuch thatfor a unique pairthe functionis computable.
Suppose has length . Then for some , which is a computable real number such that .
Suppose has length 0, that is, for some a. Since for a computable sequence of rational intervals, a is a computable real number such that .
By symmetry there is a computable number b such that .
Notice that possibly and have positive lengths. Suppose ϕ and ψ have a single intersection point x. Then . For every , by Eq. (85). The countable intersection of closed subsets of the compact set is empty. Therefore finitely many suffice: there is some N such that , hence . Therefore, for every there are some and some such that . Since is computable and the set such that K is compact and is c.e.3
Computably enumerable or recursively enumerable.
[11], from ϕ and the list we can compute a sequence of rational balls contracting to x. Therefore we can compute the single intersection point of ϕ and ψ.
We can compute a sequence converging to a. Therefore we can compute a. Correspondingly we can compute b.
□
In Corollary 5.4.1 in general . From ϕ and ψ we cannot compute some a such that or some . We do not even know whether for the computable number a there is a computable number c such that . In Corollary 5.4.2 from ϕ and ψ we cannot compute some a such that .
References
1.
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.
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.
7.
S.N.Manukyan, O nekotorykh topologicheskikh osobennostyakh konstruktivnykh prostykh dug, in: Issledovaniya po teorii algorifmov i matematicheskoy logike, B.A.Kushner and A.A.Markov, eds, Vol. 2, Vychislitel’ny Tsentr AN SSSR, Moscow, 1976, pp. 122–129(in Russian).
8.
N.R.Tavana and K.Weihrauch, Turing machines on represented sets, a model of computation for analysis, Logical Methods in Computer Science7(2) (2011), 19.