A minimal representation for continuous functions
Franz Brau{\ss}e, Florian Steinberg

TL;DR
This paper refines the minimal information needed to evaluate continuous functions on the unit interval efficiently, removing length-monotonicity constraints and establishing a new lower bound for hyper-linear evaluation.
Contribution
It introduces a new representation that is minimal for hyper-linear evaluation and shows it is not polynomial-time equivalent to previous length-monotone based encodings.
Findings
The new representation allows hyper-linear time evaluation.
It is proven not to be polynomial-time equivalent to length-monotone encodings.
The work highlights the importance of modulus of continuity in computational complexity.
Abstract
Kawamura and Cook specified the least set of information about a continuous function on the unit interval which is needed for fast function evaluation. This paper presents a variation of their result. To make the above statement precise, one has to specify what a "set of information" is and what "fast" should mean. Kawamura and Cook use polynomial-time computability in the sense of second-order complexity theory to define what "fast" means but do not use the most general "sets of information" this framework is able to handle. Instead they require codes to be length-monotone. This paper removes the additional premise of length-monotonicity, and instead imposes further conditions on the speed of the evaluation: The operation should now be computable in "hyper-linear" time. This means that the running time can not contain any iterations of the length function and, while an arbitrary…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
A minimal representation for continuous functions
Franz Brauße111Universität Trier, 54286 Trier, room H 420; Email: [email protected]; supported by the German Research Foundation (DFG), project WERA, grant MU 1801/5-1 and Florian Steinberg222INRIA, Sophia-Antipolis; Email: [email protected]; Supported by the ANR project FastRelax(ANR-14-CE25-0018-01) of the French National Agency for Research
Abstract
Kawamura and Cook have specified the least set of information about a continuous function on the unit interval which is needed for fast function evaluation. This paper presents a variation of their result. To make the above statement precise, one has to specify what a ‘set of information’ is and what ‘fast’ should mean. Kawamura and Cook use polynomial-time computability in the sense of second-order complexity theory to define what ‘fast’ means but do not use the most general ‘sets of information’ this framework is able to handle. Instead they require codes to be length-monotone. This paper removes the additional premise of length-monotonicity, and instead imposes further conditions on the speed of the evaluation: The operation should now be computable in ‘hyper-linear’ time. This means that the running time can not contain any iterations of the length function and, while an arbitrary polynomial may be applied to its value, on the argument side at most a shift by a constant is allowed. This is a very restrictive notion, but one can check that the Kawamura and Cook representation allows for hyper-linear time evaluation. The paper proves that it is not minimal with this property by providing the minimal set of information necessary for hyper-linear evaluation and proving that it is not polynomial-time equivalent to any encoding using only length-monotone names. This is ultimatively due to a failure of polynomial-time computability of an upper bound to a modulus of continuity. Indeed this failure seems to reflect the behaviour of software based on the ideas of computable analysis appropriately and was one of the reasons for a closer investigation in the first place.
Contents
1 Introduction
This paper discusses subjects that are from the field of real complexity theory; The resource sensitive refinement of computable analysis. The goals of computable analysis and real complexity theory are to broaden the scope of classical computability and complexity theory from discrete structures to continuous structures. Computable analysis originates from one of the papers that is considered foundational for computability theory itself [Tur36]. It branched of as a separate discipline in the 50’s [Grz55] and has been extended steadily since. Nowadays, most researchers in computable analysis use Weihrauch’s framework of representations [Wei00].
The complexity theory behind computable analysis was initiated by Friedman and Ko [Ko91] and has recently seen a lot of new developments due to advancements in the field of second-order complexity theory. Kawamura and Cook introduced a framework for complexity for operators in analysis [KC10] and kicked off a line of investigations in the past years [Kaw11, KO14, KP14, FGH14, KMRZ15, FZ15, Ste17, and many more]. One of the results that contributed to the popularity and acceptance of their framework is the following: Kawamura and Cook succeeded to provide a standard representation of the set of continuous functions on the unit interval. They proved that this representation contains the minimal information needed to make the evaluation operator polynomial-time computable. Where minimality is taken to mean that any other representation with this property can be translated to the standard representation in polynomial time. This paper provides a variation of Kawamura and Cook’s result.
The framework of Kawamura and Cook sits behind most complexity theoretical results in computable analysis. Still, there remains a gaps between the theory and applications: For a well-behaved complexity theory, Kawamura and Cook impose some additional assumptions on the representations they consider. In practice, these assumptions seem unnatural as they lead to extensive padding. Furthermore, some of the theoretical predictions seem to be out of sync with the behavior of efficient software based on the ideas from computable analysis: iRRAM is a framework for and implementation of error-free real arithmetic based on the ideas of real complexity theory [Mül01, Mül]. In iRRAM it is possible to implement functions and, as long as the implementation of the function is reasonable, evaluation of the function is fast. Computing an upper bound of the modulus of continuity of a function, on the other hand, does not seem to be possible in a reasonable amount of time. In contrast to that, within Kawamura and Cook’s framework one can prove that polynomial-time computability of evaluation implies polynomial-time computability of a modulus.
Due to the additional assumptions Kawamura and Cook impose, namely length monotonicity of names, Kawamura and Cook only employ a fragment of second-order complexity theory. This paper asks the question whether the discrepancies between theory and practice in the specific application of representations of continuous functions on the unit interval can be removed by omitting length monotonicity. It should be pointed out ahead of time that while the approach seems to lead to a success in the beginning, we only consider it to be partially successful. Technical difficulties are encountered when composing functions.
This paper provides a representation (Definition 2.12) such that a function can be evaluated quickly by using an algorithm for evaluation that is very similar to how iRRAM works internally (Theorem 2.13). It is proven that it is impossible to compute an upper bound to the modulus of continuity of a function in polynomial-time with respect to (Theorem 2.15) and this is used to compare to Kawamura and Cook’s minimal representation. While translatability in one direction follows from the minimality result proven by Kawamura and Cook, the representations are not polynomial-time equivalent (Corollary 2.19). It follows directly, that is not polynomial-time equivalent to any second-order representation (Corollary 2.21). Many of the more basic operations, like the arithmetical operations, are polynomial-time computable with respect to the representation . However, in contrast to Kawamura and Cook’s representation, does not allow to extract an upper bound to the modulus of continuity in polynomial time. Furthermore, the final part of the paper proves composition of funcitons fails to be polynomial-time computable with respect to (Theorem 2.23).
The paper also proves that for any other representation such that evaluation is fast, there is a fast translation to (Theorem 2.14). Here, the condition for being ‘fast’ (Definition 1.10) is more restrictive than polynomial-time computable and is given the name hyper-linear time computability. This notion leads to some technical difficulties. The use of a different notion of being ‘fast’ is necessary for the proofs, but can also be justified by other means: In the past of real complexity theory there has been a lot of discussion about whether or not iteration of the length function in the running time should be considered feasible. Thus, one of the restrictions we use, namely forbidding iterations of the size function, is justifiable. The restriction, however, goes further to only allow a constant instead of the more usual polynomial lookahead. This seems to be a real restriction, and is only done since it seems unavoidable for the proofs. It should be noted that already the restriction to one iteration of the length function leads to a complexity class that is dependent on small changes in the model of computation. In the model that we pick, a consequence of this is that the class of operators that are considered ‘fast’ is not closed under composition.
1.1 Notations
Fix the finite alphabet . Denote the set of finite words over by . The empty string is denoted by .
For convenience of notation, this paper considers some sets from mathematics as subsets of : Let denote the set of positive integers in binary notation. Let denote the non-negative integers in unary notation. To avoid notational confusion this paper uses instead of if an integer in unary notation is handed to a machine. The length function assigns to a string its number of bits. Since are the integers in unary, this operation can also be regarded to replace all digits of the string by 1. Let denote the set , where 00 is interpreted as [math], is interpreted as and is interpreted as . Finally, interpret a string that has a single and starts in either 01, 11 or as the binary expansion of a rational number. I.e. identify with the rational number , where is the position of the . The set of numbers that have a code as above is called dyadic numbers and denoted by . Note that this does not provide but only defines partial a surjective mapping from to , a so-called notation. Furthermore it holds that for any the initial segment of a dyadic number is again a dyadic number (where is the position of ) and a -approximation to the original number. The above sets are pair-wise disjoint.
The Baire space is the space of all string functions . The reader is assumed to be familiar with the definitions of computability and complexity of string functions. The above can be used to talk about computability and complexity of functions between natural and dyadic numbers. Note that all string functions are required to be total, however, usually only the values of the functions on natural or rational inputs are required to fulfill some conditions. As a consequence it is possible to consider multivariate functions by just separating the arguments with . This paper uses the following pairing function on string functions:
[TABLE]
Throughout this paper denotes the set of continuous real valued functions on the unit interval. The following short notation for intervals is used:
[TABLE]
1.2 Representations
Computability theory encodes discrete structures by strings. Since the set of all strings is countable, this can only work for countable structures. To compute on structures of continuum cardinality one has to encode the elements by string functions instead of strings.
Definition 1.1
A representation of a space is a partial surjective mapping from the Baire space to .
An element of is called a -name or simply a name of . An element of a space with a distinguished representation is called computable resp. polynomial-time computable if it has a name which is computable resp. polynomial-time computable.
Example 1.2
Throughout this paper, the real numbers are equipped with the following representation: A string function is a name of if and only if it holds for all that
[TABLE]
That is: a name of a real number encodes dyadic approximations of arbitrary precision. This paper adopts the convention to encode precision requirements as integers in unary, which is standard in the field of real complexity theory. One could have equivalently used an integer in binary as input and replaced the right hand side by or a strictly positive rational that would then appear on the right hand side.
Definition 1.3
Let and be representations of spaces and . A realizer of a function is a function such that for all
[TABLE]
That is: translates -names of into -names of . Computability of operators on Baire space can be defined using oracle Turing machines: An operator is called computable if there is an oracle Turing machine such that the run of on input and with oracle halts with output . For more details about the exact model of oracle machines to use we point to [KC10].
A function between spaces with distinguished representations is called computable if it has a computable realizer.
Finally, this paper needs the product construction. Recall that a pairing of string functions was fixed in the introduction.
Definition 1.4
Let and be representations of spaces and . Define a representation of the Cartesian product as follows: A string function is a name of an element if and only if there exist string functions and such that .
Recall that an element of a represented spaces is called computable resp. polynomial time computable if it has such a name. It is true that an element of the product is computable resp. polynomial-time computable if and only if both and are computable resp. polynomial-time computable.
Example 1.5
For a given representation of the continuous functions on the unit interval , the above definitions together with the standard representation of the reals from Example 1.2 allow to discuss computability and polynomial-time computability of the operator
[TABLE]
1.3 Second-order complexity theory
For complexity considerations this paper uses second-order complexity theory which goes back to a definition by Mehlhorn [Meh76]. However, just like the framework of Kawamura and Cook does, we replace the original definition by a characterization due to Kapron and Cook [KC96]. This characterization is based on resource restricted oracle Turing machines and considerably more accessible than the original definition that was based on limited recursion on notation scheme. Recall that denotes the Baire space, i.e. the space of all string functions. Oracle machines compute operators on Baire space and therefore take elements of Baire space as inputs. When bounding the running time of such a machine, the size of the functional input should be taken into consideration.
Definition 1.6
For a string function define its length to be the function
[TABLE]
That is: the length of is the worst case increase in string-size from input to output. A running time bound should be an object of the type : It takes a size of an oracle function, a size of an input string and returns a number of steps the machine is allowed to take on inputs and . The subclass of running times that are considered polynomial, i.e. the second-order polynomials, are recursively defined as follows:
- •
Whenever is a polynomial with natural number coefficients, then the function is a second-order polynomial.
- •
Whenever is a second-order polynomial, the function is also a second-order polynomial.
- •
Whenever and are second-order polynomials, then so are their point-wise sum and product.
Definition 1.7
An oracle Turing machine is said to run in polynomial time on if there is a second-order polynomial such that on oracle with input it halts after at most computation steps.
A functional is called polynomial-time computable if there is an oracle Turing machine that runs in polynomial time on and such that for all and strings it holds that . A function between spaces with distinguished representations is called polynomial-time computable if it has a polynomial time computable realizer.
It should be pointed out, that the characterization provided by Kapron and Cook only applies to the case where additional properties of the set are known. The definition stated here is a proper generalization in the sense that the operators we consider polynomial-time computable need not have polynomial-time computable total extensions. However, this seems to be a reasonable and necessary extension.
An important special case where one is interested in computability or complexity of an operation are comparisons of different representations a space.
Definition 1.8
Let and be representations of some space . A translation from to is a realizer of the identity, i.e. a mapping such that for all it holds that
[TABLE]
The representation is called topologically, computably or polynomial-time translatable to if there exists a continuous, computable or polynomial-time computable translation. The representations and are called topologically, computably or polynomial-time equivalent if there exist continuous, computable or polynomial-time computable translations in both directions.
In literature the corresponding relation is usually called reducibility and denoted by . This terminology is taken from the discrete setting and can sometimes be confusing in the context of representations, as intuitively ‘ is reducible to ’ should mean that there is a reduction mapping from to .
Example 1.9
The different versions of the representation of the real numbers discussed in Example 1.2 lead to polynomial-time equivalent representations. Computability of functions is preserved under change to computably equivalent representations on both the input and output spaces. Polynomial-time computability is preserved under change of polynomial-time equivalent representations. These properties follow from the closure of computable and of polynomial-time computable operators under composition. A proof that the later remains true in our setting can for instance be found in [KS17].
1.4 Hyper-linear time
Due to the use of general representations, this paper imposes the following more restrictive condition than polynomial-time computability on the evaluation operator:
Definition 1.10
A second-order polynomial is called hyper-linear, if there exists some integer polynomial and a constant such that
[TABLE]
A polynomial-time computable function between represented spaces is called computable in hyper-linear time if it is computed by a machine whose running time is bounded by a hyper-linear second-order polynomial.
One should keep in mind that this definition is tailored for the application at hand. No care about complexity theoretical well-behavedness was taken. Indeed, the class of hyper-linear time computable operators may change with subtle changes in the model of computation. To make the above definition meaningful, more details about the model of computation have to be fixed: From now on assume that the position of the reading head resp. writing heads on the oracle tapes do not change during oracle queries and that oracle calls take one time step.
Example 1.11
Consider the two operators and defined by
[TABLE]
where is the -th bit of the string and is the mirrored string. The straight forward oracle machines that compute these operators run in time . For this is due to our convention, that only reading the oracle tape is accounted for in the time consumption of the machine: While the return value might be very long, writing it to the output tape is done by the oracle and copying the first bit to the output tape takes constant time. Thus both and are hyper-linear-time computable. The composition of these operators is given by
[TABLE]
and should intuitively not be hyper-linear-time computable.
Indeed, it is not to difficult to give a proof that is not hyper-linear time computable: Assume that is a machine that computes in hyper-linear time . Construct a pair of oracles and such that but . Let return the empty string on all arguments but , where it returns , and on the argument , where it returns :
[TABLE]
To see that returns identical results on both note that for all it holds that . Thus, the time the machine is granted of either of the oracles and input is and the run does only rely on what is written in the first cells of the oracle answer tape at any point in the computation. The content of this part of the oracle answer tape is identical for all possible answers of and . Thus the runs of the machine are identical and so is the return value. On the other hand, obviously , thus the machine does not compute .
As the machine was arbitrary it follows that is not hyper-linear time computable.
This example shows that the hyper-linear-time computable operators are not closed under composition in the model of computation that we chose. The class is also not stable under rather minor changes in the model of computation. For instance, the alternate convention of counting one time step for each digit of the return value in an oracle query is fairly common throughout second-order complexity theory and leads to the same class of polynomial-time computable operators. We consider it to be less natural as it leads to doubled counting of steps when composing machines and more technical difficulties overall. Making sense of hyper-linear time restrictions under this changed convention of time counting has to be done very carefully: Whether or not a machine is allowed to abort an oracle query matters. If abort is disallowed, then being hyper-linear-time computable implies a polynomial lookahead which is too restrictive for the applications this paper is interested in. If aborting is allowed one has to ask again how this is done: aborting with an initial segment written to the answer tape leads to the same class of hyper-linear-time computable operators we work with. The convention where no information about the answer is available in case of an abort leads to again a different class not containing the operator from the previous example.
All of the above difficulties equally apply to the class of machines that have a runtime bound of the form
[TABLE]
The class of operators computed by a machine allowing a running time bound of this form has been discussed as the right class for capturing feasibility in computable analysis. This justifies looking at hyper-linear time computation regardless of the model-dependence.
2 A minimal representation
Recall that this paper simulates multivariate input and output from or by separating the different arguments by and uses the abbreviation for . This chapter proves the following representation to be the minimal representation such that evaluation is hyper-linear-time computable:
Definition 2.12
Define the representation of : A string function is a -name of a function if and only if both of the following hold:
For all and there are and such that
[TABLE] 2. 2.
For all it holds that
[TABLE]
The first condition guarantees that on input and accuracy requirement , a name of a function returns a -approximation of the value of the function as well as an estimate of how much can be varied without the approximation becoming invalid. The second condition implies that is a modulus of continuity of in the following sense: A function is called modulus of continuity of if it fulfills
[TABLE]
The above is automatically fulfilled for and . The length of a name can be increased arbitrarily without interfering with the other condition by changing the values of the string function on strings that do not contain any . Using this and the fact that any continuous function on the unit interval has a uniform modulus of continuity it is quite easy to see that the above indeed defines a representation, i.e. that any continuous function has a name.
Theorem 2.13
The evaluation operator
[TABLE]
*is hyper-linear-time computable with respect to . *
Proof
A machine computing the evaluation operator can be described as follows: When given a pair of a -name of a function and a name of a real number and an precision requirement as input, the machine carries out the following loop for increasing : First it obtains an encoding of a dyadic -approximation of by evaluating . Then it evaluates to obtain an encoding of a dyadic number and an integer such that . It checks if . If this is not the case, it increases and restarts the loop. If it is the case it exits the loop and returns .
It should be clear that if the machine exits the loop at some point, then the return value is a valid approximation to . Therefore, it remains to prove that the machine always terminates and runs in polynomial time. Note that by the second condition of the definition of the representation , the length of the name is a modulus of continuity. Claim that whenever , then the machine exits the loop. Indeed, in this case by the second condition of the definition of the representation , it holds that . Thus, the loop is carried out at most times.
As the number is smaller than , going through the loop once takes hyper-linear time: The loop also needs to copy , which takes steps. To see that copying the second argument of is possible within the specified time bound, it is necessary to extract a bound on the integer part of . This can be done as follows: The string encodes the dyadic number . Thus, by the first condition of the definition of it holds that and and fulfill
[TABLE]
In addition to this, is a modulus of continuity of and by dividing the distance to any to into steps of size less than it follows that
[TABLE]
This finally implies that the integer part of the second argument of the return value of is smaller than , where the second term is a bound on the integer part of that follows from how was found. Since , such integers have codes that are of length less than .
Therefore, the loop can be carried out in steps and all of the computation takes less than . This time bound is hyper-linear. ■
2.1 A minimality property
With respect to the representation it is possible to evaluate in polynomial time. To prove that the representation is minimal with this property we need to provide a fast translation to for any other representation of the continuous functions on the unit interval that allows fast evaluation.
Theorem 2.14
Let be a representation of . If the operator
[TABLE]
*is hyper-linear-time computable with respect to , then there exists a hyper-linear-time translation from to . *
Proof
Assume the evaluation operator is computable in hyper-linear time. To build a machine that translates into proceed as follows: Given input of the form (i.e. input for a -name such that the first condition of Definition 2.12 applies) and a -name as oracle, execute a modified version of the source code of the evaluation operator on : Note that the evaluation operator expects to be handed a pair of a -name for the function and a name of a real number . Thus, whenever there is a leading 0 on the query tape and a query command is issued, the machine first removes the leading 0, and then queries the oracle. Whenever there is a leading 1 on the query tape, the oracle query command in the code of the evaluation are replaced with a code snippet that notes the maximum precision that was asked to the memory tape and then copies an appropriate initial segment of the encoding of the rational number to the oracle answer band. This produces an encoding of a dyadic number on the output tape. Finally the machine adds in front of the encoding, where is the highest precision that was required of the oracle for the real number and terminates.
This produces a valid output of a -name of on : The output is valid, as any has a name that returns the exact same initial segments of on queries less than . The run of the evaluation operator on this oracle is identical to the run simulated above. Thus the return value is a valid approximation to for each of these . I.e. .
To guarantee that the second condition from Definition 2.12 holds, recall that the evaluation operator being hyper-linear-time computable means that there is an integer polynomial and a natural number such that the run of the machine computing with oracle on input takes at most steps. Let the machine proceed on inputs that are not of the form as follows: For any of the strings of length it queries the oracle on and , where is the string where the first symbol after the first is replaced by a (and if there is no or the only one is the last symbol). It takes the maximum of the lengths of the oracle answers and returns the string consisting only of 1s and of length .
The above guarantees that the string function produced by the machine has length bigger than : Let be a string of length such that . Let be the last bits of where in the first occurrence of the second is replaced by 0. Then the machine described above carries out the previous paragraph on input . By the procedure described there it is guaranteed that the query is posed to the oracle and that the return value is longer than .
The final thing to verify is that the second condition of the Definition 2.12 of is fulfilled by the function produced by the above procedure: Let be the string function produced by the machine above. By the previous it is clear that . Since is a running time of the evaluation operator, which is simulated on an oracle of length and input , it is clear that the number produced in the second paragraph of the proof is smaller than and therefore also as . ■
It should be noted, that the failure of closure under composition of hyper-linear-time computable operators has consequences for the applicability of the theorem. For instance, one would expect that the existence of a fast translation to the representation should imply that there exists an algorithm for fast evaluation. To obtain an algorithm for evaluation one has to first translate to and then use the algorithm for evaluation over . As the class of hyper-liner time algorithms is not closed under composition, the algorithm obtained in this way need not run in hyper-linear time. It does run in polynomial time though.
2.2 Comparison to second-order representations
This chapter presents a hardness result for an operation with respect to the representation : It is impossible to compute a modulus of continuity of a function in polynomial time with respect to . This restriction is welcome as it seems to reflect the behavior of functions in iRRAM. It should be noted that this result does not use the stronger notion of being ‘fast’ that was previously used in this paper but really proves failure of polynomial-time computability.
Computing a modulus of continuity is an inherently multivalued operation. Recall that a multivalued mapping is an assignment of elements of to non-empty sets . The elements of are interpreted as the ‘acceptable return values’. Definition 1.3 of a realizer can straight-forwardly be extended to apply to multivalued mappings and thus it makes sense to talk about computability and complexity of multivalued mappings.
Theorem 2.15
The modulus function
[TABLE]
*is not polynomial-time computable with respect to . *
Proof
Towards a contradiction assume that there was a machine that computes a modulus of continuity in polynomial time. That is: There is a second-order polynomial such that the machine, when given a -name of a function and an input produces on the output tape within steps and the function is a modulus of continuity of . Consider the following name of the constant zero function:
[TABLE]
Obviously . The function is a polynomial and bounds the number of steps until the machine returns some value of . Choose some such that . Consider the run of the machine on input . Think of as the union of closed intervals of equal length . Since the neighborhood of a rational number can at most intersect three such intervals, and the machine can at most ask queries, at least one closed interval is such that no rational number in its neighborhood is queried. Let be the function that is zero everywhere but in , where it takes the value in the middle and then goes linearly to zero with slope . Note that any modulus of continuity of at is strictly larger than .
To change the name of the zero function to a name of without changing any of the values the machine looked at during the computation, first note that due to the choice of the interval each query the machine makes is either a query with a precision such that zero is a valid approximation to the value of or the name only returns information about the values on an interval disjoint from . Therefore, it is possible to change the values of at strings the machine does not query to obtain a string function that fulfills the first condition of being a name of . Where the values the machine has not asked for can be chosen to be the exact values of and the intervals can be chosen optimal.
Furthermore, there are at least strings of length that do not represent any pair of a natural number and a dyadic number, for instance the binary strings. Thus, for any there is at least one such string the machine does not query. To obtain a valid name of change the values of on the string to have length according to a modulus of continuity of .
As the machine behaves deterministically, and and coincide on the values that are asked in the run with oracle and input , the run of the machine on input with oracle is identical and returns . However, by construction, is not a value of any modulus of continuity of in . Therefore, no polynomial-time machine computing a modulus function exists. ■
Kawamura and Cook introduced a framework for complexity considerations in analysis. For a well-behaved second-order complexity theory they impose an additional condition on the names:
Definition 2.16** ([KC12])**
A string function is called length-monotone if for all strings and it holds that
[TABLE]
The set of all length-monotone string functions is denoted by .
The condition they impose is that any name in a representation is length-monotone. To distinguish their representations from the ones used in this paper we use their original terminology.
Definition 2.17** ([KC12])**
A representation is a second-order representation if its domain is contained in .
In this special case it is irrelevant whether time constraints are imposed on all of Baire-space or only for oracles from . This may be attributed to the existence of a polynomial-time computable retraction from the Baire space to [KS17] or verified directly. In particular, we may stick with the definition of polynomial-time computability used in the rest of this paper.
Definition 2.18** ([KC12])**
Define a second-order representation of as follows: A length-monotone string function is a name of a function if for string functions and that fulfill both of the following:
is a modulus of continuity of . 2. 2.
for any encoding of a dyadic number in and it holds that is an encoding of a dyadic number and
[TABLE]
A polynomial-time translation of to is readily written down. The modulus function as defined in Theorem 2.15 is obviously polynomial-time computable with respect to . With respect to the modulus function is not polynomial-time computable as proven in Theorem 2.15. Therefore, the representations and are not polynomial-time equivalent.
Corollary 2.19
* can not be translated to in polynomial time. *
Kawamura and Cook succeeded to prove the following:
Theorem 2.20** (Lemma 4.9 in [KC12])**
For a second-order representation of the following are equivalent
- •
The evaluation operator from example 1.5 is polynomial-time computable.
- •
* is polynomial-time translatable to .*
Since the hyper-linear-time computability implies polynomial-time computability this entails the following:
Corollary 2.21
* is not polynomial-time equivalent to any second-order representation. *
2.3 Composition
This final chapter presents a major flaw of the representation : It does not render the composition of functions polynomial-time computable. This makes it improbable that the representation is of value in applications. We believe that its study is of value nonetheless as its properties closely reflect well-known quirks of second-order complexity theory. It therefore outlines what can and cannot be done in real complexity theory when relying on second-order complexity theory. We like to believe that it provides evidence that one should either stick with the framework of Kawamura and Cook or go beyond the scope of second-order complexity theory.
As a preparation note that an easy counting argument proves the following:
Theorem 2.22
There does not exist any polynomial-time computable operator such that
[TABLE]
Proof
Assume was a machine that computes an operator with the above property in time bounded by some second-order polynomial . Consider the constant string function . The length of this function is the constant zero function, thus is a polynomial. Since is a running time of , the computation of takes at most many steps for any input string . Choose big enough such that . Note that there are strings of length . The number of oracle queries asks for at least one input of length is bounded by . Thus, there exists at least one string of length that is not queried during the computation of for any string of length less than . Let be the function such that and returns the empty string on all other values. The machine is deterministic and does not query . Therefore it returns the same values with oracles and and any input of length less or equal . It follows that
[TABLE]
This contradicts that the operator computed by has the desired property. ■
This is in contrast to the situation in classical complexity theory, where for any polynomial there exists a polynomial-time computable function such that for all input strings. The above proves that the straight forward translation of this statement to second-order complexity theory fails for the simplest second-order polynomials that are not hyper-linear. That the statement still holds true if the second-order polynomial is hyper-linear is what was made it possible to provide the minimality result for the representation from Theorem 2.14.
Also note that this theorem implies that there is no polynomial-time computable functional such that
[TABLE]
As such an operator would provide an operator as in the theorem by fixing to be the function . From this perspective it is not surprising that composition with respect to is not polynomial-time computable: Just like the failure of polynomial-time computability from Theorem 2.15 lifted that the length function is not polynomial-time computable, the above can be lifted to infeasibility of composition.
Let denote the set of all continuous functions whose image is contained in the unit interval. We consider this space a subspace of and equip it with the range restriction of the representation . The composition operator is defined as follows:
[TABLE]
where .
Theorem 2.23** (Composition)**
*The composition operator is not polynomial-time computable with respect to the representation . *
Proof
Towards a contradiction, assume that there exists a machine that runs in time bounded by a second-order polynomial and that when given a pair of -names of functions and computes a -name of .
Let be the following function:
[TABLE]
Since is polynomial-time computable, it has a name of polynomial length. Note that and , in particular has no modulus smaller than .
Consider the following name of the constant zero function :
[TABLE]
Obviously . The function is a polynomial and bounds the number of steps until the machine returns some value. Choose some such that .
Think of as the union of closed intervals of equal length . Since the neighborhood of a rational number can at most intersect three such intervals, and the machine can at most ask queries on each input of length , there is at least one interval such that no query is asked in the neighborhood of . Let be the function that is zero everywhere but in , where it takes the value in the middle and then goes linearly to zero with slope . The argument that there is a valid name of such that the machine cannot distinguish it from can be copied from the proof of Theorem 2.15.
Note that any modulus of continuity of at is strictly larger than and that the runs of the machine on input of length less than are identical when the oracle is replaced by . Thus, the machine may not take more than steps and can not produce a function whose length is a modulus of continuity of .
This is a contradiction and thus no machine that computes the composition operator in polynomial time exists. ■
3 Conclusion
The representation was invented in an attempt to model the behavior of iRRAM within the framework of second-order complexity theory. There is empirical evidence that within iRRAM function evaluation is fast but computing a modulus of continuity is slow. The representation reflects this: It renders evaluation polynomial-time computable but does not allow to extract a modulus of continuity in polynomial time. It is remarkable that it is possible to do this within the framework of second-order complexity theory as previous results seemed to indicate that this is not possible. These very results forced us to leave the familiar setting of the framework for operators in analysis provided by Kawamura and Cook.
However, the correspondence between and iRRAM is imperfect: The running time of the straight forward algorithm for computing a modulus of continuity in iRRAM is still way worse than that with respect to the representation : Due to the possibility to brute force the length function, there is a cut of in the running time for functions with fast growing moduli that does not have an analogue in iRRAM. It is improbable that this can be fully overcome as fast evaluation seems to necessitate the length to be comparable to a modulus of continuity. Furthermore, the representation has an undesirable property that is not reflected in the behavior of iRRAM: Composition of functions is not polynomial-time computable with respect to .
In the proof of the hyper-linear-time computability of the evaluation operator with respect to in Theorem 2.13 the precision in each try is increased by one. This may lead to many useless queries. One could instead use the precision that the name requires the input approximation to have as next precision. However, this may lead to unnecessary high precision. Both approaches lead to comparable worst case complexities. The later, however, seems to be empirically superior as it is the approach that iRRAM takes.
Definition 1.10 of hyper-linear time could be slightly relaxed: The construction in Theorem 2.14 still works if the constant depends polynomially on the logarithm of . If were allowed to depend on polynomially, the class would coincide with a class that some authors argue should be used to define polynomial-time computability anyway [Ret13]. However, with respect to the convention of time consumption of oracle machines used in this paper, this bigger class is still not closed under composition. Furthermore, the technique used in Theorem 2.14 to prove the minimality of does not generalize. We think that it is unlikely that the proof can be recovered and believe that an argument similar to the one from the proof of the failure of the polynomial-time computability of the length function in Theorem 2.22 can be used to prove this. We did not attempt to carry this thought out as the rest of the paper is not concerned with this notion of polynomial-time computability.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[FGH 14] Hugo Férée, Walid Gomaa, and Mathieu Hoyrup. Analytical properties of resource-bounded real functionals. J. Complexity , 30(5):647–671, 2014. doi:10.1016/j.jco.2014.02.008 . · doi ↗
- 2[FZ 15] Hugo Férée and Martin Ziegler. On the computational complexity of positive linear functionals on C[0;1], 2015. MACIS conference. URL: https://hugo.feree.fr/macis 2015.pdf .
- 3[Grz 55] A. Grzegorczyk. Computable functionals. Fund. Math. , 42:168–202, 1955.
- 4[Kaw 11] Akitoshi Kawamura. Computational Complexity in Analysis and Geometry . Ph D thesis, University of Toronto, 2011.
- 5[KC 96] B. M. Kapron and S. A. Cook. A new characterization of type- 2 2 2 feasibility. SIAM J. Comput. , 25(1):117–132, 1996. doi:10.1137/S 0097539794263452 . · doi ↗
- 6[KC 10] Akitoshi Kawamura and Stephen Cook. Complexity theory for operators in analysis. In STOC’10—Proceedings of the 2010 ACM International Symposium on Theory of Computing , pages 495–502. ACM, New York, 2010.
- 7[KC 12] Akitoshi Kawamura and Stephen Cook. Complexity theory for operators in analysis. ACM Trans. Comput. Theory , 4(2):5:1–5:24, May 2012. doi:10.1145/2189778.2189780 . · doi ↗
- 8[KMRZ 15] Akitoshi Kawamura, Norbert Müller, Carsten Rösnick, and Martin Ziegler. Computational benefit of smoothness: Parameterized bit-complexity of numerical operators on analytic functions and Gevrey’s hierarchy. J. Complexity , 31(5):689–714, 2015. doi:10.1016/j.jco.2015.05.001 . · doi ↗
