← Back to Lean 4: Proofs a Computer Can Check
Module: Tactic Proofs
Practice Test: Tactic Proofs
Prove things step by step with tactics, rewriting and induction.
9 questions. 15 minutes. You need at least 7 right to pass. This test is optional. It does not mark any lesson complete and it does not count towards your certificate.
Time left: 15:00
1. In the infoview, what does the line after ⊢ show?
2. If the goal is r and you have hqr : q → r, what does apply hqr do?
3. What does cases h do when h : p ∨ q?
4. Given h : a = b, what does rw [← h] do?
5. Why might you prefer simp only [...] over plain simp?
6. What does simp? do?
7. Why does rfl prove n + 0 = n for an unknown n?
8. In the succ step of an induction proof, what is ih?
9. In the sumTo proof, what does rw [sumTo] do in the step case?