首页> 外文期刊>Mathematics and computers in simulation >Using Computer Algebra techniques for the specification, verification and synthesis of recursive programs
【24h】

Using Computer Algebra techniques for the specification, verification and synthesis of recursive programs

机译:使用计算机代数技术来规范,验证和综合递归程序

获取原文
获取原文并翻译 | 示例

摘要

We describe an innovative method for proving total correctness of tail recursive programs having a specific structure, namely programs in which an auxiliary tail recursive function is driven by a main nonrecursive function, and only the specification of the main function is provided. The specification of the auxiliary function is obtained almost fully automatically by solving coupled linear recursive sequences with constant coefficients. The process is carried out by means of CA (Computer Algebra) and AC (Algorithmic Combinatorics) and is implemented in the Theoremu system (using Mathematica). We demonstrate this method on an example involving polynomial expressions. Furthermore, we develop a method for synthesis of recursive programs for computing polynomial expressions of a fixed degree by means of "cheap" operations, e.g., additions, subtractions and multiplications. For a given polynomial expression, we define its recursive program in a schemewise manner. The correctness of the synthesized programs follows from the general correctness of the synthesis method, which is proven once for all, using the verification method presented in the first part of this paper.
机译:我们描述了一种新颖的方法,用于证明具有特定结构的尾部递归程序的总体正确性,即其中辅助尾部递归函数由主非递归函数驱动,并且仅提供主函数的规范的程序。通过求解具有恒定系数的耦合线性递归序列,几乎完全可以自动获得辅助功能的规格。该过程通过CA(计算机代数)和AC(算法组合)进行,并在Theoremu系统(使用Mathematica)中实现。我们在涉及多项式表达式的示例上演示了此方法。此外,我们开发了一种用于合成递归程序的方法,该方法用于通过“便宜”运算(例如加法,减法和乘法)来计算固定度的多项式表达式。对于给定的多项式表达式,我们以方案方式定义其递归程序。合成程序的正确性源于综合方法的一般正确性,使用本文第一部分介绍的验证方法可以一劳永逸地证明这一点。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号