tactic.all_rewrites

return a lazy list of (t, n, k) where

tactic.interactive.perform_nth_rewrite

perform_nth_write n rules performs only the nth possible rewrite using the rules.

The core rewrite has a occs configuration setting intended to achieve a similar purpose, but this doesn't really work. (If a rule matches twice, but with different values of arguments, the second match will not be identified.)

tactic.interactive.nth_rewrite_lhs

As for perform_nth_rewrite, but only working on the left hand side.

tactic.interactive.nth_rewrite_rhs

As for perform_nth_rewrite, but only working on the right hand side.