Skip to main content

Showing 1–50 of 89 results for author: Lago, U D

.
  1. arXiv:2405.11987  [pdf, ps, other

    cs.CR

    On Separation Logic, Computational Independence, and Pseudorandomness (Extended Version)

    Authors: Ugo Dal Lago, Davide Davoli, Bruce M. Kapron

    Abstract: Separation logic is a substructural logic which has proved to have numerous and fruitful applications to the verification of programs working on dynamic data structures. Recently, Barthe, Hsu and Liao have proposed a new way of giving semantics to separation logic formulas in which separating conjunction is interpreted in terms of probabilistic independence. The latter is taken in its exact form,… ▽ More

    Submitted 20 May, 2024; originally announced May 2024.

    Comments: to be published in CSF'24

  2. arXiv:2401.12385  [pdf, ps, other

    cs.LO cs.CC

    On Basic Feasible Functionals and the Interpretation Method

    Authors: Patrick Baillot, Ugo Dal Lago, Cynthia Kop, Deivid Vale

    Abstract: The class of basic feasible functionals $(\mathtt{BFF})$ is the analog of $\mathtt{FP}$ (polynomial time functions) for type-2 functionals, that is, functionals that can take (first-order) functions as arguments. $\mathtt{BFF}$ can be defined through Oracle Turing machines with running time bounded by second-order polynomials. On the other hand, higher-order term rewriting provides an elegant form… ▽ More

    Submitted 25 January, 2024; v1 submitted 22 January, 2024; originally announced January 2024.

    ACM Class: F.1.3

  3. arXiv:2311.15003  [pdf, ps, other

    cs.LO math.LO

    Enumerating Error Bounded Polytime Algorithms Through Arithmetical Theories

    Authors: Melissa Antonelli, Ugo Dal Lago, Davide Davoli, Isabel Oitavem, Paolo Pistone

    Abstract: We consider a minimal extension of the language of arithmetic, such that the bounded formulas provably total in a suitably-defined theory à la Buss (expressed in this new language) precisely capture polytime random functions. Then, we provide two new characterizations of the semantic class BPP obtained by internalizing the error-bound check within a logical system: the first relies on measure-sens… ▽ More

    Submitted 25 November, 2023; originally announced November 2023.

    ACM Class: F.4.1; F.1.3

  4. arXiv:2310.19096  [pdf, ps, other

    cs.PL cs.LO quant-ph

    Circuit Width Estimation via Effect Ty** and Linear Dependency (Long Version)

    Authors: Andrea Colledan, Ugo Dal Lago

    Abstract: Circuit description languages are a class of quantum programming languages in which programs are classical and produce a description of a quantum computation, in the form of a quantum circuit. Since these programs can leverage all the expressive power of high-level classical languages, circuit description languages have been successfully used to describe complex and practical quantum algorithms, w… ▽ More

    Submitted 31 October, 2023; v1 submitted 29 October, 2023; originally announced October 2023.

    Comments: 21 pages (excluding references), 21 figures

    ACM Class: D.3.1; F.3.1; D.2.4

  5. arXiv:2308.16542  [pdf, other

    cs.LO cs.PL

    On Model-Checking Higher-Order Effectful Programs (Long Version)

    Authors: Ugo Dal Lago, Alexis Ghyselen

    Abstract: Model-checking is one of the most powerful techniques for verifying systems and programs, which since the pioneering results by Knapik et al., Ong, and Kobayashi, is known to be applicable to functional programs with higher-order types against properties expressed by formulas of monadic second-order logic. What happens when the program in question, in addition to higher-order functions, also exhib… ▽ More

    Submitted 31 August, 2023; originally announced August 2023.

  6. arXiv:2307.07400  [pdf, other

    cs.FL cs.PL

    Contextual Behavioural Metrics (Extended Version)

    Authors: Ugo Dal Lago, Maurizio Murgia

    Abstract: We introduce contextual behavioural metrics (CBMs) as a novel way of measuring the discrepancy in behaviour between processes, taking into account both quantitative aspects and contextual information. This way, process distances by construction take the environment into account: two (non-equivalent) processes may still exhibit very similar behaviour in some contexts, e.g., when certain actions are… ▽ More

    Submitted 5 September, 2023; v1 submitted 14 July, 2023; originally announced July 2023.

    Comments: Extended version of a paper accepted for publication in proc. CONCUR 2023

  7. arXiv:2302.05022  [pdf, other

    cs.LO

    On the Lattice of Program Metrics

    Authors: Ugo Dal Lago, Naohiko Hoshino, Paolo Pistone

    Abstract: In this paper we are concerned with understanding the nature of program metrics for calculi with higher-order types, seen as natural generalizations of program equivalences. Some of the metrics we are interested in are well-known, such as those based on the interpretation of terms in metric spaces and those obtained by generalizing observational equivalence. We also introduce a new one, called the… ▽ More

    Submitted 9 February, 2023; originally announced February 2023.

  8. arXiv:2301.12556  [pdf, ps, other

    cs.LO cs.PL

    A Log-Sensitive Encoding of Turing Machines in the $λ$-Calculus

    Authors: Beniamino Accattoli, Ugo Dal Lago, Gabriele Vanoni

    Abstract: This note modifies the reference encoding of Turing machines in the $λ$-calculus by Dal Lago and Accattoli, which is tuned for time efficiency, as to accommodate logarithmic space. There are two main changes: Turing machines now have *two* tapes, an input tape and a work tape, and the input tape is encoded differently, because the reference encoding comes with a linear space overhead for managing… ▽ More

    Submitted 29 January, 2023; originally announced January 2023.

    Comments: arXiv admin note: substantial text overlap with arXiv:2203.00362

  9. arXiv:2301.12028  [pdf, ps, other

    cs.CC cs.LO

    An Arithmetic Theory for the Poly-Time Random Functions

    Authors: Melissa Antonelli, Ugo Dal Lago, Davide Davoli, Isabel Oitavem, Paolo Pistone

    Abstract: We introduce a new bounded theory RS^1_2 and show that the functions which are Sigma^b_1-representable in it are precisely random functions which can be computed in polynomial time. Concretely, we pass through a class of oracle functions over string, called POR, together with the theory of arithmetic RS^1_2. Then, we show that functions computed by poly-time PTMs are arithmetically characterized b… ▽ More

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

    Comments: 37 pages, pre-print

  10. 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.

  11. 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.

  12. arXiv:2207.08795  [pdf, ps, other

    cs.PL cs.LO

    Multi Types and Reasonable Space (Long Version)

    Authors: Beniamino Accattoli, Ugo Dal Lago, Gabriele Vanoni

    Abstract: Accattoli, Dal Lago, and Vanoni have recently proved that the space used by the Space KAM, a variant of the Krivine abstract machine, is a reasonable space cost model for the lambda-calculus accounting for logarithmic space, solving a longstanding open problem. In this paper, we provide a new system of multi types (a variant of intersection types) and extract from multi type derivations the space… ▽ More

    Submitted 18 July, 2022; originally announced July 2022.

  13. arXiv:2207.03360  [pdf, ps, other

    cs.LO cs.CR

    On Session Ty**, Probabilistic Polynomial Time, and Cryptographic Experiments (Long Version)

    Authors: Ugo Dal Lago, Giulia Giusti

    Abstract: A system of session types is introduced as induced by a Curry Howard correspondence applied to Bounded Linear Logic, and then extending the thus obtained type system with probabilistic choices and ground types. The obtained system satisfies the expected properties, like subject reduction and progress, but also unexpected ones, like a polynomial bound on the time needed to reduce processes. This ma… ▽ More

    Submitted 7 July, 2022; originally announced July 2022.

  14. arXiv:2204.13654  [pdf, other

    cs.LO math.LO

    On Quantitative Algebraic Higher-Order Theories

    Authors: Ugo Dal Lago, Furio Honsell, Marina Lenisa, Paolo Pistone

    Abstract: We explore the possibility of extending Mardare et al. quantitative algebras to the structures which naturally emerge from Combinatory Logic and the lambda-calculus. First of all, we show that the framework is indeed applicable to those structures, and give soundness and completeness results. Then, we prove some negative results which clearly delineate to which extent categories of metric spaces c… ▽ More

    Submitted 28 April, 2022; originally announced April 2022.

    ACM Class: D.3.1; F.3.2; F.4.1

  15. 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.

  16. arXiv:2203.11265  [pdf, ps, other

    cs.LO math.LO

    Curry and Howard Meet Borel

    Authors: Melissa Antonelli, Ugo Dal Lago, Paolo Pistone

    Abstract: We show that an intuitionistic version of counting propositional logic corresponds, in the sense of Curry and Howard, to an expressive type system for the probabilistic event lambda-calculus, a vehicle calculus in which both call-by-name and call-by-value evaluation of discrete randomized functional programs can be simulated. Remarkably, proofs (respectively, types) do not only guarantee that vali… ▽ More

    Submitted 21 March, 2022; originally announced March 2022.

    ACM Class: F.4.1; F.3.2; D.3.1

  17. arXiv:2203.00362  [pdf, ps, other

    cs.LO cs.CC cs.PL

    Reasonable Space for the $λ$-Calculus, Logarithmically

    Authors: Beniamino Accattoli, Ugo Dal Lago, Gabriele Vanoni

    Abstract: Can the $λ$-calculus be considered a reasonable computational model? Can we use it for measuring the time $\textit{and}$ space consumption of algorithms? While the literature contains positive answers about time, much less is known about space. This paper presents a new reasonable space cost model for the $λ$-calculus, based on a variant over the Krivine abstract machine. For the first time, this… ▽ More

    Submitted 8 May, 2024; v1 submitted 1 March, 2022; originally announced March 2022.

  18. arXiv:2202.07636  [pdf, ps, other

    cs.PL cs.LO quant-ph

    On Dynamic Lifting and Effect Ty** in Circuit Description Languages (Extended Version)

    Authors: Andrea Colledan, Ugo Dal Lago

    Abstract: In the realm of quantum computing, circuit description languages represent a valid alternative to traditional QRAM-style languages. They indeed allow for finer control over the output circuit, without sacrificing flexibility nor modularity. We introduce a generalization of the paradigmatic lambda-calculus Proto-Quipper-M, itself modeling the core features of the quantum circuit description languag… ▽ More

    Submitted 15 February, 2022; originally announced February 2022.

    Comments: 26 pages, 21 figures

  19. arXiv:2112.14305   

    cs.LO cs.PL

    Proceedings Second Joint International Workshop on Linearity & Trends in Linear Logic and Applications

    Authors: Ugo Dal Lago, Valeria de Paiva

    Abstract: This volume contains a selection of papers presented at Linearity&TLLA 2020, namely the Second Joint International Workshop on Linearity & Trends in Linear Logic and Applications, held on June 29-30, 2020 online. (The workshop was supposed to take place in Paris as part of FSCD 2020, but due to the COVID pandemic it was decided not to hold the event live.) Linearity is a central concept in many th… ▽ More

    Submitted 28 December, 2021; originally announced December 2021.

    Journal ref: EPTCS 353, 2021

  20. 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.

  21. arXiv:2104.13795  [pdf, other

    cs.LO cs.PL

    The Space of Interaction (long version)

    Authors: Beniamino Accattoli, Ugo Dal Lago, Gabriele Vanoni

    Abstract: The space complexity of functional programs is not well understood. In particular, traditional implementation techniques are tailored to time efficiency, and space efficiency induces time inefficiencies, as it prefers re-computing to saving. Girard's geometry of interaction underlies an alternative approach based on the interaction abstract machine (IAM), claimed as space efficient in the literatu… ▽ More

    Submitted 28 April, 2021; originally announced April 2021.

  22. arXiv:2104.12124  [pdf, ps, other

    cs.LO math.LO

    On Measure Quantifiers in First-Order Arithmetic (Long Version)

    Authors: Melissa Antonelli, Ugo Dal Lago, Paolo Pistone

    Abstract: We study the logic obtained by endowing the language of first-order arithmetic with second-order measure quantifiers. This new kind of quantification allows us to express that the argument formula is true in a certain portion of all possible interpretations of the quantified variable. We show that first-order arithmetic with measure quantifiers is capable of formalizing simple results from probabi… ▽ More

    Submitted 25 April, 2021; originally announced April 2021.

    ACM Class: F.1.1; F.1.2; F.4.1

  23. arXiv:2103.12862  [pdf, ps, other

    cs.LO cs.CC cs.PL

    On Counting Propositional Logic

    Authors: Melissa Antonelli, Ugo Dal Lago, Paolo Pistone

    Abstract: We study counting propositional logic as an extension of propositional logic with counting quantifiers. We prove that the complexity of the underlying decision problem perfectly matches the appropriate level of Wagner's counting hierarchy, but also that the resulting logic admits a satisfactory proof-theoretical treatment. From the latter, a type system for a probabilistic lambda-calculus is deriv… ▽ More

    Submitted 3 June, 2021; v1 submitted 23 March, 2021; originally announced March 2021.

    ACM Class: F.4.1; F.1.3; D.3.1

  24. 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

  25. arXiv:2010.12988  [pdf, other

    cs.PL cs.LO

    The (In)Efficiency of Interaction

    Authors: Beniamino Accattoli, Ugo Dal Lago, Gabriele Vanoni

    Abstract: Evaluating higher-order functional programs through abstract machines inspired by the geometry of the interaction is known to induce $\textit{space}$ efficiencies, the price being $\textit{time}$ performances often poorer than those obtainable with traditional, environment-based, abstract machines. Although families of lambda-terms for which the former is exponentially less efficient than the latt… ▽ More

    Submitted 24 October, 2020; originally announced October 2020.

  26. Intersection Types and (Positive) Almost-Sure Termination

    Authors: Ugo Dal Lago, Claudia Faggian, Simona Ronchi Della Rocca

    Abstract: Randomized higher-order computation can be seen as being captured by a lambda calculus endowed with a single algebraic operation, namely a construct for binary probabilistic choice. What matters about such computations is the probability of obtaining any given result, rather than the possibility or the necessity of obtaining it, like in (non)deterministic computation. Termination, arguably the sim… ▽ More

    Submitted 23 December, 2020; v1 submitted 23 October, 2020; originally announced October 2020.

    Journal ref: Proc. ACM Program. Lang. 5, POPL (2021)

  27. 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.

  28. arXiv:2002.08392  [pdf, ps, other

    cs.LO cs.PL

    Decomposing Probabilistic Lambda-calculi

    Authors: Ugo Dal Lago, Giulio Guerrieri, Willem Heijltjes

    Abstract: A notion of probabilistic lambda-calculus usually comes with a prescribed reduction strategy, typically call-by-name or call-by-value, as the calculus is non-confluent and these strategies yield different results. This is a break with one of the main advantages of lambda-calculus: confluence, which means results are independent from the choice of strategy. We present a probabilistic lambda-calculu… ▽ More

    Submitted 19 February, 2020; originally announced February 2020.

    ACM Class: F.3.2; D.3.1

  29. arXiv:2002.07218  [pdf, other

    cs.LO cs.CR

    On Higher-Order Cryptography (Long Version)

    Authors: Boaz Barak, Raphaëlle Crubillé, Ugo Dal Lago

    Abstract: Type-two constructions abound in cryptography: adversaries for encryption and authentication schemes, if active, are modeled as algorithms having access to oracles, i.e. as second-order algorithms. But how about making cryptographic schemes themselves higher-order? This paper gives an answer to this question, by first describing why higher-order cryptography is interesting as an object of study, t… ▽ More

    Submitted 17 February, 2020; originally announced February 2020.

  30. arXiv:2002.05649  [pdf, ps, other

    cs.LO cs.PL

    The Abstract Machinery of Interaction (Long Version)

    Authors: Beniamino Accattoli, Ugo Dal Lago, Gabriele Vanoni

    Abstract: This paper revisits the Interaction Abstract Machine (IAM), a machine based on Girard's Geometry of Interaction, introduced by Mackie and Danos & Regnier. It is an unusual machine, not relying on environments, presented on linear logic proof nets, and whose soundness proof is convoluted and passes through various other formalisms. Here we provide a new direct proof of its correctness, based on a v… ▽ More

    Submitted 9 July, 2020; v1 submitted 13 February, 2020; originally announced February 2020.

    Comments: Accepted at PPDP 2020

  31. 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.

  32. 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.

  33. arXiv:1904.09650  [pdf, other

    cs.LO

    On the Taylor Expansion of Probabilistic $λ$-Terms (Long Version)

    Authors: Ugo Dal Lago, Thomas Leventis

    Abstract: We generalise Ehrhard and Regnier's Taylor expansion from pure to probabilistic $λ$-terms through notions of probabilistic resource terms and explicit Taylor expansion. We prove that the Taylor expansion is adequate when seen as a way to give semantics to probabilistic $λ$-terms, and that there is a precise correspondence with probabilistic Böhm trees, as introduced by the second author.

    Submitted 21 April, 2019; originally announced April 2019.

  34. The Geometry of Bayesian Programming

    Authors: Ugo Dal Lago, Naohiko Hoshino

    Abstract: We give a geometry of interaction model for a typed lambda-calculus endowed with operators for sampling from a continuous uniform distribution and soft conditioning, namely a paradigmatic calculus for higher-order Bayesian programming. The model is based on the category of measurable spaces and partial measurable functions, and is proved adequate with respect to both a distribution-based and a sam… ▽ More

    Submitted 15 April, 2019; originally announced April 2019.

    Journal ref: Math. Struct. Comp. Sci. 31 (2021) 633-681

  35. On the Termination Problem for Probabilistic Higher-Order Recursive Programs

    Authors: Naoki Kobayashi, Ugo Dal Lago, Charles Grellois

    Abstract: In the last two decades, there has been much progress on model checking of both probabilistic systems and higher-order programs. In spite of the emergence of higher-order probabilistic programming languages, not much has been done to combine those two approaches. In this paper, we initiate a study on the probabilistic higher-order model checking problem, by giving some first theoretical and experi… ▽ More

    Submitted 1 October, 2020; v1 submitted 5 November, 2018; originally announced November 2018.

    Journal ref: Logical Methods in Computer Science, Volume 16, Issue 4 (October 2, 2020) lmcs:5919

  36. arXiv:1805.03934  [pdf, ps, other

    cs.LO

    On randomised strategies in the $λ$-calculus (long version)

    Authors: Ugo Dal Lago, Gabriele Vanoni

    Abstract: In this work we study randomised reduction strategies,a notion already known in the context of abstract reduction systems, for the $λ$-calculus. We develop a simple framework that allows us to prove a randomised strategy to be positive almost-surely normalising. Then we propose a simple example of randomised strategy for the $λ$-calculus that has such a property and we show why it is non-trivial w… ▽ More

    Submitted 8 November, 2019; v1 submitted 10 May, 2018; originally announced May 2018.

  37. arXiv:1802.09774  [pdf, ps, other

    cs.SC

    On Probabilistic Term Rewriting

    Authors: Martin Avanzini, Ugo Dal Lago, Akihisa Yamada

    Abstract: We study the termination problem for probabilistic term rewrite systems. We prove that the interpretation method is sound and complete for a strengthening of positive almost sure termination, when abstract reduction systems and term rewrite systems are considered. Two instances of the interpretation method - polynomial and matrix interpretations - are analyzed and shown to capture interesting and… ▽ More

    Submitted 27 February, 2018; originally announced February 2018.

    Comments: Technical Report of our FLOPS'18 paper

  38. arXiv:1711.10078  [pdf, ps, other

    cs.LO

    Encoding Turing Machines into the Deterministic Lambda-Calculus

    Authors: Ugo Dal Lago, Beniamino Accattoli

    Abstract: This note is about encoding Turing machines into the lambda-calculus.

    Submitted 27 November, 2017; originally announced November 2017.

  39. arXiv:1706.09169  [pdf, ps, other

    cs.LO cs.CC

    Automating Sized Type Inference for Complexity Analysis (Technical Report)

    Authors: Martin Avanzini, Ugo Dal Lago

    Abstract: This paper introduces a new methodology for the complexity analysis of higher-order functional programs, which is based on three ingredients: a powerful type system for size analysis and a sound type inference procedure for it, a ticking monadic transformation, and constraint solving. Noticeably, the presented methodology can be fully automated, and is able to analyse a series of examples which ca… ▽ More

    Submitted 28 June, 2017; originally announced June 2017.

    Comments: Technical report of http://dx.doi.org/10.1145/3110287

  40. Automated Sized-Type Inference and Complexity Analysis

    Authors: Martin Avanzini, Ugo Dal Lago

    Abstract: This paper introduces a new methodology for the complexity analysis of higher-order functional programs, which is based on three components: a powerful type system for size analysis and a sound type inference procedure for it, a ticking monadic transformation and a concrete tool for constraint solving. Noticeably, the presented methodology can be fully automated, and is able to analyse a series of… ▽ More

    Submitted 18 April, 2017; originally announced April 2017.

    Comments: In Proceedings DICE-FOPARA 2017, arXiv:1704.05169

    ACM Class: I.2.2

    Journal ref: EPTCS 248, 2017, pp. 7-16

  41. 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

  42. arXiv:1704.04620  [pdf, other

    cs.LO

    The Geometry of Concurrent Interaction: Handling Multiple Ports by Way of Multiple Tokens (Long Version)

    Authors: Ugo Dal Lago, Ryo Tanaka, Akira Yoshimizu

    Abstract: We introduce a geometry of interaction model for Mazza's multiport interaction combinators, a graph-theoretic formalism which is able to faithfully capture concurrent computation as embodied by process algebras like the $π$-calculus. The introduced model is based on token machines in which not one but multiple tokens are allowed to traverse the underlying net at the same time. We prove soundness a… ▽ More

    Submitted 15 April, 2017; originally announced April 2017.

  43. arXiv:1701.05521  [pdf, other

    cs.LO

    Metric Reasoning About $λ$-Terms: The General Case (Long Version)

    Authors: Raphaëlle Crubillé, Ugo Dal Lago

    Abstract: In any setting in which observable properties have a quantitative flavour, it is natural to compare computational objects by way of \emph{metrics} rather than equivalences or partial orders. This holds, in particular, for probabilistic higher-order programs. A natural notion of comparison, then, becomes context distance, the metric analogue of Morris' context equivalence. In this paper, we analyze… ▽ More

    Submitted 19 January, 2017; originally announced January 2017.

  44. On Higher-Order Probabilistic Subrecursion

    Authors: Flavien Breuvart, Ugo Dal Lago, Agathe Herrou

    Abstract: We study the expressive power of subrecursive probabilistic higher-order calculi. More specifically, we show that endowing a very expressive deterministic calculus like Gödel's $\mathbb{T}$ with various forms of probabilistic choice operators may result in calculi which are not equivalent as for the class of distributions they give rise to, although they all guarantee almost-sure termination. Alon… ▽ More

    Submitted 22 December, 2021; v1 submitted 17 January, 2017; originally announced January 2017.

    Journal ref: Logical Methods in Computer Science, Volume 17, Issue 4 (December 23, 2021) lmcs:4226

  45. arXiv:1701.04089  [pdf, ps, other

    cs.PL cs.LO

    Probabilistic Termination by Monadic Affine Sized Ty** (Long Version)

    Authors: Ugo Dal Lago, Charles Grellois

    Abstract: We introduce a system of monadic affine sized types, which substantially generalise usual sized types, and allows this way to capture probabilistic higher-order programs which terminate almost surely. Going beyond plain, strong normalisation without losing soundness turns out to be a hard task, which cannot be accomplished without a richer, quantitative notion of types, but also without imposing s… ▽ More

    Submitted 15 January, 2017; originally announced January 2017.

    Comments: 63 pages. To appear in ESOP 2017

  46. arXiv:1610.09629  [pdf, other

    cs.LO

    The Geometry of Parallelism. Classical, Probabilistic, and Quantum Effects

    Authors: Ugo Dal Lago, Claudia Faggian, Benoit Valiron, Akira Yoshimizu

    Abstract: We introduce a Geometry of Interaction model for higher-order quantum computation, and prove its adequacy for a full quantum programming language in which entanglement, duplication, and recursion are all available. Our model comes with a multi-token machine, a proof net system, and a PCF-style language. The approach we develop is not specific to quantum computation, and our model is an instance of… ▽ More

    Submitted 15 July, 2017; v1 submitted 30 October, 2016; originally announced October 2016.

    Comments: 21 pages, extended version of the conference paper ; July 2017: removed a spurious and unused lemma

  47. arXiv:1604.08248  [pdf, other

    cs.LO

    Infinitary $λ$-Calculi from a Linear Perspective (Long Version)

    Authors: Ugo Dal Lago

    Abstract: We introduce a linear infinitary $λ$-calculus, called $\ellΛ_{\infty}$, in which two exponential modalities are available, the first one being the usual, finitary one, the other being the only construct interpreted coinductively. The obtained calculus embeds the infinitary applicative $λ$-calculus and is universal for computations over infinite strings. What is particularly interesting about… ▽ More

    Submitted 27 April, 2016; originally announced April 2016.

  48. (Leftmost-Outermost) Beta Reduction is Invariant, Indeed

    Authors: Beniamino Accattoli, Ugo Dal Lago

    Abstract: Slot and van Emde Boas' weak invariance thesis states that reasonable machines can simulate each other within a polynomially overhead in time. Is lambda-calculus a reasonable machine? Is there a way to measure the computational complexity of a lambda-term? This paper presents the first complete positive answer to this long-standing problem. Moreover, our answer is completely machine-independent a… ▽ More

    Submitted 8 March, 2016; v1 submitted 6 January, 2016; originally announced January 2016.

    Comments: arXiv admin note: substantial text overlap with arXiv:1405.3311

    Journal ref: Logical Methods in Computer Science, Volume 12, Issue 1 (March 9, 2016) lmcs:1627

  49. arXiv:1512.08990  [pdf, ps, other

    cs.PL

    A Lambda-Calculus Foundation for Universal Probabilistic Programming

    Authors: Johannes Borgström, Ugo Dal Lago, Andrew D. Gordon, Marcin Szymczak

    Abstract: We develop the operational semantics of an untyped probabilistic lambda-calculus with continuous distributions, as a foundation for universal probabilistic programming languages such as Church, Anglican, and Venture. Our first contribution is to adapt the classic operational semantics of lambda-calculus to a continuous setting via creating a measure space on terms and defining step-indexed approxi… ▽ More

    Submitted 23 January, 2017; v1 submitted 30 December, 2015; originally announced December 2015.

  50. arXiv:1506.06661  [pdf, ps, other

    cs.LO

    Applicative Bisimulation and Quantum $λ$-Calculi (Long Version)

    Authors: Ugo Dal Lago, Alessandro Rioli

    Abstract: Applicative bisimulation is a coinductive technique to check program equivalence in higher-order functional languages. It is known to be sound, and sometimes complete, with respect to context equivalence. In this paper we show that applicative bisimulation also works when the underlying language of programs takes the form of a linear $λ$-calculus extended with features such as probabilistic binary… ▽ More

    Submitted 22 June, 2015; originally announced June 2015.