Propositional Logic Fundamentals

Fundamentals of Propositional Logic

  • Definition of a Proposition:

    • A proposition is a declarative sentence that declares a fact.
    • A proposition must evaluate to either True (TT) or False (FF), but it cannot be both True and False simultaneously.
  • Non-Propositions:

    • Sentences or mathematical expressions that do not express a complete, definite statement of fact with a fixed truth value are not propositions.
    • Examples of non-propositions include:
    • Problem numbers or question prompts (such as 07−42307-423)
    • Equations with free variables whose truth values depend on variable assignments, such as −x+y=3-x + y = 3
    • Commands or imperative requests
  • Propositional Variables:

    • Variables are used to represent specific propositions or facts.
    • Standard lowercase letters are used as propositional variables, primarily pp, qq, rr, and ss
    • Capital letters are not used for simple propositional variables because they are strictly reserved for propositional functions.

Negation of a Proposition

  • Definition and Symbolic Notation:

    • The negation of a proposition pp is denoted symbolically by ¬p\neg p or ∼p\sim p.
    • Negation represents the logical NOT operation.
    • Verbally, ¬p\neg p is stated as "It is not the case that pp".
  • Example 1 (Ronnie and Taco Bell):

    • Define the propositional variable: r=Ronnie likes Taco Bellr = \text{Ronnie likes Taco Bell}
    • The negation ¬r\neg r can be written in either of the following equivalent forms:
    • "It is not the case that Ronnie likes Taco Bell"
    • "Ronnie does not like Taco Bell" (or "Ronnie does not like TB")
  • Example 2 (Thor's Hammer and Double Negation):

    • Statement: "Thor's hammer is not named Mjölain."
    • Define the positive baseline propositional variable: m=Thor’s hammer is named M.m = \text{Thor's hammer is named M.}
    • The given statement corresponds to the negation ¬m\neg m.
    • Evaluating the negation of this statement produces a double negation: ¬(¬m)\neg(\neg m)
    • Double Negation Cancellation Law: A double negation operator cancels out, returning the original proposition:     ¬(¬m)≡m\neg(\neg m) \equiv m

Truth Values and Truth Tables

  • Truth Values:

    • Every proposition evaluates to one of two valid truth values: True (TT) or False (FF).
  • Truth Table for Negation:

    • A truth table outlines the truth values of a logical expression based on input proposition variables.
    • For a proposition pp and its negation ¬p\neg p:
    • When p=Tp = T, ¬p=F\neg p = F
    • When p=Fp = F, ¬p=T\neg p = T

Logical Connectives: Conjunction, Disjunction, and Exclusive OR

  • Conjunction (∧\land):

    • Let pp and qq be propositions.
    • The conjunction of pp and qq is "p and q", denoted symbolically as p∧qp \land q.
    • Conjunction represents the logical AND operation.
    • The compound statement p∧qp \land q is True (TT) if and only if both pp and qq are True (TT).
    • If either pp or qq (or both) is False (FF), then p∧qp \land q is False (FF).
  • Disjunction (∨\lor):

    • Let pp and qq be propositions.
    • The disjunction of pp and qq is "p or q", denoted symbolically as p∨qp \lor q.
    • Disjunction represents the logical OR operation.
    • The compound statement p∨qp \lor q is True (TT) when pp is True (TT), qq is True (TT), or both pp and qq are True (TT).
    • Disjunction is inclusive.
  • Exclusive OR (⊕\oplus / XOR):

    • For propositions pp and qq, the Exclusive OR is abbreviated as XOR or denoted symbolically as p⊕qp \oplus q
    • The statement p⊕qp \oplus q is True (TT) only when exactly one of pp OR qq is True (TT).
    • The statement p⊕qp \oplus q evaluates to False (FF) in all other cases (when both pp and qq are True, or both pp and qq are False).
    • The logical expansion for Exclusive OR using standard connectives is:     (p∨q)∧¬(p∧q)(p \lor q) \land \neg(p \land q)