Composing contracts

Simon Peyton Jones, Jean‐Marc Eber, Julian Seward

ACM SIGPLAN Notices · 2000 · 40 citations · 5 references

DOIFull text

Open access

Concepts

Abstract

Financial and insurance contracts do not sound like promising territory for functional programming and formal semantics, but in fact we have discovered that insights from programming languages bear directly on the complex subject of describing and valuing a large class of contracts.We introduce a combinator library that allows us to describe such contracts precisely, and a compositional denotational semantics that says what such contracts are worth. We sketch an implementation of our combinator library in Haskell. Interestingly, lazy evaluation plays a crucial role.

References

5