Skip to main content
Springer Nature - PMC COVID-19 Collection logoLink to Springer Nature - PMC COVID-19 Collection
. 2020 Jun 24;12098:205–214. doi: 10.1007/978-3-030-51466-2_18

Quantitative Coding and Complexity Theory of Compact Metric Spaces

Donghyun Lim 5, Martin Ziegler 5,
Editors: Marcella Anselmo8, Gianluca Della Vedova9, Florin Manea10, Arno Pauly11
PMCID: PMC7309482

Abstract

Specifying a computational problem requires fixing encodings for input and output: encoding graphs as adjacency matrices, characters as integers, integers as bit strings, and vice versa. For such discrete data, the actual encoding is usually straightforward and/or complexity-theoretically inessential (up to polynomial time, say); but concerning continuous data, already real numbers naturally suggest various encodings with very different computational properties. With respect to qualitative computability, Kreitz and Weihrauch (1985) had identified admissibility as crucial property for “reasonable” encodings over the Cantor space of infinite binary sequences, so-called representations. For (precisely) these does the Kreitz-Weihrauch representation (aka Main) Theorem apply, characterizing continuity of functions in terms of continuous realizers. We similarly identify refined criteria for representations suitable for quantitative complexity investigations. Higher type complexity is captured by replacing Cantor’s as ground space with more general compact metric spaces, similar to equilogical spaces in computability.

Introduction

Machine models formalize computation: they specify means of input, operations, and output of elements from some fixed set Inline graphic; as well as measures of cost and of input/output ‘size’; such that Complexity Theory can investigate the dependence of the former on the latter. Problems over spaces X other than Inline graphic are treated by encoding its elements/instances over Inline graphic.

Example 1

  1. Recall the Turing machine model operating on the set Inline graphic of finite (e.g. decimal or binary) sequences, and consider the space X of graphs: encoded for example as adjacency matrices’ binary entries. Operations amount to local transformations of, and in local dependence of, the tape contents. Size here is an integer: n commonly denotes the number of nodes of the graph, or the binary length of the encoded matrix, both polynomially related to each other.

  2. Consider the space Inline graphic of natural numbers, either encoded in binary or in unary: their lengths are computably but not polynomially related, and induce computably equivalent but significantly different notions of computational complexity.

  3. Recall the type-2 machine model [Wei00, §2.1] operating on the Cantor space Inline graphic of infinite binary sequences; and the real unit interval Inline graphic, equipped with various so-called representations [Wei00, §4.1]: surjective partial mappings from Inline graphic onto X that formalize (sequences of) approximations up to any given absolute error bound Inline graphic, Inline graphic. Different representations of X may induce non-/equivalent notions of computability [Wei00, §4.2].

  4. Computational cost of a type-2 computation is commonly gauged in dependence of the index position n within the binary input/output sequence, that is, the length of the finite initial segment read/written so far [Wei00, §7.1]. For Inline graphic and for some of the representations, this notion of ‘size’ is polynomially (and for some even linearly) related to n occurring in the error bound Inline graphic [Wei00, §7.1]; for other computably equivalent representations it is not [Wei00, Examples 7.2.1+7.2.3].

  5. Recall the Turing machine model with ‘variable’ oracles [KC12, §3], operating on a certain subset Inline graphic of string functions
    graphic file with name M14.gif
    The ‘size’ of Inline graphic here is captured by an integer function Inline graphic [KC96]; and polynomial complexity means bounded by a second-order polynomial in Inline graphic and in Inline graphic [Meh76].
  6. Equip the space Inline graphic of continuous functions Inline graphic with the surjective partial mapping Inline graphic from [KC12, §4.3]. Then, up to a second-order polynomial, the ‘size’ Inline graphic from (e) is related to a modulus of continuity (cmp. Subsect. 3.1 below) of Inline graphic and to the computational complexity of the application operator Inline graphic [KS17, KS20, NS20].

  7. Spaces X of continuum cardinality beyond real numbers are also commonly encoded over Cantor space [Wei00, §3], or over ‘Baire’ space Inline graphic [KC12, §3]. Matthias Schröder has recommended the Hilbert Cube as domain for partial surjections onto suitable X. Also equilogical spaces serve as such domains [BBS04].

