You are on page 1of 150

Unit I: Logic and Proofs - Propositional Logic

September 9, 2022

Unit I: Logic and Proofs - Propositional Logic


Logic and Proof Methods

Study of how to find the truth value of


complex statements and how to validate
claims or arguments using inferences

Unit I: Logic and Proofs - Propositional Logic


Proposition

A declarative sentence that is true or false


but not both.

Unit I: Logic and Proofs - Propositional Logic


Proposition

A declarative sentence that is true or false


but not both.
For example,
• Kathmandu is the capital city of Nepal.

Unit I: Logic and Proofs - Propositional Logic


Proposition

A declarative sentence that is true or false


but not both.
For example,
• Kathmandu is the capital city of Nepal.

• 2 + 2 = 4.

Unit I: Logic and Proofs - Propositional Logic


Proposition

A declarative sentence that is true or false


but not both.
For example,
• Kathmandu is the capital city of Nepal.

• 2 + 2 = 4.

• The Earth is flat.

Unit I: Logic and Proofs - Propositional Logic


Proposition

A declarative sentence that is true or false


but not both.
For example,
• Kathmandu is the capital city of Nepal.

• 2 + 2 = 4.

• The Earth is flat.

• 2 + 3 = 6.

Unit I: Logic and Proofs - Propositional Logic


Proposition (Contd.)

What about these?

Unit I: Logic and Proofs - Propositional Logic


Proposition (Contd.)

What about these?


• What time is it?

Unit I: Logic and Proofs - Propositional Logic


Proposition (Contd.)

What about these?


• What time is it?

Not a proposition because not a


declarative sentence

Unit I: Logic and Proofs - Propositional Logic


Proposition (Contd.)

What about these?


• What time is it?

Not a proposition because not a


declarative sentence
• 2x = 4.

Unit I: Logic and Proofs - Propositional Logic


Proposition (Contd.)

What about these?


• What time is it?

Not a proposition because not a


declarative sentence
• 2x = 4.

Not a proposition because don’t know if


it is true or false

Unit I: Logic and Proofs - Propositional Logic


Proposition (Contd.)

What about these?


• What time is it?

Not a proposition because not a


declarative sentence
• 2x = 4.

Not a proposition because don’t know if


it is true or false
Small-case letters such as p, q, r · · ·
commonly used to denote arbitrary
propositions.
Unit I: Logic and Proofs - Propositional Logic
Truth Value

• Truth or falsity of a given proposition.

Unit I: Logic and Proofs - Propositional Logic


Truth Value

• Truth or falsity of a given proposition.


• For true propositions, truth value is
‘True’ denoted by T .

Unit I: Logic and Proofs - Propositional Logic


Truth Value

• Truth or falsity of a given proposition.


• For true propositions, truth value is
‘True’ denoted by T .
• For false propositions, truth value is
‘False’ denoted by F .

Unit I: Logic and Proofs - Propositional Logic


Truth Value

• Truth or falsity of a given proposition.


• For true propositions, truth value is
‘True’ denoted by T .
• For false propositions, truth value is
‘False’ denoted by F .
• 1 and 0 also used instead of T and F .

Unit I: Logic and Proofs - Propositional Logic


Truth Value

• Truth or falsity of a given proposition.


• For true propositions, truth value is
‘True’ denoted by T .
• For false propositions, truth value is
‘False’ denoted by F .
• 1 and 0 also used instead of T and F .
• e.g., T , T , F and F are truth values of
propositions in above example.
Unit I: Logic and Proofs - Propositional Logic
Compound Proposition

• A proposition formed by combining one


or more existing propositions.

Unit I: Logic and Proofs - Propositional Logic


Compound Proposition

• A proposition formed by combining one


or more existing propositions.
• Propositions participating to form a
compound proposition are component
propositions.

Unit I: Logic and Proofs - Propositional Logic


Compound Proposition

• A proposition formed by combining one


or more existing propositions.
• Propositions participating to form a
compound proposition are component
propositions.
• Elements used to combine these
component propositions are logical
operators or connectives.

Unit I: Logic and Proofs - Propositional Logic


Truth Table

