Corecursion and Non-Divergence in Session Types

Bernardo Toninho, Luis Caires, Frank Pfenning
<span title="2018-06-19">2018</span>
Session types are widely accepted as an expressive discipline for structuring communications in concurrent and distributed systems. In order to express infinitely unbounded sessions, session typed languages often include general recursion which may introduce undesirable divergence, e.g., infinite unobservable reduction sequences. In this paper we address, by means of typing, the challenge of ensuring non-divergence in a session-typed π-calculus with general (co)recursion, while still allowing
more &raquo; ... teresting infinite behaviors to be definable. Our approach builds on a Curry-Howard correspondence between our type system and linear logic extended with co-inductive types, for which our non-divergence property implies consistency. We prove type safety for our framework, implying protocol compliance and global progress of well-typed processes. We also establish, using a logical relation argument, that well-typed processes are compositionally non-divergent, that is, that no well-typed composition of processes, including those dynamically assembled via name passing, can result in divergent behavior.
<span class="external-identifiers"> <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/10.1184/r1/6604511">doi:10.1184/r1/6604511</a> <a target="_blank" rel="external noopener" href="https://fatcat.wiki/release/lo3yoaqrlna37ei2e62u6bpxea">fatcat:lo3yoaqrlna37ei2e62u6bpxea</a> </span>
<a target="_blank" rel="noopener" href="https://web.archive.org/web/20200211220853/https://s3-eu-west-1.amazonaws.com/pstorage-cmu-348901238291901/12094916/file.pdf" title="fulltext PDF download" data-goatcounter-click="serp-fulltext" data-goatcounter-title="serp-fulltext"> <button class="ui simple right pointing dropdown compact black labeled icon button serp-button"> <i class="icon ia-icon"></i> Web Archive [PDF] <div class="menu fulltext-thumbnail"> <img src="https://blobs.fatcat.wiki/thumbnail/pdf/48/6b/486b2fd8b16b71dd4884bc08a5c17d3df69fcd9a.180px.jpg" alt="fulltext thumbnail" loading="lazy"> </div> </button> </a> <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/10.1184/r1/6604511"> <button class="ui left aligned compact blue labeled icon button serp-button"> <i class="external alternate icon"></i> Publisher / doi.org </button> </a>