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 Structures
    GE-167
    Progress0 / 67 topics
    Topics
    1. Mathematical Reasoning: Propositional and Predicate Logic2. Propositional Logic: Logical Operators3. Translations Between Symbolic Expressions and Formal English Expression4. Logical Equivalences5. Predicate Logic: Quantifiers6. Nested Quantification7. Equivalences in Predicate Logic8. Translations Between Symbolic Forms and Formal English9. Rules of Inference: Proof Methods and Strategies10. Direct Proof11. Proof by Contraposition12. Proof by Induction13. Proof by Implication14. Existence Proof15. Uniqueness Proofs16. Trivial Proofs17. Vacuous Proofs18. Sets: Notations and Set Operations19. Venn Diagrams20. Countable and Uncountable Sets21. Relations: Equivalence Relations and Partitions22. Partial Orderings23. Recurrence Relations24. Functions: Injective, Surjective, Bijective25. Special Types of Functions26. Function Composition27. Inverse Functions28. Recursive Functions29. Compositions30. Number Theory: Sequences and Series31. Counting: Inclusion and Exclusion Principle32. Pigeonhole Principle33. Permutations and Combinations34. Integers and Divisibility: Division Theorem35. Modular Arithmetic36. LCM and GCD37. Euclidean and Extended Euclidean Method38. Finding Solutions to Congruence39. Primes: Fundamental Theorem of Arithmetic40. Characterizations of Primes41. Mersenne Primes42. Induction: Weak Induction43. Strong Induction44. Recursion and Recurrences: Formulation of Recurrences45. Closed Formulas46. Counting: Product Rule and Sum Rule47. Principle of Inclusion-Exclusion48. Binomial Coefficients49. Pascal's Identity and Pascal’s Triangle50. Binomial Theorem51. Relations: Reflexive, Symmetric, Transitive, and Antisymmetric52. Equivalence Relations and Equivalence Classes53. Partial Orders54. Graph Theory: Terminologies55. Elements of Graph Theory56. Planar Graphs57. Graph Coloring58. Euler Graph59. Hamiltonian Path60. Rooted Trees61. Graph Traversals62. Handshaking Lemma and Corollary63. Special Families of Graphs64. Graph Isomorphism65. Planarity in Graphs66. Eulerian and Hamiltonian Graphs67. Trees in Graph Theory
    GE-167›Propositional Logic: Logical Operators
    Discrete StructuresTopic 2 of 67

    Propositional Logic: Logical Operators

    7 minread
    1,132words
    Intermediatelevel

    Propositional Logic: Logical Operators

    Propositional Logic (also known as sentential logic) deals with propositions, which are declarative statements that are either true or false. These propositions can be combined using logical operators (also called connectives) to form more complex expressions. The logical operators allow us to express logical relationships between propositions.

    Here are the main logical operators used in propositional logic:


    1. Negation (¬ or ~)

    • Symbol: ¬p\neg p¬p or ∼p\sim p∼p
    • Meaning: The negation of a proposition ppp simply reverses its truth value. If ppp is true, then ¬p\neg p¬p (or ∼p\sim p∼p) is false, and vice versa.
    • Example:
      • ppp: "The sky is blue" (True)
      • ¬p\neg p¬p: "The sky is not blue" (False)

    Truth Table:

    ppp ¬p\neg p¬p
    T F
    F T

    2. Conjunction (AND)

    • Symbol: p∧qp \land qp∧q
    • Meaning: The conjunction (AND) of two propositions ppp and qqq is true only when both ppp and qqq are true. Otherwise, it is false.
    • Example:
      • ppp: "It is raining"
      • qqq: "It is cold"
      • p∧qp \land qp∧q: "It is raining and it is cold" (True only if both conditions are true)

    Truth Table:

    ppp qqq p∧qp \land qp∧q
    T T T
    T F F
    F T F
    F F F

    3. Disjunction (OR)

    • Symbol: p∨qp \lor qp∨q
    • Meaning: The disjunction (OR) of two propositions ppp and qqq is true if at least one of ppp or qqq is true. It is false only when both ppp and qqq are false.
    • Example:
      • ppp: "It is raining"
      • qqq: "It is snowing"
      • p∨qp \lor qp∨q: "It is raining or it is snowing" (True if at least one is true)

    Truth Table:

    ppp qqq p∨qp \lor qp∨q
    T T T
    T F T
    F T T
    F F F

    4. Implication (IF-THEN)

    • Symbol: p→qp \to qp→q
    • Meaning: The implication (IF-THEN) states that if proposition ppp is true, then proposition qqq must also be true for the entire implication to be true. However, if ppp is false, the implication p→qp \to qp→q is always true regardless of the truth value of qqq.
    • Example:
      • ppp: "It is raining"
      • qqq: "The ground is wet"
      • p→qp \to qp→q: "If it is raining, then the ground is wet" (True unless it is raining but the ground is not wet)

    Truth Table:

    ppp qqq p→qp \to qp→q
    T T T
    T F F
    F T T
    F F T

    Important Note: The only time an implication is false is when ppp is true and qqq is false.


    5. Biconditional (IF AND ONLY IF)

    • Symbol: p↔qp \leftrightarrow qp↔q
    • Meaning: The biconditional (IF AND ONLY IF) is true if and only if both ppp and qqq have the same truth value. That is, both must either be true or both false.
    • Example:
      • ppp: "It is raining"
      • qqq: "The ground is wet"
      • p↔qp \leftrightarrow qp↔q: "It is raining if and only if the ground is wet" (True if both are true or both are false)

    Truth Table:

    ppp qqq p↔qp \leftrightarrow qp↔q
    T T T
    T F F
    F T F
    F F T

    6. Exclusive OR (XOR)

    • Symbol: p⊕qp \oplus qp⊕q
    • Meaning: The exclusive OR (XOR) of two propositions ppp and qqq is true when exactly one of ppp or qqq is true, but not both. It is false when both are true or both are false.
    • Example:
      • ppp: "You can have tea"
      • qqq: "You can have coffee"
      • p⊕qp \oplus qp⊕q: "You can have either tea or coffee, but not both"

    Truth Table:

    ppp qqq p⊕qp \oplus qp⊕q
    T T F
    T F T
    F T T
    F F F

    Summary of Logical Operators:

    Operator Symbol Meaning Truth Table Behavior
    Negation ¬p\neg p¬p Reverses the truth value of ppp True becomes False, and False becomes True
    Conjunction p∧qp \land qp∧q ppp AND qqq; True if both are true Only true when both ppp and qqq are true
    Disjunction p∨qp \lor qp∨q ppp OR qqq; True if at least one is true False only when both ppp and qqq are false
    Implication p→qp \to qp→q IF ppp, THEN qqq True unless ppp is true and qqq is false
    Biconditional p↔qp \leftrightarrow qp↔q ppp IF AND ONLY IF qqq True if both ppp and qqq are the same (both true or both false)
    Exclusive OR p⊕qp \oplus qp⊕q ppp XOR qqq; True if exactly one is true True if exactly one of ppp or qqq is true

    Applications of Logical Operators:

    • Logical operators are widely used in fields like computer science (for Boolean algebra and circuit design), mathematical proofs, and programming (e.g., conditional statements in code).
    • Understanding these operators is essential for formulating correct logical arguments, creating algorithms, and analyzing digital systems.

    By understanding how to use and combine these logical operators, you can express complex logical relationships and reason about propositions and their truth values systematically.

    Previous topic 1
    Mathematical Reasoning: Propositional and Predicate Logic
    Next topic 3
    Translations Between Symbolic Expressions and Formal English Expression

    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 time7 min
      Word count1,132
      Code examples0
      DifficultyIntermediate