SlideShare ist ein Scribd-Unternehmen logo
1 von 13
SUBTOPIC 1             :       PROPOSITIONS AND LOGICAL OPERATIONS.



1.1    Propositional Logic.



Definition

       A proposition is a declarative sentence that is either TRUE or FALSE, but NOT BOTH.
For the example of declarative sentence that are not propositions:

               Zulhelmy will not win the Thomas cup this year.
               X+1=3

For the example of declarative sentence that are not propositions:

               Kuala Lumpur is a capital of Malaysia.
               2+2=4


Notation

We use letters to denote propositional variables (or statement variables) that is , variables
that represent propositions , just as a letters are use to denote numerical variables. The
conventional letters used to denote numerical variable. The conventional letters used for
propositional variables are p , q , r , s ,….. The area of logic that deals with propositions is
called propositional calculus or propositional logic.




       Logic is more precise than natural language. The study of the principles of reasoning,
especially of the structure of propositions as distinguished from their content and of method and
validity in deductive reasoning.




                                                                                                   1
Examples       :

   -   You may have a chiken rice or spagethi ( vague )
               Can I have a both?
   -   If you buy this karipap in advance, its cheaper.
               Are there not cheap last minute karipap?

       For the reason, logic is used for hardware and software specification such as given a set
logic statement and one can decide whether or not they are satisfiable, although this is a costly
process.



  By George Boole, born on November 2 , 1815 in Lincoln , England. Died on December 8,
  1864 in Ballintemple, Ireland at 49 years old.

  In 1854, George Boole established the rules of symbolic logic in his book , The Laws Of
  Though.




  USE OF LOGIC GATES

  Logic gates are the building block of digital electronics. They are formed by the
  combination of transistors to make digital operations possible.

  Every digital product like a computer, mobile phones, calculator even digital watch contains
  logic gates. That’s mean, the logic gates are very important in the electric and electronics to
  know the solution of every components.




                                                                                                    2
Propositional Logic – Negation is another propositions. Let p be a proposition. The
compound proposition is “it is not the case that p”. It called the negation of p and the denoted of
⌐p. The truth value of the negation of p is the opposite of the truth value of p. The proposition ⌐p
is also can say as “not p”.




       Example:

                 Discrete mathematics is Hasrul’s favorite subject. ( p )
                 Discrete mathematics is NOT Hasrul’s favorite subject. ( ⌐p )

Truth the table for negation       :

          p                ⌐p                              p                ⌐p
          True             False                 or        T                F
           False           True                            F                T


                 Table A                                       Table B

       The truth table presents the relations between the truth values of many propositions
involved in a compound proposition. This table has a row for each possible truth value of
propositions.

       Logical operators are more interesting statements can be created through the combination
of two propositions using logical operators. Operators use to combine propositions and the result
of connecting two propositions is another proposition. The common logical are AND (˄),OR
(˄ and NOT OR (⊕).
  )




                                                                                                  3
Propositional Logic – Conjunction is a compound proposition that has components
joined by the word and or its symbol and is true only if both or all the components are true. Let p
and q be propositions. The compound proposition “p and q“ or we can say that “p ˄ q”, is true
when both p and q are true and false otherwise. For the example in a sentence are:

               Faiz is a singer (p) and dancer (q).

Truth the table for conjunction:


                 p             q              p˄q
                 T             T              T
                 T             F              F
                 F             T              F
                 F             F              F



       Propositional Logic – Disjunction is a proposition that presents two or more alternative
terms, with the assertion that only one is true. Let p and q be propositions. The compound
proposition “p or q“ or “p ˄ q“, is false when both p and q are false and true otherwise. The
compound proposition “p ˄ q“ is called disjunction of p and q.

        For the example in a sentence are:

               Faiz is a singer (p) or dancer (q).

Truth the table for disjunction:


                 p             Q              p˄q
                 T             T              T
                 T             F              T
                 F             T              T
                 F             F              F




                                                                                                 4
