MAT102 Lecture 18
- Base Case
- Something is in a set
- Constructors
- If something is in a set, then
the set. - Sets and recursively define other things in the set.
- If
is true then is true. - Predicates and recursively define another predicate to be true, based on the last one.
- If something is in a set, then
- Define a set
such that: : If then : If then - Show that if
then - Example:
- Apply
to - Apply
to
- Apply
- Base Case:
- Constructors:
: If then : If then
- Suppose that
, then . Let based on the constructors ( , ) from the base case, let's show that . - Base Case 1:
: - True
- Base Case 2:
: - True
- Constructed Cases:
- We know that if
for some . - This means
is an integer, so we have proved that in the first case is true.
is also an integer, so this proves 's case is true.
- This means
- Base Case 1:
- Solution:
- Prove that
is true and is the base case: - Prove the
and - Base Case:
is true
- Case
: - Suppose that
and - Apply
- Does
- Yes because:
- So then
- Suppose that
- Case
: - Suppose that
and - Apply
- Does
- Yes:
- So then
- Suppose that
- Prove that
- 1
- b
- If you go first:
- Get both stacks to
. By turns, the other player will get the stack down, then you can get the last turn. - Try not to get forced to
. - If
gets their turn on a case where it's , they will lose if knows what to do.
- Get both stacks to
- If you go second:
- Get both stacks to
, or to . Then you get decrement by or to win. - Doesn't matter what the other person plays in this scenario.
- Try to force them in a position where the stack is
and you're the second one to take it to .
- Get both stacks to
- Examples:
tries to win. - - - - - - wins
- Proof:
- Case 1:
's turn, it's , then can decrement by until we get; 's turn and it's - Then
wins, because it was 's turn on the case.
- Case 2:
- Case 1:
- Induction
- Claim:
has a winning strategy of mimicking . - Proof:
- Induct on number of coins.
- Base Case
wins
- Induction Hypothesis:
- Suppose any game of
coins results in winning. - Prove
: removes coins from a pile, mimics - Thus there are
coins in each pile. - By
will win.
- Suppose any game of
- Claim:
- If you go first:
- c
- I don't think it changes when the pile of coins are
. - In this case you can control who gets to the
or the case first.
- I don't think it changes when the pile of coins are
- b