• A table that shows the truth value of a


compound proposition in terms of every
possible combination of truth value of
component propositions.

Unit I: Logic and Proofs - Propositional Logic


Truth Table

• A table that shows the truth value of a


compound proposition in terms of every
possible combination of truth value of
component propositions.
• Table depends upon the logical operator
used and the component propositions.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operators: Negation

• Negation of proposition p is the


proposition “It is not the case that p.”

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operators: Negation

• Negation of proposition p is the


proposition “It is not the case that p.”
• Denoted by ¬p and is read as “not p”.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operators: Negation

• Negation of proposition p is the


proposition “It is not the case that p.”
• Denoted by ¬p and is read as “not p”.
• Truth table of Negation

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operators: Negation

• Negation of proposition p is the


proposition “It is not the case that p.”
• Denoted by ¬p and is read as “not p”.
• Truth table of Negation
p ¬p
T F
F T

Unit I: Logic and Proofs - Propositional Logic


Negation (Contd.)

For example
• p: The Earth is flat.

Unit I: Logic and Proofs - Propositional Logic


Negation (Contd.)

For example
• p: The Earth is flat.

¬p:

Unit I: Logic and Proofs - Propositional Logic


Negation (Contd.)

For example
• p: The Earth is flat.

¬p: It is not the case that the Earth is


flat.

Unit I: Logic and Proofs - Propositional Logic


Negation (Contd.)

For example
• p: The Earth is flat.

¬p: It is not the case that the Earth is


flat. OR simply “The Earth is not flat”.

Unit I: Logic and Proofs - Propositional Logic


Negation (Contd.)

For example
• p: The Earth is flat.

¬p: It is not the case that the Earth is


flat. OR simply “The Earth is not flat”.
• p: 2 + 2 = 4

Unit I: Logic and Proofs - Propositional Logic


Negation (Contd.)

For example
• p: The Earth is flat.

¬p: It is not the case that the Earth is


flat. OR simply “The Earth is not flat”.
• p: 2 + 2 = 4

¬p:

Unit I: Logic and Proofs - Propositional Logic


Negation (Contd.)

For example
• p: The Earth is flat.

¬p: It is not the case that the Earth is


flat. OR simply “The Earth is not flat”.
• p: 2 + 2 = 4

¬p: 2 + 2 6= 4.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Conjunction

• Conjunction of two propositions p and q


is the proposition that is true when both
p and q are true and false otherwise.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Conjunction

• Conjunction of two propositions p and q


is the proposition that is true when both
p and q are true and false otherwise.
• Denoted by p ∧ q and read as “p and q”.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Conjunction

• Conjunction of two propositions p and q


is the proposition that is true when both
p and q are true and false otherwise.
• Denoted by p ∧ q and read as “p and q”.
• Truth table of Conjunction

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Conjunction

• Conjunction of two propositions p and q


is the proposition that is true when both
p and q are true and false otherwise.
• Denoted by p ∧ q and read as “p and q”.
• Truth table of Conjunction
p q p∧q
T T T
T F F
F T F
F F F
Unit I: Logic and Proofs - Propositional Logic
Conjunction (Contd.)

For example

Unit I: Logic and Proofs - Propositional Logic


Conjunction (Contd.)

For example
• p: It is cold.

Unit I: Logic and Proofs - Propositional Logic


Conjunction (Contd.)

For example
• p: It is cold.

q: It is raining.

Unit I: Logic and Proofs - Propositional Logic


Conjunction (Contd.)

For example
• p: It is cold.

q: It is raining.
p ∧ q:

Unit I: Logic and Proofs - Propositional Logic


Conjunction (Contd.)

For example
• p: It is cold.

q: It is raining.
p ∧ q: It is cold and it is raining.

Unit I: Logic and Proofs - Propositional Logic


Conjunction (Contd.)

For example
• p: It is cold.

q: It is raining.
p ∧ q: It is cold and it is raining. OR
simply “It is cold and raining”.

Unit I: Logic and Proofs - Propositional Logic


Conjunction (Contd.)

For example
• p: It is cold.

