Abstract


  • Given P: it rains, Q: the floor is wet
  • Compound Statement P -> Q: If it rains, then the floor is wet

Warning

  • If it doesn’t rain, then the floor can be either wet or no wet
  • The floor MUST be wet if it rains
  • Logically Equivalent to ~P OR Q
  • true -> false is false, false -> true/false is true
PQP Q~P OR Q
0011
0111
1000
1111

Terminologies


Hypothesis/Antecedent

  • After if

Conclusion/Consequent

  • After then

Vacuously True

  • True by default
  • When the “if” part of an if-then statement is false, then statement as a whole is said to be true regardless of whether the conclusion is true of false

Implication Law

Converse (相反)

  • Compound Statement Q -> P: If the floor is wet, then it rains
  • When the floor isn’t wet, it can still rain or doesn’t rain
  • It must rain IF the floor is wet
QPQ P
001
100
011
111

Inverse (对立)

  • Compound Statement ~P -> ~Q: if it doesn’t rain, then the floor isn’t wet
  • When it does rain, the floor can be wet or cant be wet
  • The floor must NOT BE WET IF it isn’t raining
  • Logically Equivalent to Converse
PQ~P~Q~P ~Q
00111
01100
10011
11001

Contrapositive (逆否命题)

  • Compound Statement ~Q -> ~P: If the floor isn’t wet, then it doesn’t rain
  • It must not rain if the floor isn’t wet
  • Logically Equivalent to Standard Conditional Statement
QP~Q~P~Q ~P
00111
10011
01100
11001

Bi-conditional

  • p <-> q, if AND only if, iff

Sufficient Condition

  • r is a sufficient condition for s, r -> s

Necessary Condition

  • r is a necessary condition for s, s -> r