Notes on Module2
Notes on Module2
(LOGIC)
Introduction :-
Aims of logic are to provide rules by which we can determine whether a particular
reasoningor argument is valid. These logical rules are used to distinguish between valid and invalid
mathematical arguments.
Applications of logic are more in computer science. Logical rules are used in the design of
computer circuits, the construction of computer programs, the verification of the correctness of
programs ect.,
Applications of Logic: It is a dynamic subject. In one direction, Model Theory has increasingly
sophisticated applications to other parts of mathematics, and in another, Proof Theory,
Complexity Theory, and the study of Reasoning under Uncertainty are applied to Computer
Science, AI, and IT
Uses of Mathematical logic: It was devised to formalize precise facts and correct reasoning. Its
founders, Leibniz, Boole and Frege, hoped to use it for common sense facts and reasoning, not
realizing that the imprecision of concepts used in common sense language was often a
necessary feature and not always a bug.
A declarative sentence which is true or false, but not both, is called a proposition.
Examples:-
(1) Let 'p' be the sentence that "2+3=5", Clearly it is a declarative sentence and it is true.
Therefore 'p' is a proposition.
(2) Let 'q' be the sentence that "2+2=5", Clearly it is a declarative sentence and it is false.
Therefore 'q' is a proposition
(3) Let 'r' be the sentence that "Toronto is the capital of Canada", Clearly it is a declarative
sentence and it is false, Therefore 'r' is a proposition.
(4) Let 's' be the sentence that "Washing D.C is the capital of united states of America",
Clearly it is a declarative s sentence and it is true, Therefore 's' is a proposition.
(5) Let 't' be the sentence that "The integer 7 is a prime number", Clearly it is a declarative
sentence and it is true, Therefore 't' is a proposition.
(6)Let 'u' be the sentence that " The integer 9 is a prime number" , Clearly it is a declarative
sentence and it is false, Therefore 'u' is a proposition
(7) Let 'v' be the sentence that "Today is Sunday", Clearly it is a declarative sentence and it
may be true or false depends on day on which propositions is made or said. Therefore 'v' is
proposition.
(8) Let 'w' be the sentence that " Mr. Ramkumar is a Teacher", Clearly it is a declarative
sentence and it may be true or false . If he is originally a lawyer then the its is true, otherwise false.
(9) Let 'z' be the sentence that "1+1101=1110", Clearly it is a declarative sentence and it may
be false when 1 and 1101 are added using decimal number system, true when 1 and 1101 are added
using binary number system.
(10) let 'a' be the sentence that "Logic is a dull subject", Clearly it is a declarative sentence
and it may be true or false depends on the person who made this proposition.
The sentences which are exclamatory, interrogative or imperative in nature are not
proposition
Examples:-
(1) Let 'p' be the sentence that "what time is it?", Clearly it is not a declarative sentence,
therefore 'p' is not a proposition,
(2) Let 'q' be the sentence that "x+1=0", Clearly it is a declarative sentence , but it is neither
true nor false, Since the variable in this sentence have not been assigned values. Therefore 'q' is not
a proposition.
(3) Let 'r' be the sentence that "x+y=10", Clearly it is a declarative sentence, but it is neither
true nor false, since the variable in this sentence have not been assigned values. Therefore 'r' is not a
proposition.
(4) Let 's' be the sentence that "Take a cup of coffee", Clearly it is not a declarative sentence,
therefore 's' is not a proposition.
(5) let 't' be the sentence that "How beautiful is Rose?" , Clearly it is not a declarative
sentence, therefore 't' is not a proposition.
(6) Let 'u' be the sentence that "When will the construction be completed? ", Clearly it is not
a declarative sentence, therefore 'u' is not a proposition.
(7) Let 'v' be the sentence that "Obey the order" , Clearly it is a command, Therefore 'v' is
not a proposition.
(8) Let 'w' be the sentence that " What a notable work", Cleary it is an exclamation sentence,
therefore 'w' is not a proposition.
Note:-
(1) There only two possibilities that the proposition may be true or false. (nothing other than
this)
(2) Here the word sentence and statements are mean the same.
The truth value of the proposition are either true or false but not both.
Suppose if the proposition is true, then the truth value of proposition is TRUE, it is denoted
by 'T' or '1'
Suppose if the proposition is false, then the truth value of proposition is FALSE, it is denoted
by 'F' or '0'.
Examples:-
(1) Let 'p' be the sentence that "2+3=5", Clearly it is a declarative sentence and it is true.
Therefore 'p' is a proposition. ``The truth value of p is T
(2) Let 'q' be the sentence that "2+2=5", Clearly it is a declarative sentence and it is false.
Therefore 'q' is a proposition. The truth value of q is F
(3) Let 'r' be the sentence that "Toronto is the capital of Canada", Clearly it is a declarative
sentence and it is false, Therefore 'r' is a proposition. The truth value of r is F
(4) Let 's' be the sentence that "Washing D.C is the capital of united states of America",
Clearly it is a declarative s sentence and it is true, Therefore 's' is a proposition. The truth value of
s is T.
Definition :- Connectives
The logical operators are called connectives, there are three basic connectives namely
(i) Conjunction ,
u(ii) Disjunction
(iii) Negation
Definition:- "Conjunction "
Let p, q be the propositions, then joining two propositions p and q using ' and ' produces a
new proposition. It is denoted by p q.
It has truth value T whenever both p and q have truth value T, the truth value F otherwise.
P q pq
T T T
F T F
T F F
F F F
Example:-
"Today is Sunday and Tomorrow is Monday". (assume that statements are made consecutive days)
P q pq
T T T
F F F
(2) Let p be proposition that "Today is the last date to pay the fees"
Let q be proposition that "The final semester examination starts next week"
Therefore p q is written by "Today is the last date to pay the fees and The final
P q pq
T T T
F F F
T F F
F T F
P q pq
T T T
F T F
P q pq
T T T
F F F
T F F
F T F
Therefore p q is written by "I will buy a Tv set and I will buy a car". i.e " I will buy a TV set and Car"
P q pq
T T T
F F F
T F F
F T F
P q pq
T T T
F T F
P Q pq
T F F
F F F
Let p, q be the propositions, then joining two propositions p and q using ' or ' produces a
It has truth value F whenever both p and q have truth value F, the truth value T otherwise.
P q p q
T T T
F T T
T F T
F F F
Example:-
"Today is Sunday or Tomorrow is Monday". (assume that statements are made consecutive days)
P q p q
T T T
F F F
(2) Let p be proposition that "Today is the last date to pay the fees"
Let q be proposition that "The final semester examination starts next week"
Therefore p q is written by "Today is the last date to pay the fees or The final
P q p q
T T T
F F F
T F T
F T T
P q p q
T T T
F T T
P q p q
T T T
F F F
T F T
F T T
P q p q
T T T
F T T
P Q p q
T F T
F F F
Definition:- Negation
A proposition p may be negated by preceding it by the word, "It is not true that p" (or "p is
not true", "It is not the case that p ") is called negation. It is denoted by p' or ~p or p or p
P p
T F
F T
Example:-
(1) Let p be proposition that "Our school produced 100% result in the last year's final
examinations"
p is written by "It is not true that our school produced 100% result in the last year's final
examinations" (OR) "Our school did not produced 100% result in the last year's final examinations".
P p
T F
F T
p is written by "It is not true that john is playing football" or "It is false that john is playing
P p
T F
F T
P p
T F
p is written by "It is not true that today is Friday" or "Today is not Friday"
P p
T F
p is written by "It is not true that New Delhi is not in India " or " New Delhi is in India "
P p
F T
The proposition which do not contain any of the logical operator or connectives are called
Examples:-
(1) Let 'p' be the sentence that "2+3=5", Clearly there is no logical operator in this
proposition, therefore 'p' is a atomic proposition.
(2) Let 'q' be the sentence that "2+2=5", Clearly there is no logical operator in this
proposition, therefore 'q' is a atomic proposition.
(3) Let 'r' be the sentence that "Toronto is the capital of Canada", Clearly there is no logical
operator in this proposition, therefore 'r' is a atomic proposition.
(4) Let 's' be the sentence that "Washing D.C is the capital of united states of America",
Clearly there is no logical operator in this proposition, therefore 's' is a atomic proposition.
Definition:- "Compounded Proposition"
Many mathematical proposition which can be constructed by combining one or more atomic
Example:-
we use parenthesis to specify the order in which logical operator in a compound proposition
are to be applied.
Example:-
(i) The negation operator has precedence over all other logical operators.
(ii) The conjunction operator has precedence over the disjunction operator.
(iii) The conditional and bi-conditional operator have lower precedence than other operators.
The truth value of p q is true when exactly one of p and q is true, and is false otherwise.
p q p q
T T F
F T T
T F T
F F F
Definition:- " Implication " (conditional)
Let p and q be two propositions, the compounded proposition " if p, then q" is called
(consequence)
The truth value of p->q is false when q has the truth value 'F' and p has the truth value 'T'
p q pq
T T T
F T T
T F F
F F T
Example:-
p->q be compounded proposition that " If it is a sunday then we will go to the beach"
p q pq
T T T
F T T
T F F
F F T
(2) Let p be proposition that "Today is Friday"
Let p and q be two propositions, the compounded proposition " p if and only if q" is called
( or consequence)
The truth value of p->q is 'True' when p and q has identical truth value , and in all other
p q p q
T T T
F T F
T F F
F F T
Example:-
p q p q
T T T
F T F
T F F
F F T
p q p q
F T F
F F T
p q p q
T T T
p q p q
F F T
Note:-
A Boolean variable can be represented using a bit.
Note :-
Computer bit operation corresponding to the logical operator obtained by replacing true by
a one and false by zero. We use the notations OR, AND and XOR for the operators , , and
Truth table for Bit Operator OR, AND and XOR.
P q p q pq p q
1 1 1 1 0
1 0 1 0 1
0 1 1 0 1
0 0 0 0 0
Note:
If there are p1, p2,...pn (n-number of atomic propositions) in the given compounded
proposition, then there are 2n rows in the corresponding compounded proposition truth table.
Problem:-01
Construct the truth table for the compounded proposition (p q) (q p)
Solution:-
Since there are two atomic proposition p and q in the given compounded proposition,
Problem:-02
Solution:-
Since there are three atomic proposition p and q in the given compounded proposition,
Problem:-03
Solution:-
Since there are two atomic proposition p and q in the given compounded proposition,
p q p q pq p q p q p q
T T F F T F F F
T F F T F F T F
F T T F F T F F
F F T T F F F T
Definition:- "Tautology"
A compounded proposition that is always true, no matter what the truth values of the
Example:-
(1) Let p be atomic proposition, the negation of p is another atomic proposition, ie. p
p p pvp
T F T
T F T
F T T
F T T
(2) Let p be atomic proposition, the negation of p is another atomic proposition, ie. p
p p p p
T F T
T F T
F T T
F T T
Definition:- "Contradiction"
Example:-
(1) Let p be atomic proposition, the negation of p is another atomic proposition, ie. p
p p p p
T F F
T F F
F T F
F T F
Since all the truth values of p p are false, therefore p p is a contradiction.
(2) Let p be atomic proposition, the negation of p is another atomic proposition, ie. p
p p p p
T F F
T F F
F T F
F T F
Definition:- "Contingency"
contingency.
Example:-
(1) Let p, q be atomic proposition, the negation of p and q are another atomic propositions,
ie. p and q
p q p q p q
T T F F F
T F F T F
F T T F F
F F T T T
Since all the truth values of p q are false as well as true, therefore p q is a
contingency.
(2) Let p, q be atomic proposition, the negation of p and q are another atomic propositions,
ie. p and q
p q pq ( p q)
T T T T
T F F T
F T F T
F F F F
Since all the truth values of
contingency.
Definition:-
Let p, q be two compound compositions with 'n' number of variables are said to be
logically equivalent if p and q have same truth values for each one of 2n possible sets of truth
Note:-
In other wards the compound proposition p and q are called logically equivalent if p q is a
Problem:-01
Proof:-
Let us use truth table to prove that the given propositions are logically equivalent.
Since there only two variables p, q, therefore there 22 rows in the truth table,
p q p q pq ( p q) p q
T T F F T F F
T F F T T F F
F T T F T F F
F F T T F T T
Since the last two column truth values are same, therefore the compound propositions
Since there only two variables p, q, therefore there 22 rows in the truth table,
Since all the truth values of last column are True, therefore ( p q) (p q) is a
tautology
Problem:-02
Proof:-
Let us use truth table to prove that the given propositions are logically equivalent.
Since there only two variables p, q, therefore there 22 rows in the truth table,
P Q p q pq p q
T T F F T T
T F F T F F
F T T F T T
F F T T T T
Since the last two column truth values are same, therefore the compound propositions
( p q) (p q) is a tautology.
Since there only two variables p, q, therefore there 22 rows in the truth table,
P Q p q pq p q ( p q)
(p q)
T T F F T T T
T F F T F F T
F T T F T T T
F F T T T T T
Since all the truth values of last column are True, therefore ( p q) (p q) is a
tautology.
without changing the truth value of the compound proposition, by this way we can construct new
08 Absorption Law p ( p q) p p ( p q) p
Laws involving Negation
09 De Morgan's Law ( p q) p q ( p q) p q
Proof:-
We use the laws of logic and replace the proposition by it equivalent proposition as follows
( p q) (r q) ( p r) q ( p q) p q De Morgan's Law
( p q) (r q) ( p r) q ( p r) q ( p r) q Law of Conditions
Let us use truth table to prove that the given propositions are logically equivalent.
Since there only two variables p, q and r, therefore there 23 rows in the truth table,
p q r pq rq ( p r) ( p q) (r q) ( p r) q
T T T T T T T T
T T F T T T T T
T F T F F T F F
F T T T T T T T
T F F F T T F F
F T F T T T T T
F F T T F T F F
F F F T T F T T
Since the last two column truth values are same, therefore the compounded proposition
i.e ( p q) (r q) ( p r) q
Problem:-02
Proof:-
We use the laws of logic and replace the proposition by it equivalent proposition as follows
Let us use truth table to prove that the given propositions are logically equivalent.
Since there only two variables p, q and r, therefore there 23 rows in the truth table,
logic, it is enough to prove that the given compounded proposition is equivalent to T logically.
Problem:-01
Show that (( p q) (p (q r))) (p q) (p r) is a tautology. using
Proof:-
We use the laws of logic and replace the proposition by it equivalent proposition as follows
A compound proposition 'p' is said to be tautologically imply (or simply imply) the
Note:-
Proof:-
Since there only two variables p, q and r, therefore there 23 rows in the truth table,
i.e TTT, TTF,TFT,FTT, TFF, FTF, FFT, FFF. It is enough to prove that
Since all the truth values of the last column are true, therefore given implication
Hence p (q r) ( p q) ( p r) .
Problem:-02
Since there only two variables p, q, r and s, therefore there 24 rows in the truth table,
i.e TTTT, TTFT,TFTT,FTTT, TFFT, FTFT, FFTT, FFFT, TTTF, TTFF,TFTF,FTTF, TFFF, FTFF, FFTF, FFFF
Since all the truth values of the last column are not true, therefore (( p q) r) s is
not a tautology .
Problem :-03
( p q) ( p r ) (q r) r
Proof:-
( p q) ( p r) (q r) r ( p q) (( p q) r) r
( p q) ( p r) (q r) r ( p q) (( p q) r) r
Since ( p q) (( p q) r) ( p q) ( p q) ( p q) r Distributive Law
( p q) ( p r) (q r) r ( p q) ( p q) ( p q) r r
( p q) ( p r) (q r) r F ( p q) r r
( p q) ( p r) (q r) r ( p q) r r
( p q) ( p r) (q r) r (( p q) r) r
( p q) ( p r) (q r) r (( p r) (q r) ) r
( p q) ( p r) (q r) r (( p r) r) ((q r) r)
( p q) ( p r) (q r) r (p r r) (q r r)
( p q) ( p r) (q r) r (p T ) (q T )
( p q) ( p r) (q r) r (T ) (T )
Problem:-01
If H1: p H2: p q , C: q, then verify whether the Conclusion C follow from the set of
premises {H1, H2}. Using truth table technique.
Solution:-
Let us use write the truth table as follows
Given premises H1: p H2: p q
Given conclusion C: q
Since there are only two variables p and q , therefore there are 22 rows in the truth table.
i.e TT, TF, FT, FF
P q (C) p (H1) pq (H2)
T T F T
T F F T
F T T T
F F T F
Premises H1 and H2 both are true in third row, and case C is also true in third row. Therefore
the Conclusion C follows from the set of premises {H1,H2} . Hence we say that C is a valid conclusion.
Problem:-02
If H1: p q H2: q, C: p, then verify whether the Conclusion C follow from the set of
Premises H1 and H2 both are true in first and third row, and conclusion C true in first row but
false in third row.
Therefore the Conclusion C does not follows from the set of premises {H1,H2} .
Hence we say that the conclusion C is not valid conclusion.
Note:-
The truth table technique may becomes tedious, if the premises contain a large number of
variables.
Definition:- "Rules of Inference"
There are three rules of inferences which are called rule p, rule T and rule CP.
Rule C: We may introduce a formula S in a derivation if S is a tautology implied by any one or more
of the proceedings formulae in the derivation.
Rules of Inference
Rule in tautological form Name of the rule
pq p Simplification
pq q
p pq Addition
q pq
(( p) (q)) p q Conjunction
(( p q) ( p r) (q r)) r Dilemma
( p r) (q r) p q r
Problem:-01
Demonstrate that S is a valid inference from the premises p q, q r, s p, and r
Solution:-
(2) r Rule p,
(4) p q Rule P,
(5) q p Rule T, (4), ( p q) q p q p
(7) s p Rule P,
Problem:-02
Show that q, p q p
Solution:-
(3) q Rule P,
Problem-03
Solution:-
(2) c d h Rule P,
(3) h Rule T,(1), (2), Modus ponens
c d (c d h) (c d) (c d) h F h h
(6) a b r s Rule P,
Problem-04
Solution:-
(1) ( p q) (r s) Rule P
(4) (q t) (s u) Rule P
(( p q) (q t)) p t
((r s) (s u)) r u
(( p r) (r u)) p u
Problem:- 05
Proof:-
p q, q r, ( p r), p r
Rule CP:
If a formula 's' can be derived from another formula 'r' and a set of premises (p), then the
proposition ( r s ) can be derived from the set of premises (p) alone.
i.e ( p r) s p (r s)
Problem:-01
Derive p (q s) using the CP rule (if necessary) from the premises p (q r) and
q (r s)
Solution:-
(q s) . Then by CP rule, the required conclusion have been derived from the two given premises.
Step no. Statement Reason
(1) p Rule P
(2) p (q r) Rule P
p ( p (q r)) p p (q r) (q r)
(5) q (r s) Rule P
q (r s) .
A set of premises {H1, H2, ... Hn} is said to be inconsistent if their conjunction implies a
Definition:- "Consistent"
proof:-
To prove the given premises are inconsistent , we have derive a contradiction by using the
given premises.
(2) q r Rule P
( p q) (q r) p r
(4) s r Rule P
(q r ) (r s) q s
In order to show that the conclusion C follow from the set of premises {H1, H2, .... Hn} by
Indirect method of proof, it is also called proof by contradiction or reduction and absurdum.
"Procedure of Indirect Method of proof"
Step:-01
Step:-02
Step:-03
So the assumption that C is true does not hold good, hence C is true whenever
{H1, H2,....Hn} is true, i.e the conclusion C follows from the set of premises {H1, H2, ....Hn}
Problem:-01
Proof:-
(1) p Rule P
(4) r q Rule P
(5) s q Rule p
Problem:-02
Proof:-
Let us assume ( p s) (p s) p s is true include p q as additional
premises
inconsistent,
(2) p (q r) Rule P
(3) p Rule p
(6) s r Rule P
(q r) r q r r q F q
(9) q p Rule P
Thus
{ p (q r), q p, s r, p, p q } implies a contradiction.
Definition:- "Predicate"
The sentences "x<9", neither true nor false, when the values of the variables are not
specified. The variable x is called subject of the sentence, and "<9" is refers to the property that the
We can denote "x<9" by P(x), where P denote the predicate and x is a variable.
A sentence of the form P(x1, x2, ... xn) is the value of the propositional function P at the n-
The logic based on the analysis of predicates in any sentence is called predicate calculus or
predicate logic.
Note:-
Once a value has been assigned to a variable x, then the sentence P(x) becomes a
Example:-
There are two types of quantification, namely universal quantification and existential
quantification.
Many mathematical sentences assert that a property is true for all values of a variable in a
Definition:-"Universal Quantification"
all values of x in the universe of discourse. Universal quantification of P(x) is denoted by xP( x) .
Example:-
Let P(x) denote the sentence that "x has studied calculus", then the quantification
Note:-
When all the element in universe of discourse can be listed like x1, x2, ... xn, then the truth
i.e The truth value of P(x1) P(x2) ...... P(xn) is true if and only if P(x1), P(x2), .... P(xn) are
all true.
Problem:-01
What is the truth value of the statement xP( x) where P(x) is the sentence that "x2<10"
Solution:-
Given P(x) is a sentence that "x2<10", where the universe of discourse is set of all positive
integer not exceeding 4 . i.e {1,2,3,4}
xP( x) is the sentence that "for all x, x2<10", where x lies in {1,2,3,4}.
Problem :-02
Find the truth value of x, y, P( x, y) , where P(x,y) is the sentence that ""x+y=y+x", where
Solution:-
x, y, P( x, y) is the sentence that "for all real number x and y, x+y=y+x"
Problem:-03
If Q(x) be the sentence that "x<2" , then find the truth values xQ( x) where the set of all
Solution:-
Let P(x) be the sentence that "x+1>x', find the quantification xP( x) where the set of all
Solution:-
Since P(x) is true for all real number x, therefore the truth value of universal
Problem:-05
Let P(x,y) be the sentence that "x+y=y+x", then find the truth value of x, y, P( x, y)
Solution
x, y, P( x, y) is the sentence that "for all real number x and y, x+y=y+x"
The existential quantification of P(x) is the sentence that "There exist an element x in the
Note:-
The existential quantification is also expressed " There is an x such that P(x)" or "There is at
Problem:-01
Let P(x) denote the sentence that "x>3" . What is the truth value of the quantification
Solution:-
Problem:-02
Let Q(x) be the sentence that ""x=x+1" , What is the truth value of the quantification
Solution:-
Since Q(x) is false for all real number x, therefore the existential quantification of Q(x) is false
Note:-
When all the element in universe of discourse can be listed like x1, x2, ... xn, then the truth
i.e The truth value of P(x1) P(x2) ...... P(xn) is true if and only if at least one of P(x1),
Problem:-02
What is the truth value of the statement xP( x) where P(x) is the sentence that "x2<10"
Solution:-
Given P(x) is a sentence that "x2<10", where the universe of discourse is set of all positive
xP( x) is the sentence that "for some x, x2<10", where x lies in {1,2,3,4}.
Problem:-03
Let P(x,y) be the sentence that "x+y=y+x", what is the truth value of the quantification
x, y, P( x, y) ?, where the universe of discourse is the set of all real numbers.
Solution:-
x, y, P( x, y) is the sentence that " for all x and y, x+y=y+x"
Problem:-04
Let Q(x,y) be the sentence that "x+y=0", what is the truth values of the quantifications
Solution:-
Solution of (i)
y, x, Q(x, y) be the sentence that " There is a real number y, for every real
i.e when y is chosen , there exist only one value of x such that x+y=0 is true, for all other
Solution of (ii)
x, y, Q(x, y) be the sentence that "For every real number x, there exist real number y
i.e For every real number x, there exist a real number y=-x such that x+y=0 is true.
Problem:-05
Let Q(x,y,z) be the sentence that "x+y=z" . What are the truth values of sentences
(i) x, y, zQ(x, y,, z) and (ii) z, x, y, Q(x, y,, z)
Solution:-
Solution of (i)
x, y, zQ(x, y,, z) is the sentence that "For every x, For every y, There exist a real
suppose if x=1 and y=2, then there exist a real number z=3
i.e For every real number x and y , there exist at least one real number z such that x+y=z.
Solution of (ii)
z, x, y, Q(x, y,, z) is the sentence that " There exist a real
i.e For a chosen number z, only one set of values of x and y satisfies x+y=z. The other values
Therefore the truth value of z, x, y, Q(x, y,, z) is false.
There are three basic rules P, T and CP in inference used in derivation of conclusion, This
(ii) If it becomes necessary to quantify the desired conclusion, we require two rules of
Universal specification is the rule of inference which states that one can conclude that P(c) is
true, if x P(x) is true, where c is the arbitrary member(not a specified member) of the universe of
discourse.
Existential specification is the rule which allows us to conclude that P(c) is true, if x, P(x) is
true, where c is not an arbitrary member of the universe of discourse, but one for which P(c) is true.
Universal generalisation is the rule which states that x P(x) is true, if P(c) is true when c is
Existential generalisation is the rule that is used to conclude that x, P(x) is true when P(c)
Example:-
Proof of above :-
01 x(H(x)->M(x)) Rule P
03 H(s) Rule P
Thus the conclusion M(s) is derived from the given premises { x(H(x)->M(x)),H(s)}
Show that the premises "one student in this class knows how to write programs in JAVA"
and " Everyone who knows how to write programs in JAVA " and "Everyone who knows how to
write programs in JAVA can get a high -paying job" imply the conclusion that "some one in this class
Solution:-
Let H(x) be the sentence that "x can get a high paying job"
Therefore the given premises are " x(C(x) J (x)) ", " x(J (x) H (x)) "
We have prove that { x(C(x) J (x)) , x(J (x) H (x)) } x(C(x) H (x))
Thus the conclusion x(C(x) H (x)) is derived from the premises { x(C(x) J (x)) ,
x(J (x) H (x)) }. ( p q)
are false
Hence we have proved { premises as well as
x(C(x) J (x)) , x(J (x) true,
{x(P(x) (Q( y) R(x)), xP(x)}
H (x)) } x(C(x) therefore
H (x)) ( p q)
Hence we have proved {x(P(x) (Q( y)
Problem:-03
R(x)), xP(x)} Q(y) x(P(x) R(x))
Proof:-
Conclusion is Q(y)
x(P(x) R(x))
p ( p q) q