Propositional Logic – Exclusive Disjunction is a Logic the connective that gives the
value true to a disjunction if one or other, but not both, of the disjunction are true. Let p and q be
proposition. The compound proposition “p exclusive or q“, denoted “p ⊕ q“, is true when
exactly one of p and q is true and is false otherwise. This compound proposition “p ⊕ q“ is
called exclusive disjunction of p and q.

       For the example in a sentence are:

               You can have a PS2 (p) or PSP (q).




Truth the table for the exclusive disjunction:


                 p              q                p⊕q
                 T              T                F
                 T              F                T
                 F              T                T
                 F              F                F




                                                                                                    5
EXERCISE:




    1. Write the truth table of each proposition
            a) p ˄ ⌐q
            b) (p ˄ q) ˄ ⌐p




    2. Formulate the symbolic expression in words using.

                                  p:     you play football

                                  q:     you miss the midterm exam

                                  r:     you pass the course

            a) p ˄ q
            b) ⌐ (p ˄ q) ˄ r




                                                                     6
SUBTOPIC 2               :     CONDITIONAL STATEMENT

       2.1     CONDITIONAL



       Propositional Logic – Implication mean that the operator that forms a sentence from two
given sentences and corresponds to the English if … then … Let p and q be propositions. The
compound proposition “if p then q“, denoted “p → q“, is false when p is true and q is false, and
is true otherwise. This compound proposition p → q is called the implication (or the conditional
statement) of p and q.

       In this implication, p is called hypothesis ( or antecedent or premise ) and q is called the
conclusion ( or consequence ).




               Example:

               If muzzamer is the agent of Herbalife (p), then he used the product (q).
               If p, then 2 + 2 = 4.

Truth the table for the implication:


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



     REMARKS:

         -   The implication p → q is false only when p is true then q is false.
         -   The implication p → q is true when p is false whatever the truth value of q.

                                                                                                 7
THE IMPLICATION:

    Variety of terminology is used to express the implication p → q

            If p then q
            p implies q
            q is p
            p only if q
            q when p
            p is sufficient for q
            a sufficient condition for q is p
            q follows from p
            q whenever p



       In natural language, there is a relationship between the hypothesis and the conclusion of
an implication. In mathematical reasoning, we consider conditional statements of a more general
sort that we use in English. The implication

       “if today is Friday , then I pray in the mosque “

Is true every day except Friday, even though I pray in the mosque is false.

       The mathematical concept of a conditional statement is independent of a cause and effect
relationship between hypothesis and conclusion. We only parallel English usage to make it easy
to use and remember.




                                                                                              8
2.2     BICONDITIONAL


       Definition:     let P and Q be two propositions. Then, P ↔ Q is true whenever P and Q
       have the same truth values. The proposition P ↔ Q is called biconditional or equivalence,
       and it is pronounced “P if and only if Q”. When writing, one of frequently uses “iff” as an
       abbreviation for “if and only if”.




The truth table is given above. The following is an example of a biconditional. Let P be the
proposition that “x is even” and Q be the proposition that “x is divisible by 2.” In this case, P ↔
Q expresses the statement “x is even if and only if x is divisible by 2.”

Let

       p : Jamal receives a scholarship

       q : Jamal goes to college.

       The proposition can be written symbolically as p ↔ q. Since the hypothesis q is false,
the conditional proposition is true.

       The converse of the propositions is

       “If Jamal goes to college, then he receives the scholarship”.

This is considered to be true precisely when p and q have the same truth values.




If p and q are propositions, the proposition

                                       p if and only if q

Is called a biconditional proposition and is denoted

                                               p↔q


                                                                                                 9
Truth table for the biconditional:


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



Logical equivalences
Similarly to standard algebra, there are laws to manipulate logical expressions, given as logical
equivalences.
1. Commutative laws                         PVQ≡QVP
                                            PΛQ≡QΛP
2. Associative laws                         (P V Q) V R ≡ P V (Q V R)
                                            (P Λ Q) Λ R ≡ P Λ (Q Λ R)
3. Distributive laws:                       (P V Q) Λ (P V R) ≡ P V (Q Λ R)
                                            (P Λ Q) V (P Λ R) ≡ P Λ (Q V R)
4. Identity                                 PVF≡P
                                            PΛT≡P
5. Complement properties                    P V ¬P ≡ T (excluded middle)
                                            P Λ ¬P ≡ F (contradiction)
