The new syntax is similar to `matchAlts` and uses `colGe`. The first `|` is not optional anymore.
14 lines
332 B
Text
14 lines
332 B
Text
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
|