1: Propositional logic | Course - StudyGenius | StudyGenius

Course Progress

Victories 0/75
Finished 0/75

StudyGenius Logo

1: Propositional logic

Choose your name

Aquarium Keeper

Your opponent is:

Aquarium Keeper

1,936 pts

4 days ago

Choose your name

Aquarium Keeper

Your opponent is

Aquarium Keeper

1,936 pts
4 days ago
The quiz will be on the following text — learn it for the best chance to win.

Section 1: Logic - 1: Propositional Logic

Propositional logic (also called sentential logic) forms the bedrock of formal reasoning. It focuses on the truth values (True or False) of declarative statements called propositions and how these values change when propositions are combined using logical connectives.

Propositions and Symbols
  • A proposition is a statement that is definitively true (T) or false (F). Examples: "2 + 2 = 4" (T), "Paris is the capital of Mars" (F).
  • Simple propositions are represented by propositional variables, typically lowercase letters like pp, qq, rr.
Logical Connectives

These operators build complex propositions (compound propositions) from simpler ones:

  1. Negation (¬\neg, ~): "Not pp". Reverses the truth value. If pp is T, ¬p\neg p is F; if pp is F, ¬p\neg p is T.
  2. Conjunction (\land): "pp and qq". True only if both pp and qq are true.
  3. Disjunction (\lor): "pp or qq". True if at least one of pp or qq is true (This is the inclusive "or").
  4. Implication (\rightarrow): "If pp, then qq". False only when pp is true and qq is false. (True otherwise, including when pp is false). pp is the antecedent, qq is the consequent.
  5. Biconditional (\leftrightarrow): "pp if and only if qq". True only when pp and qq have the same truth value.
Truth Tables

Truth tables systematically list all possible combinations of truth values for the propositional variables in a compound proposition and show the resulting truth value of the whole proposition. They are the primary tool for defining connectives and analyzing propositions.

  • Example for Implication (pqp \rightarrow q):

    ppqqpqp \rightarrow q
    TTT
    TFF
    FTT
    FFT
Key Concepts Defined by Truth Tables
  • Tautology: A compound proposition that is always true for all possible truth values of its variables (e.g., p¬pp \lor \neg p).
  • Contradiction: A compound proposition that is always false for all possible truth values (e.g., p¬pp \land \neg p).
  • Contingency: A proposition that is neither a tautology nor a contradiction; its truth value depends on its variables.
Logical Equivalence

Two compound propositions PP and QQ are logically equivalent (PQP \equiv Q) if they have identical truth tables – they produce the same truth value for every possible combination of truth values of their component variables. Crucial equivalences include:

  • Double Negation: ¬(¬p)p\neg(\neg p) \equiv p
  • De Morgan's Laws:
    • ¬(pq)¬p¬q\neg(p \land q) \equiv \neg p \lor \neg q
    • ¬(pq)¬p¬q\neg(p \lor q) \equiv \neg p \land \neg q
  • Implication Equivalence: pq¬pqp \rightarrow q \equiv \neg p \lor q
  • Contrapositive: pq¬q¬pp \rightarrow q \equiv \neg q \rightarrow \neg p

Understanding propositional logic, its connectives, and how to use truth tables to analyze truth values and equivalences is fundamental for constructing and understanding logical arguments, proofs, and further topics in discrete mathematics.