Back to courses
Mathematics for Everyone beginner

Mathematical logic: a primer

Duration0 hours
Modules7
ForGeneral public, lifelong learners
Video1-2min
Get started — free →

Course outline

Module 1 Module 1: Introduction to Propositional Logic

Introduction to Propositional Logic

Introduction

Core content I

Core content II

Core content III

Summary

Further learning

Knowledge check

Q1. What is a proposition in propositional logic?
  • A. A statement that is always true
  • B. A declarative sentence that is either true or false ✓
  • C. A mathematical equation
  • D. A question

Why: A proposition is a declarative sentence that has a truth value, either true or false.

Q2. Which of the following is a logical connective?
  • A. Apple
  • B. And ✓
  • C. 123
  • D. Red

Why: Logical connectives are used to combine propositions, and 'and' is one of them.

Q3. What is the truth value of the proposition 'The sun rises in the east'?
  • A. Sometimes true
  • B. Always true ✓
  • C. Always false
  • D. Unknown

Why: The sun rises in the east every day, making this proposition always true.

Q4. Which symbol is used to represent logical negation?
  • A. ∨
  • B. ∧
  • C. ¬ ✓
  • D. →

Why: The symbol '¬' is used to represent logical negation.

Q5. What is the result of the logical expression 'P ∧ ¬P'?
  • A. True
  • B. False ✓
  • C. Unknown
  • D. Depends on P

Why: The expression 'P ∧ ¬P' is a contradiction and is always false.

Module 2 Module 2: Logical Connectives and Truth Tables

Logical Connectives and Truth Tables

Introduction

Core content I

Core content II

Core content III

Summary

Further learning

Knowledge check

Q1. What is the truth value of the proposition "P ∧ Q" if P is true and Q is false?
  • A. True
  • B. False ✓
  • C. Cannot be determined
  • D. Both true and false

Why: The conjunction "P ∧ Q" is only true when both P and Q are true. Since Q is false, the entire proposition is false.

Q2. Which logical connective represents "not"?
  • A. ∧
  • B. ∨
  • C. ¬ ✓
  • D. →

Why: The symbol ¬ is used to represent negation, or "not".

Q3. What is the truth value of the proposition "P ∨ Q" if P is false and Q is true?
  • A. True ✓
  • B. False
  • C. Cannot be determined
  • D. Both true and false

Why: The disjunction "P ∨ Q" is true if at least one of P or Q is true. Since Q is true, the entire proposition is true.

Q4. Which of the following is equivalent to "P → Q"?
  • A. ¬P ∧ Q
  • B. ¬P ∨ Q ✓
  • C. P ∧ ¬Q
  • D. P ∨ ¬Q

Why: The implication "P → Q" is logically equivalent to "¬P ∨ Q".

Q5. What is the truth value of the proposition "P ↔ Q" if P and Q have the same truth value?
  • A. True ✓
  • B. False
  • C. Cannot be determined
  • D. Both true and false

Why: The biconditional "P ↔ Q" is true when P and Q have the same truth value, either both true or both false.

Module 3 Module 3: Predicate Logic and Quantifiers

Predicate Logic and Quantifiers

Introduction

Core content I

Core content II

Core content III

Summary

Further learning

Knowledge check

Q1. What does the universal quantifier represent in predicate logic?
  • A. There exists at least one element
  • B. All elements satisfy the condition ✓
  • C. No elements satisfy the condition
  • D. Exactly one element satisfies the condition

Why: The universal quantifier, denoted by ∀, is used to express that a statement holds for all elements in the domain.

Q2. Which of the following is a correct translation of the statement: 'All birds fly' into predicate logic?
  • A. ∀x (Bird(x) → Fly(x)) ✓
  • B. ∃x (Bird(x) ∧ Fly(x))
  • C. ∀x (Fly(x) → Bird(x))
  • D. ∃x (Bird(x) → Fly(x))

Why: The universal quantifier is used to state that for all x, if x is a bird, then x flies.

