@@ -244,8 +244,8 @@ instance instBoundedOrder [OrderTop α] : BoundedOrder (WithZero α) :=
244244instance : IsBotZeroClass (WithZero α) where
245245 isBot_zero _ := bot_le
246246
247- -- TODO: deprecate
248- lemma zero_le (a : WithZero α) : 0 ≤ a := by simp
247+ @ [ deprecated _root_.zero_le (since := "2026-05-06" )]
248+ protected lemma zero_le (a : WithZero α) : 0 ≤ a := by simp
249249
250250/-- There is a general version `le_zero_iff`, but this lemma does not require a `PartialOrder`. -/
251251@[simp]
@@ -308,8 +308,8 @@ instance instPreorder : Preorder (WithZero α) := inferInstanceAs <| Preorder (W
308308instance instMulLeftMono [Mul α] [MulLeftMono α] :
309309 MulLeftMono (WithZero α) := by
310310 refine ⟨fun a b c hbc => ?_⟩
311- induction a; · exact zero_le _
312- induction b; · exact zero_le _
311+ induction a; · exact zero_le
312+ induction b; · exact zero_le
313313 rcases WithZero.coe_le_iff.1 hbc with ⟨c, rfl, hbc'⟩
314314 rw [← coe_mul _ c, ← coe_mul, coe_le_coe]
315315 exact mul_le_mul_right hbc' _
@@ -398,7 +398,7 @@ instance instPartialOrder : PartialOrder (WithZero α) :=
398398instance instMulLeftReflectLT [Mul α] [MulLeftReflectLT α] :
399399 MulLeftReflectLT (WithZero α) := by
400400 refine ⟨fun a b c h => ?_⟩
401- have := ((zero_le _).trans_lt h).ne'
401+ have := h.ne_zero
402402 induction a
403403 · simp at this
404404 induction c
@@ -511,7 +511,7 @@ instance instCanonicallyOrderedAdd [AddZeroClass α] [Preorder α] [CanonicallyO
511511
512512instance instLinearOrderedCommMonoidWithZero [CommMonoid α] [LinearOrder α]
513513 [IsOrderedCancelMonoid α] : LinearOrderedCommMonoidWithZero (WithZero α) where
514- isBot_zero := WithZero. zero_le
514+ isBot_zero _ := zero_le
515515 mul_lt_mul_of_pos_left
516516 | (a : α), _, 0 , (c : α), _ => by simp [← WithZero.coe_mul]
517517 | (a : α), _, (b : α), (c : α), hbc => by norm_cast at *; exact mul_lt_mul_right hbc _
0 commit comments