Transport via Partial Galois Connections and Equivalences

03/09/2023
by   Kevin Kappelmann, et al.
0

Multiple types can represent the same concept. For example, lists and trees can both represent sets. Unfortunately, this easily leads to incomplete libraries: some set-operations may only be available on lists, others only on trees. Similarly, subtypes and quotients are commonly used to construct new type abstractions in formal verification. In such cases, one often wishes to reuse operations on the representation type for the new type abstraction, but to no avail: the types are not the same. To address these problems, we present a new framework that transports programs via equivalences. Existing transport frameworks are either designed for dependently typed, constructive proof assistants, use univalence, or are restricted to partial quotient types. Our framework (1) is designed for simple type theory, (2) generalises previous approaches working on partial quotient types, and (3) is based on standard mathematical concepts, particularly Galois connections and equivalences. We introduce the notion of partial Galois connections and equivalences and prove their closure properties under (dependent) function relators, (co)datatypes, and compositions. We formalised the framework in Isabelle/HOL and provide a prototype.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/16/2023

A topological counterpart of well-founded trees in dependent type theory

Within dependent type theory, we provide a topological counterpart of we...
research
04/18/2021

Dependent Type Theory as Related to the Bourbaki Notions of Structure and Isomorphism

This paper develops a version of dependent type theory in which isomorph...
research
02/02/2022

Extracting efficient exact real number computation from proofs in constructive type theory

Exact real computation is an alternative to floating-point arithmetic wh...
research
10/18/2017

Typesafe Abstractions for Tensor Operations

We propose a typesafe abstraction to tensors (i.e. multidimensional arra...
research
09/11/2019

The Marriage of Univalence and Parametricity

Reasoning modulo equivalences is natural for everyone, including mathema...
research
12/23/2017

Data

In this article, the data notion is mathematically conceptualized as typ...

Please sign up or login with your details

Forgot password? Click here to reset