Is there a symbol for ‘equal if defined’

Solution 1:

As far as functions go, note that we already have a symbol for this (coming from set theory): "$\subseteq$"! If $f$ and $g$ are partial functions, identifying them with their graphs means that we can write "$f\subseteq g$" to mean "$f(x)=g(x)$ whenever $f(x)$ is defined."


More generally (or in contexts where imposing set theory might be undesirable), here's a possible recommendation:

First, the symmetric version. I don't know how common this is elsewhere, but in computability theory, we often write $$x\simeq y$$ if $x$ and $y$ are expressions which are either both undefined, or both defined and equal. (Occasionally "$\cong$" is used instead of "$\simeq$," but I prefer "$\simeq$" since (at least within computability theory) it's less often used for isomorphism.)

For the asymmetric version, I would recommend "$\gtrsim$" in analogy with "$\simeq$." But I haven't seen that before, so I don't actually know if it's commonly used; it's just what seems to me the natural choice.

Solution 2:

Well, I think that the answer seems to be No, that there is no such symbol in standard use in any context. More's the pity! Perhaps we can invent one.