Higher Lenses
Paper i proceeding, 2021

We show that total, very well-behaved lenses are not very well-behaved when treated proof-relevantly in the setting of homotopy type theory/univalent foundations. In their place we propose something more well-behaved: higher lenses. Such a lens contains an equivalence between the lens's source type and the product of its view type and a remainder type, plus a function from the remainder type to the propositional truncation of the view type. It can equivalently be formulated as a getter function and a proof that its family of fibres is coherently constant, i.e. factors through propositional truncation.We explore the properties of higher lenses. For instance, we prove that higher lenses are equivalent to traditional ones for types that satisfy the principle of uniqueness of identity proofs. We also prove that higher lenses are n-truncated for n-truncated types, using a coinductive characterisation of coherently constant functions.

Homotopy types

Constant functions

Source types

Functions

Computer circuits

Författare

Paolo Capriotti

Technische Universität Darmstadt

Nils Anders Danielsson

Göteborgs universitet

Logik och Typer

Andrea Vezzosi

IT-Universitetet i Kobenhavn

Proceedings - Symposium on Logic in Computer Science

10436871 (ISSN)

Vol. 2021-June 9470613
9781665448956 (ISBN)

36th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2021
Virtual, Online, Italy,

Ämneskategorier (SSIF 2025)

Datavetenskap (datalogi)

DOI

10.1109/LICS52264.2021.9470613

Mer information

Senast uppdaterat

2025-11-27