Q3. What does the existential quantifier represent in predicate logic?
  • A. All elements satisfy the condition
  • B. There exists at least one element that satisfies the condition ✓
  • C. No elements satisfy the condition
  • D. Exactly one element satisfies the condition

Why: The existential quantifier, denoted by ∃, is used to express that there is at least one element in the domain for which the statement is true.

Q4. Which of the following is a correct translation of the statement: 'Some people are doctors' into predicate logic?
  • A. ∀x (Person(x) → Doctor(x))
  • B. ∃x (Person(x) ∧ Doctor(x)) ✓
  • C. ∀x (Doctor(x) → Person(x))
  • D. ∃x (Person(x) → Doctor(x))

Why: The existential quantifier is used to state that there exists at least one person who is a doctor.

Q5. Which of the following statements is logically equivalent to ¬(∀x P(x))?
  • A. ∃x P(x)
  • B. ∀x ¬P(x)
  • C. ∃x ¬P(x) ✓
  • D. ¬∃x P(x)

Why: The negation of a universal quantifier is equivalent to the existential quantifier of the negation of the predicate.

Module 4 Module 4: Formal Proofs and Reasoning

Formal Proofs and Reasoning

Introduction

Core content I

Core content II

Core content III

Summary

Further learning

Knowledge check

Q1. What is the primary purpose of formal proofs in mathematical logic?
  • A. To make logic more complicated
  • B. To provide a rigorous method for establishing the truth of statements ✓
  • C. To replace natural language with symbols
  • D. To make mathematics easier

Why: Formal proofs are designed to ensure logical correctness and rigor in mathematical reasoning.

Q2. Which of the following is a valid inference rule in propositional logic?
  • A. Modus Ignoramus
  • B. Modus Tollens ✓
  • C. Modus Confundens
  • D. Modus Absurdus

Why: Modus Tollens is a valid inference rule that states if P implies Q and Q is false, then P must be false.

Q3. In a formal proof, what is the role of a lemma?
  • A. To replace the main theorem
  • B. To provide a stepping stone for proving a larger theorem ✓
  • C. To summarize the proof
  • D. To introduce a contradiction

Why: A lemma is a smaller, auxiliary result that helps in proving a larger theorem.

Q4. Which of the following is a common structure in a formal proof?
  • A. Random statements
  • B. Axioms, rules of inference, and logical steps ✓
  • C. Only definitions
  • D. Only examples

Why: Formal proofs typically begin with axioms and use rules of inference to derive logical steps toward the conclusion.

Q5. What does the term 'soundness' refer to in logic?
  • A. A proof that is easy to read
  • B. A proof that is both valid and true ✓
  • C. A proof that is long and complex
  • D. A proof that is based on intuition

Why: Soundness in logic means that all the conclusions derived from a proof are logically valid and true.

Module 5 Module 5: Set Theory and Logic

Set Theory and Logic

Introduction

Core content I

Core content II

Core content III

Summary

Further learning

Knowledge check

Q1. What is the cardinality of the set {1, 2, 3}
  • A. 1
  • B. 3 ✓
  • C. 5
  • D. 7

Why: The cardinality of a set is the number of elements in the set.

Q2. Which of the following is a subset of {a, b, c}
  • A. {a, b, d}
  • B. {a, b, c} ✓
  • C. {d, e, f}
  • D. {a, c, e}

Why: A set is a subset of itself.

Q3. What does the symbol ∅ represent in set theory
  • A. A set with one element
  • B. An empty set ✓
  • C. A universal set
  • D. A power set

Why: The symbol ∅ denotes an empty set, which contains no elements.

Q4. Which of the following is the correct representation of the union of sets A and B
  • A. A ∩ B
  • B. A ∪ B ✓
  • C. A ⊆ B
  • D. A × B

Why: The union of two sets is represented by the symbol ∪.

Q5. Which of the following is true about the set {1, 2, 3} and the set {3, 2, 1}
  • A. They are disjoint sets
  • B. They are equal sets ✓
  • C. They are subsets of each other
  • D. They are not related

