Skip to main content

Showing 1–14 of 14 results for author: Gavazzo, F

  1. arXiv:2401.12744  [pdf, ps, other

    cs.PL cs.LO

    Monadic Intersection Types, Relationally (Extended Version)

    Authors: Francesco Gavazzo, Riccardo Treglia, Gabriele Vanoni

    Abstract: We extend intersection types to a computational $λ$-calculus with algebraic operations à la Plotkin and Power. We achieve this by considering monadic intersections, whereby computational effects appear not only in the operational semantics, but also in the type system. Since in the effectful setting termination is not anymore the only property of interest, we want to analyze the interactive behavi… ▽ More

    Submitted 23 January, 2024; originally announced January 2024.

  2. arXiv:2305.01772  [pdf, ps, other

    cs.LO

    Allegories of Symbolic Manipulations

    Authors: Francesco Gavazzo

    Abstract: Moving from the mathematical theory of (abstract) syntax, we develop a general relational theory of symbolic manipulation parametric with respect to, and accounting for, general notions of syntax. We model syntax relying on categorical notions, such as free algebras and monads, and show that a general theory of symbolic manipulation in the style of rewriting systems can be obtained by extending su… ▽ More

    Submitted 2 May, 2023; originally announced May 2023.

    ACM Class: F.3.2

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

    Authors: Francesco Dagnino, Francesco Gavazzo

    Abstract: Logical relations built on top of an operational semantics are one of the most successful proof methods in programming language semantics. In recent years, more and more expressive notions of operationally-based logical relations have been designed and applied to specific families of languages. However, a unifying abstract framework for operationally-based logical relations is still missing. We sh… ▽ More

    Submitted 3 April, 2024; v1 submitted 6 March, 2023; originally announced March 2023.

    Journal ref: Logical Methods in Computer Science, Volume 20, Issue 2 (April 4, 2024) lmcs:11041

  4. arXiv:2211.06671  [pdf, other

    cs.LO

    Open Higher-Order Logic (Long Version)

    Authors: Ugo Dal Lago, Francesco Gavazzo, Alexis Ghyselen

    Abstract: We introduce a variation on Barthe et al.'s higher-order logic in which formulas are interpreted as predicates over open rather than closed objects. This way, concepts which have an intrinsically functional nature, like continuity, differentiability, or monotonicity, can be expressed and reasoned about in a very natural way, following the structure of the underlying program. We give open higher-or… ▽ More

    Submitted 19 November, 2022; v1 submitted 12 November, 2022; originally announced November 2022.

  5. arXiv:2207.10590  [pdf, other

    cs.LO cs.PL

    On Feller Continuity and Full Abstraction (Long Version)

    Authors: Gilles Barthe, Raphaëlle Crubillé, Ugo Dal Lago, Francesco Gavazzo

    Abstract: We study the nature of applicative bisimilarity in $λ$-calculi endowed with operators for sampling from continuous distributions. On the one hand, we show that bisimilarity, logical equivalence, and testing equivalence all coincide with contextual equivalence when real numbers can be manipulated only through continuous functions. The key ingredient towards this result is a novel notion of Feller-c… ▽ More

    Submitted 21 July, 2022; originally announced July 2022.

  6. arXiv:2206.13610  [pdf, ps, other

    cs.LO

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

    Authors: Francesco Gavazzo, Cecilia Di Florio

    Abstract: We introduce a general theory of quantitative and metric rewriting systems, namely systems with a rewriting relation enriched over quantales modelling abstract quantities. We develop theories of abstract and term-based systems, refining cornerstone results of rewriting theory (such as Newman's Lemma, Church-Rosser Theorem, and critical pair-like lemmas) to a metric and quantitative setting. To avo… ▽ More

    Submitted 27 June, 2022; originally announced June 2022.

  7. arXiv:2203.15426  [pdf, ps, other

    cs.PL cs.LG cs.LO

    On Reinforcement Learning, Effect Handlers, and the State Monad

    Authors: Ugo Dal Lago, Francesco Gavazzo, Alexis Ghyselen

    Abstract: We study the algebraic effects and handlers as a way to support decision-making abstractions in functional programs, whereas a user can ask a learning algorithm to resolve choices without implementing the underlying selection mechanism, and give a feedback by way of rewards. Differently from some recently proposed approach to the problem based on the selection monad [Abadi and Plotkin, LICS 2021],… ▽ More

    Submitted 29 March, 2022; originally announced March 2022.

  8. arXiv:2106.12849  [pdf, ps, other

    cs.PL cs.LO

    Resource Transition Systems and Full Abstraction for Linear Higher-Order Effectful Systems

    Authors: Ugo Dal Lago, Francesco Gavazzo

    Abstract: We investigate program equivalence for linear higher-order(sequential) languages endowed with primitives for computational effects. More specifically, we study operationally-based notions of program equivalence for a linear $λ$-calculus with explicit copying and algebraic effects \emph{à la} Plotkin and Power. Such a calculus makes explicit the interaction between copying and linearity, which are… ▽ More

    Submitted 24 June, 2021; originally announced June 2021.

  9. arXiv:2103.03871  [pdf, ps, other

    cs.LO

    Modal Reasoning = Metric Reasoning, via Lawvere

    Authors: Ugo Dal Lago, Francesco Gavazzo

    Abstract: Graded modal types systems and coeffects are becoming a standard formalism to deal with context-dependent computations where code usage plays a central role. The theory of program equivalence for modal and coeffectful languages, however, is considerably underdeveloped if compared to the denotational and operational semantics of such languages. This raises the question of how much of the theory of… ▽ More

    Submitted 5 March, 2021; originally announced March 2021.

    ACM Class: D.3.1

  10. arXiv:2002.08489  [pdf, ps, other

    cs.PL

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

    Authors: Gilles Barthe, Raphaëlle Crubillé, Ugo Dal Lago, Francesco Gavazzo

    Abstract: Logical relations are one of the most powerful techniques in the theory of programming languages, and have been used extensively for proving properties of a variety of higher-order calculi. However, there are properties that cannot be immediately proved by means of logical relations, for instance program continuity and differentiability in higher-order languages extended with real-valued functions… ▽ More

    Submitted 19 February, 2020; originally announced February 2020.

  11. arXiv:2001.01337  [pdf, ps, other

    cs.PL cs.LO

    A Diagrammatic Calculus for Algebraic Effects

    Authors: Ugo Dal Lago, Francesco Gavazzo

    Abstract: We introduce a new diagrammatic notation for representing the result of (algebraic) effectful computations. Our notation explicitly separates the effects produced during a computation from the possible values returned, this way simplifying the extension of definitions and results on pure computations to an effectful setting. Additionally, we show a number of algebraic and order-theoretic laws on d… ▽ More

    Submitted 7 January, 2020; v1 submitted 5 January, 2020; originally announced January 2020.

  12. arXiv:1904.12137  [pdf, other

    cs.LO cs.PL

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

    Authors: Ugo Dal Lago, Francesco Gavazzo, Akira Yoshimizu

    Abstract: 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… ▽ More

    Submitted 27 April, 2019; originally announced April 2019.

  13. arXiv:1801.09072  [pdf, ps, other

    cs.LO

    Quantitative Behavioural Reasoning for Higher-order Effectful Programs: Applicative Distances (Extended Version)

    Authors: Francesco Gavazzo

    Abstract: This paper studies the quantitative refinements of Abramsky's applicative similarity and bisimilarity in the context of a generalisation of Fuzz, a call-by-value $λ$-calculus with a linear type system that can express programs sensitivity, enriched with algebraic operations \emph{à la} Plotkin and Power. To do so a general, abstract framework for studying behavioural relations taking values over q… ▽ More

    Submitted 6 February, 2018; v1 submitted 27 January, 2018; originally announced January 2018.

  14. arXiv:1704.04647  [pdf, ps, other

    cs.LO cs.PL

    Effectful Applicative Bisimilarity: Monads, Relators, and Howe's Method (Long Version)

    Authors: Ugo Dal Lago, Francesco Gavazzo, Paul Blain Levy

    Abstract: We study Abramsky's applicative bisimilarity abstractly, in the context of call-by-value $λ$-calculi with algebraic effects. We first of all endow a computational $λ$-calculus with a monadic operational semantics. We then show how the theory of relators provides precisely what is needed to generalise applicative bisimilarity to such a calculus, and to single out those monads and relators for which… ▽ More

    Submitted 15 April, 2017; originally announced April 2017.

    Comments: 30 pages