Example. Relations in program specification [00I9]
In the simplest terms, a specification of a program is a relation that describes the possible input/output pairs that can occur. For example, the specification that a given program compute the square root is captured by the relation \mathsf {sq} \colon \mathbb {R}_{\geq 0} \mathbin {\nrightarrow } \mathbb {R} given by pairs {\mathopen {}\left (x,y\right )\mathclose {}} such that x = y^2.