q: It is raining.
p ∧ q: It is cold and it is raining. OR
simply “It is cold and raining”.
• p: 3 + 7 = 10

Unit I: Logic and Proofs - Propositional Logic


Conjunction (Contd.)

For example
• p: It is cold.

q: It is raining.
p ∧ q: It is cold and it is raining. OR
simply “It is cold and raining”.
• p: 3 + 7 = 10

q: 2 is an odd number.

Unit I: Logic and Proofs - Propositional Logic


Conjunction (Contd.)

For example
• p: It is cold.

q: It is raining.
p ∧ q: It is cold and it is raining. OR
simply “It is cold and raining”.
• p: 3 + 7 = 10

q: 2 is an odd number.
p ∧ q:

Unit I: Logic and Proofs - Propositional Logic


Conjunction (Contd.)

For example
• p: It is cold.

q: It is raining.
p ∧ q: It is cold and it is raining. OR
simply “It is cold and raining”.
• p: 3 + 7 = 10

q: 2 is an odd number.
p ∧ q: 3 + 7 = 10 and 2 is an odd
number.
Unit I: Logic and Proofs - Propositional Logic
Types of Logical Operator: Disjunction

• Disjunction of two propositions p and q


is the proposition that is false when both
p and q are false and true otherwise.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Disjunction

• Disjunction of two propositions p and q


is the proposition that is false when both
p and q are false and true otherwise.
• Denoted by p ∨ q and read as “p or q”.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Disjunction

• Disjunction of two propositions p and q


is the proposition that is false when both
p and q are false and true otherwise.
• Denoted by p ∨ q and read as “p or q”.
• Truth table of Disjunction

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Disjunction

• Disjunction of two propositions p and q


is the proposition that is false when both
p and q are false and true otherwise.
• Denoted by p ∨ q and read as “p or q”.
• Truth table of Disjunction
p q p∨q
T T T
T F T
F T T
F F F
Unit I: Logic and Proofs - Propositional Logic
Disjunction (Contd.)

For example

Unit I: Logic and Proofs - Propositional Logic


Disjunction (Contd.)

For example
• p: The Earth is flat.

Unit I: Logic and Proofs - Propositional Logic


Disjunction (Contd.)

For example
• p: The Earth is flat.

q: 2 + 2 = 4.

Unit I: Logic and Proofs - Propositional Logic


Disjunction (Contd.)

For example
• p: The Earth is flat.

q: 2 + 2 = 4.
p ∨ q:

Unit I: Logic and Proofs - Propositional Logic


Disjunction (Contd.)

For example
• p: The Earth is flat.

q: 2 + 2 = 4.
p ∨ q: The Earth is flat or 2 + 2 = 4.

Unit I: Logic and Proofs - Propositional Logic


Disjunction (Contd.)

For example
• p: The Earth is flat.

q: 2 + 2 = 4.
p ∨ q: The Earth is flat or 2 + 2 = 4.
• p: Today is Friday.

Unit I: Logic and Proofs - Propositional Logic


Disjunction (Contd.)

For example
• p: The Earth is flat.

q: 2 + 2 = 4.
p ∨ q: The Earth is flat or 2 + 2 = 4.
• p: Today is Friday.

q: Tomorrow is holiday.

Unit I: Logic and Proofs - Propositional Logic


Disjunction (Contd.)

For example
• p: The Earth is flat.

q: 2 + 2 = 4.
p ∨ q: The Earth is flat or 2 + 2 = 4.
• p: Today is Friday.

q: Tomorrow is holiday.
p ∨ q:

Unit I: Logic and Proofs - Propositional Logic


Disjunction (Contd.)

For example
• p: The Earth is flat.

q: 2 + 2 = 4.
p ∨ q: The Earth is flat or 2 + 2 = 4.
• p: Today is Friday.

q: Tomorrow is holiday.
p ∨ q: Today is Friday or tomorrow is
holiday.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Exclusive Or

• Exclusive or of two propositions p and q


is the proposition that is true when p
and q have opposite truth values and
false otherwise.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Exclusive Or

• Exclusive or of two propositions p and q


