Skip to content

Commit

Permalink
improve hint in implication lvl 4 #28
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Oct 16, 2023
1 parent a8ad0f3 commit 2fc242d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Game/Levels/Implication/L04succ_inj.lean
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ Statement (x : ℕ) (h : x + 1 = 4) : x = 3 := by
rw [four_eq_succ_three] at h
Hint "Now rewrite `succ_eq_add_one` backwards at `h`
to get the right hand side."
Hint (hidden := true) "`rw [← succ_eq_add_one] at h`. Look at the
docs for `rw` for an explanation. Type `←` with `\\l`."
Hint "You can put a `←` in front of any theorem provided to `rw` to rewrite
the other way around. Look at the docs for `rw` for an explanation. Type `←` with `\\l`."
Hint (hidden := true) "Concretely: `rw [← succ_eq_add_one] at h`."
rw [←succ_eq_add_one] at h
Hint "Now let's `apply` our new theorem. Execute `apply succ_inj at h`
to change `h` to a proof of `x = 3`."
Expand Down

0 comments on commit 2fc242d

Please sign in to comment.