To summarize, computation on various spaces is commonly formalized by various models of computation (Turing machine, type-2 machine, oracle machine) using encodings over various domains (Cantor space, ‘Baire’ space, Hilbert Cube, etc.) with various notions of ‘size’ and of polynomial time.

Question 2

Fix two mathematical structures X and Y, expansions over topological spaces. What machine models, what encodings, what notions of size and polynomial time, are suitable to formalize computation of (multi)functions f from X to Y?

In the sequel we will focus on the part of the question concerned with encoding continuous data. Section 2 recalls classical criteria and notions: qualitative admissibility of computably ‘reasonable’ representations for the Kreitz-Weihrauch Main Theorem (Subsect. 2.1), and complexity parameters for a quantitative Main Theorem in the real case (Subsect. 2.2). Section 4 combines both towards generic quantitative admissibility and an intrinsic complexity-theoretic Main Theorem. The key is to consider metric properties of the inverse of a representation, which is inherently multivalued a ‘function’. To this end Sect. 3 adopts from [PZ13] a notion of quantitative (uniform) continuity multifunctions (Subsect. 3.1) and establishes important properties (Subsect. 3.2), including closure under a generalized conception of restriction. We close with applications to higher-type complexity.

Coding Theory of Continuous Data

Common models of computation naturally operate on some particular domain Inline graphic (e.g., in/finite binary sequences, string functions, etc.); processing data from another domain X (graphs, real numbers, continuous functions) requires agreeing on some way of encoding (the elements x of) X over Inline graphic.

Formally, a representation is a surjective partial mapping Inline graphic; any Inline graphic is called a name of Inline graphic; and for another representation Inline graphic of Y, computing a total function Inline graphic means to compute some Inline graphic-realizer: a transformation Inline graphic on names such that Inline graphic.

Some representations are computably ‘unsuitable’ [Tur37], including the binary expansion Inline graphic; cmp. [Wei00, Exercise 7.2.7]. Others are suitable for computability investigations [Wei00, Theorem 4.3.2], but not for complexity purposes [Wei00, Examples 7.2.1+7.2.3].

Example 3

The signed digit representation of [0; 1] is the partial map

graphic file with name 495900_1_En_18_Equ6_HTML.gif

Already for the case Inline graphic of real numbers, it thus takes particular care to arrive at a complexity-theoretically ‘reasonable’ representation [Wei00, Theorem 7.3.1]; and even more so for continuous real functions [KC12], not to mention for more involved spaces [Ste17].

Qualitative Admissibility and Computability

Regarding computability on a large class of topological spaces X, an important criterion for a representation is admissibility [KW85, Sch02]:

Definition 4

Call Inline graphic admissible  iff  it is (i) continuous and satisfies (ii):

(ii) To every continuous Inline graphic there exists a continuous mapping Inline graphic with Inline graphic; see [Wei00, Theorem 3.2.9.2].

Admissible representations exist (at least) for TInline graphic spaces; they are Cartesian closed; and yield the Kreitz-Weihrauch (aka Main) Theorem [Wei00, Theorem 3.2.11]:

Fact 5

Let Inline graphic and Inline graphic be admissible. Then Inline graphic is continuous iff it admits a continuous Inline graphic-realizer Inline graphic.

In particular discontinuous functions are incomputable.

Real Quantitative Admissibility

The search for quantitative versions of admissibility and the Main Theorem is guided by above notion of qualitative admissibility. It revolves around quantitative metric versions of qualitative topological properties, such as continuity and compactness, obtained via Skolemization. Further guidance comes from reviewing the real case.

Recall that a modulus of continuity of a function Inline graphic between compact metric spaces (Xd) and (Ye) is a strictly increasing mapping Inline graphic such that

graphic file with name M50.gif 1

In this case one says that f is Inline graphic-continuous. Actually we shall occasionally slightly weaken this notion and require Condition (1) only for all sufficiently large n.

Example 6

The signed digit representation Inline graphic from Example 3 has modulus of continuity Inline graphic.