is the proposition that is true when p
and q have opposite truth values and
false otherwise.
• Denoted by p ⊕ q and read as “p xor q”.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Exclusive Or

• Exclusive or of two propositions p and q


is the proposition that is true when p
and q have opposite truth values and
false otherwise.
• Denoted by p ⊕ q and read as “p xor q”.
• Truth table of Exclusive Or

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Exclusive Or

• Exclusive or of two propositions p and q


is the proposition that is true when p
and q have opposite truth values and
false otherwise.
• Denoted by p ⊕ q and read as “p xor q”.
• Truth table of Exclusive Or
p q p⊕q
T T F
T F T
F T T
F F F
Unit I: Logic and Proofs - Propositional Logic
Types of Logical Operator: Implication

• Implication of two propositions p and q


is the proposition that is false when p is
true and q is false and true otherwise.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Implication

• Implication of two propositions p and q


is the proposition that is false when p is
true and q is false and true otherwise.
• Denoted by p → q.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Implication

• Implication of two propositions p and q


is the proposition that is false when p is
true and q is false and true otherwise.
• Denoted by p → q.
• p is called hypothesis or antecedent.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Implication

• Implication of two propositions p and q


is the proposition that is false when p is
true and q is false and true otherwise.
• Denoted by p → q.
• p is called hypothesis or antecedent.
• q is called conclusion or consequent.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Implication

• Implication of two propositions p and q


is the proposition that is false when p is
true and q is false and true otherwise.
• Denoted by p → q.
• p is called hypothesis or antecedent.
• q is called conclusion or consequent.
• p → q is read as

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Implication

• Implication of two propositions p and q


is the proposition that is false when p is
true and q is false and true otherwise.
• Denoted by p → q.
• p is called hypothesis or antecedent.
• q is called conclusion or consequent.
• p → q is read as
• if p, then q

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Implication

• Implication of two propositions p and q


is the proposition that is false when p is
true and q is false and true otherwise.
• Denoted by p → q.
• p is called hypothesis or antecedent.
• q is called conclusion or consequent.
• p → q is read as
• if p, then q
• p implies q

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Implication

• Implication of two propositions p and q


is the proposition that is false when p is
true and q is false and true otherwise.
• Denoted by p → q.
• p is called hypothesis or antecedent.
• q is called conclusion or consequent.
• p → q is read as
• if p, then q
• p implies q
• p only if q

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Implication

• Implication of two propositions p and q


is the proposition that is false when p is
true and q is false and true otherwise.
• Denoted by p → q.
• p is called hypothesis or antecedent.
• q is called conclusion or consequent.
• p → q is read as
• if p, then q
• p implies q
• p only if q
• q if p

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Implication

• Implication of two propositions p and q


is the proposition that is false when p is
true and q is false and true otherwise.
• Denoted by p → q.
• p is called hypothesis or antecedent.
• q is called conclusion or consequent.
• p → q is read as
• if p, then q
• p implies q
• p only if q
• q if p
• p is sufficient for q

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Implication

• Implication of two propositions p and q


is the proposition that is false when p is
true and q is false and true otherwise.
• Denoted by p → q.
• p is called hypothesis or antecedent.
• q is called conclusion or consequent.
• p → q is read as
• if p, then q
• p implies q
• p only if q
• q if p
• p is sufficient for q
• q is necessary for p
Unit I: Logic and Proofs - Propositional Logic
Implication (Contd.)

• Truth table of Implication

Unit I: Logic and Proofs - Propositional Logic


Implication (Contd.)

• Truth table of Implication


p q p→q
T T T
T F F
F T T
F F T

Unit I: Logic and Proofs - Propositional Logic


Implication (Contd.)

For example

Unit I: Logic and Proofs - Propositional Logic


Implication (Contd.)

For example
• p: I am hungry.

Unit I: Logic and Proofs - Propositional Logic


Implication (Contd.)

For example
• p: I am hungry.

q: I will eat.

Unit I: Logic and Proofs - Propositional Logic


Implication (Contd.)

For example
• p: I am hungry.

q: I will eat.
p → q:

Unit I: Logic and Proofs - Propositional Logic


Implication (Contd.)

For example
• p: I am hungry.

