PAIBOTLearn
Sign inSign up

Truth tables

Propositions & logic

Japanese school year: University year 1

What you learn

You will learn to construct truth tables for logical operators such as conjunction, disjunction, negation, and implication to determine the validity of compound propositions. This skill is widely applied in logic circuit design and verifying program branching conditions. Basic knowledge of logical operations and set theory will be beneficial.

Go to practice

Key points

This equivalence rewrites the conditional statement "if PP then QQ" as "not PP, or QQ". It is false only when premise PP is true and conclusion QQ is false. Use it to simplify logical reasoning.

(P  ⟹  Q)  ⟺  (¬P∨Q)(P \implies Q) \iff (\neg P \lor Q)

This formula indicates that statements PP and QQ have the exact same truth value in every case (logical equivalence). Use it to show that two different formulas mean the same thing.

P  ⟺  QP \iff Q

This De Morgan's law states that the negation of "both PP and QQ" is "not PP, or not QQ". Use it to simplify negated compound statements in logic and proofs.

¬(P∧Q)  ⟺  ¬P∨¬Q\neg(P \land Q) \iff \neg P \lor \neg Q

This formula calculates the total number of truth combinations NN for nn propositions. Since each proposition has 2 possible states (true or false), n=3n=3 requires 23=82^3 = 8 rows in a truth table.

N=2nN = 2^n

Choose a set to practice.