Proposition 11d) below provides a converse. Together with Theorem 13 and Lemma 10 below, they yield the following quantitative strengthening of Fact 5 aka qualitative Main Theorem, where Inline graphic of refers to the asymptotic Landau symbol:

Theorem 7

Fix strictly increasing Inline graphic. A function Inline graphic has modulus of continuity Inline graphic  iff  it has a Inline graphic-realizer with modulus of continuity Inline graphic.

In particular functions f with (only) ‘large’ modulus of continuity are inherently ‘hard’ to compute; cmp. [Ko91, Theorem 2.19]. This suggests gauging the efficiency of some actual computation of f relative to it modulus of continuity, rather than absolutely [KC12, KS17, KS20, NS20]:

Definition 8

Function Inline graphic is polynomial-time computable  iff  it can be computed in time bounded by a (first or second order) polynomial in the output precision parameter n and in f’s modulus of continuity.

In the sequel we consider continuous total (multi)functions whose domains are compact: The latter condition ensures them to have a modulus of (uniform) continuity. Moreover computable functions with compact domains admit complexity bounds depending only on the output precision parameter n; cmp. [Ko91, Theorem 2.19] or [Wei00, Theorems 7.1.5+7.2.7] or [Sch03].

Multifunctions

Multifunctions are unavoidable in real computation [Luc77]. Their introduction simplifies several considerations; for example, every function Inline graphic has a (possibly multivalued) inverse Inline graphic.

Formally, a partial multivalued function (multifunction) F between sets XY is a relation Inline graphic that models a computational search problem: Given (any name of) Inline graphic, return some (name of some) Inline graphic with Inline graphic. One may identify the relation f with the single-valued total function Inline graphic from X to the powerset Inline graphic; but we prefer the notation Inline graphic to emphasize that not every Inline graphic needs to occur as output. Letting the answer y depend on the code of x means dropping the requirement for ordinary functions to be extensional; hence, in spite of the oxymoron, such F is also called a non-extensional function. Note that no output is feasible in case Inline graphic.

Definition 9

Abbreviate with Inline graphic for the domain of F; and Inline graphic. F is total in case Inline graphic; surjective in case Inline graphic. The composition of multifunctions Inline graphic and Inline graphic is Inline graphic

graphic file with name M79.gif

Call F pointwise compact if Inline graphic is compact for every Inline graphic.

Note that every (single-valued) function is pointwise compact. A computational problem, considered as total single-valued function Inline graphic, becomes ‘easier’ when restricting arguments to Inline graphic, that is, when proceeding to Inline graphic for some Inline graphic. A search problem, considered as total multifunction Inline graphic, additionally becomes ‘easier’ when proceeding to any Inline graphic satisfying the following: Inline graphic for every Inline graphic. We call such Inline graphic also a restriction of F, and write Inline graphic. A single-valued function Inline graphic is a selection of Inline graphic if F is a restriction of f.

Lemma 10

Fix partial multifunctions Inline graphic and Inline graphic.

  1. If both F and G are pointwise compact, then so is their composition Inline graphic.

  2. The composition of restrictions Inline graphic and Inline graphic, is again a restriction Inline graphic.

  3. It holds Inline graphic. Single-valued surjective partial Inline graphic furthermore satisfy Inline graphic.

  4. For representations Inline graphic of X and Inline graphic of Y, the following are equivalent: (i) Inline graphic is a restriction of Inline graphic (ii) f is a restriction of Inline graphic (iii) Inline graphic is a restriction of F.

Quantitative Continuity for Multifunctions

Every restriction Inline graphic of a single-valued continuous function f is again continuous. This is not true for multifunctions with respect to hemicontinuity. Instead Definition 12 below adapts, and quantitatively refines, a notion of continuity for multifunctions from [PZ13] such as to satisfy the following properties:

