SlideShare una empresa de Scribd logo
1 de 33
Discrete Mathematics
Chapter 2
Propositional Logic
Dr.Khaled Bakro
1
Propositional Logic
A proposition is a declarative sentence
(a sentence that declares a fact) that is
either true or false, but not both.
Are the following sentences propositions?
Cairo is the capital of Eygpt.
Read this carefully.
1+2=3
x+1=2
What time is it?
(No)
(No)
(No)
(Yes)
(Yes)
Introduction
2
Propositional Logic
Propositional Logic – the area of logic that
deals with propositions
Propositional Variables – variables that
represent propositions: p, q, r, s
E.g. Proposition p – “Today is Friday.”
Truth values – T, F
Logical operators are used to form new
propositions from two or more existing
propositions. The logical operators are also
called connectives. 3
Propositional Logic
Examples
 Find the negation of the proposition “Today is Friday.”
DEFINITION 1
Let p be a proposition. The negation of p, denoted by ¬p, is the statement
“It is not the case that p.”
The proposition ¬p is read “not p.” The truth value of the negation of p, ¬p
is the opposite of the truth value of p.
Solution: The negation is “It is not the case that today is Friday.”
“Today is not Friday.” or “It is not Friday today.” 4
The Truth Table for the
Negation of a Proposition.
p ¬p
T
F
F
T
Truth table:
Propositional Logic
Examples
 Find the conjunction of the propositions p and
q where p is the proposition “Today is Friday.”
and q is the proposition “It is raining today.”,
and the truth value of the conjunction.
DEFINITION 2
Let p and q be propositions. The conjunction of p and q, denoted by p Λ q,
is the proposition “p and q”. The conjunction p Λ q is true when both p and q
are true and is false otherwise.
Solution: The conjunction is the proposition “Today is
Friday and it is raining today.” The proposition is true
on rainy Fridays.
5
The Truth Table for
the Conjunction of
Two Propositions.
p q p Λ q
T T
T F
F T
F F
T
F
F
F
Propositional Logic
 Note:
inclusive or : The disjunction is true when
at least one of the two propositions is true.
 E.g. “Students who have taken calculus or
computing essentials can take this class.” –
those who take one or both classes.
DEFINITION 3
Let p and q be propositions. The disjunction of p and q, denoted by p ν q, is the
proposition “p or q”. The conjunction p ν q is false when both p and q are false
and is true otherwise.
6
The Truth Table for
the Disjunction of
Two Propositions.
p q p ν q
T T
T F
F T
F F
T
T
T
F
Propositional Logic
⊕
DEFINITION 4
Let p and q be propositions. The exclusive or of p and q, denoted by p q,
is the proposition that is true when exactly one of p and q is true and is
false otherwise.
The Truth Table for the
Exclusive Or (XOR) of
Two Propositions.
p q p q
T T
T F
F T
F F
F
T
T
F
⊕
⊕
7
exclusive or : The disjunction is
true only when one of the
proposition is true.
 E.g. “Students who have taken
calculus or competing essentials,
but not both, can take this class.”
– only those who take one of
them.
Propositional Logic
⊕
DEFINITION 5
Let p and q be propositions. The conditional statement p → q, is the
proposition “if p, then q.” The conditional statement is false when p is true
and q is false, and true otherwise.
Conditional Statements
 A conditional statement is also called an implication.
 Example: “If I am elected, then I will lower taxes.” p → q
implication:
elected, lower taxes. T T | T
not elected, lower taxes. F T | T
not elected, not lower taxes. F F | T
elected, not lower taxes. T F | F
8
p: hypothesis, q: conclusion
Propositional Logic
Example:
 Let p be the statement “Maria learns discrete mathematics.” and
q the statement “Maria will find a good job.” Express the
statement p → q as a statement in English.
Solution: Any of the following -
“If Maria learns discrete mathematics, then she will find a
good job.
“Maria will find a good job when she learns discrete
mathematics.”
“For Maria to get a good job, it is sufficient for her to
learn discrete mathematics.”
“Maria will find a good job unless she does not learn
discrete mathematics.”
9
Propositional Logic
Other conditional statements:
 Converse of p → q : q → p
 Contrapositive of p → q : ¬ q → ¬ p
 Inverse of p → q : ¬ p → ¬ q
10
Propositional Logic
 p ↔ q has the same truth value as (p → q) Λ (q → p)
“if and only if” can be expressed by “iff”
 Example:
 Let p be the statement “You can take the flight”
 and let q be the statement “You buy a ticket.”
 Then p ↔ q is the statement
“You can take the flight if and only if you
buy a ticket.”
Implication:
If you buy a ticket you can take the flight.
If you don’t buy a ticket you cannot take the flight.
DEFINITION 6
Let p and q be propositions. The biconditional statement p ↔ q is the
proposition “p if and only if q.” The biconditional statement p ↔ q is
true when p and q have the same truth values, and is false otherwise.
Biconditional statements are also called bi-implications.
11
The Truth Table for the
Biconditional p ↔ q.
p q p ↔ q
T T
T F
F T
F F
T
F
F
T
Propositional Logic
 We can use connectives to build up complicated compound
propositions involving any number of propositional variables, then
use truth tables to determine the truth value of these compound
propositions.
 Example: Construct the truth table of the compound proposition
(p ν ¬q) → (p Λ q).
Truth Tables of Compound Propositions
The Truth Table of (p ν ¬q) → (p Λ q).
p q ¬q p ν ¬q p Λ q (p ν ¬q) → (p Λ q)
T T
T F
F T
F F
F
T
F
T
T
T
F
T
T
F
F
F
T
F
T
F 12
Propositional Logic
 We can use parentheses to specify the order in which logical operators
in a compound proposition are to be applied.
 To reduce the number of parentheses, the precedence order is defined
for logical operators.
 In general, 2n rows are required if a compound proposition involves n
propositional variables in order to get the combination of all truth values.
Precedence of Logical Operators
Precedence of Logical Operators.
Operator Precedence
¬ 1
Λ
ν
2
3
→
↔
4
5
E.g. ¬p Λ q = (¬p ) Λ q
p Λ q ν r = (p Λ q ) ν r
p ν q Λ r = p ν (q Λ r)
13
Propositional Logic
 Computers represent information using bits.
 A bit is a symbol with two possible values, 0 and 1.
 By convention, 1 represents T (true) and 0 represents F (false).
 A variable is called a Boolean variable if its value is either true or
false.
 Bit operation – replace true by 1 and false by 0 in logical operations.
