7
$\begingroup$

What does $:=$ mean? For example:

Consider the subset $ \mathbb{S} = \{ p \in \mathbb {P_4} ( > \mathbb{R,R} ) \ | \ P(2)=0 \} $ Suppose $p$, $q$ are in $\mathbb{S}$, so $p(2)=q(2)=0$. Then $r := p + q$ is also a polynomial of degree at most $4$ and $r(2) = p(2) + q(2)=0+0=0$

Is it just another notation for the $=$ sign? Or is there any significance on having a : in front of it?

$\endgroup$
0

5 Answers 5

7
$\begingroup$

It usually means: "we are defining what's on the left of := to be what's on the right". This distinction originates from computer languages, where the mere equality symbol "=" denotes an assignment of one variable's value to another's. For example, in Mathematica they use "==" for being equal, and "=" for assignment.

$\endgroup$
9
  • $\begingroup$ "to equal", to be more precise. $\endgroup$
    – user236182
    Sep 5, 2015 at 13:42
  • $\begingroup$ @user236182 could you elaborate on what you mean? I don't think I've ever heard that phrasing. $\endgroup$ Sep 5, 2015 at 13:47
  • $\begingroup$ Does this really originate from computer languages? I've always thought this myself, too (which is why I prefer it). It does seem to be used in place of $\equiv$ and $\triangleq$ in more modern texts, and it coincides with Maple's assignment operator. $\endgroup$
    – Chester
    Sep 5, 2015 at 13:49
  • 1
    $\begingroup$ @Chester -- wiki suggests that := originated with ALGOL in 1958 and was popularized by Pascal, see en.wikipedia.org/wiki/Assignment_%28computer_science%29 $\endgroup$ Sep 5, 2015 at 13:55
  • $\begingroup$ ...though I guess that leaves open the question whether := had prior mathematical use $\endgroup$ Sep 5, 2015 at 13:56
6
$\begingroup$

As others have said, the symbol $:=$ means "is defined to be", so $a := b$ means "we define $a$ to be $b$". Other symbols sometimes use include $\equiv, \stackrel{\operatorname{def}}{=}, \triangleq,\leftarrow$. In algorithms, this symbol is usually thought of as assigning a value, so that $a := b$ means that we assign the value $b$ to $a$. This is to make clear the destinction between for example $$x = x + 1$$ and $$x := x + 1.$$ The first, as a mathematical statement is of course wrong, whereas the second statement simply means that we increase $x$ by one.

Outside of algorithms, the symbol is also used, but here the distinction is more subtle. Here, a statement such as $a := b$ would mean that "$a$ is equal to $b$ because this is how we define it", or simply that we use $a$ as a name for $b$, usually because $b$ is a lengthy expression and we want $a$ to be a more compact symbolism for the same thing. This is in contrast to a statement such as $a = b$, where we say that $a$ and $b$ are equal as a consequence of something else, and not merely because we say so.

Authors who use a symbol like $:=$ to define equalities are very rarely consistent in this use, however, and do not use it every single time they define something, but only when they want to highlight that some relationship holds because it has been defined that way.

$\endgroup$
5
$\begingroup$

The symbol stands for a definition. Sometimes you can also find $\doteq$ or $\overset{\mathrm{def}}{=}$. However these two symbols are completely symmetric, so that you can't tell $a:=b$ from $a=:b$. The difference is that $b$ is known and $a$ is defined in the first case, the other way round in the second.

$\endgroup$
0
$\begingroup$

“$a = b$” means “$a$ is equal to $b$” while “a := b” means “let $a$ be equal to $b$”. The pattern can be extended to some other notation: “$a :\Leftrightarrow b$” means “let $a$ be equivalent to $b$”, “$x :∈ X$” means “let $x$ be an element of $X$”, “A :⊆ X” means “let $A$ be a subset of $X$”.

$\endgroup$
0
$\begingroup$

In the mathematics world, the $ := $ generally refers to any function, variable, or constant that is "defined to be equal to" whichever is on the right hand side.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .