lean2/tests/lean/unfold_rec2.lean

11 lines
209 B
Text
Raw Normal View History

open nat
definition f (a n : ) : := nat.rec_on n (λa', a') (λn' f' a', f' (a' * 2)) a
example (a n : nat) : a = 2 → f a (succ n) = f 4 n :=
begin
unfold f at {1},
state,
intros, subst a
end