lean4-htt/tests/lean/run/1675.lean
Leonardo de Moura 14d768ffa2 feat(library/init/meta/interactive): add simp_all tactic
@Armael I added the simp_all tactic. See new test for an example.
2017-06-21 20:43:56 -07:00

10 lines
184 B
Text

def foo (a b : nat) : Prop :=
a = 0 ∧ b = 0
attribute [simp] foo
example (p : nat → Prop) (a b : nat) : foo a b → p (a + b) → p 0 :=
begin
intros h₁ h₂,
simp_all
end