Propositional Logic

Proposition

Propositional Language

  • Proposition Variables
  • Proposition result
    • always true denoted by
    • always false denoted by
  • Compound proposition, construct from logic connective
    • Negation: (not)
    • Conjunction: (and)
    • Disjunction: (or)
    • Implication:
    • Biconditional:

e.g.

Compound Proposition

Logical Connective (Logical Operator)

  • Negation (¬): Denotes “not p”
  • Example: If p = “The Earth is round,” then ¬p = “The Earth is not round.”
  • Conjunction (∧): Denotes “p and q”
  • Example: “I am at home and it is raining.”
  • Disjunction (∨): Denotes “p or q” (inclusive)
  • Example: “I am at home or it is raining.”
  • Inclusive Or: True if at least one of p or q is true.
  • Exclusive Or (⊕): Denotes “either p or q but not both”
  • Example: “You can have soup or salad, but not both.”
  • Exclusive or: True if only one of p or is true.
  • Implication (→): Denotes “If p, then q”
  • Example: “If I am at home, then it is raining.”
  • Biconditional (↔): Denotes “p if and only if q”
  • Example: “I am at home if and only if it is raining.”

Negation (¬)

  • not
  • The negation of a proposition , denoted , is true if and only if is false.
TF
FT
  • Example: If represents “It is raining,” then represents “It is not raining.”

Conjunction (∧)

  • and
  • The conjunction of two propositions and , denoted , is true if and only if both and are true.
TTT
TFF
FTF
FFF
  • Example: If represents “I am at home” and represents “It is raining,” then represents “I am at home and it is raining.”

Disjunction (∨)

  • or
  • The disjunction of two propositions and , denoted , is true if and only if at least one of or is true (inclusive or).
TTT
TFT
FTT
FFF
  • Example: If represents “I am at home” and represents “It is raining,” then represents “I am at home or it is raining.”

Exclusive Or (⊕)

  • or .. but not both
  • The exclusive or (XOR) of two propositions and , denoted , is true if and only if exactly one of or is true, but not both.
TTF
TFT
FTT
FFF
  • Example: If represents “I am at home” and represents “It is raining,” then represents “Either I am at home or it is raining, but not both.”

Logical Implication ()

Biconditional (↔)

  • Expression
    • is necessary and sufficient for
    • if then , and conversly
    • iff
  • The biconditional of two propositions and , denoted , is true if and only if both and have the same truth value (both true or both false). The biconditional can be read as ” if and only if .”
  • Which is opposite to exclusive or.
TTT
TFF
FTF
FFT
  • Example: If represents “I am at home” and represents “It is raining,” then represents “I am at home if and only if it is raining.”
  1. Implication ():

  2. Converse (): 逆命題

  3. Contrapositive (): 對偶命題/逆否命題

  4. Inverse (): 否命題

Application of Propositional Logic Propositional Equivalences