lean4-htt/tests/lean/case.lean
2017-04-11 17:07:28 -07:00

34 lines
496 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

example (xs : list ) : :=
begin
induction xs,
case list.cons {}
end
example (xs : list ) : :=
begin
cases xs,
case list.cons {}
end
example (xs : list ) : :=
begin
induction xs,
case list.cons x xs {
cases xs,
case list.cons x xs {}
}
end
open list
example (xs : list ) : :=
begin
induction xs,
case cons {}
end
example (xs : list ) : :=
begin
induction xs,
case list.cons x xs ih { apply ih },
case list.nil { apply 0 }
end