fix nth_rewrite warning
This commit is contained in:
@@ -138,6 +138,20 @@ will change the goal to `succ 1 + succ 1 = 4`.
|
|||||||
-/
|
-/
|
||||||
TacticDoc «repeat»
|
TacticDoc «repeat»
|
||||||
|
|
||||||
|
/--
|
||||||
|
## Summary
|
||||||
|
|
||||||
|
If `h : X = Y` and there are several `X`s in the goal, then
|
||||||
|
`nth_rewrite 3 [h]` will just change the third `X` to a `Y`.
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
If the goal is `2 + 2 = 4` then `nth_rewrite 2 [two_eq_succ_one]`
|
||||||
|
will change the goal to `2 + succ 1 = 4`. In contrast, `rw [two_eq_succ_one]`
|
||||||
|
will change the goal to `succ 1 + succ 1 = 4`.
|
||||||
|
-/
|
||||||
|
TacticDoc nth_rewrite
|
||||||
|
|
||||||
NewTactic rw
|
NewTactic rw
|
||||||
|
|
||||||
NewHiddenTactic «repeat» nth_rewrite
|
NewHiddenTactic «repeat» nth_rewrite
|
||||||
|
|||||||
@@ -10,22 +10,6 @@ TheoremTab "012"
|
|||||||
|
|
||||||
namespace MyNat
|
namespace MyNat
|
||||||
|
|
||||||
/--
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
If `h : X = Y` and there are several `X`s in the goal, then
|
|
||||||
`nth_rewrite 3 [h]` will just change the third `X` to a `Y`.
|
|
||||||
|
|
||||||
## Example
|
|
||||||
|
|
||||||
If the goal is `2 + 2 = 4` then `nth_rewrite 2 [two_eq_succ_one]`
|
|
||||||
will change the goal to `2 + succ 1 = 4`. In contrast, `rw [two_eq_succ_one]`
|
|
||||||
will change the goal to `succ 1 + succ 1 = 4`.
|
|
||||||
-/
|
|
||||||
TacticDoc nth_rewrite
|
|
||||||
|
|
||||||
NewHiddenTactic nth_rewrite
|
|
||||||
|
|
||||||
Introduction
|
Introduction
|
||||||
" Good luck!
|
" Good luck!
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user