Week 1 – Logic: Propositions & Logical Equivalence

Propositions
  • Definition: A proposition (statement) is a declarative sentence that is either TRUE (T) or FALSE (F)—never both.

    • A declarative sentence makes a statement, as opposed to asking a question, giving a command, or expressing an exclamation.

    • The key characteristic is that its truth value must be objectively determinable.

  • Truth value: the value (T or F) assigned to the proposition.

  • Variable notation: p,q,r,s,t,p, q, r, s, t, \ldots used as propositional variables, representing atomic propositions.

Examples (True / False)

  • pp : “Two plus four equals six.” → T. (Mathematically verifiable as true).

  • qq : “8 < 5.” → F. (Mathematically verifiable as false).

  • rr : “2 + 3 = 4.” → F. (Mathematically verifiable as false).

Non-Examples (Not Propositions)

  • “It is a prime number.” (The pronoun “It” is unspecified; the truth value cannot be determined without knowing what "It" refers to. It's an open sentence.)

  • “He is a USP student.” (The specific individual referred to by “He” is undefined, rendering the truth value indeterminate.)

  • Open sentences containing variables: y < 6,\; p - 10 = 13. These become propositions only when specific values are assigned to the variables.

  • Commands / questions: “Run !!”, “What is your name?”. These are not declarative sentences and thus do not have truth values.


Compound Propositions & Logical Operators
  • New statements formed by combining existing propositions using logical operators.

  • Operator precedence (high → low):

    1. Parentheses (): Operations within parentheses are evaluated first.

    2. Negation ¬\lnot: Applies to the single proposition immediately following it.

    3. Conjunction \wedge (AND): Evaluated before disjunction.

    4. Disjunction \vee (OR): Evaluated after conjunction.

    • Operators at the same level of precedence are typically evaluated from left to right.

Negation (¬p\lnot p)

  • Meaning: “not pp” / “it is not the case that pp”. It reverses the truth value of a proposition.

  • Truth table:

pp

¬p\lnot p

T

F

F

T

  • Example: pp : “Today is Monday.” → ¬p\lnot p : “Today is not Monday.” If pp is true, then ¬p\lnot p is false; if pp is false, then ¬p\lnot p is true.

Conjunction (pqp \wedge q)

  • Read “pp AND qq”. It is true only when both pp and qq are individually true. Otherwise, it is false.

  • Truth table:

pp

qq

pqp \wedge q

T

T

T

T

F

F

F

T

F

F

F

F

  • Example: rr : “2 is prime”, ss : “2 is even” → rsr \wedge s : “2 is prime and even.” (True, since both rr and ss are true.)

Disjunction (pqp \vee q)

  • Read “pp OR qq” (inclusive OR). This means the disjunction is true if pp is true, or if qq is true, or if both are true.

  • False only when both pp and qq are false.

  • Truth table:

pp

qq

pqp \vee q

T

T

T

T

F

T

F

T

T

F

F

F

  • Example: “Either 2 is prime or 2 is even.” (True, because both sub-statements "2 is prime" and "2 is even" are true.)

Conditional / Implication (pqp \to q)

  • Read “IF pp THEN qq”. This expresses a cause-and-effect or a logical consequence relationship.

  • pp = hypothesis/antecedent (the condition); qq = conclusion/consequent (the result).

  • Truth definition: An implication is FALSE only when the hypothesis (pp) is true and the conclusion (qq) is false. In all other cases, it is TRUE. This is often called the "broken promise" scenario: if you promise pqp \to q, you only break the promise if pp happens but qq doesn't.

  • Truth table:

pp

qq

pqp \to q

T

T

T

T

F

F

F

T

T

F

F

T

  • Equivalent phrasing:

    • pp implies qq.”

    • pp only if qq.” (This means if qq doesn't happen, pp can't happen. Equivalently, if pp happens, qq must happen.)

    • pp is sufficient for qq.” (For qq to occur, pp is enough.)

    • qq is necessary for pp.” (For pp to occur, qq absolutely must occur.)

    • qq whenever pp.”

    • qq even if pp.”

    • qq follows from pp.”

    • “A sufficient condition for qq is pp.”

    • “A necessary condition for pp is qq.”

  • Re-writing practice:

    1. “I go to the beach whenever it is a sunny day.” → If it is a sunny day (pp), then I go to the beach (qq). (pqp \to q)

    2. “You can access the website only if you have paid the subscription fee.” → If you can access the website (pp), then you have paid the subscription fee (qq). (pqp \to q) This means paying is necessary for access.


Converse / Inverse / Contrapositive / Negation

  • For a given conditional statement pqp \to q:

    • Original Statement: pqp \to q

    • Converse: qpq \to p. Swaps the hypothesis and conclusion.

    • Inverse: ¬p¬q\lnot p \to \lnot q. Negates both the hypothesis and conclusion.

    • Contrapositive: ¬q¬p\lnot q \to \lnot p. Swaps and negates both the hypothesis and conclusion. This statement is logically equivalent to the original conditional statement.

    • Negation: p¬qp \wedge \lnot q. This means the original implication is false (i.e., pp occurs but qq does not).

  • Example: “If it is raining, then the home team wins.” (pp: "It is raining", qq: "The home team wins")

    • Converse: “If the home team wins, then it is raining.” (Not necessarily true, even if the original is true.)

    • Inverse: “If it is not raining, then the home team does not win.” (Also not necessarily true.)

    • Contrapositive: “If the home team does not win, then it is not raining.” (Logically equivalent to the original statement, meaning they always have the same truth value.)

    • Negation: “It is raining AND the home team does not win.” (This scenario is when the original implication is false.)

Biconditional (pqp \leftrightarrow q)

  • Read “pp IFF qq” / “pp if and only if qq”. This operator asserts that pp and qq have the exact same truth value.

  • True when pp and qq share the same truth value (both true or both false); false otherwise.

  • Truth table:

pp

qq

pqp \leftrightarrow q

T

T

T

T

F

F

F

T