q: I will eat.
p → q: If I am hungry, then I will eat.

Unit I: Logic and Proofs - Propositional Logic


Implication (Contd.)

For example
• p: I am hungry.

q: I will eat.
p → q: If I am hungry, then I will eat.
• p: 2 + 3 = 7.

Unit I: Logic and Proofs - Propositional Logic


Implication (Contd.)

For example
• p: I am hungry.

q: I will eat.
p → q: If I am hungry, then I will eat.
• p: 2 + 3 = 7.

q: The Earth is flat.

Unit I: Logic and Proofs - Propositional Logic


Implication (Contd.)

For example
• p: I am hungry.

q: I will eat.
p → q: If I am hungry, then I will eat.
• p: 2 + 3 = 7.

q: The Earth is flat.


p → q:

Unit I: Logic and Proofs - Propositional Logic


Implication (Contd.)

For example
• p: I am hungry.

q: I will eat.
p → q: If I am hungry, then I will eat.
• p: 2 + 3 = 7.

q: The Earth is flat.


p → q: If 2 + 3 = 7, then the Earth is
flat.

Unit I: Logic and Proofs - Propositional Logic


Converse, Inverse and Contrapositive

Given an implication p → q, we can form 3


new implications as follows:

Unit I: Logic and Proofs - Propositional Logic


Converse, Inverse and Contrapositive

Given an implication p → q, we can form 3


new implications as follows:
• Converse: q → p

Unit I: Logic and Proofs - Propositional Logic


Converse, Inverse and Contrapositive

Given an implication p → q, we can form 3


new implications as follows:
• Converse: q → p

• Inverse: ¬p → ¬q

Unit I: Logic and Proofs - Propositional Logic


Converse, Inverse and Contrapositive

Given an implication p → q, we can form 3


new implications as follows:
• Converse: q → p

• Inverse: ¬p → ¬q

• Contrapositive: ¬q → ¬p

Unit I: Logic and Proofs - Propositional Logic


Converse, Inverse and Contrapositive (Contd.)

For example,

Unit I: Logic and Proofs - Propositional Logic


Converse, Inverse and Contrapositive (Contd.)

For example,
• p → q: If 2 + 3 = 7, then the Earth is

flat.
• q → p:

Unit I: Logic and Proofs - Propositional Logic


Converse, Inverse and Contrapositive (Contd.)

For example,
• p → q: If 2 + 3 = 7, then the Earth is

flat.
• q → p: If the Earth is flat then

2 + 3 = 7.

Unit I: Logic and Proofs - Propositional Logic


Converse, Inverse and Contrapositive (Contd.)

For example,
• p → q: If 2 + 3 = 7, then the Earth is

flat.
• q → p: If the Earth is flat then

2 + 3 = 7.
• ¬p → ¬q:

Unit I: Logic and Proofs - Propositional Logic


Converse, Inverse and Contrapositive (Contd.)

For example,
• p → q: If 2 + 3 = 7, then the Earth is

flat.
• q → p: If the Earth is flat then

2 + 3 = 7.
• ¬p → ¬q: If 2 + 3 6= 7 then the Earth is

not flat.

Unit I: Logic and Proofs - Propositional Logic


Converse, Inverse and Contrapositive (Contd.)

For example,
• p → q: If 2 + 3 = 7, then the Earth is

flat.
• q → p: If the Earth is flat then

2 + 3 = 7.
• ¬p → ¬q: If 2 + 3 6= 7 then the Earth is

not flat.
• ¬q → ¬p:

Unit I: Logic and Proofs - Propositional Logic


Converse, Inverse and Contrapositive (Contd.)

For example,
• p → q: If 2 + 3 = 7, then the Earth is

flat.
• q → p: If the Earth is flat then

2 + 3 = 7.
• ¬p → ¬q: If 2 + 3 6= 7 then the Earth is

not flat.
• ¬q → ¬p: If the Earth is not flat then

2 + 3 6= 7.
Unit I: Logic and Proofs - Propositional Logic
Converse, Inverse and Contrapositive (Contd.)

Truth table of implication, its converse,


inverse and contrapositive:

