May 7, 2026
Highly Recommended

Mathematical Logic & Truth Tables

Introduction to logic statements, truth values, and logical connectives used in computational theory.

Mathematical Logic & Truth Tables Mathematical Logic for MCA

Mathematical Logic for MCA

Logic is the foundation of computer science. In this section, we will cover the basic concepts of mathematical logic, including statements, logical connectives, and truth tables.

1. Statements

A statement (or proposition) is a declarative sentence that is either true or false, but not both.

Example:

  • "The Earth is round" (True)
  • "$$2 + 2 = 5$$" (False)

2. Logical Connectives

We use connectives to build compound statements.

A. Conjunction (AND)

The conjunction of pp and qq is denoted by pqp \land q. It is true only if both pp and qq are true.

$p$$q$$p \land q$
TTT
TFF
FTF
FFF

B. Disjunction (OR)

The disjunction of pp and qq is denoted by pqp \lor q. It is false only if both pp and qq are false.

C. Negation (NOT)

The negation of pp is denoted by ¬p\neg p. It has the opposite truth value of pp.

3. Conditional and Biconditional

  • Conditional: $p \to q$ (If $p$, then $q$)
  • Biconditional: $p \leftrightarrow q$ ($p$ if and only if $q$)

Contrapositive

The contrapositive of pqp \to q is ¬q¬p\neg q \to \neg p.
Theorem: A conditional statement is logically equivalent to its contrapositive.

4. Tautology and Contradiction

  • Tautology: A compound statement that is always true (e.g., $p \lor \neg p$).
  • Contradiction: A compound statement that is always false (e.g., $p \land \neg p$).

Summary

Understanding these basics is crucial for digital logic and programming.

Hi! Need help with studies? 👋
AI