Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Mathematical Logic




Introduction to Mathematical Logic Section

Mathematical logic studies the principles of reasoning and provides a rigorous framework to analyze the structure of statements and arguments. It begins with the basics of propositional logic, where statements are combined using logical operators like and, or, and not, to form compound statements and evaluate their truth.

A deeper layer is predicate logic, which extends propositional logic by introducing quantifiers like for all and there exists, allowing reasoning about objects and their properties. Central to this is the concept of logical validity, which examines whether conclusions follow from premises regardless of specific interpretations.

Mathematical logic also explores formal systems, which consist of axioms, rules of inference, and symbols for constructing proofs. Key topics include set theory, the foundation of mathematics, and model theory, which studies the relationship between formal languages and their interpretations.

Another significant area is computability theory, which asks fundamental questions about what problems can be solved by algorithms, and proof theory, which investigates the nature and structure of mathematical proofs.

Applications of mathematical logic are vast, influencing fields like computer science, where it underpins algorithms and programming languages, and philosophy, where it sharpens reasoning. It develops skills in abstraction, critical thinking, and formal reasoning, making it a cornerstone of mathematical rigor.

Mathematical Logic Formulas

The Mathematical Logic Formulas page presents essential logical laws, rules, and principles organized in five main categories: Logical Equivalences, De Morgans Laws, Logical Laws, Quantifier Rules, and Inference Rules. It covers fundamental concepts from basic logical operations like conjunction and disjunction to advanced topics like quantifiers and inference rules. Each formula includes detailed explanations, symbolic notation, real-world examples, and practical applications.

Double Negation Law

¬(¬P)=P\neg(\neg P) = P

De Morgan's Law (Conjunction)

¬(PQ)=¬P¬Q\neg(P \land Q) = \neg P \lor \neg Q

De Morgan's Law (Disjunction)

¬(PQ)=¬P¬Q\neg(P \lor Q) = \neg P \land \neg Q

Implication as Disjunction

PQ=¬PQP \rightarrow Q = \neg P \lor Q

Contrapositive

PQ=¬Q¬PP \rightarrow Q = \neg Q \rightarrow \neg P

Biconditional Definition

PQ=(PQ)(QP)P \leftrightarrow Q = (P \rightarrow Q) \land (Q \rightarrow P)

Distributive Law (Conjunction over Disjunction)

P(QR)=(PQ)(PR)P \land (Q \lor R) = (P \land Q) \lor (P \land R)

Distributive Law (Disjunction over Conjunction)

P(QR)=(PQ)(PR)P \lor (Q \land R) = (P \lor Q) \land (P \lor R)

Identity Law (Conjunction)

PTrue=PP \land \text{True} = P

Identity Law (Disjunction)

PFalse=PP \lor \text{False} = P

Domination Law (Conjunction)

PFalse=FalseP \land \text{False} = \text{False}

Domination Law (Disjunction)

PTrue=TrueP \lor \text{True} = \text{True}

Idempotent Law (Conjunction)

PP=PP \land P = P

Idempotent Law (Disjunction)

PP=PP \lor P = P

Negation of Quantifiers (Universal)

¬(xP(x))=x¬P(x)\neg (\forall x\, P(x)) = \exists x\, \neg P(x)

Negation of Quantifiers (Existential)

¬(xP(x))=x¬P(x)\neg (\exists x\, P(x)) = \forall x\, \neg P(x)

Universal Instantiation

xP(x)P(c)\forall x\, P(x) \rightarrow P(c)

Existential Generalization

P(c)xP(x)P(c) \rightarrow \exists x\, P(x)

Modus Ponens

From(PQ)andP,inferQFrom (P \rightarrow Q) and P, infer Q

Modus Tollens

From(PQ)and¬Q,infer¬PFrom (P \rightarrow Q) and \neg Q, infer \neg P

Hypothetical Syllogism

From(PQ)and(QR),infer(PR)From (P \rightarrow Q) and (Q \rightarrow R), infer (P \rightarrow R)

Disjunctive Syllogism

From(PQ)and¬P,inferQFrom (P \lor Q) and \neg P, infer Q

Law of Excluded Middle

P¬P=TrueP \lor \neg P = \text{True}

Law of Non-Contradiction

P¬P=FalseP \land \neg P = \text{False}

Double Negation Law

¬(¬P)=P\neg(\neg P) = P

