lean4-htt/tests/lean/run/simulate_on.lean
Leonardo de Moura 9555a104d6 feat(library/init/meta/tactic): simplify ‹p› notation
@jroesch See the new test :)
2017-07-07 12:05:02 -07:00

7 lines
214 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

example (a b c : nat) : a = 0 → b = 1 → c = 0 → b + a + c = b :=
begin
intros,
repeat {subst _ = 0}, -- substitute all equalities of the form `_ = 0`
guard_target b + 0 + 0 = b,
reflexivity
end