首页 > 最新文献

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

英文 中文
On proving that an unsafe controller is not proven safe 关于证明不安全的控制器不能证明是安全的
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-12-19 DOI: 10.1016/j.jlamp.2023.100939
Yuvaraj Selvaraj , Jonas Krook , Wolfgang Ahrendt , Martin Fabian

Cyber-physical systems are often safety-critical and their correctness is crucial, such as in the case of automated driving. Using formal mathematical methods is one way to guarantee correctness and improve safety. Although these methods have shown their usefulness, care must be taken because modelling errors might result in proving a faulty controller safe, which is potentially catastrophic in practice. This paper deals with two such modelling errors in differential dynamic logic, a formal specification and verification language for hybrid systems, which are mathematical models of cyber-physical systems. The main contributions are to provide conditions under which these two modelling errors cannot cause a faulty controller to be proven safe, and to show how these conditions can be proven with help of the interactive theorem prover KeYmaera X. The problems are illustrated with a real world example of a safety controller for automated driving, and it is shown that the formulated conditions have the intended effect both for a faulty and a correct controller. It is also shown how the formulated conditions aid in finding a loop invariant candidate to prove properties of hybrid systems with feedback loops. Furthermore, the relation between such a loop invariant and the characterisation of the maximal control invariant set is discussed.