Unit I: Logic and Proofs - Propositional Logic


Converse, Inverse and Contrapositive (Contd.)

Truth table of implication, its converse,


inverse and contrapositive:
p q ¬p ¬q p→q q→p ¬p → ¬q ¬q → ¬p
T T F F T T T T
T F F T F T T F
F T T F T F F T
F F T T T T T T

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Biconditional

• Biconditional of two propositions p and q


is the proposition that is true when both
p and q have same truth values and false
otherwise.

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Biconditional

• Biconditional of two propositions p and q


is the proposition that is true when both
p and q have same truth values and false
otherwise.
• Denoted by p ↔ q and read as

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Biconditional

• Biconditional of two propositions p and q


is the proposition that is true when both
p and q have same truth values and false
otherwise.
• Denoted by p ↔ q and read as
• p if and only if q

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Biconditional

• Biconditional of two propositions p and q


is the proposition that is true when both
p and q have same truth values and false
otherwise.
• Denoted by p ↔ q and read as
• p if and only if q
• p iff q

Unit I: Logic and Proofs - Propositional Logic


Types of Logical Operator: Biconditional

• Biconditional of two propositions p and q


is the proposition that is true when both
p and q have same truth values and false
otherwise.
• Denoted by p ↔ q and read as
• p if and only if q
• p iff q
• p is necessary and sufficient for q

Unit I: Logic and Proofs - Propositional Logic


Biconditional (Contd.)

• Truth table of Biconditional

Unit I: Logic and Proofs - Propositional Logic


Biconditional (Contd.)

• Truth table of Biconditional


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

Unit I: Logic and Proofs - Propositional Logic


Biconditional (Contd.)

For example,

Unit I: Logic and Proofs - Propositional Logic


Biconditional (Contd.)

For example,
• p: I will eat.

Unit I: Logic and Proofs - Propositional Logic


Biconditional (Contd.)

For example,
• p: I will eat.

q: I am hungry.

Unit I: Logic and Proofs - Propositional Logic


Biconditional (Contd.)

For example,
• p: I will eat.

q: I am hungry.
p ↔ q: I will eat if and only if I am
hungry.

Unit I: Logic and Proofs - Propositional Logic


Biconditional (Contd.)

For example,
• p: I will eat.

q: I am hungry.
p ↔ q: I will eat if and only if I am
hungry.
• p: The alarm goes off.

Unit I: Logic and Proofs - Propositional Logic


Biconditional (Contd.)

For example,
• p: I will eat.

q: I am hungry.
p ↔ q: I will eat if and only if I am
hungry.
• p: The alarm goes off.

q: Smoke is detected.

Unit I: Logic and Proofs - Propositional Logic


Biconditional (Contd.)

For example,
• p: I will eat.

q: I am hungry.
p ↔ q: I will eat if and only if I am
hungry.
• p: The alarm goes off.

q: Smoke is detected.
p ↔ q: The alarm goes off if and only if
smoke is detected.
Unit I: Logic and Proofs - Propositional Logic
Converting propositions into symbolic form

Express the following sentences in logical or


symbolic form:
• I will not go to the movie and I will

study a novel.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form

Express the following sentences in logical or


symbolic form:
• I will not go to the movie and I will

study a novel.
Solution: Let

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form

Express the following sentences in logical or


symbolic form:
• I will not go to the movie and I will

study a novel.
Solution: Let
p: I will go to the movie.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form

Express the following sentences in logical or


symbolic form:
• I will not go to the movie and I will

study a novel.
Solution: Let
p: I will go to the movie.
q: I will study a novel.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form

Express the following sentences in logical or


symbolic form:
• I will not go to the movie and I will

study a novel.
Solution: Let
p: I will go to the movie.
q: I will study a novel.
Then the given proposition can be
written symbolically as
Unit I: Logic and Proofs - Propositional Logic
Converting propositions into symbolic form

Express the following sentences in logical or


symbolic form:
• I will not go to the movie and I will

study a novel.
Solution: Let
p: I will go to the movie.
q: I will study a novel.
Then the given proposition can be
written symbolically as ¬p
Unit I: Logic and Proofs - Propositional Logic
Converting propositions into symbolic form