6. Double negation                          ¬ (¬P) ≡ P
7. Idem potency (consumption)               PVP≡P
                                            PΛP≡P
8. De Morgan's Laws                         ¬ (P V Q) ≡ ¬P Λ ¬Q
                                            ¬ (P Λ Q) ≡ ¬P V ¬Q
9. Universal bound laws (Domination)        PVT≡T
                                            PΛF≡F
10. Absorption Laws                         P V (P Λ Q) ≡ P
                                            P Λ (P V Q) ≡ P

                                                                                              10
11. Negation of T and F:                   ¬T ≡ F
                                           ¬F ≡ T
For practical purposes, instead of ≡, or ↔, we can use = .Also, sometimes instead of ¬, we will
use the symbol ~.



Example:

Show that [p˄ (p → q)] →q is atautology.

We use ≡ to show that [p˄ (p → q)] →q ≡ T

[p˄ (p → q)] →q

≡ [p˄ (⌐p ˄ q)] →q           Substitution for →

≡ [(p˄ ⌐p) ˄ (p ˄ q)] →q Distributive

≡ [F ˄ (p ˄ q)] →q           Uniqueness

≡ (p ˄ q) →q                 Identity

≡ ⌐ (p ˄ q) ˄ q                     Substitution for →

≡ (⌐p ˄ ⌐q) ˄ q              DeMorgan’s

≡ ⌐p ˄ (⌐q ˄ q)              Associative

≡ ⌐p ˄ T                     Excluded middle

≡T                           Domination

So, Show that [p˄ (p → q)] →q is a tautology (true).




                                                                                            11
2.3     DE MORGAN’S LAW FOR LOGIC

       We will verify the first of De Morgan’s Law

       ⌐ (p ˄ q ≡ ⌐p ˄ ⌐q,
               )                     ⌐ (p ˄ q) ≡ ⌐p ˄ ⌐q

       By writing the truth table for P = ⌐ (p ˄ q) and Q = ⌐p ˄ ⌐q, we can verify that, given
any truth values of p and q, either P or Q are both true or P and true are the both false:


                 p              q             ⌐ (p ˄ q)      ⌐p ˄ ⌐q
                 T              T             F              F
                 T              F             F              F
                 F              T             F              F
                 F              F             T              T
Example:
~ (B Å C) = ~ ((B Λ ~C) V (~B Λ C)) =
Apply De Morgan's Laws
= ~ (B Λ ~C) Λ ~ (~B Λ C) =
Apply De Morgan's laws to each side
= (~B V ~ (~C)) Λ (~ (~B) V ~C) =
Apply double negation
= (~B V C) Λ (B V ~C) =
Apply distributive law
= (~B Λ B) V (~B Λ~C) V (C Λ B) V (C Λ ~C) =
Apply complement properties
= F V (~B Λ~C) V (C Λ B) V F =
Apply identity laws
= (~B Λ~C) V (C Λ B) =
Apply commutative laws
= (C Λ B) V (~B Λ~C) =
Apply commutative laws
= (B Λ C) V (~B Λ~C) = B        C

                                                                                             12
EXERCISE:




  1. Assuming that p and r are false and q are true, find the truth value of each proposition:
         a) p → q
         b) (p → q) ˄ (q → p).




  2. Formulate the symbolic expression in words using:

                              P:    today is Monday

                              q:    it is raining

                              r:    it is hot

         a) ⌐ (p v q)     r




  3. Show that (p ˄ q) → q is a tautology.




  4. Show that ⌐ (p     q) ≡ (p     ⌐q)




                                                                                                 13

Weitere ähnliche Inhalte

Was ist angesagt?

Exercise 1
Exercise 1Exercise 1
Exercise 1Amr Nady
 
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
 
Chapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound StatementsChapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound Statementsguestd166eb5
 
Propositional logic by shawan
Propositional logic by shawanPropositional logic by shawan
Propositional logic by shawanTouhidul Shawan
 
Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)Abdullah Al Amin
 
Truth, deduction, computation lecture 6
Truth, deduction, computation   lecture 6Truth, deduction, computation   lecture 6
Truth, deduction, computation lecture 6Vlad Patryshev
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1blaircomp2003
 