Proposition 11

  1. A single-valued function is Inline graphic-continuous iff it is Inline graphic-continuous when considered as a multifunction.

  2. Suppose that Inline graphic is Inline graphic-continuous. Then every restriction Inline graphic is again Inline graphic-continuous.

  3. If additionally Inline graphic is Inline graphic-continuous, then Inline graphic is Inline graphic-continuous

  4. The multivalued inverse of the signed digit representation Inline graphic is Inline graphic-continuous.

  5. For every Inline graphic, the soft Heaviside ‘function’ Inline graphic is Inline graphic-continuous, but not for Inline graphic:
    graphic file with name M126.gif

Our notion of quantitative (uniform) continuity is inspired by [BH94] and [PZ13, §4+§6]:

Definition 12

Fix metric spaces (Xd) and (Ye) and strictly increasing Inline graphic. A total multifunction Inline graphic is called Inline graphic-continuous if there exists some Inline graphic, and to every Inline graphic there exists some Inline graphic, such that the following holds for every Inline graphic:

graphic file with name 495900_1_En_18_Equ7_HTML.gif

The parameter Inline graphic is introduced for the purpose of Proposition 11d+e). Recall that also in the single-valued case we sometimes understand Eq. (1) to hold only for all Inline graphic.

A continuous multifunction on Cantor space, unlike one for example on the reals [PZ13, Fig. 5], does admit a continuous selection, and even a bound on the modulus:

Theorem 13

Suppose (Ye) is compact of diameter Inline graphic and satisfies the strong triangle inequality

graphic file with name M137.gif 2

If Inline graphic is Inline graphic-continuous and pointwise compact with compact domain Inline graphic, then G admits a Inline graphic-continuous selection.

Generic Quantitative Main Theorem

Generalizing both Fact 5 and Theorem 7, Lemma 10 and Proposition 11 and Theorem 13 together in fact yields the following quantitative counterpart to the qualitative Main Theorem for generic compact metric spaces:

Theorem 14

Fix compact metric spaces (Xd) and (Ye) of Inline graphic. Consider representations Inline graphic and Inline graphic.

Let Inline graphic be strictly increasing such that Inline graphic is Inline graphic-continuous with compact domain and Inline graphic-continuous multivalued inverse Inline graphic; Inline graphic is Inline graphic-continuous with compact domain and Inline graphic-continuous multivalued inverse Inline graphic.

  1. If total multifunction Inline graphic has a K-continuous Inline graphic-realizer G, then g is Inline graphic-continuous.

  2. If total multifunction Inline graphic is Inline graphic-continuous and pointwise compact, then it has a Inline graphic-continuous Inline graphic-realizer G.

Following up on Definition 8, this suggests gauging the efficiency of some actual computation of g relative to both it modulus of continuity and moduli of continuity of the representations (and their multivalued inverses) involved.

Generic Quantitative Admissibility

According to Theorem 14, quantitative continuity of a (multi)function g is connected to that of a (single-valued) realizer G, subject to properties of the representations Inline graphic under consideration.

A ‘true’ quantitative Main Theorem should replace these extrinsic parameters with ones intrinsic to the co/domains XY: by imposing suitable conditions on the representations as quantitative variant of qualitative admissibility [Lim19].

Definition 15

The entropy of a compact metric space (Xd) is the mapping Inline graphic such that X can be covered by Inline graphic closed balls Inline graphic of radius Inline graphic, but not by Inline graphic.

Introduced by Kolmogorov [KT59], Inline graphic thus quantitatively captures total boundedness [Koh08, Definition 18.52]. Its connections to computational complexity are well-known [Wei03, KSZ16].

Example 16

  1. The d-dimensional real unit cube Inline graphic has linear entropy Inline graphic. Cantor space Inline graphic, equipped with the metric Inline graphic, has linear entropy Inline graphic.

  2. The space Inline graphic of non-expansive (aka 1-Lipschitz) functions Inline graphic is compact when equipped with the supremum norm and has entropy Inline graphic.

  3. More generally fix a connected compact metric space (Xd) of diameter Inline graphic with entropy Inline graphic. Then the space Inline graphic of non-expansive functionals Inline graphic is compact when equipped with the supremum norm and has entropy Inline graphic.

Items (b) and (c) are relevant for higher-type complexity theory.

