0% found this document useful (0 votes)
27 views17 pages

Mathematicallogic Unit II

The document defines key concepts in mathematical logic including propositions, truth values, connectives, and logical expressions. It provides examples and truth tables for logical connectives like negation, conjunction, disjunction, conditional, biconditional. It also discusses compound and tautological propositions.

Uploaded by

maheswaran s.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views17 pages

Mathematicallogic Unit II

The document defines key concepts in mathematical logic including propositions, truth values, connectives, and logical expressions. It provides examples and truth tables for logical connectives like negation, conjunction, disjunction, conditional, biconditional. It also discusses compound and tautological propositions.

Uploaded by

maheswaran s.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Unit – II Mathematical Logic

Definition: A Proposition (or statement) is a declarative sentence which is either true or false but not both

Notations: If a proposition is true then it’s truth value is denoted by T

If a proposition is false then it’s truth value is denoted by F

P,Q,R,S, …. Are used to denote propositions

Example of declarative sentences:

1. New Delhi is the capital of india (T)


2. 1+6 = 7 (T)
3. 10 / 5 = 2 (T)
4. 2 – 7 = 5 (F)
5. 10 + 3 = 12 (F)

The following sentences are not propositions:

1. What is the height of Himalaya? (Interogative sentence)


2. What a wonderful joke this is. (Exclamatory sentence)
3. Obey my orders(Command)
4. X / 5 = 3 is neither true not false
Primary Statement (Atomic statements)
Definition: A declarative sentence which cannot be further split up into simple sentences are
called prmary statements (or atomic statements) or primitive statement)
Example : Ravi is a boy

Connectives

Definition: Connective is an operation which is used to connect two or more than two statements.
Simply it is called sentential connectives. It is also known as Local Connectives or Logical
Operators

Logical connectivity

Logical connectivity can be described as the operators that are used to connect one or more than one propositions or predicate logic. On the basis of the input
logic and connectivity, which is used to connect the propositions, we will get the resultant logic. The propositional logic is used to contain 5 basic connectives,
which are described as follows:

1. Negation
2. Conjunction

1
3. Disjunction
4. Conditional
5. Bi-conditional

Negation

The symbol ∼ is used to indicate the negation. If there is a proposition p, then the negation of p
will also be a proposition, which contains the following properties:

o When p is true, then the negation of p will be false.


o When p is false, then the negation of p will be true.

Truth table:

The truth table of negation is shown below:

p ∼p
T F
F T

Example:

1. If p: I am a good student.
2. Then the negation of p will be:
3. ∼p: I am not a good student.

Conjunction

2
The conjunction is indicated by the symbol ∧. If there are two propositions, p and q, then the
conjunction of p and q will also be a proposition, which contains the following properties:

o When p and q are true, then the conjunction of them will be true.
o When p and q are false, then the conjunction of them will be false.

Truth table:

p q p∧q

T T T
T F F
F T F
F F F

Example:

1. If there are two propositions, p and q, where


2. p: I am a good student.
3. q: I like my math teacher.
4. Then the conjunction of p and q will be:
5. p ∧ q: I am a good student, and I like my math teacher.

Disjunction:

Disjunction is indicated by the symbol ∨. If there are two propositions, p and q, then the
disjunction of p and q will also be a proposition, which contains the following properties:

o When p and q are false, then the disjunction of them will be false.
o When either p or q or both are true, then the disjunction of them will be true

Truth table:

p q p∨q
T T T
T F T
F T T
F F F

Example:

1. If there are two propositions, p and q, where


2. p: I am a good student.
3. q: I like my computer teacher.

3
4. Then the disjunction of p and q will be:
p ∨ q: I am a good student or I like my computer teacher.

Conditional:

The conditional propositional is also known as the implication proposition. It is indicated by the
symbol →. If there are two propositions, p and q, then the conditional of p and q will also be a
proposition, which contains the following properties:

o If there is a proposition that has the form "if p then q", then that type of proposition will be
known as the implication or conditional proposition.
o When p is false, or p and q are true, then the implication of them will be true.
o When p is true, and q is false, then the implication of them will be false.

Truth table:

P q p→q

T T T

T F F