Assignement of discrete mathematics
Assignement of discrete mathematicsAssignement of discrete mathematics
Assignement of discrete mathematicsSyed Umair
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDr. Khaled Bakro
 
Logic and proof
Logic and proofLogic and proof
Logic and proofSuresh Ram
 
Translating English to Propositional Logic
Translating English to Propositional LogicTranslating English to Propositional Logic
Translating English to Propositional LogicJanet Stemwedel
 

Was ist angesagt? (18)

Logic&proof
Logic&proofLogic&proof
Logic&proof
 
Truth table
Truth tableTruth table
Truth table
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
 
Exercise 1
Exercise 1Exercise 1
Exercise 1
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
CMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional EquivalencesCMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional Equivalences
 
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 by shawan
Propositional logic by shawanPropositional logic by shawan
Propositional logic by shawan
 
Formal Logic - Lesson 5 - Logical Equivalence
Formal Logic - Lesson 5 - Logical EquivalenceFormal Logic - Lesson 5 - Logical Equivalence
Formal Logic - Lesson 5 - Logical Equivalence
 
Discrete math Truth Table
Discrete math Truth TableDiscrete math Truth Table
Discrete math Truth Table
 
Truth table
Truth tableTruth table
Truth table
 
Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)
 
Truth, deduction, computation lecture 6
Truth, deduction, computation   lecture 6Truth, deduction, computation   lecture 6
Truth, deduction, computation lecture 6
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
 
Assignement of discrete mathematics
Assignement of discrete mathematicsAssignement of discrete mathematics
Assignement of discrete mathematics
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
 
Translating English to Propositional Logic
Translating English to Propositional LogicTranslating English to Propositional Logic
Translating English to Propositional Logic
 

Ähnlich wie Chapter 1

Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxPriyalMayurManvar
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptNandiniSR2
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdfsmarwaneid
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptxRavind8
 
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
 
Discrete-Chapter 04 Logic Part I
Discrete-Chapter 04 Logic Part IDiscrete-Chapter 04 Logic Part I
Discrete-Chapter 04 Logic Part IWongyos Keardsri
 
S2 1
S2 1S2 1
S2 1IIUM
 
desmath(1).ppt
desmath(1).pptdesmath(1).ppt
desmath(1).pptMemMem25
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdfPradeeshSAI
 
6-Math-Logic.pptx Math logic general mathematics
6-Math-Logic.pptx Math logic general mathematics6-Math-Logic.pptx Math logic general mathematics
6-Math-Logic.pptx Math logic general mathematicsMJ Barroga
 

Ähnlich wie Chapter 1 (20)

Slide subtopic 1
Slide subtopic 1Slide subtopic 1
Slide subtopic 1
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptx
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.ppt
 
L01.ppt
L01.pptL01.ppt
L01.ppt
 
Slide subtopic 2
Slide subtopic 2Slide subtopic 2
Slide subtopic 2
 
Slide subtopic 2
Slide subtopic 2Slide subtopic 2
Slide subtopic 2
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
Logic2.pptx
Logic2.pptxLogic2.pptx
Logic2.pptx
 
Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptx
 
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]
 
dm-logic.pdf
dm-logic.pdfdm-logic.pdf
dm-logic.pdf
 
Discrete-Chapter 04 Logic Part I
Discrete-Chapter 04 Logic Part IDiscrete-Chapter 04 Logic Part I
Discrete-Chapter 04 Logic Part I
 
S2 1
S2 1S2 1
S2 1
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
 
desmath(1).ppt
desmath(1).pptdesmath(1).ppt
desmath(1).ppt
 
Bab 1 proposisi
Bab 1 proposisiBab 1 proposisi
Bab 1 proposisi
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
 
6-Math-Logic.pptx Math logic general mathematics
6-Math-Logic.pptx Math logic general mathematics6-Math-Logic.pptx Math logic general mathematics
6-Math-Logic.pptx Math logic general mathematics
 
Chapter1p1 2.pptx
Chapter1p1 2.pptxChapter1p1 2.pptx
Chapter1p1 2.pptx
 

Mehr von Eli Lilly and Company (17)

Slide subtopic 3
Slide subtopic 3Slide subtopic 3
Slide subtopic 3
 
Slide subtopic 4
Slide subtopic 4Slide subtopic 4
Slide subtopic 4
 
Slide subtopic 5
Slide subtopic 5Slide subtopic 5
Slide subtopic 5
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Akses dan ekuiti
Akses dan ekuitiAkses dan ekuiti
Akses dan ekuiti
 
Isu profesional guru dalam pengajaran matematik
Isu profesional guru dalam pengajaran matematikIsu profesional guru dalam pengajaran matematik
Isu profesional guru dalam pengajaran matematik
 
kurikulum dan kelainan upaya
kurikulum dan kelainan upayakurikulum dan kelainan upaya
kurikulum dan kelainan upaya
 
jantina dan bangsa
jantina dan bangsajantina dan bangsa
jantina dan bangsa
 
jantina dan bangsa
jantina dan bangsajantina dan bangsa
jantina dan bangsa
 
Jantina dan bangsa
Jantina dan bangsaJantina dan bangsa
Jantina dan bangsa
 
ISU JANTINA
ISU JANTINAISU JANTINA
ISU JANTINA
 
Qayyum
QayyumQayyum
Qayyum
 
Trend kurikulum
Trend kurikulumTrend kurikulum
Trend kurikulum
 
Isu profesional guru dalam pengajaran matematik
Isu profesional guru dalam pengajaran matematikIsu profesional guru dalam pengajaran matematik
Isu profesional guru dalam pengajaran matematik
 

Kürzlich hochgeladen

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
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
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 

Kürzlich hochgeladen (20)

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"
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
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
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
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...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 