De Morgan's Law (Conjunction)

¬(PQ)=¬P¬Q\neg(P \land Q) = \neg P \lor \neg Q

De Morgan's Law (Disjunction)

¬(PQ)=¬P¬Q\neg(P \lor Q) = \neg P \land \neg Q

Implication as Disjunction

PQ=¬PQP \rightarrow Q = \neg P \lor Q

Contrapositive

PQ=¬Q¬PP \rightarrow Q = \neg Q \rightarrow \neg P

Biconditional Definition

PQ=(PQ)(QP)P \leftrightarrow Q = (P \rightarrow Q) \land (Q \rightarrow P)

Distributive Law (Conjunction over Disjunction)

P(QR)=(PQ)(PR)P \land (Q \lor R) = (P \land Q) \lor (P \land R)

Distributive Law (Disjunction over Conjunction)

P(QR)=(PQ)(PR)P \lor (Q \land R) = (P \lor Q) \land (P \lor R)

Identity Law (Conjunction)

PTrue=PP \land \text{True} = P

Identity Law (Disjunction)

PFalse=PP \lor \text{False} = P

Domination Law (Conjunction)

PFalse=FalseP \land \text{False} = \text{False}

Domination Law (Disjunction)

PTrue=TrueP \lor \text{True} = \text{True}

Idempotent Law (Conjunction)

PP=PP \land P = P

Idempotent Law (Disjunction)

PP=PP \lor P = P

Negation of Quantifiers (Universal)

¬(xP(x))=x¬P(x)\neg (\forall x\, P(x)) = \exists x\, \neg P(x)

Negation of Quantifiers (Existential)

¬(xP(x))=x¬P(x)\neg (\exists x\, P(x)) = \forall x\, \neg P(x)

Universal Instantiation

xP(x)P(c)\forall x\, P(x) \rightarrow P(c)

Existential Generalization

P(c)xP(x)P(c) \rightarrow \exists x\, P(x)

Modus Ponens

From(PQ)andP,inferQFrom (P \rightarrow Q) and P, infer Q

Modus Tollens

From(PQ)and¬Q,infer¬PFrom (P \rightarrow Q) and \neg Q, infer \neg P

Hypothetical Syllogism

From(PQ)and(QR),infer(PR)From (P \rightarrow Q) and (Q \rightarrow R), infer (P \rightarrow R)

Disjunctive Syllogism

From(PQ)and¬P,inferQFrom (P \lor Q) and \neg P, infer Q

Law of Excluded Middle

P¬P=TrueP \lor \neg P = \text{True}

Law of Non-Contradiction

P¬P=FalseP \land \neg P = \text{False}
Go to Page

Logic Terms and Definitions

Bound Variable

A variable that is within the scope of a quantifier (∀,∃) or binding operator, where its value is controlled by that operator. Denoted like: ∀x(P(x)) or ∃x(Q(x)), where x is bound

Unbound Variable

A variable that appears in a formula without being controlled by any quantifier or binding operator. Also called a free variable. In P(x,y), both x and y are unbound if no quantifiers are present

Proposition

A declarative statement that is either true or false, but not both. Also called a propositional variable or atomic formula in formal logic.

Predicate

A statement containing variables that becomes a proposition (true/false) when those variables are given specific values. Denoted as P(x), Q(x,y), etc., where P, Q are predicates and x, y are variables in their domains.

Quantifier

A logical operator that specifies the quantity of specimens in a domain for which a predicate holds. Two main types: universal quantifier ($\forall$: 'for all') and existential quantifier ($\exists$: 'there exists')

Inference

A logical process of deriving a conclusion from given premises through valid logical rules. Symbolically: If P₁, P₂, ..., Pₙ are premises and C is conclusion, write: P₁, P₂, ..., Pₙ ⊢ C

Axiom

A statement accepted as true without proof in a logical system.

Theorem

A statement that has been proven based on axioms and logical rules.

Proof

A logical argument that demonstrates the truth of a statement (conclusion) from given or previously established statements (premises, axioms) through valid rules of inference. Written as: Given P₁,...,Pₙ, prove C

Premise

A proposition or statement (P₁, P₂, ..., Pₙ) assumed or proven to be true, from which a conclusion is drawn. In formal logic notation, premises are listed above a horizontal line with conclusion below: $\frac{P_1,P_2,...,P_n}{C}$

Conclusion

The statement C derived from premises P₁, P₂, ..., Pₙ through valid logical inference. In formal notation: P₁, P₂, ..., Pₙ ⊢ C or $\frac{P_1,P_2,...,P_n}{C}$

Validity

An argument is valid if and only if it is impossible for all premises to be true and the conclusion false. In formal notation: if premises P₁, P₂, ..., Pₙ are true, then conclusion C must be true: (P₁ ∧ P₂ ∧ ... ∧ Pₙ) → C

Soundness

The property of an argument being both valid and having true premises.

Argument

A logical structure consisting of premises P₁, P₂, ..., Pₙ and a conclusion C where the premises are meant to support the conclusion. In formal notation: P₁, P₂, ..., Pₙ ⊢ C or $\frac{P_1,P_2,...,P_n}{C}$

Fallacy

A flaw or error in reasoning that renders an argument invalid.

Contradiction

A statement that is always false regardless of the truth values of its components.

Tautology

A compound proposition that evaluates to true for all possible truth values of its variables. In formal notation: if T is tautology, then T ≡ 1 or ⊨ T

Modus Ponens

A fundamental rule of inference: given (P → Q) and P, we can deduce Q. Formally written as: $\frac{P \to Q,\; P}{Q}$ or (P → Q) ∧ P ⊢ Q

Modus Tollens

A rule of inference: given (P → Q) and ¬Q, we can deduce ¬P. Formally written as: $\frac{P \to Q,\; \neg Q}{\neg P}$ or (P → Q) ∧ ¬Q ⊢ ¬P

Disjunctive Syllogism

A rule of inference: given (P ∨ Q) and ¬P, we can deduce Q. Formally written as: $\frac{P \lor Q,\; \neg P}{Q}$ or (P ∨ Q) ∧ ¬P ⊢ Q

Conjunction

A logical operation combining two statements P and Q with AND (∧), true only when both statements are true. Formally: P ∧ Q is true iff both P and Q are true

Disjunction

A logical operation combining two statements P and Q with OR (∨), true when at least one statement is true. Formally: P ∨ Q is true iff either P is true or Q is true (or both)

Disjunctive Normal Form (DNF)

A logical formula is in DNF if it is a disjunction (OR) of conjunctions (AND) of literals (variables or their negations): $(p \land q) \lor (\neg p \land r) \lor (q \land r)$

Conjunctive Normal Form (CNF)

A logical formula is in CNF if it is a conjunction (AND) of disjunctions (OR) of literals (variables or their negations): $(p \lor q) \land (\neg p \lor r) \land (q \lor r)$

Conditional

A logical operation denoted as P → Q (if P, then Q), establishing a relationship where P implies Q. Formally written as: if P is true and P → Q is true, then Q must be true

Antecedent

In a conditional statement P → Q, the antecedent P is the hypothesis or condition that implies the consequent

Consequent

In a conditional statement P → Q, the consequent Q is the conclusion or result that follows from the antecedent

Biconditional

A logical operation denoted as P ↔ Q (P if and only if Q), indicating that P and Q have the same truth value. Formally: (P → Q) ∧ (Q → P)

Deduction

A form of logical inference where a conclusion necessarily follows from a set of premises. If all premises are true, the conclusion must be true.

Induction

A method of reasoning that derives general principles from specific observations, establishing probable (not certain) conclusions.

Universal Quantifier

Denoted by ∀x P(x), asserts that predicate P holds for every element x in the domain of discourse. Read as 'for all x, P(x)'

Existential Quantifier

Denoted by ∃x P(x), asserts that predicate P holds for at least one element x in the domain of discourse. Read as 'there exists x such that P(x)'

Logical Connective

Operators that combine simple propositions into compound propositions, forming the basic building blocks of logical expressions

Implication

A logical relationship P → Q between statements P (antecedent) and Q (consequent) where P implies Q. The implication is false only when P is true and Q is false.

Equivalence

Two logical statements $p$ and $q$ are equivalent ($p \equiv q$) if they have identical truth values under all possible valuations of their variables

Negation

A unary logical operator (¬P or ~P) that reverses the truth value of a proposition P. If P is true, ¬P is false; if P is false, ¬P is true.

Satisfiability

A logical formula is satisfiable if there exists at least one assignment of truth values to its variables that makes the entire formula true. Formally: ∃x₁...∃xₙ φ(x₁,...,xₙ) = true

