Declarative Pearl: Rigged Contracts

被引:0
|
作者
Vandenbroucke, Alexander [1 ]
Schrijvers, Tom [1 ]
机构
[1] Katholieke Univ Leuven, Leuven, Belgium
来源
FUNCTIONAL AND LOGIC PROGRAMMING, FLOPS 2024 | 2024年 / 14659卷
关键词
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
相关论文
共 22 条
  • [1] The Selection of Power Physical Contracts and Financial Contracts
    Ding Jie
    Yuan Chao
    Li Tian-ran
    Sun Ren-jie
    2019 IEEE 2ND INTERNATIONAL CONFERENCE ON ELECTRONICS AND COMMUNICATION ENGINEERING (ICECE 2019), 2019, : 407 - 411
  • [2] Cropbox: a declarative crop modelling framework
    Yun, Kyungdahm
    Kim, Soo-Hyung
    IN SILICO PLANTS, 2023, 5 (01):
  • [3] AMSDL: a Declarative Language for Adaptive Monitoring Control
    Aouadj, Messaoud
    Desprats, Thierry
    Lavinal, Emmanuel
    Sibilla, Michelle
    PROCEEDINGS OF THE 2015 IFIP/IEEE INTERNATIONAL SYMPOSIUM ON INTEGRATED NETWORK MANAGEMENT (IM), 2015, : 850 - 853
  • [4] A Declarative Grammar of Flexible Volume Visualization Pipelines
    Shih, Min
    Rozhon, Charles
    Ma, Kwan-Liu
    IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, 2019, 25 (01) : 1050 - 1059
  • [5] JQuery: A generic code browser with a declarative configuration language
    De Volder, K
    PRACTICAL ASPECTS OF DECLARATIVE LANGUAGES, 2006, 3819 : 88 - 102
  • [6] Declarative specifications for the development of multi-agent systems
    Challenger, Moharram
    Mernik, Marjan
    Kardas, Geylani
    Kosar, Tomaz
    COMPUTER STANDARDS & INTERFACES, 2016, 43 : 91 - 115
  • [7] Fuzzysplit: demultiplexing and trimming sequenced DNA with a declarative language
    Liu, Daniel
    PEERJ, 2019, 7
  • [8] Building orchestrated microservice systems using declarative business processes
    Davi Monteiro
    Paulo Henrique M. Maia
    Lincoln S. Rocha
    Nabor C. Mendonça
    Service Oriented Computing and Applications, 2020, 14 : 243 - 268
  • [9] Building orchestrated microservice systems using declarative business processes
    Monteiro, Davi
    Maia, Paulo Henrique M.
    Rocha, Lincoln S.
    Mendonca, Nabor C.
    SERVICE ORIENTED COMPUTING AND APPLICATIONS, 2020, 14 (04) : 243 - 268
  • [10] Automated Execution of Financial Contracts on Blockchains
    Egelund-Muller, Benjamin
    Elsman, Martin
    Henglein, Fritz
    Ross, Omri
    BUSINESS & INFORMATION SYSTEMS ENGINEERING, 2017, 59 (06) : 457 - 467