Table for the Bit Operators OR, AND, and XOR.
x y x ν y x Λ y x y
0
0
1
1
0
1
0
1
0
1
1
1
0
0
0
1
0
1
1
0
Logic and Bit Operations
⊕
14
Propositional Logic
 Example: Find the bitwise OR, bitwise AND, and bitwise XOR of the
bit string 01 1011 0110 and 11 0001 1101.
DEFINITION 7
A bit string is a sequence of zero or more bits. The length of this string
is the number of bits in the string.
Solution:
01 1011 0110
11 0001 1101
-------------------
11 1011 1111 bitwise OR
01 0001 0100 bitwise AND
10 1010 1011 bitwise XOR
15
Propositional Equivalences
DEFINITION 1
A compound proposition that is always true, no matter what the truth values
of the propositions that occurs in it, is called a tautology. A compound
proposition that is always false is called a contradiction. A compound
proposition that is neither a tautology or a contradiction is called a
contingency.
Introduction
Examples of a Tautology and a Contradiction.
p ¬p p ν ¬p p Λ ¬p
T
F
F
T
T
T
F
F
16
Propositional Equivalences
DEFINITION 2
The compound propositions p and q are called logically equivalent if p ↔ q is a
tautology. The notation p ≡ q denotes that p and q are logically equivalent.
Logical Equivalences
Truth Tables for ¬p ν q and p → q .
p q ¬p ¬p ν q p → q
T
T
F
F
T
F
T
F
F
F
T
T
T
F
T
T
T
F
T
T
 Compound propositions that have the same truth values in all possible
cases are called logically equivalent.
 Example: p → q and ¬ p ∨ q are logically equivalent
 Truth tables are the simplest way to prove such facts.
 We will learn other ways later.
 Example
Show that ¬p ν q
and p → q
are logically equivalent.
17
Propositional Equivalences
Constructing New Logical Equivalences
 Example: Show that ¬(p → q ) and p Λ ¬q are logically equivalent.
Solution:
¬(p → q ) ≡ ¬(¬p ν q) by example on slide 21
≡ ¬(¬p) Λ ¬q by the second De Morgan law
≡ p Λ ¬q by the double negation law
 Example: Show that (p Λ q) → (p ν q) is a tautology.
Solution: To show that this statement is a tautology, we will use logical
equivalences to demonstrate that it is logically equivalent to T.
(p Λ q) → (p ν q) ≡ ¬(p Λ q) ν (p ν q) by example on slide 21
≡ (¬ p ν ¬q) ν (p ν q) by the first De Morgan law
≡ (¬ p ν p) ν (¬ q ν q) by the associative and
communicative law for disjunction
≡ T ν T
≡ T
 Note: The above examples can also be done using truth tables.
18
Compound Propositions
Negation (not) ¬ p
Conjunction (and) p ∧ q
Disjunction (or) p ∨ q
Exclusive or p ⊕ q
Implication p → q
Biconditional p ↔ q
Converse q → p
Contrapositive ¬ q → ¬ p
Inverse ¬ p → ¬ q
De Morgan’s Laws
 ¬ (p ∨ q) ≡ ¬ p ∧ ¬ q
 ¬ (p ∧ q) ≡ ¬ p ∨ ¬ q
What are the negations of:
Casey has a laptop and Jena has an iPod
Clinton will win Iowa or New Hampshire
Equivalences relating to implication
p → q ≡ ¬ p ∨ q
p → q ≡ ¬ q → ¬ p
p ∨ q ≡ ¬ p → q
p ∧ q ≡ ¬ (p → ¬ q)
p ↔ q ≡ (p→ q) ∧ (q → p)
p ↔ q ≡ ¬ p ↔ ¬ q
p ↔ q ≡ (p ∧ q) ∨ (¬ p ∧ ¬ q)
¬ (p ↔ q) ≡ p ↔ ¬ q
Tautology
A compound proposition that is always
TRUE, e.g. q ∨ ¬q
Logical equivalence redefined: p,q are
logical equivalences if p ↔ q is a
tautology. Symbolically p ≡ q.
Intuition: p ↔ q is true precisely when p,q
have the same truth values.
22
Distributive Laws
p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
Intuition (not a proof!) – For the LHS to be true: p must
be true and q or r must be true. This is the same as
saying p and q must be true or p and r must be true.
p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
Intuition (less obvious) – For the LHS to be true: p must
be true or both q and r must be true. This is the same
as saying p or q must be true and p or r must be true.
Proof: use truth tables.
23
Predicate Logic
A predicate is a proposition that is a
function of one or more variables.
E.g.: P(x): x is an even number. So P(1)
is false, P(2) is true,….
Examples of predicates:
Domain ASCII characters - IsAlpha(x) :
TRUE iff x is an alphabetical character.
Domain floating point numbers - IsInt(x):
TRUE iff x is an integer.
Domain integers: Prime(x) - TRUE if x is
prime, FALSE otherwise.
24
Quantifiers
describes the values of a variable that
make the predicate true. E.g. ∃x P(x)
Domain or universe: range of values of a
variable (sometimes implicit)
25
Two Popular Quantifiers
Universal: ∀x P(x) – “P(x) for all x in the
domain”
Existential: ∃x P(x) – “P(x) for some x in
the domain” or “there exists x such that P(x) is
TRUE”.
Either is meaningless if the domain is not
known/specified.
Examples (domain real numbers)
∀x (x2
>= 0)
∃x (x >1)
(∀x>1) (x2
> x) – quantifier with restricted domain
26
Using Quantifiers
Domain integers:
Using implications: The cube of all
negative integers is negative.
∀x (x < 0) →(x3
< 0)
 Expressing sums :
n
∀n (Σ i = n(n+1)/2)
i=1
27
Aside: summation notation
Scope of Quantifiers
∀ ∃ have higher precedence than
operators from Propositional Logic; so ∀x
P(x) ∨ Q(x) is not logically equivalent to
∀x (P(x) ∨ Q(x))
 ∃ x (P(x) ∧ Q(x)) ∨ ∀x R(x)
