Skip to content

Commit 9d9318c

Browse files
author
Joris van Winden
committed
golf based on reviewer suggestions
1 parent 92ad56d commit 9d9318c

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

Mathlib/Topology/Instances/EReal/Lemmas.lean

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -312,14 +312,11 @@ theorem limsup_const_mul_of_nonneg_of_ne_top [NeBot f] {c : EReal} (h₁ : 0 ≤
312312
simp_rw [EReal.mul_comm (x := c)]
313313
apply eq_of_le_of_ge
314314
· rw [limsup_le_iff]
315-
intro r hr
316-
rw [gt_iff_lt] at hr
317-
simp_rw [← EReal.lt_div_iff (by aesop) (by aesop)] at *
318-
apply eventually_lt_of_limsup_lt (hu := by isBoundedDefault) hr
315+
simpa [← EReal.lt_div_iff (by aesop) (by aesop)]
316+
using fun _ ↦ eventually_lt_of_limsup_lt
319317
· rw [le_limsup_iff]
320-
intro r hr
321-
simp_rw [← EReal.div_lt_iff (by aesop) (by aesop)] at *
322-
apply frequently_lt_of_lt_limsup (hu := by isBoundedDefault) hr
318+
simpa [← EReal.div_lt_iff (by aesop) (by aesop)]
319+
using fun _ ↦ frequently_lt_of_lt_limsup
323320

324321
set_option backward.isDefEq.respectTransparency false in
325322
lemma le_limsup_mul (hu : ∃ᶠ x in f, 0 ≤ u x) (hv : 0 ≤ᶠ[f] v) :

0 commit comments

Comments
 (0)