VLDB 2026 Research / reviewers in the wild / expert
Ugo Dal Lago
dblp:44/3105
· DBLP profile ↗
122ranked-venue papers
69as first author
48since 2021 · last 2026
0000-0001-9200-070XORCID · verified
Domains — the database's venue-derived domains; a paper can count in several
Theory of computation · 83 · 51 first-author · 30 since 2021Software engineering, systems software and programming languages · 42 · 19 first-author · 19 since 2021Artificial intelligence and machine learning · 4 · 2 first-authorSecurity and privacy · 2 · 1 first-author · 2 since 2021Databases, data management, data science and information retrieval · 1 · 1 first-authorApplied, interdisciplinary, general and emerging computing · 1 · 1 first-author
| Year | Publication | Venue | Position |
|---|---|---|---|
| 2026 | Coinductive Reasoning for Parametrized Functors and MonadsabstractLax extensions (also called relators or relation liftings) are a categorical notion to reason about functors acting on functions and relations in a compatible way. They play a central role to develop sound proof principles for behavioral equivalence of state-based systems and are also important for establishing contextual equivalence for effectful programs. In this paper, we develop the theory of lax extensions for parametrized functors and monads and consider notions of behavioral preorders, equivalence relations or metrics which can now be modulated by additional parameters. From an operational viewpoint, we replace standard contextual equivalence where we quantify over all possible contexts by a refined notion of equivalence where the user can regulate the allowed contexts via chosen parameters. Ugo Dal Lago, Zeinab Galal |
CONCUR | 1 |
| 2026 | On Higher-Order Probabilistic Verification via the Weighted Relational Model of Linear LogicabstractThe problem of determining whether a probabilistic program terminates almost surely (i.e. with probability one) is undecidable, and actually Π⁰₂-complete. For this reason, a growing literature has explored classes of programs for which this and related problems can be shown (semi-)decidable. In this work we consider the termination problem for the language of Probabilistic Higher-Order Recursion Schemes (PHORS). Using the weighted relational semantics of linear logic, we translate this problem into the computation of suitable generating functions associated with the program interpreted. This way, we establish the decidability of almost sure termination for a class of programs that extends Li et al.’s affine PHORS via a type discipline with bounded exponentials. To achieve this, we show that the generating functions for such programs are always algebraic, that is, solutions of polynomial equations, yielding an effective method to answer the termination problem. Ugo Dal Lago, Guido Fiorillo, Paolo Pistone |
LICS | 1 |
| 2026 | On Jumps, Interactions, and Intersection TypesabstractThe Jumping Abstract Machine (JAM), an evaluation mechanism for the λ-calculus, was introduced by Danos and Regnier as an optimization of the Interaction Abstract Machine (IAM), itself an operational counterpart to Girard’s Geometry of Interaction and Abramsky et al. game semantics. Moreover, the JAM is isomorphic to the Pointer Abstract Machine (PAM), the syntactical counterpart of Hyland and Ong’s game semantics. We study a generalization of the JAM, that we call the Parametric Jumping Abstract Machine (PaJAM) and show that there is a tight correspondence between the PaJAM and non-idempotent intersection types: given a normalizing term t, the number of steps taken by the PaJAM when evaluating t can be extracted from its non-idempotent intersection type derivation. Remarkably, fixing the backtracking depth of the PaJAM, one can easily recover both the JAM/PAM, when the depth is constrained to be zero, and the IAM, when it is instead unconstrained. Exploiting type-theoretic machinery, we analyze the complexity of the PaJAM, showing that it is polynomial in the number of weak head β steps, giving rise to a reasonable cost model, for each finite bound on the backtracking depth. Stefano Catozi, Ugo Dal Lago, Gabriele Vanoni |
MFCS | 2 |
| 2026 | When Types Intersect and Effects Get HandledabstractWe introduce a novel intersection type system for a λ-calculus with algebraic effects and handlers. The system, inherently behavioral in nature, enjoys the classical properties of intersection type systems, in particular subject reduction and expansion. It thus characterizes the set of terms whose evaluation process terminates and, at the same time, allows reducing the reachability problem to type inference. This new system, the first with these features for a calculus with handlers, induces a system of simple types which, although not guaranteeing termination, is type sound and admits a decidable HOMC problem, unlike similar type systems like Dal Lago and Ghyselen’s HEPCF. Stefano Catozi, Ugo Dal Lago, Taro Sekiyama |
Proc. ACM Program. Lang. | 2 |
| 2026 | On Circuit Description Languages, Indexed Monads, and Resource AnalysisabstractIn this paper, a monad-based denotational model is introduced and shown adequate for the Proto-Quipper family of calculi, themselves being idealized versions of the Quipper programming language. The use of a monadic approach allows us to separate the value to which a term reduces from the circuit that the term itself produces as a side effect. In turn, this enables the denotational interpretation and validation of rich type systems in which the size of the produced circuit can be controlled. Notably, the proposed semantic framework, through the novel concept of circuit algebra, suggests forms of effect typing guaranteeing quantitative properties about the resulting circuit, even in presence of optimizations. Ken Sakayori, Andrea Colledan, Ugo Dal Lago |
Proc. ACM Program. Lang. | 3 |
| 2026 | (Definitely not) Boring interaction abstract machinesabstractThe interaction abstract machine is an automata-theoretic implementation of Girard’s geometry of interaction. We study one of its two formulations for the λ -calculus, namely the one obtained from the so-called call-by-value (or “boring”) translation of intuitionistic logic into linear logic. We prove the correctness of the resulting call-by-name machine, at the same time establishing an improvement bisimulation with Krivine’s abstract machine. The proof makes essential use of the definition of a novel relational property linking configurations of the two machines. Finally, exploiting the correspondence with non-idempotent intersection types, we prove that the interaction abstract machines coming from Girard’s two translations are strongly bisimilar. Ugo Dal Lago, Gabriele Vanoni |
Theor. Comput. Sci. | 1 |
| 2025 | On the Metric Nature of (Differential) Logical Relations
Ugo Dal Lago, Naohiko Hoshino, Paolo Pistone |
FSCD | 1 |
| 2025 | Counting Qubits and Gates: Resource Analysis in Quantum Programming LanguagesabstractInvited-Talk Ugo Dal Lago |
PPDP | 1 |
| 2025 | A Characterization of Basic Feasible Functionals Through Higher-Order Rewriting and Tuple InterpretationsabstractThe class of type-two basic feasible functionals ($\mathtt{BFF}_2$) is the analogue of $\mathtt{FP}$ (polynomial time functions) for type-2 functionals, that is, functionals that can take (first-order) functions as arguments. $\mathtt{BFF}_2$ 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 formalism for expressing higher-order computation. We address the problem of characterizing $\mathtt{BFF}_2$ by higher-order term rewriting. Various kinds of interpretations for first-order term rewriting have been introduced in the literature for proving termination and characterizing first-order complexity classes. In this paper, we consider a recently introduced notion of cost-size interpretations for higher-order term rewriting and see second order rewriting as ways of computing type-2 functionals. We then prove that the class of functionals represented by higher-order terms admitting polynomially bounded cost-size interpretations exactly corresponds to $\mathtt{BFF}_2$. Patrick Baillot, Ugo Dal Lago, Cynthia Kop, Deivid Vale |
Log. Methods Comput. Sci. | 2 |
| 2025 | Flexible Type-Based Resource Estimation in Quantum Circuit Description LanguagesabstractWe introduce a type system for the Quipper language designed to derive upper bounds on the size of the circuits produced by the typed program. This size can be measured according to various metrics, including width , depth and gate count , but also variations thereof obtained by considering only some wire types or some gate kinds. The key ingredients for achieving this level of flexibility are effects and refinement types, both relying on indices , that is, generic arithmetic expressions whose operators are interpreted differently depending on the target metric. The approach is shown to be correct through logical predicates, under reasonable assumptions about the chosen resource metric. This approach is empirically evaluated through the QuRA tool, showing that, in many cases, inferring tight bounds is possible in a fully automatic way. Andrea Colledan, Ugo Dal Lago |
Proc. ACM Program. Lang. | 2 |
| 2025 | On Higher-Order Model Checking of Effectful Answer-Type-Polymorphic ProgramsabstractApplying higher-order model checking techniques to programs that use effect handlers is a major challenge, given the recent undecidability result obtained by Dal Lago and Ghyselen. This challenge has been addressed by using answer-type modifications, the use of a monomorphic version of which allows to recover decidability. However, the absence of polymorphism leads to a loss of modularity, reusability, and even expressivity. In this work, we study the problem of defining a calculus that on the one hand supports answer-type polymorphism and subtyping but on the other hand ensures the underlying model checking problem to remain decidable. The solution proposed in this paper is based on the introduction of the polymorphic answer-type □ whose role is to provide a good compromise between expressiveness and decidability, the latter demonstrated through the construction of a selective type-directed CPS transformation targeting a calculus without effect handlers and any form of polymorphism. Noticeably, the introduced calculus HEPCF □ ATM allows the answer types of effects implemented by tail-resumptive effect handlers to be polymorphic. We also implemented a proof-of-concept model checker for HEPCF □ ATM programs. Taro Sekiyama, Ugo Dal Lago, Hiroshi Unno 0001 |
Proc. ACM Program. Lang. | 2 |
| 2025 | Circuit Width Estimation via Effect Typing and Linear DependencyabstractCircuit 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 quantum algorithms, whose circuits, however, may involve many more qubits and gate applications than current quantum architectures can actually muster. In this article, we present Proto-Quipper-R , a circuit description language endowed with a linear dependent type-and-effect system capable of deriving parametric upper bounds on the width of the circuits produced by a program. We prove both the standard type safety results and that the resulting resource analysis is correct with respect to a big-step operational semantics. Lastly, we introduce QuRA , a static analysis tool based on Proto-Quipper-R ’s type system, and use it to show that our framework allows for the automatic width verification of realistic quantum algorithms, such as the QFT and Grover’s algorithm. Andrea Colledan, Ugo Dal Lago, Niki Vazou |
ACM Trans. Program. Lang. Syst. | 2 |
| 2024 | On Computational Indistinguishability and Logical Relations
Ugo Dal Lago, Zeinab Galal, Giulia Giusti |
APLAS | 1 |
| 2024 | On Separation Logic, Computational Independence, and PseudorandomnessabstractSeparation 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, i.e., two events are independent if and only if the joint probability is the product of the probabilities of the two events. There is indeed a literature on weaker notions of independence which are computational in nature, i.e. independence holds only against efficient adversaries and modulo a negligible probability of success. The aim of this work is to explore the nature of computational independence in a cryptographic scenario, in view of the aforementioned advances in separation logic. We show on the one hand that the semantics of separation logic can be adapted so as to account for complexity bounded adversaries, and on the other hand that the obtained logical system is useful for writing simple and compact proofs of standard cryptographic results in which the adversary remains hidden. Remarkably, this allows for a fruitful interplay between independence and pseudorandomness, itself a crucial notion in cryptography. Ugo Dal Lago, Davide Davoli 0001, Bruce M. Kapron |
CSF | 1 |
| 2024 | Enumerating Error Bounded Polytime Algorithms Through Arithmetical TheoriesabstractArKiv Extended Version https://arxiv.org/abs/2311.15003 Melissa Antonelli, Ugo Dal Lago, Davide Davoli 0001, Isabel Oitavem, Paolo Pistone |
CSL | 2 |
| 2024 | Circuit Width Estimation via Effect Typing and Linear DependencyabstractAbstract 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, whose circuits, however, may involve many more qubits and gate applications than current quantum architectures can actually muster. In this paper, we present , a circuit description language endowed with a linear dependent type-and-effect system capable of deriving parametric upper bounds on the width of the circuits produced by a program. We prove both the standard type safety results and that the resulting resource analysis is correct with respect to a big-step operational semantics. We also show that our approach is expressive enough to verify realistic quantum algorithms. Andrea Colledan, Ugo Dal Lago |
ESOP (2) | 2 |
| 2024 | On Basic Feasible Functionals and the Interpretation MethodabstractAbstract The class of basic feasible functionals ( $$\texttt{BFF}$$ BFF ) is the analog of $$\texttt{FP}$$ FP (polynomial time functions) for type-2 functionals, that is, functionals that can take (first-order) functions as arguments. $$\texttt{BFF}$$ 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 formalism for expressing higher-order computation. We address the problem of characterizing $$\texttt{BFF}$$ BFF by higher-order term rewriting. Various kinds of interpretations for first-order term rewriting have been introduced in the literature for proving termination and characterizing (first-order) complexity classes. In this paper, we consider a recently introduced notion of cost–size interpretations for higher-order term rewriting and see definitions as ways of computing functionals. We then prove that the class of functionals represented by higher-order terms admitting a certain kind of cost–size interpretation is exactly $$\texttt{BFF}$$ BFF . Patrick Baillot, Ugo Dal Lago, Cynthia Kop, Deivid Vale |
FoSSaCS (2) | 2 |
| 2024 | On the Almost-Sure Termination of Binary SessionsabstractWe investigate the termination problem in a calculus of sessions with probabilistic choices. In this setting, a whole range of termination properties can be defined, from the weaker almost-sure termination to strong almost-sure termination, passing through positive almost-sure termination. We present two similar session type systems closely related to classical linear logic with exponentials that guarantee the two extremal properties in such range. In both type systems, the definitional overhead that deals with the ensured termination property is kept to a minimum. Ugo Dal Lago, Luca Padovani |
PPDP | 1 |
| 2024 | Towards Quantum Multiparty Session TypesabstractAbstract Multiparty Session Types (MPSTs) offer a structured way of specifying communication protocols and guarantee relevant communication properties, such as deadlock-freedom. In this paper, we extend a minimal MPST system with quantum data and operations, enabling the specification of quantum protocols. Quantum MPSTs (QMPSTs) provide a formal notation to describe quantum protocols, both at the abstract level of global types, describing which communications can take place in the system and their dependencies, and at the concrete level of local types and quantum processes, describing the expected behavior of each participant in the protocol. Type-checking relates these two levels formally, ensuring that processes behave as prescribed by the global type. Beyond usual communication properties, QMPSTs also allow us to prove that qubits are owned by a single process at any time, capturing the quantum no-cloning and no-deleting theorems. We use our approach to verify four quantum protocols from the literature, respectively Teleportation, Secret Sharing, Bit-Commitment, and Key Distribution. Ivan Lanese, Ugo Dal Lago, Vikraman Choudhury |
SEFM | 2 |
| 2024 | Towards logical foundations for probabilistic computationabstractThe overall purpose of the present work is to lay the foundations for a new approach to bridge logic and probabilistic computation. To this aim we introduce extensions of classical and intuitionistic propositional logic with counting quantifiers, that is, quantifiers that measure to which extent a formula is true. The resulting systems, called cCPL and iCPL, respectively, admit a natural semantics, based on the Borel σ-algebra of the Cantor space, together with a sound and complete proof system. Our main results consist in relating cCPL and iCPL with some central concepts in the study of probabilistic computation. On the one hand, the validity of cCPL-formulae in prenex form characterizes the corresponding level of Wagner's hierarchy of counting complexity classes, closely related to probabilistic complexity. On the other hand, proofs in iCPL correspond, in the sense of Curry and Howard, to typing derivations for a randomized extension of the λ-calculus, so that counting quantifiers reveal the probability of termination of the underlying probabilistic programs. Melissa Antonelli, Ugo Dal Lago, Paolo Pistone |
Ann. Pure Appl. Log. | 2 |
| 2024 | Reasonable Space for the λ-Calculus, LogarithmicallyabstractCan the $\lambda$-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 $\lambda$-calculus, based on a variant over the Krivine abstract machine. For the first time, this cost model is able to accommodate logarithmic space. Moreover, we study the time behavior of our machine and show how to transport our results to the call-by-value $\lambda$-calculus. Beniamino Accattoli, Ugo Dal Lago, Gabriele Vanoni |
Log. Methods Comput. Sci. | 2 |
| 2024 | On Model-Checking Higher-Order Effectful ProgramsabstractModel-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 exhibits algebraic effects such as probabilistic choice or global store? The results in the literature range from those, mostly positive, about nondeterministic effects, to those about probabilistic effects, in the presence of which even mere reachability becomes undecidable. This work takes a fresh and general look at the problem, first of all showing that there is an elegant and natural way of viewing higher-order programs producing algebraic effects as ordinary higher-order recursion schemes. We then move on to consider effect handlers, showing that in their presence the model checking problem is bound to be undecidable in the general case, while it stays decidable when handlers have a simple syntactic form, still sufficient to capture so-called generic effects . Along the way, we hint at how a general specification language could look like, this way justifying some of the results in the literature, and deriving new ones. Ugo Dal Lago, Alexis Ghyselen |
Proc. ACM Program. Lang. | 1 |
| 2024 | Preface
Ugo Dal Lago, Daniele Gorla |
Theor. Comput. Sci. | 1 |
| 2023 | Contextual Behavioural MetricsabstractWe 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 never performed. We first show how CBMs capture many well-known notions of equivalence and metric, including Larsen's environmental parametrized bisimulation. We then study compositional properties of CBMs with respect to some common process algebraic operators, namely prefixing, restriction, non-deterministic sum, parallel composition and replication. Ugo Dal Lago, Maurizio Murgia 0001 |
CONCUR | 1 |
| 2023 | Open Higher-Order LogicabstractInternational audience Ugo Dal Lago, Francesco Gavazzo, Alexis Ghyselen |
CSL | 1 |
| 2023 | On the Lattice of Program MetricsabstractIn 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 interactive metric, built by applying the well-known Int-Construction to the category of metric complete partial orders. Our aim is then to understand how these metrics relate to each other, i.e., whether and in which cases one such metric refines another, in analogy with corresponding well-studied problems about program equivalences. The results we obtain are twofold. We first show that the metrics of semantic origin, i.e., the denotational and interactive ones, lie in between the observational and equational metrics and that in some cases, these inclusions are strict. Then, we give a result about the relationship between the denotational and interactive metrics, revealing that the former is less discriminating than the latter. All our results are given for a linear lambda-calculus, and some of them can be generalized to calculi with graded comonads, in the style of Fuzz. Ugo Dal Lago, Naohiko Hoshino, Paolo Pistone |
FSCD | 1 |
| 2023 | Preface to the special issue on metric and differential semanticsabstractProgramming language semantics traditionally deals with qualitative properties of programs, that is, properties that a program may either satisfy or not, like termination or correctness.Moreover, program semantics generally attribute programs a meaning, typically a function of some kind, so as to be able to identify programs which behave in the same way in all contexts (i.e., which have the same meaning).This can be done in many different ways, from observational equivalence -the coarsest adequate congruence -to various forms of formal systems in the style of equational logic, to denotational semantics.Nevertheless, the past ten years have seen the introduction of a series of logical and semantic frameworks which go significantly beyond this picture: on the one hand, frameworks enabling the expression of quantitative properties, i.e., properties that a program may satisfy to a certain extent or up to a certain error (e.g., probabilistic termination or correctness up to some error probability or some approximation error).Moreover, the meaning attributed to programs may allow the latter to be compared in quantitative ways, that is, as behaving in a similar, although not exactly equivalent, way, or to analyze how sensitive programs are to variations in their input.We refer here, for example, to approaches like behavioral and program metrics, differential semantics, automatic differentiation, sensitivity analysis and its application to differential privacy.These frameworks have progressively led to integrate methods coming from probabilistic programming, approximate and incremental computing, as well as machine learning within several standard theoretical approaches to program semantics.This special issue is meant to collect contributions along these lines and comprises the following five papers:• "Up-To Techniques for Behavioural Metrics via Fibrations, " by Bonchi, König, and Petrisan.This deals with the problem of deriving enhancements to the metric analog of the bisimulation proof method in an abstract way and with how categorical fibrations turn out to be a powerful tool for that.• "Bisimulation and Behavioural Equivalences for Continuous-time Markov Processes," by Chen, Clerc, and Panangaden.This contribution gives a unified view of various notions of behavioral equivalence and bisimulation for probabilistic transition systems whose time evolution is continuous rather than discrete.• "Coherent Differentiation," by Ehrhard.This paper introduces a new categorical framework for higher order program differentiation.In contrast to usual approaches based on the differential λ-calculus, this new framework does not require additivity (hence nondeterminism), and is thus compatible with both deterministic and probabilistic computational models. Ugo Dal Lago, Francesco Gavazzo, Paolo Pistone |
Math. Struct. Comput. Sci. | 1 |
| 2023 | On counting propositional logic and Wagner's hierarchyabstractWe introduce an extension of classical propositional logic with counting quantifiers. These forms of quantification make it possible to express that a formula is true in a certain portion of the set of all its interpretations. Beyond providing a sound and complete proof system for this logic, we show that validity problems for counting propositional logic can be used to capture counting complexity classes. More precisely, we show that the complexity of the decision problems for validity of prenex counting formulas perfectly matches the appropriate levels of Wagner's counting hierarchy. Melissa Antonelli, Ugo Dal Lago, Paolo Pistone |
Theor. Comput. Sci. | 2 |
| 2022 | Tidy: Symbolic Verification of Timed Cryptographic ProtocolsabstractTimed cryptography refers to cryptographic primitives designed to meet their security goals only for a short (polynomial) amount of time. Popular examples include timed commitments and verifiable delay functions. Such primitives are commonly used to guarantee fairness in multiparty protocols ("either none or all parties obtain the output of the protocol'') without relying on any trusted party. Despite their recent surge in popularity, timed cryptographic protocols remain out of scope of current symbolic verification tools, which idealise cryptographic primitives as algebraic operations, and thus do not consider fine-grained notions of time. Gilles Barthe, Ugo Dal Lago, Giulio Malavolta, Itsaka Rakotonirina |
CCS | 2 |
| 2022 | On Session Typing, Probabilistic Polynomial Time, and Cryptographic ExperimentsabstractA 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 makes the system suitable for modelling experiments and proofs from the so-called computational model of cryptography. Ugo Dal Lago, Giulia Giusti |
CONCUR | 1 |
| 2022 | On Quantitative Algebraic Higher-Order TheoriesabstractInternational audience Ugo Dal Lago, Furio Honsell, Marina Lenisa, Paolo Pistone |
FSCD | 1 |
| 2022 | Reasonable Space for the λ-Calculus, LogarithmicallyabstractCan the λ-calculus be considered a reasonable computational model? Can we use it for measuring the time 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 cost model is able to accommodate logarithmic space. Moreover, we study the time behavior of our machine and show how to transport our results to the call-by-value λ-calculus. Beniamino Accattoli, Ugo Dal Lago, Gabriele Vanoni |
LICS | 2 |
| 2022 | Curry and Howard Meet BorelabstractWe 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 λ-calculus, a vehicle calculus in which both call-by-name and call-by-value evaluation of discrete randomized functional programs can be simulated. In this context, proofs (respectively, types) do not guarantee that validity (respectively, termination) holds, but reveal the underlying probability. We finally show how to obtain a system precisely capturing the probabilistic behavior of λ-terms, by endowing the type system with an intersection operator. Melissa Antonelli, Ugo Dal Lago, Paolo Pistone |
LICS | 2 |
| 2022 | Implicit computation complexity in higher-order programming languages: A Survey in Memory of Martin HofmannabstractAbstract This paper is meant to be a survey about implicit characterizations of complexity classes by fragments of higher-order programming languages, with a special focus on type systems and subsystems of linear logic. Particular emphasis will be put on Martin Hofmann’s contributions to the subject, which very much helped in shaping the field. Ugo Dal Lago |
Math. Struct. Comput. Sci. | 1 |
| 2022 | Multi types and reasonable spaceabstractAccattoli, 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 λ-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 used by the Space KAM, capturing into a type system the space complexity of the abstract machine. Additionally, we show how to capture also the time of the Space KAM, which is a reasonable time cost model, via minor changes to the type system. Beniamino Accattoli, Ugo Dal Lago, Gabriele Vanoni |
Proc. ACM Program. Lang. | 2 |
| 2022 | On Feller continuity and full abstractionabstractWe study the nature of applicative bisimilarity in λ-calculi endowed with operators for sampling from contin- uous 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 through continuous functions only. The key ingredient towards this result is a notion of Feller-continuity for labelled Markov processes, which we believe of independent interest, giving rise a broad class of LMPs for which coinductive and logically inspired equivalences coincide. On the other hand, we show that if no constraint is put on the way real numbers are manipulated, characterizing contextual equivalence turns out to be hard, and most of the aforementioned notions of equivalence are even unsound. Gilles Barthe, Raphaëlle Crubillé, Ugo Dal Lago, Francesco Gavazzo |
Proc. ACM Program. Lang. | 3 |
| 2022 | Effectful program distancingabstractSemantics is traditionally concerned with program equivalence, in which all pairs of programs which are not equivalent are treated the same, and simply dubbed as incomparable. In recent years, various forms of program metrics have been introduced such that the distance between non-equivalent programs is measured as an element of an appropriate quantale. By letting the underlying quantale vary as the type of the compared programs become more complex, the recently introduced framework of differential logical relations allows for a new contextual form of reasoning. In this paper, we show that all this can be generalised to effectful higher-order programs, in which not only the values , but also the effects computations produce can be appropriately distanced in a principled way. We show that the resulting framework is flexible, allowing various forms of effects to be handled, and that it provides compact and informative judgments about program differences. Ugo Dal Lago, Francesco Gavazzo |
Proc. ACM Program. Lang. | 1 |
| 2022 | A relational theory of effects and coeffectsabstractGraded modal types systems and coeffects are becoming a standard formalism to deal with context-dependent, usage-sensitive computations, especially when combined with computational effects. From a semantic perspective, effectful and coeffectful languages have been studied mostly by means of denotational semantics and almost nothing has been done from the point of view of relational reasoning. This gap in the literature is quite surprising, since many cornerstone results — such as non-interference , metric preservation , and proof irrelevance — on concrete coeffects are inherently relational. In this paper, we fill this gap by developing a general theory and calculus of program relations for higher-order languages with combined effects and coeffects. The relational calculus builds upon the novel notion of a corelator (or comonadic lax extension ) to handle coeffects relationally. Inside such a calculus, we define three notions of effectful and coeffectful program refinements: contextual approximation , logical preorder , and applicative similarity . These are the first operationally-based notions of program refinement (and, consequently, equivalence) for languages with combined effects and coeffects appearing in the literature. We show that the axiomatics of a corelator (together with the one of a relator) is precisely what is needed to prove all the aforementioned program refinements to be precongruences, this way obtaining compositional relational techniques for reasoning about combined effects and coeffects. Ugo Dal Lago, Francesco Gavazzo |
Proc. ACM Program. Lang. | 1 |
| 2021 | On Measure Quantifiers in First-Order Arithmetic
Melissa Antonelli, Ugo Dal Lago, Paolo Pistone |
CiE | 2 |
| 2021 | Resource Transition Systems and Full Abstraction for Linear Higher-Order Effectful ProgramsabstractWe 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 intensional aspects of computation, with effects, which are, instead, \emph{extensional}. We review some of the notions of equivalences for linear calculi proposed in the literature and show their limitations when applied to effectful calculi where copying is a first-class citizen. We then introduce resource transition systems, namely transition systems whose states are built over tuples of programs representing the available resources, as an operational semantics accounting for both intensional and extensional interactive behaviors of programs. Our main result is a sound and complete characterization of contextual equivalence as trace equivalence defined on top of resource transition systems. Ugo Dal Lago, Francesco Gavazzo |
FSCD | 1 |
| 2021 | The Space of InteractionabstractThe 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 literature. It has also been conjectured to provide a reasonable notion of space for the λ-calculus, but such an important result seems to be elusive.In this paper we introduce a new intersection type system precisely measuring the space consumption of the IAM on the typed term. Intersection types have been repeatedly used to measure time, which they achieve by dropping idempotency, turning intersections into multisets. Here we show that the space consumption of the IAM is connected to a further structural modification, turning multisets into trees. Tree intersection types lead to a finer understanding of some space complexity results from the literature. They also shed new light on the conjecture about reasonable space: we show that the usual way of encoding Turing machines into the λ-calculus cannot be used to prove that the space of the IAM is a reasonable cost model. Beniamino Accattoli, Ugo Dal Lago, Gabriele Vanoni |
LICS | 2 |
| 2021 | A Recursion-Theoretic Characterization of the Probabilistic Class PPabstractProbabilistic complexity classes, despite capturing the notion of feasibility, have escaped any treatment by the tools of so-called implicit-complexity. Their inherently semantic nature is of course a barrier to the characterization of classes like BPP or ZPP, but not all classes are semantic. In this paper, we introduce a recursion-theoretic characterization of the probabilistic class PP, using recursion schemata with pointers. Ugo Dal Lago, Reinhard Kahle, Isabel Oitavem |
MFCS | 1 |
| 2021 | On Higher-Order Probabilistic SubrecursionabstractWe study the expressive power of subrecursive probabilistic higher-order calculi. More specifically, we show that endowing a very expressive deterministic calculus like G\"odel'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. Along the way, we introduce a probabilistic variation of the classic reducibility technique, and we prove that the simplest form of probabilistic choice leaves the expressive power of $\mathbb{T}$ essentially unaltered. The paper ends with some observations about the functional expressive power: expectedly, all the considered calculi capture the functions which $\mathbb{T}$ itself represents, at least when standard notions of observations are considered. Flavien Breuvart, Ugo Dal Lago, Agathe Herrou |
Log. Methods Comput. Sci. | 2 |
| 2021 | The geometry of Bayesian programmingabstractAbstract We give two geometry of interaction models for a typed λ-calculus with recursion endowed with operators for sampling from a continuous uniform distribution and soft conditioning, namely a paradigmatic calculus for higher-order Bayesian programming. The models are based on the category of measurable spaces and partial measurable functions, and the category of measurable spaces and s-finite kernels, respectively. The former is proved adequate with respect to both a distribution-based and a sampling-based operational semantics, while the latter is proved adequate with respect to a sampling-based operational semantics. Ugo Dal Lago, Naohiko Hoshino |
Math. Struct. Comput. Sci. | 1 |
| 2021 | The (In)Efficiency of interactionabstractEvaluating higher-order functional programs through abstract machines inspired by the geometry of the interaction is known to induce space efficiencies, the price being 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 latter do exist, it is currently unknown how general this phenomenon is, and how far the inefficiencies can go, in the worst case. We answer these questions formulating four different well-known abstract machines inside a common definitional framework, this way being able to give sharp results about the relative time efficiencies. We also prove that non-idempotent intersection type theories are able to precisely reflect the time performances of the interactive abstract machine, this way showing that its time-inefficiency ultimately descends from the presence of higher-order types. Beniamino Accattoli, Ugo Dal Lago, Gabriele Vanoni |
Proc. ACM Program. Lang. | 2 |
| 2021 | On continuation-passing transformations and expected cost analysisabstractWe define a continuation-passing style (CPS) translation for a typed λ-calculus with probabilistic choice, unbounded recursion, and a tick operator — for modeling cost. The target language is a (non-probabilistic) λ-calculus, enriched with a type of extended positive reals and a fixpoint operator. We then show that applying the CPS transform of an expression M to the continuation λ v . 0 yields the expected cost of M . We also introduce a formal system for higher-order logic, called EHOL, prove it sound, and show it can derive tight upper bounds on the expected cost of classic examples, including Coupon Collector and Random Walk. Moreover, we relate our translation to Kaminski et al.’s ert-calculus, showing that the latter can be recovered by applying our CPS translation to (a generalization of) the classic embedding of imperative programs into λ-calculus. Finally, we prove that the CPS transform of an expression can also be used to compute pre-expectations and to reason about almost sure termination. Martin Avanzini, Gilles Barthe, Ugo Dal Lago |
Proc. ACM Program. Lang. | 3 |
| 2021 | Intersection types and (positive) almost-sure terminationabstractRandomized higher-order computation can be seen as being captured by a λ-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 simplest kind of reachability problem, can be spelled out in at least two ways, depending on whether it talks about the probability of convergence or about the expected evaluation time, the second one providing a stronger guarantee. In this paper, we show that intersection types are capable of precisely characterizing both notions of termination inside a single system of types: the probability of convergence of any λ-term can be underapproximated by its type , while the underlying derivation’s weight gives a lower bound to the term’s expected number of steps to normal form. Noticeably, both approximations are tight—not only soundness but also completeness holds. The crucial ingredient is non-idempotency, without which it would be impossible to reason on the expected number of reduction steps which are necessary to completely evaluate any term. Besides, the kind of approximation we obtain is proved to be optimal recursion theoretically: no recursively enumerable formal system can do better than that. Ugo Dal Lago, Claudia Faggian, Simona Ronchi Della Rocca |
Proc. ACM Program. Lang. | 1 |
| 2021 | Differential logical relations, part II increments and derivatives
Ugo Dal Lago, Francesco Gavazzo |
Theor. Comput. Sci. | 1 |
| 2020 | On the Versatility of Open Logical Relations - Continuity, Automatic Differentiation, and a Containment TheoremabstractAbstract Logical relations are one among 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. Informally, the problem stems from the fact that these properties are naturally expressed on terms of non-ground type (or, equivalently, on open terms of base type), and there is no apparent good definition for a base case (i.e. for closed terms of ground types). To overcome this issue, we study a generalization of the concept of a logical relation, called open logical relation , and prove that it can be fruitfully applied in several contexts in which the property of interest is about expressions of first-order type. Our setting is a simply-typed $$\lambda $$ λ -calculus enriched with real numbers and real-valued first-order functions from a given set, such as the one of continuous or differentiable functions. We first prove a containment theorem stating that for any collection of real-valued first-order functions including projection functions and closed under function composition, any well-typed term of first-order type denotes a function belonging to that collection. Then, we show by way of open logical relations the correctness of the core of a recently published algorithm for forward automatic differentiation. Finally, we define a refinement-based type system for local continuity in an extension of our calculus with conditionals, and prove the soundness of the type system using open logical relations. Gilles Barthe, Raphaëlle Crubillé, Ugo Dal Lago, Francesco Gavazzo |
ESOP | 3 |
| 2020 | Decomposing Probabilistic Lambda-CalculiabstractAbstract 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-calculus where the probabilistic operator is decomposed into two syntactic constructs: a generator, which represents a probabilistic event; and a consumer, which acts on the term depending on a given event. The resulting calculus, the Probabilistic Event Lambda-Calculus, is confluent, and interprets the call-by-name and call-by-value strategies through different interpretations of the probabilistic operator into our generator and consumer constructs. We present two notions of reduction, one via fine-grained local rewrite steps, and one by generation and consumption of probabilistic events. Simple types for the calculus are essentially standard, and they convey strong normalization. We demonstrate how we can encode call-by-name and call-by-value probabilistic evaluation. Ugo Dal Lago, Giulio Guerrieri, Willem Heijltjes |
FoSSaCS | 1 |
| 2020 | Solvability in a Probabilistic Setting (Invited Talk)abstractThe notion of solvability, crucial in the λ-calculus, is conservatively extended to a probabilistic setting, and a complete characterization of it is given. The employed technical tool is a type assignment system, based on non-idempotent intersection types, whose typable terms turn out to be precisely the terms which are solvable with nonnull probability. We also supply an operational characterization of solvable terms, through the notion of head normal form, and a denotational model of Λ_⊕, itself induced by the type system, which equates all the unsolvable terms. Simona Ronchi Della Rocca, Ugo Dal Lago, Claudia Faggian |
FSCD | 2 |
| 2020 | On Higher-Order Cryptography
Boaz Barak, Raphaëlle Crubillé, Ugo Dal Lago |
ICALP | 3 |
| 2020 | The Machinery of InteractionabstractThis 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 variant of Sands’s improvements, a natural notion of bisimulation. Moreover, our proof is carried out on a new presentation of the IAM, defined as a machine acting directly on λ-terms, rather than on linear logic proof nets. Beniamino Accattoli, Ugo Dal Lago, Gabriele Vanoni |
PPDP | 2 |
| 2020 | On the Termination Problem for Probabilistic Higher-Order Recursive Programs
Naoki Kobayashi 0001, Ugo Dal Lago, Charles Grellois |
Log. Methods Comput. Sci. | 2 |
| 2020 | On probabilistic term rewritingabstractAlmost sure termination Interpretation methodWe 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 nontrivial examples when automated.We capture probabilistic computation in a novel way by means of multidistribution reduction sequences, thus accounting for both the nondeterminism in the choice of the redex and the probabilism intrinsic in firing each rule. Martin Avanzini, Ugo Dal Lago, Akihisa Yamada 0002 |
Sci. Comput. Program. | 2 |
| 2020 | Effectful applicative similarity for call-by-name lambda calculi
Ugo Dal Lago, Francesco Gavazzo, Ryo Tanaka |
Theor. Comput. Sci. | 1 |
| 2020 | On randomised strategies in the λ-calculusabstractIn 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 with respect to classical deterministic strategies such as leftmost-outermost or rightmost-innermost. We conclude studying this strategy for two sub-λ-calculi, namely those where duplication and erasure are syntactically forbidden, showing some non-trivial properties. Ugo Dal Lago, Gabriele Vanoni |
Theor. Comput. Sci. | 1 |
| 2019 | Effectful Normal Form BisimulationabstractNormal form bisimulation, also known as open bisimulation, is a coinductive technique for higher-order program equivalence in which programs are compared by looking at their essentially infinitary tree-like normal forms, i.e. at their Böhm or Lévy-Longo trees. The technique has been shown to be useful not only when proving metatheorems about $$\lambda $$ -calculi and their semantics, but also when looking at concrete examples of terms. In this paper, we show that there is a way to generalise normal form bisimulation to calculi with algebraic effects, à la Plotkin and Power. We show that some mild conditions on monads and relators, which have already been shown to guarantee effectful applicative bisimilarity to be a congruence relation, are enough to prove that the obtained notion of bisimilarity, which we call effectful normal form bisimilarity, is a congruence relation, and thus sound for contextual equivalence. Additionally, contrary to applicative bisimilarity, normal form bisimilarity allows for enhancements of the bisimulation proof method, hence proving a powerful reasoning principle for effectful programming languages. Ugo Dal Lago, Francesco Gavazzo |
ESOP | 1 |
| 2019 | Differential Logical Relations, Part I: The Simply-Typed CaseabstractWe 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. Ugo Dal Lago, Francesco Gavazzo, Akira Yoshimizu |
ICALP | 1 |
| 2019 | Type-Based Complexity Analysis of Probabilistic Functional ProgramsabstractWe show that complexity analysis of probabilistic higher-order functional programs can be carried out compositionally by way of a type system. The introduced type system is a significant extension of refinement types. On the one hand, the presence of probabilistic effects requires adopting a form of dynamic distribution type, subject to a coupling-based subtyping discipline. On the other hand, recursive definitions are proved terminating by way of Lyapunov ranking functions. We prove not only that the obtained type system, called l\pmbRPCF, provides a sound methodology for average case complexity analysis, but also that it is extensionally complete, in the sense that any average case nolytime Turing machines can be encoded as a term typable in l\pmbRPCF. Martin Avanzini, Ugo Dal Lago, Alexis Ghyselen |
LICS | 2 |
| 2019 | On the Termination Problem for Probabilistic Higher-Order Recursive ProgramsabstractIn 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 experimental results. As a first step towards our goal, we introduce PHORS, a probabilistic extension of higher-order recursion schemes (HORS), as a model of probabilistic higher-order programs. The model of PHORS may alternatively be viewed as a higher-order extension of recursive Markov chains. We then investigate the probabilistic termination problem -- or, equivalently, the probabilistic reachability problem. We prove that almost sure termination of order-2 PHORS is undecidable. We also provide a fixpoint characterization of the termination probability of PHORS, and develop a sound (but possibly incomplete) procedure for approximately computing the termination probability. We have implemented the procedure for order-2 PHORSs, and confirmed that the procedure works well through preliminary experiments that are reported at the end of the article. Naoki Kobayashi 0001, Ugo Dal Lago, Charles Grellois |
LICS | 2 |
| 2019 | The Geometry of Bayesian ProgrammingabstractWe give a geometry of interaction model for a typed λ -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 sampling-based operational semantics. Ugo Dal Lago, Naohiko Hoshino |
LICS | 1 |
| 2019 | Implicit Computational Complexity of Subrecursive Definitions and Applications to Cryptographic Proofs
Patrick Baillot, Gilles Barthe, Ugo Dal Lago |
J. Autom. Reason. | 3 |
| 2019 | Intersection types and runtime errors in the pi-calculusabstractWe introduce a type system for the π-calculus which is designed to guarantee that typable processes are well-behaved , namely they never produce a run-time error and, even if they may diverge, there is always a chance for them to “finish their work”, i.e., to reduce to an idle process. The introduced type system is based on non-idempotent intersections, and is thus very powerful as for the class of processes it can capture. Indeed, despite the fact that the underlying property is Π 2 0 -complete, there is a way to show that the system is complete , i.e., that any well-behaved process is typable, although for obvious reasons infinitely many derivations need to be considered. Ugo Dal Lago, Marc de Visme, Damiano Mazza, Akira Yoshimizu |
Proc. ACM Program. Lang. | 1 |
| 2019 | Probabilistic Termination by Monadic Affine Sized TypingabstractWe introduce a system of monadic affine sized types, which substantially generalizes usual sized types and allows in this way to capture probabilistic higher-order programs that terminate almost surely. Going beyond plain, strong normalization 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 some affinity constraints. The proposed type system is powerful enough to type classic examples of probabilistically terminating programs such as random walks. The way typable programs are proved to be almost surely terminating is based on reducibility but requires a substantial adaptation of the technique. Ugo Dal Lago, Charles Grellois |
ACM Trans. Program. Lang. Syst. | 1 |
| 2018 | On Intersection Types and Probabilistic Lambda CalculiabstractWe define two intersection type systems for the pure, untyped, probabilistic λ-calculus, and prove that type derivations precisely reflect the probability of convergence of the underlying term. We first define a simple system of oracle intersection types in which derivations are annotated by binary strings and the probability of termination can be computed by combining all the different possible annotations. Although inevitable due to recursion theoretic limitations, the fact that (potentially) infinitely many derivations need to be considered is of course an issue when seeing types as a verification methodology. We thus develop a more complex system: the monadic intersection type system. In this second system, the probability of termination of a term is shown to be the least upper bound of the weights of its type derivations. Flavien Breuvart, Ugo Dal Lago |
PPDP | 2 |
| 2018 | On sharing, memoization, and polynomial timeabstractWe study how the adoption of an evaluation mechanism with sharing and memoization impacts the class of functions which can be computed in polynomial time. We first show how a natural cost model in which lookup for an already computed result has no cost is indeed invariant. As a corollary, we then prove that the most general notion of ramified recurrence is sound for polynomial time, this way settling an open problem in implicit computational complexity. Martin Avanzini, Ugo Dal Lago |
Inf. Comput. | 2 |
| 2017 | Metric Reasoning About \lambda -Terms: The General Case
Raphaëlle Crubillé, Ugo Dal Lago |
ESOP | 2 |
| 2017 | Probabilistic Termination by Monadic Affine Sized Typing
Ugo Dal Lago, Charles Grellois |
ESOP | 1 |
| 2017 | On Higher-Order Probabilistic Subrecursion
Flavien Breuvart, Ugo Dal Lago, Agathe Herrou |
FoSSaCS | 2 |
| 2017 | Effectful applicative bisimilarity: Monads, relators, and Howe's methodabstractWe 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 applicative bisimilarity is a congruence, thus a sound methodology for program equivalence. This is done by studying Howe's method in the abstract. Ugo Dal Lago, Francesco Gavazzo, Paul Blain Levy |
LICS | 1 |
| 2017 | The geometry of concurrent interaction: Handling multiple ports by way of multiple tokensabstractWe 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 and adequacy of the introduced model. The former is proved as a simulation result between the token machines one obtains along any reduction sequence. The latter is obtained by a fine analysis of convergence, both in nets and in token machines. Ugo Dal Lago, Ryo Tanaka, Akira Yoshimizu |
LICS | 1 |
| 2017 | The geometry of parallelism: classical, probabilistic, and quantum effectsabstractWe introduce a Geometry of Interaction model for higher-order quantum computation, and prove its adequacy for a fully fledged quantum programming language in which entanglement, duplication, and recursion are all available. Ugo Dal Lago, Claudia Faggian, Benoît Valiron, Akira Yoshimizu |
POPL | 1 |
| 2017 | Automating sized-type inference for complexity analysisabstractThis 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 cannot be handled by most competitor methodologies. This is possible due to various key ingredients, and in particular an abstract index language and index polymorphism at higher ranks. A prototype implementation is available. Martin Avanzini, Ugo Dal Lago |
Proc. ACM Program. Lang. | 2 |
| 2016 | A lambda-calculus foundation for universal probabilistic programmingabstractWe develop the operational semantics of an untyped probabilistic λ-calculus with continuous distributions, and both hard and soft constraints,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 λ-calculus to a continuous setting via creating a measure space on terms and defining step-indexed approximations. We prove equivalence of big-step and small-step formulations of this distribution-based semantics. To move closer to inference techniques, we also define the sampling-based semantics of a term as a function from a trace of random samples to a value. We show that the distribution induced by integration over the space of traces equals the distribution-based semantics. Our second contribution is to formalize the implementation technique of trace Markov chain Monte Carlo (MCMC) for our calculus and to show its correctness. A key step is defining sufficient conditions for the distribution induced by trace MCMC to converge to the distribution-based semantics. To the best of our knowledge, this is the first rigorous correctness proof for trace MCMC for a higher-order functional language, or for a language with soft constraints. Johannes Borgström, Ugo Dal Lago, Andrew D. Gordon 0001, Marcin Szymczak 0002 |
ICFP | 2 |
| 2016 | Infinitary Lambda Calculi from a Linear PerspectiveabstractWe introduce a linear infinitary λ-calculus, called ℓΛ∞, 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 ℓΔ∞, is that the refinement induced by linear logic allows to restrict both modalities so as to get calculi which are terminating inductively and productive coinductively. We exemplify this idea by analysing a fragment of ℓΛ built around the principles of SLL and 4LL. Interestingly, it enjoys confluence, contrarily to what happens in ordinary infinitary λ-calculi. Ugo Dal Lago |
LICS | 1 |
| 2016 | Higher-order interpretations and program complexity
Patrick Baillot, Ugo Dal Lago |
Inf. Comput. | 2 |
| 2016 | Computation by interaction for space-bounded functional programming
Ugo Dal Lago, Ulrich Schöpp |
Inf. Comput. | 1 |
| 2016 | On session types and polynomial timeabstractWe show how systems of session types can enforce interactions to take bounded time for all typable processes. The type system we propose is based on Lafont's soft linear logic and is strongly inspired by recent works about session types as intuitionistic linear logic formulas. Our main result is the existence, for every typable process, of a polynomial bound on the length of reduction sequences starting from it and on the size of its reducts. Ugo Dal Lago, Paolo Di Giamberardino |
Math. Struct. Comput. Sci. | 1 |
| 2016 | Light logics and higher-order processesabstractWe show that the techniques for resource control that have been developed by the so-calledlight logicscan be fruitfully applied also to process algebras. In particular, we present a restriction of higher-order π-calculus inspired by soft linear logic. We prove that any soft process terminates in polynomial time. We argue that the class of soft processes may be naturally enlarged so that interesting processes are expressible, still maintaining the polynomial bound on executions. Ugo Dal Lago, Simone Martini 0001, Davide Sangiorgi |
Math. Struct. Comput. Sci. | 1 |
| 2015 | On Coinduction and Quantum Lambda CalculiabstractIn the ubiquitous presence of linear resources in quantum computation, program equivalence in linear contexts, where programs are used or executed once, is more important than in the classical setting. We introduce a linear contextual equivalence and two notions of bisimilarity, a state-based and a distribution-based, as proof techniques for reasoning about higher-order quantum programs. Both notions of bisimilarity are sound with respect to the linear contextual equivalence, but only the distribution-based one turns out to be complete. The completeness proof relies on a characterisation of the bisimilarity as a testing equivalence. Yuxin Deng 0001, Yuan Feng 0001, Ugo Dal Lago |
CONCUR | 3 |
| 2015 | On Equivalences, Metrics, and Polynomial Time
Alberto Cappai, Ugo Dal Lago |
FCT | 2 |
| 2015 | Analysing the complexity of functional programs: higher-order meets first-orderabstractWe show how the complexity of higher-order functional programs can be analysed automatically by applying program transformations to a defunctionalised versions of them, and feeding the result to existing tools for the complexity analysis of first-order term rewrite systems. This is done while carefully analysing complexity preservation and reflection of the employed transformations such that the complexity of the obtained term rewrite system reflects on the complexity of the initial program. Further, we describe suitable strategies for the application of the studied transformations and provide ample experimental data for assessing the viability of our method. Martin Avanzini, Ugo Dal Lago, Georg Moser |
ICFP | 2 |
| 2015 | Metric Reasoning about λ-Terms: The Affine CaseabstractTerms of Church's λ-calculus can be considered equivalent along many different definitions, but context equiv-alence is certainly the most direct and universally accepted one. If the underlying calculus becomes probabilistic, however, equivalence is too discriminating: terms which have totally unrelated behaviours are treated the same as terms which behave very similarly. We study the problem of evaluating the distance between affine λ-terms. A natural generalisation of context equiv-alence, is shown to be characterised by a notion of trace distance, and to be bounded from above by a co inductively defined distance based on the Kantorovich metric on distributions. A different, again fully-abstract, tuple-based notion of trace distance is shown to be able to handle nontrivial examples. Raphaëlle Crubillé, Ugo Dal Lago |
LICS | 2 |
| 2015 | Parallelism and Synchronization in an Infinitary ContextabstractWe study multitoken interaction machines in the context of a very expressive linear logical system with exponentials, fix points and synchronization. The advantage of such machines is to provide models in the style of the Geometry of Interaction, i.e., An interactive semantics which is close to low-level implementation. On the one hand, we prove that despite the inherent complexity of the framework, interaction is guaranteed to be deadlock-free. On the other hand, the resulting logical system is powerful enough to embed PCF and to adequately model its behaviour, both when call-by-name and when call-by-value evaluation are considered. This is not the case for single-token stateless interactive machines. Ugo Dal Lago, Claudia Faggian, Benoît Valiron, Akira Yoshimizu |
LICS | 1 |
| 2015 | Implicit Computational Complexity of Subrecursive Definitions and Applications to Cryptographic Proofs
Patrick Baillot, Gilles Barthe, Ugo Dal Lago |
LPAR | 3 |
| 2015 | On Sharing, Memoization, and Polynomial TimeabstractWe study how the adoption of an evaluation mechanism with sharing and memoization impacts the class of functions which can be computed in polynomial time. We first show how a natural cost model in which lookup for an already computed result has no cost is indeed invariant. As a corollary, we then prove that the most general notion of ramified recurrence is sound for polynomial time, this way settling an open problem in implicit computational complexity. Martin Avanzini, Ugo Dal Lago |
STACS | 2 |
| 2015 | A higher-order characterization of probabilistic polynomial time
Ugo Dal Lago, Paolo Parisen Toldin |
Inf. Comput. | 1 |
| 2015 | Developments in Implicit Complexity (DICE 2012)
Ugo Dal Lago, Guillaume Bonfante |
Theor. Comput. Sci. | 1 |
| 2014 | On Probabilistic Applicative Bisimulation and Call-by-Value λ-Calculi
Raphaëlle Crubillé, Ugo Dal Lago |
ESOP | 2 |
| 2014 | Measurements in Proof Nets as Higher-Order Quantum Circuits
Akira Yoshimizu, Ichiro Hasuo, Claudia Faggian, Ugo Dal Lago |
ESOP | 4 |
| 2014 | Probabilistic Recursion Theory and Implicit Computational Complexity
Ugo Dal Lago, Sara Zuppiroli |
ICTAC | 1 |
| 2014 | On coinductive equivalences for higher-order probabilistic functional programsabstractWe study bisimulation and context equivalence in a probabilistic lambda-calculus. The contributions of this paper are threefold. Firstly we show a technique for proving congruence of probabilistic applicative bisimilarity. While the technique follows Howe's method, some of the technicalities are quite different, relying on non-trivial "disentangling" properties for sets of real numbers. Secondly we show that, while bisimilarity is in general strictly finer than context equivalence, coincidence between the two relations is attained on pure lambda-terms. The resulting equality is that induced by Levy-Longo trees, generally accepted as the finest extensional equivalence on pure lambda-terms under a lazy regime. Finally, we derive a coinductive characterisation of context equivalence on the whole probabilistic language, via an extension in which terms akin to distributions may appear in redex position. Another motivation for the extension is that its operational semantics allows us to experiment with a different congruence technique, namely that of logical bisimilarity. Ugo Dal Lago, Davide Sangiorgi, Michele Alberti |
POPL | 1 |
| 2014 | Linear dependent types in a call-by-value scenario
Ugo Dal Lago, Barbara Petit |
Sci. Comput. Program. | 1 |
| 2013 | Complexity Analysis in Presence of Control Operators and Higher-Order Functions
Ugo Dal Lago, Giulio Pellitta |
LPAR | 1 |
| 2013 | The geometry of typesabstractWe show that time complexity analysis of higher-order functional programs can be effectively reduced to an arguably simpler (although computationally equivalent) verification problem, namely checking first-order inequalities for validity. This is done by giving an efficient inference algorithm for linear dependent types which, given a PCF term, produces in output both a linear dependent type and a cost expression for the term, together with a set of proof obligations. Actually, the output type judgement is derivable iff all proof obligations are valid. This, coupled with the already known relative completeness of linear dependent types, ensures that no information is lost, i.e., that there are no false positives or negatives. Moreover, the procedure reflects the difficulty of the original problem: simple PCF terms give rise to sets of proof obligations which are easy to solve. The latter can then be put in a format suitable for automatic or semi-automatic verification by external solvers. Ongoing experimental evaluation has produced encouraging results, which are briefly presented in the paper. Ugo Dal Lago, Barbara Petit |
POPL | 1 |
| 2012 | Linear dependent types in a call-by-value scenarioabstractLinear dependent types [11] allow to precisely capture both the extensional behavior and the time complexity of λ-terms, when the latter are evaluated by Krivine's abstract machine. In this work, we show that the same paradigm can be applied to call-by-value computation. A system of linear dependent types for Plotkin's PCF is introduced, called dlPCFv whose types reflect the complexity of evaluating terms in the so-called CEK machine. dlPCFv is proved to be sound, but also relatively complete: every true statement about the extensional and intentional behavior of terms can be derived, provided all true index term inequalities can be used as assumptions. Ugo Dal Lago, Barbara Petit |
PPDP | 1 |
| 2012 | On the Invariance of the Unitary Cost Model for Head ReductionabstractThe lambda-calculus is a widely accepted computational model of higher-order functional programs, yet there is not any direct and universally accepted cost model for it. As a consequence, the computational difficulty of reducing lambda-terms to their normal form is typically studied by reasoning on concrete implementation algorithms. In this paper, we show that when head reduction is the underlying dynamics, the unitary cost model is indeed invariant. This improves on known results, which only deal with weak (call-by-value or call-by-name) reduction. Invariance is proved by way of a linear calculus of explicit substitutions, which allows to nicely decompose any head reduction step in the lambda-calculus into more elementary substitution steps, thus making the combinatorics of head-reduction easier to reason about. The technique is also a promising tool to attack what we see as the main open problem, namely understanding for which normalizing strategies the unitary cost model is invariant, if any. Beniamino Accattoli, Ugo Dal Lago |
RTA | 2 |
| 2012 | On quasi-interpretations, blind abstractions and implicit complexityabstractQuasi-interpretations are a technique for guaranteeing complexity bounds on first-order functional programs: in particular, with termination orderings, they give a sufficient condition for a program to be executable in polynomial time (Marion and Moyen 2000), which we call the P-criterion here. We study properties of the programs satisfying the P-criterion in order to improve the understanding of its intensional expressive power. Given a program, its blind abstraction is the non-deterministic program obtained by replacing all constructors with the same arity by a single one. A program is blindly polytime if its blind abstraction terminates in polynomial time. We show that all programs satisfying a variant of the P-criterion are in fact blindly polytime. Then we give two extensions of the P-criterion: one relaxing the termination ordering condition and the other (the bounded-value property) giving a necessary and sufficient condition for a program to be polynomial time executable, with memoisation. Patrick Baillot, Ugo Dal Lago, Jean-Yves Moyen |
Math. Struct. Comput. Sci. | 2 |
| 2011 | Linear Dependent Types and Relative CompletenessabstractA system of linear dependent types for the lambda calculus with full higher-order recursion, called dlPCF, is introduced and proved sound and relatively complete. Completeness holds in a strong sense: dlPCF is not only able to precisely capture the functional behaviour of PCF programs (i.e. how the output relates to the input) but also some of their intensional properties, namely the complexity of evaluating them with Krivine's Machine. dlPCF is designed around dependent types and linear logic and is parametrized on the underlying language of index terms, which can be tuned so as to sacrifice completeness for tractability. Ugo Dal Lago, Marco Gaboardi |
LICS | 1 |
| 2011 | Light logics and optimal reduction: Completeness and complexity
Patrick Baillot, Paolo Coppola 0001, Ugo Dal Lago |
Inf. Comput. | 3 |
| 2011 | Realizability models and implicit complexity
Ugo Dal Lago, Martin Hofmann 0001 |
Theor. Comput. Sci. | 1 |
| 2010 | Type Inference for Sublinear Space Functional Programming
Ugo Dal Lago, Ulrich Schöpp |
APLAS | 1 |
| 2010 | Functional Programming in Sublinear Space
Ugo Dal Lago, Ulrich Schöpp |
ESOP | 1 |
| 2010 | A Semantic Proof of Polytime Soundness of Light Affine Logic
Ugo Dal Lago, Martin Hofmann 0001 |
Theory Comput. Syst. | 1 |
| 2010 | Quantum implicit computational complexity
Ugo Dal Lago, Andrea Masini, Margherita Zorzi |
Theor. Comput. Sci. | 1 |
| 2009 | On Constructor Rewrite Systems and the Lambda-Calculus
Ugo Dal Lago, Simone Martini 0001 |
ICALP (2) | 1 |
| 2009 | On a measurement-free quantum lambda calculus with classical controlabstractWe study a measurement-free, untyped λ-calculus with quantum data and classical control. This work arises from previous proposals by Selinger and Valiron, and Van Tonder. We focus on operational and expressiveness issues, rather than (denotational) semantics. We prove subject reduction and confluence, and a standardisation theorem. Moreover, we prove the computational equivalence of the proposed calculus with a suitable class of quantum circuit families. Ugo Dal Lago, Andrea Masini, Margherita Zorzi |
Math. Struct. Comput. Sci. | 1 |
| 2009 | The geometry of linear higher-order recursionabstractImposing linearity and ramification constraints allows to weaken higher-order (primitive) recursion in such a way that the class of representable functions equals the class of polynomial-time computable functions, as the works by Leivant, Hofmann, and others show. This article shows that fine-tuning these two constraints leads to different expressive strengths, some of them lying well beyond polynomial time. This is done by introducing a new semantics, called algebraic context semantics. The framework stems from Gonthier's original work (itself a model of Girard's geometry of interaction) and turns out to be a versatile and powerful tool for the quantitative analysis of normalization in the lambda calculus with constants and higher-order recursion. Ugo Dal Lago |
ACM Trans. Comput. Log. | 1 |
| 2009 | Context semantics, linear logic, and computational complexityabstractWe show that context semantics can be fruitfully applied to the quantitative analysis of proof normalization in linear logic. In particular, context semantics lets us define the weight of a proof-net as a measure of its inherent complexity: it is both an upper bound to normalization time (modulo a polynomial overhead, independently on the reduction strategy) and a lower bound to the amount of resources needed to compute the normal form. Weights are then exploited in proving strong soundness theorems for various subsystems of linear logic, namely elementary linear logic, soft linear logic, and light linear logic. Ugo Dal Lago |
ACM Trans. Comput. Log. | 1 |
| 2008 | Light Logics and the Call-by-Value Lambda CalculusabstractThe so-called light logics have been introduced as logical systems enjoying quite remarkable normalization properties. Designing a type assignment system for pure lambda calculus from these logics, however, is problematic. In this paper we show that shifting from usual call-by-name to call-by-value lambda calculus allows regaining strong connections with the underlying logic. This will be done in the context of Elementary Affine Logic (EAL), designing a type system in natural deduction style assigning EAL formulae to lambda terms. Paolo Coppola 0001, Ugo Dal Lago, Simona Ronchi Della Rocca |
Log. Methods Comput. Sci. | 2 |
| 2008 | The weak lambda calculus as a reasonable machine
Ugo Dal Lago, Simone Martini 0001 |
Theor. Comput. Sci. | 1 |
| 2007 | Light Logics and Optimal Reduction: Completeness and ComplexityabstractTyping of lambda-terms in elementary and light affine logic (EAL , LAL resp.) has been studied for two different reasons: on the one hand the evaluation of typed terms using LAL (EAL resp.) proof-nets admits a guaranteed polynomial (elementary, resp.) bound; on the other hand these terms can also be evaluated by optimal reduction using the abstract version of Lamping's algorithm. The first reduction is global while the second one is local and asynchronous. We prove that for LAL (EAL resp.) typed terms, Lamping's abstract algorithm also admits a polynomial (elementary, resp.) bound. We also show its soundness and completeness (for EAL and LAL with type fixpoints), by using a simple geometry of interaction model (context semantics). Patrick Baillot, Paolo Coppola 0001, Ugo Dal Lago |
LICS | 3 |
| 2007 | On the Equivalence of Automaton-Based Representations of Time GranularitiesabstractA time granularity can be viewed as the partitioning of a temporal domain in groups of elements, where each group is perceived as an indivisible unit. In this paper we explore an automaton-based approach to the management of time granularity that compactly represents time granularities as single-string automata with counters, that is, Buchi automata, extended with counters, that accept a single infinite word. We focus our attention on the equivalence problem for the class of restricted labeled single-string automata (RLA for short). The equivalence problem for RLA is the problem of establishing whether two given RLA represent the same time granularity. The main contribution of the paper is the reduction of the (non-)equivalence problem for RLA to the satisfiability problem for linear diophantine equations with bounds on variables. Since the latter problem has been shown to be NP-complete, we have that the RLA equivalence problem is in co-NP. Ugo Dal Lago, Angelo Montanari, Gabriele Puppis |
TIME | 1 |
| 2007 | Compact and tractable automaton-based representations of time granularities
Ugo Dal Lago, Angelo Montanari, Gabriele Puppis |
Theor. Comput. Sci. | 1 |
| 2006 | An Invariant Cost Model for the Lambda Calculus
Ugo Dal Lago, Simone Martini 0001 |
CiE | 1 |
| 2006 | Context Semantics, Linear Logic and Computational ComplexityabstractWe show that context semantics can be fruitfully applied to the quantitative analysis of proof normalization in linear logic. In particular, context semantics lets us define the weight of a proof-net as a measure of its inherent complexity: it is both an upper bound to normalization time (modulo a polynomial overhead, independently on the reduction strategy) and a lower bound to the number of steps to normal form (for certain reduction strategies). Weights are then exploited in proving strong soundness theorems for various subsystems of linear logic, namely elementary linear logic, soft linear logic and light linear logic. Ugo Dal Lago |
LICS | 1 |
| 2006 | On light logics, uniform encodings and polynomial timeabstractLight affine logic is a variant of linear logic with a polynomial cut-elimination procedure. We study the extensional expressive power of light affine logic with respect to a general notion of encoding of functions in the setting of the Curry–Howard correspondence. We consider light affine logic with both fixpoints of formulae and second-order quantifiers, and analyse the properties of polytime soundness and polytime completeness for various fragments of this system. In particular, we show that the implicative propositional fragment is not polytime complete if we place some reasonable conditions on the encodings. Following previous work, we show that second order leads to polytime unsoundness. We then introduce simple constraints on second-order quantification and fixpoints, and prove that the fragments obtained are polytime sound and complete. Ugo Dal Lago, Patrick Baillot |
Math. Struct. Comput. Sci. | 1 |
| 2005 | Quantitative Models and Implicit Complexity
Ugo Dal Lago, Martin Hofmann 0001 |
FSTTCS | 1 |
| 2005 | The Geometry of Linear Higher-Order RecursionabstractLinearity and ramification constraints have been widely used to weaken higher-order (primitive) recursion in such a way that the class of representable functions equals the class of poly time functions. We show that fine-tuning these two constraints leads to different expressive strengths, some of them lying well beyond polynomial time. This is done by introducing a new semantics, called algebraic context semantics. The framework stems from Gonthier's original work and turns out to be a versatile and powerful tool for the quantitative analysis of normalization in presence of constants and higher-order recursion. Ugo Dal Lago |
LICS | 1 |
| 2004 | Phase semantics and decidability of elementary affine logic
Ugo Dal Lago, Simone Martini 0001 |
Theor. Comput. Sci. | 1 |
| 2001 | Calendars, Time Granularities, and Automata
Ugo Dal Lago, Angelo Montanari |
SSTD | 1 |