lean4-htt/tests/lean/run/kdepends_on.lean
2017-05-15 09:41:31 -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