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

57 lines
835 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 : :=
begin
assume n m,
apply n
end
example : :=
begin
assume (n m : ),
apply n
end
example : :=
begin
assume n : × <|> assume n m : ,
apply n
end
example : ¬false :=
begin
assume contr,
apply contr
end
example : Π α : Type, αα :=
begin
assume α,
assume a : α,
apply a
end
example : :=
begin
assume n m : bool,
apply n
end
example : :=
begin
have : _ → ,
{ assume m : ,
have: := m,
have: , from m,
have: , by apply m,
apply this },
{ assume n, apply this },
end
example (f : ) : bool :=
begin
have : , by skip; apply f 0,
end
example (f : ) : bool :=
begin
suffices: → bool, from this 0,
end