1 Foundations of Logic

Logic examines the principles that govern correct inference. It asks when a conclusion follows from given statements, how argument structure affects reliability, and how formal rules can be used to test reasoning. Because it separates form from content, logic can analyze arguments in mathematics, language, law, and everyday discussion.

1.1 What Counts as an Argument

An argument is a set of statements arranged so that some statements are offered as support for another. In logic, the quality of an argument depends on the connection between its parts, not merely on whether its conclusion happens to be true. This makes arguments distinct from descriptions, questions, or isolated claims.

1.1.1 Premises and Conclusions

Premises are the starting statements that provide support, while the conclusion is the statement claimed to follow from them. A single argument may include several premises, and those premises may work together rather than separately. Logical analysis identifies these roles so that the inferential structure becomes clear.

1.1.2 Validity vs. Soundness

An argument is valid when its conclusion must be true if its premises are true. Validity concerns structure rather than factual accuracy. An argument is sound when it is valid and its premises are actually true, making soundness a stronger standard for acceptability.

1.2 Inference and Implication

Inference is the process of moving from some statements to another statement. Implication describes a relationship in which one proposition or statement entails another under a given interpretation or system. Logic studies both the act of inferring and the formal conditions under which implication holds.

1.2.1 Deduction

Deduction aims at conclusions that follow necessarily from premises. In a deductive argument, if the premises are accepted, the conclusion is forced by the logical form. Deductive reasoning is central to formal logic because it supports proof and exact analysis.

1.2.2 Induction

Induction extends beyond what is strictly guaranteed by the premises. It often moves from observed cases to a broader generalization, or from patterns to likely expectations. Inductive reasoning is useful in science and daily judgment, though its conclusions are generally probable rather than certain.

1.3 Truth, Interpretation, and Meaning

Logical statements are evaluated relative to meanings and interpretations. Truth depends not only on the sentence itself, but also on how its symbols or terms are understood in a given context. Logic therefore distinguishes language from the world it is used to describe.

1.3.1 Models and Semantics

A model is a structure in which statements can be interpreted and judged true or false. Semantics studies these truth conditions and explains how meaning is assigned. Through models, logic connects abstract formulas with possible ways the world might be represented.

1.3.2 Formal Systems

A formal system is a precisely specified language together with rules for manipulating expressions in that language. Such systems make inference explicit and checkable. They are designed to remove ambiguity, allowing validity to be tested by symbol and rule rather than by intuition alone.

2 Propositional Logic

Propositional logic studies whole statements and the ways they combine through connectives such as and, or, not, and if...then. It abstracts from the internal structure of statements and focuses on how truth values are preserved across combinations. This makes it a basic framework for analyzing argument form.

2.1 Syntax of Propositional Statements

Syntax concerns the permissible shapes of expressions in a logical language. In propositional logic, simple statements are treated as atomic units that can be joined by logical operators. Well-formed expressions must follow the rules of the system.

2.1.1 Logical Connectives

Logical connectives are symbols or words that link statements into larger formulas. Common connectives include negation, conjunction, disjunction, conditional, and biconditional. Each connective contributes a specific rule for how the truth of the compound statement depends on its parts.

2.1.2 Well-Formed Formulas

A well-formed formula is an expression built according to the grammar of the logic. This ensures that the expression can be interpreted unambiguously. Formulas that violate the formation rules are not treated as legitimate objects of proof or evaluation.

2.2 Semantics and Truth Conditions

Semantics in propositional logic explains when formulas are true or false under an assignment of truth values. The truth of complex expressions is determined by the truth values of their components and the meanings of the connectives. This makes the system especially suited to table-based analysis.

2.2.1 Truth Tables

Truth tables list the possible truth-value combinations for a formula and show the resulting outcome in each case. They provide a direct way to test equivalence, consistency, and validity. For many basic arguments, truth tables offer a complete and transparent method of evaluation.

2.2.2 Satisfiability and Contradiction

A formula is satisfiable if at least one assignment of truth values makes it true. It is a contradiction if no assignment can make it true. These concepts help classify propositions by whether they can be jointly affirmed, consistently denied, or never made true.

2.3 Proof and Derivation Methods

Proof methods in propositional logic provide systematic ways to derive conclusions from assumptions. Instead of checking every possible truth assignment, a derivation shows step by step how a formula follows from others. Such methods are central to formal reasoning and automated logic systems.

2.3.1 Natural Deduction

