首页 > 最新文献

Logical Methods in Computer Science最新文献

英文 中文
Answer Counting under Guarded TGDs 在守卫tgd下的答案计数
4区 数学 Q4 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-09-14 DOI: 10.46298/lmcs-19(3:16)2023
Cristina Feier, Carsten Lutz, Marcin Przybyłko
We study the complexity of answer counting for ontology-mediated queries and for querying under constraints, considering conjunctive queries and unions thereof (UCQs) as the query language and guarded TGDs as the ontology and constraint language, respectively. Our main result is a classification according to whether answer counting is fixed-parameter tractable (FPT), W[1]-equivalent, #W[1]-equivalent, #W[2]-hard, or #A[2]-equivalent, lifting a recent classification for UCQs without ontologies and constraints due to Dell et al. The classification pertains to various structural measures, namely treewidth, contract treewidth, starsize, and linked matching number. Our results rest on the assumption that the arity of relation symbols is bounded by a constant and, in the case of ontology-mediated querying, that all symbols from the ontology and query can occur in the data (so-called full data schema). We also study the meta-problems for the mentioned structural measures, that is, to decide whether a given ontology-mediated query or constraint-query specification is equivalent to one for which the structural measure is bounded.
本文研究了本体中介查询和约束下查询的答案计数复杂性,将连接查询及其联合(ucq)作为查询语言,将保护tgd作为本体语言和约束语言。我们的主要结果是根据答案计数是否为固定参数可处理(FPT)、W[1]-等效、#W[1]-等效、#W[2]-硬或# a[2]-等效进行分类,从而提高了Dell等人最近对没有本体和约束的ucq的分类。分类涉及到各种结构度量,即树宽、收缩树宽、星形大小和链接匹配数。我们的结果基于一个假设,即关系符号的数量由一个常数限定,并且在本体中介查询的情况下,来自本体和查询的所有符号都可以出现在数据中(所谓的完整数据模式)。我们还研究了上述结构度量的元问题,即决定给定的本体中介查询或约束查询规范是否等同于结构度量有界的规范。
{"title":"Answer Counting under Guarded TGDs","authors":"Cristina Feier, Carsten Lutz, Marcin Przybyłko","doi":"10.46298/lmcs-19(3:16)2023","DOIUrl":"https://doi.org/10.46298/lmcs-19(3:16)2023","url":null,"abstract":"We study the complexity of answer counting for ontology-mediated queries and for querying under constraints, considering conjunctive queries and unions thereof (UCQs) as the query language and guarded TGDs as the ontology and constraint language, respectively. Our main result is a classification according to whether answer counting is fixed-parameter tractable (FPT), W[1]-equivalent, #W[1]-equivalent, #W[2]-hard, or #A[2]-equivalent, lifting a recent classification for UCQs without ontologies and constraints due to Dell et al. The classification pertains to various structural measures, namely treewidth, contract treewidth, starsize, and linked matching number. Our results rest on the assumption that the arity of relation symbols is bounded by a constant and, in the case of ontology-mediated querying, that all symbols from the ontology and query can occur in the data (so-called full data schema). We also study the meta-problems for the mentioned structural measures, that is, to decide whether a given ontology-mediated query or constraint-query specification is equivalent to one for which the structural measure is bounded.","PeriodicalId":49904,"journal":{"name":"Logical Methods in Computer Science","volume":"42 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2023-09-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135487688","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
Monoidal Width 单项宽度
4区 数学 Q4 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-09-04 DOI: 10.46298/lmcs-19(3:15)2023
Elena Di Lavore, Paweł Sobociński
We introduce monoidal width as a measure of complexity for morphisms in monoidal categories. Inspired by well-known structural width measures for graphs, like tree width and rank width, monoidal width is based on a notion of syntactic decomposition: a monoidal decomposition of a morphism is an expression in the language of monoidal categories, where operations are monoidal products and compositions, that specifies this morphism. Monoidal width penalises the composition operation along ``big'' objects, while it encourages the use of monoidal products. We show that, by choosing the correct categorical algebra for decomposing graphs, we can capture tree width and rank width. For matrices, monoidal width is related to the rank. These examples suggest monoidal width as a good measure for structural complexity of processes modelled as morphisms in monoidal categories.
我们引入一元宽度作为一元范畴中态射复杂性的度量。受众所周知的图的结构宽度度量的启发,如树宽度和秩宽度,一元宽度是基于一个语法分解的概念:一个态射的一元分解是在一元范畴的语言中的表达式,其中的操作是一元积和组合,它指定了这个态射。单面宽度惩罚沿着“大”对象的构图操作,而鼓励使用单面产品。我们表明,通过选择正确的分类代数来分解图,我们可以捕获树的宽度和秩的宽度。对于矩阵,单轴宽度与秩有关。这些例子表明,单线宽度是衡量单线范畴中模态过程结构复杂性的好方法。
{"title":"Monoidal Width","authors":"Elena Di Lavore, Paweł Sobociński","doi":"10.46298/lmcs-19(3:15)2023","DOIUrl":"https://doi.org/10.46298/lmcs-19(3:15)2023","url":null,"abstract":"We introduce monoidal width as a measure of complexity for morphisms in monoidal categories. Inspired by well-known structural width measures for graphs, like tree width and rank width, monoidal width is based on a notion of syntactic decomposition: a monoidal decomposition of a morphism is an expression in the language of monoidal categories, where operations are monoidal products and compositions, that specifies this morphism. Monoidal width penalises the composition operation along ``big'' objects, while it encourages the use of monoidal products. We show that, by choosing the correct categorical algebra for decomposing graphs, we can capture tree width and rank width. For matrices, monoidal width is related to the rank. These examples suggest monoidal width as a good measure for structural complexity of processes modelled as morphisms in monoidal categories.","PeriodicalId":49904,"journal":{"name":"Logical Methods in Computer Science","volume":"446 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2023-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135491243","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
A first-order logic characterization of safety and co-safety languages 安全和共安全语言的一阶逻辑表征
4区 数学 Q4 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-08-10 DOI: 10.46298/lmcs-19(3:13)2023
Alessandro Cimatti, Luca Geatti, Nicola Gigante, Angelo Montanari, Stefano Tonetta
Linear Temporal Logic (LTL) is one of the most popular temporal logics, that comes into play in a variety of branches of computer science. Among the various reasons of its widespread use there are its strong foundational properties: LTL is equivalent to counter-free omega-automata, to star-free omega-regular expressions, and (by Kamp's theorem) to the First-Order Theory of Linear Orders (FO-TLO). Safety and co-safety languages, where a finite prefix suffices to establish whether a word does not belong or belongs to the language, respectively, play a crucial role in lowering the complexity of problems like model checking and reactive synthesis for LTL. SafetyLTL (resp., coSafetyLTL) is a fragment of LTL where only universal (resp., existential) temporal modalities are allowed, that recognises safety (resp., co-safety) languages only. The main contribution of this paper is the introduction of a fragment of FO-TLO, called SafetyFO, and of its dual coSafetyFO, which are expressively complete with respect to the LTL-definable safety and co-safety languages. We prove that they exactly characterize SafetyLTL and coSafetyLTL, respectively, a result that joins Kamp's theorem, and provides a clearer view of the characterization of (fragments of) LTL in terms of first-order languages. In addition, it gives a direct, compact, and self-contained proof that any safety language definable in LTL is definable in SafetyLTL as well. As a by-product, we obtain some interesting results on the expressive power of the weak tomorrow operator of SafetyLTL, interpreted over finite and infinite words. Moreover, we prove that, when interpreted over finite words, SafetyLTL (resp. coSafetyLTL) devoid of the tomorrow (resp., weak tomorrow) operator captures the safety (resp., co-safety) fragment of LTL over finite words.
线性时间逻辑(LTL)是最流行的时间逻辑之一,它在计算机科学的各个分支中发挥着重要作用。在其广泛使用的各种原因中,有其强大的基础性质:LTL相当于无反ω -自动机,无星形ω -正则表达式,并且(根据Kamp定理)相当于线性阶理论(FO-TLO)。安全和共同安全语言,其中一个有限的前缀足以分别确定一个单词是否属于该语言,在降低LTL的模型检查和反应性合成等问题的复杂性方面起着至关重要的作用。SafetyLTL(分别地。coSafetyLTL)是LTL的一个片段,其中只有通用的(相对于。(存在)的时间模式是允许的,它承认安全(尊重)。(共同安全)语言。本文的主要贡献是引入了FO-TLO的一个片段,称为SafetyFO,以及它的双coSafetyFO,它们相对于ltl可定义的安全和共同安全语言在表达上是完整的。我们证明了它们分别准确地表征了SafetyLTL和coSafetyLTL,这一结果与Kamp定理相结合,并提供了从一阶语言的角度更清晰地表征(片段)LTL的观点。此外,它还提供了一个直接的、紧凑的和自包含的证明,证明任何可以在LTL中定义的安全语言也可以在SafetyLTL中定义。作为一个副产品,我们得到了一些有趣的结果,关于SafetyLTL的弱明天算子的表达能力,在有限和无限的单词上解释。此外,我们证明了,当在有限的单词上解释时,SafetyLTL(相对于。coSafetyLTL)没有明天(代表)。,弱明天)操作员捕获安全(resp。有限字上的LTL片段。
{"title":"A first-order logic characterization of safety and co-safety languages","authors":"Alessandro Cimatti, Luca Geatti, Nicola Gigante, Angelo Montanari, Stefano Tonetta","doi":"10.46298/lmcs-19(3:13)2023","DOIUrl":"https://doi.org/10.46298/lmcs-19(3:13)2023","url":null,"abstract":"Linear Temporal Logic (LTL) is one of the most popular temporal logics, that comes into play in a variety of branches of computer science. Among the various reasons of its widespread use there are its strong foundational properties: LTL is equivalent to counter-free omega-automata, to star-free omega-regular expressions, and (by Kamp's theorem) to the First-Order Theory of Linear Orders (FO-TLO). Safety and co-safety languages, where a finite prefix suffices to establish whether a word does not belong or belongs to the language, respectively, play a crucial role in lowering the complexity of problems like model checking and reactive synthesis for LTL. SafetyLTL (resp., coSafetyLTL) is a fragment of LTL where only universal (resp., existential) temporal modalities are allowed, that recognises safety (resp., co-safety) languages only. The main contribution of this paper is the introduction of a fragment of FO-TLO, called SafetyFO, and of its dual coSafetyFO, which are expressively complete with respect to the LTL-definable safety and co-safety languages. We prove that they exactly characterize SafetyLTL and coSafetyLTL, respectively, a result that joins Kamp's theorem, and provides a clearer view of the characterization of (fragments of) LTL in terms of first-order languages. In addition, it gives a direct, compact, and self-contained proof that any safety language definable in LTL is definable in SafetyLTL as well. As a by-product, we obtain some interesting results on the expressive power of the weak tomorrow operator of SafetyLTL, interpreted over finite and infinite words. Moreover, we prove that, when interpreted over finite words, SafetyLTL (resp. coSafetyLTL) devoid of the tomorrow (resp., weak tomorrow) operator captures the safety (resp., co-safety) fragment of LTL over finite words.","PeriodicalId":49904,"journal":{"name":"Logical Methods in Computer Science","volume":"78 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2023-08-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135553395","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
Trade-offs in Static and Dynamic Evaluation of Hierarchical Queries 层次查询静态和动态求值的权衡
4区 数学 Q4 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-08-09 DOI: 10.46298/lmcs-19(3:11)2023
Ahmet Kara, Milos Nikolic, Dan Olteanu, Haozhe Zhang
We investigate trade-offs in static and dynamic evaluation of hierarchical queries with arbitrary free variables. In the static setting, the trade-off is between the time to partially compute the query result and the delay needed to enumerate its tuples. In the dynamic setting, we additionally consider the time needed to update the query result under single-tuple inserts or deletes to the database. Our approach observes the degree of values in the database and uses different computation and maintenance strategies for high-degree (heavy) and low-degree (light) values. For the latter it partially computes the result, while for the former it computes enough information to allow for on-the-fly enumeration. We define the preprocessing time, the update time, and the enumeration delay as functions of the light/heavy threshold. By appropriately choosing this threshold, our approach recovers a number of prior results when restricted to hierarchical queries. We show that for a restricted class of hierarchical queries, our approach achieves worst-case optimal update time and enumeration delay conditioned on the Online Matrix-Vector Multiplication Conjecture.
我们研究了具有任意自由变量的分层查询的静态和动态评估中的权衡。在静态设置中,需要在部分计算查询结果的时间和枚举其元组所需的延迟之间进行权衡。在动态设置中,我们还要考虑在单元组插入或删除数据库时更新查询结果所需的时间。我们的方法观察数据库中的值的程度,并对高程度(重)和低程度(轻)的值使用不同的计算和维护策略。对于后者,它部分计算结果,而对于前者,它计算足够的信息以允许动态枚举。我们将预处理时间、更新时间和枚举延迟定义为轻/重阈值的函数。通过适当地选择这个阈值,我们的方法可以在仅限于分层查询时恢复许多先前的结果。我们表明,对于一类受限制的分层查询,我们的方法在在线矩阵向量乘法猜想的条件下实现了最坏情况下的最优更新时间和枚举延迟。
{"title":"Trade-offs in Static and Dynamic Evaluation of Hierarchical Queries","authors":"Ahmet Kara, Milos Nikolic, Dan Olteanu, Haozhe Zhang","doi":"10.46298/lmcs-19(3:11)2023","DOIUrl":"https://doi.org/10.46298/lmcs-19(3:11)2023","url":null,"abstract":"We investigate trade-offs in static and dynamic evaluation of hierarchical queries with arbitrary free variables. In the static setting, the trade-off is between the time to partially compute the query result and the delay needed to enumerate its tuples. In the dynamic setting, we additionally consider the time needed to update the query result under single-tuple inserts or deletes to the database. Our approach observes the degree of values in the database and uses different computation and maintenance strategies for high-degree (heavy) and low-degree (light) values. For the latter it partially computes the result, while for the former it computes enough information to allow for on-the-fly enumeration. We define the preprocessing time, the update time, and the enumeration delay as functions of the light/heavy threshold. By appropriately choosing this threshold, our approach recovers a number of prior results when restricted to hierarchical queries. We show that for a restricted class of hierarchical queries, our approach achieves worst-case optimal update time and enumeration delay conditioned on the Online Matrix-Vector Multiplication Conjecture.","PeriodicalId":49904,"journal":{"name":"Logical Methods in Computer Science","volume":"9 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2023-08-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135697365","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
The Complexity of Aggregates over Extractions by Regular Expressions 正则表达式提取聚合的复杂性
4区 数学 Q4 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-08-09 DOI: 10.46298/lmcs-19(3:12)2023
Johannes Doleschal, Noa Bratman, Benny Kimelfeld, Wim Martens
Regular expressions with capture variables, also known as regex-formulas, extract relations of spans (intervals identified by their start and end indices) from text. In turn, the class of regular document spanners is the closure of the regex formulas under the Relational Algebra. We investigate the computational complexity of querying text by aggregate functions, such as sum, average, and quantile, on top of regular document spanners. To this end, we formally define aggregate functions over regular document spanners and analyze the computational complexity of exact and approximate computation. More precisely, we show that in a restricted case, all studied aggregate functions can be computed in polynomial time. In general, however, even though exact computation is intractable, some aggregates can still be approximated with fully polynomial-time randomized approximation schemes (FPRAS).
带有捕获变量的正则表达式(也称为正则表达式公式)从文本中提取跨度(由其开始和结束索引标识的间隔)的关系。反过来,常规文档生成器类是关系代数下正则表达式公式的闭包。我们研究了在常规文档生成器之上通过聚合函数(如sum、average和quantile)查询文本的计算复杂性。为此,我们正式定义了常规文档生成器的聚合函数,并分析了精确计算和近似计算的计算复杂度。更准确地说,我们证明了在一个有限的情况下,所有研究的聚合函数都可以在多项式时间内计算出来。然而,在一般情况下,即使精确计算是难以处理的,一些聚合仍然可以用完全多项式时间随机近似方案(FPRAS)进行近似。
{"title":"The Complexity of Aggregates over Extractions by Regular Expressions","authors":"Johannes Doleschal, Noa Bratman, Benny Kimelfeld, Wim Martens","doi":"10.46298/lmcs-19(3:12)2023","DOIUrl":"https://doi.org/10.46298/lmcs-19(3:12)2023","url":null,"abstract":"Regular expressions with capture variables, also known as regex-formulas, extract relations of spans (intervals identified by their start and end indices) from text. In turn, the class of regular document spanners is the closure of the regex formulas under the Relational Algebra. We investigate the computational complexity of querying text by aggregate functions, such as sum, average, and quantile, on top of regular document spanners. To this end, we formally define aggregate functions over regular document spanners and analyze the computational complexity of exact and approximate computation. More precisely, we show that in a restricted case, all studied aggregate functions can be computed in polynomial time. In general, however, even though exact computation is intractable, some aggregates can still be approximated with fully polynomial-time randomized approximation schemes (FPRAS).","PeriodicalId":49904,"journal":{"name":"Logical Methods in Computer Science","volume":"8 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2023-08-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135598416","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
Continuous Positional Payoffs 连续位置收益
4区 数学 Q4 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-08-03 DOI: 10.46298/lmcs-19(3:10)2023
Alexander Kozachinskiy
What payoffs are positionally determined for deterministic two-player antagonistic games on finite directed graphs? In this paper we study this question for payoffs that are continuous. The main reason why continuous positionally determined payoffs are interesting is that they include the multi-discounted payoffs. We show that for continuous payoffs, positional determinacy is equivalent to a simple property called prefix-monotonicity. We provide three proofs of it, using three major techniques of establishing positional determinacy -- inductive technique, fixed point technique and strategy improvement technique. A combination of these approaches provides us with better understanding of the structure of continuous positionally determined payoffs as well as with some algorithmic results.
有限有向图上的确定性二人对抗博弈的收益是什么?本文研究了连续收益情况下的这一问题。连续的位置决定收益之所以有趣,主要是因为它们包含了多重贴现收益。我们证明了对于连续收益,位置确定性等价于一个简单的称为前缀单调性的性质。利用建立位置确定性的三种主要技术——归纳法、不动点法和策略改进法,给出了它的三个证明。这些方法的结合使我们能够更好地理解连续位置决定收益的结构以及一些算法结果。
{"title":"Continuous Positional Payoffs","authors":"Alexander Kozachinskiy","doi":"10.46298/lmcs-19(3:10)2023","DOIUrl":"https://doi.org/10.46298/lmcs-19(3:10)2023","url":null,"abstract":"What payoffs are positionally determined for deterministic two-player antagonistic games on finite directed graphs? In this paper we study this question for payoffs that are continuous. The main reason why continuous positionally determined payoffs are interesting is that they include the multi-discounted payoffs. We show that for continuous payoffs, positional determinacy is equivalent to a simple property called prefix-monotonicity. We provide three proofs of it, using three major techniques of establishing positional determinacy -- inductive technique, fixed point technique and strategy improvement technique. A combination of these approaches provides us with better understanding of the structure of continuous positionally determined payoffs as well as with some algorithmic results.","PeriodicalId":49904,"journal":{"name":"Logical Methods in Computer Science","volume":"21 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2023-08-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"136228967","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 Theory of Formal Choreographic Languages 形式舞蹈语言理论
4区 数学 Q4 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-08-02 DOI: 10.46298/lmcs-19(3:9)2023
Franco Barbanera, Ivan Lanese, Emilio Tuosto
We introduce a meta-model based on formal languages, dubbed formal choreographic languages, to study message-passing systems. Our framework allows us to generalise standard constructions from the literature and to compare them. In particular, we consider notions such as global view, local view, and projections from the former to the latter. The correctness of local views projected from global views is characterised in terms of a closure property. We consider a number of communication properties -- such as (dead)lock-freedom -- and give conditions on formal choreographic languages to guarantee them. Finally, we show how formal choreographic languages can capture existing formalisms; specifically we consider communicating finite-state machines, choreography automata, and multiparty session types. Notably, formal choreographic languages, differently from most approaches in the literature, can naturally model systems exhibiting non-regular behaviour.
我们引入了一个基于形式语言(称为形式编排语言)的元模型来研究消息传递系统。我们的框架允许我们从文献中概括出标准结构,并对它们进行比较。特别是,我们考虑诸如全局视图、局部视图以及从前者到后者的投影之类的概念。从全局视图投射的局部视图的正确性以闭包属性为特征。我们考虑了许多通信属性——比如(死)锁自由——并给出了形式编排语言的条件来保证它们。最后,我们展示了形式编排语言如何捕获现有的形式主义;具体来说,我们考虑通信有限状态机、编排自动机和多方会话类型。值得注意的是,与文献中的大多数方法不同,形式编排语言可以自然地对表现出非规则行为的系统进行建模。
{"title":"A Theory of Formal Choreographic Languages","authors":"Franco Barbanera, Ivan Lanese, Emilio Tuosto","doi":"10.46298/lmcs-19(3:9)2023","DOIUrl":"https://doi.org/10.46298/lmcs-19(3:9)2023","url":null,"abstract":"We introduce a meta-model based on formal languages, dubbed formal choreographic languages, to study message-passing systems. Our framework allows us to generalise standard constructions from the literature and to compare them. In particular, we consider notions such as global view, local view, and projections from the former to the latter. The correctness of local views projected from global views is characterised in terms of a closure property. We consider a number of communication properties -- such as (dead)lock-freedom -- and give conditions on formal choreographic languages to guarantee them. Finally, we show how formal choreographic languages can capture existing formalisms; specifically we consider communicating finite-state machines, choreography automata, and multiparty session types. Notably, formal choreographic languages, differently from most approaches in the literature, can naturally model systems exhibiting non-regular behaviour.","PeriodicalId":49904,"journal":{"name":"Logical Methods in Computer Science","volume":"32 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2023-08-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135015861","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 Coinductive Reformulation of Milner's Proof System for Regular Expressions Modulo Bisimilarity 正则表达式模双相似的Milner证明系统的一个共归纳重表述
4区 数学 Q4 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-06-29 DOI: 10.46298/lmcs-19(2:17)2023
Clemens Grabmayer
Milner (1984) defined an operational semantics for regular expressions as finite-state processes. In order to axiomatize bisimilarity of regular expressions under this process semantics, he adapted Salomaa's proof system that is complete for equality of regular expressions under the language semantics. Apart from most equational axioms, Milner's system Mil inherits from Salomaa's system a non-algebraic rule for solving single fixed-point equations. Recognizing distinctive properties of the process semantics that render Salomaa's proof strategy inapplicable, Milner posed completeness of the system Mil as an open question. As a proof-theoretic approach to this problem we characterize the derivational power that the fixed-point rule adds to the purely equational part Mil$^-$ of Mil. We do so by means of a coinductive rule that permits cyclic derivations that consist of a finite process graph with empty steps that satisfies the layered loop existence and elimination property LLEE, and two of its Mil$^{-}$-provable solutions. With this rule as replacement for the fixed-point rule in Mil, we define the coinductive reformulation cMil as an extension of Mil$^{-}$. In order to show that cMil and Mil are theorem equivalent we develop effective proof transformations from Mil to cMil, and vice versa. Since it is located half-way in between bisimulations and proofs in Milner's system Mil, cMil may become a beachhead for a completeness proof of Mil. This article extends our contribution to the CALCO 2022 proceedings. Here we refine the proof transformations by framing them as eliminations of derivable and admissible rules, and we link coinductive proofs to a coalgebraic formulation of solutions of process graphs.
米尔纳(1984)将正则表达式的操作语义定义为有限状态过程。为了公理化正则表达式在这种过程语义下的双相似性,他采用了Salomaa在语言语义下正则表达式相等性完备的证明体系。除了大多数方程公理外,Milner的系统Mil继承了Salomaa系统的非代数规则,用于求解单不动点方程。认识到过程语义的不同属性使得Salomaa的证明策略不适用,Milner提出了系统Mil的完备性作为一个开放的问题。作为该问题的证明理论方法,我们描述了不动点规则添加到Mil的纯方程部分Mil$^-$的导数幂。我们通过一个协归纳规则来实现,该规则允许由满足分层循环存在性和消去性LLEE的具有空步骤的有限过程图组成的循环推导,以及它的两个Mil$^{-}$-可证明解。用此规则代替Mil中的不动点规则,我们将Mil$^{-}$定义为Mil$^{-}$的扩展。为了证明cMil和Mil是定理等价的,我们开发了从Mil到cMil的有效证明变换,反之亦然。由于它位于Milner系统Mil的双模拟和证明之间,因此cMil可能成为Mil完备性证明的滩头阵地。本文扩展了我们对CALCO 2022程序的贡献。在这里,我们通过将它们作为可导规则和可容许规则的消去来改进证明变换,并将协归纳证明与过程图解的协代数表述联系起来。
{"title":"A Coinductive Reformulation of Milner's Proof System for Regular Expressions Modulo Bisimilarity","authors":"Clemens Grabmayer","doi":"10.46298/lmcs-19(2:17)2023","DOIUrl":"https://doi.org/10.46298/lmcs-19(2:17)2023","url":null,"abstract":"Milner (1984) defined an operational semantics for regular expressions as finite-state processes. In order to axiomatize bisimilarity of regular expressions under this process semantics, he adapted Salomaa's proof system that is complete for equality of regular expressions under the language semantics. Apart from most equational axioms, Milner's system Mil inherits from Salomaa's system a non-algebraic rule for solving single fixed-point equations. Recognizing distinctive properties of the process semantics that render Salomaa's proof strategy inapplicable, Milner posed completeness of the system Mil as an open question. As a proof-theoretic approach to this problem we characterize the derivational power that the fixed-point rule adds to the purely equational part Mil$^-$ of Mil. We do so by means of a coinductive rule that permits cyclic derivations that consist of a finite process graph with empty steps that satisfies the layered loop existence and elimination property LLEE, and two of its Mil$^{-}$-provable solutions. With this rule as replacement for the fixed-point rule in Mil, we define the coinductive reformulation cMil as an extension of Mil$^{-}$. In order to show that cMil and Mil are theorem equivalent we develop effective proof transformations from Mil to cMil, and vice versa. Since it is located half-way in between bisimulations and proofs in Milner's system Mil, cMil may become a beachhead for a completeness proof of Mil. This article extends our contribution to the CALCO 2022 proceedings. Here we refine the proof transformations by framing them as eliminations of derivable and admissible rules, and we link coinductive proofs to a coalgebraic formulation of solutions of process graphs.","PeriodicalId":49904,"journal":{"name":"Logical Methods in Computer Science","volume":"20 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2023-06-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135099659","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
Fixpoint Theory -- Upside Down 定点理论——颠倒过来
4区 数学 Q4 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-06-07 DOI: 10.46298/lmcs-19(2:15)2023
Paolo Baldan, Richard Eggert, Barbara König, Tommaso Padoan
Knaster-Tarski's theorem, characterising the greatest fixpoint of a monotone function over a complete lattice as the largest post-fixpoint, naturally leads to the so-called coinduction proof principle for showing that some element is below the greatest fixpoint (e.g., for providing bisimilarity witnesses). The dual principle, used for showing that an element is above the least fixpoint, is related to inductive invariants. In this paper we provide proof rules which are similar in spirit but for showing that an element is above the greatest fixpoint or, dually, below the least fixpoint. The theory is developed for non-expansive monotone functions on suitable lattices of the form $mathbb{M}^Y$, where $Y$ is a finite set and $mathbb{M}$ an MV-algebra, and it is based on the construction of (finitary) approximations of the original functions. We show that our theory applies to a wide range of examples, including termination probabilities, metric transition systems, behavioural distances for probabilistic automata and bisimilarity. Moreover it allows us to determine original algorithms for solving simple stochastic games.
Knaster-Tarski定理,将完全格上单调函数的最大不动点描述为最大后不动点,自然导致所谓的协归纳证明原理,用于显示某些元素低于最大不动点(例如,用于提供双相似性见证)。对偶原理,用于证明一个元素在最小不动点以上,与归纳不变量有关。在本文中,我们提供了在精神上类似的证明规则,只是为了证明一个元素在最大不动点以上,或者对偶地在最小不动点以下。该理论是在$mathbb{M}^Y$形式的合适格上的非膨胀单调函数上发展起来的,其中$Y$是一个有限集合,$mathbb{M}$是一个v -代数,它是基于原始函数的(有限)逼近的构造。我们表明,我们的理论适用于广泛的例子,包括终止概率,度量转移系统,概率自动机的行为距离和双相似性。此外,它还允许我们确定解决简单随机博弈的原始算法。
{"title":"Fixpoint Theory -- Upside Down","authors":"Paolo Baldan, Richard Eggert, Barbara König, Tommaso Padoan","doi":"10.46298/lmcs-19(2:15)2023","DOIUrl":"https://doi.org/10.46298/lmcs-19(2:15)2023","url":null,"abstract":"Knaster-Tarski's theorem, characterising the greatest fixpoint of a monotone function over a complete lattice as the largest post-fixpoint, naturally leads to the so-called coinduction proof principle for showing that some element is below the greatest fixpoint (e.g., for providing bisimilarity witnesses). The dual principle, used for showing that an element is above the least fixpoint, is related to inductive invariants. In this paper we provide proof rules which are similar in spirit but for showing that an element is above the greatest fixpoint or, dually, below the least fixpoint. The theory is developed for non-expansive monotone functions on suitable lattices of the form $mathbb{M}^Y$, where $Y$ is a finite set and $mathbb{M}$ an MV-algebra, and it is based on the construction of (finitary) approximations of the original functions. We show that our theory applies to a wide range of examples, including termination probabilities, metric transition systems, behavioural distances for probabilistic automata and bisimilarity. Moreover it allows us to determine original algorithms for solving simple stochastic games.","PeriodicalId":49904,"journal":{"name":"Logical Methods in Computer Science","volume":"56 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2023-06-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135363413","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
Flexible Correct-by-Construction Programming 灵活的按结构校正编程
4区 数学 Q4 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2023-06-07 DOI: 10.46298/lmcs-19(2:16)2023
Tobias Runge, Tabea Bordis, Alex Potanin, Thomas Thüm, Ina Schaefer
Correctness-by-Construction (CbC) is an incremental program construction process to construct functionally correct programs. The programs are constructed stepwise along with a specification that is inherently guaranteed to be satisfied. CbC is complex to use without specialized tool support, since it needs a set of predefined refinement rules of fixed granularity which are additional rules on top of the programming language. Each refinement rule introduces a specific programming statement and developers cannot depart from these rules to construct programs. CbC allows to develop software in a structured and incremental way to ensure correctness, but the limited flexibility is a disadvantage of CbC. In this work, we compare classic CbC with CbC-Block and TraitCbC. Both approaches CbC-Block and TraitCbC, are related to CbC, but they have new language constructs that enable a more flexible software construction approach. We provide for both approaches a programming guideline, which similar to CbC, leads to well-structured programs. CbC-Block extends CbC by adding a refinement rule to insert any block of statements. Therefore, we introduce CbC-Block as an extension of CbC. TraitCbC implements correctness-by-construction on the basis of traits with specified methods. We formally introduce TraitCbC and prove soundness of the construction strategy. All three development approaches are qualitatively compared regarding their programming constructs, tool support, and usability to assess which is best suited for certain tasks and developers.
构造正确性(CbC)是一种渐进式的程序构造过程,目的是构造功能正确的程序。程序是逐步构建的,并遵循一个本质上保证被满足的规范。如果没有专门的工具支持,CbC使用起来很复杂,因为它需要一组预定义的固定粒度的细化规则,这些规则是编程语言之上的附加规则。每个细化规则都引入了一个特定的编程语句,开发人员在构建程序时不能脱离这些规则。CbC允许以结构化和增量的方式开发软件以确保正确性,但是有限的灵活性是CbC的缺点。在这项工作中,我们比较了经典CbC与CbC- block和TraitCbC。两种方法CbC- block和TraitCbC都与CbC相关,但是它们具有新的语言结构,可以实现更灵活的软件构建方法。我们为这两种方法提供了一个编程指南,它类似于CbC,可以生成结构良好的程序。CbC- block通过添加精化规则来插入任何语句块,从而扩展了CbC。因此,我们引入CbC- block作为CbC的扩展。TraitCbC在特征的基础上用指定的方法实现构造正确性。我们正式引入了TraitCbC,证明了建设策略的合理性。对所有三种开发方法进行定性比较,包括它们的编程结构、工具支持和可用性,以评估哪一种最适合特定的任务和开发人员。
{"title":"Flexible Correct-by-Construction Programming","authors":"Tobias Runge, Tabea Bordis, Alex Potanin, Thomas Thüm, Ina Schaefer","doi":"10.46298/lmcs-19(2:16)2023","DOIUrl":"https://doi.org/10.46298/lmcs-19(2:16)2023","url":null,"abstract":"Correctness-by-Construction (CbC) is an incremental program construction process to construct functionally correct programs. The programs are constructed stepwise along with a specification that is inherently guaranteed to be satisfied. CbC is complex to use without specialized tool support, since it needs a set of predefined refinement rules of fixed granularity which are additional rules on top of the programming language. Each refinement rule introduces a specific programming statement and developers cannot depart from these rules to construct programs. CbC allows to develop software in a structured and incremental way to ensure correctness, but the limited flexibility is a disadvantage of CbC. In this work, we compare classic CbC with CbC-Block and TraitCbC. Both approaches CbC-Block and TraitCbC, are related to CbC, but they have new language constructs that enable a more flexible software construction approach. We provide for both approaches a programming guideline, which similar to CbC, leads to well-structured programs. CbC-Block extends CbC by adding a refinement rule to insert any block of statements. Therefore, we introduce CbC-Block as an extension of CbC. TraitCbC implements correctness-by-construction on the basis of traits with specified methods. We formally introduce TraitCbC and prove soundness of the construction strategy. All three development approaches are qualitatively compared regarding their programming constructs, tool support, and usability to assess which is best suited for certain tasks and developers.","PeriodicalId":49904,"journal":{"name":"Logical Methods in Computer Science","volume":"8 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2023-06-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135449677","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
期刊
Logical Methods in Computer Science
全部 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