Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Internalizing Representation Independence with Univalence
Stockholm University, Faculty of Science, Department of Mathematics.ORCID iD: 0000-0001-9558-6080
Stockholm University, Faculty of Science, Department of Mathematics.
Number of Authors: 42021 (English)In: Proceedings of the ACM on Programming Languages, E-ISSN 2475-1421, Vol. 5, no POPL, article id 12Article in journal (Refereed) Published
Abstract [en]

In their usual form, representation independence metatheorems provide an external guarantee that two implementations of an abstract interface are interchangeable when they are related by an operation-preserving correspondence. If our programming language is dependently-typed, however, we would like to appeal to such invariance results within the language itself, in order to obtain correctness theorems for complex implementations by transferring them from simpler, related implementations. Recent work in proof assistants has shown that Voevodsky's univalence principle allows transferring theorems between isomorphic types, but many instances of representation independence in programming involve non-isomorphic representations.

In this paper, we develop techniques for establishing internal relational representation independence results in dependent type theory, by using higher inductive types to simultaneously quotient two related implementation types by a heterogeneous correspondence between them. The correspondence becomes an isomorphism between the quotiented types, thereby allowing us to obtain an equality of implementations by univalence. We illustrate our techniques by considering applications to matrices, queues, and finite multisets. Our results are all formalized in Cubical Agda, a recent extension of Agda which supports univalence and higher inductive types in a computationally well-behaved way.

Place, publisher, year, edition, pages
2021. Vol. 5, no POPL, article id 12
Keywords [en]
Representation Independence, Univalence, Higher Inductive Types, Proof Assistants, Cubical Type Theory
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:su:diva-196801DOI: 10.1145/3434293ISI: 000679806100012OAI: oai:DiVA.org:su-196801DiVA, id: diva2:1597562
Conference
48th ACM SIGPLAN Symposium on Principles of Programming Languages (POPL 2021), online, January 17-22, 2021
Available from: 2021-09-27 Created: 2021-09-27 Last updated: 2024-07-05Bibliographically approved
In thesis
1. Formalizing Univalent Set-Level Structures in Cubical Agda
Open this publication in new window or tab >>Formalizing Univalent Set-Level Structures in Cubical Agda
2022 (English)Licentiate thesis, comprehensive summary (Other academic)
Abstract [en]

This licentiate thesis consists of two papers on formalization projects using Cubical Agda, a rather new extension of the Agda proof assistant with constructive support for univalence and higher inductive types. The common denominator of the two papers is that they are concerned with structures on types that are sets in the sense of Homotopy Type Theory or Univalent Foundations (HoTT/UF). Univalence gives rise to the so-called structure identity principle (SIP) that plays a prominent role in both papers. This thesis can thus be seen as an investigation into working with “set-level structures” in HoTT/UF.

The first paper explains the basics of the SIP implemented in Cubical Agda’s library and is concerned with its application in computer science. In particular, the paper shows how the SIP, when applied to common data structures, can guarantee representation independence internally for certain implementations. These implementations have to be isomorphic in the sense of the SIP. The paper also generalizes the SIP to a relational version that can account for wider classes of implementations.

The second paper is concerned with the formalization of affine schemes, a central notion of algebraic geometry. It combines a constructive and point-free approach to schemes with univalence. Schemes have been formalized in several proof assistants by now, but standard textbook presentations often gloss over certain details that in a formalization become very cumbersome to prove. The main result of this paper is that with the help of univalence, or rather the SIP for commutative rings and algebras over a commutative ring, we can directly formalize affine schemes in a way that more closely resembles the standard textbook approach.

Place, publisher, year, edition, pages
Department of Mathematics, 2022. p. 86
National Category
Computer Sciences Algebra and Logic
Identifiers
urn:nbn:se:su:diva-213221 (URN)978-91-8014-337-0 (ISBN)
Presentation
2023-01-19, Cramér Room, Department of Mathematics,  campus Albano, house 1, floor 3, Stockholm, 13:00 (English)
Opponent
Supervisors
Available from: 2023-01-18 Created: 2022-12-26 Last updated: 2023-01-27Bibliographically approved
2. Univalent Constructive Algebraic Geometry: Foundations and Formalizations
Open this publication in new window or tab >>Univalent Constructive Algebraic Geometry: Foundations and Formalizations
2024 (English)Doctoral thesis, comprehensive summary (Other academic)
Abstract [en]

This thesis contains four papers concerned with Homotopy Type Theory and Univalent Foundations (HoTT/UF) and its use as a foundation to study constructive approaches to the theory of schemes, a fundamental notion in algebraic geometry. The main results of this project are presented in the first paper. The other three papers present formalizations of several of these results in Cubical Agda, an extension of the Agda proof assistant with constructive support for univalent foundations. The individual contributions of the papers are as follows.

The first paper, "Univalent Foundations of Constructive Algebraic Geometry", investigates two constructive approaches to defining quasi-compact and quasi-separated schemes (qcqs-schemes) in HoTT/UF, namely qcqs-schemes as locally ringed lattices and as functors from rings to sets. The main result is a constructive and univalent proof that the two definitions coincide, giving an equivalence between the respective categories of qcqs-schemes.

The second paper, "Internalizing Representation Independence with Univalence", discusses an implementation of the so-called structure identity principle (SIP), an important consequence of univalence employed in the other papers, in Cubical Agda and studies its applications in computer science. It is shown that the SIP guarantees representation independence internally for isomorphic implementations of common data structures. The SIP is then generalized to a relational version that can account for wider classes of implementations.

The third paper, "A Univalent Formalization of Constructive Affine Schemes", presents a formalization of affine schemes as ringed lattices in Cubical Agda. Standard textbook presentations of the structure sheaf of an affine scheme often gloss over certain details that turn out to be a serious obstacle when formalizing this construction. The main result of this paper is that with the help of univalence, or rather the SIP for rings and algebras, one can formalize affine schemes in a way that resembles the standard textbook approach more closely than previous formalizations of (affine) schemes in other proof assistants.

The fourth paper, "The Functor of Points Approach to Schemes in Cubical Agda", presents a formalization of qcqs-schemes in Cubical Agda, using Grothendieck's functor of points approach. This is the first formalization following this alternative approach and the first constructive formalization that manages to get beyond affine schemes. The main result is a streamlined definition of functorial qcqs-schemes allowing for a fully formal and constructive proof that compact open subfunctors of affine schemes are qcqs-schemes.

Place, publisher, year, edition, pages
Stockholm: Department of Mathematics, Stockholm University, 2024. p. 25
Keywords
Homotopy Type Theory and Univalent Foundations, Agda, Cubical Agda, Constructive Mathematics, Schemes, Algebraic Geometry
National Category
Algebra and Logic Computer Sciences
Research subject
Computational Mathematics
Identifiers
urn:nbn:se:su:diva-231878 (URN)978-91-8014-863-4 (ISBN)978-91-8014-864-1 (ISBN)
Public defence
2024-10-04, lärosal 5, hus 1, Albano, Albanovägen 28, Stockholm, 13:00 (English)
Opponent
Supervisors
Available from: 2024-09-11 Created: 2024-07-05 Last updated: 2024-08-15Bibliographically approved

Open Access in DiVA

No full text in DiVA

Other links

Publisher's full text

Authority records

Angiuli, CarloMörtberg, AndersZeuner, Max

Search in DiVA

By author/editor
Angiuli, CarloMörtberg, AndersZeuner, Max
By organisation
Department of Mathematics
In the same journal
Proceedings of the ACM on Programming Languages
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar

doi
urn-nbn

Altmetric score

doi
urn-nbn
Total: 154 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf