# Logical biconditional

Venn diagram of ${\displaystyle P\leftrightarrow Q}$
(true part in red)

In logic and mathematics, the logical biconditional, sometimes known as the material biconditional, is the logical connective used to conjoin two statements ${\displaystyle P}$ and ${\displaystyle Q}$ to form the statement "${\displaystyle P}$ if and only if ${\displaystyle Q}$", where ${\displaystyle P}$ is known as the antecedent, and ${\displaystyle Q}$ the consequent.[1][2][3] This is often abbreviated as "${\displaystyle P}$ iff ${\displaystyle Q}$".[4] The operator is denoted using a doubleheaded arrow (↔[5] or ⇔[6]), a prefixed E "Epq" (in Łukasiewicz notation or Bocheński notation), an equality sign (=), an equivalence sign (≡)[4], or EQV. It is logically equivalent to both${\displaystyle (P\rightarrow Q)\land (Q\rightarrow P)}$ and ${\displaystyle (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 is false but the conclusion is true. In which case, the result is true for the conditional, but false for the biconditional.[2]

In the conceptual interpretation, ${\displaystyle P=Q}$ means "All ${\displaystyle P}$'s are ${\displaystyle Q}$'s and all ${\displaystyle Q}$'s are ${\displaystyle P}$'s". In other words, the sets ${\displaystyle P}$ and ${\displaystyle Q}$ coincide: they are identical. However, this does not mean that ${\displaystyle P}$ and ${\displaystyle Q}$ need to have the same meaning (e.g., ${\displaystyle P}$ could be "equiangular trilateral" and ${\displaystyle 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, ${\displaystyle P\leftrightarrow Q}$ means that ${\displaystyle P}$ implies ${\displaystyle Q}$ and ${\displaystyle Q}$ implies ${\displaystyle 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 ${\displaystyle P}$ could be "the triangle ABC has two equal sides" and ${\displaystyle 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 ${\displaystyle P\leftrightarrow Q}$ is to demonstrate that ${\displaystyle P\rightarrow Q}$ and ${\displaystyle Q\rightarrow P}$ separately (due to its equivalence to the conjunction of the two converse conditionals[2]). Yet another way of demonstrating the same biconditional is by demonstrating that ${\displaystyle P\rightarrow Q}$ and ${\displaystyle \neg P\rightarrow \neg Q}$.[1]

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.[citation needed] 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.

## 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.[2]

### Truth table

The following is truth table for ${\displaystyle P\leftrightarrow Q}$ (also written as ${\displaystyle P\equiv Q}$, ${\displaystyle P=Q}$, or P EQ Q):

 ${\displaystyle P}$ ${\displaystyle Q}$ ${\displaystyle P\leftrightarrow Q}$ T T T T F F F T F F F T

When more than two statements are involved, combining them with${\displaystyle \;\leftrightarrow }$ might be ambiguous. For example, the statement

${\displaystyle x_{1}\leftrightarrow x_{2}\leftrightarrow x_{3}\leftrightarrow ...\leftrightarrow x_{n}}$

may be interpreted as

${\displaystyle (((x_{1}\leftrightarrow x_{2})\leftrightarrow x_{3})\leftrightarrow ...)\leftrightarrow x_{n}}$,

or may be interpreted as saying that all ${\displaystyle x_{i}}$ are jointly true or jointly false:

${\displaystyle (x_{1}\land ...\land x_{n})\lor (\neg x_{1}\land ...\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:

${\displaystyle ~x_{1}\leftrightarrow ...\leftrightarrow x_{n}}$
meant as equivalent to
${\displaystyle \neg ~(\neg x_{1}\oplus ...\oplus \neg x_{n})}$

The central Venn diagram below,
and line (ABC  ) in this matrix
represent the same operation.
${\displaystyle ~x_{1}\leftrightarrow ...\leftrightarrow x_{n}}$
meant as shorthand for
${\displaystyle (~x_{1}\land ...\land x_{n}~)}$
${\displaystyle \lor ~(\neg x_{1}\land ...\land \neg x_{n})}$

The Venn diagram directly below,
and line (ABC  ) in this matrix
represent the same operation.

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 statementsis the negation of the exclusive or: ${\displaystyle ~A\leftrightarrow B~~\Leftrightarrow ~~\neg (A\oplus B)}$ ${\displaystyle \Leftrightarrow \neg }$
 The biconditional and theexclusive or of three statementsgive the same result: ${\displaystyle ~A\leftrightarrow B\leftrightarrow C~~\Leftrightarrow }$ ${\displaystyle ~A\oplus B\oplus C}$ ${\displaystyle \leftrightarrow }$ ${\displaystyle ~~\Leftrightarrow ~~}$ ${\displaystyle \oplus }$ ${\displaystyle ~~\Leftrightarrow ~~}$
 But ${\displaystyle ~A\leftrightarrow B\leftrightarrow C}$may also be used as an abbreviationfor ${\displaystyle (A\leftrightarrow B)\land (B\leftrightarrow C)}$ ${\displaystyle \land }$ ${\displaystyle ~~\Leftrightarrow ~~}$

## Properties

Commutativity: Yes

 ${\displaystyle A\leftrightarrow B}$ ${\displaystyle \Leftrightarrow }$ ${\displaystyle B\leftrightarrow A}$ ${\displaystyle \Leftrightarrow }$

Associativity: Yes

 ${\displaystyle ~A}$ ${\displaystyle ~~~\leftrightarrow ~~~}$ ${\displaystyle (B\leftrightarrow C)}$ ${\displaystyle \Leftrightarrow }$ ${\displaystyle (A\leftrightarrow B)}$ ${\displaystyle ~~~\leftrightarrow ~~~}$ ${\displaystyle ~C}$ ${\displaystyle ~~~\leftrightarrow ~~~}$ ${\displaystyle \Leftrightarrow }$ ${\displaystyle \Leftrightarrow }$ ${\displaystyle ~~~\leftrightarrow ~~~}$

Distributivity: Biconditional doesn't distribute over any binary function (not even itself), but logical disjunction distributes over biconditional.

idempotency: No

 ${\displaystyle ~A~}$ ${\displaystyle ~\leftrightarrow ~}$ ${\displaystyle ~A~}$ ${\displaystyle \Leftrightarrow }$ ${\displaystyle ~1~}$ ${\displaystyle \nLeftrightarrow }$ ${\displaystyle ~A~}$ ${\displaystyle ~\leftrightarrow ~}$ ${\displaystyle \Leftrightarrow }$ ${\displaystyle \nLeftrightarrow }$

Monotonicity: No

 ${\displaystyle A\rightarrow B}$ ${\displaystyle \nRightarrow }$ ${\displaystyle (A\leftrightarrow C)}$ ${\displaystyle \rightarrow }$ ${\displaystyle (B\leftrightarrow C)}$ ${\displaystyle \nRightarrow }$ ${\displaystyle \Leftrightarrow }$ ${\displaystyle \rightarrow }$

Truth-preserving: Yes
When all inputs are true, the output is true.

 ${\displaystyle A\land B}$ ${\displaystyle \Rightarrow }$ ${\displaystyle A\leftrightarrow B}$ ${\displaystyle \Rightarrow }$

Falsehood-preserving: No
When all inputs are false, the output is not false.

 ${\displaystyle A\leftrightarrow B}$ ${\displaystyle \nRightarrow }$ ${\displaystyle A\lor B}$ ${\displaystyle \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:

 B → A
A → B
∴ A ↔ B

 B → A
A → B
∴ B ↔ A


### 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:

 A ↔ B
∴ A → B

 A ↔ B
∴ B → A


## 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".[1] The plain English "if'" may sometimes be used as a biconditional (especially in the context of a mathematical definition[7]). 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.