Skip to content

Commit 7686185

Browse files
committed
feat(Order/Interval/Set/LinearOrder): add Ioi_diff_Ioc
1 parent 1757879 commit 7686185

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
@@ -547,6 +547,10 @@ theorem compl_Ioc : (Ioc a b)ᶜ = Iic a ∪ Ioi b := by
547547
theorem Iic_diff_Ioc : Iic b \ Ioc a b = Iic (a ⊓ b) := by
548548
grind
549549

550+
@[simp]
551+
theorem Ioi_diff_Ioc : Ioi a \ Ioc a b = Ioi (max a b) := by
552+
simp [diff_eq, compl_Ioc, inter_union_distrib_left, Ioi_inter_Iic, Ioi_inter_Ioi]
553+
550554
theorem Iic_diff_Ioc_self_of_le (hab : a ≤ b) : Iic b \ Ioc a b = Iic a := by
551555
grind
552556

0 commit comments

Comments
 (0)