lean4-htt/tests/lean/tacUnsolvedGoalsErrors.lean
2021-05-21 17:13:33 -07:00

29 lines
682 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.

theorem ex1 (p q r : Prop) (h1 : p q) (h2 : p → q) : q :=
have : q := by -- Error here
skip
by skip -- Error here
skip
theorem ex2 (p q r : Prop) (h1 : p q) (h2 : p → q) : q :=
have : q := by {
skip
} -- Error here
by skip -- Error here
skip
theorem ex3 (p q r : Prop) (h1 : p q) (h2 : p → q) : q := by
cases h1
{ skip
skip } -- Error here
{ skip
skip } -- Error here
theorem ex4 (p q r : Prop) (h1 : p q) (h2 : p → q) : q := by
first | done | apply ex3 p q r h1 h2
theorem ex5 (p q r : Prop) (h1 : p q) (h2 : p → q) : q := by
cases h1
. skip -- Error here
skip
. skip -- Error here
skip