Logical Form

The underlying structure of a logical statement abstracted from its specific content, revealing the logical relationships between its components.

Logical Consistency

A set of statements is logically consistent if and only if there exists at least one interpretation under which all statements in the set are true simultaneously. Formally: ∃M(M ⊨ φ₁ ∧ φ₂ ∧ ... ∧ φₙ)

Rule of Inference

A pattern of reasoning Γ ⊢ φ that preserves truth, where Γ is a set of premises and φ is the conclusion

Logical Consequence

A statement φ is a logical consequence of premises Γ (written Γ ⊨ φ) if φ is true in every model where all premises in Γ are true

Formal System

A mathematical structure consisting of a formal language L, a set of axioms A, and a set of inference rules R that together define valid derivations. Denoted as FS = (L, A, R)

Formal Language

A set of strings over an alphabet Σ, defined by precise formation rules. L ⊆ Σ*

Natural Deduction

A proof system that models logical reasoning through introduction and elimination rules for logical connectives. Proofs are trees of judgments Γ ⊢ φ

Sequent Calculus

A formal proof system using sequents of the form Γ ⊢ Δ, where Γ and Δ are finite multisets of formulas. Read as 'Γ entails Δ'

Truth Table

A systematic listing of all possible combinations of truth values for atomic propositions and the resulting truth values of compound expressions

Symbolic Representation

A formal system of notation using well-defined symbols to express logical relationships and operations with precision and clarity

Non-contradiction

The logical principle that asserts ¬(P ∧ ¬P) is always true. No statement can be both true and false in the same sense at the same time

Law of Excluded Middle

The principle that every proposition P is either true or false, formally expressed as P ∨ ¬P

Necessary and Sufficient Conditions

P is necessary for Q if Q → P, and P is sufficient for Q if P → Q. If both hold, then P ↔ Q

Propositional Calculus

A formal system dealing with propositions and logical connectives, where formulas are built from atomic propositions using logical operators

First-order Logic

A formal system extending propositional logic with quantifiers (∀, ∃) and predicates, allowing expression of relationships and properties

Higher-order Logic

A logical system allowing quantification over predicates, functions, and other higher-order objects, extending first-order logic's expressiveness

Interpretation

A mapping I from a formal language L to a domain D that assigns semantic meaning to the symbols and expressions of L. Written as I: L → D

Model Theory

Mathematical study of the relationship between formal theories T and their models M, where M ⊨ T denotes M is a model of T

Proof Theory

Study of formal proofs as mathematical objects and the structural relationships between them

String

A finite sequence s = a₁a₂...aₙ where each aᵢ belongs to an alphabet Σ. Formally written as s ∈ Σ*

Expression

A syntactically valid combination of symbols according to formation rules of a formal system

Elementary Proposition

An atomic statement P that has a truth value and cannot be decomposed into simpler logical statements

Syntax Tree

A hierarchical data structure T = (V,E,r) representing the grammatical structure of an expression, where V is the set of nodes, E the edges, and r the root

Node

A fundamental unit v ∈ V in a tree structure containing data and maintaining relationships with other nodes through edges E

Leaf Node

A terminal node l ∈ V in a tree structure with no children, formally: l ∈ V such that ∄v ∈ V: (l,v) ∈ E

Root Node

The unique node r ∈ V in a tree structure with no parent, serving as the origin point. Formally: r ∈ V such that ∄v ∈ V: (v,r) ∈ E

Branch

A directed edge e = (u,v) ∈ E in a tree structure connecting a parent node u to a child node v

Partial Proposition

An incomplete logical statement φ(x₁,...,xₙ) containing free variables or undefined terms that requires additional context to determine truth value

Complete Proposition

A logical statement p that is fully specified and has a well-defined truth value under any given interpretation I

Degree of Syntax Tree

The maximum number d of child nodes for any node v in the tree T. Formally: d = max{|children(v)| : v ∈ V}

Construction Sequence

An ordered sequence of steps S = (s₁, s₂, ..., sₙ) that, when executed in order, produces a valid logical structure or proof

Compound Proposition

A proposition p constructed by combining simpler propositions using logical connectives. Formally: p := q ∘ r where ∘ ∈ {∧, ∨, →, ↔}

Substitution

An operation σ that replaces variables or subexpressions with other expressions. Formally: σ: V → Terms where V is the set of variables

Structural Induction

