Propositional Logic
A branch of logic that studies ways of combining or altering statements to form more complicated statements.
Propositional Logic
Propositional logic (also called sentential logic) is the branch of logic that studies ways of combining or altering statements to form more complicated statements. A proposition is a declarative sentence that is either true or false, but not both.
The basic connectives are: negation (¬), conjunction (∧), disjunction (∨), implication (→), and biconditional (↔). Truth tables systematically enumerate all possible truth values for compound propositions.
Predicate Logic
Predicate logic (first-order logic) extends propositional logic by introducing quantifiers and predicates. The universal quantifier (∀) asserts that a property holds for all elements; the existential quantifier (∃) asserts that at least one element satisfies a property.
Predicate logic is the foundation of mathematical proofs, formal verification, and database query languages such as SQL.
Proof Techniques
Mathematical logic provides rigorous proof methods:
- Direct proof: Assume the hypothesis and derive the conclusion step by step.
- Proof by contradiction: Assume the negation of the conclusion and derive a contradiction.
- Proof by induction: Prove a base case, then show the inductive step holds.
- Proof by contrapositive: Prove ¬Q → ¬P instead of P → Q.
Boolean Algebra
Boolean algebra is an algebraic structure that captures the essential properties of logical operations. It underlies digital circuit design, computer architecture, and programming language semantics. The two elements are 0 (false) and 1 (true), with operations AND, OR, and NOT satisfying De Morgan's laws and other identities.