J Autom Reasoning
DOI 10.1007/s10817-016-9376-2
Confluence of Orthogonal Term Rewriting Systems in the
Prototype Verification System
Ana Cristina Rocha-Oliveira
1
· André Luiz Galdino
2
·
Mauricio Ayala-Rincón
1
Received: 16 August 2015 / Accepted: 27 May 2016
© Springer Science+Business Media Dordrecht 2016
Abstract Orthogonality is a discipline of programming which syntactically guarantees deter-
minism of functional specifications. Essentially, orthogonality avoids critical forks in term
rewriting systems (TRSs) twofold: avoiding overlappings between left-hand sides of the rules
(non-ambiguity) prohibiting rules in the definitions of functions that may apply simultane-
ously and forbidding repetitions of variables in the left-hand side of the rules (left-linearity)
that may produce forks. In the theory of term rewriting systems, determinism is captured
by the well-known property of confluence that is a consequence of orthogonality. This
work describes a complete formalization in PVS of the theorem of confluence of orthog-
onal term rewriting systems. The formalization includes definitions and results on parallel
reduction, in particular Rosen’s Parallel Moves Lemma. It is made available as a PVS theory
orthogonality inside the directory TRS of the NASA Langley PVS Library. Like all of
TRS, orthogonality is intended to stay close to textbook proofs. The present proof uses
the Parallel Moves Lemma at dominating positions of a parallel context. In this manner, all
parallel forks filling the holes of the context are joined and, as result, a term of joinability for
the whole fork is constructed.
Keywords Term rewriting system · Confluence · Orthogonality · Left-linearity ·
Non-ambiguity · Critical pairs · Non-termination
Work supported by CNPq Universal Grant 476952/2013-1.
B Mauricio Ayala-Rincón
ayala@unb.br
Ana Cristina Rocha-Oliveira
anacrismarie@gmail.com
André Luiz Galdino
galdino@unb.br
1
Grupo de Teoria da Computação, Departamentos de Ciência da Computação e Matemática,
Universidade de Brasília, Brasília, D.F., Brazil
2
Departamento de Matemática, Universidade Federal de Goiás - Regional Catalão, Goiás, Brazil
123