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.

Pacta sunt servanda: Legal contracts in Stipula / Silvia Crafa; Cosimo Laneve; Giovanni Sartor; Adele Veschetti. - In: SCIENCE OF COMPUTER PROGRAMMING. - ISSN 0167-6423. - STAMPA. - 225:(2023), pp. 102911.1-102911.21. [10.1016/j.scico.2022.102911]

Pacta sunt servanda: Legal contracts in Stipula

Cosimo Laneve;Giovanni Sartor;Adele Veschetti
2023

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.
2023
Pacta sunt servanda: Legal contracts in Stipula / Silvia Crafa; Cosimo Laneve; Giovanni Sartor; Adele Veschetti. - In: SCIENCE OF COMPUTER PROGRAMMING. - ISSN 0167-6423. - STAMPA. - 225:(2023), pp. 102911.1-102911.21. [10.1016/j.scico.2022.102911]
Silvia Crafa; Cosimo Laneve; Giovanni Sartor; Adele Veschetti
File in questo prodotto:
File Dimensione Formato  
Stipula.pdf

embargo fino al 01/12/2024

Tipo: Postprint
Licenza: Licenza per Accesso Aperto. Creative Commons Attribuzione - Non commerciale - Non opere derivate (CCBYNCND)
Dimensione 720.98 kB
Formato Adobe PDF
720.98 kB Adobe PDF   Visualizza/Apri   Contatta l'autore

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11585/912506
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 3
  • ???jsp.display-item.citation.isi??? 1
social impact