Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Number System and Arithmetic
  • Algebra
  • Set Theory
  • Probability
  • Statistics
  • Geometry
  • Calculus
  • Logarithms
  • Mensuration
  • Matrices
  • Trigonometry
  • Mathematics
Open In App
Next Article:
Introduction to Mathematical Logic
Next article icon

Introduction to Mathematical Logic

Last Updated : 06 Nov, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Mathematical logic deals with the logic in mathematics. Mathematical logic operators and laws define various statements in their mathematical form. In this article, we will explore mathematical logic along with the mathematical logic operators and types of mathematical logic. We will also solve some examples related to mathematical logic.

Table of Content

  • What is Mathematical Logic?
  • Mathematical Logic Operators
  • Mathematical Logic Formulas
  • Types of Mathematical Logic
  • Mathematical Logic Truth Table
  • Mathematical Logic Solved Examples

What is Mathematical Logic?

The study of mathematical logic in mathematics is called mathematical logic. The basic mathematical logic used are the conjunction (∧), disjunction (∨), and negation (¬). Some other mathematical logics are implication and double implication.


Mathematical-Logic
Mathematical Logic


Mathematical Logic Operators

The basic mathematical logic operators are:

  • Conjunction
  • Disjunction
  • Negation
  • Implication
  • Double Implication

Conjunction

In mathematical logic conjunction of two statements results in true when both the statements are true otherwise false. Conjunction is also known as AND operator and is represented by ∧.

Disjunction

In mathematical logic disjunction of two statements results in false if both the statements are false otherwise true. Disjunction is also known as OR operator and is represented by ∨.

Negation

In mathematical logic negation of two statements results in the not of the given statement i.e., if the statement is true it results in false and if the statement is false it results in true. Negation is also known as NOT operator and is represented by ~ or ¬.

Implication

In mathematical logic implication of two statements results in false if the first statement is true and second statement is false otherwise true. Implication is also known as conditional operator and is represented by → or ⇒. Implication X→Y is read as If X and then Y.

Double Implication

In mathematical logic double implication of two statements results in true when either both statements are true or both statements are false. Double implication is also known as biconditional operator and is represented by ↔ or ⇔. Double implication X↔ Y is read as Y iff X or Y if and only if X.

Mathematical Logic Formulas

Some of the basic mathematical formulas are listed below:

Formula Names

Mathematical Logic Formula

Identity Law

  • (a ∧ T) ≣ a
  • (a ∨ F) ≣ a

Domination Law

  • (a ∧ F) ≣ F
  • (a ∨ T) ≣ T

Idempotent law

  • (a ∧ a) ≣ a
  • (a ∨ a) ≣ a

Double Negation Law

  • ¬ (¬ a) ≣ a

Commutative Law

  • (a ∧ b) ≣ (b ∧ a)
  • (a ∨ b) ≣ (b ∨ a)

Associative Law

  • (a ∧ b) ∧ c ≣ a ∧ (b ∧ c)
  • (a ∨ b) ∨ c ≣ a ∨ (b ∨ c)

Distributive Law

  • a ∧ (b ∨ c) ≣ (a ∧ b) ∨ (a ∧ c)
  • a ∨ (b ∧ c) ≣ (a ∨ b) ∧ (a ∨ c)

De Morgan Law

  • ¬ (a ∧ b) ≣ ¬a ∨ ¬b
  • ¬ (a ∨ b) ≣ ¬a ∧ ¬b

Absorption Law

  • a ∧ (a ∨ b) ≣ a
  • a ∨ (a ∧ b) ≣ a

Negation Law

  • a ∧ ¬a ≣ F
  • a ∨ ¬a ≣ T

Types of Mathematical Logic

The different types of mathematical logic include:

  • Set Theory
  • Model Theory
  • Proof Theory
  • Recursion Theory

Set Theory: Set theory is a part of mathematical logic that deals with the sets which means collection of elements. The set theory is the theory consisting of sets, sets formulas and many more.

Model Theory: Model theory is a part of mathematical logic that deals with the models of different theories of mathematics. The model theory provides different models describing the complex theories making it easy to understand.

Proof Theory: Proof theory is a part of mathematical logic that deals with the proofs. The mathematical proofs provide easy analysis of different mathematical methods.

Recursion Theory: Recursion theory is a part of mathematical logic used to construct computable functions, Turing machines and recursively enumerable sets.

Mathematical Logic Truth Table

The truth table in mathematical logic is a table which takes inputs and provides output when a logic is applied to it. The truth table for different mathematical logic operators are given below.

Negation

The truth table for negation is given below.

A

~A

True

False

False

True

Conjunction

The truth table for conjunction is given below.

A

B

A∧B

True

True

True

True

False

False

False

True

False

False

False

False

Disjunction

The truth table for disjunction is given below.

A

B

A∨B

True

True

True

True

False

True

False

True

True

False

False

False

Implication

The truth table for implication is given below.

A

B

A→B

True

True

True

True

False

False

False

True

True

False

False

True

Double Implication

The truth table for double implication is given below.

A

B

A↔B

True

True

True

True

False

False

False

True

False

False

False

True

Mathematical Logic Solved Examples

Example 1: Consider the statement x < 5 → x - 2 < 5 is true or false?

Solution:

If x < 5 is true then, x - 2 < 5 is also true.

T → T is true

So, the given statement x < 5 → x - 2 < 5 is true.

Example 2: For given two statements compute the truth table for conjunction.

P: a is divisible by 4

Q: a is divisible by 10

Solution:

Given the two statements P and Q.

P: a is divisible by 4

Q: a is divisible by 10

Value of a

P

Q

P ∧ Q

20

T

T

T

8

T

F

F

30

F

T

F

5

F

F

F

Example 3: Find the negation of the given statement P: It is a rainy day.

Solution:

Given statement,

P: It is a rainy day.

Negation of P = ¬ P: It is not a rainy day.


Next Article
Introduction to Mathematical Logic

A

aayushi2402
Improve
Article Tags :
  • Mathematics

Similar Reads

    Mathematics | Introduction to Proofs
    Mathematical proof is an argument we give logically to validate a mathematical statement. To validate a statement, we consider two things: A statement and Logical operators. A statement is either true or false but not both. Logical operators are AND, OR, NOT, If then, and If and only if. Coupled wit
    7 min read
    Principle of Mathematical Induction
    Mathematical induction is a concept in mathematics that is used to prove various mathematical statements and theorems. The principle of mathematical induction is sometimes referred to as PMI. It is a technique that is used to prove the basic theorems in mathematics which involve the solution up to n
    11 min read
    Logical-Mathematical Intelligence in AI
    Logical-mathematical intelligence in AI refers to the capacity of systems to analyze problems, perform mathematical operations, and make logical deductions. The article explores logical-mathematical intelligence, a key component of Howard Gardner's Theory of Multiple Intelligences, focusing on its c
    6 min read
    Important Mathematical Proofs
    A proof is a valid argument that establishes the truth of a mathematical statement. A proof can use the hypothesis of the theorem, if any, axioms assumed to be true, and previously proven theorems. Using these ingredients and rules of inference, the final step of the proof establishes the truth of t
    14 min read
    Discrete Mathematics - Applications of Propositional Logic
    A proposition is an assertion, statement, or declarative sentence that can either be true or false but not both. For example, the sentence "Ram went to school." can either be true or false, but the case of both happening is not possible. So we can say, the sentence "Ram went to school." is a proposi
    11 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences