Example. Relations for program equivalence [00IC]

Let e,e' be two programs of type \tau . We say that e and e' are observationally equivalent when for any other program h\colon \tau \to {\mathopen {}\left (\right )\mathclose {}}, then h{\mathopen {}\left (e\right )\mathclose {}} terminates if and only if h{\mathopen {}\left (e'\right )\mathclose {}} terminates. If E_\tau is the set of programs of type \tau , observational equivalence therefore forms a relation E_\tau \mathbin {\nrightarrow } E_\tau .