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.
机构:
School of Computer and Communication Engineering, University of Science and Technology Beijing, BeijingSchool of Computer and Communication Engineering, University of Science and Technology Beijing, Beijing
Fan Y.
Wang D.
论文数: 0引用数: 0
h-index: 0
机构:
College of Control Science and Engineering, Zhejiang University, HangzhouSchool of Computer and Communication Engineering, University of Science and Technology Beijing, Beijing
Wang D.
Lin H.
论文数: 0引用数: 0
h-index: 0
机构:
School of Computer and Communication Engineering, University of Science and Technology Beijing, BeijingSchool of Computer and Communication Engineering, University of Science and Technology Beijing, Beijing
Lin H.
Chen E.
论文数: 0引用数: 0
h-index: 0
机构:
School of Computer and Communication Engineering, University of Science and Technology Beijing, BeijingSchool of Computer and Communication Engineering, University of Science and Technology Beijing, Beijing
Chen E.
He X.
论文数: 0引用数: 0
h-index: 0
机构:
School of Computer and Communication Engineering, University of Science and Technology Beijing, BeijingSchool of Computer and Communication Engineering, University of Science and Technology Beijing, Beijing
He X.
Zhu Y.
论文数: 0引用数: 0
h-index: 0
机构:
School of Computer and Communication Engineering, University of Science and Technology Beijing, BeijingSchool of Computer and Communication Engineering, University of Science and Technology Beijing, Beijing
机构:
Univ Kebangsaan Malaysia, Fac Econ & Management, Bangi, Malaysia
Univ Kebangsaan Malaysia, Inst Islam Hadhari, Bangi, MalaysiaInst Strateg Res, Tehran, Iran
Abdul-Rahman, Aisyah
Said, Fathin Faizah
论文数: 0引用数: 0
h-index: 0
机构:
Univ Kebangsaan Malaysia, Fac Econ & Management, Bangi, MalaysiaInst Strateg Res, Tehran, Iran
Said, Fathin Faizah
Nor, Nor Ghani Md
论文数: 0引用数: 0
h-index: 0
机构:
Univ Kebangsaan Malaysia, Fac Econ & Management, Bangi, MalaysiaInst Strateg Res, Tehran, Iran