Exclusive Disjunction in Propositional Logic

Exclusive disjunction is a logical operation that takes two formulas as inputs and returns a formula whose value is \(1\) if and only if exactly one of the two input formulas has the value \(1\).

Exclusive Disjunction of Formulas

By the definition of a formula, if the logical operator \(\veebar\) is applied to formulas \(A,B\), the resulting expression \begin{equation*}
A\veebar B
\end{equation*}is also a formula. The symbol \(\veebar\) is a logical operator called exclusive disjunction, and the formula \(A\veebar B\) is called the exclusive disjunction of \(A\) and \(B\), or “either \(A\) or \(B\)” (\(A\) or \(B\), but not both).

Example (Exclusive Disjunction)
We formalize the statement “Either both Suzuki and Kato are lying, or neither of them is lying.” Let propositional variables \(P,Q\) be defined by \begin{eqnarray*}
P &:&\text{Suzuki is lying} \\
Q &:&\text{Kato is lying}.
\end{eqnarray*}Then “Both Suzuki and Kato are lying” is formalized as
\begin{equation*}
P\wedge Q,
\end{equation*}while “Neither Suzuki nor Kato is lying” is formalized as
\begin{equation*}
\lnot P\wedge \lnot Q.
\end{equation*}Therefore, the entire statement is formalized as
\begin{equation*}
\left( P\wedge Q\right) \veebar \left( \lnot P\wedge \lnot Q\right).
\end{equation*}
Example (Exclusive Disjunction)
Let propositional variables \(P,Q\) be defined respectively by \begin{eqnarray*}
P &:&\text{The husband works} \\
Q &:&\text{The wife works}.
\end{eqnarray*}Then
\begin{eqnarray*}
P\wedge \lnot Q &:&\text{The husband works and the wife does not} \\
\lnot P\wedge Q &:&\text{The husband does not work and the wife does}.
\end{eqnarray*}Therefore,
\begin{equation*}
\left( P\wedge \lnot Q\right) \veebar \left( \lnot P\wedge Q\right) :\text{Either the husband works and the wife does not, or the husband does not work and the wife does}
\end{equation*}holds.

 

Interpretation of Exclusive Disjunction

The value of the exclusive disjunction \(A\veebar B\) depends on the values of \(A\) and \(B\). The correspondence is defined by the following truth table.

$$\begin{array}{ccc}\hline
A & B & A\veebar B \\ \hline1 & 1 & 0 \\ \hline1 & 0 & 1 \\ \hline0 & 1 & 1 \\ \hline0 & 0 & 0 \\ \hline\end{array}$$

Thus, exclusive disjunction \(\veebar\) is a logical operation that takes formulas \(A,B\) as inputs and outputs a formula \(A\veebar B\) whose value is \(1\) if and only if exactly one of \(A\) and \(B\) has value \(1\). In the remaining cases, namely when both \(A\) and \(B\) have value \(1\) or when both have value \(0\), the value of \(A\veebar B\) is \(0\).
For the disjunction \(A\vee B\) to be true, it is sufficient that at least one of \(A\) and \(B\) be true, and \(A\vee B\) is also true when both \(A\) and \(B\) are true. By contrast, the exclusive disjunction \(A\veebar B\) is true only when exactly one of \(A\) and \(B\) is true. When both \(A\) and \(B\) are true, \(A\veebar B\) is not true. This is the difference between exclusive disjunction and disjunction.

Example (Exclusive Disjunction of Propositional Variables)
By the definition of a formula, propositional variables \(P,Q\) are themselves formulas and therefore may be operands of exclusive disjunction \(\veebar\). By the definition of exclusive disjunction, we obtain the following truth table.

$$\begin{array}{ccc}\hline
P & Q & P\veebar Q \\ \hline1 & 1 & 0 \\ \hline1 & 0 & 1 \\ \hline0 & 1 & 1 \\ \hline0 & 0 & 0 \\ \hline\end{array}$$

Example (Exclusive Disjunction of a Propositional Variable and Propositional Constants)
By the definition of a formula, the propositional variable \(P\) and propositional constants \(T,F\) are all formulas and therefore may be operands of exclusive disjunction \(\veebar\). By the definition of exclusive disjunction, we obtain the following truth table.

$$\begin{array}{cccccc}\hline
P & T & F & P\veebar T & P\veebar F & T\veebar F \\ \hline1 & 1 & 0 & 0 & 1 & 1 \\ \hline0 & 1 & 0 & 1 & 0 & 1 \\ \hline\end{array}$$

Example (Interpretation of Exclusive Disjunction)
Suppose that propositional variables \(P,Q\) are given. Since their exclusive disjunction \(P\veebar Q\) is a formula, its exclusive disjunction with another propositional variable \(R\), \begin{equation*}
\left( P\veebar Q\right) \veebar R,
\end{equation*}is also a formula. Their truth values satisfy the following relation.

$$\begin{array}{ccccc}\hline
P & Q & R & P\veebar Q & \left( P\veebar Q\right) \veebar R \\ \hline
1 & 1 & 1 & 0 & 1 \\ \hline1 & 1 & 0 & 0 & 0 \\ \hline1 & 0 & 1 & 1 & 0 \\ \hline1 & 0 & 0 & 1 & 1 \\ \hline0 & 1 & 1 & 1 & 0 \\ \hline0 & 1 & 0 & 1 & 1 \\ \hline0 & 0 & 1 & 0 & 1 \\ \hline0 & 0 & 0 & 0 & 0 \\ \hline\end{array}$$

Example (Interpretation of Exclusive Disjunction)
Suppose that propositional variables \(P,Q\) are given. By the definitions of negation \(\lnot\) and exclusive disjunction \(\veebar\), the expressions \(P\veebar Q\), \(\lnot P\veebar Q\), and \(P\veebar \lnot Q\) are all formulas. Their truth values satisfy the following relation.

$$\begin{array}{ccccccc}\hline
P & Q & \lnot P & \lnot Q & P\veebar Q & \lnot P\veebar Q & P\veebar \lnot Q \\ \hline1 & 1 & 0 & 0 & 0 & 1 & 1 \\ \hline1 & 0 & 0 & 1 & 1 & 0 & 0 \\ \hline0 & 1 & 1 & 0 & 1 & 0 & 0 \\ \hline0 & 0 & 1 & 1 & 0 & 1 & 1 \\ \hline\end{array}$$

Example (Interpretation of Exclusive Disjunction)
Suppose that propositional variables \(P,Q,R\) are given. By the definitions of negation \(\lnot\), conjunction \(\wedge\), and exclusive disjunction \(\veebar\), the expression \(\left( \lnot P\wedge Q\right) \veebar \lnot R\) is a formula. Its truth values satisfy the following relation.

$$\begin{array}{ccccccc}\hline
P & Q & R & \lnot P & \lnot R & \lnot P\wedge Q & \left( \lnot P\wedge Q\right) \veebar \lnot R \\ \hline1 & 1 & 1 & 0 & 0 & 0 & 0 \\ \hline1 & 1 & 0 & 0 & 1 & 0 & 1 \\ \hline1 & 0 & 1 & 0 & 0 & 0 & 0 \\ \hline1 & 0 & 0 & 0 & 1 & 0 & 1 \\ \hline0 & 1 & 1 & 1 & 0 & 1 & 1 \\ \hline0 & 1 & 0 & 1 & 1 & 1 & 0 \\ \hline0 & 0 & 1 & 1 & 0 & 0 & 0 \\ \hline0 & 0 & 0 & 1 & 1 & 0 & 1 \\ \hline\end{array}$$

 

Relationship Between Exclusive Disjunction and Negation, Conjunction, and Disjunction

For arbitrary formulas \(A,B\), we obtain the following truth table.

$$\begin{array}{cccccc}\hline
A & B & A\veebar B & A\wedge \lnot B & \lnot A\wedge B & \left(A\wedge \lnot B\right) \vee \left( \lnot A\wedge B\right) \\ \hline1 & 1 & 0 & 0 & 0 & 0 \\ \hline1 & 0 & 1 & 1 & 0 & 1 \\ \hline0 & 1 & 1 & 0 & 1 & 1 \\ \hline0 & 0 & 0 & 0 & 0 & 0 \\ \hline\end{array}$$

The truth table above shows that the value of the exclusive disjunction \(A\veebar B\) always agrees with the value of the formula \begin{equation*}
\left( A\wedge \lnot B\right) \vee \left( \lnot A\wedge B\right).
\end{equation*}This means that exclusive disjunction \(\veebar\) can be defined indirectly in terms of negation \(\lnot\), conjunction \(\wedge\), and disjunction \(\vee\). Therefore, once negation, conjunction, and disjunction have been defined, it is not strictly necessary to define exclusive disjunction as a new logical operation. Nevertheless, defining exclusive disjunction as an independent logical operation is often convenient, so we continue to use \(\veebar\) in this text.
 

Exercises

Problem (Formalization of Statements)
Formalize each of the following statements as a formula.

  1. Either you go buy eggs, or we will have fried rice without eggs.
  2. Exactly one of Kato and Suzuki is absent.
  3. Satoshi is either at the office or at the gym.
  4. Either every integer is divisible by \(2\), or it is not the case that every integer is divisible by \(2\).
View Solution

Members-Only Content
【Log In】【Sign Up】

Problem (Formalization of Statements)
We formalize the statement “Exactly one of Kato and Suzuki is at home.” Let propositional variables \(P,Q\) be defined respectively by \begin{eqnarray*}
P &:&\text{Kato is at home} \\
Q &:&\text{Suzuki is at home}.
\end{eqnarray*}One person formalized the statement as
\begin{equation*}
\left( P\wedge \lnot Q\right) \vee \left( Q\wedge \lnot P\right),
\end{equation*}while another formalized it as
\begin{equation*}
P\veebar Q.
\end{equation*}Which is correct? Give your answer with a reason.
View Solution

Members-Only Content
【Log In】【Sign Up】

Problem (Truth Table)
Complete the following truth table.

$$\begin{array}{ccccccc}\hline
P & Q & T & F & P\wedge Q & \left( P\wedge Q\right) \veebar T & \left( P\wedge Q\right) \veebar F \\ \hline1 & 1 & 1 & 0 & & & \\ \hline1 & 0 & 1 & 0 & & & \\ \hline0 & 1 & 1 & 0 & & & \\ \hline0 & 0 & 1 & 0 & & & \\ \hline\end{array}$$

View Solution

Members-Only Content
【Log In】【Sign Up】

Problem (Truth Table)
Complete the following truth table.

$$\begin{array}{ccccccc}\hline
P & Q & T & F & P\veebar Q & \left( P\veebar Q\right) \veebar T& \left( P\veebar Q\right) \veebar F \\ \hline1 & 1 & 1 & 0 & & & \\ \hline1 & 0 & 1 & 0 & & & \\ \hline0 & 1 & 1 & 0 & & & \\ \hline0 & 0 & 1 & 0 & & & \\ \hline\end{array}$$

View Solution

Members-Only Content
【Log In】【Sign Up】

Problem (Exclusive Disjunction of Finitely Many Formulas)
For every \(n\in \mathbb{N}\) satisfying \(n\geq 2\), prove by mathematical induction on \(n\) that an odd number of the \(n\) formulas \(A_{1},\cdots ,A_{n}\)are true if and only if the formula
\begin{equation*}
\left( \left( \cdots \left( \cdots \left( \left( A_{1}\veebar A_{2}\right)
\veebar A_{3}\right) \veebar \cdots \right) \veebar A_{n-1}\right) \veebar A_{n}\right)
\end{equation*}is true.
View Solution

Members-Only Content
【Log In】【Sign Up】

Discussion

To ask questions about this material or discuss it with other learners, you need to register as a member and log in.

  • Members can post comments
  • You can reply to other users
  • You can search and view past discussions
  • You can edit your posts later

At WIIS, we believe that all users are equal as learners, regardless of age, gender, educational background, occupation, or social status.

This is not a place to compete over knowledge, but a space to deepen understanding while respecting one another’s ideas. Questions and opinions are welcome, and you are also encouraged to ask openly about anything you do not understand.

To help maintain a constructive and welcoming learning environment, please review the guidelines before posting.

If you find a typo, broken link, or error in the content, please let us know using the form below.

Ask AI
WIIS AI Tutor ×
Checking today's usage...
Hello! I am the AI tutor for this material. Ask me about proofs, concepts, calculations, or anything else related to this page.

💡 Select text or equations on the page to quote them automatically in the input box below.

Table of Contents

MEMBERSHIP

Take your learning further.

Join WIIS to access
members-only content,
downloadable PDF textbooks,
AI Tutor, forums,
and other member benefits.

MEMBERS-ONLY CONTENT

Access exclusive materials designed for deeper learning.

PDF TEXTBOOKS

Download textbooks and study them anywhere.

AI Tutor

Use AI-powered support to deepen your understanding.

COMMUNITY FEATURES

Connect with other learners and join discussions and research.

Recently Viewed Pages