ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Discrete Structures
    CSI-303
    Progress0 / 21 topics
    Topics
    1. Introduction to Logic and Proofs2. Direct Proofs3. Proof by Contradiction4. Sets5. Combinatorics6. Sequences7. Formal Logic8. Propositional and Predicate Calculus9. Methods of Proof10. Mathematical Induction and Recursion11. Loop Invariants12. Relations and Functions13. Pigeonhole Principle14. Trees and Graphs15. Elementary Number Theory16. Optimization and Matching17. Fundamental Structures18. Functions19. Relations (Recursions)20. Cardinality and Countability21. Probabilistic Methods
    CSI-303›Introduction to Logic and Proofs
    Discrete StructuresTopic 1 of 21

    Introduction to Logic and Proofs

    7 minread
    1,171words
    Intermediatelevel

    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 load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time7 min
      Word count1,171
      Code examples0
      DifficultyIntermediate