Say P(x): x is odd, Q(x): x is divisible by 3, R(x): (x=0) ∨(2x >x)
Logical Equivalence: P ≡ Q iff they have
same truth value no matter which domain
is used and no matter which predicates
are assigned to predicate variables.
28
Statements with quantifiers
• ∃ x Even(x)
• ∀ x Odd(x)
• ∀ x (Even(x) ∨ Odd(x))
• ∃ x (Even(x) ∧ Odd(x))
• ∀ x Greater(x+1, x)
• ∃ x (Even(x) ∧ Prime(x))
Even(x)
Odd(x)
Prime(x)
Greater(x,y)
Equal(x,y)
Domain:
Positive Integers
Negation of Quantifiers
“There is no student who can …”
“Not all professors are bad….”
“There is no Toronto Raptor that can
dunk like Vince …”
¬ ∀x P(x) ≡ ∃ x ¬P(x) why?
¬ ∃ x P(x) ≡ ∀ x ¬P(x)
Careful: The negation of “Every Canadian
loves Hockey” is NOT “No Canadian loves
Hockey”! Many, many students make this mistake!
30
Nested Quantifiers
Allows simultaneous quantification of
many variables.
E.g. – domain integers,
∃ x ∃ y ∃ z x2
+ y2
= z2
∀n ∃ x ∃ y ∃ z xn
+ yn
= zn
(Fermat’s Last
Theorem)
Domain real numbers:
∀x ∀ y ∃ z (x < z < y) ∨ (y < z < x)
31
Is this true?
Nested Quantifiers - 2
∀x ∃y (x + y = 0) is true over the integers
Assume an arbitrary integer x.
To show that there exists a y that satisfies
the requirement of the predicate, choose
y = -x. Clearly y is an integer, and thus is
in the domain.
So x + y = x + (-x) = x – x = 0.
Since we assumed nothing about x (other
than it is an integer), the argument holds
for any integer x.
Therefore, the predicate is TRUE.
32
Nested Quantifiers - 3
Caveat: In general, order matters!
Consider the following propositions over
the integer domain:
∀x ∃y (x < y) and ∃y ∀x (x < y)
∀x ∃y (x < y) : “there is no maximum
integer”
∃y ∀x (x < y) : “there is a maximum
integer”
Not the same meaning at all!!!
33

Más contenido relacionado

La actualidad más candente

Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1blaircomp2003
 
CMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional EquivalencesCMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional Equivalencesallyn joy calcaben
 
Logic (slides)
Logic (slides)Logic (slides)
Logic (slides)IIUM
 
Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiersblaircomp2003
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logicgiki67
 
Discrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional LogicDiscrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional LogicUniversity of Potsdam
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicIT Engineering Department
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proofAbdur Rehman
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceasimnawaz54
 
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكروDiscrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكروDr. Khaled Bakro
 
Converse, contrapositive, inverse
Converse, contrapositive, inverseConverse, contrapositive, inverse
Converse, contrapositive, inverseAbdur Rehman
 
Discrete Math Chapter 1 :The Foundations: Logic and Proofs
Discrete Math Chapter 1 :The Foundations: Logic and ProofsDiscrete Math Chapter 1 :The Foundations: Logic and Proofs
Discrete Math Chapter 1 :The Foundations: Logic and ProofsAmr Rashed
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical inductionrey castro
 
Binomial Theorem
Binomial TheoremBinomial Theorem
Binomial Theoremitutor
 
Rules of inference
Rules of inferenceRules of inference
Rules of inferenceharman kaur
 
Discrete mathematic
Discrete mathematicDiscrete mathematic
Discrete mathematicNaralaswapna
 
5.5 Injective and surjective functions. Dynamic slides.
5.5 Injective and surjective functions. Dynamic slides.5.5 Injective and surjective functions. Dynamic slides.
5.5 Injective and surjective functions. Dynamic slides.Jan Plaza
 
Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Ikhtiar Khan Sohan
 

La actualidad más candente (20)

Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
 
CMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional EquivalencesCMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional Equivalences
 
Logic (slides)
Logic (slides)Logic (slides)
Logic (slides)
 
Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiers
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
Discrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional LogicDiscrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional Logic
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional Logic
 
Logic&proof
Logic&proofLogic&proof
Logic&proof
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proof
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inference
 
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكروDiscrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
 
Converse, contrapositive, inverse
Converse, contrapositive, inverseConverse, contrapositive, inverse
Converse, contrapositive, inverse
 
Discrete Math Chapter 1 :The Foundations: Logic and Proofs
Discrete Math Chapter 1 :The Foundations: Logic and ProofsDiscrete Math Chapter 1 :The Foundations: Logic and Proofs
Discrete Math Chapter 1 :The Foundations: Logic and Proofs
 
Truth table
Truth tableTruth table
Truth table
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical induction
 
Binomial Theorem
Binomial TheoremBinomial Theorem
Binomial Theorem
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
 
Discrete mathematic
Discrete mathematicDiscrete mathematic
Discrete mathematic
 
5.5 Injective and surjective functions. Dynamic slides.
5.5 Injective and surjective functions. Dynamic slides.5.5 Injective and surjective functions. Dynamic slides.
5.5 Injective and surjective functions. Dynamic slides.
 
Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)
 

Destacado

Introduction to parliamentary debate
Introduction to parliamentary debateIntroduction to parliamentary debate
Introduction to parliamentary debateAbhinandan Ray
 
Propositions - Discrete Structures
Propositions - Discrete Structures Propositions - Discrete Structures
Propositions - Discrete Structures Drishti Bhalla
 
Truth tables complete and p1 of short method
Truth tables complete and p1 of short methodTruth tables complete and p1 of short method
Truth tables complete and p1 of short methodNat Karablina
 
MDD and the Tautology Problem: Discussion Notes.
MDD and the Tautology Problem: Discussion Notes.MDD and the Tautology Problem: Discussion Notes.
MDD and the Tautology Problem: Discussion Notes.Bob Binder
 
Want to know about java
Want to know about javaWant to know about java
Want to know about javaadityamadgula
 
Lec 02 logical eq (Discrete Mathematics)
Lec 02   logical eq (Discrete Mathematics)Lec 02   logical eq (Discrete Mathematics)
Lec 02 logical eq (Discrete Mathematics)Naosher Md. Zakariyar
 
Discrete Structures lecture 2
 Discrete Structures lecture 2 Discrete Structures lecture 2
Discrete Structures lecture 2Ali Usman
 
Chapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound StatementsChapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound Statementsguestd166eb5
 

Destacado (12)

Introduction to parliamentary debate
Introduction to parliamentary debateIntroduction to parliamentary debate
Introduction to parliamentary debate
 
Propositions - Discrete Structures
Propositions - Discrete Structures Propositions - Discrete Structures
Propositions - Discrete Structures
 
Truth tables complete and p1 of short method
Truth tables complete and p1 of short methodTruth tables complete and p1 of short method
Truth tables complete and p1 of short method
 