A proof technique establishing that a property P holds for all instances of a recursively defined structure S by showing it holds for base cases and is preserved by construction steps

Bound Variable

A variable that is within the scope of a quantifier (∀,∃) or binding operator, where its value is controlled by that operator. Denoted like: ∀x(P(x)) or ∃x(Q(x)), where x is bound

Unbound Variable

A variable that appears in a formula without being controlled by any quantifier or binding operator. Also called a free variable. In P(x,y), both x and y are unbound if no quantifiers are present

Proposition

A declarative statement that is either true or false, but not both. Also called a propositional variable or atomic formula in formal logic.

Predicate

A statement containing variables that becomes a proposition (true/false) when those variables are given specific values. Denoted as P(x), Q(x,y), etc., where P, Q are predicates and x, y are variables in their domains.

Quantifier

A logical operator that specifies the quantity of specimens in a domain for which a predicate holds. Two main types: universal quantifier ($\forall$: 'for all') and existential quantifier ($\exists$: 'there exists')

Inference

A logical process of deriving a conclusion from given premises through valid logical rules. Symbolically: If P₁, P₂, ..., Pₙ are premises and C is conclusion, write: P₁, P₂, ..., Pₙ ⊢ C

Axiom

A statement accepted as true without proof in a logical system.

Theorem

A statement that has been proven based on axioms and logical rules.

Proof

A logical argument that demonstrates the truth of a statement (conclusion) from given or previously established statements (premises, axioms) through valid rules of inference. Written as: Given P₁,...,Pₙ, prove C

Premise

A proposition or statement (P₁, P₂, ..., Pₙ) assumed or proven to be true, from which a conclusion is drawn. In formal logic notation, premises are listed above a horizontal line with conclusion below: $\frac{P_1,P_2,...,P_n}{C}$

Conclusion

The statement C derived from premises P₁, P₂, ..., Pₙ through valid logical inference. In formal notation: P₁, P₂, ..., Pₙ ⊢ C or $\frac{P_1,P_2,...,P_n}{C}$

Validity

An argument is valid if and only if it is impossible for all premises to be true and the conclusion false. In formal notation: if premises P₁, P₂, ..., Pₙ are true, then conclusion C must be true: (P₁ ∧ P₂ ∧ ... ∧ Pₙ) → C

Soundness

The property of an argument being both valid and having true premises.

Argument

A logical structure consisting of premises P₁, P₂, ..., Pₙ and a conclusion C where the premises are meant to support the conclusion. In formal notation: P₁, P₂, ..., Pₙ ⊢ C or $\frac{P_1,P_2,...,P_n}{C}$

Fallacy

A flaw or error in reasoning that renders an argument invalid.

Contradiction

A statement that is always false regardless of the truth values of its components.

Tautology

A compound proposition that evaluates to true for all possible truth values of its variables. In formal notation: if T is tautology, then T ≡ 1 or ⊨ T

Modus Ponens

A fundamental rule of inference: given (P → Q) and P, we can deduce Q. Formally written as: $\frac{P \to Q,\; P}{Q}$ or (P → Q) ∧ P ⊢ Q

Modus Tollens

A rule of inference: given (P → Q) and ¬Q, we can deduce ¬P. Formally written as: $\frac{P \to Q,\; \neg Q}{\neg P}$ or (P → Q) ∧ ¬Q ⊢ ¬P

Disjunctive Syllogism

A rule of inference: given (P ∨ Q) and ¬P, we can deduce Q. Formally written as: $\frac{P \lor Q,\; \neg P}{Q}$ or (P ∨ Q) ∧ ¬P ⊢ Q

Conjunction

A logical operation combining two statements P and Q with AND (∧), true only when both statements are true. Formally: P ∧ Q is true iff both P and Q are true

Disjunction

A logical operation combining two statements P and Q with OR (∨), true when at least one statement is true. Formally: P ∨ Q is true iff either P is true or Q is true (or both)

Disjunctive Normal Form (DNF)

A logical formula is in DNF if it is a disjunction (OR) of conjunctions (AND) of literals (variables or their negations): $(p \land q) \lor (\neg p \land r) \lor (q \land r)$

Conjunctive Normal Form (CNF)

A logical formula is in CNF if it is a conjunction (AND) of disjunctions (OR) of literals (variables or their negations): $(p \lor q) \land (\neg p \lor r) \land (q \lor r)$

