lean4-htt/tests/lean/run/eq9.lean
Leonardo de Moura 87932f1c56 feat(frontends/lean): change notation for inaccessible patterns
The following are accepted
 .(t)
 ._

We don't accept .t anymore because it will conflict with the field
access notation.
2017-03-28 16:09:15 -07:00

7 lines
244 B
Text

open nat
attribute [pattern] lt.base
attribute [pattern] lt.step
theorem lt_succ {a : nat} : ∀ {b : nat}, a < b → succ a < succ b
| .(succ a) (lt.base .(a)) := lt.base (succ a)
| .(succ b) (@lt.step .(a) b h) := lt.step (lt_succ h)