lean4-htt/tests/lean/run/452.lean
Leonardo de Moura b52edf1259 fix: fixes #452
The new syntax is similar to `matchAlts` and uses `colGe`.
The first `|` is not optional anymore.
2021-05-10 17:28:10 -07:00

14 lines
332 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 (h : x y) : y x := by
cases h with
| inl hx => first
| apply Or.inr; assumption
| apply Or.inl; assumption
| inr hy => exact Or.inl hy
example (h : x y) : y x := by
cases h with
| inl hx => first
| apply Or.inl; assumption
| apply Or.inr; assumption
| inr hy => exact Or.inl hy