Differential Logical Relations, Part I: The Simply-Typed Case (Long Version)

04/27/2019
by   Ugo Dal Lago, et al.
0

We introduce a new form of logical relation which, in the spirit of metric relations, allows us to assign each pair of programs a quantity measuring their distance, rather than a boolean value standing for their being equivalent. The novelty of differential logical relations consists in measuring the distance between terms not (necessarily) by a numerical value, but by a mathematical object which somehow reflects the interactive complexity, i.e. the type, of the compared terms. We exemplify this concept in the simply-typed lambda-calculus, and show a form of soundness theorem. We also see how ordinary logical relations and metric relations can be seen as instances of differential logical relations. Finally, we show that differential logical relations can be organised in a cartesian closed category, contrarily to metric relations, which are well-known not to have such a structure, but only that of a monoidal closed category.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/06/2023

A Fibrational Tale of Operational Logical Relations: Pure, Effectful and Differential

Logical relations built on top of an operational semantics are one of th...
research
07/31/2023

Syntactically and semantically regular languages of lambda-terms coincide through logical relations

A fundamental theme in automata theory is regular languages of words and...
research
02/19/2020

On the Versatility of Open Logical Relations: Continuity, Automatic Differentiation, and a Containment Theorem

Logical relations are one of the most powerful techniques in the theory ...
research
08/23/2020

Gentzen-Mints-Zucker duality

The Curry-Howard correspondence is often described as relating proofs (i...
research
10/16/2020

Logical Relations as Types: Proof-Relevant Parametricity for Program Modules

The theory of program modules is of interest to language designers not o...
research
02/20/2002

The logical meaning of Expansion

The Expansion property considered by researchers in Social Choice is sho...
research
08/02/2017

A Novel Neural Network Model Specified for Representing Logical Relations

With computers to handle more and more complicated things in variable en...

Please sign up or login with your details

Forgot password? Click here to reset