Interpolation Results for Arrays with Length and MaxDiff

IF 0.7 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS ACM Transactions on Computational Logic Pub Date : 2023-03-13 DOI:10.1145/3587161
S. Ghilardi, Alessandro Gianola, D. Kapur, Chiara Naso
{"title":"Interpolation Results for Arrays with Length and MaxDiff","authors":"S. Ghilardi, Alessandro Gianola, D. Kapur, Chiara Naso","doi":"10.1145/3587161","DOIUrl":null,"url":null,"abstract":"In this paper, we enrich McCarthy’s theory of extensional arrays with a length and a maxdiff operation. As is well-known, some diff operation (i.e., some kind of difference function showing where two unequal array differ) is needed to keep interpolants quantifier-free in array theories; our maxdiff operation returns the max index where two arrays differ and so it has a univocally determined semantics. The length function is a natural complement of such a maxdiff operation and is needed to handle real arrays. Obtaining interpolation results for such a rich theory is a surprisingly hard task. We get such results via a thorough semantic analysis of the models of the theory and of their amalgamation and strong amalgamation properties. The results are modular with respect to the index theory and we show how to convert them into concrete interpolation algorithms via a hierarchical approach realizing a polynomial reduction to interpolation in linear arithmetics endowed with free function symbols. In this paper, we enrich McCarthy’s theory of extensional arrays with a length and a maxdiff operation. It is known from the literature that a diff operation is required in order for the theory of arrays to enjoy the Craig interpolation property at the quantifier-free level. However, the diff operation introduced in the literature is merely instrumental to this purpose and has only a purely formal meaning (it is obtained from the Skolemization of the extensionality axiom): instead, our maxdiff operation returns the max index where two arrays differ and so it is univocally determined at the semantic level. The length function is a natural complement of such a maxdiff operation and is needed to handle real arrays (which are defined in their specified allocation memory). Obtaining interpolation results for such a rich theory is a surprisingly hard task. We get such results via a thorough semantic analysis of the models of the theory and of their amalgamation and strong amalgamation properties. The results are modular with respect to the index theory and we show how to convert them into concrete interpolation algorithms via a hierarchical approach realizing a polynomial reduction to interpolation in linear arithmetics endowed with free function symbols. The array theory in the paper has been modified so as to model real arrays used in common programming languages (we now require them to be ‘contiguous’, i.e., not undefined in any of their allocation entries); moreover strong amalgamation and interpolation with free function symbols are proved. The interpolation algorithm avoids full instantiation routines and unbounded loops, thus achieving the above mentioned polynomial reduction complexity. The present paper is a substantially revised version of a previous conference paper presented at FoSSaCS 2021.","PeriodicalId":50916,"journal":{"name":"ACM Transactions on Computational Logic","volume":"1 1","pages":""},"PeriodicalIF":0.7000,"publicationDate":"2023-03-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM Transactions on Computational Logic","FirstCategoryId":"94","ListUrlMain":"https://doi.org/10.1145/3587161","RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
引用次数: 0

Abstract

In this paper, we enrich McCarthy’s theory of extensional arrays with a length and a maxdiff operation. As is well-known, some diff operation (i.e., some kind of difference function showing where two unequal array differ) is needed to keep interpolants quantifier-free in array theories; our maxdiff operation returns the max index where two arrays differ and so it has a univocally determined semantics. The length function is a natural complement of such a maxdiff operation and is needed to handle real arrays. Obtaining interpolation results for such a rich theory is a surprisingly hard task. We get such results via a thorough semantic analysis of the models of the theory and of their amalgamation and strong amalgamation properties. The results are modular with respect to the index theory and we show how to convert them into concrete interpolation algorithms via a hierarchical approach realizing a polynomial reduction to interpolation in linear arithmetics endowed with free function symbols. In this paper, we enrich McCarthy’s theory of extensional arrays with a length and a maxdiff operation. It is known from the literature that a diff operation is required in order for the theory of arrays to enjoy the Craig interpolation property at the quantifier-free level. However, the diff operation introduced in the literature is merely instrumental to this purpose and has only a purely formal meaning (it is obtained from the Skolemization of the extensionality axiom): instead, our maxdiff operation returns the max index where two arrays differ and so it is univocally determined at the semantic level. The length function is a natural complement of such a maxdiff operation and is needed to handle real arrays (which are defined in their specified allocation memory). Obtaining interpolation results for such a rich theory is a surprisingly hard task. We get such results via a thorough semantic analysis of the models of the theory and of their amalgamation and strong amalgamation properties. The results are modular with respect to the index theory and we show how to convert them into concrete interpolation algorithms via a hierarchical approach realizing a polynomial reduction to interpolation in linear arithmetics endowed with free function symbols. The array theory in the paper has been modified so as to model real arrays used in common programming languages (we now require them to be ‘contiguous’, i.e., not undefined in any of their allocation entries); moreover strong amalgamation and interpolation with free function symbols are proved. The interpolation algorithm avoids full instantiation routines and unbounded loops, thus achieving the above mentioned polynomial reduction complexity. The present paper is a substantially revised version of a previous conference paper presented at FoSSaCS 2021.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
具有Length和MaxDiff的数组的插值结果
在本文中,我们用长度和maxdiff运算丰富了McCarthy的外延阵列理论。众所周知,在数组理论中,需要一些diff运算(即,显示两个不相等数组不同之处的某种差分函数)来保持插值量词的自由;我们的maxdiff操作返回两个数组不同的最大索引,因此它具有唯一确定的语义。长度函数是这种maxdiff运算的自然补码,是处理实际数组所必需的。对于这样一个丰富的理论来说,获得插值结果是一项令人惊讶的艰巨任务。我们通过对该理论的模型及其融合性和强融合性的语义分析得到了这样的结果。结果相对于指数理论是模块化的,我们展示了如何通过分层方法将它们转换为具体的插值算法,在赋予自由函数符号的线性算法中实现插值的多项式约简。在本文中,我们用长度和maxdiff运算丰富了McCarthy的外延阵列理论。从文献中已知,为了使阵列理论在无量词水平上享受Craig插值性质,需要进行diff运算。然而,文献中引入的diff运算仅用于此目的,并且只有纯粹的形式意义(它是从可扩展性公理的Skolemization中获得的):相反,我们的maxdiff运算返回两个数组不同的最大索引,因此它在语义级别上是唯一确定的。长度函数是这种maxdiff操作的自然补码,需要它来处理实数组(在其指定的分配内存中定义)。对于这样一个丰富的理论来说,获得插值结果是一项令人惊讶的艰巨任务。我们通过对该理论的模型及其融合性和强融合性的语义分析得到了这样的结果。结果相对于指数理论是模块化的,我们展示了如何通过分层方法将它们转换为具体的插值算法,在赋予自由函数符号的线性算法中实现插值的多项式约简。对本文中的数组理论进行了修改,以便对常见编程语言中使用的真实数组进行建模(我们现在要求它们是“连续的”,即在它们的任何分配条目中都没有未定义);并证明了与自由函数符号的强融合和插值。插值算法避免了完整的实例化例程和无界循环,从而实现了上述多项式减少复杂性。本文件是在2021年FoSSaCS上提交的先前会议文件的实质修订版。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
ACM Transactions on Computational Logic
ACM Transactions on Computational Logic 工程技术-计算机:理论方法
CiteScore
2.30
自引率
0.00%
发文量
37
审稿时长
>12 weeks
期刊介绍: TOCL welcomes submissions related to all aspects of logic as it pertains to topics in computer science. This area has a great tradition in computer science. Several researchers who earned the ACM Turing award have also contributed to this field, namely Edgar Codd (relational database systems), Stephen Cook (complexity of logical theories), Edsger W. Dijkstra, Robert W. Floyd, Tony Hoare, Amir Pnueli, Dana Scott, Edmond M. Clarke, Allen E. Emerson, and Joseph Sifakis (program logics, program derivation and verification, programming languages semantics), Robin Milner (interactive theorem proving, concurrency calculi, and functional programming), and John McCarthy (functional programming and logics in AI). Logic continues to play an important role in computer science and has permeated several of its areas, including artificial intelligence, computational complexity, database systems, and programming languages. The Editorial Board of this journal seeks and hopes to attract high-quality submissions in all the above-mentioned areas of computational logic so that TOCL becomes the standard reference in the field. Both theoretical and applied papers are sought. Submissions showing novel use of logic in computer science are especially welcome.
期刊最新文献
Fundamental Logic is Decidable Strong Backdoors for Default Logic One or Nothing: Anti-unification over the Simply-Typed Lambda Calculus Stackelberg-Pareto Synthesis First-Order Temporal Logic on Finite Traces: Semantic Properties, Decidable Fragments, and Applications
×
引用
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