Skip to content
T. H. Fahim

Abstraction

Fundamentals of Logic

Learn the basics of logic and reasoning.

By T. H. Fahim

Introduction to Logic

What is Logic?

Logic is the study of correct reasoning. Reasoning is a form of thinking or information processing that aims to arrive at a conclusion in a rigorous way.

Branches of Logic:

  1. Formal / Symbolic Logic
  2. Informal Logic

Why Study Logic?

We encounter arguments, claims, and conclusions every day. But how do we distinguish good reasoning from bad reasoning? How can we determine whether a conclusion actually follows from its premises?

Logic provides a systematic framework for answering these questions. It helps us identify errors in reasoning, evaluate arguments, recognize contradictions, and distinguish what follows from the evidence from what we merely assume.

Studying logic also encourages intellectual clarity and precision. It teaches us to question our assumptions, construct coherent arguments, and avoid being misled by persuasive but flawed reasoning.

Ultimately, logic is not about what to think, but how to think correctly. It is a fundamental tool for critical thinking, rational inquiry, and the pursuit of truth.

Common Misconceptions About Logic

Logic is often misunderstood as a way of thinking without emotions, a collection of obvious truths, or a method for proving that one’s beliefs are correct. However, logic is fundamentally concerned with the principles of valid inference and the relationships between premises and conclusions.

  • Logic is not the opposite of emotion: Emotions and reasoning are not mutually exclusive. Emotions can influence our judgments, but experiencing emotions does not necessarily make our reasoning illogical. What matters is whether our conclusions are adequately supported.
  • Logic does not guarantee truth: An argument can be logically valid even when its premises are false. Validity concerns whether the conclusion necessarily follows from the premises, not whether those premises accurately describe reality. Establishing truth often requires evidence beyond logic itself.
  • Logic is not simply common sense: What seems obvious or intuitive is not always logically correct. Human intuition is susceptible to cognitive biases, hidden assumptions, and errors in reasoning. Logic provides systematic methods for examining conclusions independently of how convincing they initially appear.
  • Logic is not merely about winning arguments: Its purpose is not to defend our existing beliefs at all costs or defeat others in disagreements. Rather, logic helps us evaluate arguments consistently, recognize errors, and revise our conclusions when necessary.
  • Logic is not limited to philosophy or mathematics: Although formal logic plays a foundational role in these disciplines, logical reasoning is also essential in science, computer science, law, decision-making, and everyday life.

Ultimately, studying logic does not make someone automatically rational or correct. It provides tools for reasoning more carefully, identifying mistakes, and distinguishing what follows from the available information from what we merely believe to be true.

Foundational Concepts

Proposition

A proposition is the meaning or content of a declarative statement that has a definite truth value: it is either true or false.

Different sentences may express the same proposition.

Examples

Propositions:

  • The Earth is round
  • 2 + 2 = 5

NOT Propositions:

  • Questions: “What time is it?”
  • Commands: “Close the door.”
  • Exclamations: “Wow, that’s beautiful!”
  • Ambiguous statements: “He is tall.”

Argument

An argument is a set of propositions in which one or more propositions (the premises) are presented as reasons for accepting another proposition (the conclusion).

Premises = the propositions offered as reasons.
Conclusion = the proposition that the premises are intended to support.
Argument = the whole reasoning structure connecting them.

General Form:

Examples

  • Premise 1: All humans are mortal.
  • Premise 2: Socrates is a human.
  • Conclusion: Therefore, Socrates is mortal.

Arguments are divided into:

  1. Deductive arguments
  2. Non-deductive arguments

Inference

Inference is the process of drawing a conclusion from one or more premises. It is the step through which information is used to arrive at a conclusion.

An argument presents premises as reasons supporting a conclusion, while an inference is the transition from those premises to the conclusion.

Logical Reasoning

flowchart TD
    accTitle: Logical Reasoning
    accDescr: Terminology used in arguments and reasoning.
    A["Argument"]
    A --> B["Deductive"]
    A --> C["Inductive"]

    B --> D["Valid"]
    B --> E["Invalid"]
    D --> F["Sound"]
    D --> G["Unsound"]
    E --> G

    C --> H["Strong"]
    C --> I["Weak"]
    H --> J["Cogent"]
    H --> K["Uncogent"]
    I --> K

Deductive Reasoning

Deductive reasoning is reasoning in which the conclusion is intended to follow necessarily from the premises.

A deductive argument is an argument whose premises, if true, make the conclusion necessarily true.

If the premises are true, the conclusion must be true.

  • Deductive reasoning is concerned with necessity. The truth of the premises necessarily implies the truth of the conclusion.

