SlideShare a Scribd company logo
1 of 23
DISCRETE
STRUCTURES
Abdur Rehman Usmani
ARISTOTLE (384 B.C.E.–322 B.C.E.)
• Aristotle was born in Stagirus (Stagira) in northern Greece. His father
was the personal physician of the King of Macedonia. Because his
father died when Aristotle was young, Aristotle could not follow the
custom of following his father’s profession. Aristotle became an orphan
at a young age when his mother also died. His guardian who raised
him taught him poetry, rhetoric, and Greek. At the age of 17, his
guardian sent him to Athens to further his education. Aristotle joined
Plato’s Academy, where for 20 years he attended Plato’s lectures, later
presenting his own lectures on rhetoric. When Plato died in 347 B.C.E.,
Aristotle was not chosen to succeed him because his views differed
too much from those of Plato. Instead,
• Aristotle joined the court of King Hermeas where he remained for three
years, and married the niece of the King. When the Persians defeated
Hermeas, Aristotle moved to Mytilene and, at the invitation of King
Philip of Macedonia, he tutored Alexander, Philip’s son, who later
became Alexander the Great. Aristotle tutored Alexander for five years
and after the death of King Philip, he returned to Athens and set up his
own school, called the Lyceum.
• Aristotle’s followers were called the peripatetics, which means “to walk
about,” because Aristotle often walked around as he discussed
philosophical questions. Aristotle taught at the Lyceum for 13 years
where he lectured to his advanced students in the morning and gave
popular lectures to a broad audience in the evening. When Alexander
the Great died in 323 B.C.E., a backlash against anything related to
Alexander led to trumped-up charges of impiety against Aristotle.
Aristotle fled to Chalcis to avoid prosecution.
• He only lived one year in Chalcis, dying of a stomach ailment in 322
B.C.E.
• Aristotle wrote three types of works: those written for a popular
audience, compilations of scientific facts, and systematic treatises. The
systematic treatises included works on logic, philosophy, psychology,
physics, and natural history. Aristotle’s writings were preserved by a
student and were hidden in a vault where a wealthy book collector
discovered them about 200 years later. They were taken to Rome,
where they were studied by scholars and issued in new editions,
preserving them for posterity.
ARISTOTLE (384 B.C.E.–322 B.C.E.)
GEORGE BOOLE
• GEORGE BOOLE (1815–1864) George Boole, the son of a
cobbler, was born in Lincoln, England, in November 1815.
Because of his family’s difficult financial situation, Boole struggled
to educate himself while supporting his family. Nevertheless, he
became one of the most important mathematicians of the 1800s.
Although he considered a career as a clergyman, he decided
instead to go into teaching, and soon afterward opened a school
of his own. In his preparation for teaching mathematics, Boole
unsatisfied with textbooks of his day decided to read the works of
the great mathematicians. While reading papers of the great
French mathematician Lagrange, Boole made discoveries in the
calculus of variations, the branch of analysis dealing with finding
curves and surfaces by optimizing certain parameters.
GEORGE BOOLE
• GEORGE BOOLE (1815–1864) George Boole, the son of a
cobbler, was born in Lincoln, England, in November 1815.
Because of his family’s difficult financial situation, Boole struggled
to educate himself while supporting his family. Nevertheless, he
became one of the most important mathematicians of the 1800s.
Although he considered a career as a clergyman, he decided
instead to go into teaching, and soon afterward opened a school
of his own. In his preparation for teaching mathematics, Boole
unsatisfied with textbooks of his day decided to read the works of
the great mathematicians. While reading papers of the great
French mathematician Lagrange, Boole made discoveries in the
calculus of variations, the branch of analysis dealing with finding
curves and surfaces by optimizing certain parameters.
EXAMPLE
p q pq pq ¬(pq) (pq) ¬(pq)
T T T T F F
T F T F T T
F T T F T T
F F F F T F
o (pq) ¬(pq)
EXAMPLE
p q r pq ¬r (pq)¬r
T T T
T T F
T F T
T F F
F T T
F T F
F F T
o (p  q)  ¬r
XOR
o “p or q and not both p and q”
• (p ∨ q) ∧ ∼(p ∧ q) is sometimes abbreviated as
• p ⊕ q
PRECEDENCE OF
LOGICAL CONNECTIVES
o ~ highest
o Ʌ second highest
o V third highest
o → fourth highest
o ↔ fifth highest
LOGICAL EQUIVALENCE
• If two propositions P(p,q,r….) and Q(p,q,r…) where
p,q,r… are propositional variables have same truth
values in every possible case, the propositions are
logically equivalent
• P(p,q,r….) Q(p,q,r…)
• To test whether two propositions are logically
equivalent
1. Construct the truth table for P
2. Construct the truth table for q using same propositional
variables
3. Check each combinations of truth values of propositional
variables to see whether value of P is same as the truth
value of Q.
• If in each row the truth value of P is same as truth value of
Q then P and Q are logically equivalent.


