Declarative Pearl: Rigged Contracts

被引:0
|
作者
Vandenbroucke, Alexander [1 ]
Schrijvers, Tom [1 ]
机构
[1] Katholieke Univ Leuven, Leuven, Belgium
关键词
semiring; financial contract; domain-specific language;
D O I
10.1007/978-981-97-2300-3_6
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Over 20 years ago, Peyton Jones et al. embarked on an adventure in financial engineering with their functional pearl on "Composing Contracts". They introduced a combinator library-a domain-specific language-for precisely describing complex financial contracts and a formal denotational semantics for computing their value, for which they briefly sketched an implementation. This paper reworks the design of their library to make the central datatype of contracts less ad-hoc by giving it a well-understood algebraic structure: the semiring. Then, interpreting a contract's worth as a generic semiring homomorphism directly gives rise to a natural semantics for contracts, of which computing the (monetary) value is but one instance.
引用
收藏
页码:99 / 114
页数:16
相关论文
共 50 条
  • [1] Are Incentive Contracts Rigged by Powerful CEOs?
    Morse, Adair
    Nanda, Vikram
    Seru, Amit
    JOURNAL OF FINANCE, 2011, 66 (05): : 1779 - 1821
  • [2] Declarative Smart Contracts
    Chen, Haoxian
    Whitters, Gerald
    Amiri, Mohammad Javad
    Wang, Yuepeng
    Loo, Boon Thau
    PROCEEDINGS OF THE 30TH ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2022, 2022, : 281 - 293
  • [3] Incentive Contracts are not Rigged by Powerful CEOs
    Wan, Kam-Ming
    CRITICAL FINANCE REVIEW, 2014, 3 (01): : 99 - 152
  • [4] Pure, declarative, and constructive arithmetic relations (declarative pearl)
    Kiselyov, Oleg
    Byrd, William E.
    Friedman, Daniel P.
    Shan, Chung-Chieh
    FUNCTIONAL AND LOGIC PROGRAMMING, 2008, 4989 : 64 - 80
  • [5] Undoing dynamic typing (declarative pearl)
    Benton, Nick
    FUNCTIONAL AND LOGIC PROGRAMMING, 2008, 4989 : 224 - 238
  • [6] Declarative Pearl: Deriving Monadic Quicksort
    Mu, Shin-Cheng
    Chiang, Tsung-Ju
    FUNCTIONAL AND LOGIC PROGRAMMING, FLOPS 2020, 2020, 12073 : 124 - 138
  • [7] On legal contracts, imperative and declarative smart contracts, and blockchain systems
    Guido Governatori
    Florian Idelberger
    Zoran Milosevic
    Regis Riveret
    Giovanni Sartor
    Xiwei Xu
    Artificial Intelligence and Law, 2018, 26 : 377 - 409
  • [8] On legal contracts, imperative and declarative smart contracts, and blockchain systems
    Governatori, Guido
    Idelberger, Florian
    Milosevic, Zoran
    Riveret, Regis
    Sartor, Giovanni
    Xu, Xiwei
    ARTIFICIAL INTELLIGENCE AND LAW, 2018, 26 (04) : 377 - 409
  • [9] Gigahorse: Thorough, Declarative Decompilation of Smart Contracts
    Grech, Neville
    Brent, Lexi
    Scholz, Bernhard
    Smaragdakis, Yannis
    2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2019), 2019, : 1176 - 1186
  • [10] Fully Verifying Transformation Contracts for Declarative ATL
    Oakes, Bentley James
    Troya, Javier
    Lucio, Levi
    Wimmer, Manuel
    2015 ACM/IEEE 18TH INTERNATIONAL CONFERENCE ON MODEL DRIVEN ENGINEERING LANGUAGES AND SYSTEMS (MODELS), 2015, : 256 - 265