lean4-htt/old_tests/tests/lean/run/kdepends_on.lean
2018-04-10 12:56:55 -07:00

11 lines
301 B
Text

open tactic
example (f : nat → nat) (a : nat) : f (f (a + 0)) = a → true :=
by do
t ← target,
s ← to_expr ```(f a),
b ← kdepends_on t s, guard ¬b,
b ← kdepends_on t s semireducible, guard b,
s ← to_expr ```(f (a + 0)),
b ← kdepends_on t s, guard b,
intros, constructor