Inversion Framework: Reasoning about Inversion by Conditional Term Rewriting Systems

被引:2
作者
Kirkeby, Maja H. [1 ]
Gluck, Robert [2 ]
机构
[1] Roskilde Univ, Roskilde, Denmark
[2] Univ Copenhagen, Copenhagen, Denmark
来源
PROCEEDINGS OF THE 22ND INTERNATIONAL SYMPOSIUM ON PRINCIPLES AND PRACTICE OF DECLARATIVE PROGRAMMING, PPDP 2020 | 2020年
关键词
Conditional Term Rewriting Systems; Program Inversion; Correctness; Program Transformation; Declarative Languages; Functional Languages; Reversible Languages; Full/Partial/Semi-inversion; PROGRAM INVERTER; COMPUTATION;
D O I
10.1145/3414080.3414089
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We introduce a language-independent framework for reasoning about program inverters by conditional term rewriting systems. These systems can model the three fundamental forms of inversion, i.e., full, partial and semi-inversion, in declarative languages. The correctness of the generic inversion algorithm introduced in this contribution is proven for all well-behaved rule inverters, and we demonstrate that this class of inverters encompasses several of the inversion algorithms published throughout the past years. This new generic approach enables us to establish fundamental properties, e.g., orthogonality, for entire classes of well-behaved full inverters, partial inverters and semi-inverters regardless of their particular local rule inverters. We study known inverters as well as classes of inverters that yield left-to-right deterministic systems; left-to-right determinism is a desirable property, e.g., for functional programs; however, at the same time it is not generally a property of inverted systems. This generic approach enables a more systematic design of program inverters and fills a gap in our knowledge of program inversion.
引用
收藏
页数:14
相关论文
共 33 条
[1]   The universal resolving algorithm and its correctness:: inverse computation in a functional language [J].
Abramov, S ;
Glück, R .
SCIENCE OF COMPUTER PROGRAMMING, 2002, 43 (2-3) :193-229
[2]  
Almendros-Jiménez JM, 2007, LECT NOTES COMPUT SC, V4449, P253
[3]  
[Anonymous], 2003, CAMBRIDGE TRACTS THE, V55
[4]   Programming with narrowing: A tutorial [J].
Antoy, Sergio .
JOURNAL OF SYMBOLIC COMPUTATION, 2010, 45 (05) :501-522
[5]  
Baader F., 2006, Term Rewriting and All That
[6]  
Dijkstra Edsger W., 1978, Program Construction, V69, P54, DOI [10.1007/BFB0014657, DOI 10.1007/BFB0014657]
[7]  
Eppstein David, 1985, IJCAI, P219
[8]   Revisiting an automatic program inverter for lisp [J].
Glück, R ;
Kawabe, M .
ACM SIGPLAN NOTICES, 2005, 40 (05) :8-17
[9]  
Glück R, 2003, LECT NOTES COMPUT SC, V2895, P246
[10]  
Gluck R., 1994, Cybernetics and Systems '94. Proceedings of the Twelfth European Meeting on Cybernetics and Systems Research, P1563