If and only if
“If and only if”: each side implies the other, so they are true together or false together.
In ML papers
reads " if and only if ": implies and implies . It states an equivalence between two conditions, as in " is invertible " or "". In prose it is shortened to "iff".
One-way implication uses a single arrow, ("implies").
Other meanings, by context
- Sequences and graphs. A thin double arrow can mean "swap", "corresponds to", or an undirected edge.
How to type it
| LaTeX | Shows |
|---|---|
\iff | |
\Leftrightarrow | |
\leftrightarrow |
A worked example
also works, so these two are not equivalent: no .
Common confusions
- (implies) is not (Arrow (maps to), "maps to" or "tends to").