首页 > 最新文献

Journal of Logical and Algebraic Methods in Programming最新文献

英文 中文
The correctness of concurrencies in (reversible) concurrent calculi (可逆)并发演算中并发的正确性
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-10-20 DOI: 10.1016/j.jlamp.2023.100924
Clément Aubert

This article designs a general principle to check the correctness of the definition of concurrency (a.k.a. independence) of events for concurrent calculi. Concurrency relations are central in process algebras, but also two-sided: they are often defined independently on composable and on coinitial transitions, and no criteria exist to assess whether they “interact correctly”. This article starts by examining how reversibility can provide such a correctness of concurrencies criterion, and its implications. It then defines, for the first time, a syntactical definition of concurrency for CCSK, a reversible declension of the calculus of communicating systems. To do so, according to our criterion, requires to define concurrency relations for all types of transitions along two axes: direction (forward or backward) and concomitance (coinitial or composable). Our definition is uniform thanks to proved transition systems and satisfies our sanity checks: square properties, sideways diamonds, but also the reversible checks (reverse diamonds and causal consistency). We also prove that our formalism is either equivalent to or a refinement of pre-existing definitions of concurrency for reversible systems. We conclude by discussing additional criteria and possible future works.

本文设计了一个通用原则来检查并发演算的事件并发性(即独立性)定义的正确性。并发关系是过程代数的中心,但也是双面的:它们通常在可组合和共初转换上独立定义,并且没有标准来评估它们是否“正确交互”。本文首先研究可逆性如何提供这种并发性标准的正确性及其含义。然后,它首次定义了CCSK并发性的语法定义,这是通信系统演算的可逆衰落。要做到这一点,根据我们的标准,需要为沿两个轴的所有类型的转换定义并发关系:方向(向前或向后)和伴随性(共初始或可组合)。由于证明了过渡系统,我们的定义是统一的,并且满足我们的完整性检查:正方形属性,侧面菱形,以及可逆检查(反向菱形和因果一致性)。我们还证明了我们的形式等价于或改进了可逆系统的并发性的已有定义。最后,我们讨论了其他标准和可能的未来工作。
{"title":"The correctness of concurrencies in (reversible) concurrent calculi","authors":"Clément Aubert","doi":"10.1016/j.jlamp.2023.100924","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100924","url":null,"abstract":"<div><p><span>This article designs a general principle to check the correctness of the definition of concurrency (a.k.a. independence) of events for concurrent calculi. Concurrency relations are central in process algebras, but also two-sided: they are often defined independently on composable and on coinitial transitions, and no criteria exist to assess whether they “interact correctly”. This article starts by examining how reversibility can provide such a correctness of concurrencies criterion, and its implications. It then defines, for the first time, a syntactical definition of concurrency for </span><span>CCSK</span>, a reversible declension of the calculus of communicating systems. To do so, according to our criterion, requires to define concurrency relations for all types of transitions along two axes: direction (forward or backward) and concomitance (coinitial or composable). Our definition is uniform thanks to proved transition systems and satisfies our sanity checks: square properties, sideways diamonds, but also the reversible checks (reverse diamonds and causal consistency). We also prove that our formalism is either equivalent to or a refinement of pre-existing definitions of concurrency for reversible systems. We conclude by discussing additional criteria and possible future works.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100924"},"PeriodicalIF":0.9,"publicationDate":"2023-10-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91959655","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 2
Control-data separation and logical condition propagation for efficient inference on probabilistic programs 基于控制数据分离和逻辑条件传播的概率程序高效推理
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-10-05 DOI: 10.1016/j.jlamp.2023.100922
Ichiro Hasuo , Yuichiro Oyabu , Clovis Eberhart , Kohei Suenaga , Kenta Cho , Shin-ya Katsumata

We present a novel sampling framework for probabilistic programs. The framework combines two recent ideas—control-data separation and logical condition propagation—in a nontrivial manner so that the two ideas boost the benefits of each other. We implemented our algorithm on top of Anglican. The experimental results demonstrate our algorithm's efficiency, especially for programs with while loops and rare observations.