网络物理系统通常是安全关键型系统,其正确性至关重要,例如自动驾驶系统。使用正规数学方法是保证正确性和提高安全性的一种方法。虽然这些方法已显示出其有用性,但必须小心谨慎,因为建模错误可能导致证明有问题的控制器是安全的,这在实践中可能是灾难性的。本文讨论了微分动态逻辑中的两个建模错误,微分动态逻辑是一种用于混合系统的形式化规范和验证语言,是网络物理系统的数学模型。本文的主要贡献在于提供了这两种建模错误不会导致错误控制器被证明安全的条件,并展示了如何在交互式定理证明器 KeYmaera X 的帮助下证明这些条件。本文通过一个自动驾驶安全控制器的实际例子来说明这些问题,结果表明所制定的条件对错误和正确的控制器都有预期的效果。同时还说明了所制定的条件如何帮助找到环路不变的候选者,以证明具有反馈环路的混合系统的特性。此外,还讨论了这种环路不变量与最大控制不变量集特征之间的关系。
{"title":"On proving that an unsafe controller is not proven safe","authors":"Yuvaraj Selvaraj ,&nbsp;Jonas Krook ,&nbsp;Wolfgang Ahrendt ,&nbsp;Martin Fabian","doi":"10.1016/j.jlamp.2023.100939","DOIUrl":"10.1016/j.jlamp.2023.100939","url":null,"abstract":"<div><p>Cyber-physical systems are often safety-critical and their correctness is crucial, such as in the case of automated driving. Using formal mathematical methods is one way to guarantee correctness and improve safety. Although these methods have shown their usefulness, care must be taken because modelling errors might result in proving a faulty controller safe, which is potentially catastrophic in practice. This paper deals with two such modelling errors in <em>differential dynamic logic</em>, a formal specification and verification language for <em>hybrid systems</em>, which are mathematical models of cyber-physical systems. The main contributions are to provide conditions under which these two modelling errors cannot cause a faulty controller to be proven safe, and to show how these conditions can be proven with help of the interactive theorem prover KeYmaera X. The problems are illustrated with a real world example of a safety controller for automated driving, and it is shown that the formulated conditions have the intended effect both for a faulty and a correct controller. It is also shown how the formulated conditions aid in finding a <em>loop invariant</em> candidate to prove properties of hybrid systems with feedback loops. Furthermore, the relation between such a loop invariant and the characterisation of the <em>maximal control invariant set</em> is discussed.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"137 ","pages":"Article 100939"},"PeriodicalIF":0.9,"publicationDate":"2023-12-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S2352220823000937/pdfft?md5=a0255d67f0ba6855c0bca13111b7ef6d&pid=1-s2.0-S2352220823000937-main.pdf","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"138816599","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Bounded model checking for interval probabilistic timed graph transformation systems against properties of probabilistic metric temporal graph logic 基于概率度量时间图逻辑的区间概率时间图变换系统的有界模型检验
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-12-01 DOI: 10.1016/j.jlamp.2023.100938
Sven Schneider, Maria Maximova, Holger Giese

Cyber-physical systems often encompass complex concurrent behavior with timing constraints and probabilistic failures on demand. The analysis whether such systems with probabilistic timed behavior adhere to a given specification is essential. The formalism of Interval Probabilistic Timed Graph Transformation Systems (IPTGTSs) is often a suitable choice to model cyber-physical systems because (a) its rule-based approach to graph transformation can capture a wide range of system's structure dynamics when the states of the system can be represented by graphs while (b) it employs interval specifications for probabilistic behavior as well as lower and upper bounds on delays of steps to support systems where precise probabilities and delays are not known or may change during the runtime of the system. Probabilistic Metric Temporal Graph Logic (PMTGL) has been introduced as a powerful specification language to express worst-case/best-case probabilistic timed requirements such as actor-based soft deadlines using (a) path properties relying on its Metric Temporal Graph Logic fragment to track individual graph elements and (b) an operator inherited from Probabilistic Timed Computation Tree Logic to express worst-case/best-case probabilistic requirements identifying worst-case/best-case resolutions of non-determinism. Bounded Model Checking (BMC) support for Probabilistic Timed Graph Transformation Systems (PTGTSs) w.r.t. properties specified using PMTGL has been already presented. However, for IPTGTSs no analysis support w.r.t. PMTGL properties has been developed for stating metric temporal properties on identified subgraphs and their structural changes over time.

In this paper, we adapt the BMC approach developed for PTGTSs to the case of IPTGTSs extending modeling and analysis support to the usage of probability intervals more appropriately covering cyber-physical systems where probabilistic effects cannot be specified precisely and need to be approximated instead. In our evaluation, we apply an implementation of our BMC approach in AutoGraph to a novel running example demonstrating the effect of using probability intervals instead of precise probability values.

网络物理系统通常包含复杂的并发行为,具有时间约束和按需故障概率。分析这些具有概率定时行为的系统是否遵守给定的规范是必要的。区间概率定时图转换系统(IPTGTSs)的形式化通常是建模网络物理系统的合适选择,因为(a)当系统的状态可以用图表示时,它基于规则的图转换方法可以捕获大范围的系统结构动态;(b)它采用区间规范的概率行为以及步骤延迟的下界和上界来支持精确概率和延迟的系统延迟是未知的,或者在系统运行期间可能发生变化。概率度量时间图逻辑(PMTGL)作为一种强大的规范语言被引入,用于表达最坏情况/最佳情况的概率时间需求,如基于参与者的软截止日期,它使用(a)依赖于其度量时间图逻辑片段的路径属性来跟踪单个图元素,(b)继承自概率时间计算树逻辑的运算符来表达最坏情况/最佳情况的概率需求,识别最坏情况/最佳情况非决定论的决议。概率定时图变换系统(PTGTSs)的有界模型检验(BMC)支持已经被提出。然而,对于IPTGTSs,没有分析支持w.r.t。PMTGL属性已经开发出来,用于表示已识别子图的度量时间属性及其随时间的结构变化。在本文中,我们将为PTGTSs开发的BMC方法适应IPTGTSs的情况,将建模和分析支持扩展到概率区间的使用,更合适地覆盖无法精确指定概率效应且需要近似的网络物理系统。在我们的评估中,我们将我们的BMC方法在AutoGraph中的一个实现应用到一个新的运行示例中,该示例演示了使用概率间隔而不是精确概率值的效果。
{"title":"Bounded model checking for interval probabilistic timed graph transformation systems against properties of probabilistic metric temporal graph logic","authors":"Sven Schneider,&nbsp;Maria Maximova,&nbsp;Holger Giese","doi":"10.1016/j.jlamp.2023.100938","DOIUrl":"10.1016/j.jlamp.2023.100938","url":null,"abstract":"<div><p>Cyber-physical systems often encompass complex concurrent behavior with timing constraints and probabilistic failures on demand. The analysis whether such systems with probabilistic timed behavior adhere to a given specification is essential. The formalism of Interval Probabilistic Timed Graph Transformation Systems (IPTGTSs) is often a suitable choice to model cyber-physical systems because <em>(a)</em> its rule-based approach to graph transformation can capture a wide range of system's structure dynamics when the states of the system can be represented by graphs while <em>(b)</em><span> it employs interval specifications for probabilistic behavior as well as lower and upper bounds on delays of steps to support systems where precise probabilities and delays are not known or may change during the runtime of the system. Probabilistic Metric Temporal Graph Logic (PMTGL) has been introduced as a powerful specification language to express worst-case/best-case probabilistic timed requirements such as actor-based soft deadlines using </span><em>(a)</em> path properties relying on its Metric Temporal Graph Logic fragment to track individual graph elements and <em>(b)</em><span> an operator inherited from Probabilistic Timed Computation Tree Logic to express worst-case/best-case probabilistic requirements identifying worst-case/best-case resolutions of non-determinism. Bounded Model Checking (BMC) support for Probabilistic Timed Graph Transformation Systems (PTGTSs) w.r.t. properties specified using PMTGL has been already presented. However, for IPTGTSs no analysis support w.r.t. PMTGL properties has been developed for stating metric temporal properties on identified subgraphs and their structural changes over time.</span></p><p>In this paper, we adapt the BMC approach developed for PTGTSs to the case of IPTGTSs extending modeling and analysis support to the usage of probability intervals more appropriately covering cyber-physical systems where probabilistic effects cannot be specified precisely and need to be approximated instead. In our evaluation, we apply an implementation of our BMC approach in <span>AutoGraph</span> to a novel running example demonstrating the effect of using probability intervals instead of precise probability values.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"137 ","pages":"Article 100938"},"PeriodicalIF":0.9,"publicationDate":"2023-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"138512609","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
Back to the format: A survey on SOS for probabilistic processes 回到格式:对概率过程的SOS的调查
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-11-13 DOI: 10.1016/j.jlamp.2023.100929
Valentina Castiglioni , Ruggero Lanotte , Simone Tini

In probabilistic process algebras the classic qualitative description of process behaviour is enriched with quantitative information on it, usually modelled in terms of probabilistic weights and/or distributions over the qualitative behaviour. In this setting, we use behavioural equivalences to check whether two processes show exactly the same behaviour, and, if this is not the case, we can use behavioural metrics to measure the distance between them. Compositional reasoning requires that equivalence, or closeness, of behaviour of two processes are not destroyed when language operators are applied on top of them in order to build larger processes. Formally, the equivalence must be a congruence, and the metric must be uniformly continuous, with respect to language operators. Instead of verifying these compositional properties by hand, operator-by-operator, it is much more convenient to prove them for a class of operators once for all, and to check that the operators one is dealing with are in that class. This is achieved by means of SOS specification formats: they consist in a set of syntactical constraints characterising a class of operators on the patterns of SOS rules, that define the operational semantics of languages. With this survey, we aim to collect and describe the specification formats that have been proposed in the literature to guarantee the compositional properties of (variants of) bisimulation equivalences and bisimulation metrics in the probabilistic setting.

在概率过程代数中,过程行为的经典定性描述丰富了定量信息,通常根据定性行为的概率权重和/或分布进行建模。在这种情况下,我们使用行为等价来检查两个过程是否表现出完全相同的行为,如果不是这样,我们可以使用行为度量来衡量它们之间的距离。组合推理要求,当在两个过程之上应用语言运算符以构建更大的过程时,不会破坏两个过程行为的等价性或接近性。形式上,等价必须是同余的,并且度量必须是一致连续的,关于语言算子。而不是手工验证这些组合属性,一个操作符一个操作符地验证,对于一类操作符一次性地证明它们要方便得多,并且检查正在处理的操作符是否在该类中。这是通过SOS规范格式实现的:它们包含在一组语法约束中,这些约束描述了SOS规则模式上的一类操作符,这些操作符定义了语言的操作语义。通过这项调查,我们的目标是收集和描述文献中提出的规范格式,以保证在概率设置下双模拟等价和双模拟度量(变体)的组成特性。
{"title":"Back to the format: A survey on SOS for probabilistic processes","authors":"Valentina Castiglioni ,&nbsp;Ruggero Lanotte ,&nbsp;Simone Tini","doi":"10.1016/j.jlamp.2023.100929","DOIUrl":"10.1016/j.jlamp.2023.100929","url":null,"abstract":"<div><p>In probabilistic process algebras the classic qualitative description of process behaviour is enriched with quantitative information on it, usually modelled in terms of probabilistic weights and/or distributions over the qualitative behaviour. In this setting, we use behavioural equivalences to check whether two processes show exactly the same behaviour, and, if this is not the case, we can use behavioural metrics to measure the distance between them. Compositional reasoning requires that equivalence, or closeness, of behaviour of two processes are not destroyed when language operators are applied on top of them in order to build larger processes. Formally, the equivalence must be a congruence, and the metric must be uniformly continuous, with respect to language operators. Instead of verifying these compositional properties by hand, operator-by-operator, it is much more convenient to prove them for a class of operators once for all, and to check that the operators one is dealing with are in that class. This is achieved by means of SOS specification formats: they consist in a set of syntactical constraints characterising a class of operators on the patterns of SOS rules, that define the operational semantics of languages. With this survey, we aim to collect and describe the specification formats that have been proposed in the literature to guarantee the compositional properties of (variants of) bisimulation equivalences and bisimulation metrics in the probabilistic setting.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"137 ","pages":"Article 100929"},"PeriodicalIF":0.9,"publicationDate":"2023-11-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S2352220823000834/pdfft?md5=ce48feb3ed771dee50dbe8f80129e90b&pid=1-s2.0-S2352220823000834-main.pdf","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135715196","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Business processes resource management using rewriting logic and deep-learning-based predictive monitoring 业务流程资源管理使用重写逻辑和基于深度学习的预测监控
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-11-07 DOI: 10.1016/j.jlamp.2023.100928
Francisco Durán , Nicolás Pozas , Camilo Rocha

A significant task in business process optimization is concerned with streamlining the allocation and sharing of resources. This paper presents an approach for analyzing business process provisioning under a resource prediction strategy based on deep learning. A timed and probabilistic rewrite theory specification formalizes the semantics of business processes. It is integrated with an external oracle in the form of a long short-term memory neural network that can be queried to predict how traces of the process may advance within a time frame. Comparison of execution time and resource occupancy under different parameters is included for several case studies, as well as details on the construction of the deep learning model and its integration with Maude.

业务流程优化中的一项重要任务是简化资源的分配和共享。提出了一种基于深度学习的资源预测策略下的业务流程配置分析方法。定时和概率重写理论规范形式化了业务流程的语义。它以长短期记忆神经网络的形式与外部神谕相结合,可以通过查询来预测过程的痕迹在一个时间框架内可能会如何发展。比较了几个案例在不同参数下的执行时间和资源占用情况,并详细介绍了深度学习模型的构建及其与Maude的集成。
{"title":"Business processes resource management using rewriting logic and deep-learning-based predictive monitoring","authors":"Francisco Durán ,&nbsp;Nicolás Pozas ,&nbsp;Camilo Rocha","doi":"10.1016/j.jlamp.2023.100928","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100928","url":null,"abstract":"<div><p>A significant task in business process optimization is concerned with streamlining the allocation and sharing of resources. This paper presents an approach for analyzing business process provisioning under a resource prediction strategy based on deep learning. A timed and probabilistic rewrite theory specification formalizes the semantics of business processes. It is integrated with an external oracle in the form of a long short-term memory neural network that can be queried to predict how traces of the process may advance within a time frame. Comparison of execution time and resource occupancy under different parameters is included for several case studies, as well as details on the construction of the deep learning model and its integration with Maude.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100928"},"PeriodicalIF":0.9,"publicationDate":"2023-11-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91987265","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
Time distance-based computation of the DBM over-approximation of preemptive real-time systems 基于时间距离的抢占式实时系统DBM过逼近计算
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-11-04 DOI: 10.1016/j.jlamp.2023.100927
Abdelkrim Abdelli

The verification of preemptive real-time systems is a crucial aspect in ensuring their correctness and reliability to meet strict time constraints. Generally, the analysis of the behaviors of such systems requires the computation of the reachability graphs encoding their state space. However, the construction of the latter is computationally expensive and resource-consuming as it involves, for each graph node, managing and solving polyhedral constraints whose complexity is exponential.

In this paper, we explore a novel approach that builds an over-approximation of the state space of preemptive real-time systems. Our graph construction extends the expression of a node to the time-distance system that encodes the quantitative properties of past-fired subsequences. This makes it possible to restore relevant time information that is used to compute in a polynomial time a tighter difference bound matrix over-approximation of the polyhedral constraints. We show that the obtained graph is more appropriate to restore the quantitative properties of the model. The simulation results show that our graphs are almost of the same size as the exact graphs, while improving by far the times needed for their computation.

抢占式实时系统的验证是保证其正确性和可靠性满足严格时间约束的关键。一般来说,分析这类系统的行为需要计算编码其状态空间的可达性图。然而,后者的构建是计算昂贵和资源消耗,因为它涉及到,对于每个图节点,管理和解决复杂性指数的多面体约束。在本文中,我们探索了一种建立抢占式实时系统状态空间的过逼近的新方法。我们的图构造将节点的表达式扩展到时间距离系统,该系统编码了过去触发子序列的数量属性。这使得恢复相关的时间信息成为可能,这些信息用于在多项式时间内计算多面体约束的更严格的差分界矩阵过逼近。结果表明,得到的图更适合于恢复模型的定量性质。仿真结果表明,我们的图与精确图的大小几乎相同,同时大大提高了计算所需的时间。
{"title":"Time distance-based computation of the DBM over-approximation of preemptive real-time systems","authors":"Abdelkrim Abdelli","doi":"10.1016/j.jlamp.2023.100927","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100927","url":null,"abstract":"<div><p>The verification of preemptive real-time systems is a crucial aspect in ensuring their correctness and reliability to meet strict time constraints. Generally, the analysis of the behaviors of such systems requires the computation of the reachability graphs encoding their state space. However, the construction of the latter is computationally expensive and resource-consuming as it involves, for each graph node, managing and solving polyhedral constraints whose complexity is exponential.</p><p>In this paper, we explore a novel approach that builds an over-approximation of the state space of preemptive real-time systems. Our graph construction extends the expression of a node to the time-distance system that encodes the quantitative properties of past-fired subsequences. This makes it possible to restore relevant time information that is used to compute in a polynomial time a tighter difference bound matrix over-approximation of the polyhedral constraints. We show that the obtained graph is more appropriate to restore the quantitative properties of the model. The simulation results show that our graphs are almost of the same size as the exact graphs, while improving by far the times needed for their computation.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100927"},"PeriodicalIF":0.9,"publicationDate":"2023-11-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91987267","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
Local confluence of conditional and generalized term rewriting systems 条件和广义项改写系统的局部合流
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-10-31 DOI: 10.1016/j.jlamp.2023.100926
Salvador Lucas

Reduction-based systems are used as a basis for the implementation of programming languages, automated reasoning systems, mathematical analysis tools, etc. In such inherently non-deterministic systems, guaranteeing that diverging steps can be eventually rejoined is crucial for a faithful use in most applications. This property of reduction systems is called local confluence. In a landmark 1980 paper, Gérard Huet characterized local confluence of a Term Rewriting System as the joinability of all its critical pairs. In this paper, we characterize local confluence of Conditional Term Rewriting Systems, where reduction steps may depend on the satisfaction of specific conditions in rules: a conditional term rewriting system is locally confluent if and only if (i) all its conditional critical pairs and (ii) all its conditional variable pairs (which we introduce in this paper) are joinable. Furthermore, the logic-based approach we follow here is well-suited to analyze local confluence of more general reduction-based systems. We exemplify this by (i) including (context-sensitive) replacement restrictions in the arguments of function symbols, and (ii) allowing for more general conditions in rules. The obtained systems are called Generalized Term Rewriting Systems. A characterization of local confluence is also given for them.

基于约简的系统被用作实现编程语言、自动推理系统、数学分析工具等的基础。在这种固有的不确定性系统中,保证分散的步骤最终可以重新连接对于大多数应用程序的忠实使用至关重要。约简系统的这种性质称为局部合流。在1980年的一篇具有里程碑意义的论文中,gsamrard Huet将术语重写系统的局部合流描述为其所有关键对的可接合性。本文刻画了条件项重写系统的局部合流,其中约简步骤可能依赖于规则中特定条件的满足:当且仅当(i)其所有条件临界对和(ii)其所有条件变量对(本文引入的)可接合时,一个条件项重写系统是局部合流的。此外,我们在这里遵循的基于逻辑的方法非常适合于分析更一般的基于约简的系统的局部合流。我们通过(i)在函数符号的参数中包括(上下文敏感的)替换限制以及(ii)在规则中允许更一般的条件来举例说明这一点。得到的系统称为广义项重写系统。并给出了它们的局部汇流特性。
{"title":"Local confluence of conditional and generalized term rewriting systems","authors":"Salvador Lucas","doi":"10.1016/j.jlamp.2023.100926","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100926","url":null,"abstract":"<div><p>Reduction-based systems are used as a basis for the implementation of programming languages, automated reasoning systems, mathematical analysis tools, etc. In such inherently non-deterministic systems, guaranteeing that diverging steps can be eventually rejoined is crucial for a faithful use in most applications. This property of reduction systems is called <em>local confluence</em>. In a landmark 1980 paper, Gérard Huet characterized local confluence of a <em>Term Rewriting System</em> as the joinability of all its <em>critical pairs</em>. In this paper, we characterize local confluence of <em>Conditional Term Rewriting Systems</em>, where reduction steps may depend on the satisfaction of specific conditions in rules: a conditional term rewriting system is locally confluent if and only if (i) all its <em>conditional critical pairs</em> and (ii) all its <em>conditional variable pairs</em> (which we introduce in this paper) are joinable. Furthermore, the logic-based approach we follow here is well-suited to analyze local confluence of more general reduction-based systems. We exemplify this by (i) including (context-sensitive) replacement restrictions in the arguments of function symbols, and (ii) allowing for more general conditions in rules. The obtained systems are called <em>Generalized Term Rewriting Systems</em>. A characterization of local confluence is also given for them.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100926"},"PeriodicalIF":0.9,"publicationDate":"2023-10-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91987266","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
Quantum encoding of dynamic directed graphs 动态有向图的量子编码
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-10-27 DOI: 10.1016/j.jlamp.2023.100925
D. Della Giustina, C. Londero, C. Piazza, B. Riccardi, R. Romanello

In application domains such as routing, network analysis, scheduling, and planning, directed graphs are widely used as both formal models and core data structures for the development of efficient algorithmic solutions. In these areas, graphs are often evolving in time: for example, connection links may fail due to temporary technical issues, meaning that edges of the graph cannot be traversed for some time interval and alternative paths have to be followed.

In classical computation graphs have been implemented both explicitly through adjacency matrices/lists and symbolically as ordered binary decision diagrams. Moreover, ad-hoc visit procedures have been developed to deal with dynamically evolving graphs.

Quantum computation, exploiting interference and entanglement, has provided an exponential speed-up for specific problems, e.g., database search and integer factorization. In the quantum framework everything must be represented and manipulated using reversible operators. This poses a challenge when one has to deal with traversals of dynamically evolving directed graphs. Graph traversals are not intrinsically reversible because of converging paths. In the case of dynamically evolving graphs also the creation/destruction of paths comes into play against reversibility.

In this paper we propose a novel high level graph representation in quantum computation supporting dynamic connectivity typical of real-world network applications. Our procedure allows to encode any multigraph into a unitary matrix. We devise algorithms for computing the encoding that are optimal in terms of time and space and we show the effectiveness of the proposal with some examples. We describe how to react to edge/node failures in constant time. Furthermore, we present two methods to perform quantum random walks taking advantage of this encoding: with and without projectors. We implement and test our encoding obtaining that the theoretical bounds for the running time are confirmed by the empirical results and providing more details on the behavior of the algorithms over graphs of different densities.

在路由、网络分析、调度和规划等应用领域,有向图被广泛用作正式模型和核心数据结构,用于开发高效的算法解决方案。在这些领域,图通常是随时间发展的:例如,连接链接可能由于临时技术问题而失败,这意味着在一段时间间隔内不能遍历图的边缘,必须遵循替代路径。在经典计算中,图已经通过邻接矩阵/列表显式地实现,并且符号地作为有序二进制决策图实现。此外,还开发了专门的访问程序来处理动态发展的图。量子计算利用干涉和纠缠,为数据库搜索和整数分解等特定问题提供了指数级的速度提升。在量子框架中,一切都必须用可逆算子来表示和操纵。当必须处理动态演化的有向图的遍历时,这提出了一个挑战。由于路径收敛,图遍历在本质上不是可逆的。在动态发展图的情况下,路径的创建/破坏也会对可逆性产生影响。在本文中,我们提出了一种在量子计算中支持现实世界网络应用中典型的动态连通性的新型高级图表示。我们的程序允许将任何多图编码为一个酉矩阵。我们设计了在时间和空间方面最优的编码计算算法,并通过一些例子证明了该建议的有效性。我们描述了如何在恒定时间内对边缘/节点故障做出反应。此外,我们提出了两种利用这种编码来执行量子随机漫步的方法:有和没有投影仪。我们实现并测试了我们的编码,得到了运行时间的理论界限被经验结果所证实,并提供了算法在不同密度图上的行为的更多细节。
{"title":"Quantum encoding of dynamic directed graphs","authors":"D. Della Giustina,&nbsp;C. Londero,&nbsp;C. Piazza,&nbsp;B. Riccardi,&nbsp;R. Romanello","doi":"10.1016/j.jlamp.2023.100925","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100925","url":null,"abstract":"<div><p>In application domains such as routing, network analysis, scheduling, and planning, directed graphs are widely used as both formal models and core data structures for the development of efficient algorithmic solutions. In these areas, graphs are often evolving in time: for example, connection links may fail due to temporary technical issues, meaning that edges of the graph cannot be traversed for some time interval and alternative paths have to be followed.</p><p>In classical computation graphs have been implemented both explicitly through adjacency matrices/lists and symbolically as ordered binary decision diagrams. Moreover, ad-hoc visit procedures have been developed to deal with dynamically evolving graphs.</p><p>Quantum computation, exploiting interference and entanglement, has provided an exponential speed-up for specific problems, e.g., database search and integer factorization. In the quantum framework everything must be represented and manipulated using reversible operators. This poses a challenge when one has to deal with traversals of dynamically evolving directed graphs. Graph traversals are not intrinsically reversible because of converging paths. In the case of dynamically evolving graphs also the creation/destruction of paths comes into play against reversibility.</p><p>In this paper we propose a novel high level graph representation in quantum computation supporting dynamic connectivity typical of real-world network applications. Our procedure allows to encode any <em>multigraph</em> into a unitary matrix. We devise algorithms for computing the encoding that are optimal in terms of time and space and we show the effectiveness of the proposal with some examples. We describe how to react to edge/node failures in constant time. Furthermore, we present two methods to perform quantum random walks taking advantage of this encoding: with and without <em>projectors</em>. We implement and test our encoding obtaining that the theoretical bounds for the running time are confirmed by the empirical results and providing more details on the behavior of the algorithms over graphs of different densities.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100925"},"PeriodicalIF":0.9,"publicationDate":"2023-10-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S2352220823000792/pdfft?md5=c55a5be4601cbf982b84a0ffbe5997ec&pid=1-s2.0-S2352220823000792-main.pdf","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"92096451","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Certifying expressive power and algorithms of reversible primitive permutations with Lean 用Lean证明可逆基元置换的表达能力和算法
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-10-23 DOI: 10.1016/j.jlamp.2023.100923
Giacomo Maletto , Luca Roversi

Reversible primitive permutations (RPP) is a class of recursive functions that models reversible computation. We present a proof, which has been verified using the proof-assistant Lean, that demonstrates RPP can encode every primitive recursive function (PRF-completeness) and that each RPP can be encoded as a primitive recursive function (PRF-soundness). Our proof of PRF-completeness is simpler and fixes some errors in the original proof, while also introducing a new reversible iteration scheme for RPP. By keeping the formalization and semi-automatic proofs simple, we are able to identify a single programming pattern that can generate a set of reversible algorithms within RPP: Cantor pairing, integer division quotient/remainder, and truncated square root. Finally, Lean source code is available for experiments on reversible computation whose properties can be certified.

可逆基元置换(RPP)是一类模拟可逆计算的递归函数。我们提出了一个证明,并使用证明辅助Lean进行了验证,证明了RPP可以编码每个原始递归函数(prf完备性),每个RPP可以编码为一个原始递归函数(prf健全性)。我们的prf完备性证明更简单,修正了原证明中的一些错误,同时也引入了一种新的可逆RPP迭代方案。通过保持形式化和半自动证明的简单性,我们能够确定一个单一的编程模式,该模式可以在RPP中生成一组可逆算法:Cantor配对、整数除法商/余数和截断平方根。最后,提供了用于可逆计算实验的精益源代码,其特性可以得到验证。
{"title":"Certifying expressive power and algorithms of reversible primitive permutations with Lean","authors":"Giacomo Maletto ,&nbsp;Luca Roversi","doi":"10.1016/j.jlamp.2023.100923","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100923","url":null,"abstract":"<div><p>Reversible primitive permutations (<span>RPP</span>) is a class of recursive functions that models reversible computation. We present a proof, which has been verified using the proof-assistant <span>Lean</span>, that demonstrates <span>RPP</span> can encode every primitive recursive function (<span>PRF</span>-completeness) and that each <span>RPP</span> can be encoded as a primitive recursive function (<span>PRF</span>-soundness). Our proof of <span>PRF</span>-completeness is simpler and fixes some errors in the original proof, while also introducing a new reversible iteration scheme for <span>RPP</span>. By keeping the formalization and semi-automatic proofs simple, we are able to identify a single programming pattern that can generate a set of reversible algorithms within <span>RPP</span>: Cantor pairing, integer division quotient/remainder, and truncated square root. Finally, <span>Lean</span> source code is available for experiments on reversible computation whose properties can be certified.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100923"},"PeriodicalIF":0.9,"publicationDate":"2023-10-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S2352220823000779/pdfft?md5=ad2af14a775f13438b00a61e5119077a&pid=1-s2.0-S2352220823000779-main.pdf","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91959656","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
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
期刊
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学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1