feat: add autoParam

This commit is contained in:
Leonardo de Moura 2020-02-13 10:53:01 -08:00
parent d62aafdb94
commit 4fe0104b52

View file

@ -132,6 +132,13 @@ mkNameNum g.namePrefix g.idx
end NameGenerator
/--
Gadget for automatic parameter support. This is similar to the `optParam` gadget, but it uses
the tactic declaration name `tacName` to synthesize the argument.
Like `optParam`, this gadget only affects elaboration.
For example, the tactic will *not* be invoked during type class resolution. -/
abbrev autoParam.{u} (α : Sort u) (tacName : Name) : Sort u := α
/-
Small DSL for describing parsers. We implement an interpreter for it
at `Parser.lean` -/