# Conjunction/disjunction duality

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\ {\text{XNOR}}\ 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$ |
| converse | $A\Leftarrow B$, $A\subset B$, $A\leftarrow B$ |
Related concepts :
Propositional calculusPredicate logicBoolean algebraTruth tableTruth functionBoolean functionFunctional completenessScope (logic) :
Applications :
Digital logicProgramming languagesMathematical logicPhilosophy of logic :
Category :
vte :
In propositional logic and Boolean algebra, there is a duality between conjunction and disjunction, also called the duality principle. It is the most widely known example of duality in logic. The duality consists in these metalogical theorems:
* In classical propositional logic, the connectives for conjunction and disjunction can be defined in terms of each other, and consequently, only one of them needs to be taken as primitive.
* If $\varphi ^{D}$ is used as notation to designate the result of replacing every instance of conjunction with disjunction, and every instance of disjunction with conjunction (e.g. $p\land q$ with $q\lor p$, or vice-versa), in a given formula $\varphi$, and if ${\overline {\varphi }}$ is used as notation for replacing every sentence-letter in $\varphi$ with its negation (e.g., $p$ with $\neg p$), and if the symbol $\models$ is used for semantic consequence and ⟚ for semantical equivalence between logical formulas, then it is demonstrable that $\varphi ^{D}$ ⟚ $\neg {\overline {\varphi }}$, and also that $\varphi \models \psi$ if, and only if, $\psi ^{D}\models \varphi ^{D}$, and furthermore that if $\varphi$ ⟚ $\psi$ then $\varphi ^{D}$ ⟚ $\psi ^{D}$. (In this context, ${\overline {\varphi }}^{D}$ is called the dual of a formula $\varphi$.)

## Mutual definability

The connectives may be defined in terms of each other as follows:
    $\varphi \lor \psi :\equiv \neg (\neg \varphi \land \neg \psi ).$ (1)
    $\varphi \land \psi :\equiv \neg (\neg \varphi \lor \neg \psi ).$ (2)
    $\neg (\neg \varphi \lor \neg \psi )\equiv \neg \neg (\neg \varphi \land \neg \psi )\equiv \varphi \land \psi .$ (3)

### Functional completeness

Since the Disjunctive Normal Form Theorem shows that the set of connectives $\{\land ,\lor ,\neg \}$ is functionally complete, these results show that the sets of connectives $\{\land ,\neg \}$ and $\{\lor ,\neg \}$ are themselves functionally complete as well.

### De Morgan's laws

De Morgan's laws also follow from the definitions of these connectives in terms of each other, whichever direction is taken to do it.
    $\neg (\varphi \lor \psi )\equiv \neg \varphi \land \neg \psi .$ (4)
    $\neg (\varphi \land \psi )\equiv \neg \varphi \lor \neg \psi .$ (5)

## Duality properties

The dual of a sentence is what you get by swapping all occurrences of ∨ and &, while also negating all propositional constants. For example, the dual of (A & B ∨ C) would be (¬A ∨ ¬B & ¬C). The dual of a formula φ is notated as φ*. The Duality Principle states that in classical propositional logic, any sentence is equivalent to the negation of its dual.
    Duality Principle: For all φ, we have that φ = ¬(φ*).
    Proof: By induction on complexity. For the base case, we consider an arbitrary atomic sentence A. Since its dual is ¬A, the negation of its dual will be ¬¬A, which is indeed equivalent to A. For the induction step, we consider an arbitrary φ and assume that the result holds for all sentences of lower complexity. Three cases:
   * If φ is of the form ¬ψ for some ψ, then its dual will be ¬(ψ*) and the negation of its dual will therefore be ¬¬(ψ*). Now, since ψ is less complex than φ, the induction hypothesis gives us that ψ = ¬(ψ*). By substitution, this gives us that φ = ¬¬(ψ*), which is to say that φ is equivalent to the negation of its dual.
   * If φ is of the form (ψ ∨ χ) for some ψ and χ, then its dual will be (ψ* & χ*), and the negation of its dual will therefore be ¬(ψ* & χ*). Now, since ψ and χ are less complex than φ, the induction hypothesis gives us that ψ = ¬(ψ*) and χ = ¬(χ*). By substitution, this gives us that φ = ¬(ψ*) ∨ ¬(χ*) which in turn gives us that φ = ¬(ψ* & χ*) by DeMorgan's Law. And that is once again just to say that φ is equivalent to the negation of its dual.
   * If φ is of the form ψ ∨ χ, the result follows by analogous reasoning.

### Further duality theorems

Assume $\phi \models \psi$. Then ${\overline {\phi }}\models {\overline {\psi }}$ by uniform substitution of $\neg P_{i}$ for $P_{i}$. Hence, $\neg \psi \models \neg \phi$, by contraposition; so finally, $\psi ^{D}\models \phi ^{D}$, by the property that $\varphi ^{D}$ ⟚ $\neg {\overline {\varphi }}$, which was just proved above. And since $\varphi ^{DD}=\phi$, it is also true that $\varphi \models \psi$ if, and only if, $\psi ^{D}\models \phi ^{D}$. And it follows, as a corollary, that if $\phi \models \neg \psi$, then $\phi ^{D}\models \neg \psi ^{D}$.

## Conjunctive and disjunctive normal forms

For a formula $\varphi$ in disjunctive normal form, the formula ${\overline {\varphi }}^{D}$ will be in conjunctive normal form, and given the result that § Negation is semantically equivalent to dual, it will be semantically equivalent to $\neg \varphi$. This provides a procedure for converting between conjunctive normal form and disjunctive normal form. Since the Disjunctive Normal Form Theorem shows that every formula of propositional logic is expressible in disjunctive normal form, every formula is also expressible in conjunctive normal form by means of effecting the conversion to its dual.