F T T

F F T

Example

If x = y and y = z, then x = c.
If I learn very hard, then I will get good marks in the exam.

Bi-conditional:

The bi-conditional propositional is also known as the bi-implication proposition. It is indicated by the
symbol ↔. If there are two propositions, p and q, then the bi-conditional of p and q will also be a
proposition, which contains the following properties:

o If there is a proposition that has the form "p if and only if q", then that type of proposition will be
known as a bi-implication or bi-conditional proposition.
o When both p and q are true, or p and q both are false, then the bi-implication of them will be true.
o In all the other cases, then the bi-conditional of them will be false.

Truth table:

4
p q p↔q
T T T
T F F
F T F
F F T

Example:

1. I will go to the beach if and only if it is sunny.


2. I will get good marks if and only if I study hard.
3. P: Ravi can write the exam
Q: Ravi pays the fees
P if if only Ravi can write the examinations if and only if he pays the fees

Compound Propositions

The propositions will be known as compound propositions if they are formed by the combination of one
or more atomic propositions with the help of connectives. We can construct this proposition by the
combination of simple and atomic propositions with the help of parenthesis and logical connectives.
Compound propositions are indicated with the help of capital letters such as P, Q, R, S, etc.

Examples of Compound Propositions

o It is sunny today and I will go to school.


o Oranges are orange and bananas are yellow.
o Sun sets in the west and sun rises in the east.

Tautology

Definition : Let x and y are two given statements. As per the definition of tautology, the compound
statement should be true for every value.
x y x⇒y y⇒x Tautology = (x ⇒ y) ∨ (y ⇒ x) Contradiction = ~(x ⇒ y) ∨ (y ⇒ x)

T T T T T F

T F F T T F

F T T F T F

F F T T T F

5
Problem 1. Show that p⇒(p∨q) is a tautology.

Solution:

p q p∨q p⇒(p∨q)

T T T T

T F T T

F T T T

F F F T

Construct the truth table for a) ¬(P ^ Q) b) (¬ P ¿ V (¬Q) and check it is tautology or not
a) ¬(P ^ Q)

P Q P^Q ¬¿ P ^ Q)

T T T F

T F F T

F T F T

F F F T

It is not tautology

b) (¬ P ¿V (¬Q)
P Q ¬P ¬Q ¿P) V(¬Q)

T T F F F

T F F T T

F T T F T

F F T T T

It is not tautology

Problem-2 : Construct the truth table for ( P V Q) V ¬Q


P Q PVQ ¬Q (P V Q) V ¬Q)

6
T T T F T

T F T T T

F T T F T

F F F T T

It is a tautology

Problem-3 : Construct the truth table for S :( P →Q ) ↔ (¬ P V Q) also check tautology or not
P Q P→Q ¬P ¬P V Q :( P →Q ) ↔ (¬ P V Q)

T T T F T T

T F F F F T

F T T T T T

F F T T T T

It is tautology

Contradiction :

Definition : A statement formula which is always false is called a contradiction or absurdity

Contigency :

Definition ||: A statement formula which is neither Tautology nor contradiction is called contingency

Eg. P ↔ Q is a Contigency

Problem : Show that ( P V Q) ^ ¬(P V Q) is a contradiction


P Q P¿Q ¬(P V Q) ¬(P V Q) ( P V Q) ^ ¬(P V Q)

T T T F T F

T F F F F F

F T F T F F

F F F F T F

Show that the truth values of the formula 𝑃˄(𝑃 → 𝑄) → 𝑄 are independent of their

7
Component
Solution:

The truth table for the formula


P Q 𝑃→𝑄 𝑃˄(𝑃 → 𝑄) (𝑃˄(𝑃 → 𝑄)) → 𝑄

T T T T T

T F F F T

F T T F T

F F T F T

It Is tautology
Problem : Prove that 𝑷 → 𝑸 ˄ 𝑸 → 𝑹 → 𝑷 → 𝑹
Solution:
Let S: 𝑃 → 𝑄 ˄ 𝑄 → 𝑅 → 𝑃 → 𝑅

