lean4-htt/tests/lean/run/kdepends_on.lean
2017-02-14 10:33:28 -08:00

11 lines
297 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