# Logical biconditional

Logical connectives :
| NOT | $\neg A,-A,{\overline {A}},\sim A$ |
| AND | $A\land B,A\cdot B,AB,A\ \&\ B,A\ \&\&\ B$ |
| NAND | $A{\overline {\land }}B,A\uparrow B,A\mid B,{\overline {A\cdot B}}$ |
| OR | $A\lor B,A+B,A\mid B,A\parallel B$ |
| NOR | $A{\overline {\lor }}B,A\downarrow B,{\overline {A+B}}$ |
| XNOR | $A\odot B,{\overline {A{\overline {\lor }}B}}$ |
| └ equivalent | $A\equiv B,A\Leftrightarrow B,A\leftrightharpoons B$ |
| XOR | $A{\underline {\lor }}B,A\oplus B$ |
| └nonequivalent | $A\not \equiv B,A\not \Leftrightarrow B,A\nleftrightarrow B$ |
| implies | $A\Rightarrow B,A\supset B,A\rightarrow B$ |
| nonimplication (NIMPLY) | $A\not \Rightarrow B,A\not \supset B,A\nrightarrow B$ |
| converse | $A\Leftarrow B,A\subset B,A\leftarrow B$ |
| converse nonimplication | $A\not \Leftarrow B,A\not \subset B,A\nleftarrow B$ |
Related concepts :
Propositional calculusPredicate logicBoolean algebraTruth tableTruth functionBoolean functionFunctional completenessScope (logic) :
Applications :
Digital logicProgramming languagesMathematical logicPhilosophy of logic :
Category :
vte :
In logic and mathematics, the logical biconditional, also known as material biconditional or equivalence or bidirectional implication or biimplication or bientailment, is the logical connective used to conjoin two statements $P$ and $Q$ to form the statement "$P$ if and only if $Q$" (often abbreviated as "$P$ iff $Q$"), where $P$ is known as the antecedent, and $Q$ the consequent.
Nowadays, notations to represent equivalence include $\leftrightarrow ,\Leftrightarrow ,\equiv$.
$P\leftrightarrow Q$ is logically equivalent to both $(P\rightarrow Q)\land (Q\rightarrow P)$ and $(P\land Q)\lor (\neg P\land \neg Q)$, and the XNOR (exclusive nor) Boolean operator, which means "both or neither".
Semantically, the only case where a logical biconditional is different from a material conditional is the case where the hypothesis (antecedent) is false but the conclusion (consequent) is true. In this case, the result is true for the conditional, but false for the biconditional.
In the conceptual interpretation, P = Q means "All P's are Q's and all Q's are P's". In other words, the sets P and Q coincide: they are identical. However, this does not mean that P and Q need to have the same meaning (e.g., P could be "equiangular trilateral" and Q could be "equilateral triangle"). When phrased as a sentence, the antecedent is the subject and the consequent is the predicate of a universal affirmative proposition (e.g., in the phrase "all men are mortal", "men" is the subject and "mortal" is the predicate).
In the propositional interpretation, $P\leftrightarrow Q$ means that P implies Q and Q implies P; in other words, the propositions are logically equivalent, in the sense that both are either jointly true or jointly false. Again, this does not mean that they need to have the same meaning, as P could be "the triangle ABC has two equal sides" and Q could be "the triangle ABC has two equal angles". In general, the antecedent is the premise, or the cause, and the consequent is the consequence. When an implication is translated by a hypothetical (or conditional) judgment, the antecedent is called the hypothesis (or the condition) and the consequent is called the thesis.
A common way of demonstrating a biconditional of the form $P\leftrightarrow Q$ is to demonstrate that $P\rightarrow Q$ and $Q\rightarrow P$ separately (due to its equivalence to the conjunction of the two converse conditionals). Yet another way of demonstrating the same biconditional is by demonstrating that $P\rightarrow Q$ and $\neg P\rightarrow \neg Q$.
When both members of the biconditional are propositions, it can be separated into two conditionals, of which one is called a theorem and the other its reciprocal. Thus whenever a theorem and its reciprocal are true, we have a biconditional. A simple theorem gives rise to an implication, whose antecedent is the hypothesis and whose consequent is the thesis of the theorem.
It is often said that the hypothesis is the sufficient condition of the thesis, and that the thesis is the necessary condition of the hypothesis. That is, it is sufficient that the hypothesis be true for the thesis to be true, while it is necessary that the thesis be true if the hypothesis were true. When a theorem and its reciprocal are true, its hypothesis is said to be the necessary and sufficient condition of the thesis. That is, the hypothesis is both the cause and the consequence of the thesis at the same time.

## Notations

Notations to represent equivalence used in history include:
* $=$ in George Boole in 1847. Although Boole used $=$ mainly on classes, he also considered the case that $x,y$ are propositions in $x=y$, and at the time $=$ is equivalence.
* $\equiv$ in Frege in 1879;
* $\sim$ in Bernays in 1918;
* $\rightleftarrows$ in Hilbert in 1927 (while he used $\sim$ as the main symbol in the article);
* $\leftrightarrow$ in Hilbert and Ackermann in 1928 (they also introduced $\rightleftarrows ,\sim$ while they use $\sim$ as the main symbol in the whole book; $\leftrightarrow$ is adopted by many followers such as Becker in 1933);
* $E$ (prefix) in Łukasiewicz in 1929 and $Q$ (prefix) in Łukasiewicz in 1951;
* $\supset \subset$ in Heyting in 1930;
* $\Leftrightarrow$ in Bourbaki in 1954;
* $\subset \supset$ in Chazal in 1996;
and so on. Somebody else also use $\operatorname {EQ}$ or $\operatorname {EQV}$ occasionally.

