Skip to content

Commit 599f160

Browse files
committed
feat(Order/Interval/Set/LinearOrder): add Ioi_diff_Ioc
1 parent a786f33 commit 599f160

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Mathlib/Order/Interval/Set/LinearOrder.lean

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,10 @@ theorem compl_Ioc : (Ioc a b)ᶜ = Iic a ∪ Ioi b := by
559559
theorem Iic_diff_Ioc : Iic b \ Ioc a b = Iic (a ⊓ b) := by
560560
grind
561561

562+
@[simp]
563+
theorem Ioi_diff_Ioc : Ioi a \ Ioc a b = Ioi (max a b) := by
564+
simp [diff_eq, compl_Ioc, inter_union_distrib_left, Ioi_inter_Iic, Ioi_inter_Ioi]
565+
562566
theorem Iic_diff_Ioc_self_of_le (hab : a ≤ b) : Iic b \ Ioc a b = Iic a := by
563567
grind
564568

0 commit comments

Comments
 (0)