Skip main navigation

New offer! Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. New subscribers only. T&Cs apply

Find out more

Disjunction operator

The statement "I like dogs or I like cats" is an example of a disjunctive proposition.

In the previous activity we looked at the conjunction operator. In this step, we will introduce the disjunction operator.

The disjunction operator

The statement “I like dogs or I like cats” is another example of a compound proposition as it is made up of two simpler propositions “I like dogs”, and the proposition “I like cats”. It appears to be similar to the conjunction we just learned about, however, it is different. Consider the two statements “I like dogs or I like cats” and “I like dogs and I like cats”. What is the difference? Can you describe the difference in spoken English, perhaps to a friend?

The statement “I like dogs or I like cats” is an example of a disjunctive proposition. The word “or” in the compound proposition has a special purpose. It conveys the concept of disjunction. Consider the statement carefully; when is the statement true? Consider your friend saying it to you.

The statement is true in three circumstances:

  1. When your friend likes dogs, or
  2. When your friend likes cats, or
  3. When your friend likes both cats and dogs.

Now, think about when the compound proposition is false. If your friend said “I like dogs or I like cats” to you, and you knew they were not telling the truth, then you would know that your friend does not like dogs and they do not like cats.

In logic we have a symbol that represents the disjunction operator. Let 
(p) represent the proposition “I like dogs” and let (q) represent the proposition “I like cats”. The compound proposition “I like dogs or I like cats” can be represented as (p lor q), which is read as “p or q”.

We can describe a disjunctive compound proposition using the truth table below. Check if your understanding of disjunction is correct by reasoning about the meaning of the compound proposition “I like dogs or I like cats” when the proposition “I like dogs”, and the proposition “I like cats” are true or false. The table summaries what the correct reasoning is.

(p) (q) (p lor  q)
(F) (F) (F)
(F) (T) (T)
(T) (F) (T)
(T) (T) (T)

In the next step, we will look at the exclusive disjunction operator and how it differs from the previously introduced operations.

This article is from the free online

An Introduction to Logic for Computer Science

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now