Safety and Completeness of Disambiguation corresponds to Termination and Confluence of Reordering

Luí­s Eduardo Amorim de Souza, Eelco Visser. Safety and Completeness of Disambiguation corresponds to Termination and Confluence of Reordering. June 2020.

Abstract

Associativity and priority are well known techniques to disambiguate expression grammars. In recent work we develop a direct semantics for disambiguation by associativity and priority rules and prove that a safe and complete disambiguation relation produces a safe and complete disambiguation. The proof approach relies on a correspondence between disambiguation and term rewriting such that safety of disambiguation corresponds to termination of the rewrite system and completeness of disambiguation correspond to confluence of the rewrite system. In this extended abstract we illustrate that approach using diagrams.