Basic definitions [00J6]
- January 18, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Definition Relation [00I7]
- January 17, 2024
- Jon Sterling, with contributions from Marcelo Fiore
A (binary) relation R from a set A to a set B, written R\colon A\mathbin {\nrightarrow } B or R: \mathrm {Rel}{\mathopen {}\left (A,B\right )\mathclose {}} is defined to be a subset R\subseteq A\times B. We shall typically write a\mathrel {R}b for {\mathopen {}\left (a,b\right )\mathclose {}}: R. More generally, a relation between multiple sets {\mathopen {}\left (A_i\right )\mathclose {}}_{i: I} is defined to be a subset of the product \prod _{i: I} A_i.
Lemma Relational extensionality [00IM]
- January 17, 2024
- Jon Sterling, with contributions from Marcelo Fiore
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.
Proof.
- January 17, 2024
- Jon Sterling
We recall that relation from A to B is nothing more than a subset of A\times B. By the axiom of extensionality, two subsets of A\times B are equal if and only if they contain precisely the same elements.