USING HIGHER-ORDER CONTRACTS TO MODEL SESSION TYPES

被引:18
|
作者
Bernardi, Giovanni [1 ]
Hennessy, Matthew [2 ]
机构
[1] IMDEA Software Inst, Madrid, Spain
[2] Trinity Coll Dublin, Sch Stat & Comp Sci, OReilly Inst, Dublin 2, Ireland
关键词
recursive subtyping; higher-order types; duality; contract compliance; testing preorders; LANGUAGE PRIMITIVES; DISCIPLINE;
D O I
10.2168/LMCS-12(2:10)2016
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Session types are used to describe and structure interactions between independent processes in distributed systems. Higher-order types are needed in order to properly structure delegation of responsibility between processes. In this paper we show that higher-order web-service contracts can be used to provide a fully-abstract model of recursive higher-order session types. The model is set-theoretic, in the sense that the meaning of a contract is given in terms of the set of contracts with which it complies. A crucial step in the proof of full-abstraction is showing that every contract has at least one other contract with which it complies.
引用
收藏
页数:43
相关论文
共 50 条
  • [1] Locations and Session Types in a Language with Higher-Order Reflection
    Tran, Michael
    Bendixen, Alexander Ronning
    Bojesen, Bjarke Bredow
    Huttel, Hans
    Lybech, Stian Lasse
    [J]. PROCEEDINGS OF THE 9TH ACM SIGPLAN INTERNATIONAL WORKSHOP ON PROGRAMMING BASED ON ACTORS, AGENTS, AND DECENTRALIZED CONTROL (AGERE '19), 2019, : 31 - 40
  • [2] Monitors and Blame Assignment for Higher-Order Session Types
    Jia, Limin
    Gommerstadt, Hannah
    Pfenning, Frank
    [J]. ACM SIGPLAN NOTICES, 2016, 51 (01) : 582 - 594
  • [3] Polymorphic higher-order context-free session types
    Costa, Diana
    Mordido, Andreia
    Pocas, Diogo
    Vasconcelos, Vasco T.
    [J]. THEORETICAL COMPUTER SCIENCE, 2024, 1001
  • [4] Temporal Higher-Order Contracts
    Disney, Tim
    Flanagan, Cormac
    McCarthy, Jay
    [J]. ACM SIGPLAN NOTICES, 2011, 46 (09) : 176 - 188
  • [5] Contracts for higher-order functions
    Findler, RB
    Felleisen, M
    [J]. ACM SIGPLAN NOTICES, 2002, 37 (09) : 48 - 59
  • [6] Temporal Higher-Order Contracts
    Disney, Tim
    Flanagan, Cormac
    McCarthy, Jay
    [J]. ICFP 11 - PROCEEDINGS OF THE 2011 ACM SIGPLAN: INTERNATIONAL CONFERENCE ON FUNCTIONAL PROGRAMMING, 2011, : 176 - 188
  • [7] Contracts for Higher-Order Functions
    Findler, Robert Bruce
    Felleisen, Matthias
    [J]. ACM SIGPLAN NOTICES, 2013, 48 (04) : 34 - 45
  • [8] Higher-order Context-free Session Types in System F
    Costa, Diana
    Mordido, Andreia
    Pocas, Diogo
    Vasconcelos, Vasco T.
    [J]. ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2022, (356): : 24 - 35
  • [9] Modelling session types using contracts
    Bernardi, Giovanni
    Hennessy, Matthew
    [J]. MATHEMATICAL STRUCTURES IN COMPUTER SCIENCE, 2016, 26 (03) : 510 - 560
  • [10] Types and Higher-Order Recursion Schemes for Verification of Higher-Order Programs
    Kobayashi, Naoki
    [J]. ACM SIGPLAN NOTICES, 2009, 44 (01) : 416 - 428