I am currently studying forcing from Jechs Set Theory and i have encountered this seemingly innocent lemma which says:$\\$
What confuses me here is the fact that $dom(X)$ can't be all of $V^B$ since there exists some $\alpha$ such that $X \in V^B_{\alpha + 1}$ and $dom(X) \subset V^B_\alpha$. So how do we evaluate $X(u)$ for $u \not\in dom(X)$? Do we substitute with $0$? How is the proof in the book valid?Lemma 14.17. $V^B$ is extensional.
Proof. Let $X,Y \in V^B$. By definition of $a \Rightarrow b$ we observe that if $a \le a'$, then $(a' \Rightarrow b) \le (a \Rightarrow b)$.
Thus for any $u \in V^B$ we have $(\|u \in X\| \Rightarrow \|u \in Y\|) \le (X(u) \Rightarrow \|u \in Y\|)$ and therefore:
$\hspace{2cm} \prod\limits_{u \in V^B}(\|u \in X\| \Rightarrow \|u \in Y\|) \le \prod\limits_{u \in V^B}(X(u) \Rightarrow \|u \in Y\|)$
While the left-hand side is equal to $\|\forall u(u \in X \rightarrow u \in Y)\|$, the right-hand side is easily seen to equal $\|X \subset Y\|$. Consequently,
$\hspace{2cm} \|\forall u(u \in X \leftrightarrow u \in Y)\| \le \|X = Y\|\hspace{7.7cm}\Box$
Thanks, for your patience.