Sets, shapes and definitions

A  ⟺  BA \iff B If and only if

“If and only if”: each side implies the other, so they are true together or false together.

In ML papers

A  ⟺  BA \iff B reads "AA if and only if BB": AA implies BB and BB implies AA. It states an equivalence between two conditions, as in "AA is invertible   ⟺  det⁡A≠0\iff \det A \ne 0" or "x=0  ⟺  ∥x∥=0\mathbf{x} = \mathbf{0} \iff \|\mathbf{x}\| = 0". In prose it is shortened to "iff".

One-way implication uses a single arrow, ⇒\Rightarrow ("implies").

Other meanings, by context

How to type it

LaTeXShows
\iff  ⟺  \iff
\Leftrightarrow⇔\Leftrightarrow
\leftrightarrow↔\leftrightarrow

A worked example

x2=4  ⇐  x=2,butx2=4⇏x=2x^2 = 4 \;\Leftarrow\; x = 2, \quad \text{but} \quad x^2 = 4 \not\Rightarrow x = 2

x=−2x = -2 also works, so these two are not equivalent: no   ⟺  \iff.

Common confusions

Related

a∧b,a∨b,¬aa \land b, \quad a \lor b, \quad \neg aLogical and, or, notf:Rn→Rmf: \mathbb{R}^n \to \mathbb{R}^mArrow (maps to)f≡0f \equiv 0Identically equal

Decode this example →