Conditional

A logical operation denoted as P → Q (if P, then Q), establishing a relationship where P implies Q. Formally written as: if P is true and P → Q is true, then Q must be true

Antecedent

In a conditional statement P → Q, the antecedent P is the hypothesis or condition that implies the consequent

Consequent

In a conditional statement P → Q, the consequent Q is the conclusion or result that follows from the antecedent

Biconditional

A logical operation denoted as P ↔ Q (P if and only if Q), indicating that P and Q have the same truth value. Formally: (P → Q) ∧ (Q → P)

Deduction

A form of logical inference where a conclusion necessarily follows from a set of premises. If all premises are true, the conclusion must be true.

Induction

A method of reasoning that derives general principles from specific observations, establishing probable (not certain) conclusions.

Universal Quantifier

Denoted by ∀x P(x), asserts that predicate P holds for every element x in the domain of discourse. Read as 'for all x, P(x)'

Existential Quantifier

Denoted by ∃x P(x), asserts that predicate P holds for at least one element x in the domain of discourse. Read as 'there exists x such that P(x)'

Logical Connective

Operators that combine simple propositions into compound propositions, forming the basic building blocks of logical expressions

Implication

A logical relationship P → Q between statements P (antecedent) and Q (consequent) where P implies Q. The implication is false only when P is true and Q is false.

Equivalence

Two logical statements $p$ and $q$ are equivalent ($p \equiv q$) if they have identical truth values under all possible valuations of their variables

Negation

A unary logical operator (¬P or ~P) that reverses the truth value of a proposition P. If P is true, ¬P is false; if P is false, ¬P is true.

Satisfiability

A logical formula is satisfiable if there exists at least one assignment of truth values to its variables that makes the entire formula true. Formally: ∃x₁...∃xₙ φ(x₁,...,xₙ) = true

Logical Form

The underlying structure of a logical statement abstracted from its specific content, revealing the logical relationships between its components.

Logical Consistency

A set of statements is logically consistent if and only if there exists at least one interpretation under which all statements in the set are true simultaneously. Formally: ∃M(M ⊨ φ₁ ∧ φ₂ ∧ ... ∧ φₙ)

Rule of Inference

A pattern of reasoning Γ ⊢ φ that preserves truth, where Γ is a set of premises and φ is the conclusion

Logical Consequence

A statement φ is a logical consequence of premises Γ (written Γ ⊨ φ) if φ is true in every model where all premises in Γ are true

Formal System

A mathematical structure consisting of a formal language L, a set of axioms A, and a set of inference rules R that together define valid derivations. Denoted as FS = (L, A, R)

Formal Language

A set of strings over an alphabet Σ, defined by precise formation rules. L ⊆ Σ*

Natural Deduction

A proof system that models logical reasoning through introduction and elimination rules for logical connectives. Proofs are trees of judgments Γ ⊢ φ

Sequent Calculus

A formal proof system using sequents of the form Γ ⊢ Δ, where Γ and Δ are finite multisets of formulas. Read as 'Γ entails Δ'

Truth Table

A systematic listing of all possible combinations of truth values for atomic propositions and the resulting truth values of compound expressions

Symbolic Representation

A formal system of notation using well-defined symbols to express logical relationships and operations with precision and clarity

Non-contradiction

The logical principle that asserts ¬(P ∧ ¬P) is always true. No statement can be both true and false in the same sense at the same time

Law of Excluded Middle

The principle that every proposition P is either true or false, formally expressed as P ∨ ¬P

Necessary and Sufficient Conditions

P is necessary for Q if Q → P, and P is sufficient for Q if P → Q. If both hold, then P ↔ Q

Propositional Calculus

A formal system dealing with propositions and logical connectives, where formulas are built from atomic propositions using logical operators

First-order Logic

A formal system extending propositional logic with quantifiers (∀, ∃) and predicates, allowing expression of relationships and properties

Higher-order Logic

A logical system allowing quantification over predicates, functions, and other higher-order objects, extending first-order logic's expressiveness

Interpretation

A mapping I from a formal language L to a domain D that assigns semantic meaning to the symbols and expressions of L. Written as I: L → D

Model Theory

Mathematical study of the relationship between formal theories T and their models M, where M ⊨ T denotes M is a model of T

Proof Theory

Study of formal proofs as mathematical objects and the structural relationships between them

String

