首页> 外文会议>Annual ACM SIGPLAN-SIGACT symposium on principles of programming languages >Regular Expression Containment: Coinductive Axiomatization and Computational Interpretation
【24h】

Regular Expression Containment: Coinductive Axiomatization and Computational Interpretation

机译:正规表达遏制:配合公务化和计算解释

获取原文

摘要

We present a new sound and complete axiomatization of regular expression containment. It consists of the conventional axiomatization of concatenation, alternation, empty set and (the singleton set containing) the empty string as an idempotent semiring, the fixed-point rule E~* = 1 + E× E~* for Kleene-star, and a general coin-duction rule as the only additional rule. Our axiomatization gives rise to a natural computational interpretation of regular expressions as simple types that represent parse trees, and of containment proofs as coercions. This gives the axiomatization a Curry-Howard-style constructive interpretation: Containment proofs do not only certify a language-theoretic containment, but, under our computational interpretation, constructively transform a membership proof of a string in one regular expression into a membership proof of the same string in another regular expression. We show how to encode regular expression equivalence proofs in Salomaa's, Kozen's and Grabmayer's axiomatizations into our containment system, which equips their axiomatizations with a computational interpretation and implies completeness of our axiomatization. To ensure its soundness, we require that the computational interpretation of the coinduction rule be a hereditarily total function. Hereditary totality can be considered the mother of syntactic side conditions: it "explains" their soundness, yet cannot be used as a conventional side condition in its own right since it turns out to be undecidable. We discuss application of regular expressions as types to bit coding of strings and hint at other applications to the wide-spread use of regular expressions for substring matching, where classical automata-theoretic techniques are a priori inapplicable. Neither regular expressions as types nor subtyping interpreted coercively are novel per se. Somewhat surprisingly, this seems to be the first investigation of a general proof-theoretic framework for the latter in the context of the former, however.
机译:我们提出了一个新的声音和正则表达式遏制完整的公理化。它包括级联,在交替,空集和(含有单集)的空字符串作为幂等半环的常规公理化的,定点规则E〜* = 1 + E×E〜*为的Kleene星,和一般的硬币duction规则作为唯一的附加规则。我们的公理化引起的正则表达式的简单类型代表的解析树的天然计算解释,并作为的强制遏制证明。这使公理一个咖喱霍华德式的建构性解释:遏制样张不仅证明语言论的遏制,但是,根据我们的计算解释,建设性地变换一个字符串的成员资格证明在一个正则表达式到的会员证明相同的字符串在另一个正则表达式。我们展示了如何在Salomaa的,科曾年代和Grabmayer的公理化正则表达式的等价证明编码为我们的封闭系统,其配备了公理化与计算解释和暗示我们的公理化的完整性。为了确保它的合理性,我们需要将coinduction规则的计算解释是一个世袭的总功能。遗传性总体可以被认为是语法方面条件妈妈:它“解释说,”他们的稳健性,尚不能在自己的权利,因为它原来是不可判定被用作常规条件进行的。我们讨论了正则表达式的应用程序类型位在其他应用程序的广泛使用正则表达式的编码字符串和暗示的子字符串匹配,其中经典的自动机理论技术是先天不适用。无论是正则表达式的类型,也不亚型解释强制性地本身是新的。出人意料的是,这似乎是在前者的情况下,后者的一般证明,理论框架的一次调查,但是。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号