Why: Sets are equal if they contain exactly the same elements, regardless of order.

Module 6 Module 6: Logical Paradoxes and Limitations

Logical Paradoxes and Limitations

Introduction

Core content I

Core content II

Core content III

Summary

Further learning

Knowledge check

Q1. What is a paradox in logic?
  • A. A statement that is always true
  • B. A statement that leads to a contradiction or an unexpected result ✓
  • C. A statement that is always false
  • D. A statement that is neither true nor false

Why: A paradox in logic is a statement or situation that leads to a contradiction or an unexpected result, often challenging our understanding of logic or language.

Q2. Which of the following is an example of a logical paradox?
  • A. The statement "This statement is false." ✓
  • B. The statement "2 + 2 = 4."
  • C. The statement "All statements are true."
  • D. The statement "I am lying."

Why: The statement "This statement is false." is a classic example of a logical paradox known as the liar paradox, as it creates a contradiction when evaluated for truth.

Q3. What does Gödel's incompleteness theorem state?
  • A. All mathematical statements can be proven within a formal system.
  • B. There are true mathematical statements that cannot be proven within a formal system. ✓
  • C. Mathematical logic is complete and consistent.
  • D. All mathematical systems are decidable.

Why: Gödel's incompleteness theorem states that in any consistent formal system capable of expressing basic arithmetic, there are true mathematical statements that cannot be proven within the system.

Q4. What is the main issue with the barber paradox?
  • A. It is not a paradox.
  • B. It involves self-reference leading to a contradiction. ✓
  • C. It is a well-defined logical statement.
  • D. It is a mathematical proof.

Why: The barber paradox involves self-reference, where the barber shaves all and only those people who do not shave themselves, leading to a logical contradiction.

Q5. What is the significance of paradoxes in logic?
  • A. They are irrelevant to logical reasoning.
  • B. They highlight limitations in formal systems and language. ✓
  • C. They always lead to incorrect conclusions.
  • D. They are used to simplify complex problems.

Why: Paradoxes highlight limitations in formal systems and language, often revealing inconsistencies or areas where logic may not fully apply.

Module 7 Module 7: Applications of Logic in Computer Science

Applications of Logic in Computer Science

Introduction

Core content I

Core content II

Core content III

Summary

Further learning

Knowledge check

Q1. What is the primary purpose of Boolean logic in computer science?
  • A. To design databases
  • B. To represent logical conditions and make decisions in programs ✓
  • C. To create graphics
  • D. To manage networks

Why: Boolean logic is fundamental in programming for making decisions based on true or false conditions.

Q2. Which of the following is a valid logical expression in Boolean algebra?
  • A. A + B * C
  • B. A + B = C
  • C. A and B or C
  • D. A xor B ✓

Why: In Boolean algebra, 'xor' is a valid logical operation representing exclusive or.

Q3. In logic gates, which gate produces an output of 1 only when all inputs are 1?
  • A. OR
  • B. AND ✓
  • C. NOT
  • D. NAND

Why: The AND gate outputs 1 only when all its inputs are 1.

Q4. What does the logical operator 'NOT' do?
  • A. It negates the input value ✓
  • B. It adds two values
  • C. It multiplies two values
  • D. It compares two values

Why: The NOT operator inverts the input value, changing 0 to 1 and 1 to 0.

Q5. Which of the following is a correct representation of De Morgan's Law?
  • A. NOT (A AND B) = NOT A OR NOT B ✓
  • B. NOT (A OR B) = NOT A AND NOT B
  • C. A AND B = NOT A OR NOT B
  • D. A OR B = NOT A AND NOT B

Why: De Morgan's Law states that NOT (A AND B) is equivalent to NOT A OR NOT B.

Stay in the loop on this course.

We’ll email you when new modules or related material drops. No spam.

Built with Fragment Language. Sovereign architecture — no third-party trackers.
FragRun.mfgAFImemoryFGOwnership: B-Systems.ee