Skip to content

Commit 0db8fb9

Browse files
committed
chore(Algebra/Order/Sub): golf entire tsub_min (#28388)
1 parent 4cb1b3c commit 0db8fb9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Mathlib/Algebra/Order/Sub/Basic.lean

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,7 @@ theorem tsub_add_eq_max : a - b + b = max a b := by
182182

183183
theorem add_tsub_eq_max : a + (b - a) = max a b := by rw [add_comm, max_comm, tsub_add_eq_max]
184184

185-
theorem tsub_min : a - min a b = a - b := by
186-
rcases le_total a b with h | h
187-
· rw [min_eq_left h, tsub_self, tsub_eq_zero_of_le h]
188-
· rw [min_eq_right h]
185+
theorem tsub_min : a - min a b = a - b := (tsub_eq_tsub_min a b).symm
189186

190187
theorem tsub_add_min : a - b + min a b = a := by
191188
rw [← tsub_min, @tsub_add_cancel_of_le]

0 commit comments

Comments
 (0)