lean2/tests/lean/run/tactic29.lean
Leonardo de Moura c50227ea6e feat(library/tactic): change apply tactic semantics: goals are not reversed; and dependent arguments are not included
This commit also adds the tactic rapply that corresponds to the previous
semantics we have been using.
2014-10-22 18:11:09 -07:00

18 lines
319 B
Text

import logic
open tactic
section
set_option pp.universes true
set_option pp.implicit true
variable {A : Type}
variables {a b : A}
variable H : a = b
variables H1 H2 : b = a
check H1
check H
check H2
theorem test : a = b ∧ a = a
:= by apply and.intro; apply H; apply eq.refl
end
check @test