Logic and Proofs
Logic
Logic is the basis of all mathematical reasoning
- syntax of statements
- meaning of statements
- rules of logical inference
Propositional Logic
Proposition: a declarative statement that is either true or false(只有对和错)
- declarative: making an explicit statement(陈述句)
Compound proposition(复合命题)
A compound proposition is a proposition that is built from multiple elementary propositions using logical connectives. 用多个简单命题通过连接词构成的命题。
elementary propositions using logical connectives: 连接词
Negation (not)
Let be a proposition. The proposition “It is not the case that .” is called the negation of , denoted by , and read as “not ”.
Truth Table
| T | F |
| F | T |
Conjunction (and)
Let and be propositions. The conjunction of and , denoted by , is true when both and are true and false otherwise.
Truth Table
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | F |
Disjunction (or)
Let and be propositions. The disjunction of and , denoted by , is true when or is true and false otherwise.
Truth Table
| T | T | T |
| T | F | T |
| F | T | T |
| F | F | F |
Exclusive Or (xor)
Let and be propositions. The exclusive or of and , denoted by , is true when either or is true (i.e., exactly one of , is true) and false otherwise.
Truth Table
| T | T | F |
| T | F | T |
| F | T | T |
| F | F | F |
Implication (if…then)
Let and be propositions. The implication (also known as conditional statement) “if , then ”, denoted by , is false when is true and is false, and true otherwise.
- is called the hypothesis or premise and is called the conclusion
Truth Table
| T | T | T | T |
| T | F | F | F |
| F | T | T | T |
| F | F | T | T |
- is logically equivalent to
equivalent ways
• if then
• implies
• is sufficient for
• is necessary for
• follows from
• unless
• only if
converse, contrapositive and inverse
- The converse of is
- The contrapositive of is
- The inverse of is
- is logically equivalent to its contrapositive
Biconditional (if and only if)
Let p and q be propositions. The biconditional statement (also known as biimplication) “p if and only if q”, denoted by p ↔ q, is
true if p and q have the same truth values, and false otherwise.
• the opposite of p ↔ q is exclusive or p ⊕ q