Proposition(主張): A proposition is a sentence to which one and only one of the terms true or false can be meaningfully applied.
Example:
“Four is even,”, “4 ∈ {1, 3, 5}” and “43 > 21” are propositions
Suppose are propositions.
p | q | |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
p | q | |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 1 |
p | |
---|---|
0 | 1 |
1 | 0 |
If , then , denoted "".
p | q | |
---|---|---|
0 | 0 | 1 |
0 | 1 | 1 |
1 | 0 | 0 (this is ruled out) |
1 | 1 | 1 |
When we write "", it means "if p is true, then q must be true.", so the case that p = 1 and q = 0 is ruled out.
The converse of is .
But this would be a different thing.
The contrapositive of the proposition is "".
if and only if = iff
: if then , also if then , is equivalent to .
p | q | |
---|---|---|
0 | 0 | 1 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
Let S be any set of propositions. A proposition generated by S is any valid combination of propositions in S with conjunction, disjunction, and negation. Or, to be more precise,
(a) If p ∈ S, then p is a proposition generated by S, and
(b) If x and y are propositions generated by S, then so are (x), ¬x, x ∨ y , and x∧y.
Tautology: An expression involving logical variables that is true in all cases is a tautology. The number 1 is used to symbolize a tautology.
ex:
Contradiction: An expression involving logical variables that is false for all cases is called a contradiction. The number 0 is used to symbolize a contradiction.
ex:
Equivalence: Let S be a set of propositions and let r and s be propositions generated by S. r and s are equivalent if and only if r ↔ s is a tautology. The equivalence of r and s is denoted r s.
ex:
Implication
Implication: Let S be a set of propositions and let r and s be propositions generated by S. We say that r implies s if r → s is a tautology. We write r ⇒ s to indicate this implication.
ex: Disjuctive Addition
The Sheffer Stroke:
p | q | |||
---|---|---|---|---|
0 | 0 | 1 | 0 | 0 |
0 | 1 | 1 | 0 | 1 |
1 | 0 | 1 | 0 | 1 |
1 | 1 | 0 | 1 | 1 |
and : 有 0 則 0 (皆 1 方 1)
or : 有 1 則 1 (皆 0 方 0)
sheffer : 有 0 則 1 (皆 1 方 0)
duality principle
Basic Logical Laws - Equivalences
Name of Law | ||
---|---|---|
Communitive Law | ||
Associative Law | ||
Distributive Law | ||
Identity Law | ||
Negation Law | ||
Idempotent Law | ||
Null Law | ||
Absorption Law | ||
DeMorgan's Law | ||
Involution Law |
Detachment | |
Contrapositive | |
Indirect Reasoning | () |
Disjunctive Addition | |
Conjunctive Simplification | ; |
Disjunctive Simplification | ; |
Chain Rule | |
Conditional Equivalence | (當 p 成立時,q 必需成立,否則 就不成立。) |
Biconditional Equivalence |
Proof: A proof of a theorem is a finite sequence of logically valid steps that demonstrate that the premises of a theorem imply its conclusion.
math
logic