Appearance
Fundamentals
Basic Logic Inference
Equivalence
Equality Problem Find the equivalence of equality problem :
, reduce the equality problem to a pair of inequality problems. , introducing multiplication by identity.
Inequalitiy Problem Find the equivalence of inequality problem :
, reduce the inequality problem to its negation. , reduce the inequality problem to a pair of inequalities with an intermediate value .
Counting
Counting Multisets
Definition : Multiset is a special kind of set where elements are allowed to appear more than once.
Given a multiset with
Proof : This is a typical example of star-and-bars problem, which is a combinatorial method used to determine the number of ways to place
Counting Permutations of Multisets
Given a multiset with
Pigeonhole Principle
Definition : If
Example : Choose
Proof :
- divide
into five buckets containing separately. - By the pigeonhole principle, since we are choosing
numbers and there are only buckets, at least one bucket must contain at least two chosen numbers. - The two numbers in the same bucket sum to
.
Combinatorial Proof
Proof : The left-hand side describes the number of ways to choose
- The first item of the set is chosen. Then we only need to choose the remaining
elements from the remaining elements, which can be done in ways. - The first item of the set is not chosen. Then we need to choose all
elements from the remaining elements, which can be done in ways.
How to Prove Conditional Statements
Regardint statement
Direct Proof
Methodology of direct proof
The methodology of direct proof involves assuming the premise
- write down the line of premise
in the proof. - write down the line of conclusion
in the proof, left the middle part empty. - fill in the middle part with logical reasoning and known facts to connect
to , in practice the process is not always straightforward from top to bottom, and it may jump between up and down until the connection happens in the middle of somewhere.
Using Cases
Given statement
- Consider the first case
. Prove that . - Consider the second case
. Prove that . - Both cases hold, then we have
This is a basic technique in direct proof, often referred to as proof by cases, which can be formulated as: