Mathematical Logic: Logical Connectives, Truth Table

Lets learn about Mathematical Logic in this page.

Proposition

A declarative statement (or assertion) that has a definite truth value, either true or false, but not both, is called a proposition. Lower case letters are often used to denote propositions, for example, p, q, r etc.

  1. Questions, commands, or exclamatory sentences in nature are not propositions.
  2. A proposition always have a truth value (T/F). [T for true and F for false]

Examples of Propositions

The following are few examples of propositions.

  • “2 + 2 = 4” → True
  • “4 is a prime number” → False
  • “Every even number is divisible by 2” → True

Non-examples of Propositions: The below statements are not propositions.

  1. “What a beautiful day!” (Exclamation)
  2. “What time is it?” (Question)
  3. “Open the door.” (Command)
  4. “x > 7” (truth depends on x, so it is an open sentence with variable).

Mathematical Logic Operators

In mathematical (propositional) logic, logical operators, also called logical connectives, are used to combine or modify propositions to form new propositions.

The basic mathematical logic operators are listed below with symbols:

  1. Conjunction (∧)
  2. Disjunction (∨)
  3. Negation (~ or ¬)
  4. Implication (→ or ⇒)
  5. Double Implication (↔ or ⇔)

Conjunction (AND)

Let p and q be two propositions. Their conjunction, denoted as p∧q, is a compound proposition which is true when both p and q are true.

The truth table of conjunction (and) is given below.

pqp∧q
TTT
TFF
FTF
FFF

Disjunction (OR)

The disjunction of two propositions p and q, denoted as p∨q, is a compound proposition which is true when anyone of them is true.

The truth table of disjunction (or) is given below.

pqp∨q
TTT
TFT
FTT
FFF

Negation (NOT)

Let p denote a proposition. Its negation, denoted as ~p or ¬p, is a simple proposition which becomes true when p false and vice-versa. ~p read as negation of p.

The truth table of negation is described below.

p~p
TF
FF

Implication (IF–THEN)

The logical connective implication is also known as conditional operator. For two propositions p and q, the symbol p→q denotes their implication whose truth table is given as follows.

pqp→q
TTT
TFF
FTT
FFT

p→q read as if p then q.

Note the following.

  1. The converse of p→q is q→p.
  2. The inverse of p→q is ~p→~q.
  3. The contrapositive of p→q is ~q→~p.

Double Implication (IF AND ONLY IF)

This is also known as bi-conditional operator. The double implication of p and q, denoted as p↔q, which reads as p if and only if q that have the truth table as follows.

pqp↔q
TTT
TFF
FTF
FFT

Solved Problems

Q1: Find the truth table of the following propositions.

(i) (~p∧q)∨p

(ii) (p∨q)∨~q

(iii) (~p∧q)∧~r

(iv) [(p→q)∧(q→r)] → (p→r)

(i)

pq~p~p∧q(~p∧q)∨p
TTFFF
TFFFF
FTTTT
FFTFT

(ii)

pqp∨q~q(p∨q)∨~q
TTTFT
TFTTT
FTTFT
FFFTT

(iii)

pqr~p~r~p∧q(~p∧q)∧~r
TTTFFFF
TTFFTFF
TFTFFFF
TFFFTFF
FTTTFTF
FTFTTTT
FFTTFFF
FFFTTFF

Q2: For given two propositions, write down the truth table for disjunction for four values of x.

p: x is divisible by 2

q: y is divisible by 3.

Values of xpqp∨q
12TTT
8TFT
15FTT
21FFF
Share via: