Skip to content

Commit 5cb8c4f

Browse files
committed
refactor(MeasureTheory): golf Mathlib/MeasureTheory/Function/Egorov (leanprover-community#38884)
- shortens `tendstoUniformlyOn_diff_iUnionNotConvergentSeq` by extracting the needed distance bound from `hx` with a single `not_lt.mp` argument, instead of unpacking `hx` via a long `simp`/`push Not` chain Extracted from leanprover-community#38104 [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)
1 parent a7c945e commit 5cb8c4f

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

Mathlib/MeasureTheory/Function/Egorov.lean

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,10 @@ theorem tendstoUniformlyOn_diff_iUnionNotConvergentSeq (hε : 0 < ε)
168168
obtain ⟨N, hN⟩ := ENNReal.exists_inv_nat_lt hδ.ne'
169169
rw [eventually_atTop]
170170
refine ⟨Egorov.notConvergentSeqLTIndex (half_pos hε) hf hsm hs hfg N, fun n hn x hx => ?_⟩
171-
simp only [Set.mem_diff, Egorov.iUnionNotConvergentSeq, not_exists, Set.mem_iUnion,
172-
Set.mem_inter_iff, not_and, exists_and_left] at hx
173-
obtain ⟨hxs, hx⟩ := hx
174-
specialize hx hxs N
175-
rw [Egorov.mem_notConvergentSeq_iff] at hx
176-
push Not at hx
177-
rw [edist_comm]
178-
exact lt_of_le_of_lt (hx n hn) hN
171+
refine lt_of_le_of_lt ?_ hN
172+
have : edist (f n x) (g x) ≤ (N : ℝ≥0∞)⁻¹ :=
173+
not_lt.mp fun h ↦ hx.2 <| Set.mem_iUnion.2 ⟨N, hx.1, mem_notConvergentSeq_iff.2 ⟨n, hn, h⟩⟩
174+
simpa [edist_comm]
179175

180176
end Egorov
181177

0 commit comments

Comments
 (0)