Abstract
Task-oriented programming (top) is a new programming paradigm for specifying multi-user workflows. To reason formally about top programs, a formal language called TopHat has been designed, together with its operational semantics. For proving properties about task-oriented programs, it is desirable to know when two TopHat-programs are semantically equivalent. This paper aims to answer this question. We show that a task can be in either one of five conditions, and for every two tasks in the same condition, we define what it means for them to be semantically equivalent. Using this definition, we study a number of transformation laws for TopHat-programs, which can be used by developers and compilers to optimise top-programs. We show that the operation on types in TopHat is a functor but cannot be a monad. We support our findings with proofs formalised in the dependently typed programming language Idris.
Original language | English |
---|---|
Title of host publication | Trends in Functional Programming - 23rd International Symposium, TFP 2022, Revised Selected Papers |
Editors | Wouter Swierstra, Nicolas Wu |
Publisher | Springer Nature |
Pages | 100-125 |
Number of pages | 26 |
ISBN (Electronic) | 9783031213144 |
ISBN (Print) | 9783031213137 |
DOIs | |
Publication status | Published - 2022 |
Event | 23rd International Symposium on Trends in Functional Programming, TFP 2022 - Virtual, Online Duration: 17 Mar 2022 → 18 Mar 2022 https://trendsfp.github.io/2022/ |
Publication series
Series | Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) |
---|---|
Volume | 13401 LNCS |
ISSN | 0302-9743 |
Symposium
Symposium | 23rd International Symposium on Trends in Functional Programming, TFP 2022 |
---|---|
Period | 17/03/22 → 18/03/22 |
Internet address |
Keywords
- Formal semantics
- Program equivalence
- Task-oriented programming