Non-Deductive Reasoning: A non-deductive argument is an argument whose premises do not guarantee that the conclusion is true, but give support for the it (making it probable, plausible, or reasonable).

If the premises are true, the conclusion is probably, but not necessarily, true.

  • Unlike deductive reasoning, non-deductive reasoning allows conclusions that extend beyond what the premises strictly entail.

Two important forms are inductive reasoning and abductive reasoning. Both are non-deductive forms of reasoning, and their conclusions remain open to revision in light of new evidence.

Evaluation of Deductive Arguments

Validity and soundness are properties of deductive arguments.

Validity: A deductive argument is valid when the premises, if true, make the conclusion necessarily true. Otherwise it is invalid.

Examples

Valid:

  • All men are mortal.
  • Socrates is a man.
  • Therefore, Socrates is mortal.

Invalid:

  • All men are immortal.
  • Socrates is a man.
  • Therefore, Socrates is mortal.

Validity is about structure, not factual truth.

A deductive argument can be valid even when the premises are false.

Examples

  • All fish are mammals.
  • Socrates is a fish.
  • Therefore, Socrates is a mammal.

Soundness: A deductive argument is sound when it is valid and its premises are true. Otherwise it is unsound.

  • Soundness = validity + true premises.
  • Every sound deductive argument is valid. But not every valid deductive argument is sound.

Inductive Reasoning

Inductive reasoning is reasoning in which observations or evidence support a conclusion without logically guaranteeing it.

An inductive argument is an argument in which the conclusion of an argument is supported not with deductive certainty, but at best with some degree of probability.

Examples

Generalization:

  • 95% of the 1,000 randomly selected apples from this orchard were sweet.
  • Therefore, probably about 95% of the apples in the orchard are sweet.

Prediction:

  • The sun has risen every day throughout recorded observations.
  • Therefore, the sun will probably rise tomorrow.

Statistical inference:

  • 90% of students who attend this review course pass the exam.
  • Jack attended the review course.
  • Therefore, Jack will probably pass.

Inductive reasoning uses observations or evidence to support generalizations, predictions, or other conclusions that are not logically guaranteed.

Evaluation of Inductive Arguments

Strength and Cogency are properties of inductive arguments.

Strength: An inductive argument is strong when its premises provide substantial support for its conclusion. Otherwise, it is weak.

Examples

Strong:

  • The Sun has risen every day throughout recorded human history.
  • Tomorrow is another day under ordinary conditions.
  • Therefore, the Sun will probably rise tomorrow.

Weak:

  • It rained yesterday.
  • Therefore, it will probably rain tomorrow.

Cogency: An inductive argument is cogent when it is strong, its premises are true, and it adequately considers relevant evidence. Otherwise, it is uncogent.

Abductive Reasoning

Abductive reasoning is reasoning in which we infer a plausible or best explanation for the available evidence. It is often called an “inference to the best explanation.”

An abductive argument is an argument in which a hypothesis is proposed as a plausible or best explanation of the available evidence.

Examples

  • Observation: The ground is wet.
  • Hypothesis: If it rained recently, then it would make the ground wet
  • Conclusion: Therefore, it probably rained recently.

Abductive reasoning seeks a plausible or best explanation for observed evidence.

Evaluation of Abductive Arguments

Abductive arguments are commonly evaluated by their explanatory power, consistency with evidence, simplicity, and comparison with alternative explanations.

Propositional Logic

Logical Connectives

These are symbols or words used to combine or modify propositions.

  • Negation / NOT : Reverses the truth value of a proposition.
  • Conjunction / AND : True only when both propositions are true.
  • Disjunction / OR : True when at least one proposition is true.
  • Conditional / Implication / IF-THEN : Means “If , then .” It is false only when is true and is false.
  • Biconditional / IF AND ONLY IF : Means “ if and only if .” True when both propositions have the same truth value.

Truth Table for Logical Connectives:

T T F T T T T
T F F F T F F
F T T F T T F
F F T F F T T

Logical Equivalence

Two propositions are logically equivalent when they have the same truth value under every possible interpretation.

That is, a condition is logically equivalent (both necessary and sufficient) to a statement when is both a necessary and sufficient condition for .

Necessary Condition

A condition is necessary for a statement if cannot be true unless is true (i.e., whenever is true, must also be true).

Examples

Being a mammal is necessary for being a human.

  • If something is human, it must be a mammal.
  • But being a mammal does not guarantee that something is human.

So, being a mammal is necessary, but not sufficient, for being human.

A necessary condition is something you must have.

Sufficient Condition

A condition is sufficient for a statement if being true guarantees that is true.

Examples