Natural deduction uses introduction and elimination rules that mirror ordinary reasoning patterns. It is designed to derive conclusions in a structured but flexible manner. Because of its readability, it is often used in teaching and in proof-based analysis.

2.3.2 Resolution

Resolution is a proof technique that works by combining clauses to derive a contradiction or a target result. It is widely used in automated theorem proving because it lends itself to mechanical search. The method is especially effective after formulas are transformed into a standard form.

2.4 Common Reasoning Patterns

Some inferential forms appear repeatedly in correct reasoning. Recognizing these patterns helps distinguish reliable arguments from mistaken ones. In propositional logic, several classic forms serve as benchmarks for validity.

2.4.1 Modus Ponens and Modus Tollens

Modus ponens infers a conclusion from a conditional and its antecedent. Modus tollens infers the negation of the antecedent from a conditional and the negation of its consequent. Both are among the most familiar valid forms in deductive logic.

2.4.2 De Morgan’s Laws

De Morgan’s laws describe how negation interacts with conjunction and disjunction. They show that denying a conjunction yields a disjunction of denials, and denying a disjunction yields a conjunction of denials. These equivalences are useful in proof, simplification, and formal transformation.

3 Predicate (First-Order) Logic

Predicate logic extends propositional logic by analyzing the internal structure of statements about objects, properties, and relations. It introduces variables and quantifiers, allowing logic to express general claims and existence claims with greater precision. This expansion greatly increases expressive power.

3.1 Quantifiers and Variables

Quantifiers specify how variables range over a domain of objects. They make it possible to state claims about all objects or about at least one object in a domain. Variables then stand for the items over which the logic quantifies.

3.1.1 Universal Quantification

Universal quantification expresses that a predicate holds for every object in the relevant domain. It is often represented by wording such as “for all.” Such statements are common in mathematics, definitions, and general rules.

3.1.2 Existential Quantification

Existential quantification asserts that at least one object in the domain satisfies a condition. It corresponds to statements such as “there exists.” This form is useful for expressing witness statements, examples, and existence claims.

3.2 Predicate Symbols and Arity

Predicate symbols represent properties or relations rather than complete propositions. Arity refers to the number of arguments a predicate takes. This allows logic to distinguish between unary properties, binary relations, and more complex relational structures.

3.2.1 Domains and Interpretations

A domain is the collection of objects under discussion. An interpretation assigns meanings to symbols by selecting which objects exist in the domain and how predicates apply to them. Truth in predicate logic is therefore relative to both domain and interpretation.

3.2.2 Free vs. Bound Variables

A bound variable lies within the scope of a quantifier, while a free variable is not so governed. Free variables often function like placeholders, whereas bound variables are tied to a specific quantified claim. Distinguishing them is essential for evaluating formulas correctly.

3.3 Rules and Proof Techniques

Predicate logic uses specialized rules to handle quantifiers and variables. These rules allow general statements to be instantiated and particular statements to be generalized, provided the system’s conditions are respected. They form the basis for formal derivations in first-order reasoning.

3.3.1 Quantifier Instantiation

Quantifier instantiation is the process of deriving a particular case from a universal statement, or using an existential statement to introduce a witness under controlled conditions. It is a central move in proofs involving quantified claims. Careful handling is needed to avoid invalid substitutions.

3.3.2 Unification and Skolemization

Unification is the process of making symbolic expressions match by assigning suitable terms to variables. Skolemization removes existential quantifiers by introducing new function or constant symbols in a way that preserves satisfiability. Both techniques are important in automated reasoning and proof transformation.

3.4 Expressiveness and Limits

First-order logic can express many mathematical and relational ideas, but it does not capture every conceivable property of structures. Its power comes with theoretical limits concerning what can be proved or defined within the system. These limits are a major topic in mathematical logic.

3.4.1 Completeness vs. Incompleteness

Completeness, in one sense, means that every semantically valid statement can be proved within the system. Incompleteness refers to the existence of true statements that are not derivable by the available rules, depending on the framework considered. These ideas are fundamental to understanding the reach of formal logic.

3.4.2 Expressible Properties

Some properties are readily expressible in first-order language, such as having a certain relation or satisfying a quantifiable condition. Others, especially more global or structural properties, may be difficult or impossible to capture exactly. The study of expressibility helps clarify what a logical language can and cannot say.

4 Logical Properties and Meta-Logic

