ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalGE-167Propositional Logic Lo…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    GE-167

    Discrete Structures

    Progress0 / 67 done
    Topics67
    1Propositional and Predicate Logic
    2Logical Operators3Translations Between Symbolic Expressions and Formal English Expression4Logical Equivalences
    5Quantifiers6Nested Quantification7Equivalences in Predicate Logic8Translations Between Symbolic Forms and Formal English
    9Proof Methods and Strategies10Direct Proof11Proof by Contraposition12Proof by Induction13Proof by Implication14Existence Proof15Uniqueness Proofs16Trivial Proofs17Vacuous Proofs
    18Notations and Set Operations19Venn Diagrams20Countable and Uncountable Sets
    21Equivalence Relations and Partitions22Partial Orderings23Recurrence Relations51Reflexive, Symmetric, Transitive, and Antisymmetric52Equivalence Relations and Equivalence Classes53Partial Orders
    24Injective, Surjective, Bijective25Special Types of Functions26Function Composition27Inverse Functions28Recursive Functions29Compositions
    30Sequences and Series
    31Inclusion and Exclusion Principle32Pigeonhole Principle33Permutations and Combinations46Product Rule and Sum Rule47Principle of Inclusion-Exclusion48Binomial Coefficients49Pascal's Identity and Pascal’s Triangle50Binomial Theorem
    34Division Theorem35Modular Arithmetic36LCM and GCD37Euclidean and Extended Euclidean Method38Finding Solutions to Congruence
    39Fundamental Theorem of Arithmetic40Characterizations of Primes41Mersenne Primes
    42Weak Induction43Strong Induction
    44Formulation of Recurrences45Closed Formulas
    54Terminologies55Elements of Graph Theory56Planar Graphs57Graph Coloring58Euler Graph59Hamiltonian Path60Rooted Trees61Graph Traversals62Handshaking Lemma and Corollary63Special Families of Graphs64Graph Isomorphism65Planarity in Graphs66Eulerian and Hamiltonian Graphs67Trees in Graph Theory
    7 min read
    Topic 2 of 67
    Topic Study Note Illustration
    02

    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...

    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 view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    7mremaining
    1.1kwords
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Discrete Structures