Natural Numbers Game (Buzzard)
11 flashcards · Mathematics · by lakesare
Give a catchphrase for refl.
Update goal: Solve A=A
Give a catchphrase for rw (h : A=B).
Update goal: Detect all As, supersede with B
What are these theorems about: zero_add add_zero
zero_add : what happens when we zero add smth add_zero : what happens when we smth add zero
Give a catchphrase for induction (n : Nat).
Fork goal: 1) prove base case 2) prove inductive case
Give a catchphrase for simp.
Update goal: Use all @[simp] lemmas to rw a goal. ⊢ a * t_n + b * t_n + (a + b) = a * t_n + a + (b * t_n + b) simp ⊢ Proof complete!
Give a cathphrase for: cases split
cases - cases SOMETHING (affects the hypothesis) split - split (affects the goal)
Give a cathphrase for by_cases.
Throw a truth table at it! Interestingly, by_cases assumes we have Classical.em.
Give catchphrases for what we should do: If we see = If we see →
If we see =, we should do rw! rw/reflIf we see →, we should do apply! exact/intro/have/apply
Visually imagine what are these about exact/intro/have/apply. To manipulate functions effectively, we need to learn about a new collection of tactics, namely exact, intro, have and apply. These tactics are specially designed for dealing with functions.
λ abstraction & application intro n - λ nexact n - return n
Give a catchphrase for simp.
Mb good for mazes wait, is simp for = of for ->? i think cc might be for ->, and simp might be for =.
Visually imagine what a ≠ b translates into.