Skip to content

Commit e0d647d

Browse files
committed
feat(Order/Interval/Set/UnorderedInterval): add nonempty_uIoc
1 parent 58ed06d commit e0d647d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Mathlib/Order/Interval/Set/UnorderedInterval.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@ lemma uIoo_subset_Ioo (ha : a₁ ∈ Icc a₂ b₂) (hb : b₁ ∈ Icc a₂ b₂
377377
@[simp] lemma nonempty_uIoo [DenselyOrdered α] : (uIoo a b).Nonempty ↔ a ≠ b := by
378378
simp [uIoo, eq_comm]
379379

380+
@[simp] lemma nonempty_uIoc [DenselyOrdered α] : (uIoc a b).Nonempty ↔ a ≠ b := by
381+
simp [uIoc, eq_comm]
382+
380383
lemma uIoo_eq_union : uIoo a b = Ioo a b ∪ Ioo b a := by
381384
rcases lt_or_ge a b with h | h
382385
· simp [uIoo_of_lt, h, Ioo_eq_empty_of_le h.le]

0 commit comments

Comments
 (0)