Skip to main content

Showing 1–23 of 23 results for author: Avanzini, M

Searching in archive cs. Search in all archives.
.
  1. arXiv:2504.18441  [pdf, ps, other

    cs.LO

    Expectation-based Analysis of Higher-Order Quantum Programs

    Authors: Martin Avanzini, Alejandro Díaz-Caro, Emmanuel Hainry, Romain Péchoux

    Abstract: The paper extends the expectation transformer based analysis of higher-order probabilistic programs to the quantum higher-order setting. The quantum language we are considering can be seen as an extension of PCF, featuring unbounded recursion. The language admits classical and quantum data, as well as a tick operator to account for costs. Our quantum expectation transformer translates such program… ▽ More

    Submitted 25 April, 2025; originally announced April 2025.

  2. arXiv:2411.18094  [pdf, other

    cs.CR

    Comprehensive Kernel Safety in the Spectre Era: Mitigations and Performance Evaluation (Extended Version)

    Authors: Davide Davoli, Martin Avanzini, Tamara Rezk

    Abstract: The efficacy of address space layout randomization has been formally demonstrated in a shared-memory model by Abadi et al., contingent on specific assumptions about victim programs. However, modern operating systems, implementing layout randomization in the kernel, diverge from these assumptions and operate on a separate memory model with communication through system calls. In this work, we relax… ▽ More

    Submitted 11 April, 2025; v1 submitted 27 November, 2024; originally announced November 2024.

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

  3. arXiv:2407.17127  [pdf, ps, other

    cs.LO

    A quantitative probabilistic relational Hoare logic

    Authors: Martin Avanzini, Gilles Barthe, Davide Davoli, Benjamin Grégoire

    Abstract: We introduce eRHL, a program logic for reasoning about relational expectation properties of pairs of probabilistic programs. eRHL is quantitative, i.e., its pre- and post-conditions take values in the extended non-negative reals. Thanks to its quantitative assertions, eRHL overcomes randomness alignment restrictions from prior logics, including PRHL, a popular relational program logic used to reas… ▽ More

    Submitted 8 January, 2025; v1 submitted 24 July, 2024; originally announced July 2024.

  4. arXiv:2406.07278  [pdf, ps, other

    cs.CR

    On Kernel's Safety in the Spectre Era (Extended Version)

    Authors: Davide Davoli, Martin Avanzini, Tamara Rezk

    Abstract: The efficacy of address space layout randomization has been formally demonstrated in a shared-memory model by Abadi et al., contingent on specific assumptions about victim programs. However, modern operating systems, implementing layout randomization in the kernel, diverge from these assumptions and operate on a separate memory model with communication through system calls. In this work, we relax… ▽ More

    Submitted 11 April, 2025; v1 submitted 11 June, 2024; originally announced June 2024.

  5. arXiv:2312.13657  [pdf, ps, other

    cs.LO

    On the Hardness of Analyzing Quantum Programs Quantitatively

    Authors: Martin Avanzini, Georg Moser, Romain Péchoux, Simon Perdrix

    Abstract: In this paper, we study quantitative properties of quantum programs. Properties of interest include (positive) almost-sure termination, expected runtime or expected cost, that is, for example, the expected number of applications of a given quantum gate, etc. After studying the completeness of these problems in the arithmetical hierarchy over the Clifford+T fragment of quantum mechanics, we express… ▽ More

    Submitted 21 December, 2023; originally announced December 2023.

  6. arXiv:2304.01284  [pdf, ps, other

    cs.PL

    Automated Expected Value Analysis of Recursive Programs

    Authors: Martin Avanzini, Georg Moser, Michael Schaper

    Abstract: In this work, we study the fully automated inference of expected result values of probabilistic programs in the presence of natural programming constructs such as procedures, local variables and recursion. While crucial, capturing these constructs becomes highly non-trivial. The key contribution is the definition of a term representation, denoted as infer[.], translating a pre-expectation semantic… ▽ More

    Submitted 24 April, 2023; v1 submitted 3 April, 2023; originally announced April 2023.

    Comments: Accepted at PLDI'23

  7. arXiv:2201.09361  [pdf, ps, other

    quant-ph cs.LO cs.PL

    Quantum Expectation Transformers for Cost Analysis

    Authors: Martin Avanzini, Georg Moser, Romain Péchoux, Simon Perdrix, Vladimir Zamdzhiev

    Abstract: We introduce a new kind of expectation transformer for a mixed classical-quantum programming language. Our semantic approach relies on a new notion of a cost structure, which we introduce and which can be seen as a specialisation of the Kegelspitzen of Keimel and Plotkin. We show that our weakest precondition analysis is both sound and adequate with respect to the operational semantics of the lang… ▽ More

    Submitted 23 January, 2022; originally announced January 2022.

  8. arXiv:1908.11343  [pdf, ps, other

    cs.PL cs.LO

    Modular Runtime Complexity Analysis of Probabilistic While Programs

    Authors: Martin Avanzini, Michael Schaper, Georg Moser

    Abstract: We are concerned with the average case runtime complexity analysis of a prototypical imperative language endowed with primitives for sampling and probabilistic choice. Taking inspiration from known approaches from to the modular resource analysis of non-probabilistic programs, we investigate how a modular runtime analysis is obtained for probabilistic programs.

    Submitted 23 August, 2019; originally announced August 2019.

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

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

  11. GUBS Upper Bound Solver (Extended Abstract)

    Authors: Martin Avanzini, Michael Schaper

    Abstract: In this extended abstract we present the GUBS Upper Bound Solver. GUBS is a dedicated constraint solver over the naturals for inequalities formed over uninterpreted function symbols and standard arithmetic operations. GUBS now forms the backbone of HoSA, a tool for analysing space and time complexity of higher-order functional programs automatically. We give insights about the implemen- tation and… ▽ More

    Submitted 18 April, 2017; originally announced April 2017.

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

    ACM Class: D.2.4; F.4.0

    Journal ref: EPTCS 248, 2017, pp. 17-23

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

  13. arXiv:1506.05043  [pdf, ps, other

    cs.LO cs.CC

    Analysing the Complexity of Functional Programs: Higher-Order Meets First-Order (Long Version)

    Authors: Martin Avanzini, Ugo Dal Lago, Georg Moser

    Abstract: We show how the complexity of higher-order functional programs can be analysed automatically by applying program transformations to a defunctionalized 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 c… ▽ More

    Submitted 16 June, 2015; originally announced June 2015.

    Comments: Long version of paper presented at ICFP 2015

    ACM Class: F.3.2

  14. arXiv:1501.00894  [pdf, ps, other

    cs.CC

    On Sharing, Memoization, and Polynomial Time (Long Version)

    Authors: Martin Avanzini, Ugo Dal Lago

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

    Submitted 5 January, 2015; originally announced January 2015.

    ACM Class: F.1.3; F.3.2; F.4.1; F.4.2

  15. arXiv:1312.7284  [pdf, ps, other

    cs.LO cs.CC

    A New Term Rewriting Characterisation of ETIME functions

    Authors: Martin Avanzini, Naohi Eguchi

    Abstract: Adopting former term rewriting characterisations of polytime and exponential-time computable functions, we introduce a new reduction order, the Path Order for ETIME (POE* for short), that is sound and complete for ETIME computable functions. The proposed reduction order for ETIME makes contrasts to those related complexity classes clear.

    Submitted 30 December, 2013; v1 submitted 27 December, 2013; originally announced December 2013.

    Comments: Technical report

  16. Polynomial Path Orders

    Authors: Martin Avanzini, Georg Moser

    Abstract: This paper is concerned with the complexity analysis of constructor term rewrite systems and its ramification in implicit computational complexity. We introduce a path order with multiset status, the polynomial path order POP*, that is applicable in two related, but distinct contexts. On the one hand POP* induces polynomial innermost runtime complexity and hence may serve as a syntactic, and full… ▽ More

    Submitted 30 October, 2013; v1 submitted 10 September, 2013; originally announced September 2013.

    Comments: LMCS version. This article supersedes arXiv:1209.3793

    Journal ref: Logical Methods in Computer Science, Volume 9, Issue 4 (November 1, 2013) lmcs:807

  17. arXiv:1307.2328  [pdf, ps, other

    cs.PL

    A Haskell Library for Term Rewriting

    Authors: Bertram Felgenhauer, Martin Avanzini, Christian Sternagel

    Abstract: We present a Haskell library for first-order term rewriting covering basic operations on positions, terms, contexts, substitutions and rewrite rules. This effort is motivated by the increasing number of term rewriting tools that are written in Haskell.

    Submitted 8 July, 2013; originally announced July 2013.

    Comments: 1st International Workshop on Haskell And Rewriting Techniques, HART 2013, 6 pages

  18. arXiv:1302.0973  [pdf, ps, other

    cs.CC

    A Combination Framework for Complexity

    Authors: Martin Avanzini, Georg Moser

    Abstract: In this paper we present a combination framework for polynomial complexity analysis of term rewrite systems. The framework covers both derivational and runtime complexity analysis. We present generalisations of powerful complexity techniques, notably a generalisation of complexity pairs and (weak) dependency pairs. Finally, we also present a novel technique, called dependency graph decomposition,… ▽ More

    Submitted 5 February, 2013; originally announced February 2013.

    ACM Class: F.1.3; F.3.2; F.4.1; F.4.2

  19. arXiv:1209.3793  [pdf, ps, other

    cs.CC

    Polynomial Path Orders: A Maximal Model

    Authors: Martin Avanzini, Georg Moser

    Abstract: This paper is concerned with the automated complexity analysis of term rewrite systems (TRSs for short) and the ramification of these in implicit computational complexity theory (ICC for short). We introduce a novel path order with multiset status, the polynomial path order POP*. Essentially relying on the principle of predicative recursion as proposed by Bellantoni and Cook, its distinct feature… ▽ More

    Submitted 17 September, 2012; originally announced September 2012.

    ACM Class: F.2.2; F.4.1; F.4.2; D.2.4; D.2.8

  20. arXiv:1201.2553  [pdf, ps, other

    cs.CC

    A New Order-theoretic Characterisation of the Polytime Computable Functions

    Authors: Martin Avanzini, Naohi Eguchi, Georg Moser

    Abstract: We propose a new order, the small polynomial path order (sPOP* for short). The order sPOP* provides a characterisation of the class of polynomial time computable function via term rewrite systems. Any polynomial time computable function gives rise to a rewrite system that is compatible with sPOP*. On the other hand any function defined by a rewrite system compatible with sPOP* is polynomial time c… ▽ More

    Submitted 16 January, 2012; v1 submitted 12 January, 2012; originally announced January 2012.

    Comments: Technical Report

    ACM Class: F.2.2; F.4.1; F.4.2; D.2.4; D.2.8

  21. arXiv:1010.1128  [pdf, ps, other

    cs.CC

    A Path Order for Rewrite Systems that Compute Exponential Time Functions (Technical Report)

    Authors: Martin Avanzini, Naohi Eguchi, Georg Moser

    Abstract: In this paper we present a new path order for rewrite systems, the exponential path order EPOSTAR. Suppose a term rewrite system is compatible with EPOSTAR, then the runtime complexity of this rewrite system is bounded from above by an exponential function. Furthermore, the class of function computed by a rewrite system compatible with EPOSTAR equals the class of functions computable in exponentia… ▽ More

    Submitted 9 June, 2011; v1 submitted 6 October, 2010; originally announced October 2010.

    Comments: Technical Report

    MSC Class: 03D15

  22. arXiv:1001.5404  [pdf, ps, other

    cs.CC cs.LO

    Efficient Implementation of Rewriting Revisited Technical Report

    Authors: Martin Avanzini, Georg Moser

    Abstract: Recently, many techniques have been introduced that allow the (automated) classification of the runtime complexity of term rewrite systems (TRSs for short). In earlier work, the authors have shown that for confluent TRSs, innermost polynomial runtime complexity induces polytime computability of the functions defined. In this paper, we generalise the above result to full rewriting. Following our… ▽ More

    Submitted 8 June, 2011; v1 submitted 29 January, 2010; originally announced January 2010.

    Comments: Submitted to RTA 2010

    ACM Class: F.1.2; F.1.3; F.4.2

  23. arXiv:0904.0981  [pdf, ps, other

    cs.LO cs.AI cs.CC cs.SC

    Dependency Pairs and Polynomial Path Orders

    Authors: Martin Avanzini, Georg Moser

    Abstract: We show how polynomial path orders can be employed efficiently in conjunction with weak innermost dependency pairs to automatically certify polynomial runtime complexity of term rewrite systems and the polytime computability of the functions computed. The established techniques have been implemented and we provide ample experimental data to assess the new method.

    Submitted 8 June, 2011; v1 submitted 6 April, 2009; originally announced April 2009.

    Comments: 23 pages, conference version accepted at RTA 2009