Let's say we have the expression
$$∀,∈ℤ:=⟹=$$
Which means "for all values of and in the set of integers, if equals then must equal ."
For example, if 4×6=4×6, then 4=4.
However, this does not apply to 0.
For example, 7×0=6×0, but 6≠0.
Is there a way to add to the previous expression a term that says "as long as x doesn't equal 0"?
There is no formal symbol for this. Even if there were, words are usually easier on your reader than formality. So write
You could write
but that might make your reader hesitate and wonder until they finished the sentence. It's kinder to state the condition first.
The Ruby programming language has an
unlesskeyword that can follow the statement it references, so you could code something like