Since computational efficiency is connected to quantitative continuity (Subsect. 2.2), in Theorem 14 one prefers Inline graphic and Inline graphic with ‘small’ moduli; similarly for Inline graphic and Inline graphic. A simple but important constraint has been identified in [Ste16, Lemma 3.1.13]—originally for single-valued functions, but its proof immediately extends to multifunctions.

Lemma 17

If surjective (multi)function Inline graphic is Inline graphic-continuous, then it holds Inline graphic (for all sufficiently large n).

This suggests the following tentative definition:

Definition 18

Fix some compact metric space Inline graphic, and recall Example 1g).

  1. A representation of compact metric space (Xd) is a continuous partial surjective (single-valued) mapping Inline graphic.

  2. Fix another compact metric space Inline graphic and representation Inline graphic. A Inline graphic-realizer of a total (multi)function Inline graphic is a (single-valued) function Inline graphic satisfying any/all conditions of Lemma 10d).

  3. Representation Inline graphic is polynomially admissible if (i) It has a modulus of continuity Inline graphic such that Inline graphic is bounded by a (first or second order) polynomial in the precision parameter n and in the entropy Inline graphic of X. (ii) Its multivalued inverse Inline graphic has polynomial modulus of continuity Inline graphic.

  4. Call total (multi)function Inline graphic polynomial-time computable  iff  it can be computed in time bounded by a (first or second order) polynomial in the output precision parameter n and in the entropy Inline graphic of X.

In view of Lemma 10c+d) we deliberately consider only single-valued representations [Wei05]. Item d) includes Definition 8 as well as higher types, such as Example 16b) and c). Note that Item (c i) indeed quantitatively strengthens Definition 4i). And Item (c ii) quantitatively strengthens Definition 4ii): For Inline graphic-continuous Inline graphic, Theorem 13 yields a Inline graphic-continuous selection G of Inline graphic, that is, with Inline graphic according to Lemma 10.

Footnotes

Supported by the National Research Foundation of Korea (grant NRF-2017R1E1A1A03071032) and the International Research & Development Program of the Korean Ministry of Science and ICT (grant NRF-2016K1A3A7A03950702). This extended abstract builds on preprints arXiv:2002.04005 and arXiv:1809.08695 and on discussions with Akitoshi Kawamura, Sewon Park, Matthias Schröder, and Florian Steinberg. We thank the organizers for the opportunity of this invited contribution.

Contributor Information

Marcella Anselmo, Email: manselmo@unisa.it.

Gianluca Della Vedova, Email: gianluca.dellavedova@unimib.it.

Florin Manea, Email: flmanea@gmail.com.

Arno Pauly, Email: arno.m.pauly@gmail.com.

Martin Ziegler, Email: ziegler@kaist.ac.kr.

