Suppose we have sets $f$, $A$ and $B$ such that
$f\subset A\times B$ and $\forall x\in A\space \forall y,z\in B: [(x,y)\in f \land (x,z)\in f \implies y=z]$
i.e. $f$ is a partial function mapping $A$ to $B$.
Question: Can we then justify defining $\forall x\in A:\forall y \in B:[ f(x)=y\iff (x,y)\in f]$ allowing us to make all the substitutions entailed by equality?
Edit 1:
Or, alternatively, without equality...
$\forall x\in A: [f(x)\in B \iff \exists y:[y\in B \land (x,y)\in f]]$?
Edit 2:
The latter definition can be derived from the former. Not sure the other way, so they may not be equivalent.
Follow-up (One year later)
I have found that the following construct works well for a partial function $f$ of one variable mapping part of set $A$ to set $B$ where the subset $D\subset X$ is the domain of definition:
$\forall x:[x\in D \implies f(x)\in B]$
For a partial function $f$ of two variables mapping part of set $A\times B$ to set $C$ where the subset $D\subset A\times B$ is the domain of definition:
$\forall x,y: [(x,y)\in D\implies f(x,y)\in C]$
Example
Suppose, for some reason, you want to define exponentiation on $\mathbb{N}$, leaving $0^0$ undefined.
Let $D=\mathbb{N}^2 - (0,0)$. Then we can define exponentiation as follows
$\forall x,y:[(x,y)\in D \implies x^y \in \mathbb{N}]$
$\forall x,y:[(x,y) \in D\implies x^0=1]$
$0^1=0$
$\forall x,y:[(x,y)\in D\implies x^{y+1}=x^y\cdot x]$
Or equivalently...
$\forall x,y:[x\in \mathbb{N} \land y\in \mathbb{N} \land \neg [x=0 \land y=0] \implies x^y\in \mathbb{N}]$
$\forall x:[x\in \mathbb{N} \land x\ne 0] \implies x^0=1]$
$0^1=0$
$\forall x,y:[x\in \mathbb{N} \land y\in \mathbb{N} \land \neg [x=0 \land y=0] \implies x^{y+1}=x^y\cdot x]$
The mentioned property of $f$ being a partial function enables us to write $f(x)$ for the unique value $y$ such that $(x,y)\in f$, whenever it exists.
An alternative way to define partial function from $A$ to $B$ is to define it as a function $D\to B$ with some $D\subseteq A$ (called the domain of $f$), and then $f(x)$ exists [and is unique] iff $x\in D$.