Meta-logic studies logical systems themselves rather than the statements inside them. It examines properties such as consistency, completeness, soundness, decidability, and computational behavior. This higher-level perspective helps compare systems and understand their limits.

4.1 Consistency and Contradiction

Consistency concerns whether a system avoids deriving incompatible statements. A contradictory system can collapse in various ways, making it unsuitable for reliable inference. Logic therefore treats consistency as a basic requirement for a usable theory.

4.1.1 Syntactic Consistency

Syntactic consistency means that a formal system does not prove both a statement and its negation. It is a property of derivability within the proof rules. This notion can be checked by examining the system’s internal proofs.

4.1.2 Semantic Consistency

Semantic consistency means that a system has at least one model in which all of its statements are true. It is a model-based notion of coherence. When a theory has such a model, its claims are jointly interpretable without contradiction.

4.2 Completeness and Soundness

Completeness and soundness are complementary standards for logical systems. Soundness ensures that what is provable is genuinely valid, while completeness ensures that what is valid can in principle be proved. Together they measure the alignment between proof and meaning.

4.2.1 Proof-Theoretic View

From a proof-theoretic perspective, soundness guarantees that derivation rules preserve truth or validity. Completeness means the proof system is strong enough to capture all semantically correct consequences. This view emphasizes the reliability and adequacy of inference rules.

4.2.2 Model-Theoretic View

From a model-theoretic perspective, soundness and completeness relate proofs to models and satisfaction. Soundness prevents false statements from being derivable in all models, while completeness ensures that model-valid truths are reachable by proof. The two perspectives together connect syntax and semantics.

4.3 Decidability and Complexity

Not every logical question can be answered by a finite procedure, and some that can be answered require substantial computation. Decidability asks whether an algorithm exists for a given problem, while complexity measures the resources needed to solve it. These topics are central in logic and computer science.

4.3.1 Decision Problems

A decision problem asks for a yes-or-no answer to a formally defined question, such as whether a formula is satisfiable or valid. Some logical systems admit effective decision procedures, while others do not. The boundary between these cases is a major subject of theoretical study.

4.3.2 Computational Complexity of Logic

Computational complexity classifies logical problems by the time, space, or other resources required to solve them. Even when a problem is decidable, it may be computationally difficult. Complexity results help explain why some logical tasks are practical and others are not.

5 Proof Theory

Proof theory studies formal proofs as mathematical objects. It focuses on the structure of derivations, the rules that generate them, and the transformations that preserve provability. This approach treats proof as a central object of analysis in its own right.

5.1 Axioms, Rules, and Derivations

Formal systems typically begin with axioms or initial assumptions and specify rules for deriving new formulas. A derivation is the ordered sequence of steps that leads from premises to conclusions. Proof theory examines how these components interact.

5.1.1 Formal Proofs

A formal proof is a sequence or structured collection of steps that strictly follows the rules of a system. Unlike informal proof, it is designed to be mechanically checkable. Its precision makes it useful for foundational analysis and computation.

5.1.2 Proof Trees and Sequents

Proof trees display derivations in a branching visual structure, with premises above and conclusions below. Sequents express inferential relations between collections of formulas, often in a compact symbolic form. Both tools help organize proofs and clarify dependencies among steps.

5.2 System Comparison

Different proof systems can express the same logic in different ways. Some are better suited to manual reasoning, while others support automation or theoretical analysis. Comparing systems reveals tradeoffs in strength, economy, and clarity.

5.2.1 Strength of Formal Theories

A stronger theory can prove more statements than a weaker one, though it may also be harder to handle. Strength is often compared by asking whether one theory can simulate another or derive its results. Such comparisons are important in foundational studies.

5.2.2 Cut Elimination (High-Level)

Cut elimination is a transformation that removes certain intermediate steps from proofs. At a high level, it simplifies proofs by showing that detours can often be eliminated without losing provability. This property is valued for its conceptual clarity and its technical consequences.

5.3 Normal Forms and Transformations

Proofs and formulas can often be transformed into standard shapes that are easier to analyze. Normal forms reduce variation by placing expressions into a systematic arrangement. These transformations are useful for comparison, computation, and proof search.

5.3.1 Normalization Concepts

Normalization is the process of converting a proof or expression into a standard form. It often removes redundant steps or unnecessary complexity. The resulting form may make hidden structure easier to see.

5.3.2 Equivalence of Proofs

Two proofs may be considered equivalent if they establish the same conclusion by methods that differ only in superficial detail. Studying equivalence helps separate meaningful inferential content from incidental presentation. This is especially important in proof theory and automated reasoning.

