From Identity to Difference: A Quantitative Interpretation of the Identity Type

07/13/2021
by   Paolo Pistone, et al.
0

We explore a quantitative interpretation of 2-dimensional intuitionistic type theory (ITT) in which the identity type is interpreted as a "type of differences". We show that a fragment of ITT, that we call difference type theory (dTT), yields a general logical framework to talk about quantitative properties of programs like approximate equivalence and metric preservation. To demonstrate this fact, we show that dTT can be used to capture compositional reasoning in presence of errors, since any program can be associated with a "derivative" relating errors in input with errors in output. Moreover, after relating the semantics of dTT to the standard weak factorization systems semantics of ITT, we describe the interpretation of dTT in some quantitative models developed for approximate program transformations, incremental computing, program differentiation and differential privacy.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/27/2018

Towards a directed homotopy type theory

In this paper, we present a directed homotopy type theory for reasoning ...
research
10/07/2019

Stable factorization from a fibred algebraic weak factorization system

We present a construction of stable diagonal factorizations, used to def...
research
03/24/2022

Game semantics of universes

This work extends the present author's computational game semantics of M...
research
10/25/2020

Graded Modal Dependent Type Theory

Graded type theories are an emerging paradigm for augmenting the reasoni...
research
08/03/2023

Gradual Sensitivity Typing

Reasoning about the sensitivity of functions with respect to their input...
research
06/27/2022

Quantitative and Metric Rewriting: Abstract, Non-Expansive, and Graded Systems

We introduce a general theory of quantitative and metric rewriting syste...
research
06/30/2020

Sense, reference, and computation

In this paper, I revisit Frege's theory of sense and reference in the co...

Please sign up or login with your details

Forgot password? Click here to reset