References

  • [BBS04].Bauer A, Birkedal L, Scott DS. Equilogical spaces. Theoret. Comput. Sci. 2004;315:35–59. doi: 10.1016/j.tcs.2003.11.012. [DOI] [Google Scholar]
  • [BH94].Brattka, V., Hertling, P.: Continuity and computability of relations (1994)
  • [KC96].Kapron BM, Cook SA. A new characterization of type-2 feasibility. SIAM J. Comput. 1996;25(1):117–132. doi: 10.1137/S0097539794263452. [DOI] [Google Scholar]
  • [KC12].Kawamura A, Cook S. Complexity theory for operators in analysis. ACM Trans. Comput. Theory. 2012;4(2):1–24. doi: 10.1145/2189778.2189780. [DOI] [Google Scholar]
  • [Ko91].Ko, K.-I.: Complexity Theory of Real Functions. Progress in Theoretical Computer Science. Birkhäuser, Boston (1991)
  • [Koh08].Kohlenbach U. Applied Proof Theory. Heidelberg: Springer; 2008. [Google Scholar]
  • [KS17].Kawamura, A., Steinberg, F.: Polynomial running times for polynomial-time oracle machines. In: 2nd International Conference on Formal Structures for Computation and Deduction, FSCD 2017, 3–9 September, 2017, Oxford, UK, pp. 23:1–23:18 (2017)
  • [KS20].Kapron BM, Steinberg F. Type-two polynomial-time and restricted lookahead. Theor. Comput. Sci. 2020;813:1–19. doi: 10.1016/j.tcs.2019.07.003. [DOI] [Google Scholar]
  • [KSZ16].Kawamura, A., Steinberg, F., Ziegler, M.: Complexity theory of (functions on) compact metric spaces. In: Proceedings of the 31st Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2016, New York, NY, USA, July 5–8 2016, pp. 837–846 (2016)
  • [KT59].Kolmogorov AN, Tikhomirov VM. Inline graphic-entropy and Inline graphic-capacity of sets infunctional spaces. Uspekhi Mat. Nauk. 1959;14(2):3–86. [Google Scholar]
  • [KW85].Kreitz C, Weihrauch K. Theory of representations. Theoret. Comput. Sci. 1985;38:35–53. doi: 10.1016/0304-3975(85)90208-7. [DOI] [Google Scholar]
  • [Lim19].Lim, D.: Representations of totally bounded metric spaces and their computational complexity. Master’s thesis, KAIST, School of Computing, August 2019
  • [Luc77].Luckhardt H. A fundamental effect in computations on real numbers. Theoret. Comput. Sci. 1977;5(3):321–324. doi: 10.1016/0304-3975(77)90048-2. [DOI] [Google Scholar]
  • [Meh76].Mehlhorn K. Polynomial and abstract subrecursive classes. J. Comput. Syst. Sci. 1976;12(2):147–178. doi: 10.1016/S0022-0000(76)80035-9. [DOI] [Google Scholar]
  • [NS20].Neumann E, Steinberg F. Parametrised second-order complexity theory with applications to the study of interval computation. Theoret. Comput. Sci. 2020;806:281–304. doi: 10.1016/j.tcs.2019.05.009. [DOI] [Google Scholar]
  • [PZ13].Pauly A, Ziegler M. Relative computability and uniform continuity of relations. J. Logic Anal. 2013;5(7):1–39. [Google Scholar]
  • [Sch02].Schröder M. Effectivity in spaces with admissible multi representations. Math. Logic Q. 2002;48(Suppl 1):78–90. doi: 10.1002/1521-3870(200210)48:1+<78::AID-MALQ78>3.0.CO;2-K. [DOI] [Google Scholar]
  • [Sch03].Schröder, M.: Spaces allowing type-2 complexity theory revisited. In: Brattka, V., Schröder, M., Weihrauch, K., Zhong, N. (eds.) Computability and Complexity in Analysis, Informatik Berichte, FernUniversität in Hagen, August 2003. International Conference, CCA 2003, Cincinnati, USA, 28–30 August 2003, vol. 302, pp. 345–361 (2003)
  • [Ste16].Steinberg, F.: Computational complexity theory for advanced function spaces in analysis. Ph.D. thesis, TU Darmstadt, Darmstadt (2016). http://tuprints.ulb.tu-darmstadt.de/6096/
  • [Ste17].Steinberg, F.: Complexity theory for spaces of integrable functions. Log. Methods Comput. Sci. 13(3) (2017)
  • [Tur37].Turing AM. On computable numbers, with an application to the “Entscheidungsproblem". Proc. Lond. Math. Soc. 1937;42(2):230–265. doi: 10.1112/plms/s2-42.1.230. [DOI] [Google Scholar]
  • [Wei00].Weihrauch K. Computable Analysis. Berlin: Springer; 2000. [Google Scholar]
  • [Wei03].Weihrauch K. Computational complexity on computable metric spaces. Math. Logic Q. 2003;49(1):3–21. doi: 10.1002/malq.200310001. [DOI] [Google Scholar]
  • [Wei05].Weihrauch, K.: Multi-functions on multi-represented sets are closed under flowchart programming. In: Grubba, T., Hertling, P., Tsuiki, H., Weihrauch, K. (eds.) Computability and Complexity in Analysis, Informatik Berichte, Fern Universität in Hagen, July 2005. Proceedings, Second International Conference, CCA 2005, Kyoto, Japan, 25–29 August 2005, vol. 326, pp. 267–300 (2005)

Articles from Beyond the Horizon of Computability are provided here courtesy of Nature Publishing Group

RESOURCES