Chapter 1

  • 1. SUBTOPIC 1 : PROPOSITIONS AND LOGICAL OPERATIONS. 1.1 Propositional Logic. Definition A proposition is a declarative sentence that is either TRUE or FALSE, but NOT BOTH. For the example of declarative sentence that are not propositions: Zulhelmy will not win the Thomas cup this year. X+1=3 For the example of declarative sentence that are not propositions: Kuala Lumpur is a capital of Malaysia. 2+2=4 Notation We use letters to denote propositional variables (or statement variables) that is , variables that represent propositions , just as a letters are use to denote numerical variables. The conventional letters used to denote numerical variable. The conventional letters used for propositional variables are p , q , r , s ,….. The area of logic that deals with propositions is called propositional calculus or propositional logic. Logic is more precise than natural language. The study of the principles of reasoning, especially of the structure of propositions as distinguished from their content and of method and validity in deductive reasoning. 1
  • 2. Examples : - You may have a chiken rice or spagethi ( vague ) Can I have a both? - If you buy this karipap in advance, its cheaper. Are there not cheap last minute karipap? For the reason, logic is used for hardware and software specification such as given a set logic statement and one can decide whether or not they are satisfiable, although this is a costly process. By George Boole, born on November 2 , 1815 in Lincoln , England. Died on December 8, 1864 in Ballintemple, Ireland at 49 years old. In 1854, George Boole established the rules of symbolic logic in his book , The Laws Of Though. USE OF LOGIC GATES Logic gates are the building block of digital electronics. They are formed by the combination of transistors to make digital operations possible. Every digital product like a computer, mobile phones, calculator even digital watch contains logic gates. That’s mean, the logic gates are very important in the electric and electronics to know the solution of every components. 2
  • 3. Propositional Logic – Negation is another propositions. Let p be a proposition. The compound proposition is “it is not the case that p”. It called the negation of p and the denoted of ⌐p. The truth value of the negation of p is the opposite of the truth value of p. The proposition ⌐p is also can say as “not p”. Example: Discrete mathematics is Hasrul’s favorite subject. ( p ) Discrete mathematics is NOT Hasrul’s favorite subject. ( ⌐p ) Truth the table for negation : p ⌐p p ⌐p True False or T F False True F T Table A Table B The truth table presents the relations between the truth values of many propositions involved in a compound proposition. This table has a row for each possible truth value of propositions. Logical operators are more interesting statements can be created through the combination of two propositions using logical operators. Operators use to combine propositions and the result of connecting two propositions is another proposition. The common logical are AND (˄),OR (˄ and NOT OR (⊕). ) 3
  • 4. Propositional Logic – Conjunction is a compound proposition that has components joined by the word and or its symbol and is true only if both or all the components are true. Let p and q be propositions. The compound proposition “p and q“ or we can say that “p ˄ q”, is true when both p and q are true and false otherwise. For the example in a sentence are: Faiz is a singer (p) and dancer (q). Truth the table for conjunction: p q p˄q T T T T F F F T F F F F Propositional Logic – Disjunction is a proposition that presents two or more alternative terms, with the assertion that only one is true. Let p and q be propositions. The compound proposition “p or q“ or “p ˄ q“, is false when both p and q are false and true otherwise. The compound proposition “p ˄ q“ is called disjunction of p and q. For the example in a sentence are: Faiz is a singer (p) or dancer (q). Truth the table for disjunction: p Q p˄q T T T T F T F T T F F F 4
  • 5. Propositional Logic – Exclusive Disjunction is a Logic the connective that gives the value true to a disjunction if one or other, but not both, of the disjunction are true. Let p and q be proposition. The compound proposition “p exclusive or q“, denoted “p ⊕ q“, is true when exactly one of p and q is true and is false otherwise. This compound proposition “p ⊕ q“ is called exclusive disjunction of p and q. For the example in a sentence are: You can have a PS2 (p) or PSP (q). Truth the table for the exclusive disjunction: p q p⊕q T T F T F T F T T F F F 5
  • 6. EXERCISE: 1. Write the truth table of each proposition a) p ˄ ⌐q b) (p ˄ q) ˄ ⌐p 2. Formulate the symbolic expression in words using. p: you play football q: you miss the midterm exam r: you pass the course a) p ˄ q b) ⌐ (p ˄ q) ˄ r 6
  • 7. SUBTOPIC 2 : CONDITIONAL STATEMENT 2.1 CONDITIONAL Propositional Logic – Implication mean that the operator that forms a sentence from two given sentences and corresponds to the English if … then … Let p and q be propositions. The compound proposition “if p then q“, denoted “p → q“, is false when p is true and q is false, and is true otherwise. This compound proposition p → q is called the implication (or the conditional statement) of p and q. In this implication, p is called hypothesis ( or antecedent or premise ) and q is called the conclusion ( or consequence ). Example: If muzzamer is the agent of Herbalife (p), then he used the product (q). If p, then 2 + 2 = 4. Truth the table for the implication: p q p→q T T T T F F F T T F F T REMARKS: - The implication p → q is false only when p is true then q is false. - The implication p → q is true when p is false whatever the truth value of q. 7
  • 8. THE IMPLICATION: Variety of terminology is used to express the implication p → q If p then q p implies q q is p p only if q q when p p is sufficient for q a sufficient condition for q is p q follows from p q whenever p In natural language, there is a relationship between the hypothesis and the conclusion of an implication. In mathematical reasoning, we consider conditional statements of a more general sort that we use in English. The implication “if today is Friday , then I pray in the mosque “ Is true every day except Friday, even though I pray in the mosque is false. The mathematical concept of a conditional statement is independent of a cause and effect relationship between hypothesis and conclusion. We only parallel English usage to make it easy to use and remember. 8
  • 9. 2.2 BICONDITIONAL Definition: let P and Q be two propositions. Then, P ↔ Q is true whenever P and Q have the same truth values. The proposition P ↔ Q is called biconditional or equivalence, and it is pronounced “P if and only if Q”. When writing, one of frequently uses “iff” as an abbreviation for “if and only if”. The truth table is given above. The following is an example of a biconditional. Let P be the proposition that “x is even” and Q be the proposition that “x is divisible by 2.” In this case, P ↔ Q expresses the statement “x is even if and only if x is divisible by 2.” Let p : Jamal receives a scholarship q : Jamal goes to college. The proposition can be written symbolically as p ↔ q. Since the hypothesis q is false, the conditional proposition is true. The converse of the propositions is “If Jamal goes to college, then he receives the scholarship”. This is considered to be true precisely when p and q have the same truth values. If p and q are propositions, the proposition p if and only if q Is called a biconditional proposition and is denoted p↔q 9
  • 10. Truth table for the biconditional: p q p↔q T T T T F F F T F F F T Logical equivalences Similarly to standard algebra, there are laws to manipulate logical expressions, given as logical equivalences. 1. Commutative laws PVQ≡QVP PΛQ≡QΛP 2. Associative laws (P V Q) V R ≡ P V (Q V R) (P Λ Q) Λ R ≡ P Λ (Q Λ R) 3. Distributive laws: (P V Q) Λ (P V R) ≡ P V (Q Λ R) (P Λ Q) V (P Λ R) ≡ P Λ (Q V R) 4. Identity PVF≡P PΛT≡P 5. Complement properties P V ¬P ≡ T (excluded middle) P Λ ¬P ≡ F (contradiction) 6. Double negation ¬ (¬P) ≡ P 7. Idem potency (consumption) PVP≡P PΛP≡P 8. De Morgan's Laws ¬ (P V Q) ≡ ¬P Λ ¬Q ¬ (P Λ Q) ≡ ¬P V ¬Q 9. Universal bound laws (Domination) PVT≡T PΛF≡F 10. Absorption Laws P V (P Λ Q) ≡ P P Λ (P V Q) ≡ P 10
  • 11. 11. Negation of T and F: ¬T ≡ F ¬F ≡ T For practical purposes, instead of ≡, or ↔, we can use = .Also, sometimes instead of ¬, we will use the symbol ~. Example: Show that [p˄ (p → q)] →q is atautology. We use ≡ to show that [p˄ (p → q)] →q ≡ T [p˄ (p → q)] →q ≡ [p˄ (⌐p ˄ q)] →q Substitution for → ≡ [(p˄ ⌐p) ˄ (p ˄ q)] →q Distributive ≡ [F ˄ (p ˄ q)] →q Uniqueness ≡ (p ˄ q) →q Identity ≡ ⌐ (p ˄ q) ˄ q Substitution for → ≡ (⌐p ˄ ⌐q) ˄ q DeMorgan’s ≡ ⌐p ˄ (⌐q ˄ q) Associative ≡ ⌐p ˄ T Excluded middle ≡T Domination So, Show that [p˄ (p → q)] →q is a tautology (true). 11
  • 12. 2.3 DE MORGAN’S LAW FOR LOGIC We will verify the first of De Morgan’s Law ⌐ (p ˄ q ≡ ⌐p ˄ ⌐q, ) ⌐ (p ˄ q) ≡ ⌐p ˄ ⌐q By writing the truth table for P = ⌐ (p ˄ q) and Q = ⌐p ˄ ⌐q, we can verify that, given any truth values of p and q, either P or Q are both true or P and true are the both false: p q ⌐ (p ˄ q) ⌐p ˄ ⌐q T T F F T F F F F T F F F F T T Example: ~ (B Å C) = ~ ((B Λ ~C) V (~B Λ C)) = Apply De Morgan's Laws = ~ (B Λ ~C) Λ ~ (~B Λ C) = Apply De Morgan's laws to each side = (~B V ~ (~C)) Λ (~ (~B) V ~C) = Apply double negation = (~B V C) Λ (B V ~C) = Apply distributive law = (~B Λ B) V (~B Λ~C) V (C Λ B) V (C Λ ~C) = Apply complement properties = F V (~B Λ~C) V (C Λ B) V F = Apply identity laws = (~B Λ~C) V (C Λ B) = Apply commutative laws = (C Λ B) V (~B Λ~C) = Apply commutative laws = (B Λ C) V (~B Λ~C) = B C 12
  • 13. EXERCISE: 1. Assuming that p and r are false and q are true, find the truth value of each proposition: a) p → q b) (p → q) ˄ (q → p). 2. Formulate the symbolic expression in words using: P: today is Monday q: it is raining r: it is hot a) ⌐ (p v q) r 3. Show that (p ˄ q) → q is a tautology. 4. Show that ⌐ (p q) ≡ (p ⌐q) 13