Cosimo Laneve

dblp:l/CosimoLaneve · DBLP profile ↗
← Back
64ranked-venue papers
24as first author
16since 2021 · last 2026
0000-0002-0052-4061ORCID · verified

Domains — the database's venue-derived domains; a paper can count in several

Theory of computation · 42 · 16 first-author · 2 since 2021Software engineering, systems software and programming languages · 25 · 10 first-author · 8 since 2021Computer networks · 3 · 2 first-author · 2 since 2021Applied, interdisciplinary, general and emerging computing · 3 · 2 first-author · 3 since 2021Systems, architecture and hardware · 1 · 1 since 2021
YearPublicationVenuePosition
2026 Deductive Verification of Legal Contracts
Reiner Hähnle, Cosimo Laneve
COORDINATION2
2026 Clause-reachability is undecidable in legal contracts
abstract
Abstract is a stateful calculus in which clauses can be activated either through interactions with the external environment or by the evaluation of time expressions. Despite the apparent simplicity of its syntax and operational model, the combination of state evolution, time reasoning, and nondeterminism gives rise to significant analytical challenges. In particular, we show that determining whether a clause is never executed is undecidable. We formally prove that this undecidability result holds even for syntactically restricted fragments: namely, the time-ahead fragment, where all time expressions are strictly positive, the instantaneous fragment, where all time expressions evaluate to zero, and the determinate fragment, where the initial states of functions and events are disjoint. On the other hand, we identify a decidable subfragment: at the intersection of the instantaneous and determinate fragments reachability becomes decidable.
Giorgio Delzanno, Cosimo Laneve, Arnaud Sangnier, Gianluigi Zavattaro
Int. J. Softw. Tools Technol. Transf.2
2026 Understanding code semantics: a benchmark study of LLMs
abstract
Abstract We present an empirical study on the ability of Large Language Models (LLMs) to understand code by detecting semantically equivalent and inequivalent programs, that is, whether they compute the same result given the same input or not. To probe this, we deliberately perturb the program text by introducing semantics-preserving code transformations, namely copy propagation and constant folding. Using a benchmark of 11 Python functions with both equivalent and non-equivalent variants, we evaluate seven state-of-the-art LLMs (including ChatGPT, Claude, Gemini, and Deep-Seek) under zero-shot prompting, with and without minimal context. Despite strong performance in code generation tasks, the models often fail in this deeper reasoning challenge, misclassifying 41% of equivalent cases without context and 29% with context. Although prompting can improve performance, it does not address the underlying limitations of the models. We argue that improving LLMs themselves, through targeted fine-tuning, contrastive learning on equivalent and nonequivalent implementations, or training on transformation-invariant code, will be necessary for robust semantic understanding. Meanwhile, practitioners can achieve better results by selecting stronger models, carefully engineering prom-pts, or writing code with tools that normalize low-level differences before inference.
Cosimo Laneve, Alvise Spanò, Dalila Ressi, Sabina Rossi, Michele Bugliesi
Int. J. Softw. Tools Technol. Transf.1
2025 Decidability Problems for Micro-Stipula
Giorgio Delzanno, Cosimo Laneve, Arnaud Sangnier, Gianluigi Zavattaro
COORDINATION2
2025 Assessing Code Understanding in LLMs
Cosimo Laneve, Alvise Spanò, Dalila Ressi, Sabina Rossi, Michele Bugliesi
FORTE1
2025 Formal Verification of Legal Contracts: A Translation-Based Approach
Reiner Hähnle, Cosimo Laneve, Adele Veschetti
iFM2
2025 A stochastic analysis of the Gasper protocol
abstract
Ethereum has recently switched to a Proof of Stake consensus protocol called Gasper. We analyze Gasper using PRISM+ , an extension of the probabilistic model checker PRISM with primitives for modeling blockchain data types . PRISM+ is therefore used to rapidly and automatically analyze the robustness of Gasper when tuning, up or down, several basic parameters of the protocol, such as network latencies and number of validators. We also study the effectiveness of Gasper in updating stakes and its resilience to three attacks: the balance, bouncing and time attacks.
Cosimo Laneve, Adele Veschetti
Comput. Commun.1
2024 Draft Better Contracts
abstract
Computable legal contracts offer a formal structure and semantics that can help identify incompatibilities among clauses, such as clauses that will never be used or clauses whose simultaneous application is impossible. In this paper we study a methodology for spotting incompatibilities in contracts written in Stipula, a domain-specific language for legal contracts. Drawing on real case laws, we identify recurring incompatible code patterns and propose techniques for integrating their analysis in the Stipula toolchain.
Cosimo Laneve, Alessandro Parenti, Giovanni Sartor
JURIX1
2024 Reachability Analysis in Micro-Stipula
abstract
Micro-Stipula is a stateful calculus defining clauses that may be either invoked by the external environment or triggered by time expressions. Because of the interplay between states, time and nondeterminism, establishing whether a clause will be ever executed – the reachability problem – is difficult. In this paper we define an analyzer that spots unreachable clauses and demonstrate its soundness.
Cosimo Laneve
PPDP1
2024 Leveraging static analysis for cost-aware serverless scheduling policies
Giuseppe De Palma, Saverio Giallorenzo, Cosimo Laneve, Jacopo Mauro, Matteo Trentin, Gianluigi Zavattaro
Int. J. Softw. Tools Technol. Transf.3
2023 Legal Contracts Amending with Stipula
Cosimo Laneve, Alessandro Parenti, Giovanni Sartor
COORDINATION1
2023 Stochastic modeling and analysis of the bitcoin protocol in the presence of block communication delays
abstract
International audience
Stefano Bistarelli, Rocco De Nicola, Letterio Galletta, Cosimo Laneve, Ivan Mercanti, Adele Veschetti
Concurr. Comput. Pract. Exp.4
2023 Resilience of Hybrid Casper Under Varying Values of Parameters
abstract
Hybrid Casper is the new Ethereum blockchain protocol that uses both Proof of Work and Proof of Stake to reach a consensus between nodes. Here, we analyze the protocol using PRISM+ , an extension of the probabilistic model checker PRISM with primitives for expressing blockchain data types. First, we extend PRISM+ to include data types and operations for modeling and analyzing Proof of Stake based consensus protocols. Then, we model Hybrid Casper in PRISM+ as a parallel composition of stochastic processes, thus precisely describing the behavior of the protocol and highlighting its corner cases. PRISM+ is therefore used to rapidly and automatically analyze the resilience of Hybrid Casper when tuning, up or down, several basic parameters of the protocol, such as the rates of creating blocks, and the strategies for determining penalties. Finally, we study the robustness of Hybrid Casper to two well-known attacks: the Eclipse attack and the majority attack.
Letterio Galletta, Cosimo Laneve, Ivan Mercanti, Adele Veschetti
Distributed Ledger Technol. Res. Pract.2
2023 Liquidity analysis in resource-aware programming
abstract
Liquidity is a liveness property of programs managing resources that pinpoints those programs not freezing any resource forever. We consider a simple stateful language whose resources are assets (digital currencies, non fungible tokens, etc.). Then we define a type system that tracks in a symbolic way the input-output behaviour of functions with respect to assets. These types and their composition, which define types of computations, allow us to design two algorithms for liquidity that have different precisions and costs. We also demonstrate the correctness of the algorithms.
Cosimo Laneve
J. Log. Algebraic Methods Program.1
2023 Pacta sunt servanda: Legal contracts in Stipula
abstract
We present Stipula, a domain specific language that may assist legal practitioners in programming legal contracts through specific patterns. The language is based on a small set of programming abstractions that correspond to common patterns in legal contracts. We illustrate the language by means of two paradigmatic legal contracts: a bike rental and a bet contract. Stipula comes with a formal semantics, an observational equivalence and a type inference system, that provide for a clear account of the contracts' behaviour and illustrate how several concepts from concurrency theory can be adapted to automatically verify the properties and the correctness of software-based legal contracts. We also discuss a prototype centralized implementation of Stipula.
Silvia Crafa, Cosimo Laneve, Giovanni Sartor, Adele Veschetti
Sci. Comput. Program.2
2021 Analysis of smart contracts balances
abstract
We define a technique for analyzing updates of smart contracts balances due to transfers of digital assets. The analysis addresses a lightweight smart contract language and consists of a two-step translation. First, we define the input-output behaviors of smart contract functions by means of a simple functional language with static dispatch. Then we associate the terms of this intermediate language with cost equations that compute the loss or gain of digital assets. The resulting equations can be fed to an off-the-shelf cost analyzer to provide upper bounds to the loss or gain. Our analysis has been prototyped and we report its assessments and discuss extensions with additional features.
Cosimo Laneve, Claudio Sacerdoti Coen
Blockchain Res. Appl.1
2019 A lightweight deadlock analysis for programs with threads and reentrant locks
Cosimo Laneve
Sci. Comput. Program.1
2018 A Lightweight Deadlock Analysis for Programs with Threads and Reentrant Locks
Cosimo Laneve
FM1
2017 Analysis of Synchronisations in Stateful Active Objects
Ludovic Henrio, Cosimo Laneve, Vincenzo Mastandrea
IFM2
2017 Deadlock Detection of Java Bytecode
Cosimo Laneve, Abel Garcia
LOPSTR1
2017 Deadlock analysis of unbounded process networks
Naoki Kobayashi 0001, Cosimo Laneve
Inf. Comput.2
2017 Static analysis of cloud elasticity
Abel Garcia, Cosimo Laneve, Michael Lienhardt
Sci. Comput. Program.2
2016 Actors may synchronize, safely!
abstract
We study deadlock detection in an actor model with wait-by-necessity synchronizations, a lightweight technique that synchronizes invocations when the corresponding values are strictly needed. This approach relies on the use of futures that are not given an explicit "Future" type. The approach we adopt explicits the synchronization on futures, and on the availability of some values, instead of the synchronization on the termination of a process existing in previous works. This way we are able to analyse the data-flow synchronization inherent to languages that feature wait-by-necessity. We provide a type-system and a solver inferring the type of a program so that deadlocks can be identified statically. As a consequence we can automatically verify the absence of deadlocks in actor programs with wait-by-necessity synchronizations.
Elena Giachino, Ludovic Henrio, Cosimo Laneve, Vincenzo Mastandrea
PPDP3
2016 A framework for deadlock detection in core ABS
Elena Giachino, Cosimo Laneve, Michael Lienhardt
Softw. Syst. Model.2
2015 Static analysis of cloud elasticity
abstract
We propose a static analysis technique that computes upper bounds of virtual machine usages in a concurrent language with explicit acquire and release operations of virtual machines. In our language it is possible to delegate other (ad-hoc or third party) concurrent code to release virtual machines (by passing them as arguments of invocations). Our technique is modular and consists of (i) a type system associating programs with behavioural types that records relevant information for resource usage (creations, releases, and concurrent operations), (ii) a translation function that takes behavioural types and return cost equations, and (iii) an automatic off-the-shelf solver for the cost equations. A soundness proof of the type system establishes the correctness of our technique with respect to the cost equations. We have experimentally evaluated our technique using a cost analysis solver and we report some results. The experiments show that our analysis allows us to derive bounds for programs that are better than other techniques, such as those based on amortized analysis.
Abel Garcia, Cosimo Laneve, Michael Lienhardt
PPDP2
2015 An algebraic theory for web service contracts
abstract
Abstract We study the foundations of Web service technologies for connecting abstract and concrete service definitions and for discovering services according to their observable behavior. We pursue this study addressing a subset of BPEL activities that include concurrency constructs. We present a formal semantics—called compliance preorder —of this subset of BPEL and we define a behavioral type discipline that guarantees the correctness of client-server interactions. The types of our discipline, called contracts , are De Nicola and Hennessy tau-less, finite-state CCS processes. We show that contracts are BPEL normal forms according to the compliance preorder and that the compliance preorder does coincide with a well-known equivalence in concurrency theory, the must-testing preorder . The compliace preorder is not fully adequate for discovering Web services though, since it does not support width and depth extensions of Web services. To address this issue, we propose a sound generalization of the compliance preorder, called subcontract relation , that admits a notion of principal service contract—the dual contract —compliant with a given client contract and that exhibits good precongruence properties when choreographies of Web services are considered.
Cosimo Laneve, Luca Padovani
Formal Aspects Comput.1
2014 Deadlock Analysis of Unbounded Process Networks
Elena Giachino, Naoki Kobayashi 0001, Cosimo Laneve
CONCUR3
2014 Towards the Typing of Resource Deployment
Elena Giachino, Cosimo Laneve
ISoLA (2)2
2013 Deadlock Analysis of Concurrent Objects: Theory and Practice
Elena Giachino, Carlo Augusto Grazia, Cosimo Laneve, Michael Lienhardt, Peter Y. H. Wong
IFM3
2013 An Algebraic Theory for Web Service Contracts
Cosimo Laneve, Luca Padovani
IFM1
2012 Decidability Problems for Actor Systems
Frank S. de Boer, Mohammad Mahdi Jaghoori, Cosimo Laneve, Gianluigi Zavattaro
CONCUR3
2010 The Expressive Power of Synchronizations
abstract
A synchronization is a mechanism allowing two or more processes to perform actions at the same time. We study the expressive power of synchronizations gathering more and more processes simultaneously. We demonstrate the non-existence of a uniform, fully distributed translation of Milner's CCS with synchronizations of $n+1$ processes into CCS with synchronizations of $n$ processes that retains a "reasonable'' semantics. We then extend our study to CCS with symmetric synchronizations allowing a process to perform both inputs and outputs at the same time. We demonstrate that synchronizations containing more than three input/output items are encodable in those with three items, while there is an expressivity gap between three and two.
Cosimo Laneve, Antonio Vitale
LICS1
2009 PiDuce - A project for experimenting Web services technologies
Samuele Carpineti, Cosimo Laneve, Luca Padovani
Sci. Comput. Program.2
2008 nanoK: A calculus for the modeling and simulation of nano devices
Alberto Credi, Marco Garavelli, Cosimo Laneve, Sylvain Pradalier, Serena Silvi, Gianluigi Zavattaro
Theor. Comput. Sci.3
2008 A simple calculus for proteins and cells
Cosimo Laneve, Fabien Tarissan
Theor. Comput. Sci.1
2007 The Must Preorder Revisited
Cosimo Laneve, Luca Padovani
CONCUR1
2007 Linear forwarders
Philippa Gardner, Cosimo Laneve, Lucian Wischik
Inf. Comput.2
2006 A Basic Contract Language for Web Services
Samuele Carpineti, Cosimo Laneve
ESOP2
2006 Smooth Orchestrators
Cosimo Laneve, Luca Padovani
FoSSaCS1
2005 Foundations of Web Transactions
Cosimo Laneve, Gianluigi Zavattaro
FoSSaCS1
2004 Formal molecular biology
Vincent Danos, Cosimo Laneve
Theor. Comput. Sci.2
2003 Linear Forwarders
Philippa Gardner, Cosimo Laneve, Lucian Wischik
CONCUR2
2003 Core Formal Molecular Biology
Vincent Danos, Cosimo Laneve
ESOP2
2003 Solos In Concert
abstract
We present a calculus of mobile processes without prefix or summation, called the solos calculus. Using two different encodings, we show that the solos calculus can express both action prefix and guarded summation. One encoding gives a strong correspondence, but uses a match operator; the other yields a slightly weaker correspondence, but uses no additional operators. We also show that the expressive power of the solos calculus is still retained by the sub-calculus where actions carry at most two names. On the other hand, expressiveness is lost in the solos calculus without match and with actions carrying at most one name.
Cosimo Laneve, Björn Victor
Math. Struct. Comput. Sci.1
2003 A type system for JVM threads
Cosimo Laneve
Theor. Comput. Sci.1
2002 Orchestrating Transactions in Join Calculus
Roberto Bruni 0001, Cosimo Laneve, Ugo Montanari
CONCUR2
2002 The Fusion Machine
Philippa Gardner, Cosimo Laneve, Lucian Wischik
CONCUR2
2001 Bisimulations in the join-calculus
Cédric Fournet, Cosimo Laneve
Theor. Comput. Sci.2
2000 Inheritance in the Join Calculus
Cédric Fournet, Cosimo Laneve, Luc Maranget, Didier Rémy
FSTTCS2
1999 Solos in Concert
Cosimo Laneve, Björn Victor
ICALP1
1997 Implicit Typing à la ML for the Join-Calculus
Cédric Fournet, Cosimo Laneve, Luc Maranget, Didier Rémy
CONCUR2
1997 On the Dynamics of Sharing Graphs
Andrea Asperti, Cosimo Laneve
ICALP2
1996 The Discriminating Power of Multiplicities in the Lambda-Calculus
Gérard Boudol, Cosimo Laneve
Inf. Comput.2
1996 Axiomatizing Permutation Equivalence
abstract
We axiomatizepermutation equivalencein term rewriting systems and Klop’s orthogonal Combinatory Reduction Systems (Klop 1980). The axioms for the former are provided by the general approach proposed by Meseguer (Meseguer 1992). The latter need extra axioms modelling the interplay between reductions and the operation of substitution. As a consequence of this work, the definition of permutation equivalence is rid of residual calculi, which are heavy in general.
Cosimo Laneve, Ugo Montanari
Math. Struct. Comput. Sci.1
1996 Interaction Systems II: The Practice of Optimal Reductions
Andrea Asperti, Cosimo Laneve
Theor. Comput. Sci.2
1995 Split and ST Bisimulation Semantics
Roberto Gorrieri, Cosimo Laneve
Inf. Comput.2
1995 Paths, Computations and Labels in the lambda-Calculus
Andrea Asperti, Cosimo Laneve
Theor. Comput. Sci.2
1994 Paths in the lambda-calculus
abstract
Since the rebirth of /spl lambda/-calculus in the late 1960s, three major theoretical investigations of /spl beta/-reduction have been undertaken: (1) Levy's (1978) analysis of families of redexes (and the associated concept of labeled reductions); (2) Lamping's (1990) graph-reduction algorithm; and (3) Girard's (1988) geometry of interaction. All three studies happened to make crucial (if not always explicit) use of the notion of a path, namely and respectively: legal paths, consistent paths and regular paths. We prove that these are equivalent to each other.>
Andrea Asperti, Vincent Danos, Cosimo Laneve, Laurent Regnier
LICS3
1994 Distributive Evaluations of lambda-calculus
abstract
In this paper we address the problem of encoding evaluation strategies for the λ-calculus into prime event structures. In order for this to be possible the derivation spaces yielded by the evaluation mechanism must be prime algebraic cpo's. This requirement is not met by permutation equivalence (the standard concurrent semantics with which λ-calculus is equipped) since the derivation spaces it yields are upper semi-lattices. We solve this problem by taking the coarsest congruence contained in permutation equivalence such that permutations of disjoint reductions are equated and the downward closure of every derivation is a distributive lattice. This equivalence, called distributive permutation equivalence, is characterized directly by restricting permutations of redexes to those sets U which are distributive, i.e. for every u ∈ U, the development of every V ⊆ (U\{u}) does not duplicate or delete u. A simple consequence of our results is that the derivation spaces of the call-by-value λ-calculus are distributive lattices. Finally, we show that a sequential evaluation mechanism can not, in general, be effectively transformed into a maximally distributive one.
Cosimo Laneve
Fundam. Informaticae1
1994 Interaction Systems I: The Theory of Optimal Reductions
abstract
We introduce a new class of higher order rewriting systems, called Interaction Systems (IS's). IS's are derived from Lafont's (Intuitionistic) Interaction Nets (Lafont 1990) by dropping the linearity constraint. In particular, we borrow from Interaction Nets the syntactical bipartitions of operators into constructors and destructors and the principle of binary interaction. As a consequence, IS's are a subclass of Klop's Combinatory Reduction Systems (Klop 1980), where the Curry-Howard analogy still ‘makes sense’. Destructors and constructors, respectively, correspond to left and right logical introduction rules: interaction is cut and reduction is cut-elimination. Interaction Systems have been primarily motivated by the necessity of extending the practice of optimal evaluators for λ-calculus (Lamping 1990; Gonthier et al. 1992a) to other computational constructs such as conditionals and recursion. In this paper we focus on the theoretical aspects of optimal reductions. In particular, we generalize the family relation in Lévy (1978; 1980), thus defining the amount of sharing an optimal evaluator is required to perform. We reinforce our notion of family by approaching it in two different ways (generalizing labelling and extraction in Levy (1980)) and proving their coincidence. The reader is referred to Asperti and Laneve (1993c) for the paradigmatic description of optimal evaluators of IS's.
Andrea Asperti, Cosimo Laneve
Math. Struct. Comput. Sci.2
1993 Paths, Computations and Labels in the Lambda-Calculus
Andrea Asperti, Cosimo Laneve
RTA2
1992 Mobility in the CC-Paradigm
Cosimo Laneve, Ugo Montanari
MFCS1
1991 The Limit of Split_n-Bisimulations for CCS Agents
Roberto Gorrieri, Cosimo Laneve
MFCS2
1989 An Expressive Temporal Logic for Basic LOTOS
Alessandro Fantechi, Stefania Gnesi, Cosimo Laneve
FORTE3