Hostname: page-component-6766d58669-88psn Total loading time: 0 Render date: 2026-05-15T15:38:23.571Z Has data issue: false hasContentIssue false

An example of goal-directed, calculational proof

Published online by Cambridge University Press:  11 December 2024

ROLAND CARL BACKHOUSE
Affiliation:
School of Computer Science, University of Nottingham, Nottingham NG8 1BB, UK (e-mail: roland.backhouse@nottingham.ac.uk)
WALTER GUTTMANN
Affiliation:
Computer Science and Software Engineering, University of Canterbury, Christchurch, New Zealand (e-mail: walter.guttmann@canterbury.ac.nz)
MICHAEL WINTER
Affiliation:
Department of Computer Science, Brock University, St. Catharines, Ontario, Canada (e-mail: mwinter@brocku.ca)
Rights & Permissions [Opens in a new window]

Abstract

An equivalence relation can be constructed from a given (homogeneous, binary) relation in two steps: first, construct the smallest reflexive and transitive relation containing the given relation (the “star” of the relation) and, second, construct the largest symmetric relation that is included in the result of the first step. The fact that the final result is also reflexive and transitive (as well as symmetric), and thus an equivalence relation, is not immediately obvious, although straightforward to prove. Rather than prove that the defining properties of reflexivity and transitivity are satisfied, we establish reflexivity and transitivity constructively by exhibiting a starth root—in a way that emphasises the creative process in its construction. The resulting construction is fundamental to algorithms that determine the strongly connected components of a graph as well as the decomposition of a graph into its strongly connected components together with an acyclic graph connecting such components.

Information

Type
Theoretical Pearl
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2024. Published by Cambridge University Press
Submit a response

Discussions

No Discussions have been published for this article.