Lemma. Functions are uniquely-valued relations [00KG]

Any relation R\colon A\mathbin {\nrightarrow } B is a function if and only if for all a:A, there exists some unique b:B such that a\mathrel {R}b.