ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Discrete Mathematics
    MATH2113
    Progress0 / 25 topics
    Topics
    1. Mathematical Reasoning: Sets, Subsets, Algebra of Sets2. Propositions and Compound Statements3. Basic Logical Operations4. Propositional Logic and its Applications with Statement Problems5. Propositions and Truth Tables6. Tautologies and Contradictions7. Conditional and Bi-conditional Statements8. Arguments in Propositional Logic9. Propositional Functions10. Quantifiers and Negation of Quantified Statements11. Relations and Equivalence Relations12. Partial Ordering Relations13. Functions and Recursively Defined Functions14. Combinatorics: Basics of Counting Methods15. Combinations and Permutations16. Pigeonhole Principle17. Graphs and its Types18. Graph Isomorphism19. Trees in Graph Theory20. Connectivity in Graphs21. Eulerian and Hamiltonian Paths22. Spanning Trees and Shortest Path Problem23. Revisiting Special Functions: Power, Floor, Increasing, Decreasing24. Big O, Little O and Omega Notations25. Orders of the Polynomial Functions
    MATH2113›Propositional Logic and its Applications with Statement Problems
    Discrete MathematicsTopic 4 of 25

    Propositional Logic and its Applications with Statement Problems

    5 minread
    795words
    Beginnerlevel

    Propositional Logic and its Applications with Statement Problems


    1. Propositional Logic

    Propositional logic is the branch of logic that deals with propositions and logical connectives. It focuses on forming compound statements and analyzing their truth values using formal logic.

    A propositional variable (like p,q,rp, q, rp,q,r) represents a statement that can be either true (T) or false (F). Logical operators (such as ¬,∧,∨,→,↔\neg, \land, \lor, \to, \leftrightarrow¬,∧,∨,→,↔) are used to build compound propositions.


    2. Applications of Propositional Logic

    a) Mathematical Proofs

    Used to verify the validity of mathematical arguments by translating them into logical forms.

    b) Digital Circuit Design

    Each logic gate in a circuit (AND, OR, NOT, etc.) corresponds to a logical operation.

    c) Programming Conditions

    Conditional statements in programming (like if, else) rely on evaluating logical expressions.

    d) Artificial Intelligence and Algorithms

    Decision-making systems and rule-based engines use propositional logic to reason about knowledge.

    e) Database Queries and Filtering

    Logical expressions are used to extract information from databases based on certain conditions.


    3. Translating English Statements into Propositional Logic

    Each part of a sentence is treated as a proposition and assigned a symbol. Logical connectives represent how these parts are related.

    Example 1:

    Statement: "If it is raining, then the ground is wet."

    Let
    ppp: "It is raining"
    qqq: "The ground is wet"

    Translation: p→qp \to qp→q


    Example 2:

    Statement: "You can have dessert if and only if you finish your dinner."

    Let
    ppp: "You can have dessert"
    qqq: "You finish your dinner"

    Translation: p↔qp \leftrightarrow qp↔q


    Example 3:

    Statement: "He studies and he passes the test."

    Let
    ppp: "He studies"
    qqq: "He passes the test"

    Translation: p∧qp \land qp∧q


    Example 4:

    Statement: "You will pass unless you skip the exam."

    Let
    ppp: "You pass"
    qqq: "You skip the exam"

    "Unless" means "if not", so it becomes: "If you do not skip the exam, then you will pass."
    Translation: ¬q→p\neg q \to p¬q→p


    4. Solving Statement Problems

    Problem 1:

    Statement: "If the alarm is set, then the house is protected."

    Let
    ppp: "The alarm is set"
    qqq: "The house is protected"

    Form: p→qp \to qp→q


    Problem 2:

    Statement: "The train is late or the traffic is heavy, but not both."

    Let
    ppp: "The train is late"
    qqq: "The traffic is heavy"

    This is an exclusive OR: p⊕qp \oplus qp⊕q


    Problem 3:

    Statement: "Either you wake up early or you miss the bus."

    Let
    ppp: "You wake up early"
    qqq: "You miss the bus"

    Translation: p∨qp \lor qp∨q

    If the meaning is "If you do not wake up early, then you miss the bus", then:
    Translation: ¬p→q\neg p \to q¬p→q


    Problem 4:

    Statement: "You will not graduate if you fail the final exam."

    Let
    ppp: "You fail the final exam"
    qqq: "You graduate"

    Translation: p→¬qp \to \neg qp→¬q


    5. Evaluating Compound Statements

    Using truth tables or logical equivalences, complex statements can be simplified or verified for validity.

    Example:

    Evaluate (p∨¬q)→r(p \lor \neg q) \to r(p∨¬q)→r

    Create a truth table by listing all possible truth values for p,q,rp, q, rp,q,r, and compute the final result based on the logic.


    6. Logical Equivalence in Applications

    Logical equivalences allow rewriting complex expressions into simpler or more useful forms.
    Common equivalences:

    • p→q≡¬p∨qp \to q \equiv \neg p \lor qp→q≡¬p∨q
    • ¬(p∧q)≡¬p∨¬q\neg(p \land q) \equiv \neg p \lor \neg q¬(p∧q)≡¬p∨¬q
    • ¬(p∨q)≡¬p∧¬q\neg(p \lor q) \equiv \neg p \land \neg q¬(p∨q)≡¬p∧¬q

    Previous topic 3
    Basic Logical Operations
    Next topic 5
    Propositions and Truth Tables

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time5 min
      Word count795
      Code examples0
      DifficultyBeginner