MDD and the Tautology Problem: Discussion Notes.
MDD and the Tautology Problem: Discussion Notes.MDD and the Tautology Problem: Discussion Notes.
MDD and the Tautology Problem: Discussion Notes.
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
 
Want to know about java
Want to know about javaWant to know about java
Want to know about java
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Lec 02 logical eq (Discrete Mathematics)
Lec 02   logical eq (Discrete Mathematics)Lec 02   logical eq (Discrete Mathematics)
Lec 02 logical eq (Discrete Mathematics)
 
Discrete Structures lecture 2
 Discrete Structures lecture 2 Discrete Structures lecture 2
Discrete Structures lecture 2
 
The logic
The logicThe logic
The logic
 
Chapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound StatementsChapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound Statements
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 

Similar a Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو

Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and ProofsChapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and ProofsProfSHananeel
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptNandiniSR2
 
UGC NET Computer Science & Application book.pdf [Sample]
UGC NET Computer Science & Application book.pdf  [Sample]UGC NET Computer Science & Application book.pdf  [Sample]
UGC NET Computer Science & Application book.pdf [Sample]DIwakar Rajput
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdfsmarwaneid
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdfPradeeshSAI
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptxRavind8
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1taimoor iftikhar
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdfrAjyarAjanItjJa
 
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptxssuser92109d
 

Similar a Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو (20)

Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and ProofsChapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.ppt
 
UGC NET Computer Science & Application book.pdf [Sample]
UGC NET Computer Science & Application book.pdf  [Sample]UGC NET Computer Science & Application book.pdf  [Sample]
UGC NET Computer Science & Application book.pdf [Sample]
 
L01.ppt
L01.pptL01.ppt
L01.ppt
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
dm-logic.pdf
dm-logic.pdfdm-logic.pdf
dm-logic.pdf
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
 
Per3 logika&amp;pembuktian
Per3 logika&amp;pembuktianPer3 logika&amp;pembuktian
Per3 logika&amp;pembuktian
 
Logic
LogicLogic
Logic
 
Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptx
 
DMS UNIT-1 ppt.pptx
DMS UNIT-1 ppt.pptxDMS UNIT-1 ppt.pptx
DMS UNIT-1 ppt.pptx
 
Slide subtopic 2
Slide subtopic 2Slide subtopic 2
Slide subtopic 2
 
Slide subtopic 2
Slide subtopic 2Slide subtopic 2
Slide subtopic 2
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
 
DS Lecture 2.ppt
DS Lecture 2.pptDS Lecture 2.ppt
DS Lecture 2.ppt
 
Chapter1p1 2.pptx
Chapter1p1 2.pptxChapter1p1 2.pptx
Chapter1p1 2.pptx
 
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
 

Más de Dr. Khaled Bakro

برنامج الشفرة المثاني للقرآن الكريم د. خالد بكرو ...
برنامج الشفرة المثاني للقرآن الكريم   د. خالد بكرو                           ...برنامج الشفرة المثاني للقرآن الكريم   د. خالد بكرو                           ...
برنامج الشفرة المثاني للقرآن الكريم د. خالد بكرو ...Dr. Khaled Bakro
 
Binary code of qur'anic verses algorithm dr. khald bakro
Binary code  of qur'anic verses algorithm   dr. khald bakroBinary code  of qur'anic verses algorithm   dr. khald bakro
Binary code of qur'anic verses algorithm dr. khald bakroDr. Khaled Bakro
 
خوارزية إيجاد الشفرة المثاني لآيات القرآن الكريم، د. خالد بكرو
خوارزية إيجاد الشفرة المثاني لآيات القرآن الكريم، د. خالد بكروخوارزية إيجاد الشفرة المثاني لآيات القرآن الكريم، د. خالد بكرو
خوارزية إيجاد الشفرة المثاني لآيات القرآن الكريم، د. خالد بكروDr. Khaled Bakro
 
الشفرة المثاني للقرآن الكريم د. خالد بكرو ...
     الشفرة المثاني للقرآن الكريم د. خالد بكرو                               ...     الشفرة المثاني للقرآن الكريم د. خالد بكرو                               ...
الشفرة المثاني للقرآن الكريم د. خالد بكرو ...Dr. Khaled Bakro
 
Binary Quran code Dr. Khaled Bakro
Binary  Quran  code  Dr. Khaled BakroBinary  Quran  code  Dr. Khaled Bakro
Binary Quran code Dr. Khaled BakroDr. Khaled Bakro
 
رياضيات القرآن الكريم، الإحصاء - د. خالد بكرو Mathematics in the Holy Q...
  رياضيات القرآن الكريم، الإحصاء  - د. خالد بكرو    Mathematics in the Holy Q...  رياضيات القرآن الكريم، الإحصاء  - د. خالد بكرو    Mathematics in the Holy Q...
رياضيات القرآن الكريم، الإحصاء - د. خالد بكرو Mathematics in the Holy Q...Dr. Khaled Bakro
 
Quranic Word Its depths, Dimensions, Roles, associations, their forms, and...
   Quranic Word Its depths, Dimensions, Roles, associations, their forms, and...   Quranic Word Its depths, Dimensions, Roles, associations, their forms, and...
Quranic Word Its depths, Dimensions, Roles, associations, their forms, and...Dr. Khaled Bakro
 
رياضيات القرآن الكريم ، المصفوفات -- د. خالد بكرو Mathematics in the ...
رياضيات القرآن الكريم ، المصفوفات --  د. خالد بكرو        Mathematics in the ...رياضيات القرآن الكريم ، المصفوفات --  د. خالد بكرو        Mathematics in the ...
رياضيات القرآن الكريم ، المصفوفات -- د. خالد بكرو Mathematics in the ...Dr. Khaled Bakro
 
Digital Structure of Qur'anic Word - Dr. Khaled Bakro البنية الرقمية للكلمة ...
Digital Structure of Qur'anic Word - Dr. Khaled Bakro  البنية الرقمية للكلمة ...Digital Structure of Qur'anic Word - Dr. Khaled Bakro  البنية الرقمية للكلمة ...
Digital Structure of Qur'anic Word - Dr. Khaled Bakro البنية الرقمية للكلمة ...Dr. Khaled Bakro
 
The Mathani in the Qur'an Refers to Binary Computer Code, Zeros and Ones- Dr....
The Mathani in the Qur'an Refers to Binary Computer Code, Zeros and Ones- Dr....The Mathani in the Qur'an Refers to Binary Computer Code, Zeros and Ones- Dr....
The Mathani in the Qur'an Refers to Binary Computer Code, Zeros and Ones- Dr....Dr. Khaled Bakro
 
Digital Structure of Qur'anic Word - Dr. Khaled Bakro - البنية الرقمية للكل...
Digital Structure of Qur'anic Word  - Dr. Khaled Bakro -  البنية الرقمية للكل...Digital Structure of Qur'anic Word  - Dr. Khaled Bakro -  البنية الرقمية للكل...
Digital Structure of Qur'anic Word - Dr. Khaled Bakro - البنية الرقمية للكل...Dr. Khaled Bakro
 
الفصل الثامن- الاتصالات والشبكات- د. خالد بكرو Communications and Networks -...
الفصل الثامن-  الاتصالات والشبكات- د. خالد بكرو Communications and Networks -...الفصل الثامن-  الاتصالات والشبكات- د. خالد بكرو Communications and Networks -...
الفصل الثامن- الاتصالات والشبكات- د. خالد بكرو Communications and Networks -...Dr. Khaled Bakro
 
الفصل السابع - التخزين الثانوي- د. خالد بكرو Secondary Storage - Dr. Khaled B...
الفصل السابع - التخزين الثانوي- د. خالد بكرو Secondary Storage - Dr. Khaled B...الفصل السابع - التخزين الثانوي- د. خالد بكرو Secondary Storage - Dr. Khaled B...
الفصل السابع - التخزين الثانوي- د. خالد بكرو Secondary Storage - Dr. Khaled B...Dr. Khaled Bakro
 
الفصل السادس- الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled...
الفصل السادس-   الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled...الفصل السادس-   الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled...
الفصل السادس- الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled...Dr. Khaled Bakro
 
الفصل الخامس - الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled ...
الفصل الخامس - الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled ...الفصل الخامس - الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled ...
الفصل الخامس - الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled ...Dr. Khaled Bakro
 
الفصل الرابع برمجيات النظام - د. خالد بكرو System Software - Dr. Khaled Bakro
الفصل الرابع  برمجيات النظام  - د. خالد بكرو System Software - Dr. Khaled Bakroالفصل الرابع  برمجيات النظام  - د. خالد بكرو System Software - Dr. Khaled Bakro
الفصل الرابع برمجيات النظام - د. خالد بكرو System Software - Dr. Khaled BakroDr. Khaled Bakro
 
الفصل الثالث البرمجيات التطبيقية - د. خالد بكرو Application Soft - Dr. Khale...
الفصل الثالث  البرمجيات التطبيقية - د. خالد بكرو Application Soft - Dr. Khale...الفصل الثالث  البرمجيات التطبيقية - د. خالد بكرو Application Soft - Dr. Khale...
الفصل الثالث البرمجيات التطبيقية - د. خالد بكرو Application Soft - Dr. Khale...Dr. Khaled Bakro
 
الفصل الثاني الإنترنت، الويب والتجارة الإلكترونية - د. خالد بكرو The Interne...
الفصل الثاني  الإنترنت، الويب والتجارة الإلكترونية - د. خالد بكرو The Interne...الفصل الثاني  الإنترنت، الويب والتجارة الإلكترونية - د. خالد بكرو The Interne...
الفصل الثاني الإنترنت، الويب والتجارة الإلكترونية - د. خالد بكرو The Interne...Dr. Khaled Bakro
 
الفصل الأول الأسس النظرية لعمل الحاسب - د. خالد بكرو Computers Fundamentals ...
الفصل الأول الأسس النظرية لعمل الحاسب - د. خالد بكرو  Computers Fundamentals ...الفصل الأول الأسس النظرية لعمل الحاسب - د. خالد بكرو  Computers Fundamentals ...
الفصل الأول الأسس النظرية لعمل الحاسب - د. خالد بكرو Computers Fundamentals ...Dr. Khaled Bakro
 
Dr. Khaled Bakro كتاب أساسيات الحوسبة - د. خالد بكرو
 Dr. Khaled Bakro    كتاب أساسيات الحوسبة - د. خالد بكرو Dr. Khaled Bakro    كتاب أساسيات الحوسبة - د. خالد بكرو
Dr. Khaled Bakro كتاب أساسيات الحوسبة - د. خالد بكروDr. Khaled Bakro
 

Más de Dr. Khaled Bakro (20)

برنامج الشفرة المثاني للقرآن الكريم د. خالد بكرو ...
برنامج الشفرة المثاني للقرآن الكريم   د. خالد بكرو                           ...برنامج الشفرة المثاني للقرآن الكريم   د. خالد بكرو                           ...
برنامج الشفرة المثاني للقرآن الكريم د. خالد بكرو ...
 
Binary code of qur'anic verses algorithm dr. khald bakro
Binary code  of qur'anic verses algorithm   dr. khald bakroBinary code  of qur'anic verses algorithm   dr. khald bakro
Binary code of qur'anic verses algorithm dr. khald bakro
 
خوارزية إيجاد الشفرة المثاني لآيات القرآن الكريم، د. خالد بكرو
خوارزية إيجاد الشفرة المثاني لآيات القرآن الكريم، د. خالد بكروخوارزية إيجاد الشفرة المثاني لآيات القرآن الكريم، د. خالد بكرو
خوارزية إيجاد الشفرة المثاني لآيات القرآن الكريم، د. خالد بكرو
 
الشفرة المثاني للقرآن الكريم د. خالد بكرو ...
     الشفرة المثاني للقرآن الكريم د. خالد بكرو                               ...     الشفرة المثاني للقرآن الكريم د. خالد بكرو                               ...
الشفرة المثاني للقرآن الكريم د. خالد بكرو ...
 
Binary Quran code Dr. Khaled Bakro
Binary  Quran  code  Dr. Khaled BakroBinary  Quran  code  Dr. Khaled Bakro
Binary Quran code Dr. Khaled Bakro
 
رياضيات القرآن الكريم، الإحصاء - د. خالد بكرو Mathematics in the Holy Q...
  رياضيات القرآن الكريم، الإحصاء  - د. خالد بكرو    Mathematics in the Holy Q...  رياضيات القرآن الكريم، الإحصاء  - د. خالد بكرو    Mathematics in the Holy Q...
رياضيات القرآن الكريم، الإحصاء - د. خالد بكرو Mathematics in the Holy Q...
 
Quranic Word Its depths, Dimensions, Roles, associations, their forms, and...
   Quranic Word Its depths, Dimensions, Roles, associations, their forms, and...   Quranic Word Its depths, Dimensions, Roles, associations, their forms, and...
Quranic Word Its depths, Dimensions, Roles, associations, their forms, and...
 
رياضيات القرآن الكريم ، المصفوفات -- د. خالد بكرو Mathematics in the ...
رياضيات القرآن الكريم ، المصفوفات --  د. خالد بكرو        Mathematics in the ...رياضيات القرآن الكريم ، المصفوفات --  د. خالد بكرو        Mathematics in the ...
رياضيات القرآن الكريم ، المصفوفات -- د. خالد بكرو Mathematics in the ...
 
Digital Structure of Qur'anic Word - Dr. Khaled Bakro البنية الرقمية للكلمة ...
Digital Structure of Qur'anic Word - Dr. Khaled Bakro  البنية الرقمية للكلمة ...Digital Structure of Qur'anic Word - Dr. Khaled Bakro  البنية الرقمية للكلمة ...
Digital Structure of Qur'anic Word - Dr. Khaled Bakro البنية الرقمية للكلمة ...
 
The Mathani in the Qur'an Refers to Binary Computer Code, Zeros and Ones- Dr....
The Mathani in the Qur'an Refers to Binary Computer Code, Zeros and Ones- Dr....The Mathani in the Qur'an Refers to Binary Computer Code, Zeros and Ones- Dr....
The Mathani in the Qur'an Refers to Binary Computer Code, Zeros and Ones- Dr....
 
Digital Structure of Qur'anic Word - Dr. Khaled Bakro - البنية الرقمية للكل...
Digital Structure of Qur'anic Word  - Dr. Khaled Bakro -  البنية الرقمية للكل...Digital Structure of Qur'anic Word  - Dr. Khaled Bakro -  البنية الرقمية للكل...
Digital Structure of Qur'anic Word - Dr. Khaled Bakro - البنية الرقمية للكل...
 
الفصل الثامن- الاتصالات والشبكات- د. خالد بكرو Communications and Networks -...
الفصل الثامن-  الاتصالات والشبكات- د. خالد بكرو Communications and Networks -...الفصل الثامن-  الاتصالات والشبكات- د. خالد بكرو Communications and Networks -...
الفصل الثامن- الاتصالات والشبكات- د. خالد بكرو Communications and Networks -...
 
الفصل السابع - التخزين الثانوي- د. خالد بكرو Secondary Storage - Dr. Khaled B...
الفصل السابع - التخزين الثانوي- د. خالد بكرو Secondary Storage - Dr. Khaled B...الفصل السابع - التخزين الثانوي- د. خالد بكرو Secondary Storage - Dr. Khaled B...
الفصل السابع - التخزين الثانوي- د. خالد بكرو Secondary Storage - Dr. Khaled B...
 
الفصل السادس- الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled...
الفصل السادس-   الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled...الفصل السادس-   الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled...
الفصل السادس- الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled...
 
الفصل الخامس - الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled ...
الفصل الخامس - الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled ...الفصل الخامس - الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled ...
الفصل الخامس - الإدخال والإخراج - د. خالد بكرو Input and Output - Dr. Khaled ...
 
الفصل الرابع برمجيات النظام - د. خالد بكرو System Software - Dr. Khaled Bakro
الفصل الرابع  برمجيات النظام  - د. خالد بكرو System Software - Dr. Khaled Bakroالفصل الرابع  برمجيات النظام  - د. خالد بكرو System Software - Dr. Khaled Bakro
الفصل الرابع برمجيات النظام - د. خالد بكرو System Software - Dr. Khaled Bakro
 
الفصل الثالث البرمجيات التطبيقية - د. خالد بكرو Application Soft - Dr. Khale...
الفصل الثالث  البرمجيات التطبيقية - د. خالد بكرو Application Soft - Dr. Khale...الفصل الثالث  البرمجيات التطبيقية - د. خالد بكرو Application Soft - Dr. Khale...
الفصل الثالث البرمجيات التطبيقية - د. خالد بكرو Application Soft - Dr. Khale...
 
الفصل الثاني الإنترنت، الويب والتجارة الإلكترونية - د. خالد بكرو The Interne...
الفصل الثاني  الإنترنت، الويب والتجارة الإلكترونية - د. خالد بكرو The Interne...الفصل الثاني  الإنترنت، الويب والتجارة الإلكترونية - د. خالد بكرو The Interne...
الفصل الثاني الإنترنت، الويب والتجارة الإلكترونية - د. خالد بكرو The Interne...
 
الفصل الأول الأسس النظرية لعمل الحاسب - د. خالد بكرو Computers Fundamentals ...
الفصل الأول الأسس النظرية لعمل الحاسب - د. خالد بكرو  Computers Fundamentals ...الفصل الأول الأسس النظرية لعمل الحاسب - د. خالد بكرو  Computers Fundamentals ...
الفصل الأول الأسس النظرية لعمل الحاسب - د. خالد بكرو Computers Fundamentals ...
 
Dr. Khaled Bakro كتاب أساسيات الحوسبة - د. خالد بكرو
 Dr. Khaled Bakro    كتاب أساسيات الحوسبة - د. خالد بكرو Dr. Khaled Bakro    كتاب أساسيات الحوسبة - د. خالد بكرو
Dr. Khaled Bakro كتاب أساسيات الحوسبة - د. خالد بكرو
 

Último

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Último (20)

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو

  • 2. Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not both. Are the following sentences propositions? Cairo is the capital of Eygpt. Read this carefully. 1+2=3 x+1=2 What time is it? (No) (No) (No) (Yes) (Yes) Introduction 2
  • 3. Propositional Logic Propositional Logic – the area of logic that deals with propositions Propositional Variables – variables that represent propositions: p, q, r, s E.g. Proposition p – “Today is Friday.” Truth values – T, F Logical operators are used to form new propositions from two or more existing propositions. The logical operators are also called connectives. 3
  • 4. Propositional Logic Examples  Find the negation of the proposition “Today is Friday.” DEFINITION 1 Let p be a proposition. The negation of p, denoted by ¬p, is the statement “It is not the case that p.” The proposition ¬p is read “not p.” The truth value of the negation of p, ¬p is the opposite of the truth value of p. Solution: The negation is “It is not the case that today is Friday.” “Today is not Friday.” or “It is not Friday today.” 4 The Truth Table for the Negation of a Proposition. p ¬p T F F T Truth table:
  • 5. Propositional Logic Examples  Find the conjunction of the propositions p and q where p is the proposition “Today is Friday.” and q is the proposition “It is raining today.”, and the truth value of the conjunction. DEFINITION 2 Let p and q be propositions. The conjunction of p and q, denoted by p Λ q, is the proposition “p and q”. The conjunction p Λ q is true when both p and q are true and is false otherwise. Solution: The conjunction is the proposition “Today is Friday and it is raining today.” The proposition is true on rainy Fridays. 5 The Truth Table for the Conjunction of Two Propositions. p q p Λ q T T T F F T F F T F F F
  • 6. Propositional Logic  Note: inclusive or : The disjunction is true when at least one of the two propositions is true.  E.g. “Students who have taken calculus or computing essentials can take this class.” – those who take one or both classes. DEFINITION 3 Let p and q be propositions. The disjunction of p and q, denoted by p ν q, is the proposition “p or q”. The conjunction p ν q is false when both p and q are false and is true otherwise. 6 The Truth Table for the Disjunction of Two Propositions. p q p ν q T T T F F T F F T T T F
  • 7. Propositional Logic ⊕ DEFINITION 4 Let p and q be propositions. The exclusive or of p and q, denoted by p q, is the proposition that is true when exactly one of p and q is true and is false otherwise. The Truth Table for the Exclusive Or (XOR) of Two Propositions. p q p q T T T F F T F F F T T F ⊕ ⊕ 7 exclusive or : The disjunction is true only when one of the proposition is true.  E.g. “Students who have taken calculus or competing essentials, but not both, can take this class.” – only those who take one of them.
  • 8. Propositional Logic ⊕ DEFINITION 5 Let p and q be propositions. The conditional statement p → q, is the proposition “if p, then q.” The conditional statement is false when p is true and q is false, and true otherwise. Conditional Statements  A conditional statement is also called an implication.  Example: “If I am elected, then I will lower taxes.” p → q implication: elected, lower taxes. T T | T not elected, lower taxes. F T | T not elected, not lower taxes. F F | T elected, not lower taxes. T F | F 8 p: hypothesis, q: conclusion
  • 9. Propositional Logic Example:  Let p be the statement “Maria learns discrete mathematics.” and q the statement “Maria will find a good job.” Express the statement p → q as a statement in English. Solution: Any of the following - “If Maria learns discrete mathematics, then she will find a good job. “Maria will find a good job when she learns discrete mathematics.” “For Maria to get a good job, it is sufficient for her to learn discrete mathematics.” “Maria will find a good job unless she does not learn discrete mathematics.” 9
  • 10. Propositional Logic Other conditional statements:  Converse of p → q : q → p  Contrapositive of p → q : ¬ q → ¬ p  Inverse of p → q : ¬ p → ¬ q 10
  • 11. Propositional Logic  p ↔ q has the same truth value as (p → q) Λ (q → p) “if and only if” can be expressed by “iff”  Example:  Let p be the statement “You can take the flight”  and let q be the statement “You buy a ticket.”  Then p ↔ q is the statement “You can take the flight if and only if you buy a ticket.” Implication: If you buy a ticket you can take the flight. If you don’t buy a ticket you cannot take the flight. DEFINITION 6 Let p and q be propositions. The biconditional statement p ↔ q is the proposition “p if and only if q.” The biconditional statement p ↔ q is true when p and q have the same truth values, and is false otherwise. Biconditional statements are also called bi-implications. 11 The Truth Table for the Biconditional p ↔ q. p q p ↔ q T T T F F T F F T F F T
  • 12. Propositional Logic  We can use connectives to build up complicated compound propositions involving any number of propositional variables, then use truth tables to determine the truth value of these compound propositions.  Example: Construct the truth table of the compound proposition (p ν ¬q) → (p Λ q). Truth Tables of Compound Propositions The Truth Table of (p ν ¬q) → (p Λ q). p q ¬q p ν ¬q p Λ q (p ν ¬q) → (p Λ q) T T T F F T F F F T F T T T F T T F F F T F T F 12
  • 13. Propositional Logic  We can use parentheses to specify the order in which logical operators in a compound proposition are to be applied.  To reduce the number of parentheses, the precedence order is defined for logical operators.  In general, 2n rows are required if a compound proposition involves n propositional variables in order to get the combination of all truth values. Precedence of Logical Operators Precedence of Logical Operators. Operator Precedence ¬ 1 Λ ν 2 3 → ↔ 4 5 E.g. ¬p Λ q = (¬p ) Λ q p Λ q ν r = (p Λ q ) ν r p ν q Λ r = p ν (q Λ r) 13
  • 14. Propositional Logic  Computers represent information using bits.  A bit is a symbol with two possible values, 0 and 1.  By convention, 1 represents T (true) and 0 represents F (false).  A variable is called a Boolean variable if its value is either true or false.  Bit operation – replace true by 1 and false by 0 in logical operations. Table for the Bit Operators OR, AND, and XOR. x y x ν y x Λ y x y 0 0 1 1 0 1 0 1 0 1 1 1 0 0 0 1 0 1 1 0 Logic and Bit Operations ⊕ 14
  • 15. Propositional Logic  Example: Find the bitwise OR, bitwise AND, and bitwise XOR of the bit string 01 1011 0110 and 11 0001 1101. DEFINITION 7 A bit string is a sequence of zero or more bits. The length of this string is the number of bits in the string. Solution: 01 1011 0110 11 0001 1101 ------------------- 11 1011 1111 bitwise OR 01 0001 0100 bitwise AND 10 1010 1011 bitwise XOR 15
  • 16. Propositional Equivalences DEFINITION 1 A compound proposition that is always true, no matter what the truth values of the propositions that occurs in it, is called a tautology. A compound proposition that is always false is called a contradiction. A compound proposition that is neither a tautology or a contradiction is called a contingency. Introduction Examples of a Tautology and a Contradiction. p ¬p p ν ¬p p Λ ¬p T F F T T T F F 16
  • 17. Propositional Equivalences DEFINITION 2 The compound propositions p and q are called logically equivalent if p ↔ q is a tautology. The notation p ≡ q denotes that p and q are logically equivalent. Logical Equivalences Truth Tables for ¬p ν q and p → q . p q ¬p ¬p ν q p → q T T F F T F T F F F T T T F T T T F T T  Compound propositions that have the same truth values in all possible cases are called logically equivalent.  Example: p → q and ¬ p ∨ q are logically equivalent  Truth tables are the simplest way to prove such facts.  We will learn other ways later.  Example Show that ¬p ν q and p → q are logically equivalent. 17
  • 18. Propositional Equivalences Constructing New Logical Equivalences  Example: Show that ¬(p → q ) and p Λ ¬q are logically equivalent. Solution: ¬(p → q ) ≡ ¬(¬p ν q) by example on slide 21 ≡ ¬(¬p) Λ ¬q by the second De Morgan law ≡ p Λ ¬q by the double negation law  Example: Show that (p Λ q) → (p ν q) is a tautology. Solution: To show that this statement is a tautology, we will use logical equivalences to demonstrate that it is logically equivalent to T. (p Λ q) → (p ν q) ≡ ¬(p Λ q) ν (p ν q) by example on slide 21 ≡ (¬ p ν ¬q) ν (p ν q) by the first De Morgan law ≡ (¬ p ν p) ν (¬ q ν q) by the associative and communicative law for disjunction ≡ T ν T ≡ T  Note: The above examples can also be done using truth tables. 18
  • 19. Compound Propositions Negation (not) ¬ p Conjunction (and) p ∧ q Disjunction (or) p ∨ q Exclusive or p ⊕ q Implication p → q Biconditional p ↔ q Converse q → p Contrapositive ¬ q → ¬ p Inverse ¬ p → ¬ q
  • 20. De Morgan’s Laws  ¬ (p ∨ q) ≡ ¬ p ∧ ¬ q  ¬ (p ∧ q) ≡ ¬ p ∨ ¬ q What are the negations of: Casey has a laptop and Jena has an iPod Clinton will win Iowa or New Hampshire
  • 21. Equivalences relating to implication p → q ≡ ¬ p ∨ q p → q ≡ ¬ q → ¬ p p ∨ q ≡ ¬ p → q p ∧ q ≡ ¬ (p → ¬ q) p ↔ q ≡ (p→ q) ∧ (q → p) p ↔ q ≡ ¬ p ↔ ¬ q p ↔ q ≡ (p ∧ q) ∨ (¬ p ∧ ¬ q) ¬ (p ↔ q) ≡ p ↔ ¬ q
  • 22. Tautology A compound proposition that is always TRUE, e.g. q ∨ ¬q Logical equivalence redefined: p,q are logical equivalences if p ↔ q is a tautology. Symbolically p ≡ q. Intuition: p ↔ q is true precisely when p,q have the same truth values. 22
  • 23. Distributive Laws p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r) Intuition (not a proof!) – For the LHS to be true: p must be true and q or r must be true. This is the same as saying p and q must be true or p and r must be true. p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r) Intuition (less obvious) – For the LHS to be true: p must be true or both q and r must be true. This is the same as saying p or q must be true and p or r must be true. Proof: use truth tables. 23
  • 24. Predicate Logic A predicate is a proposition that is a function of one or more variables. E.g.: P(x): x is an even number. So P(1) is false, P(2) is true,…. Examples of predicates: Domain ASCII characters - IsAlpha(x) : TRUE iff x is an alphabetical character. Domain floating point numbers - IsInt(x): TRUE iff x is an integer. Domain integers: Prime(x) - TRUE if x is prime, FALSE otherwise. 24
  • 25. Quantifiers describes the values of a variable that make the predicate true. E.g. ∃x P(x) Domain or universe: range of values of a variable (sometimes implicit) 25
  • 26. Two Popular Quantifiers Universal: ∀x P(x) – “P(x) for all x in the domain” Existential: ∃x P(x) – “P(x) for some x in the domain” or “there exists x such that P(x) is TRUE”. Either is meaningless if the domain is not known/specified. Examples (domain real numbers) ∀x (x2 >= 0) ∃x (x >1) (∀x>1) (x2 > x) – quantifier with restricted domain 26
  • 27. Using Quantifiers Domain integers: Using implications: The cube of all negative integers is negative. ∀x (x < 0) →(x3 < 0)  Expressing sums : n ∀n (Σ i = n(n+1)/2) i=1 27 Aside: summation notation
  • 28. Scope of Quantifiers ∀ ∃ have higher precedence than operators from Propositional Logic; so ∀x P(x) ∨ Q(x) is not logically equivalent to ∀x (P(x) ∨ Q(x))  ∃ x (P(x) ∧ Q(x)) ∨ ∀x R(x) Say P(x): x is odd, Q(x): x is divisible by 3, R(x): (x=0) ∨(2x >x) Logical Equivalence: P ≡ Q iff they have same truth value no matter which domain is used and no matter which predicates are assigned to predicate variables. 28
  • 29. Statements with quantifiers • ∃ x Even(x) • ∀ x Odd(x) • ∀ x (Even(x) ∨ Odd(x)) • ∃ x (Even(x) ∧ Odd(x)) • ∀ x Greater(x+1, x) • ∃ x (Even(x) ∧ Prime(x)) Even(x) Odd(x) Prime(x) Greater(x,y) Equal(x,y) Domain: Positive Integers
  • 30. Negation of Quantifiers “There is no student who can …” “Not all professors are bad….” “There is no Toronto Raptor that can dunk like Vince …” ¬ ∀x P(x) ≡ ∃ x ¬P(x) why? ¬ ∃ x P(x) ≡ ∀ x ¬P(x) Careful: The negation of “Every Canadian loves Hockey” is NOT “No Canadian loves Hockey”! Many, many students make this mistake! 30
  • 31. Nested Quantifiers Allows simultaneous quantification of many variables. E.g. – domain integers, ∃ x ∃ y ∃ z x2 + y2 = z2 ∀n ∃ x ∃ y ∃ z xn + yn = zn (Fermat’s Last Theorem) Domain real numbers: ∀x ∀ y ∃ z (x < z < y) ∨ (y < z < x) 31 Is this true?
  • 32. Nested Quantifiers - 2 ∀x ∃y (x + y = 0) is true over the integers Assume an arbitrary integer x. To show that there exists a y that satisfies the requirement of the predicate, choose y = -x. Clearly y is an integer, and thus is in the domain. So x + y = x + (-x) = x – x = 0. Since we assumed nothing about x (other than it is an integer), the argument holds for any integer x. Therefore, the predicate is TRUE. 32
  • 33. Nested Quantifiers - 3 Caveat: In general, order matters! Consider the following propositions over the integer domain: ∀x ∃y (x < y) and ∃y ∀x (x < y) ∀x ∃y (x < y) : “there is no maximum integer” ∃y ∀x (x < y) : “there is a maximum integer” Not the same meaning at all!!! 33