A finite sequence s = a₁a₂...aₙ where each aᵢ belongs to an alphabet Σ. Formally written as s ∈ Σ*

Expression

A syntactically valid combination of symbols according to formation rules of a formal system

Elementary Proposition

An atomic statement P that has a truth value and cannot be decomposed into simpler logical statements

Syntax Tree

A hierarchical data structure T = (V,E,r) representing the grammatical structure of an expression, where V is the set of nodes, E the edges, and r the root

Node

A fundamental unit v ∈ V in a tree structure containing data and maintaining relationships with other nodes through edges E

Leaf Node

A terminal node l ∈ V in a tree structure with no children, formally: l ∈ V such that ∄v ∈ V: (l,v) ∈ E

Root Node

The unique node r ∈ V in a tree structure with no parent, serving as the origin point. Formally: r ∈ V such that ∄v ∈ V: (v,r) ∈ E

Branch

A directed edge e = (u,v) ∈ E in a tree structure connecting a parent node u to a child node v

Partial Proposition

An incomplete logical statement φ(x₁,...,xₙ) containing free variables or undefined terms that requires additional context to determine truth value

Complete Proposition

A logical statement p that is fully specified and has a well-defined truth value under any given interpretation I

Degree of Syntax Tree

The maximum number d of child nodes for any node v in the tree T. Formally: d = max{|children(v)| : v ∈ V}

Construction Sequence

An ordered sequence of steps S = (s₁, s₂, ..., sₙ) that, when executed in order, produces a valid logical structure or proof

Compound Proposition

A proposition p constructed by combining simpler propositions using logical connectives. Formally: p := q ∘ r where ∘ ∈ {∧, ∨, →, ↔}

Substitution

An operation σ that replaces variables or subexpressions with other expressions. Formally: σ: V → Terms where V is the set of variables

Structural Induction

A proof technique establishing that a property P holds for all instances of a recursively defined structure S by showing it holds for base cases and is preserved by construction steps
The Logic Terms and Definitions page presents key concepts and terminology organized in multiple categories including Logic Basics, Reasoning, Formal Logic, Proof Methods, Logical Principles, and Structures. It covers fundamental concepts like propositions and predicates, reasoning methods, formal systems, and proof techniques. Each term is clearly defined to help understand the building blocks of mathematical logic and logical reasoning.
Go to Page

Propositional Logic

Propositional logic, also known as propositional calculus or sentential logic, forms a foundational sub-field of mathematical logic along with other sub-fields such as first-order logic, higher-order logic, modal logic, intuitionistic logic, temporal logic, set theory, model theory, proof theory, and recursion theory.
Propositional logic provides a formal system for representing and analyzing statements that are either true or false.

It includes:
  • Syntax:
    The formal structure including propositions (typically represented by variables like p, q, r) and logical connectives (AND, OR, NOT, implies, etc.)
  • Semantics:
    How we determine truth values using truth tables, and identifying tautologies (always true) and contradictions (always false)
  • Equivalences:
    Laws like De Morgan's laws, distributive laws, and other equivalences that allow for simplification.
    However, not all logical equivalences are laws. Some are specific derivations that are still true but are not considered "fundamental" enough to be named as laws.
    All laws are logical equivalences, but not all logical equivalences are laws.
    Laws are fundamental, while other equivalences may be derived, conditional, or context-dependent.
    Learn more about basic laws of propositional logic and other equivalences.
  • Inference Rules:
    Formal rules such as modus ponens, modus tollens, and others that allow for step-by-step proofs
  • Normal Forms:
    Standard ways to represent logical formulas, like conjunctive normal form (CNF) and disjunctive normal form (DNF)
  • Proof Techniques:
    Methods like proof by contradiction, direct proof, and truth tables to establish the validity of arguments
  • Truth tables:
    Truth tables are primarily used in sentential logic to determine the truth values of logical expressions based on their components.
  • Applications:
    Propositional logic is indeed widely used in computer science (for circuit design, program verification), artificial intelligence (knowledge representation, automated reasoning), philosophy (formal analysis of arguments), and many other fields
The study of propositional logic establishes the foundation for more complex logical systems while providing essential tools for formal reasoning across numerous disciplines.
Go to Page

Tools

Truth Tables Generator

Build custom truth tables for any logical expression. Enter your own propositions and operators to dynamically generate complete truth tables with step-by-step evaluation.

Try it
Truth Tables Generator