Lemma. Relational extensionality [00IM]

Let A and B be two sets, and let R,S\colon A\mathbin {\nrightarrow } B be two relations from A to B. Then we have R=S if and only if \forall {a: A}\mathpunct {.} \forall {b: B}\mathpunct {.} a\mathrel {R}b\Longleftrightarrow a\mathrel {S}b.