Logic

Logic is the systematic study of the form of valid inference and reasoning. It is a fundamental branch of philosophy and mathematics that provides the foundation for mathematical proofs and computer science.

Logic Topics

Propositional Logic

Propositional Logic

A branch of logic that studies ways of combining or altering statements to form more complicated statements.

A branch of logic that studies ways of combining or altering statements to form more complicated statements. This topic is fundamental to understanding advanced mathematics and has wide applications in science and engineering.

Key concepts: definitions, theorems, proofs, and worked examples related to Propositional Logic.

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.

\[ (P \rightarrow Q) \equiv (\neg P \lor Q) \]

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.

\[ \forall x \, P(x) \implies \exists x \, P(x) \]

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.

\[ \neg(P \land Q) \equiv (\neg P \lor \neg Q) \]
Predicate Logic

Predicate Logic

An extension of propositional logic that includes quantifiers and predicates for more expressive power.

An extension of propositional logic that includes quantifiers and predicates for more expressive power. This topic is fundamental to understanding advanced mathematics and has wide applications in science and engineering.

Key concepts: definitions, theorems, proofs, and worked examples related to Predicate Logic.

Logical Connectives

Logical Connectives

Symbols or words used to connect propositions in a logical expression: AND, OR, NOT, IF-THEN, IFF.

Symbols or words used to connect propositions in a logical expression: AND, OR, NOT, IF-THEN, IFF. This topic is fundamental to understanding advanced mathematics and has wide applications in science and engineering.

Key concepts: definitions, theorems, proofs, and worked examples related to Logical Connectives.

Truth Table

Truth Table

A mathematical table used to determine the truth value of logical expressions for all possible input combinations.

A mathematical table used to determine the truth value of logical expressions for all possible input combinations. This topic is fundamental to understanding advanced mathematics and has wide applications in science and engineering.

Key concepts: definitions, theorems, proofs, and worked examples related to Truth Table.

Quantifiers

Quantifiers

Symbols that indicate the quantity of specimens in the domain of discourse: universal (∀) and existential (∃).

Symbols that indicate the quantity of specimens in the domain of discourse: universal (∀) and existential (∃). This topic is fundamental to understanding advanced mathematics and has wide applications in science and engineering.

Key concepts: definitions, theorems, proofs, and worked examples related to Quantifiers.

Proof Methods

Proof Methods

Techniques for establishing the truth of mathematical statements: direct proof, contradiction, induction.

Techniques for establishing the truth of mathematical statements: direct proof, contradiction, induction. This topic is fundamental to understanding advanced mathematics and has wide applications in science and engineering.

Key concepts: definitions, theorems, proofs, and worked examples related to Proof Methods.

Boolean Algebra

Boolean Algebra

The branch of algebra in which the values of the variables are the truth values true and false.

The branch of algebra in which the values of the variables are the truth values true and false. This topic is fundamental to understanding advanced mathematics and has wide applications in science and engineering.

Key concepts: definitions, theorems, proofs, and worked examples related to Boolean Algebra.

Modal Logic

Modal Logic

An extension of propositional logic that includes operators expressing modality: necessity and possibility.

An extension of propositional logic that includes operators expressing modality: necessity and possibility. This topic is fundamental to understanding advanced mathematics and has wide applications in science and engineering.

Key concepts: definitions, theorems, proofs, and worked examples related to Modal Logic.