Checking equivalence in a non-strict language
Open Access
- 31 October 2022
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 6 (OOPSLA2) , 1469-1496
Abstract
Program equivalence checking is the task of confirming that two programs have the same behavior on corresponding inputs. We develop a calculus based on symbolic execution and coinduction to check the equivalence of programs in a non-strict functional language. Additionally, we show that our calculus can be used to derive counterexamples for pairs of inequivalent programs, including counterexamples that arise from non-termination. We describe a fully automated approach for finding both equivalence proofs and counterexamples. Our implementation, Nebula, proves equivalences of programs written in Haskell. We demonstrate Nebula's practical effectiveness at both proving equivalence and producing counterexamples automatically by applying Nebula to existing benchmark properties.Keywords
This publication has 34 references indexed in Scilit:
- Automating Inductive Proofs Using Theory Exploration2013
- BoltACM SIGPLAN Notices, 2012
- A Generic Cyclic Theorem Prover2012
- On the origins of bisimulation and coinductionACM Transactions on Programming Languages and Systems, 2009
- Circular Coinduction: A Proof Theoretical FoundationLecture Notes in Computer Science, 2009
- CIRC: A Circular Coinductive Prover2007
- Simple relational correctness proofs for static analyses and program transformationsACM SIGPLAN Notices, 2004
- IsaPlanner: A Prototype Proof Planner in IsabelleLecture Notes in Computer Science, 2003
- Universal coalgebra: a theory of systemsTheoretical Computer Science, 2000
- A Tutorial on Co-induction and Functional Programming1995