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: used as propositional variables, representing atomic propositions.
Examples (True / False)
: “Two plus four equals six.” → T. (Mathematically verifiable as true).
: “8 < 5.” → F. (Mathematically verifiable as false).
: “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):
Parentheses
(): Operations within parentheses are evaluated first.Negation
: Applies to the single proposition immediately following it.Conjunction
(AND): Evaluated before disjunction.Disjunction
(OR): Evaluated after conjunction.
Operators at the same level of precedence are typically evaluated from left to right.
Negation ()
Meaning: “not ” / “it is not the case that ”. It reverses the truth value of a proposition.
Truth table:
T | F |
F | T |
Example: : “Today is Monday.” → : “Today is not Monday.” If is true, then is false; if is false, then is true.
Conjunction ()
Read “ AND ”. It is true only when both and are individually true. Otherwise, it is false.
Truth table:
T | T | T |
T | F | F |
F | T | F |
F | F | F |
Example: : “2 is prime”, : “2 is even” → : “2 is prime and even.” (True, since both and are true.)
Disjunction ()
Read “ OR ” (inclusive OR). This means the disjunction is true if is true, or if is true, or if both are true.
False only when both and are false.
Truth table:
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 ()
Read “IF THEN ”. This expresses a cause-and-effect or a logical consequence relationship.
= hypothesis/antecedent (the condition); = conclusion/consequent (the result).
Truth definition: An implication is FALSE only when the hypothesis () is true and the conclusion () is false. In all other cases, it is TRUE. This is often called the "broken promise" scenario: if you promise , you only break the promise if happens but doesn't.
Truth table:
T | T | T |
T | F | F |
F | T | T |
F | F | T |
Equivalent phrasing:
“ implies .”
“ only if .” (This means if doesn't happen, can't happen. Equivalently, if happens, must happen.)
“ is sufficient for .” (For to occur, is enough.)
“ is necessary for .” (For to occur, absolutely must occur.)
“ whenever .”
“ even if .”
“ follows from .”
“A sufficient condition for is .”
“A necessary condition for is .”
Re-writing practice:
“I go to the beach whenever it is a sunny day.” → If it is a sunny day (), then I go to the beach (). ()
“You can access the website only if you have paid the subscription fee.” → If you can access the website (), then you have paid the subscription fee (). () This means paying is necessary for access.
Converse / Inverse / Contrapositive / Negation
For a given conditional statement :
Original Statement:
Converse: . Swaps the hypothesis and conclusion.
Inverse: . Negates both the hypothesis and conclusion.
Contrapositive: . Swaps and negates both the hypothesis and conclusion. This statement is logically equivalent to the original conditional statement.
Negation: . This means the original implication is false (i.e., occurs but does not).
Example: “If it is raining, then the home team wins.” (: "It is raining", : "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 ()
Read “ IFF ” / “ if and only if ”. This operator asserts that and have the exact same truth value.
True when and share the same truth value (both true or both false); false otherwise.
Truth table:
T | T | T |
T | F | F |
F | T |