Higher Lenses
Paolo Capriotti, Nils Anders Danielsson, Andrea Vezzosi
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Related papers
- Partial Univalence in n-truncated Type TheoryChristian Sattler, Andrea VezzosiLICS 2020 · 2 citations
- Coherence via Well-Foundedness: Taming Set-Quotients in Homotopy Type TheoryNicolai Kraus, Jakob von RaumerLICS 2020 · 8 citations
- Sequential Colimits in Homotopy Type TheoryKristina Sojakova, Floris van Doorn, Egbert RijkeLICS 2020 · 5 citations
- The Integers as a Higher Inductive TypeThorsten Altenkirch, Luis ScoccolaLICS 2020 · 11 citations
- A Higher Structure Identity PrincipleBenedikt Ahrens, Paige Randall North, Michael Shulman, Dimitris TsementzisLICS 2020 · 6 citations