## Definition

Logical equality (also known as biconditional) is an operation on two logical values, typically the values of two propositions, that produces a value of true if and only if both operands are false or both operands are true.

### Truth table

The following is a truth table for $A\leftrightarrow B$:
| $A$ | $B$ | $A\leftrightarrow B$ |
| F | F | T |
| F | T | F |
| T | F | F |
| T | T | T |
When more than two statements are involved, combining them with $\leftrightarrow$ might be ambiguous. For example, the statement
    $x_{1}\leftrightarrow x_{2}\leftrightarrow x_{3}\leftrightarrow \cdots \leftrightarrow x_{n}$
may be interpreted as
    $(((x_{1}\leftrightarrow x_{2})\leftrightarrow x_{3})\leftrightarrow \cdots )\leftrightarrow x_{n}$,
or may be interpreted as saying that all x$_i$ are jointly true or jointly false:
    $(x_{1}\land \cdots \land x_{n})\lor (\neg x_{1}\land \cdots \land \neg x_{n})$
As it turns out, these two statements are only the same when zero or two arguments are involved. In fact, the following truth tables only show the same bit pattern in the line with no argument and in the lines with two arguments:
The left Venn diagram below, and the lines (AB ) in these matrices represent the same operation.

### Venn diagrams

Red areas stand for true (as in for and).
* The biconditional of two statements is the negation of the exclusive or:
* $~A\leftrightarrow B~~\Leftrightarrow ~~\neg (A\oplus B)$
* $\Leftrightarrow \neg$
* The biconditional and the exclusive or of three statements give the same result:
* $~A\leftrightarrow B\leftrightarrow C~~\Leftrightarrow$
* $~A\oplus B\oplus C$
* $\leftrightarrow$
* $~~\Leftrightarrow ~~$
* $\oplus$
* $~~\Leftrightarrow ~~$
* But $~A\leftrightarrow B\leftrightarrow C$ may also be used as an abbreviation for $(A\leftrightarrow B)\land (B\leftrightarrow C)$
* $\land$
* $~~\Leftrightarrow ~~$

## Properties

Commutativity: Yes
| $A\leftrightarrow B$ | $\Leftrightarrow$ | $B\leftrightarrow A$ |
| | $\Leftrightarrow$ | |
Associativity: Yes
| $~A$ | $~~~\leftrightarrow ~~~$ | $(B\leftrightarrow C)$ | $\Leftrightarrow$ | | $(A\leftrightarrow B)$ | $~~~\leftrightarrow ~~~$ | $~C$ |
| | $~~~\leftrightarrow ~~~$ | | $\Leftrightarrow$ | $\Leftrightarrow$ | | $~~~\leftrightarrow ~~~$ | |
Distributivity: Biconditional doesn't distribute over any binary function (not even itself), but logical disjunction distributes over biconditional.
Idempotency: No
| $~A~$ | $~\leftrightarrow ~$ | $~A~$ | $\Leftrightarrow$ | $~1~$ | $\nLeftrightarrow$ | $~A~$ |
| | $~\leftrightarrow ~$ | | $\Leftrightarrow$ | | $\nLeftrightarrow$ | |
Monotonicity: No
| $A\rightarrow B$ | $\nRightarrow$ | | $(A\leftrightarrow C)$ | $\rightarrow$ | $(B\leftrightarrow C)$ |
| | $\nRightarrow$ | $\Leftrightarrow$ | | $\rightarrow$ | |
Truth-preserving: Yes When all inputs are true, the output is true.
| $A\land B$ | $\Rightarrow$ | $A\leftrightarrow B$ |
| | $\Rightarrow$ | |
Falsehood-preserving: No When all inputs are false, the output is not false.
| $A\leftrightarrow B$ | $\nRightarrow$ | $A\lor B$ |
| | $\nRightarrow$ | |
Walsh spectrum: (2,0,0,2)
Nonlinearity: 0 (the function is linear)

## Rules of inference

Like all connectives in first-order logic, the biconditional has rules of inference that govern its use in formal proofs.

### Biconditional introduction

Biconditional introduction allows one to infer that if B follows from A and A follows from B, then A if and only if B.
For example, from the statements "if I'm breathing, then I'm alive" and "if I'm alive, then I'm breathing", it can be inferred that "I'm breathing if and only if I'm alive" or equivalently, "I'm alive if and only if I'm breathing." Or more schematically:

### Biconditional elimination

Biconditional elimination allows one to infer a conditional from a biconditional: if A ↔ B is true, then one may infer either A → B, or B → A.
For example, if it is true that I'm breathing if and only if I'm alive, then it's true that if I'm breathing, then I'm alive; likewise, it's true that if I'm alive, then I'm breathing. Or more schematically:

## Colloquial usage

One unambiguous way of stating a biconditional in plain English is to adopt the form "b if a and a if b"—if the standard form "a if and only if b" is not used. Slightly more formally, one could also say that "b implies a and a implies b", or "a is necessary and sufficient for b". The plain English "if'" may sometimes be used as a biconditional (especially in the context of a mathematical definition). In which case, one must take into consideration the surrounding context when interpreting these words.
For example, the statement "I'll buy you a new wallet if you need one" may be interpreted as a biconditional, since the speaker doesn't intend a valid outcome to be buying the wallet whether or not the wallet is needed (as in a conditional). However, "it is cloudy if it is raining" is generally not meant as a biconditional, since it can still be cloudy even if it is not raining.