ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalCSI-303Introduction To Logic …
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    CSI-303

    Discrete Structures

    Progress0 / 21 done
    Topics21
    1Introduction to Logic and Proofs2Direct Proofs3Proof by Contradiction4Sets5Combinatorics6Sequences7Formal Logic8Propositional and Predicate Calculus9Methods of Proof10Mathematical Induction and Recursion11Loop Invariants12Relations and Functions13Pigeonhole Principle14Trees and Graphs15Elementary Number Theory16Optimization and Matching17Fundamental Structures18Functions19Relations (Recursions)20Cardinality and Countability21Probabilistic Methods
    7 min read
    Topic 1 of 21
    Topic Study Note Illustration
    01

    Introduction to Logic and Proofs

    Logic is the foundation of reasoning, and in discrete mathematics, it's essential for forming valid arguments and solving problems systematically. Proofs are the methods we use to...

    Introduction to Logic and Proofs

    Logic is the foundation of reasoning, and in discrete mathematics, it's essential for forming valid arguments and solving problems systematically. Proofs are the methods we use to verify the truth of statements or propositions.

    1. Basic Logic Concepts

    • Propositions: A proposition is a statement that is either true or false, but not both. Examples include:

      • "5 is an odd number" (True)
      • "2 + 2 = 5" (False)
    • Logical Connectives: These are used to combine propositions into more complex statements. The most common logical connectives are:

      • Negation (¬): The negation of a proposition ppp is written as ¬p\neg p¬p and means "not ppp". If ppp is true, ¬p\neg p¬p is false, and vice versa.
      • Conjunction (∧): The conjunction of two propositions ppp and qqq, written as p∧qp \land qp∧q, is true only when both ppp and qqq are true.
      • Disjunction (∨): The disjunction of two propositions ppp and qqq, written as p∨qp \lor qp∨q, is true when at least one of ppp or qqq is true.
      • Implication (→): The implication p→qp \rightarrow qp→q means "if ppp, then qqq". It is false only when ppp is true and qqq is false; otherwise, it's true.
      • Biconditional (↔): The biconditional p↔qp \leftrightarrow qp↔q means "ppp if and only if qqq". It is true when ppp and qqq are both true or both false.
    • Truth Tables: A truth table is a systematic way of showing all possible truth values of a logical expression based on the truth values of its components. Here's an example for conjunction (AND):

    p q p∧qp \land qp∧q
    T T T
    T F F
    F T F
    F F F

    This shows that p∧qp \land qp∧q is only true when both ppp and qqq are true.

    2. Propositional Equivalences

    Two logical expressions are equivalent if they have the same truth table. Some common equivalences include:

    • De Morgan’s Laws:
      • ¬(p∧q)≡(¬p∨¬q)\neg (p \land q) \equiv (\neg p \lor \neg q)¬(p∧q)≡(¬p∨¬q)
      • ¬(p∨q)≡(¬p∧¬q)\neg (p \lor q) \equiv (\neg p \land \neg q)¬(p∨q)≡(¬p∧¬q)
    • Implication equivalence:
      • p→q≡¬p∨qp \rightarrow q \equiv \neg p \lor qp→q≡¬p∨q
    • Double Negation:
      • ¬(¬p)≡p\neg (\neg p) \equiv p¬(¬p)≡p

    These equivalences are useful for simplifying logical expressions and making proofs easier.

    3. Quantifiers in Logic

    • Universal Quantifier (∀): This means "for all". For example, ∀x P(x)\forall x \, P(x)∀xP(x) means "P(x) is true for all x".
    • Existential Quantifier (∃): This means "there exists". For example, ∃x P(x)\exists x \, P(x)∃xP(x) means "there exists an x such that P(x) is true".

    Quantifiers allow us to make statements about entire sets of objects.

    4. Types of Proofs

    In mathematics, we use various methods to prove statements:

    • Direct Proof: A direct proof starts from known facts or axioms and uses logical steps to arrive at the conclusion.

      • Example: To prove 2+2=42 + 2 = 42+2=4, we simply use basic arithmetic and properties of numbers.
    • Proof by Contradiction (Indirect Proof): In a proof by contradiction, we assume the opposite of what we want to prove and show that this assumption leads to a contradiction.

      • Example: To prove that 2\sqrt{2}2​ is irrational, assume the opposite (that 2\sqrt{2}2​ is rational), and show that this leads to a contradiction.
    • Proof by Contrapositive: The contrapositive of an implication p→qp \rightarrow qp→q is ¬q→¬p\neg q \rightarrow \neg p¬q→¬p, and a proof by contrapositive involves proving this equivalent statement.

      • Example: To prove p→qp \rightarrow qp→q, you prove ¬q→¬p\neg q \rightarrow \neg p¬q→¬p.
    • Proof by Induction: This is used to prove statements about integers or other countable sets. There are two main steps:

      1. Base case: Show the statement is true for the first element (usually n=1n = 1n=1).
      2. Inductive step: Assume the statement is true for some kkk, and then prove it is true for k+1k + 1k+1.
    • Proof by Counterexample: To disprove a statement, you can provide a counterexample, which is a specific case where the statement doesn't hold.

    5. Logical Fallacies

    A fallacy is a flaw in reasoning that undermines the validity of an argument. Some common logical fallacies are:

    • Affirming the consequent: Assuming that p→qp \rightarrow qp→q and qqq are true, so ppp must be true. (Incorrect reasoning)
    • Denying the antecedent: Assuming that p→qp \rightarrow qp→q and ¬p\neg p¬p are true, so ¬q\neg q¬q must be true. (Incorrect reasoning)
    • Circular reasoning: The argument assumes the conclusion is true in the premises.

    6. Formal Logic and Proof Systems

    In discrete mathematics, logic is formalized into systems with rules for manipulating symbols. These systems are used to ensure rigorous reasoning. Examples include:

    • Propositional Logic: Deals with propositions and their connectives (AND, OR, NOT, etc.).
    • Predicate Logic: Extends propositional logic to include quantifiers and predicates (statements about objects).
    • Formal Systems: These include axiomatic systems like Zermelo-Fraenkel set theory, which form the basis of mathematical logic.

    Summary

    • Logic involves understanding propositions, logical connectives, and truth values.
    • Proofs are structured arguments used to verify statements, with several types like direct proof, contradiction, contrapositive, induction, and counterexamples.
    • Quantifiers (universal and existential) allow us to reason about collections of objects.
    • Logical equivalences and fallacies help refine arguments and identify errors in reasoning.

    This foundational knowledge of logic and proofs is crucial for solving problems in discrete mathematics, computer science, and beyond!

    Next topic 2 →
    Direct Proofs

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    7mremaining
    1.2kwords
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Discrete Structures