lean4-htt/tests/lean/tacUnsolvedGoalsErrors.lean
Leonardo de Moura 5caf1bc692 chore: style
Use `·` instead of `.` for structuring tactics.
2022-03-11 16:12:46 -08:00

29 lines
684 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