Discrete Mathematics 01: Logic, Proofs, and Set Theory
Propositional Logic
Declarative Statements and Propositions
Informally, a proposition is defined as a declarative sentence (a statement) in a language that is subject to being either true or false.
Truth Values and Logical Operators
Negation ():
Let be a proposition. The negation of , denoted by , represents "not ", "It is not the case that ", or " is not true".
The proposition takes the exact opposite truth value of .
Conjunction ():
Let and be propositions. The conjunction of and , denoted by , represents " and ".
The compound statement evaluates to true if both and are true, and false otherwise.
Disjunction ():
Let and be propositions. The disjunction of and , denoted by , represents " or " (inclusive or, meaning maybe both).
The compound statement evaluates to false if both and are false, and true otherwise.
Exclusive OR ():
Let and be propositions. The exclusive or of and , denoted by , represents " or but not both".
The compound statement evaluates to true if exactly one of and is true, and false otherwise.
Conditional Statement or Implication ():
Let and be propositions. The conditional statement or implication represents "if then " or " implies ".
The implication evaluates to false when is true and is false; in all other cases, it evaluates to true.
Related Conditional Statements:
Converse: For a given conditional statement , its converse is defined as the conditional .
Contrapositive: For a given conditional statement , its contrapositive is defined as the conditional .
Inverse: For a given conditional statement , its inverse is defined as the conditional .
Biconditional Statement ():
Let and be propositions. The biconditional statement represents " if and only if " or " is necessary and sufficient for ".
The statement evaluates to true when both and share the same truth value (both true or both false); it evaluates to false in any other case.
Tautologies, Contradictions, and Logical Equivalence
Tautology: A compound proposition that evaluates to true under all possible truth value assignments for its propositional variables.
Contradiction: A compound proposition that evaluates to false under all possible truth value assignments for its propositional variables.
Logical Equivalence ():
Let and be propositions. and are logically equivalent, written as , if they have the same truth value in all possible cases.
Equivalently, and are logically equivalent if the biconditional statement is a tautology.
De Morgan's Laws:
Let and be propositions. Then:
Digital Logic and Bit Operations
Bit Definition: A bit is the most basic unit of information in computing, having two possible states: (true) or (false).
Boolean Variables: A Boolean variable is a variable that can take two values: or . Thus, a bit represents a Boolean variable.
Bit Operations:
NOT: A unary operation that performs a logical negation on a single bit (inverting its value).
AND: A binary operation performing a logical conjunction () across two bits.
OR: A binary operation performing a logical disjunction () across two bits.
XOR: A binary operation performing a logical exclusive OR () across two bits.
Predicate Logic
Basic Definitions
Term: An expression that represents "an object" or "a thing".
Predicate: A symbol that represents a property or a relation.
Domain of Discourse (): Informally, the domain of discourse (denoted by ) is the set of all objects in a theory, or the universe of possible objects that might be considered subject to predicates.
Quantifiers
Universal Quantifier ():
Given a predicate and a variable , the statement means that predicate is true for all elements within the domain of discourse ("For all , ").
Existential Quantifier ():
Given a predicate and a variable , the statement means that there exists at least one element in the domain of discourse for which the predicate is true ("There exists such that ").
Logical Equivalence and Negation in Predicate Logic
Logical Equivalence: Two statements involving predicates and quantifiers are logically equivalent if they always have the same truth value, regardless of what predicates are substituted in the statements and what domain of discourse is being used.
Negation of Quantifiers:
Let be a predicate in some domain of discourse . Then:
Deductive Reasoning and Rules of Inference
Structure of Deduction
Deductive Principle: Let and be propositions. If is a tautology and all premises are true, then must be true.
Deductive Deduction: Through this structure, can be formally deduced from the premises
Rules of Inference
Definition: A tautology of the form is called a rule of inference in propositional logic, allowing arguments to be conducted in a way that is always logically valid.
Proof Technique: Mathematical Induction
Principle of Mathematical Induction
Theorem: Let be a predicate defined for the natural numbers . If:
Basis step: holds true, and
Inductive step: holds for an arbitrary ,
Then is true for every .
Principle of Strong Induction
Theorem: Let be a predicate defined for the natural numbers . If:
Basis step: holds true, and
Inductive step: holds for an arbitrary ,
Then is true for every .
Fundamental Set Theory
Definitions and Basic Properties
Set Definition: Intuitively, a set is a collection of objects.
Elements / Members: The objects contained in a set are said to be its elements or members. If is an element of a set , write . If not, write
Structural Properties of Sets:
Unordered: A set is defined entirely by the elements belonging to it, meaning element order does not matter.
No Repeated Elements: A set cannot contain repeated elements. If an element belongs to a set, it already belongs; it does not make sense to "belong twice".
Empty Set (): The empty set is defined as the unique set containing no elements, denoted by
Relations Between Sets
Equal Sets ():
Two sets and are said to be equal if they have the exact same elements.
Formally: . Written as
Inclusion / Subset ():
A set is a subset of a set if every element of is an element of . Written as
Observation on Subsets:
For every set , the empty set is a subset of (
For every set , the set is a subset of itself (
Set Operations
Union ():
Let and be sets. The union of and , denoted , is the set containing all elements that are either in or in (or in both).
Set-builder notation:
Intersection ():
Let and be sets. The intersection of and , denoted , is the set containing all elements that are in both and
Set-builder notation:
Disjoint Sets: If two sets have an empty intersection (), they are said to be disjoint.
Difference / Relative Complement (, ):
Let and be sets. The difference of and (also called the complement of relative to ), denoted , is the set of all elements of that are not elements of
Set-builder notation:
Power Set ():
Let be a set. The power set of , denoted by or , is the set of all subsets of
Cartesian Product ():
Let and be sets. The Cartesian product of and , denoted , is the set of all ordered pairs where and
Set-builder notation: