← Logic

Logic

Disjunction (OR)

Lesson

Disjunction is the inclusive OR. pqp \vee q is true when at least oneof the two is true. It’s only false when both are false.

Truth table

  p | q | p∨q
 ---+---+----
  T | T |  T
  T | F |  T
  F | T |  T
  F | F |  F

Inclusive vs exclusive

Logical OR is inclusive: T∨T is T. Everyday “or” is sometimes exclusive (“coffee or tea” usually means one). Logic uses inclusive OR by default.

Practice

Work through these. Stuck? Click Get a hint.

Warm-Up

Quick problems to get going.

Problem 1

TTT \vee T

Problem 2

TFT \vee F

Problem 3

FTF \vee T

Problem 4

FFF \vee F

Practice

Standard problems matching the lesson.

Problem 5

TTFT \vee T \vee F

Problem 6

FFFF \vee F \vee F

Problem 7

“2+2=5 OR 3<5”\text{``2+2=5 OR 3<5''}

Problem 8

“2+2=5 OR 3>5”\text{``2+2=5 OR 3>5''}

Problem 9

“5 is prime OR 6 is prime”\text{``5 is prime OR 6 is prime''}

Problem 10

“4 is prime OR 6 is prime”\text{``4 is prime OR 6 is prime''}

Problem 11

¬TT\neg T \vee T

Problem 12

¬FF\neg F \vee F

Problem 13

F¬TF \vee \neg T

Problem 14

T¬FT \vee \neg F

Problem 15

For pq to be F, how many parts must be F?\text{For } p \vee q \text{ to be F, how many parts must be F?}

Problem 16

For pqr to be F, how many parts must be F?\text{For } p \vee q \vee r \text{ to be F, how many parts must be F?}

Problem 17

“A triangle has 4 sides OR a square has 4 sides”\text{``A triangle has 4 sides OR a square has 4 sides''}

Problem 18

“5 < 3 OR 7 > 10”\text{``5 < 3 OR 7 > 10''}

Challenge

Harder problems — edge cases, trickier numbers, multiple steps.

Problem 19

(TF)F(T \vee F) \vee F

Problem 20

(FF)F(F \vee F) \vee F

Problem 21

¬(TF)\neg(T \vee F)

Problem 22

¬(FF)\neg(F \vee F)

Problem 23

FFFTF \vee F \vee F \vee T

Problem 24

(TF)T(T \wedge F) \vee T

Problem 25

(TF)F(T \wedge F) \vee F

Ask the tutor

Stuck on a concept? Want another example? Ask anything about this topic.

Type your own question below, or tap one of the suggestions. The tutor can re-explain the lesson, work through a specific problem with you, generate fresh practice tuned to where you are, or check your reasoning.

Quiz

Test yourself on this topic →

10 questions, no hints. About 5 minutes.