Steply

Truth table of p or ~p

Step by step, with the reason for every step · Truth tables · Discrete Math

Step by step

The question

Question: make the truth table of p ∨ ¬p.

p ∨ ¬p

1 Rows for p

Each letter can be true or false.

One letters give 2 = 2 rows: every way they can go.

= one letters: 2 = 2 rows

We make a table: a column for each letter, then a column for each part, from the inside out.

We write T for true and F for false.

T = true, F = false

p: the first half T, the second half F.

This way no row is missed.

2 Column for ¬p

We read this sign as not.

¬ = not

¬p is the opposite of p: T becomes F, F becomes T.

¬p: the opposite of p

So it is T only in row 2.

3 Column for p ∨ ¬p

We read this sign as or.

∨ = or

p ∨ ¬p is true when at least one of them is true.

It is false only when both are false.

p ∨ ¬p: F only when both are F

It is T in every row.

Careful!

Or includes both.

When both are true, T ∨ T is T.

Careful: not T ∨ T = F ✗

The last column is the answer: when p ∨ ¬p is true.

Top to bottom: T, T.

= p ∨ ¬p: T, T

It is true in every row.

A statement that is always true is called a tautology.

= always T: a tautology

4 Check

Let's check row 2 by hand.

In row 2, p is false.

row 2: p = F

Put them in: F ∨ ¬F.

The inside first.

It gives T, as in the table.

Right!

F ∨ ¬F = F ∨ T = T

Let's look back.

First: rows for p.

Then: column for ¬p.

Then: column for p ∨ ¬p.

Last: check.

Answer
= p ∨ ¬p: T, T

Your turn

Try this one yourself, then check:

Make the truth table of p → ¬p
Show the answer
p → ¬p: F, T

More from Truth tables

The whole lesson: Truth tables →