× Back Propositional or sentence Questions on propositional logic Conditional statement Bi-conditional statement Converse, Inverse and Contrapositive of Conditinal statement Algebra of preposition Normal form
← Previous Topic

Propositional Logic

⊚ Full Youtube Playlist ⊚

Propositional or Sentence

Truth Value

  • If any proposition is true then its truth value is denoted by T and if the proposition is false then its truth value is denoted by F.
  • Example
    • 1 is less than 3 → T
    • 14 is odd number → F

Type of proposition

  1. Simple Proposition → The proposition having one subject and one predicate (property) is called a simple proposition.
    • Example
      • this flower is pink.
      • Every even number is divisible by 2.
  2. Compound Proposition → Two or more simple proposition when combined by various connectivities into a single composite sentence is called compound proposition.
    • Example
      • The earath is round and revolves around the sun.
      • A triangle is equilateral if its three sides are equal.

Loginal Connectives

How two sentence are connected.

  • The particular workds and symbols used to join tow or more proposition into a single composite form or compound proposition are called logical connectives.

Logical connectives words

Symbol

Uses

And/conjunction/join

p ∧ q

or/disjunction/meet

p ∨ q

Negation

- or ~

~p

Equivalent

p ↔ q

Conditional "if ... then .... "

p ⇒ q

Biconditional "if and only if"(iff)

p ⇔ q

Basic Logical Operation

1. Conjunction: Any two proposition can be combined by the word "And" to form a compound proposition said to be the conjunction.

Truth table

p

q

p ∧ q

T

T

T

T

F

F

F

T

F

F

F

F

A short trick would be treat 'T' as 1 and 'F' as 0 and answer will be multiplication of both. T ∧ F = F as 1 * 0 = 0

  • Example
    • Delhi is in India and 2 + 2 = 4 → T
    • Delhi is in India and 2 + 2 = 5 → F
    • Delhi is in Russia and 2 + 2 = 4 → F

2. Disjunction: Any two proposition can be combined by the word "or" to form a compound proposition said to be the disjunction.

Truth table

p

q

p ∨ q

T

T

T

T

F

T

F

T

T

F

F

F

  • Example
    • Delhi is in India or 2 + 2 = 4 → T
    • Delhi is in India or 2 + 2 = 5 → T
    • Delhi is in Russia or 2 + 2 = 4 → T
    • Delhi is in Russia or 2 + 2 = 6 → F

3. Negation : The negatiion proposition of any given proposition p is the proposition whose truth value is opposite to p.

Truth table

p

~p

T

F

F

T

  • Example
    • p ≡ "This flower is pink."
    • ~p ≡ "This flower is not pink."

Tautologies and contradiction

A proposition is said to be an tautologies if it contain only 'T' in last column of truth table and if it contain only 'F' in last column of truth table then it is called contradiction.

Contingency

A preposition what is neither tautolgy nor contradiction.

Questions

1. Show that the following proposition is tautologies {(P ∨ ~Q) ∧ (~P ∨ ~Q)} ∨ Q

Solution :

P

Q

~P

~Q

E = P ∨ ~Q

G = ~P ∨ ~Q

E ∧ G

(E ∧ G) ∨ Q

T

T

F

F

T

F

F

T

T

F

F

T

T

T

T

T

F

T

T

F

F

T

F

T

F

F

T

T

T

T

T

T

Its tautologies as answer column is all 'T'.

2. Prove that the proposition p ∨ ~ (q ∨ r) and (p ∨ ~q) ∨ ~r are equivalent.

Hint : As this have 3 variables so the possible combination would be 23 = 8

3. Determine whether the following proposition is contradiction or a tautolgy.
(p ∨ q)∧(p ∨ ~q)∧(~p ∨ q)∧(~p ∨ ~q)

4. Determine whether the following is tautology or contradiction.
Q ∨ (P ∧ ~Q) ∨ (~P ∨ ~Q)

Conditional Statement

Truth Table

p

q

p → q

T

T

T

F

F

T

T

F

F

F

T

T

Hint : where ever p is F then p→q will be T, and where p is T and q is also T then only p→q will be T.

Biconditional Statement

Truth Table