LOGICAL EQUIVALENCE
1. 6 is greater than 2
2. 2 is less than 6
• two different ways of saying the same thing.
• both be true or both be false.
• logical form of the statements is important.
p ∧ q is true when, and
only when, q ∧ p is
true.
The statement forms
are called logically
equivalent
LOGICAL EQUIVALENCE
oTwo statement forms are called logically
equivalent if, and only if, they have
identical truth values for each possible
substitution of statements for their
statement variables.
o P ≡ Q.
LOGICAL EQUIVALENCE
oNegation of the negation of a
statement is logically equivalent to
the statement.
o ∼(∼p) ≡ p
LOGICAL EQUIVALENCE
o∼(p ∧ q) and ∼p ∧ ∼q are not
logically equivalent
p =“0 < 1” and let q =“1 < 0.”
LOGICAL EQUIVALENCE
EQUIVALENCE LAWS
• Identity laws, P  T  P,
• Domination laws, P  F  F,
• Idempotent laws, P  P  P,
• Double negation law,  ( P)  P
• Commutative laws, P  Q  Q  P,
• Associative laws, P  (Q  R) (P  Q)  R,
• Distributive laws, P  (Q  R) (P  Q)  (P  R)
• De Morgan’s laws,  (PQ)  ( P)  ( Q)
• Law with implication P  Q   P  Q
EXCERCISE
•Use Truth Table to prove Distributive law
P v ( Q ^ R)  (P v Q) ^ (P v R)
•Show that P  Q   P  Q: by truth table
•Show that (P  Q)  (P  R)  P  (Q  R)
• Calculate truth Table for
P v ~Q  P
((~(P ^ Q) v R)  ~P )
DE MORGAN’S LAWS
oThe negation of the conjunction of two
statements is logically equivalent to the
disjunction of their negations.
o ∼(p ∧ q) and ∼p ∨ ∼q are logically equivalent i.e.
∼(p ∧ q) ≡ ∼p ∨ ∼q
DE MORGAN’S LAWS
oNegation of the disjunction of two
statements is logically equivalent to the
conjunction of their negations:
∼(p v q) ≡ ∼p ∧ ∼q
qpqp
qpqp


)(
)(
DE MORGAN’S LAWS
oWrite negations for each of the following
statements:
o John is 6 feet tall and he weighs at least 200 pounds.
o The bus was late or Tom’s watch was slow.
o Negation of these statements
o John is not 6 feet tall or he weighs less than 200 pounds.
o The bus was not late and Tom’s watch was not
slow(/“Neither was the bus late nor was Tom’s watch slow.”)
DE MORGAN’S LAWS
o Negation of a disjunction is formed by taking the
conjunction of the negations of the component
propositions.
o Negation of a conjunction is formed by taking the
disjunction of the negations of the component
propositions.
DE MORGAN’S LAWS
o Frequently used in writing computer programs.
o For instance, suppose you want your program to delete all
files modified outside a certain range of dates, say from
date 1 through date 2 inclusive.
o ∼(date1 ≤ file_modification_date ≤ date2)
o is equivalent to
o ( file_modification_date < date1) or (date2 <
file_modification_date).
DE MORGAN’S LAWS

More Related Content

Viewers also liked

Viewers also liked (6)

Highest WOD growth
Highest WOD growthHighest WOD growth
Highest WOD growth
 
Android based projects
Android based projectsAndroid based projects
Android based projects
 
Asepsia y antisepsia
Asepsia y antisepsiaAsepsia y antisepsia
Asepsia y antisepsia
 
5 Paywall Questions You've Been Scared to Ask
5 Paywall Questions You've Been Scared to Ask5 Paywall Questions You've Been Scared to Ask
5 Paywall Questions You've Been Scared to Ask
 
Firebase slide
Firebase slideFirebase slide
Firebase slide
 
HCMC Quarterly Knowledge Report | Q4 2016
HCMC Quarterly Knowledge Report | Q4 2016 HCMC Quarterly Knowledge Report | Q4 2016
HCMC Quarterly Knowledge Report | Q4 2016
 

Similar to Dst lec3

Similar to Dst lec3 (8)

3rd periodical reviewer
3rd periodical reviewer3rd periodical reviewer
3rd periodical reviewer
 
Truth table
Truth tableTruth table
Truth table
 
AppTheories_L3
AppTheories_L3AppTheories_L3
AppTheories_L3
 
invention of pi
invention of piinvention of pi
invention of pi
 
Renè descartes
Renè descartesRenè descartes
Renè descartes
 
Logic
LogicLogic
Logic
 
Logical arguments and its computer applications.
Logical arguments and its computer applications.Logical arguments and its computer applications.
Logical arguments and its computer applications.
 
The fifth postulate
The fifth postulateThe fifth postulate
The fifth postulate
 

More from Abdur Rehman

Financial accounting
Financial accountingFinancial accounting
Financial accountingAbdur Rehman
 
Valid &amp; invalid arguments
Valid &amp; invalid argumentsValid &amp; invalid arguments
Valid &amp; invalid argumentsAbdur Rehman
 
Proving existential statements
Proving existential statementsProving existential statements
Proving existential statementsAbdur Rehman
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proofAbdur Rehman
 
Proofs by contraposition
Proofs by contrapositionProofs by contraposition
Proofs by contrapositionAbdur Rehman
 
Converse, contrapositive, inverse
Converse, contrapositive, inverseConverse, contrapositive, inverse
Converse, contrapositive, inverseAbdur Rehman
 
Constructing circuits for boolean expressions(gate)
Constructing circuits for boolean expressions(gate)Constructing circuits for boolean expressions(gate)
Constructing circuits for boolean expressions(gate)Abdur Rehman
 
Application of bases
Application of basesApplication of bases
Application of basesAbdur Rehman
 
Intro to disceret structure
Intro to disceret structureIntro to disceret structure
Intro to disceret structureAbdur Rehman
 
logic, preposition etc
logic, preposition etclogic, preposition etc
logic, preposition etcAbdur Rehman
 

More from Abdur Rehman (18)

Financial accounting
Financial accountingFinancial accounting
Financial accounting
 
Dscrete structure
Dscrete  structureDscrete  structure
Dscrete structure
 
Valid &amp; invalid arguments
Valid &amp; invalid argumentsValid &amp; invalid arguments
Valid &amp; invalid arguments
 
Sets
SetsSets
Sets
 
Sequences
SequencesSequences
Sequences
 
Recursion
RecursionRecursion
Recursion
 
Queue
QueueQueue
Queue
 
Quantification
QuantificationQuantification
Quantification
 
Proving existential statements
Proving existential statementsProving existential statements
Proving existential statements
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proof
 
Proofs by contraposition
Proofs by contrapositionProofs by contraposition
Proofs by contraposition
 
Laws in disceret
Laws in disceretLaws in disceret
Laws in disceret
 
Converse, contrapositive, inverse
Converse, contrapositive, inverseConverse, contrapositive, inverse
Converse, contrapositive, inverse
 
Constructing circuits for boolean expressions(gate)
Constructing circuits for boolean expressions(gate)Constructing circuits for boolean expressions(gate)
Constructing circuits for boolean expressions(gate)
 
Application of bases
Application of basesApplication of bases
Application of bases
 
Truth table
Truth tableTruth table
Truth table
 
Intro to disceret structure
Intro to disceret structureIntro to disceret structure
Intro to disceret structure
 
logic, preposition etc
logic, preposition etclogic, preposition etc
logic, preposition etc
 

Recently uploaded

CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 

Recently uploaded (20)

CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 

Dst lec3

  • 2. ARISTOTLE (384 B.C.E.–322 B.C.E.) • Aristotle was born in Stagirus (Stagira) in northern Greece. His father was the personal physician of the King of Macedonia. Because his father died when Aristotle was young, Aristotle could not follow the custom of following his father’s profession. Aristotle became an orphan at a young age when his mother also died. His guardian who raised him taught him poetry, rhetoric, and Greek. At the age of 17, his guardian sent him to Athens to further his education. Aristotle joined Plato’s Academy, where for 20 years he attended Plato’s lectures, later presenting his own lectures on rhetoric. When Plato died in 347 B.C.E., Aristotle was not chosen to succeed him because his views differed too much from those of Plato. Instead, • Aristotle joined the court of King Hermeas where he remained for three years, and married the niece of the King. When the Persians defeated Hermeas, Aristotle moved to Mytilene and, at the invitation of King Philip of Macedonia, he tutored Alexander, Philip’s son, who later became Alexander the Great. Aristotle tutored Alexander for five years and after the death of King Philip, he returned to Athens and set up his own school, called the Lyceum.
  • 3. • Aristotle’s followers were called the peripatetics, which means “to walk about,” because Aristotle often walked around as he discussed philosophical questions. Aristotle taught at the Lyceum for 13 years where he lectured to his advanced students in the morning and gave popular lectures to a broad audience in the evening. When Alexander the Great died in 323 B.C.E., a backlash against anything related to Alexander led to trumped-up charges of impiety against Aristotle. Aristotle fled to Chalcis to avoid prosecution. • He only lived one year in Chalcis, dying of a stomach ailment in 322 B.C.E. • Aristotle wrote three types of works: those written for a popular audience, compilations of scientific facts, and systematic treatises. The systematic treatises included works on logic, philosophy, psychology, physics, and natural history. Aristotle’s writings were preserved by a student and were hidden in a vault where a wealthy book collector discovered them about 200 years later. They were taken to Rome, where they were studied by scholars and issued in new editions, preserving them for posterity. ARISTOTLE (384 B.C.E.–322 B.C.E.)
  • 4. GEORGE BOOLE • GEORGE BOOLE (1815–1864) George Boole, the son of a cobbler, was born in Lincoln, England, in November 1815. Because of his family’s difficult financial situation, Boole struggled to educate himself while supporting his family. Nevertheless, he became one of the most important mathematicians of the 1800s. Although he considered a career as a clergyman, he decided instead to go into teaching, and soon afterward opened a school of his own. In his preparation for teaching mathematics, Boole unsatisfied with textbooks of his day decided to read the works of the great mathematicians. While reading papers of the great French mathematician Lagrange, Boole made discoveries in the calculus of variations, the branch of analysis dealing with finding curves and surfaces by optimizing certain parameters.
  • 5. GEORGE BOOLE • GEORGE BOOLE (1815–1864) George Boole, the son of a cobbler, was born in Lincoln, England, in November 1815. Because of his family’s difficult financial situation, Boole struggled to educate himself while supporting his family. Nevertheless, he became one of the most important mathematicians of the 1800s. Although he considered a career as a clergyman, he decided instead to go into teaching, and soon afterward opened a school of his own. In his preparation for teaching mathematics, Boole unsatisfied with textbooks of his day decided to read the works of the great mathematicians. While reading papers of the great French mathematician Lagrange, Boole made discoveries in the calculus of variations, the branch of analysis dealing with finding curves and surfaces by optimizing certain parameters.
  • 6. EXAMPLE p q pq pq ¬(pq) (pq) ¬(pq) T T T T F F T F T F T T F T T F T T F F F F T F o (pq) ¬(pq)
  • 7. EXAMPLE p q r pq ¬r (pq)¬r T T T T T F T F T T F F F T T F T F F F T o (p  q)  ¬r
  • 8. XOR o “p or q and not both p and q” • (p ∨ q) ∧ ∼(p ∧ q) is sometimes abbreviated as • p ⊕ q
  • 9. PRECEDENCE OF LOGICAL CONNECTIVES o ~ highest o Ʌ second highest o V third highest o → fourth highest o ↔ fifth highest
  • 10. LOGICAL EQUIVALENCE • If two propositions P(p,q,r….) and Q(p,q,r…) where p,q,r… are propositional variables have same truth values in every possible case, the propositions are logically equivalent • P(p,q,r….) Q(p,q,r…) • To test whether two propositions are logically equivalent 1. Construct the truth table for P 2. Construct the truth table for q using same propositional variables 3. Check each combinations of truth values of propositional variables to see whether value of P is same as the truth value of Q. • If in each row the truth value of P is same as truth value of Q then P and Q are logically equivalent.  
  • 11. LOGICAL EQUIVALENCE 1. 6 is greater than 2 2. 2 is less than 6 • two different ways of saying the same thing. • both be true or both be false. • logical form of the statements is important. p ∧ q is true when, and only when, q ∧ p is true. The statement forms are called logically equivalent
  • 12. LOGICAL EQUIVALENCE oTwo statement forms are called logically equivalent if, and only if, they have identical truth values for each possible substitution of statements for their statement variables. o P ≡ Q.
  • 13. LOGICAL EQUIVALENCE oNegation of the negation of a statement is logically equivalent to the statement. o ∼(∼p) ≡ p
  • 14. LOGICAL EQUIVALENCE o∼(p ∧ q) and ∼p ∧ ∼q are not logically equivalent p =“0 < 1” and let q =“1 < 0.”
  • 16. EQUIVALENCE LAWS • Identity laws, P  T  P, • Domination laws, P  F  F, • Idempotent laws, P  P  P, • Double negation law,  ( P)  P • Commutative laws, P  Q  Q  P, • Associative laws, P  (Q  R) (P  Q)  R, • Distributive laws, P  (Q  R) (P  Q)  (P  R) • De Morgan’s laws,  (PQ)  ( P)  ( Q) • Law with implication P  Q   P  Q
  • 17. EXCERCISE •Use Truth Table to prove Distributive law P v ( Q ^ R)  (P v Q) ^ (P v R) •Show that P  Q   P  Q: by truth table •Show that (P  Q)  (P  R)  P  (Q  R) • Calculate truth Table for P v ~Q  P ((~(P ^ Q) v R)  ~P )
  • 18. DE MORGAN’S LAWS oThe negation of the conjunction of two statements is logically equivalent to the disjunction of their negations. o ∼(p ∧ q) and ∼p ∨ ∼q are logically equivalent i.e. ∼(p ∧ q) ≡ ∼p ∨ ∼q
  • 19. DE MORGAN’S LAWS oNegation of the disjunction of two statements is logically equivalent to the conjunction of their negations: ∼(p v q) ≡ ∼p ∧ ∼q qpqp qpqp   )( )(
  • 20. DE MORGAN’S LAWS oWrite negations for each of the following statements: o John is 6 feet tall and he weighs at least 200 pounds. o The bus was late or Tom’s watch was slow. o Negation of these statements o John is not 6 feet tall or he weighs less than 200 pounds. o The bus was not late and Tom’s watch was not slow(/“Neither was the bus late nor was Tom’s watch slow.”)
  • 21. DE MORGAN’S LAWS o Negation of a disjunction is formed by taking the conjunction of the negations of the component propositions. o Negation of a conjunction is formed by taking the disjunction of the negations of the component propositions.
  • 22. DE MORGAN’S LAWS o Frequently used in writing computer programs. o For instance, suppose you want your program to delete all files modified outside a certain range of dates, say from date 1 through date 2 inclusive. o ∼(date1 ≤ file_modification_date ≤ date2) o is equivalent to o ( file_modification_date < date1) or (date2 < file_modification_date).

Editor's Notes

  1. *that is, a sentence that declares a fact
  2. *that is, a sentence that declares a fact
  3. *that is, a sentence that declares a fact
  4. *that is, a sentence that declares a fact