Being divisible by 4 is sufficient for being even.

  • Every integer divisible by 4 is even.
  • But not every even integer is divisible by 4. For example, 6 is even but not divisible by 4.

Therefore, being divisible by 4 is sufficient, but not necessary, for being even.

A sufficient condition is something that guarantees the result.

Examples

For an integer , being even is necessary and sufficient for to be divisible by 2.

  • If is even, then is divisible by 2.
  • If is divisible by 2, then is even.

Neither condition is more restrictive than the other. They express the same mathematical property.

Tautology and Contradiction

Tautology : A tautology is a proposition that is true under every possible assignment of truth values to its components, regardless of their actual truth.

Contradiction : A contradiction is a proposition that is false under every possible assignment of truth values to its components.

Contingency: A contingent proposition is a proposition whose truth value depends on the truth values of its components. It is neither a tautology nor a contradiction.

Examples

  • Tautology: “Either it is raining, or it is not raining.”
  • Contradiction: “It is raining and it is not raining at the same time and in the same place.”
  • Contingency: “It is snowing.”

Rules of Inference

Rules of inference are logical principles that allow us to derive conclusions from given premises. They provide valid patterns of reasoning in which the conclusion necessarily follows from the premises.

Some fundamental rules of inference include:

  1. Modus Ponens (Affirming the Antecedent)

If implies , and is true, then must be true.

Examples

  • If it rains, the ground gets wet.
  • It is raining.
  • Therefore, the ground gets wet.
  1. Modus Tollens (Denying the Consequent)

If implies , and is false, then must be false.

Examples

  • If an animal is a dog, it is a mammal.
  • This animal is not a mammal.
  • Therefore, it is not a dog.
  1. Hypothetical Syllogism

If implies , and implies , then implies .

Examples

  • If someone is a dog owner, they own an animal.
  • If someone owns an animal, they have responsibility for its care.
  • Therefore, if someone is a dog owner, they have responsibility for an animal’s care.
  1. Disjunctive Syllogism

If either or is true, and is false, then must be true.

Examples

  • The key is either in the drawer or in the bag.
  • It is not in the drawer.
  • Therefore, it is in the bag.
  1. Conjunction

If and are both true, then their conjunction is true.

Examples

  • The door is open.
  • The light is on.
  • Therefore, the door is open and the light is on.
  1. Simplification

If and are both true, then either proposition can be inferred individually.

Examples

  • The door is open and the light is on.
  • Therefore, the door is open.

These rules form the foundation of deductive reasoning and are widely used in mathematics, philosophy, computer science, and formal proofs.

Fundamental Laws of Classical Logic

They are basic principles that govern how propositions can consistently relate to one another.

Law of Identity: A is A

Something is identical to itself.

Examples

If we say:

“A triangle is a three-sided polygon.”

then, within that discussion, triangle refers to what we have defined as a triangle. We can’t silently change what the term means halfway through an argument.

Likewise,

  • A cat is a cat.
  • If X means “It is raining,” then X continues to mean “It is raining.”

The deeper idea is stability of meaning and identity.

Law of Non-Contradiction: A cannot be both A and not-A

A proposition and its negation cannot both be true at the same time and in the same respect.

Examples

“The door is completely closed.”

and

“The door is not completely closed.”

cannot both be true simultaneously under the same interpretation.

Notice the important qualification: “at the same time and in the same respect.” Someone can be:

  • physically inside a building but legally considered outside it,
  • a person who is both a student and an employee,
  • something that changes from one state to another over time.

Those aren’t necessarily contradictions.

Law of Excluded Middle: A or not-A

A proposition is true or its negation is true.

Examples

Either:

The light is on.

or:

The light is not on.

There isn’t a third logical option if the proposition is well-defined and we’re working in classical logic.

This doesn’t mean that we always know which one is true. That’s an important distinction.

Examples

Suppose I ask:

“Is there life on planet X?”

You might not know. But classical logic says:

Life exists on planet X or life does not exist on planet X.

Our knowledge can be uncertain even when the proposition itself has a truth value.

Methods of Proof

Direct Proof

A direct proof establishes a conclusion by showing that it logically follows from given premises through a sequence of valid steps.

Examples

  • All mammals are warm-blooded.
  • Whales are mammals.
  • Therefore, whales are warm-blooded.

The conclusion follows directly from the premises.

Proof by Contraposition

Proof by contraposition establishes a conditional statement by proving its logically equivalent contrapositive.

To prove “If P, then Q,” we instead prove “If not Q, then not P.”

Examples

Prove that if a person is a biological father, then that person has at least one biological child.

Consider the contrapositive: If a person has no biological children, then that person is not a biological father.