Express the following sentences in logical or


symbolic form:
• I will not go to the movie and I will

study a novel.
Solution: Let
p: I will go to the movie.
q: I will study a novel.
Then the given proposition can be
written symbolically as ¬p ∧
Unit I: Logic and Proofs - Propositional Logic
Converting propositions into symbolic form

Express the following sentences in logical or


symbolic form:
• I will not go to the movie and I will

study a novel.
Solution: Let
p: I will go to the movie.
q: I will study a novel.
Then the given proposition can be
written symbolically as ¬p ∧ q.
Unit I: Logic and Proofs - Propositional Logic
Converting propositions into symbolic form (Contd.)

• If Peter is not in the library then he is


playing tennis.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• If Peter is not in the library then he is


playing tennis.
Solution: Let

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• If Peter is not in the library then he is


playing tennis.
Solution: Let
p: Peter is in the library.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• If Peter is not in the library then he is


playing tennis.
Solution: Let
p: Peter is in the library.
q: Peter is playing tennis.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• If Peter is not in the library then he is


playing tennis.
Solution: Let
p: Peter is in the library.
q: Peter is playing tennis.
Then the given proposition can be
written in the form

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• If Peter is not in the library then he is


playing tennis.
Solution: Let
p: Peter is in the library.
q: Peter is playing tennis.
Then the given proposition can be
written in the form ¬p

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• If Peter is not in the library then he is


playing tennis.
Solution: Let
p: Peter is in the library.
q: Peter is playing tennis.
Then the given proposition can be
written in the form ¬p →

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• If Peter is not in the library then he is


playing tennis.
Solution: Let
p: Peter is in the library.
q: Peter is playing tennis.
Then the given proposition can be
written in the form ¬p → q.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• You can access the Internet from campus


only if you are a computer science major
or you are not a freshman.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• You can access the Internet from campus


only if you are a computer science major
or you are not a freshman.
Solution: Let

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• You can access the Internet from campus


only if you are a computer science major
or you are not a freshman.
Solution: Let
p: You can access the Internet from
campus.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• You can access the Internet from campus


only if you are a computer science major
or you are not a freshman.
Solution: Let
p: You can access the Internet from
campus.
q: You are a computer science major.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• You can access the Internet from campus


only if you are a computer science major
or you are not a freshman.
Solution: Let
p: You can access the Internet from
campus.
q: You are a computer science major.
r: You are a freshman.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

Then the given proposition can be


symbolically written in the form

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

Then the given proposition can be


symbolically written in the form
p

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

Then the given proposition can be


symbolically written in the form
p→

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

Then the given proposition can be


symbolically written in the form
p→q

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

Then the given proposition can be


symbolically written in the form
p→q∨

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

Then the given proposition can be


symbolically written in the form
p → q ∨ ¬r

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

Then the given proposition can be


symbolically written in the form
p → q ∨ ¬r (WRONG!!!)

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

Then the given proposition can be


symbolically written in the form
p → q ∨ ¬r (WRONG!!!)
p → (q ∨ ¬r) (RIGHT!!!).

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• Getting an A on the final exam and


doing every assignment is sufficient for
getting an A in this class.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• Getting an A on the final exam and


doing every assignment is sufficient for
getting an A in this class.
Solution: Let

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• Getting an A on the final exam and


doing every assignment is sufficient for
getting an A in this class.
Solution: Let
p: You get an A on the final exam.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• Getting an A on the final exam and


doing every assignment is sufficient for
getting an A in this class.
Solution: Let
p: You get an A on the final exam.
q: You do every assignment.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

• Getting an A on the final exam and


doing every assignment is sufficient for
getting an A in this class.
Solution: Let
p: You get an A on the final exam.
q: You do every assignment.
r: You get an A in this class.

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

Then the given proposition can be


symbolically written in the form

Unit I: Logic and Proofs - Propositional Logic


Converting propositions into symbolic form (Contd.)

Then the given proposition can be


symbolically written in the form
(p ∧ q) → r

Unit I: Logic and Proofs - Propositional Logic

You might also like