1  Sentential Logic

Chapter 1 of How To Prove It introduces the following symbols of logic:

Symbol Meaning
¬ not
and
or
if … then
iff (that is, if and only if)

As we will see, Lean uses the same symbols, with the same meanings. A statement of the form PQ is called a conjunction, a statement of the form PQ is called a disjunction, a statement of the form PQ is an implication or a conditional statement (with antecedent P and consequent Q), and a statement of the form PQ is a biconditional statement. The statement ¬P is the negation of P.

This chapter also establishes a number of logical equivalences that will be useful to us later:

Name Equivalence
De Morgan’s Laws ¬(PQ) is equivalent to ¬P¬Q
¬(PQ) is equivalent to ¬P¬Q
Double Negation Law ¬¬P is equivalent to P
Conditional Laws PQ is equivalent to ¬PQ
PQ is equivalent to ¬(P¬Q)
Contrapositive Law PQ is equivalent to ¬Q¬P

Finally, Chapter 1 of HTPI introduces some concepts from set theory. A set is a collection of objects; the objects in the collection are called elements of the set. The notation xA means that x is an element of A. Two sets A and B are equal if they have exactly the same elements. We say that A is a subset of B, denoted AB, if every element of A is an element of B. If P(x) is a statement about x, then {xP(x)} denotes the set whose elements are the objects x for which P(x) is true. And we have the following operations on sets:

AB={xxAxB}= the intersection of A and B,

AB={xxAxB}= the union of A and B,

AB={xxAxB}= the difference of A and B,

AB=(AB)(BA)= the symmetric difference of A and B.