Skip to content

Commit 954af46

Browse files
committed
Long lines etc
1 parent fcfb0f5 commit 954af46

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

Mathlib/Topology/Algebra/InfiniteSum/Order.lean

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,14 @@ theorem hasSum_of_isLUB [CanonicallyLinearOrderedAddMonoid α] [TopologicalSpace
249249

250250
theorem summable_abs_iff [LinearOrderedAddCommGroup α] [UniformSpace α] [UniformAddGroup α]
251251
[CompleteSpace α] {f : ι → α} : (Summable fun x => |f x|) ↔ Summable f :=
252-
have h1 : ∀ x : { x | 0 ≤ f x }, |f x| = f x := fun x => abs_of_nonneg x.2
253-
have h2 : ∀ x : ↑({ x | 0 ≤ f x }ᶜ), |f x| = -f x := fun x => abs_of_neg (not_le.1 x.2)
252+
let s := { x | 0 ≤ f x }
253+
have h1 : ∀ x : s, |f x| = f x := fun x => abs_of_nonneg x.2
254+
have h2 : ∀ x : ↑(sᶜ), |f x| = -f x := fun x => abs_of_neg (not_le.1 x.2)
254255
calc (Summable fun x => |f x|) ↔
255-
(Summable fun x : { x | 0 ≤ f x } => |f x|) ∧ Summable fun x : ↑({ x | 0 ≤ f x }ᶜ) => |f x| :=
256+
(Summable fun x : s => |f x|) ∧ Summable fun x : ↑(sᶜ) => |f x| :=
256257
summable_subtype_and_compl.symm
257-
_ ↔ (Summable fun x : { x | 0 ≤ f x } => f x) ∧ Summable fun x : ↑({ x | 0 ≤ f x }ᶜ) => -f x := by
258-
simp only [h1, h2]
259-
_ ↔ _ := by simp only [summable_neg_iff, summable_subtype_and_compl]
258+
_ ↔ (Summable fun x : s => f x) ∧ Summable fun x : ↑(sᶜ) => -f x := by simp only [h1, h2]
259+
_ ↔ Summable f := by simp only [summable_neg_iff, summable_subtype_and_compl]
260260
#align summable_abs_iff summable_abs_iff
261261

262262
alias summable_abs_iff ↔ Summable.of_abs Summable.abs
@@ -274,21 +274,17 @@ theorem Finite.of_summable_const [LinearOrderedAddCommGroup α] [TopologicalSpac
274274
have : Fintype ι := fintypeOfFinsetCardLe n this
275275
infer_instance
276276

277-
theorem Set.Finite.of_summable_const [LinearOrderedAddCommGroup α] [TopologicalSpace α] [Archimedean α]
278-
[OrderClosedTopology α] {b : α} (hb : 0 < b) (hf : Summable fun _ : ι => b) :
277+
theorem Set.Finite.of_summable_const [LinearOrderedAddCommGroup α] [TopologicalSpace α]
278+
[Archimedean α] [OrderClosedTopology α] {b : α} (hb : 0 < b) (hf : Summable fun _ : ι => b) :
279279
(Set.univ : Set ι).Finite :=
280280
finite_univ_iff.2 <| .of_summable_const hb hf
281281
#align finite_of_summable_const Set.Finite.of_summable_const
282282

283283
end LinearOrder
284284

285285
theorem Summable.tendsto_atTop_of_pos [LinearOrderedField α] [TopologicalSpace α] [OrderTopology α]
286-
{f : ℕ → α} (hf : Summable f⁻¹) (hf' : ∀ n, 0 < f n) : Tendsto f atTop atTop := by
287-
rw [← inv_inv f]
288-
apply Filter.Tendsto.inv_tendsto_zero
289-
apply tendsto_nhdsWithin_of_tendsto_nhds_of_eventually_within _ (Summable.tendsto_atTop_zero hf)
290-
rw [eventually_iff_exists_mem]
291-
refine' ⟨Set.Ioi 0, Ioi_mem_atTop _, fun _ _ => _⟩
292-
rw [Set.mem_Ioi, inv_eq_one_div, one_div, Pi.inv_apply, _root_.inv_pos]
293-
exact hf' _
286+
{f : ℕ → α} (hf : Summable f⁻¹) (hf' : ∀ n, 0 < f n) : Tendsto f atTop atTop :=
287+
inv_inv f ▸ Filter.Tendsto.inv_tendsto_zero <|
288+
tendsto_nhdsWithin_of_tendsto_nhds_of_eventually_within _ hf.tendsto_atTop_zero <|
289+
eventually_of_forall fun _ => inv_pos.2 (hf' _)
294290
#align summable.tendsto_top_of_pos Summable.tendsto_atTop_of_pos

0 commit comments

Comments
 (0)