p

q

p ⟷ q

T

T

T

F

F

T

T

F

F

F

T

F

Hint : only in T T and F F case the output is T.

Converse, Inverse and Contrapositive of Conditinal statement

1. Converse of conditional statement

  • Let p → q be a conditional statement then q → p is called its converse.
  • Example : If X is a labourer then he is poor.
  • Its converse → If X is poor then he is labourer.

2. Inverse of conditional statement

  • Let p → q be a conditional statement then ~p → ~q is called its inverse.
  • Example : If Harsa read book then he will get knowledge.
  • Its inverse → If Harsa not read book then he will not get knowledge.

3. Contrapositive of conditional statement

  • Let p → q be a conditional statement then ~q → ~p is called contrapositive.
  • Example : If f(x) is differentiable then it is continuous.
  • Its contrapositive → If f(x) is not continuous then it is not differentiable.

Questions

1. Show that (p ∧ q) → (p ∨ q) is a tautolgy.

2. Is the formula tautolgy p → (p ∧ (q → p))

3. Prove that following is tautology or not (p ∨ q ∨ r) ↔ [(((p → q)→ q)→ r)→ r]

4. show that p ⇒ (q⇒r) ≡ (p ∧ q) ⇒ r

Algebra of preposition

  1. Idempotent law
    • p ∧ p ⇔ p and p ∨ p ⇔ p
  2. Associative law
    • (p ∨ q) ∨ r = p ∨ (q ∨ r)
      and (p ∧ q) ∧ r = p ∧ (q ∧ r)
  3. Commutative law
    • p ∧ q ⇔ q ∧ p and p ∨ q ⇔ q ∨ p
  4. Distributive law
    • p ∨ (q ∧ r) = (p ∨ q) ∧ (p ∨ r)
    • p ∧ (q ∨ r) = (p ∧ q) ∨ (p ∧ r)
  5. De-Morgan law
    • ~(p ∧ q) ⇔ ~p ∨ ~q and ~(p ∨ q) ⇔ ~p ∧ ~q
  6. p → q ⇔ ~p ∨ q

Normal Form

Normal Form

  • Let A(p1, p2, p3, ...., pn) be a statement formula then the construction of truth table may not be practical always.
    So, we consider alternate procedure known as reduction to normal form.

1. Disconjunction Normal Form : A statement form which consists of disjunction(or) between conjunction(and) is called DBF.
Example : (1) (p ∧ q) r
(2) (p ∧ ~q) (~p ∧ r) (r ∧ ~q)

  • Example : Obtain the DNF of the form (p → q) ∧ (~p ∧ q)
  • Solution :
    we know that
    p → q ⇔ ~p ∨ q
    So, (~p ∨ q) ∧ (~p ∧ q)
    Apply distributive law
    (~p ∧ ~p ∧ q) ∨ (q ∧ ~p ∧ q)
    ⇒ (~p ∧ q) ∨ (q ∧ ~p)

2. Conjunction Normal Form : A statement form which consists of conjunction between disjunction is called CNF.
Example : (i) p q (ii) (~p ∨ q) ∧ (~p ∨ r)

  • Example : Obtain CNF of the form (p ∧ q) ∨ (~p ∧ q ∧ r)
  • Solution : (p ∧ q) ∨ (~p ∧ q ∧ r)
    using distibutive law
    (p ∨ (~p ∧ q ∧ r)) ∧ (q ∨ (~p ∧ q ∧ r))
    [(p ∨ ~p) ∧ (p ∨ q) ∧ (p ∨ r)] ∧ [(q ∨ ~p) ∧ (q ∨ q) ∧ (q ∨ r)]
    ⇒ (p ∨ q) ∧ (p ∨ r) ∧ [(q ∨ ~p) ∧ q ∧ (q ∨ r)]

Questions

  • Obtain DNF of p ∨ (~p → (q ∨ (q → ~r)))
  • Obtain CNF of (p → q) ∧ (q ∨ (p ∧ r)))
  • Find CNF of p ∧ (p → q)
  • Obtain CNF of (~p → r) ∧ (q ↔ p)
    (q ↔ p) becomes ((q → p) ∧ (p → q)