This follows from the definition of biological fatherhood. Since the contrapositive is true, the original statement is also true.

Proof by Contradiction

Proof by contradiction establishes a proposition by assuming it is false and demonstrating that this assumption leads to a logical contradiction.

Examples

Prove that no person can be both an only child and have a biological sibling.

Suppose a person is an only child but also has a biological sibling. By definition, an only child has no siblings, which contradicts the assumption that the person has one.

Therefore, the original proposition must be true.

Mathematical Induction

Mathematical induction is a method of deductive proof used to establish that a statement holds for every natural number from a specified starting point onward.

It involves two steps:

  1. Base Case: Show that the statement holds for the first number.
  2. Inductive Step: Show that if the statement holds for any number, it must also hold for the next number.

Examples

Imagine an infinite row of dominoes arranged so that each falling domino knocks over the next.

If the first domino falls (base case), and every falling domino causes the next one to fall (inductive step), then every domino will eventually fall.

This illustrates the principle of mathematical induction.

Despite its name, mathematical induction is a form of deductive reasoning, because its conclusion follows necessarily from the established premises.

Important Distinctions

Truth and Knowledge

Truth

Truth is a property of a proposition: a proposition is true if things are as the proposition asserts.

  • Truth concerns whether a proposition corresponds to reality, independently of whether anyone knows or believes it.
  • Truth does not require anyone to recognize it

Knowledge

Knowledge is an epistemic status: it involves appropriately justified, factual understanding or acceptance of something as true.

  • Knowledge concerns our epistemic relationship to a proposition: whether we know it, rather than merely believe it or happen to guess correctly.
  • Knowledge requires a knower and an appropriate epistemic basis.

Examples

  • The Earth orbited the Sun before humans understood its motion. The fact was true before it was known.
  • Someone guesses the correct answer to a mathematical problem without understanding it. The answer may be true, but the person does not necessarily know it.
  • A person calculates a mathematical result correctly using a valid derivation and understands why it follows. This is a strong example of mathematical knowledge.

Believing something does not make it true, and believing something true does not necessarily mean knowing it.

Claim, Argument and Opinion

Claim

An assertion that can be assessed for truth, falsity, or, in some cases, other appropriate standards of evaluation.

  • A claim is an assertion that something is the case.
  • A claim is not automatically an argument: an argument requires a supporting relationship between premises and a conclusion.

Argument

A structured inference consisting of premises and a conclusion. Its quality depends on factors such as logical validity, the acceptability of its premises, and the strength of its support.

  • An argument is a set of claims in which some claims (premises) are offered as reasons for accepting another claim (the conclusion).

Opinion

A personal judgment, evaluation, or view, which may or may not be supported by evidence and reasoning.

  • Opinions can concern facts, interpretations, preferences, or values; they are not necessarily arbitrary or irrational.
  • An opinion can be a claim, a conclusion of an argument, or a premise in an argument. These categories are not mutually exclusive.

Examples

  • Claim: Water boils at approximately 100 ℃ at standard atmospheric pressure.
  • Argument: Pure water boils at approximately 100 ℃ at standard atmospheric pressure. This liquid is pure water at standard atmospheric pressure. Therefore, this liquid boils at approximately 100 ℃.
  • Opinion: Classical music is more beautiful than electronic music. This is an aesthetic judgment, not an objective fact established merely by asserting it.
  • Opinion supported by an argument: I prefer classical music because I find its harmonic development more engaging. The preference is an opinion, while the explanation provides a reason for it.

Belief, Trust and Faith

Belief

Belief is the acceptance or mental representation of a proposition as true.

It concerns what one takes to be true. A belief can be well-supported, poorly supported, or unsupported.

Trust

Trust is a willingness to rely on a person, system, or thing.

It concerns reliance, often involving expectations about someone’s reliability, honesty, competence, or intentions. Trust need not entail certainty.

Faith

Faith is commitment or reliance that may persist without conclusive evidence, depending on the context.

It may refer to religious commitment, deep personal conviction, or reliance despite uncertainty. Faith does not necessarily mean believing without evidence, but it often involves a degree of trust in the absence of complete proof.

These concepts overlap but are not interchangeable. One may believe a proposition without trusting its source, trust someone without agreeing with them, or feel confident while being mistaken.

Examples

  • Belief: I believe that the universe is expanding.
  • Trust: I trust a scientist’s report because I have reason to regard the scientist as competent and honest.
  • Faith: I maintain faith in a personal commitment despite uncertainty about its eventual success.

Someone may confidently believe a rumor without evidence. Their confidence does not make the rumor true, and their belief does not constitute knowledge.