我们提出了一种新的概率规划抽样框架。该框架以一种非凡的方式结合了两种最新的思想——控制-数据分离和逻辑条件传播,从而使这两种思想相互促进。我们在英国国教的基础上实现了我们的算法。实验结果证明了该算法的有效性,特别是对于具有while循环和罕见观测值的程序。
{"title":"Control-data separation and logical condition propagation for efficient inference on probabilistic programs","authors":"Ichiro Hasuo ,&nbsp;Yuichiro Oyabu ,&nbsp;Clovis Eberhart ,&nbsp;Kohei Suenaga ,&nbsp;Kenta Cho ,&nbsp;Shin-ya Katsumata","doi":"10.1016/j.jlamp.2023.100922","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100922","url":null,"abstract":"<div><p>We present a novel sampling framework for probabilistic programs. The framework combines two recent ideas—<em>control-data separation</em> and <em>logical condition propagation</em>—in a nontrivial manner so that the two ideas boost the benefits of each other. We implemented our algorithm on top of Anglican. The experimental results demonstrate our algorithm's efficiency, especially for programs with while loops and rare observations.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100922"},"PeriodicalIF":0.9,"publicationDate":"2023-10-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91959643","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
A dynamic logic with branching modalities 具有分支形式的动态逻辑
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-10-02 DOI: 10.1016/j.jlamp.2023.100921
Yuanrui Zhang , Zhiming Liu

We propose a dynamic logic DLb called “dynamic logic with branching modalities”, which extends the temporal dynamic logic DLT with a “branching modality” for specifying safety properties of regular programs with tests (simply “regular programs”). Compared to the trace modality of DLT for while programs that do not abort, branching modality of DLb does not exclude aborting traces introduced by regular programs, thus is able to capture a type of safety properties which are important for systems with failure behaviors. Moreover, it is congruent to the compositionality of regular programs so that the proof system naturally extended from that of DLT is proved to be complete for DLb. In this paper, we build the theory of DLb on both propositional and first-ordered levels, defining two logics: propositional DLb (PDLb) and first-ordered DLb (FODLb). PDLb forms the theoretical basis of DLb while FODLb is useful for practical verification. We propose the proof systems for PDLb and FODLb, and analyze their decidability, soundness and (relative) completeness in a formal way, through comparing their expressiveness and deduction capabilities with propositional dynamic logic (PDL) and first-order dynamic logic (FODL) respectively. We show that FODLb is actually an extension of DLT, and illustrate the motivations of using the branching modality through an example.

我们提出了一种动态逻辑DLb,称为“带分支模态的动态逻辑”,它扩展了具有“分支模态”的时态动态逻辑DLT,用于指定带测试的常规程序(简称“常规程序”)的安全属性。与不中止程序的DLT的跟踪模式相比,DLb的分支模式不排除常规程序引入的中止跟踪,因此能够捕获一种对具有故障行为的系统很重要的安全属性。此外,它与正则规划的组合性是一致的,从而证明了从DLT的证明系统自然延伸出来的DLT的证明系统是完备的。在本文中,我们在命题和一阶层次上建立了DLb理论,定义了两种逻辑:命题DLb (PDLb)和一阶DLb (FODLb)。PDLb是DLb的理论基础,而FODLb则可用于实际验证。我们提出了PDLb和FODLb的证明系统,并通过比较它们与命题动态逻辑(PDL)和一阶动态逻辑(FODL)的表达和演绎能力,从形式化的角度分析了它们的可判决性、稳健性和(相对)完备性。我们展示了FODLb实际上是DLT的扩展,并通过一个示例说明了使用分支模式的动机。
{"title":"A dynamic logic with branching modalities","authors":"Yuanrui Zhang ,&nbsp;Zhiming Liu","doi":"10.1016/j.jlamp.2023.100921","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100921","url":null,"abstract":"<div><p>We propose a dynamic logic <span><math><msub><mrow><mi>DL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> called “dynamic logic with branching modalities”, which extends the temporal dynamic logic DLT with a “branching modality” for specifying safety properties of regular programs with tests (simply “regular programs”). Compared to the trace modality of DLT for <em>while</em> programs that do not abort, branching modality of <span><math><msub><mrow><mi>DL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> does not exclude aborting traces introduced by regular programs, thus is able to capture a type of safety properties which are important for systems with failure behaviors. Moreover, it is congruent to the compositionality of regular programs so that the proof system naturally extended from that of DLT is proved to be complete for <span><math><msub><mrow><mi>DL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span>. In this paper, we build the theory of <span><math><msub><mrow><mi>DL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> on both propositional and first-ordered levels, defining two logics: propositional <span><math><msub><mrow><mi>DL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> (<span><math><msub><mrow><mi>PDL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span>) and first-ordered <span><math><msub><mrow><mi>DL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> (<span><math><msub><mrow><mi>FODL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span>). <span><math><msub><mrow><mi>PDL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> forms the theoretical basis of <span><math><msub><mrow><mi>DL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> while <span><math><msub><mrow><mi>FODL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> is useful for practical verification. We propose the proof systems for <span><math><msub><mrow><mi>PDL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> and <span><math><msub><mrow><mi>FODL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span>, and analyze their decidability, soundness and (relative) completeness in a formal way, through comparing their expressiveness and deduction capabilities with propositional dynamic logic (PDL) and first-order dynamic logic (FODL) respectively. We show that <span><math><msub><mrow><mi>FODL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> is actually an extension of DLT, and illustrate the motivations of using the branching modality through an example.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100921"},"PeriodicalIF":0.9,"publicationDate":"2023-10-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"49875055","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
An efficient canonical narrowing implementation with irreducibility and SMT constraints for generic symbolic protocol analysis 用于通用符号协议分析的具有不可约性和SMT约束的高效规范化窄化实现
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-10-01 DOI: 10.1016/j.jlamp.2023.100895
Raúl López-Rueda, Santiago Escobar, Julia Sapiña

Narrowing and unification are very useful tools for symbolic analysis of rewrite theories, and thus for any model that can be specified in that way. A very clear example of their application is the field of formal cryptographic protocol analysis, which is why narrowing and unification are used in tools such as Maude-NPA, Tamarin and Akiss. In this work we present the implementation of a canonical narrowing algorithm, which improves the standard narrowing algorithm, extended to be able to process rewrite theories with conditional rules. The conditions of the rules will contain SMT constraints, which will be carried throughout the execution of the algorithm to determine if the solutions have associated satisfiable or unsatisfiable constraints, and in the latter case, discard them.

缩小和统一对于重写理论的符号分析是非常有用的工具,因此对于任何可以以这种方式指定的模型都是如此。它们应用的一个非常明显的例子是形式加密协议分析领域,这就是为什么在Maude-NPA, Tamarin和Akiss等工具中使用窄化和统一。在这项工作中,我们提出了一个规范缩小算法的实现,它改进了标准缩小算法,扩展到能够处理具有条件规则的重写理论。规则的条件将包含SMT约束,这些约束将在算法的整个执行过程中进行,以确定解决方案是否具有相关的可满足或不可满足的约束,在后者的情况下,丢弃它们。
{"title":"An efficient canonical narrowing implementation with irreducibility and SMT constraints for generic symbolic protocol analysis","authors":"Raúl López-Rueda,&nbsp;Santiago Escobar,&nbsp;Julia Sapiña","doi":"10.1016/j.jlamp.2023.100895","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100895","url":null,"abstract":"<div><p>Narrowing and unification are very useful tools for symbolic analysis of rewrite theories, and thus for any model that can be specified in that way. A very clear example of their application is the field of formal cryptographic protocol analysis, which is why narrowing and unification are used in tools such as Maude-NPA, Tamarin and Akiss. In this work we present the implementation of a canonical narrowing algorithm, which improves the standard narrowing algorithm, extended to be able to process rewrite theories with conditional rules. The conditions of the rules will contain SMT constraints, which will be carried throughout the execution of the algorithm to determine if the solutions have associated satisfiable or unsatisfiable constraints, and in the latter case, discard them.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"135 ","pages":"Article 100895"},"PeriodicalIF":0.9,"publicationDate":"2023-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"49876057","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
ElixirST: A session-based type system for Elixir modules ElixirST: Elixir模块的基于会话的类型系统
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-10-01 DOI: 10.1016/j.jlamp.2023.100891
Adrian Francalanza, Gerard Tabone

This paper investigates the adaptation of session types to provide behavioural information about Elixir modules. We devise a type system, called ElixirST, which statically determines whether functions in an Elixir module observe their endpoint specifications, expressed as session types; a corresponding tool automating this typechecking has also been constructed. In this paper we also formally validate this type system. An LTS-based operational semantics for the language fragment supported by the type system is developed, modelling its runtime behaviour when interacting with the module client. This operational semantics is then used to prove a form of session fidelity and progress for ElixirST.

本文研究了会话类型的适应性,以提供关于Elixir模块的行为信息。我们设计了一个类型系统,称为ElixirST,它静态地确定Elixir模块中的函数是否遵守其端点规范,表示为会话类型;还构建了一个相应的工具来自动化此类型检查。本文还对该类型系统进行了形式化验证。为类型系统支持的语言片段开发了基于lts的操作语义,在与模块客户端交互时对其运行时行为进行建模。然后使用这个操作语义来证明ElixirST的会话保真度和进度。
{"title":"ElixirST: A session-based type system for Elixir modules","authors":"Adrian Francalanza,&nbsp;Gerard Tabone","doi":"10.1016/j.jlamp.2023.100891","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100891","url":null,"abstract":"<div><p>This paper investigates the adaptation of session types to provide behavioural information about Elixir modules. We devise a type system, called <span>ElixirST</span><span>, which statically determines whether functions in an Elixir module observe their endpoint specifications, expressed as session types; a corresponding tool automating this typechecking has also been constructed. In this paper we also formally validate this type system. An LTS-based operational semantics for the language fragment supported by the type system is developed, modelling its runtime behaviour when interacting with the module client. This operational semantics is then used to prove a form of session fidelity and progress for </span><span>ElixirST</span>.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"135 ","pages":"Article 100891"},"PeriodicalIF":0.9,"publicationDate":"2023-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"49876050","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 1
Fundamentals of compositional rewriting theory 作文重写理论的基本原理
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-10-01 DOI: 10.1016/j.jlamp.2023.100893
Nicolas Behr , Russ Harmer , Jean Krivine

A foundational theory of compositional categorical rewriting theory is presented, based on a collection of fibration-like properties that collectively induce and intrinsically structure the large collection of lemmata used in the proofs of theorems such as concurrency and associativity. The resulting highly generic proofs of these theorems are given. It is noteworthy that the proof of the concurrency theorem takes only a few lines and, while that of associativity remains somewhat longer, it would be unreadably long if written directly in terms of the basic lemmata. In essence, our framework improves the readability and ease of comprehension of these proofs by exposing latent modularity. A curated list of known instances of our framework is used to conclude the paper with a detailed discussion of the conditions under which the Double Pushout and Sesqui-Pushout semantics of graph transformation are compositional.

本文提出了组合范畴改写理论的一个基本理论,该理论是基于一组纤维状性质的集合,这些性质共同诱导并内在地构造了用于并发性和结合性等定理证明的大量引理集合。给出了这些定理的高通用性证明。值得注意的是,并发定理的证明只需要几行,而结合定理的证明仍然有些长,如果直接用基本引理来写,它将是不可读的长。从本质上讲,我们的框架通过暴露潜在的模块化来提高这些证明的可读性和易于理解性。我们使用了一个已知的框架实例列表来总结本文,并详细讨论了图变换的Double Pushout和Sesqui-Pushout语义组合的条件。
{"title":"Fundamentals of compositional rewriting theory","authors":"Nicolas Behr ,&nbsp;Russ Harmer ,&nbsp;Jean Krivine","doi":"10.1016/j.jlamp.2023.100893","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100893","url":null,"abstract":"<div><p>A foundational theory of compositional categorical rewriting theory is presented, based on a collection of fibration-like properties that collectively induce and intrinsically structure the large collection of lemmata used in the proofs of theorems such as concurrency and associativity. The resulting highly generic proofs of these theorems are given. It is noteworthy that the proof of the concurrency theorem takes only a few lines and, while that of associativity remains somewhat longer, it would be unreadably long if written directly in terms of the basic lemmata. In essence, our framework improves the readability and ease of comprehension of these proofs by exposing latent modularity. A curated list of known instances of our framework is used to conclude the paper with a detailed discussion of the conditions under which the Double Pushout and Sesqui-Pushout semantics of graph transformation are compositional.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"135 ","pages":"Article 100893"},"PeriodicalIF":0.9,"publicationDate":"2023-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"49876053","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 4
Liquidity analysis in resource-aware programming 资源感知规划中的流动性分析
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-10-01 DOI: 10.1016/j.jlamp.2023.100889
Cosimo Laneve

Liquidity is a liveness property of programs managing resources that pinpoints those programs not freezing any resource forever. We consider a simple stateful language whose resources are assets (digital currencies, non fungible tokens, etc.). Then we define a type system that tracks in a symbolic way the input-output behavior of functions with respect to assets. These types and their composition, which define types of computations, allow us to design two algorithms for liquidity that have different precisions and costs. We also demonstrate the correctness of the algorithms.

流动性是管理资源的程序的活跃属性,它指出那些程序不会永远冻结任何资源。我们考虑一种简单的有状态语言,其资源是资产(数字货币、不可替代的令牌等)。然后,我们定义了一个类型系统,它以符号的方式跟踪函数的输入-输出行为。这些类型及其组成定义了计算类型,允许我们为流动性设计两种具有不同精度和成本的算法。我们还证明了算法的正确性。
{"title":"Liquidity analysis in resource-aware programming","authors":"Cosimo Laneve","doi":"10.1016/j.jlamp.2023.100889","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100889","url":null,"abstract":"<div><p>Liquidity is a liveness property of programs managing resources that pinpoints those programs not freezing any resource forever. We consider a simple stateful language whose resources are assets (digital currencies, non fungible tokens, etc.). Then we define a type system that tracks in a symbolic way the input-output behavior of functions with respect to assets. These types and their composition, which define types of computations, allow us to design two algorithms for liquidity that have different precisions and costs. We also demonstrate the correctness of the algorithms.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"135 ","pages":"Article 100889"},"PeriodicalIF":0.9,"publicationDate":"2023-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"49876049","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Program equivalence in a typed probabilistic call-by-need functional language 类型化概率按需调用函数语言中的程序等价
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-10-01 DOI: 10.1016/j.jlamp.2023.100904
M. Schmidt-Schauß, David Sabel
{"title":"Program equivalence in a typed probabilistic call-by-need functional language","authors":"M. Schmidt-Schauß, David Sabel","doi":"10.1016/j.jlamp.2023.100904","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100904","url":null,"abstract":"","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"44 1","pages":"100904"},"PeriodicalIF":0.9,"publicationDate":"2023-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"54463367","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Composition of synchronous communicating systems 同步通信系统的组成
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-10-01 DOI: 10.1016/j.jlamp.2023.100890
Franco Barbanera , Ivan Lanese , Emilio Tuosto

Communication is an essential element of modern software, yet programming and analysing communicating systems are difficult tasks.

A reason for this difficulty is the lack of compositional mechanisms that preserve relevant communication properties. This problem has been recently addressed for the well-known model of communicating systems, that is sets of components consisting of finite-state machines capable of exchanging messages. Two communicating systems can be composed by selecting one component per system, and transforming both of them into coupled gateways connecting the two systems. More precisely, a gateway forwards a message received from within its system to the other gateway, which then delivers the message to the other system. Suitable compatibility conditions between gateways have been proved sufficient for this composition mechanism to preserve properties such as deadlock freedom for asynchronous as well as symmetric synchronous communications (where sender and receiver play the same part in determining which message to exchange).

The present paper gives a comprehensive treatment of the case of synchronous communications. We consider both symmetric synchronous communications and asymmetric synchronous communications (where senders decide independently which message should be exchanged). The composition mechanism preserves different properties under different conditions depending on the considered type of synchronous communication. We show here that preservation of lock freedom requires an additional condition on gateways for asymmetric communication. Such condition is also needed for preservation of deadlock freedom, lock freedom or strong lock freedom for symmetric communications. This is not needed, instead, for preservation of either deadlock freedom or strong lock freedom with asymmetric interactions.

通信是现代软件的基本要素,然而编程和分析通信系统是一项艰巨的任务。造成这种困难的一个原因是缺乏保持相关通信属性的组合机制。这个问题最近在著名的通信系统模型中得到了解决,该模型是由能够交换消息的有限状态机组成的组件集。每个系统选择一个组件,并将其转换为连接两个系统的耦合网关,即可组成两个通信系统。更准确地说,网关将从其系统内接收到的消息转发给另一个网关,然后由另一个网关将消息传递给另一个系统。网关之间适当的兼容性条件已被证明足以使这种组合机制保留诸如异步和对称同步通信的死锁自由等属性(发送方和接收方在确定要交换哪条消息时扮演相同的角色)。本文对同步通信的情况作了全面的讨论。我们考虑对称同步通信和非对称同步通信(发送方独立决定应该交换哪条消息)。根据所考虑的同步通信类型,组合机制在不同条件下保留不同的属性。我们在这里表明,为了保持锁自由,需要在网关上附加一个非对称通信的条件。对称通信的死锁自由、锁自由或强锁自由也需要这样的条件。相反,对于保留死锁自由或具有非对称交互的强锁自由来说,这是不需要的。
{"title":"Composition of synchronous communicating systems","authors":"Franco Barbanera ,&nbsp;Ivan Lanese ,&nbsp;Emilio Tuosto","doi":"10.1016/j.jlamp.2023.100890","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100890","url":null,"abstract":"<div><p>Communication is an essential element of modern software, yet programming and analysing communicating systems are difficult tasks.</p><p>A reason for this difficulty is the lack of compositional mechanisms that preserve relevant communication properties. This problem has been recently addressed for the well-known model of <em>communicating systems</em>, that is sets of components consisting of finite-state machines capable of exchanging messages. Two communicating systems can be composed by selecting one component per system, and transforming both of them into coupled gateways connecting the two systems. More precisely, a gateway forwards a message received from within its system to the other gateway, which then delivers the message to the other system. Suitable <em>compatibility</em><span><span> conditions between gateways have been proved sufficient for this composition mechanism to preserve properties such as deadlock freedom for asynchronous as well as symmetric </span>synchronous communications (where sender and receiver play the same part in determining which message to exchange).</span></p><p>The present paper gives a comprehensive treatment of the case of synchronous communications. We consider both <em>symmetric synchronous</em> communications and <em>asymmetric synchronous</em> communications (where senders decide independently which message should be exchanged). The composition mechanism preserves different properties under different conditions depending on the considered type of synchronous communication. We show here that preservation of lock freedom requires an additional condition on gateways for asymmetric communication. Such condition is also needed for preservation of deadlock freedom, lock freedom or strong lock freedom for symmetric communications. This is not needed, instead, for preservation of either deadlock freedom or strong lock freedom with asymmetric interactions.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"135 ","pages":"Article 100890"},"PeriodicalIF":0.9,"publicationDate":"2023-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"49876052","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Program equivalence in a typed probabilistic call-by-need functional language 类型化概率按需调用函数语言中的程序等价
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-10-01 DOI: 10.1016/j.jlamp.2023.100904
Manfred Schmidt-Schauß, David Sabel

We extend a call-by-need variant of PCF with a binary probabilistic fair choice operator, which makes a lazy and typed variant of probabilistic functional programming. We define a contextual equivalence that respects the expected convergence of expressions and prove a corresponding context lemma. This enables us to show correctness of several program transformations with respect to contextual equivalence. Distribution-equivalence of expressions of numeric type is introduced. While the notion of contextual equivalence stems from program semantics, the notion of distribution equivalence is a direct description of the stochastic model. Our main result is that both notions are compatible: We show that for closed expressions of numeric type contextual equivalence and distribution-equivalence coincide. This provides a strong and often operationally feasible criterion for contextual equivalence of expressions and programs.

我们用一个二元概率公平选择算子扩展了PCF的一个随需调用变体,它是概率函数编程的一个懒惰的、类型化的变体。我们定义了一个上下文等价,它尊重表达式的预期收敛性,并证明了一个相应的上下文引理。这使我们能够显示关于上下文等价的几个程序转换的正确性。介绍了数值型表达式的分布等价性。上下文等价的概念源于程序语义,而分布等价的概念是对随机模型的直接描述。我们的主要结果是这两个概念是相容的:我们证明了对于数字类型的封闭表达式,上下文等价和分布等价是重合的。这为表达式和程序的上下文等价性提供了一个强大且通常在操作上可行的标准。
{"title":"Program equivalence in a typed probabilistic call-by-need functional language","authors":"Manfred Schmidt-Schauß,&nbsp;David Sabel","doi":"10.1016/j.jlamp.2023.100904","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100904","url":null,"abstract":"<div><p>We extend a call-by-need variant of PCF with a binary probabilistic fair choice operator, which makes a lazy and typed variant of probabilistic functional programming. We define a contextual equivalence that respects the expected convergence of expressions and prove a corresponding context lemma. This enables us to show correctness of several program transformations with respect to contextual equivalence. Distribution-equivalence of expressions of numeric type is introduced. While the notion of contextual equivalence stems from program semantics, the notion of distribution equivalence is a direct description of the stochastic model. Our main result is that both notions are compatible: We show that for closed expressions of numeric type contextual equivalence and distribution-equivalence coincide. This provides a strong and often operationally feasible criterion for contextual equivalence of expressions and programs.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"135 ","pages":"Article 100904"},"PeriodicalIF":0.9,"publicationDate":"2023-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"49876058","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
期刊
Journal of Logical and Algebraic Methods in Programming
全部 Acc. Chem. Res. ACS Applied Bio Materials ACS Appl. Electron. Mater. ACS Appl. Energy Mater. ACS Appl. Mater. Interfaces ACS Appl. Nano Mater. ACS Appl. Polym. Mater. ACS BIOMATER-SCI ENG ACS Catal. ACS Cent. Sci. ACS Chem. Biol. ACS Chemical Health & Safety ACS Chem. Neurosci. ACS Comb. Sci. ACS Earth Space Chem. ACS Energy Lett. ACS Infect. Dis. ACS Macro Lett. ACS Mater. Lett. ACS Med. Chem. Lett. ACS Nano ACS Omega ACS Photonics ACS Sens. ACS Sustainable Chem. Eng. ACS Synth. Biol. Anal. Chem. BIOCHEMISTRY-US Bioconjugate Chem. BIOMACROMOLECULES Chem. Res. Toxicol. Chem. Rev. Chem. Mater. CRYST GROWTH DES ENERG FUEL Environ. Sci. Technol. Environ. Sci. Technol. Lett. Eur. J. Inorg. Chem. IND ENG CHEM RES Inorg. Chem. J. Agric. Food. Chem. J. Chem. Eng. Data J. Chem. Educ. J. Chem. Inf. Model. J. Chem. Theory Comput. J. Med. Chem. J. Nat. Prod. J PROTEOME RES J. Am. Chem. Soc. LANGMUIR MACROMOLECULES Mol. Pharmaceutics Nano Lett. Org. Lett. ORG PROCESS RES DEV ORGANOMETALLICS J. Org. Chem. J. Phys. Chem. J. Phys. Chem. A J. Phys. Chem. B J. Phys. Chem. C J. Phys. Chem. Lett. Analyst Anal. Methods Biomater. Sci. Catal. Sci. Technol. Chem. Commun. Chem. Soc. Rev. CHEM EDUC RES PRACT CRYSTENGCOMM Dalton Trans. Energy Environ. Sci. ENVIRON SCI-NANO ENVIRON SCI-PROC IMP ENVIRON SCI-WAT RES Faraday Discuss. Food Funct. Green Chem. Inorg. Chem. Front. Integr. Biol. J. Anal. At. Spectrom. J. Mater. Chem. A J. Mater. Chem. B J. Mater. Chem. C Lab Chip Mater. Chem. Front. Mater. Horiz. MEDCHEMCOMM Metallomics Mol. Biosyst. Mol. Syst. Des. Eng. Nanoscale Nanoscale Horiz. Nat. Prod. Rep. New J. Chem. Org. Biomol. Chem. Org. Chem. Front. PHOTOCH PHOTOBIO SCI PCCP Polym. Chem.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1