6 Model Theory

Model theory investigates how formal languages are interpreted in mathematical structures. It studies what sentences mean in a model, when they are satisfied, and how different models relate to one another. This field provides the semantic counterpart to proof theory.

6.1 Structures and Interpretations

A structure gives meaning to the symbols of a language by specifying a domain and interpreting functions, relations, and constants. Interpretations determine how formulas are evaluated in that setting. Model theory uses these structures to analyze truth in formal languages.

6.1.1 Domains and Relations

The domain is the set of objects over which the language ranges. Relations describe how objects are connected or grouped within that domain. Together, they provide the basic material for interpretation.

6.1.2 Structures as Models

A structure becomes a model when it satisfies a given set of sentences. In this role, it serves as a concrete example of how the theory can be realized. Models show that a theory is not merely syntactically coherent but also semantically grounded.

6.2 Satisfaction and Elementary Truth

Satisfaction is the relation between a model and a sentence that holds when the sentence is true in that model. Elementary truth refers to truth at the level of basic first-order sentences. These notions anchor model theory in precise semantic evaluation.

6.2.1 Satisfying Assignments

A satisfying assignment gives values to variables or symbols so that a formula becomes true in a model. Such assignments are important in both theory and computation. They provide a concrete way to test whether a formula can hold.

6.2.2 Elementary Equivalence

Two structures are elementarily equivalent if they satisfy the same first-order sentences. They may differ in many respects while remaining indistinguishable by the language of the theory. This concept is useful for comparing models at a fine semantic level.

6.3 Theories and Models

A theory is a collection of sentences closed under logical consequence or organized around a chosen set of axioms. Models of a theory are structures in which all of those sentences are true. The relationship between theories and models is central to semantic logic.

6.3.1 Theory as a Set of Sentences

A theory can be viewed as a set of sentences intended to describe a subject matter or mathematical structure. Theorems are statements derivable from that set. This perspective makes the theory a bridge between axioms and interpretation.

6.3.2 Categoricity (Conceptual Overview)

Categoricity means that a theory determines its intended model up to isomorphism within a given size or framework. A categorical theory has very few, or essentially one, model of the relevant kind. The concept highlights how precisely a theory can pin down a structure.

7 Modal and Non-Classical Logics

Non-classical logics modify or extend the standard logical framework to handle necessity, possibility, time, computation, uncertainty, or constructive proof. These systems are developed to model forms of reasoning that classical logic does not capture well. They broaden the scope of logical analysis.

7.1 Modal Logic Basics

Modal logic adds operators that qualify statements as necessary or possible. It is often used to reason about alternative states, knowledge-like distinctions, and varying circumstances. Its formal treatment introduces a richer layer of semantics than ordinary propositional logic.

7.1.1 Necessity and Possibility

Necessity expresses that a statement holds in all relevant alternatives, while possibility expresses that it holds in at least one. These operators enable finer distinctions than simple truth and falsity. They are especially useful in philosophical and computational contexts.

7.1.2 Kripke Semantics (Conceptual)

Kripke semantics interprets modal statements using possible worlds and accessibility relations between them. A statement may be true in one world and evaluated relative to others connected by the relation. This framework gives modal logic a clear and intuitive model theory.

7.2 Temporal and Dynamic Reasoning

Temporal and dynamic logics represent change over time or through actions. They are useful for describing sequences, processes, and system behavior. Rather than static truth, they focus on how truth evolves.

7.2.1 Time and Transition Views

Temporal reasoning treats statements as holding now, before, after, or throughout intervals. Transition views model how one state leads to another in a system. These approaches are common in the analysis of processes and programs.

7.2.2 Program Reasoning (High-Level)

Program reasoning studies what a program does before, during, and after execution. At a high level, logical statements can describe input conditions, transitions, and final outcomes. This supports verification and correctness analysis.

7.3 Intuitionistic and Fuzzy Logics

Intuitionistic and fuzzy logics revise classical assumptions about proof and truth. One emphasizes constructive demonstration, while the other allows graded truth values. Both illustrate that logic can be adapted to different philosophical and practical aims.

7.3.1 Constructive Validity (Overview)

Constructive validity requires that a statement be supported by a direct method of proof, not merely by indirect exclusion of its negation. This approach places emphasis on explicit evidence. It is especially influential in constructive mathematics and computer science.

7.3.2 Degrees of Truth (Overview)

Fuzzy logic permits truth to vary by degree rather than taking only the values true and false. This is useful when categories are gradual or imprecise. The framework models uncertainty and vagueness in a controlled way.

8 Logic in Practice

Logic is not confined to abstract theory; it is a practical tool in mathematics, computation, and reasoning in ordinary life. It helps structure arguments, verify systems, and avoid mistakes. Its methods often appear indirectly, even when people are unaware of formal logic.

8.1 Applications in Mathematics

Mathematics relies heavily on logical structure for definitions, theorem proof, and theory development. Formal reasoning provides precision and consistency across mathematical domains. Logic also underlies many foundational questions in the discipline.

8.1.1 Proof Assistants (Overview)

Proof assistants are software systems that help users construct and verify formal proofs. They require statements to be expressed in a precise logical language. These tools are valuable for checking long or intricate arguments.

8.1.2 Formal Verification (Overview)

Formal verification uses logic to confirm that a system satisfies specified properties. It is often applied to algorithms, hardware, and critical software. The method aims to reduce error by proving correctness rather than testing alone.

8.2 Applications in Computer Science

Computer science uses logic in algorithms, programming languages, databases, and artificial intelligence. Logical methods support specification, search, and correctness guarantees. Many automated tools depend on formal inference procedures.

8.2.1 Automated Theorem Proving

Automated theorem proving seeks to have machines derive logical conclusions from premises. It uses algorithms such as resolution, rewriting, and search strategies. This area connects formal logic with symbolic computation.

8.2.2 Constraint Solving

Constraint solving finds assignments that satisfy a set of logical or mathematical conditions. It is used in scheduling, optimization, verification, and design. Logical formulation helps translate practical problems into solvable structures.

8.3 Applications in Everyday Reasoning

People use informal logic constantly when weighing evidence, making plans, or evaluating claims. Clear reasoning can improve communication and reduce misunderstandings. Logic also helps identify common errors in argument.

8.3.1 Spotting Fallacies (Non-Political/General)

Fallacies are patterns of reasoning that appear persuasive but do not support their conclusions properly. Examples include hasty generalization, false dilemma, and equivocation. Recognizing them helps distinguish strong arguments from weak ones.

8.3.2 Structured Argumentation

Structured argumentation organizes claims and support relations explicitly. It makes hidden assumptions visible and clarifies which points depend on which evidence. This approach is useful in discussion, writing, and decision-making.

9 Common Pitfalls and How to Avoid Them

Logical mistakes often arise from unclear language, overlooked assumptions, or confusion between related concepts. Careful analysis can prevent many errors. The most effective safeguard is to make premises, meanings, and inferential steps explicit.

9.1 Ambiguity in Natural Language

Natural language often leaves room for multiple interpretations. Words may shift meaning across contexts, and sentence structure can obscure logical scope. Ambiguity is a frequent source of mistaken inference.

9.1.1 Scope of Quantifiers (Overview)

Scope determines which part of a statement is governed by a quantifier. Different scope readings can produce different meanings even when the wording is similar. Paying attention to scope prevents many errors in formalization.

9.1.2 Implicit Assumptions

Arguments often rely on unstated premises that are taken for granted. These assumptions may be correct, but they should still be identified and tested. Making them explicit improves clarity and evaluability.

9.2 Confusing Validity with Truth

A common error is to treat a true conclusion as proof that the argument is valid, or to assume that a valid argument must have true premises. Logic keeps these questions separate. Structure and factual content are related but not identical.

9.2.1 Counterexamples

A counterexample is a case showing that a general claim or inference does not hold in all circumstances. In logic, one counterexample is enough to refute a universal claim or expose invalidity. Counterexamples are among the most effective diagnostic tools in reasoning.

9.2.2 Misread Implications

People sometimes read a conditional statement as asserting causation, certainty, or equivalence when it does not. A conditional only states that if one part holds, then another follows under the chosen interpretation. Careful parsing avoids overstatement.

9.3 Circular Reasoning and Begging the Question

Circular reasoning occurs when a conclusion is effectively assumed in the premises used to support it. This creates the appearance of support without genuine independent evidence. Begging the question is a closely related defect in argumentative structure.

9.3.1 Detecting Hidden Premises

Hidden premises can mask circularity or make an argument seem stronger than it is. Identifying these unstated steps allows one to check whether the conclusion is really supported. This practice is essential in both formal and informal logic.