Infinite data types can be fully searched using topology ideas

Compact totally separated types

Logic in Computer Science

Summary

The paper shows that some infinite types, or collections of data, can be completely searched in a finite amount of time using a concept called compactness from topology. The authors connect these compact types with ordinal numbers to describe their complexity. They also explore how different systems of ordinals relate to these types and their properties, including limitations in constructively combining certain desirable features. This work extends earlier research into more advanced type theories and is implemented in a programming language called Agda.

What this means in practice

  • For programming language designers: Design type systems that guarantee exhaustive searchability over infinite data types guided by topological compactness properties.
  • For formal methods engineers: Improve verification tools by representing complex ordinals and compact types to automate reasoning in constructive type theories.

A theory result. No direct application yet.

Authors

Martín Hötzel Escardó

Abstract

Perhaps surprisingly, there are infinite types that can be exhaustively searched mechanically in finite time. We use ideas from topology to build plenty of them, referring to searchable types as compact types, and we use ordinals to measure their logical complexity. We consider two systems of ordinal notations under which a single notation denotes both a discrete ordinal and a compact one, with an embedding of the former into the latter whose image has empty complement. A boolean valued function decides which points in the image of the embedding are isolated and which are topological limit points. The first system consists of the traditional Brouwer codes and the second is an inductive-recursive universe generalizing them. The discrete ordinals so obtained are trichotomous, and the compact ones have the least element property for complemented subsets, but these two desirable properties cannot be fulfilled simultaneously in a constructive setting. The ordinals obtained from Brouwer codes further enjoy a boolean Leibniz principle, which has the notion of total separatedness as its topological counterpart. This extends previous work from Gödel's system T to intensional Martin-Löf type theory with univalent universes, and is formalized in Agda in the TypeTopology repository.