lean2/tests/lean/run/tactic4.lean
Leonardo de Moura e51c4ad2e9 feat(frontends/lean): rename 'using' command to 'open'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-03 16:00:38 -07:00

12 lines
230 B
Text

import logic
open tactic (renaming id->id_tac)
definition id {A : Type} (a : A) := a
definition simple {A : Prop} : tactic
:= unfold @id.{1}; assumption
theorem tst {A B : Prop} (H1 : A) (H2 : B) : id A
:= by simple
check tst