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
    GE-167
    Progress0 / 67 topics
    Topics
    1. Mathematical Reasoning: Propositional and Predicate Logic2. Propositional Logic: Logical Operators3. Translations Between Symbolic Expressions and Formal English Expression4. Logical Equivalences5. Predicate Logic: Quantifiers6. Nested Quantification7. Equivalences in Predicate Logic8. Translations Between Symbolic Forms and Formal English9. Rules of Inference: Proof Methods and Strategies10. Direct Proof11. Proof by Contraposition12. Proof by Induction13. Proof by Implication14. Existence Proof15. Uniqueness Proofs16. Trivial Proofs17. Vacuous Proofs18. Sets: Notations and Set Operations19. Venn Diagrams20. Countable and Uncountable Sets21. Relations: Equivalence Relations and Partitions22. Partial Orderings23. Recurrence Relations24. Functions: Injective, Surjective, Bijective25. Special Types of Functions26. Function Composition27. Inverse Functions28. Recursive Functions29. Compositions30. Number Theory: Sequences and Series31. Counting: Inclusion and Exclusion Principle32. Pigeonhole Principle33. Permutations and Combinations34. Integers and Divisibility: Division Theorem35. Modular Arithmetic36. LCM and GCD37. Euclidean and Extended Euclidean Method38. Finding Solutions to Congruence39. Primes: Fundamental Theorem of Arithmetic40. Characterizations of Primes41. Mersenne Primes42. Induction: Weak Induction43. Strong Induction44. Recursion and Recurrences: Formulation of Recurrences45. Closed Formulas46. Counting: Product Rule and Sum Rule47. Principle of Inclusion-Exclusion48. Binomial Coefficients49. Pascal's Identity and Pascal’s Triangle50. Binomial Theorem51. Relations: Reflexive, Symmetric, Transitive, and Antisymmetric52. Equivalence Relations and Equivalence Classes53. Partial Orders54. Graph Theory: Terminologies55. Elements of Graph Theory56. Planar Graphs57. Graph Coloring58. Euler Graph59. Hamiltonian Path60. Rooted Trees61. Graph Traversals62. Handshaking Lemma and Corollary63. Special Families of Graphs64. Graph Isomorphism65. Planarity in Graphs66. Eulerian and Hamiltonian Graphs67. Trees in Graph Theory
    GE-167›Mathematical Reasoning: Propositional and Predicate Logic
    Discrete StructuresTopic 1 of 67

    Mathematical Reasoning: Propositional and Predicate Logic

    8 minread
    1,346words
    Intermediatelevel

    Mathematical Reasoning: Propositional and Predicate Logic

    Mathematical reasoning is fundamental to discrete mathematics and involves logical thinking to prove statements. The two major types of logic used in mathematical reasoning are Propositional Logic and Predicate Logic.


    1. Propositional Logic (Sentential Logic)

    Propositional logic deals with statements that can be either true or false. These statements are referred to as propositions. In propositional logic, we combine simple propositions using logical connectives to form complex expressions.

    Key Components:

    • Proposition: A declarative statement that is either true or false, but not both. For example:

      • "The sky is blue" (True or False).
      • "2 + 2 = 5" (False).
    • Logical Connectives: Used to combine or modify propositions. The common ones include:

      1. Negation (¬): Negates a proposition.

        • Example: If ppp is "The sky is blue," then ¬p\neg p¬p means "The sky is not blue."
      2. Conjunction ( ∧ ): Represents logical AND.

        • Example: p∧qp \land qp∧q is true only if both ppp and qqq are true.
        • "It is raining and the temperature is cold."
      3. Disjunction ( ∨ ): Represents logical OR.

        • Example: p∨qp \lor qp∨q is true if at least one of ppp or qqq is true.
        • "It is raining or it is snowing."
      4. Implication ( → ): Represents logical IF-THEN.

        • Example: p→qp \to qp→q means "If ppp is true, then qqq is true."
        • "If it rains, then I will carry an umbrella."
        • An implication is false only when the first part is true, and the second part is false.
      5. Biconditional ( ↔ ): Represents logical IF AND ONLY IF.

        • Example: p↔qp \leftrightarrow qp↔q means ppp and qqq are either both true or both false.
        • "You will pass the exam if and only if you study."

    Truth Tables:

    Truth tables are used to systematically explore the truth values of logical expressions. For example, for the implication p→qp \to qp→q, the truth table looks like this:

    p q p→qp \to qp→q
    T T T
    T F F
    F T T
    F F T

    Tautology and Contradiction:

    • Tautology: A formula that is always true, regardless of the truth values of its components (e.g., p∨¬pp \lor \neg pp∨¬p).
    • Contradiction: A formula that is always false (e.g., p∧¬pp \land \neg pp∧¬p).

    2. Predicate Logic (First-Order Logic)

    Predicate logic extends propositional logic by introducing quantifiers and predicates, which allows us to express more complex statements about variables and their relationships.

    Key Components:

    • Predicate: A function or relation that returns a true or false value. A predicate takes one or more arguments.

      • Example: P(x)P(x)P(x) could represent the predicate "x is a prime number."
      • Example: R(x,y)R(x, y)R(x,y) could represent "x is greater than y."
    • Variables: A predicate can have variables that represent elements of a domain. For example, P(x)P(x)P(x) means "x is prime" where xxx is a variable from some domain (e.g., integers).

    Quantifiers:

    Quantifiers are used to express the extent to which a predicate applies to a set of values. There are two main types of quantifiers:

    1. Universal Quantifier ( ∀ ): Expresses that a predicate is true for all elements in the domain.

      • Example: ∀x P(x)\forall x \, P(x)∀xP(x) means "For all xxx, xxx is a prime number."
    2. Existential Quantifier ( ∃ ): Expresses that there exists at least one element in the domain for which the predicate is true.

      • Example: ∃x P(x)\exists x \, P(x)∃xP(x) means "There exists an xxx such that xxx is a prime number."

    Quantified Statements:

    • Universal Statement: "All humans are mortal" can be written as ∀x (H(x)→M(x))\forall x \, (H(x) \to M(x))∀x(H(x)→M(x)), where H(x)H(x)H(x) means "x is human" and M(x)M(x)M(x) means "x is mortal."
    • Existential Statement: "There exists a person who is a teacher" can be written as ∃x T(x)\exists x \, T(x)∃xT(x), where T(x)T(x)T(x) means "x is a teacher."

    Predicates with Multiple Variables:

    Predicates can also involve more than one variable. For example:

    • R(x,y)R(x, y)R(x,y) could represent the relationship "x is taller than y."
    • ∀x∀y R(x,y)\forall x \forall y \, R(x, y)∀x∀yR(x,y) means "Everyone is taller than everyone else" (a universally quantified statement over two variables).

    Negation of Quantifiers:

    • Negating a universal quantifier: ¬∀x P(x)\neg \forall x \, P(x)¬∀xP(x) is equivalent to ∃x ¬P(x)\exists x \, \neg P(x)∃x¬P(x) (there exists an xxx such that P(x)P(x)P(x) is false).
    • Negating an existential quantifier: ¬∃x P(x)\neg \exists x \, P(x)¬∃xP(x) is equivalent to ∀x ¬P(x)\forall x \, \neg P(x)∀x¬P(x) (for all xxx, P(x)P(x)P(x) is false).

    Logical Equivalences:

    • Quantifier Distribution: The logical equivalences involving quantifiers are important. For example:
      • ∀x ∃y P(x,y)\forall x \, \exists y \, P(x, y)∀x∃yP(x,y) means "For all xxx, there exists a yyy such that P(x,y)P(x, y)P(x,y) is true."
      • ∃y ∀x P(x,y)\exists y \, \forall x \, P(x, y)∃y∀xP(x,y) means "There exists a yyy such that for all xxx, P(x,y)P(x, y)P(x,y) is true."

    Comparison Between Propositional and Predicate Logic:

    1. Propositional Logic:

      • Deals with simple true/false propositions.
      • Limited to handling whole propositions and their combinations.
      • Examples: "It is raining," "2 + 2 = 4."
    2. Predicate Logic:

      • Deals with predicates that describe properties of objects and their relationships.
      • Uses variables and quantifiers to express more complex statements.
      • Examples: "All humans are mortal," "There exists a person who is a teacher."

    Applications:

    • Propositional Logic: Commonly used in circuit design, computer programming, and boolean algebra.
    • Predicate Logic: Used in formal proofs, database queries (SQL), and artificial intelligence (AI), where relationships between objects are essential.

    Conclusion:

    • Propositional Logic is useful for simple reasoning about statements, and its logical connectives combine propositions to form more complex expressions.
    • Predicate Logic allows more sophisticated reasoning, as it involves quantifiers and predicates, enabling the expression of statements involving variables and relationships between them.

    Understanding both logics is crucial in fields like computer science, mathematics, and logic, as they form the foundation for reasoning and proofs in various applications.

    Next topic 2
    Propositional Logic: Logical Operators

    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 time8 min
      Word count1,346
      Code examples0
      DifficultyIntermediate