lean4-htt/tests/lean/run/set_attr1.lean
Leonardo de Moura 76eed7cb41 chore(library/init/meta): add to_unfold parameter to simplify, and remove redundant simp* tactics
Remark: the `to_unfold` has not been implemented yet.
2017-07-02 15:26:06 -07:00

11 lines
243 B
Text

open tactic
constant f : nat → nat
constant foo : ∀ n, f n = n + 1
constant zadd : ∀ n, 0 + n = n
definition ex1 (n : nat) : 0 + f n = n + 1 :=
by do
set_basic_attribute `simp `foo ff,
set_basic_attribute `simp `zadd ff,
`[simp]