Induction and Relations Flashcards
Steps for Induction
1) Identify Predicate
2) Base Case
3) Inductive Hypothesis
4) Prove P(k) -> P(k+1)
Identify Predicate
Let P(n) denote ______ (given equation)
Base Case
Prove thing right after sum = thing after equals for the lowest ij/j value
Inductive Hypothesis
Let k >= ___ (i/j value) be arbitrary and SUPPOSE P(k). ie ______ (restate Predicate with k instead of n/m/whatever
Prove P(k) -> (Pk+1)
Sum k+1 = Sum k + (____) (thing right after sum but replace all k’s with (k+1).
Multiply k+1 = Multiply k * (____) thing right after multiply but replace all k’s with (k+1)
Binary Relation on a set A
a subset of AxA
Reflexive
1) Va in A, (a,a) in R
2) aRa
3) all elements point to themselves (loops)
Symmetric
1) Va,b in A, (a,b) in R -> (b,a) in R
2) aRb -> bRa
3) all arrows are double arrows
Antisymmetric
1) Va,b in A, (a,b) in R ^ (b,a) in R -> a=b
2) aRb ^ bRa -> a=b
3) all arrows are single arrows
Transitive
1) Va,b,c in A, (a,b) in R ^ (b,c) in R -> (a,c) in R
2) aRb ^ bRc -> aRc
3) Triangles everywhere. (One side points opposite direction for single arrows)
Equivalent Relation
For relations, notation: R
Reflexive, symmetric, transitive
Partial Order
For relations, notation: R
Reflexive, antisymmetric, transitive
Poset
For sets, notation: (A,R) (set, relation)
Reflexive, antisymmetric, transitive
Two elements are Comparable if
If a«b or b«a (they have an arrow somehow connecting them)
Total Order
A partial order where everything is comparable