Skip to content

Commit

Permalink
doc(docs/tactics): Document the find command (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMassot authored and digama0 committed Feb 25, 2018
1 parent 1630725 commit c88a9e6
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions docs/tactics.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Mathlib tactics #

In addition to [core tactics](https://leanprover.github.io/reference/tactics.html),
mathlib provides a number of specific interactive tactics. Here we document
the mostly commonly used ones.
mathlib provides a number of specific interactive tactics and commands.
Here we document the mostly commonly used ones.

### rcases

Expand Down Expand Up @@ -80,3 +80,15 @@ Based on [Proving Equalities in a Commutative Ring Done Right in Coq](http://www

* `exactI`: Like `exact`, but uses all variables in the context
for typeclass inference.

### find

The `find` command from `tactic.find` allows to find lemmas using
pattern matching. For instance:

```lean
import tactic.find
#find _ + _ = _ + _
#find (_ : ℕ) + _ = _ + _
```

0 comments on commit c88a9e6

Please sign in to comment.