首页 > 最新文献

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

英文 中文
Formal reasoning about Bernstein-Vazirani algorithm Bernstein-Vazirani算法的形式化推理
IF 1.2 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2026-01-01 DOI: 10.1016/j.jlamp.2025.101108
Hongxia Sun , Zhiping Shi , Shanyan Chen , Guohui Wang , Ximeng Li , Yong Guan
As a basic quantum algorithm, the Bernstein-Vazirani algorithm is based on the principles of superposition in quantum mechanics, demonstrating superior efficiency over classical computation in finding hidden strings. Due to the high complexity of quantum mechanics, the correctness of quantum algorithms is difficult to guarantee through traditional simulation methods. By contrast, the Bernstein-Vazirani algorithm’s fundamental concepts and mathematical structures can be formalized into logical expressions and verified by higher-order logical reasoning. In this paper, we formally model and verify the Bernstein-Vazirani algorithm in the HOL Light theorem prover. Meanwhile, to indicate the practical significance of our work, we analyze two realistic scenarios, the error correction in quantum key distribution and image encryption and decryption.
作为一种基本的量子算法,Bernstein-Vazirani算法基于量子力学中的叠加原理,在寻找隐藏弦方面表现出比经典计算更高的效率。由于量子力学的高度复杂性,传统的模拟方法很难保证量子算法的正确性。相比之下,Bernstein-Vazirani算法的基本概念和数学结构可以形式化为逻辑表达式,并通过高阶逻辑推理进行验证。本文对HOL光定理证明中的Bernstein-Vazirani算法进行了形式化建模和验证。同时,为了说明我们工作的现实意义,我们分析了两个现实场景,量子密钥分发中的纠错和图像加解密。
{"title":"Formal reasoning about Bernstein-Vazirani algorithm","authors":"Hongxia Sun ,&nbsp;Zhiping Shi ,&nbsp;Shanyan Chen ,&nbsp;Guohui Wang ,&nbsp;Ximeng Li ,&nbsp;Yong Guan","doi":"10.1016/j.jlamp.2025.101108","DOIUrl":"10.1016/j.jlamp.2025.101108","url":null,"abstract":"<div><div>As a basic quantum algorithm, the Bernstein-Vazirani algorithm is based on the principles of superposition in quantum mechanics, demonstrating superior efficiency over classical computation in finding hidden strings. Due to the high complexity of quantum mechanics, the correctness of quantum algorithms is difficult to guarantee through traditional simulation methods. By contrast, the Bernstein-Vazirani algorithm’s fundamental concepts and mathematical structures can be formalized into logical expressions and verified by higher-order logical reasoning. In this paper, we formally model and verify the Bernstein-Vazirani algorithm in the HOL Light theorem prover. Meanwhile, to indicate the practical significance of our work, we analyze two realistic scenarios, the error correction in quantum key distribution and image encryption and decryption.</div></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"149 ","pages":"Article 101108"},"PeriodicalIF":1.2,"publicationDate":"2026-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145938365","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
DM-Check: Verifying invariants of concurrent systems by deductive model checking DM-Check:通过演绎模型检验来验证并发系统的不变量
IF 1.2 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2025-12-02 DOI: 10.1016/j.jlamp.2025.101107
Kyungmin Bae , Santiago Escobar , Raúl López-Rueda , José Meseguer , Julia Sapiña
We propose a new deductive model checking methodology where narrowing-based logical model checking of symbolic states specified as disjunctions of constrained patternsis combined with inductive theorem proving to discharge inductive verification conditions that ensure useful symbolic state space reductions. An obvious combination is to use an inductive theorem prover in automated mode as an oracle to help logical model checking reach a fixpoint. But this is not the only possible combination. In this paper we focus instead on a new deductive model checking methodology to verify invariants —including inductive invariants— of infinite-state systems, where logical model checking automates large parts of the verification effort with the help of an inductive theorem prover as an oracle. Inductive verification conditions not discharged automatically by the oracle are dealt with by commands that refine some constrained patterns by useful semantic equivalences, and by using an inductive theorem prover in interactive mode. This methodology is demonstrated by means of concurrent system examples using two Maude tools working in tandem: the DM-Check narrowing-based symbolic model checker, and the NuITP inductive theorem prover.
本文提出了一种新的演绎模型检验方法,该方法结合归纳定理的证明,对指定为约束模式的析取的符号状态进行基于窄化的逻辑模型检验,以满足确保有用的符号状态空间约简的归纳验证条件。一个明显的组合是在自动化模式下使用归纳定理证明器作为oracle来帮助逻辑模型检查到达固定点。但这并不是唯一可能的组合。在本文中,我们专注于一种新的演绎模型检查方法来验证无限状态系统的不变量(包括归纳不变量),其中逻辑模型检查在归纳定理证明者的帮助下自动化了大部分验证工作。不是由oracle自动释放的归纳验证条件由通过有用的语义等价来改进某些约束模式的命令处理,并通过在交互模式中使用归纳定理证明器来处理。该方法通过使用两个并行工作的Maude工具的并发系统示例来演示:DM-Check基于窄化的符号模型检查器和NuITP归纳定理证明器。
{"title":"DM-Check: Verifying invariants of concurrent systems by deductive model checking","authors":"Kyungmin Bae ,&nbsp;Santiago Escobar ,&nbsp;Raúl López-Rueda ,&nbsp;José Meseguer ,&nbsp;Julia Sapiña","doi":"10.1016/j.jlamp.2025.101107","DOIUrl":"10.1016/j.jlamp.2025.101107","url":null,"abstract":"<div><div>We propose a new <em>deductive model checking</em> methodology where narrowing-based logical model checking of symbolic states specified as disjunctions of <em>constrained patterns</em>is combined with inductive theorem proving to discharge inductive verification conditions that ensure useful symbolic state space reductions. An obvious combination is to use an inductive theorem prover in <em>automated mode</em> as an <em>oracle</em> to help logical model checking reach a fixpoint. But this is not the only possible combination. In this paper we focus instead on a new deductive model checking methodology to verify invariants —including inductive invariants— of infinite-state systems, where logical model checking automates large parts of the verification effort with the help of an inductive theorem prover as an <em>oracle</em>. Inductive verification conditions not discharged automatically by the oracle are dealt with by commands that refine some constrained patterns by useful semantic equivalences, and by using an inductive theorem prover in interactive mode. This methodology is demonstrated by means of concurrent system examples using two Maude tools working in tandem: the <span>DM-Check</span> narrowing-based symbolic model checker, and the <span>NuITP</span> inductive theorem prover.</div></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"149 ","pages":"Article 101107"},"PeriodicalIF":1.2,"publicationDate":"2025-12-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145797548","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
Hoare-style logic for unstructured programs 用于非结构化程序的hoare风格逻辑
IF 1.2 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2025-11-20 DOI: 10.1016/j.jlamp.2025.101099
Didrik Lundberg , Roberto Guanciale , Andreas Lindner , Mads Dam
Enabling Hoare-style reasoning for low-level code is attractive since it opens the way to regain structure and modularity in a domain where structure is essentially absent. The field, however, has not yet arrived at a fully satisfactory solution, in the sense of avoiding restrictions on control flow (important for compiler optimization), controlling access to intermediate program points (important for modularity), and supporting total correctness. Proposals in the literature support some of these properties, but a solution that meets them all is yet to be found. We introduce the novel Hoare-style program logic LA, which interprets postconditions relative to program points when these are first encountered. The logic supports both partial and total correctness, derives contracts for arbitrary control flow, and allows one to freely choose decomposition strategy during verification while avoiding step-indexed approximations and global invariants. The logic can be instantiated for a variety of concrete instruction set architectures and intermediate languages. The rules of LA have been verified in the interactive theorem prover HOL4 and integrated with the toolbox HolBA for semi-automated program verification, which supports the ARMv6, ARMv8 and RISC-V instruction sets.
为低级代码启用hoal -style推理是很有吸引力的,因为它为在本质上缺乏结构的领域中重新获得结构和模块化开辟了道路。然而,在避免控制流限制(对编译器优化很重要)、控制对中间程序点的访问(对模块化很重要)和支持完全正确性方面,该领域还没有达到完全令人满意的解决方案。文献中的建议支持其中的一些属性,但还没有找到满足所有这些属性的解决方案。我们引入了新颖的hoare风格的程序逻辑LA,它在第一次遇到程序点时解释相对于程序点的后置条件。该逻辑支持部分和全部正确性,为任意控制流派生契约,并允许在验证期间自由选择分解策略,同时避免步进索引近似和全局不变量。逻辑可以为各种具体的指令集体系结构和中间语言实例化。在交互式定理证明器HOL4中验证了LA规则,并与工具箱HolBA集成进行半自动程序验证,支持ARMv6, ARMv8和RISC-V指令集。
{"title":"Hoare-style logic for unstructured programs","authors":"Didrik Lundberg ,&nbsp;Roberto Guanciale ,&nbsp;Andreas Lindner ,&nbsp;Mads Dam","doi":"10.1016/j.jlamp.2025.101099","DOIUrl":"10.1016/j.jlamp.2025.101099","url":null,"abstract":"<div><div>Enabling Hoare-style reasoning for low-level code is attractive since it opens the way to regain structure and modularity in a domain where structure is essentially absent. The field, however, has not yet arrived at a fully satisfactory solution, in the sense of avoiding restrictions on control flow (important for compiler optimization), controlling access to intermediate program points (important for modularity), and supporting total correctness. Proposals in the literature support some of these properties, but a solution that meets them all is yet to be found. We introduce the novel Hoare-style program logic <span><math><msub><mi>L</mi><mi>A</mi></msub></math></span>, which interprets postconditions relative to program points when these are first encountered. The logic supports both partial and total correctness, derives contracts for arbitrary control flow, and allows one to freely choose decomposition strategy during verification while avoiding step-indexed approximations and global invariants. The logic can be instantiated for a variety of concrete instruction set architectures and intermediate languages. The rules of <span><math><msub><mi>L</mi><mi>A</mi></msub></math></span> have been verified in the interactive theorem prover HOL4 and integrated with the toolbox HolBA for semi-automated program verification, which supports the ARMv6, ARMv8 and RISC-V instruction sets.</div></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"149 ","pages":"Article 101099"},"PeriodicalIF":1.2,"publicationDate":"2025-11-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145625365","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
Nominal anti-unification modulo equational theories 名义反统一模方程理论
IF 1.2 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2025-11-18 DOI: 10.1016/j.jlamp.2025.101100
Alexander Baumgartner , Daniele Nantes-Sobrinho
This paper investigates nominal anti-unification, i.e., the problem of computing least general generalizations of terms in the presence of binding structures and freshness constraints. We extend this problem to account for equational theories, specifically associativity (A), commutativity (C), and their combination (AC), yielding the notion of anti-unification modulo a theory E. Solutions in this setting, called E-generalizations, must consider both, the syntactic structure of nominal terms, and the algebraic properties imposed by E. In the general case, the problem has no solution due to the unbounded supply of atoms. To obtain a finitary setting, we fix a finite set of atoms A and introduce a rule-based algorithm for computing E-generalizations where only atoms from A are allowed to appear. The algorithm includes dedicated rules for reasoning modulo E and systematically explores permutations of subterms, which may lead to exponential blow-up in the number of generalizations. Although the computed set is not minimal, we describe heuristics that lead to computing promising E-generalizations in reasonable time. We also give an implementation of our algorithm which can be used to explore different optimization strategies that improve efficiency in practice, up to archiving tractability.
本文研究了名义反统一问题,即在存在约束结构和新鲜度约束的情况下计算项的最小一般泛化问题。我们将这个问题扩展到方程理论,特别是结合性(A),交换性(C)和它们的组合(AC),产生了反统一模理论e的概念。在这种情况下的解决方案,称为e -泛化,必须考虑两者,名义项的句法结构和e所施加的代数性质。在一般情况下,由于原子的无界供应,问题没有解。为了得到一个有限的集合,我们固定了一个有限的原子集合a,并引入了一个基于规则的算法来计算e-概化,其中只允许来自a的原子出现。该算法包括专用的推理规则模E,并系统地探索子项的排列,这可能导致泛化数量的指数膨胀。虽然计算集不是最小的,但我们描述了在合理的时间内计算有希望的e泛化的启发式。我们还给出了我们的算法的实现,该算法可用于探索不同的优化策略,以提高实践中的效率,直至存档可追溯性。
{"title":"Nominal anti-unification modulo equational theories","authors":"Alexander Baumgartner ,&nbsp;Daniele Nantes-Sobrinho","doi":"10.1016/j.jlamp.2025.101100","DOIUrl":"10.1016/j.jlamp.2025.101100","url":null,"abstract":"<div><div>This paper investigates nominal anti-unification, i.e., the problem of computing least general generalizations of terms in the presence of binding structures and freshness constraints. We extend this problem to account for equational theories, specifically associativity (A), commutativity (C), and their combination (AC), yielding the notion of anti-unification modulo a theory <em>E</em>. Solutions in this setting, called <em>E</em>-generalizations, must consider both, the syntactic structure of nominal terms, and the algebraic properties imposed by <em>E</em>. In the general case, the problem has no solution due to the unbounded supply of atoms. To obtain a finitary setting, we fix a finite set of atoms <em>A</em> and introduce a rule-based algorithm for computing <em>E</em>-generalizations where only atoms from <em>A</em> are allowed to appear. The algorithm includes dedicated rules for reasoning modulo <em>E</em> and systematically explores permutations of subterms, which may lead to exponential blow-up in the number of generalizations. Although the computed set is not minimal, we describe heuristics that lead to computing promising <em>E</em>-generalizations in reasonable time. We also give an implementation of our algorithm which can be used to explore different optimization strategies that improve efficiency in practice, up to archiving tractability.</div></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"149 ","pages":"Article 101100"},"PeriodicalIF":1.2,"publicationDate":"2025-11-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145580383","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
Computational modelling for combinatorial game strategies 组合博弈策略的计算建模
IF 1.2 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2025-11-04 DOI: 10.1016/j.jlamp.2025.101097
Răzvan Diaconescu
We develop a generic computational model that can be used effectively for establishing the existence of winning strategies for concrete finite combinatorial games. Our modelling is (equational) logic-based involving advanced techniques from algebraic specification, and it can be executed by equational programming systems such as those from the OBJ-family. We show how this provides a form of experimental mathematics for strategy problems involving combinatorial games. We do this by defining general methods and by illustrating these with case studies.
我们开发了一个通用的计算模型,可以有效地用于建立具体有限组合博弈的获胜策略的存在性。我们的建模是基于(等式)逻辑的,涉及代数规范中的高级技术,它可以由obj家族中的等式编程系统执行。我们展示了这如何为涉及组合博弈的策略问题提供一种实验数学形式。我们通过定义一般方法并通过案例研究来说明这些方法来做到这一点。
{"title":"Computational modelling for combinatorial game strategies","authors":"Răzvan Diaconescu","doi":"10.1016/j.jlamp.2025.101097","DOIUrl":"10.1016/j.jlamp.2025.101097","url":null,"abstract":"<div><div>We develop a generic computational model that can be used effectively for establishing the existence of winning strategies for concrete finite combinatorial games. Our modelling is (equational) logic-based involving advanced techniques from algebraic specification, and it can be executed by equational programming systems such as those from the OBJ-family. We show how this provides a form of experimental mathematics for strategy problems involving combinatorial games. We do this by defining general methods and by illustrating these with case studies.</div></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"149 ","pages":"Article 101097"},"PeriodicalIF":1.2,"publicationDate":"2025-11-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145694225","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
Makina: A QuickCheck state machine library Makina: QuickCheck状态机库
IF 1.2 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2025-10-17 DOI: 10.1016/j.jlamp.2025.101096
Luis Eduardo Bueso de Barrio, Lars-Åke Fredlund, Ángel Herranz, Clara Benac-Earle, Julio Mariño
This article presents Makina, a library written in the Elixir programming language, and a domain specific language for writing property-based testing models for stateful programs. Models written in the domain specific language are translated into standard QuickCheck state machines. Our main goals with Makina are to facilitate the task of developing correct and maintainable models, and to encourage model reuse. To meet these goals, Makina provides a declarative syntax for defining model states and commands. In particular, Makina encourages the typing of specifications, and ensures that such type information can be used by Elixir type checking tools. Moreover, to promote model reuse, the domain specific language provides constructs that allow models to be defined in terms of collections of previously defined ones. To this end a number of operators for combining models have been defined and implemented in our library. A semantics for Makina models is presented in two steps. First, a novel operational semantics for standard QuickCheck state machine models is provided. Then, a translation from a Makina model to a standard QuickCheck state model is given.
本文介绍了Makina,一个用Elixir编程语言编写的库,以及一种用于为有状态程序编写基于属性的测试模型的领域特定语言。用领域特定语言编写的模型被翻译成标准的QuickCheck状态机。我们使用Makina的主要目标是促进开发正确且可维护的模型,并鼓励模型重用。为了实现这些目标,Makina提供了一种用于定义模型状态和命令的声明性语法。Makina特别鼓励规范的类型,并确保Elixir类型检查工具可以使用这些类型信息。此外,为了促进模型重用,领域特定的语言提供了允许根据先前定义的模型的集合来定义模型的构造。为此,在我们的库中定义和实现了许多用于组合模型的操作符。分两步给出Makina模型的语义。首先,为标准QuickCheck状态机模型提供了一种新的操作语义。然后,给出了从Makina模型到标准QuickCheck状态模型的转换。
{"title":"Makina: A QuickCheck state machine library","authors":"Luis Eduardo Bueso de Barrio,&nbsp;Lars-Åke Fredlund,&nbsp;Ángel Herranz,&nbsp;Clara Benac-Earle,&nbsp;Julio Mariño","doi":"10.1016/j.jlamp.2025.101096","DOIUrl":"10.1016/j.jlamp.2025.101096","url":null,"abstract":"<div><div>This article presents Makina, a library written in the Elixir programming language, and a domain specific language for writing property-based testing models for <em>stateful</em> programs. Models written in the domain specific language are translated into standard QuickCheck state machines. Our main goals with Makina are to facilitate the task of developing correct and maintainable models, and to encourage model reuse. To meet these goals, Makina provides a declarative syntax for defining model states and commands. In particular, Makina encourages the typing of specifications, and ensures that such type information can be used by Elixir type checking tools. Moreover, to promote model reuse, the domain specific language provides constructs that allow models to be defined in terms of collections of previously defined ones. To this end a number of operators for combining models have been defined and implemented in our library. A semantics for Makina models is presented in two steps. First, a novel operational semantics for standard QuickCheck state machine models is provided. Then, a translation from a Makina model to a standard QuickCheck state model is given.</div></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"148 ","pages":"Article 101096"},"PeriodicalIF":1.2,"publicationDate":"2025-10-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145361610","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
Unified opinion formation analysis in rewriting logic 改写逻辑统一意见形成分析
IF 1.2 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2025-10-10 DOI: 10.1016/j.jlamp.2025.101095
Carlos Olarte , Carlos Ramírez , Camilo Rocha , Frank Valencia
Processes of opinion formation rooted in social dynamics can significantly contribute to the polarization of social, political, and democratic interaction. Opinion dynamic models are essential for understanding the impact of specific social factors on the acceptance or rejection of opinions. This extended paper builds upon the conference presentation documented in [1], introducing improvements and new opinion models that explore biases and collective human behaviors. It presents a framework based on concurrent set relations that formalizes, simulates, and analyzes social interaction systems with dynamic opinion models. Within this framework, standard models for social learning are realized as specific instances. Implemented in the Maude system as a fully executable rewrite theory, the framework enables a detailed examination of how agents' opinions can be influenced within a system. The authors report on new formalization of several and existing social learning models, exploring their relationships with different concurrency models. New experimentation involving reachability analysis, probabilistic simulation, and statistical model checking has been conducted. These experiments are crucial for validating significant properties related to dynamic opinion models in Maude, offering new insights into the mechanisms of opinion shaping in social interaction.
植根于社会动态的意见形成过程可以显著地促进社会、政治和民主互动的两极分化。意见动态模型对于理解特定社会因素对接受或拒绝意见的影响至关重要。这篇扩展的论文建立在b[1]中记录的会议演讲的基础上,介绍了探索偏见和集体人类行为的改进和新的意见模型。它提出了一个基于并发集合关系的框架,通过动态意见模型形式化、模拟和分析社会互动系统。在这个框架内,社会学习的标准模型作为具体实例实现。在Maude系统中作为完全可执行的重写理论实现,该框架可以详细检查系统内代理的意见如何受到影响。作者报告了几种和现有社会学习模型的新形式化,探讨了它们与不同并发模型的关系。新的实验包括可达性分析、概率模拟和统计模型检验。这些实验对于验证Maude中动态意见模型的重要属性至关重要,为社会互动中意见形成的机制提供了新的见解。
{"title":"Unified opinion formation analysis in rewriting logic","authors":"Carlos Olarte ,&nbsp;Carlos Ramírez ,&nbsp;Camilo Rocha ,&nbsp;Frank Valencia","doi":"10.1016/j.jlamp.2025.101095","DOIUrl":"10.1016/j.jlamp.2025.101095","url":null,"abstract":"<div><div>Processes of opinion formation rooted in social dynamics can significantly contribute to the polarization of social, political, and democratic interaction. Opinion dynamic models are essential for understanding the impact of specific social factors on the acceptance or rejection of opinions. This extended paper builds upon the conference presentation documented in <span><span>[1]</span></span>, introducing improvements and new opinion models that explore biases and collective human behaviors. It presents a framework based on concurrent set relations that formalizes, simulates, and analyzes social interaction systems with dynamic opinion models. Within this framework, standard models for social learning are realized as specific instances. Implemented in the Maude system as a fully executable rewrite theory, the framework enables a detailed examination of how agents' opinions can be influenced within a system. The authors report on new formalization of several and existing social learning models, exploring their relationships with different concurrency models. New experimentation involving reachability analysis, probabilistic simulation, and statistical model checking has been conducted. These experiments are crucial for validating significant properties related to dynamic opinion models in Maude, offering new insights into the mechanisms of opinion shaping in social interaction.</div></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"148 ","pages":"Article 101095"},"PeriodicalIF":1.2,"publicationDate":"2025-10-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145324333","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
On the inner structure of multirelations 论多元关系的内在结构
IF 1.2 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2025-10-09 DOI: 10.1016/j.jlamp.2025.101094
Hitoshi Furusawa , Walter Guttmann , Georg Struth
Binary multirelations form a model of alternating nondeterminism useful for analysing games, interactions of computing systems with their environments or abstract interpretations of probabilistic programs. We investigate this alternating structure with inner or demonic and outer or angelic choices in a relation-algebraic language extended with specific operations on multirelations that relate to the inner layer of alternation.
二元多重关系形成了一种交替的非确定性模型,对分析游戏、计算系统与其环境的相互作用或对概率程序的抽象解释很有用。我们用一种关系代数语言研究了这种具有内在或恶魔选择和外在或天使选择的交替结构,该语言扩展了与内层交替相关的多关系的特定运算。
{"title":"On the inner structure of multirelations","authors":"Hitoshi Furusawa ,&nbsp;Walter Guttmann ,&nbsp;Georg Struth","doi":"10.1016/j.jlamp.2025.101094","DOIUrl":"10.1016/j.jlamp.2025.101094","url":null,"abstract":"<div><div>Binary multirelations form a model of alternating nondeterminism useful for analysing games, interactions of computing systems with their environments or abstract interpretations of probabilistic programs. We investigate this alternating structure with inner or demonic and outer or angelic choices in a relation-algebraic language extended with specific operations on multirelations that relate to the inner layer of alternation.</div></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"148 ","pages":"Article 101094"},"PeriodicalIF":1.2,"publicationDate":"2025-10-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145265395","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
Algebraic reasoning for timeliness-guided system design 时效性导向系统设计的代数推理
IF 1.2 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2025-09-12 DOI: 10.1016/j.jlamp.2025.101093
Seyed Hossein Haeri , Peter Van Roy , Heinrich Apfelmus , Peter W. Thompson , Neil J. Davies , Magne Haveraaen , Mikhail Barash , Kevin Hammond , James Chapman , Artjoms Šinkarovs
Designing distributed systems to have predictable performance under all loads is difficult because of resource exhaustion, nonlinearity, and stochastic behaviour. Timeliness, defined as delivering results (sufficiently often) within a specified delay distribution, is a central aspect of predictable performance. In this paper, we consider the ΔQ Systems Development paradigm (ΔQSD, developed by PNSol), which computes timeliness by modelling systems observationally using so-called outcome expressions. An outcome expression is a compositional definition of a system's observed behaviour that shows the causal connections between its basic operations. Given the ΔQSD operations, we use outcome expressions to compute the stochastic behaviour of the whole system including its timeliness.
This paper defines and proves algebraic equivalences of outcome expressions with respect to timeliness. We prove the correctness of previously-known equivalences. We also introduce new equivalences and prove their correctness for outcome expressions containing probabilistic choice, failure, synchronisation (first-to-finish and last-to-finish), and sequential composition operators. We show how to incorporate failure as a first-class citizen in outcome expressions by developing the relevant mathematics based on the use of improper random variables. The paper shows the practical usefulness of algebraic equivalences by studying the design of a memory system containing a local cache, a networked read with timeout, and the ability to retry. We compute the delay and failure behaviour of several versions of this system, using the equivalences to simplify computations. This work is part of an ongoing project to disseminate and build tool support for ΔQSD, to make it available to the wider community of system designers.
由于资源耗尽、非线性和随机行为,设计分布式系统在所有负载下都具有可预测的性能是困难的。时效性,定义为在指定的延迟分布内(足够频繁地)交付结果,是可预测性能的一个核心方面。在本文中,我们考虑ΔQ系统开发范式(ΔQSD,由PNSol开发),它通过使用所谓的结果表达式对系统进行观测建模来计算时效性。结果表达式是对系统所观察到的行为的组合定义,它显示了系统基本操作之间的因果关系。给定ΔQSD操作,我们使用结果表达式来计算整个系统的随机行为,包括其时效性。本文定义并证明了结果表达式在时效性方面的代数等价。我们证明了先前已知的等价的正确性。我们还为包含概率选择、失败、同步(第一个完成和最后一个完成)和顺序组合操作符的结果表达式引入了新的等价并证明了它们的正确性。我们展示了如何通过开发基于使用不当随机变量的相关数学,将失败作为一等公民纳入结果表达式。本文通过研究一个包含本地缓存、带超时的网络读取和重试能力的存储系统的设计,展示了代数等价的实际用途。我们计算了该系统的几个版本的延迟和失效行为,使用等价来简化计算。这项工作是一个正在进行的项目的一部分,该项目旨在传播和构建对ΔQSD的工具支持,使其可用于更广泛的系统设计人员社区。
{"title":"Algebraic reasoning for timeliness-guided system design","authors":"Seyed Hossein Haeri ,&nbsp;Peter Van Roy ,&nbsp;Heinrich Apfelmus ,&nbsp;Peter W. Thompson ,&nbsp;Neil J. Davies ,&nbsp;Magne Haveraaen ,&nbsp;Mikhail Barash ,&nbsp;Kevin Hammond ,&nbsp;James Chapman ,&nbsp;Artjoms Šinkarovs","doi":"10.1016/j.jlamp.2025.101093","DOIUrl":"10.1016/j.jlamp.2025.101093","url":null,"abstract":"<div><div>Designing distributed systems to have predictable performance under all loads is difficult because of resource exhaustion, nonlinearity, and stochastic behaviour. Timeliness, defined as delivering results (sufficiently often) within a specified delay distribution, is a central aspect of predictable performance. In this paper, we consider the ΔQ Systems Development paradigm (ΔQSD, developed by <span><span>PNSol</span><svg><path></path></svg></span>), which computes timeliness by modelling systems observationally using so-called <em>outcome expressions</em>. An outcome expression is a compositional definition of a system's observed behaviour that shows the causal connections between its basic operations. Given the ΔQSD operations, we use outcome expressions to compute the stochastic behaviour of the whole system including its timeliness.</div><div>This paper defines and proves algebraic equivalences of outcome expressions with respect to timeliness. We prove the correctness of previously-known equivalences. We also introduce new equivalences and prove their correctness for outcome expressions containing probabilistic choice, failure, synchronisation (first-to-finish and last-to-finish), and sequential composition operators. We show how to incorporate failure as a first-class citizen in outcome expressions by developing the relevant mathematics based on the use of improper random variables. The paper shows the practical usefulness of algebraic equivalences by studying the design of a memory system containing a local cache, a networked read with timeout, and the ability to retry. We compute the delay and failure behaviour of several versions of this system, using the equivalences to simplify computations. This work is part of an ongoing project to disseminate and build tool support for ΔQSD, to make it available to the wider community of system designers.</div></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"148 ","pages":"Article 101093"},"PeriodicalIF":1.2,"publicationDate":"2025-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145099626","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
Combining sequential test cases into an equivalent set of adaptive test cases 将连续的测试用例组合成一组等效的自适应测试用例
IF 1.2 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2025-09-02 DOI: 10.1016/j.jlamp.2025.101092
Robert M. Hierons , Mercedes G. Merayo , Manuel Núñez
When testing a state-based system one might use a set of (negative) test cases in which each test case is a sequence of events that should not occur. Testing then involves executing the system under test (SUT) in order to check whether any of these disallowed sequences can occur. While testing using such sequences can be effective, they introduce a source of inefficiency: if a test case expects the SUT to produce output a after observing a sequence σ and the SUT instead produces a different output a after σ then testing with that test case did not show an error, because the SUT can autonomously produce outputs, and terminates because the test case only makes sense if the exact sequence is observed. This is a source of inefficiency if there is another test case that starts with σ followed by a: we could have continued evaluating whether the application of this second test case leads to an error. This paper considers scenarios in which events represent inputs, outputs, or the passing of discrete time. We show how a set of sequential test cases can be converted into an equivalent set of adaptive test cases, with adaptivity addressing the above source of inefficiency. The proposed approach has the potential to improve efficiency when using any test generation technique that returns negative sequential test cases.
当测试基于状态的系统时,可以使用一组(负)测试用例,其中每个测试用例都是不应该发生的事件序列。然后,测试包括执行被测系统(SUT),以检查这些不允许的序列是否会发生。虽然使用这样的序列进行测试可能是有效的,但它们引入了一个低效率的来源:如果一个测试用例期望SUT在观察到序列σ之后产生输出a,而SUT在σ之后产生不同的输出a ',那么使用该测试用例进行测试并没有显示错误,因为SUT可以自主地产生输出,并且因为测试用例只有在观察到精确的序列时才有意义而终止。如果有另一个以σ开头的测试用例,后面跟着a ',这是一个低效率的来源:我们可以继续评估第二个测试用例的应用是否会导致错误。本文考虑事件代表输入、输出或离散时间流逝的场景。我们展示了如何将一组连续的测试用例转换为一组等效的自适应测试用例,并使用自适应性解决上述低效率的来源。当使用任何返回负顺序测试用例的测试生成技术时,所建议的方法具有提高效率的潜力。
{"title":"Combining sequential test cases into an equivalent set of adaptive test cases","authors":"Robert M. Hierons ,&nbsp;Mercedes G. Merayo ,&nbsp;Manuel Núñez","doi":"10.1016/j.jlamp.2025.101092","DOIUrl":"10.1016/j.jlamp.2025.101092","url":null,"abstract":"<div><div>When testing a state-based system one might use a set of (negative) test cases in which each test case is a sequence of events that should not occur. Testing then involves executing the system under test (SUT) in order to check whether any of these disallowed sequences can occur. While testing using such sequences can be effective, they introduce a source of inefficiency: if a test case expects the SUT to produce output <em>a</em> after observing a sequence <em>σ</em> and the SUT instead produces a different output <span><math><msup><mrow><mi>a</mi></mrow><mrow><mo>′</mo></mrow></msup></math></span> after <em>σ</em> then testing with that test case did not show an error, because the SUT can autonomously produce outputs, and terminates because the test case only makes sense if the exact sequence is observed. This is a source of inefficiency if there is another test case that starts with <em>σ</em> followed by <span><math><msup><mrow><mi>a</mi></mrow><mrow><mo>′</mo></mrow></msup></math></span>: we could have continued evaluating whether the application of this second test case leads to an error. This paper considers scenarios in which events represent inputs, outputs, or the passing of discrete time. We show how a set of sequential test cases can be converted into an equivalent set of adaptive test cases, with adaptivity addressing the above source of inefficiency. The proposed approach has the potential to improve efficiency when using any test generation technique that returns negative sequential test cases.</div></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"148 ","pages":"Article 101092"},"PeriodicalIF":1.2,"publicationDate":"2025-09-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"144932761","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