That is an assignment. There is also a math symbol that specifically designates equivalence.
That is an assignment. There is also a math symbol that specifically designates equivalence.
Letting ~ represent an equivalence relation on a set X:
Equivalence relations have specific properties:
x ~ x holds for all x in X
x ~ y => y ~ x for all x, y in X
x ~ y /\ y ~ z => x ~ z, for all x, y, z in X
However, they do not have to be equal, merely equivalent by whatever our relationship requires (though they may be equal).A common example that I would expect most CS students to have encountered is the idea of "congruent modulo n".
We would say that `x ~ y (mod n)` iff `(x mod n) = (y mod n)`.
So over the whole of the integers we can see that every odd number is equivalent/congruent to each other over 2. But we would not say that they are equal to each other.
On the other hand, we would say that 1/4 is equal to 2/8 (or `1/4 = 2/8`).
http://www.math.harvard.edu/~mazur/preprints/when_is_one.pdf
The punchline:
> In appropriate deference to the manifold ways an object can be presented to us, objects need only be given up to unique isomorphism, this being an enlightened view of what it means for one thing to be equal to some other thing.
But if = in math notation denoted "assignment", what could ≠ mean?
Your example
y = mx + b
could equivalently be stated as y - b = mx
What does it mean to assign something to ‘y - b’?Another example,
2 = x
means exactly the same thing as x = 2
What does it mean in your semantics to assign x to 2?