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

9 lines
178 B
Text

def stack := list nat
instance : has_append stack :=
by unfold stack; apply_instance
example (s : stack) : s ++ [] = s :=
begin
induction s,
refl, apply list.append_nil
end