Discrete Mathematics (H) Lecture 1-3 Notes
Logic
Definition: Proposition
A proposition is a declarative statement that is either true or false.
Usually, propositions are condition-based. We can use logical connectives to build more complex propositions:
- Negation
- Conjunction
- Disjunction
- Exclusive or
- Implication
- Biconditional
Definition: Truth Table
A truth table displays the relationships between truth values of different propositions. The rows of a truth table list out all possible values of all elementary propositions.
Definition: Negation
Let
Definition: Conjunction
Let
Definition: Disjunction
Let
Definition: Exclusive Or
Let
Definition: Implication
Let
- if
then implies is sufficient for is necessary for follows from unless only if
The converse of
The contrapositive of
The inverse of
Definition: Biconditional
Let
- A compound proposition that is always true for all possible truth values is called a tautology.
- A compound proposition that is always false for all possible truth values is called a contradiction.
- A compound proposition that is neither tautology nor contradiction is called a contingency.
Definition: Logical Equivalence
Two proposition are equivalent if they always have the same truth value.
Alternative definition: The propositions
Logical Equivalence Laws
Distributive Laws
De Morgan’s Laws
Identity Laws
Domination Laws
Idempotent Laws
Double Negation Laws
Commutative Laws
Distributive Laws
Absorption Laws
Negation Laws
Useful Law
Computer Representation of True and False
A bit is sufficient to represent two possible values: 0 (false) or 1 (true). A variable that takes on values 0 and 1 is called a Boolean variable. A bit string is a sequence of zero or more bits, the length of such bit strings is the number of bits in the string.
Limitations of Propositional Logic
Propositional logic is the world described in terms of elementary propositions and their logical combinations. Elementary statements typically refer to objects, their properties and relations. But there exists some limitations of it, for example: - Repeated statements for many objects. - Statements that define the property of a group of objects. To solve this, we need to: - explicitly models objects and their properties, and - allows to make statements with variables and quantify them.
Predicate Logic
Basic building blocks of the predicate logic (or first-order logic):
- Constant
- Variable
- Predicate
Definition: Predicate
A predicate is a statement
The universe (or domain)
The truth set of
The logical connectives and corresponding rules in propositional logic are all usable in predicate logic.
There are two types of quantified statements: universal and existential.
Definition: Universal Quantification
The universal quantification of
Definition: Existential Quantification
The existential quantification of
Suppose that the elements in the universe can be numerated as
Caution
The truth values of
Caution
The quantifier has higher precedence than the logical connectives.
Tip
The universal quantifier
De Morgan’s Law for Quantifiers
Tip
The order of the quantifiers generally does matter. if the types of the nested quantifiers are the same, the order will have no matter at changing.
Theorems and Proofs
Definition: Axiom
An axiom and postulate is a statement or proposition which is regarded as being established, accepted, or self-evidently true.
Definition: Theorem
A theorem is a statement that can be proved to be true.
Definition: Lemma
A lemma is a statement that can be proved to be true, and is used in proving a theorem or proposition.
To show the truth value of a statement follows from other statements, we need to provide a correct supporting argument, a.k.a. proof.
Typically, a theorem looks like this:
Definition: Proof
A proof provides an argument supporting the validity of the statement, and may use premises, axioms, lemmas, results of other theorems, etc.
In formal proofs, steps follow logically from the set of premises, axioms, lemmas, and other theorems.
Some basic proof methods are:
- Direct proof
- Proof by contrapositive
- Proof by contradiction
- Proof by cases
- Proof of equivalence
Consider the truth table of the implication:
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
Then:
- direct proof proceeds by showing the first row.
- proof by contradiction proceeds by showing the second row.
- proof by contrapositive proceeds by showing the fourth row.
The proof by cases is based on the following logical equivalence:
Modus Ponens
Modus Tollens
Hypothetical Syllogism
Disjunctive Syllogism
Addition
Simplification
Conjunction
Resolution
Inference Rules for Quantified Statements
Universal Instantiation
Universal Generalization
Existential Instantiation
Existential Generalization
- Title: Discrete Mathematics (H) Lecture 1-3 Notes
- Author: Zhige Chen
- Created at : 2025-09-11 17:57:19
- Updated at : 2025-10-10 13:20:13
- Link: https://nofe1248.github.io/2025/09/11/discrete-math-lec-1/
- License: This work is licensed under CC BY-NC-SA 4.0.