To prove: S is a tautology
P Q R 𝑃→𝑄 Q→R 𝑃→𝑅 (𝑃 → 𝑄) ˄ (𝑄 → 𝑅)
S

T T T T T T T T

T T F T F F F T

T F T F T T F T

T F F F T T T T

F T T T T T T T

F T F T F T F T

F F T T T T T T

F F F T T T T T

PROPOSITIONAL EQUIVALENCE:
Logical Equivalence:
Let p and q be two statements formulas, p is said to be logically equivalent to q if p & q have the
same set of truth values or equivalently p & q are logically equivalent if 𝑝 ↔ 𝑞 is tautology.
Hence, 𝑝 ⇔ 𝑞 if and only if 𝑝 ↔ 𝑞 is a tautology.

8
Logical Implication or Tautological Implication
A statement formula A logically implies another, statement formula B if and only if 𝐴 → 𝐵 is a
tautology.
∴ 𝐴 ⇒ 𝐵 [A logically iff 𝐴 → 𝐵 is tautology, implies B]
If 𝐴 ⇒ 𝐵 , then
B is called consequent.
Further 𝐴 ⇒ 𝐵 guarantees that B has the truth value T whenever A has the truth value T.
∴ In order to show any of the given implications, it is sufficient to show that an assignment of the truth
value T to the antecedent of the given conditional leads to the truth value T for the consequent.

Prove 𝑃 ⇒ (Q →P)

P Q Q→P 𝑃 → (𝑄 → P)

T T T T

T F T T

F T F T

F F T T

Home work P ^ (P → Q) ⇒ Q

Prove 𝑃 → 𝑄 ⇔ ¬𝑄 → ¬𝑃

P Q 𝑃→𝑄 ¬Q ¬𝑃 ¬𝑄 → ¬𝑃

T T T F F T

T F F T F F

F T T F T T

F F T T T T

Here the truth values of 𝑃 → 𝑄 ⇔ ¬𝑄 → ¬𝑃

Prove [ [ ( 𝑃 → 𝑄) → Q] ⇔ P V Q

P Q 𝑃→𝑄 PVQ [𝑃 → 𝑄) → Q]

T T T T T

T F F T T

9
F T T T T

F F T F F

Colim 4 and 5 are equivalent

Home work (P V Q) ʌ ¬(¬ P ʌ Q) ⇔ P

Predicates Calculus :

The Predicate calculus deals with the study of predicates


Ex.
“Ram is a boy”
In the above statement, “ is a boy “ is the predicate and the name “Ram” is the subject. If we denote the
predicate “is a boy” by B and subject “ Ram “ by then the statement “Ram is a boy” can be represented as
B(r)

Other Examples
1. “ x is a man”.
Here Predicate is is a man “ and it is denoted by M. Subject is “x” and it is denoted
by x.
Therefore the given statement “x isa a man” can be denoted by M(x).
2. “ Rani is a girl”
Here again, Predicate is “is a girl” and it is denoted by G and subject is “Rani” and it
is denoted by v
3. “Sam is poor and Ram is intelligent”
The statement “Sam is poor” can be represented by P(s) where P represents
predicate “is poor” and s represents subject “Sam”.
The statement “Ram is intelligent” can be represented by I(r ) where I
represents predicate “is intelligent” and r represents subject “ Ram”
The given statement “Sam is poor and Ram is intelligent” can be symbolized
as P(s) ʌ I (r)
Quantifiers :
Quantifiers is one which is used to quantify the nature of variables.
There are two important quantifiers which are for “all” and for “some “ where “some” means
“atleast one”.
1. Universal Quantifier 2. Existential Quantifier
Defnition : Universal Quantifier : The quantifier “for all x “ is called the Universal quantifier. It is
denoted by the symbol “(∀ x∨( x )) ”. The universal quantifier is equivalent each of the following phrases.
1. For all x
2. For every x
3. For each x
4. Every thing x is such that
5. Each thing x is such that
Example -1.
“Every apple is red”
The above statement can be restated as
For all x if x is an apple then x is red.
Then symbolic form using universal quantifier as

10
A(x) : x is an apple
R(x) : x is read
We write to the symbolic form as
( ∀ x ¿ (A ( x ) → R ( x ) )
Example -2
“Everything is yellow”
For all statement it into symbolic form using universal quantifier as
Y(x) : x is yellow
Symbolic form as
(∀ x ¿

2.Existential Quantifier

Definition : The quantifier for “ some x “ is called the Existential Quantifier . It is denoted by the
symbol “(∃ x )”. The existential quantifier is also equivalent each of the following phrases.
1. For some x
2. Some x such that
3. There exists an x such that
4. There is an x such that
5. There is atleast one x such that
Example :
“Some men are clever”
The above statement as
“there is an x such that x is a man and x is clever “
Symbolic form using Existential quantifier as
Let Mx() : x is a man
and C(x) : x is clever
Symbolic form as
(∃ x ¿( M ( x ) ʌ C ( x ) )

Example -2 There is a man


Let M(x) : x is a man
We write as (∃ x ¿( M ( x ))

Example – 3 : Let G(x,y) : x is taller than y


Translate the following into formula:
For any x and any y if x is taller than y then it is not true that y is taller than x.
Solution:
Given G(x,y) : x is taller than y
Given G(y, x) : y is taller than x
The symbolic form of the given statement is
( ∀ x ¿ ( ∀ y ) (G ( x , y ) →¬ G ( y , x ))

Example -4 Symbolic the following statement:


“All the world loves a lover”
Solution :

11
Let P(x) : x is a person
L(x) : x is a lover
R(x, y) : x loves y
The given statement can be restated as
“For all x if x is a person than for all y, if y is a person and y is a lover than x loves
y“
∴n It’s symbolic form :
( ∀ x ¿ ¿ ^ L(y) → R(x, y) )

Example 5: Let A = { 1, 2, 3, 4, 5, 6}. Determine the truth value of (∃ x ∈ A ¿( x 2 >25) istrue .

Solution :
Choose the element 6 in A
Let x = 6
Implies ( x 2 = 36)
Obviosuly 36 > 25
Truth value of (∃ x ∈ A ¿( x 2 >25) istrue .

Direct Method of Proof:


When a conclusion is derived from a set of premises by using the accepted rules of
reasoning, then such a process of derivation is called a direct proof.

Indirect Method of Proof:


1. Method of contradiction: In order to show that a conclusion C follows logically from the
premises H 1 , H 2 , H 3 , H 4 ,… . H m , we assume that C is false and consider ¬ C
As an additional premises. If the new set of premises gives contradict value, then the assumption ¬
¿ H
C is true does not hold simultaneously with H ¿ .m being true.
¿ H
Therefore, C is true whenever H ¿ .m is true. Thus C follows logically from the premises
H 1 , H 2 , H 3 , H 4 ,… . H m .

2. Method of contrapositive :
¿ H
In order to prove H ¿ .m ⇒ C, if we prove
¿ H
¬ C ⇒ ¬ ( H ¿ .m ¿ . This method is called contrapositive method.

Function :
Defintion: IIn mathematics, a function is a set of inputs with a single output in each case. Every
function has a domain and range. The domain is the set of independent values of the variable x
for a relation or a function is defined. In simple words, the domain is a set of x-values that
generate the real values of y when substituted in the function. Eg. { (1,1), (2,4), (3, 9), (4,16) }
Here domain is 1,2,3,4 and range is 1,2, 4, 9 and 16 the function is x 2

12
Eg.

13
One to One Function

A one-to-one function is defined by f: A → B such that every element of set A is connected to a distinct
element in set B. The one-to-one function is also called an injective function. Here every element of the
domain has a distinct image or co-domain element for the given function .

Many to One Function

A many to one function is defined by the function f: A → B, such that more than one element of the set A
are connected to the same element in the set B. In a many to one function, more than one element has the
same image. In a many-to-one function, if there is only a single value in the codomain which is mapped
with all the elements of the domain, then it becomes a constant function.

Onto Function

In an onto function, every codomain element is related to the domain element. i.e., In an onto function, no
element of codomain is left without being mapped.For a function defined by f: A → B, such that every
element in set B has a pre-image in set A. The onto function is also called a subjective function.

One One and Onto Function (Bijection)

A function that is both a one and onto function is called a bijective function. Here every element of the
domain is connected to a distinct element in the codomain and every element of the codomain has a pre-
image. Also in other words every element of set A is connected to a distinct element in set B, and there is
not a single element in set B which has been left out.

Into Function

Into function is exactly opposite in properties to an onto function. Here there are certain elements in the
co-domain that do not have any pre-image. The elements in set B are excess and are not connected to any
elements in set A.

Composite Functions Definition


Let f : A → B and g : B → C be two functions. Then the composition of f and g, denoted by g ∘
f, is defined as the function g ∘ f : A → C given by g ∘ f (x) = g(f (x)), ∀ x ∈ A.
The below figure shows the representation of composite functions.

The order of function is an important thing while dealing with the composition of functions since (f ∘ g)
(x) is not equal to (g ∘ f) (x).

14
Example: If f(x) = 3x+1 and g(x) = x2 , then f of g of x, f(g(x)) = f(x2) = 3x2+1.

Example: If f(x) = 3x2, then find (f∘f)(x).


Solution: Given: f(x) = 3x2
(f∘f)(x) = f(f(x))
= f (3x2)
= 3(3x)2
= 3.9x2
= 27x2

Q.1: If f (x) = 2x and g(x) = x+1, then find (f∘g)(x) if x = 1.


Solution: Given, f(x) = 2x
g(x) = x+ 1
Therefore, the composition of f from g will be;
(f∘g)(x) = f(g(x)) = f(x+1) = 2(x+1)
Now putting the value of x = 1
f(g(1)) = 2(1+1) = 2 (2) = 4
Q.2: If f(x) = 2x +1 and g(x) = -x2, then find (g∘f)(x) for x = 2.
Solution: Given,
f(x) = 2x+1
g(x) = -x2
To find: g(f(x))
g(f(x)) = g(2x+1) = -(2x+1)2
Now put x =2 to get;
g(f(2)) = -(2.2+1)2
= -(4+1)2
=-(5)2
=-25
Q.3: If there are three functions, such as f(x) = x, g(x) = 2x and h(x) = 3x. Then find the composition
of these functions such as [f ∘ (g ∘ h)] (x) for x = -1.
Solution: Given,
f(x) = x
g(x) = 2x
h(x) = 3x
To find: [f ∘ (g ∘ h)] (x)
[f ∘ (g ∘ h)] (x) = f ∘ (g(h(x)))

15
= f ∘ g(3x)
= f(2(3x))
= f(6x)
= 6x
If x = -1, then;
[f ∘ (g ∘ h)] (-1) = 6(-1) = -6

Question Bank- UNIT - II


Part – A
1. Define Proposition. Give an example
2. What is Compound Proposition? Give an example
3. What is Negation? Give an example
4. Define Tautology. Give an example
5. To check the statement p⇒(p∨q) is a tautology or not
6. What is contigency? Give an example
7. Define Predicate Calculus. Give an example
8. Write the symbolic form of “Every thing is yellow”
9. Define Composite Function
10. If f(x) = 3x+1 and g(x) = x2 , then f of g of x, f(g(x)) = f(x2) = 3x2+1.

Section – B
11.a) i) Explain the various types of connectives with an example [10]
ii) Construct the truth table for a) ¬(P ^ Q) b) (¬ P ¿V (¬Q) and check it is tautology or not
[06]

12.a) i) Construct the truth table for S :( P →Q ) ↔ (¬ P V Q) also check tautology or not
[08]
ii) Show that the truth values of the formula 𝑃˄(𝑃 → 𝑄) → 𝑄 are independent of their

Component [08]

13.a) i) Explain the Equivalence and Implication with an example [08]


ii) Prove that (𝑷 → 𝑸) ˄ (𝑸 → 𝑹) → (𝑷 → 𝑹) is tautology or not [08]

14.a) i) What is quantifiers? Explain the types of Quantifiers [10]


ii) Explain the function with function notations [06]

15.a) i) Explain the types of functions [10]


ii) If there are three functions, such as f(x) = x, g(x) = 2x and h(x) = 3x. Then find the composition
of these functions such as [f ∘ (g ∘ h)] (x) for x = -1. [06]

16
17

You might also like