Skip to content

Commit 9d28854

Browse files
committed
style changes
1 parent 0ce4b41 commit 9d28854

1 file changed

Lines changed: 23 additions & 17 deletions

File tree

Mathlib/Dynamics/BirkhoffSum/Maximal.lean

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,15 @@ theorem birkhoffAverageSupSet_eq_birkhoffSupSet {f : α → α} {g a} (ha : 0 <
206206
birkhoffAverageSupSet f g a = birkhoffSupSet f (g - fun _ ↦ a) := by
207207
unfold birkhoffAverageSupSet birkhoffSupSet
208208
have {n x} : a < birkhoffAverage ℝ f g n x ↔ 0 < birkhoffSum f (g - fun _ ↦ a) n x := by
209-
cases n with
210-
| zero =>
211-
refine ⟨fun h => ?_, fun h => ?_⟩
212-
· exfalso; rw [birkhoffAverage_zero] at h; exact lt_asymm ha h
213-
· exfalso; rw [birkhoffSum_zero] at h; exact lt_irrefl 0 h
214-
| succ n => exact birkhoffAverage_iff_birkhoffSum (by positivity)
209+
rcases n
210+
· refine ⟨fun h => ?_, fun h => ?_⟩
211+
· exfalso
212+
rw [birkhoffAverage_zero] at h;
213+
exact lt_asymm ha h
214+
· exfalso
215+
rw [birkhoffSum_zero] at h
216+
exact lt_irrefl 0 h
217+
· exact birkhoffAverage_iff_birkhoffSum (by positivity)
215218
conv =>
216219
enter [1, 1, x, 1, n]
217220
rw [this]
@@ -248,21 +251,22 @@ theorem setIntegral_nonneg_on_birkhoffSupSet :
248251

249252
variable [IsFiniteMeasure μ]
250253

251-
/-- **Maximal ergodic theorem**: The measure of the set where the supremum of the Birkhoff
252-
averages of `g` is greater than `a`, multiplied by `a`, is bounded above by the integral of
253-
`g` on this set. -/
254+
/-- The measure of the set where the supremum of the Birkhoff averages of `g` is greater than `a`,
255+
multiplied by `a`, is bounded above by the integral of `g` on this set. -/
254256
public theorem meas_birkhoffAverageSupSet_smul_const_le_integral (a : ℝ) (ha : 0 < a) :
255-
μ.real (birkhoffAverageSupSet f g a) • a ≤ ∫ x in birkhoffAverageSupSet f g a, g x ∂μ := by
257+
a * μ.real (birkhoffAverageSupSet f g a) ≤ ∫ x in birkhoffAverageSupSet f g a, g x ∂μ := by
256258
have p₁ := Integrable.sub hg (integrable_const a)
257259
calc
258260
_ = ∫ x in birkhoffSupSet f (g - fun _ ↦ a), a ∂μ := by
259-
rw [setIntegral_const, birkhoffAverageSupSet_eq_birkhoffSupSet ha]
261+
simp [birkhoffAverageSupSet_eq_birkhoffSupSet ha]
262+
ring
260263
_ ≤ ∫ x in birkhoffSupSet f (g - fun _ ↦ a), a ∂μ +
261264
∫ x in birkhoffSupSet f (g - fun _ ↦ a), g x - a ∂μ := by
262265
exact le_add_of_nonneg_right (setIntegral_nonneg_on_birkhoffSupSet μ hf p₁)
263266
_ = ∫ x in birkhoffAverageSupSet f g a, g x ∂μ := by
264267
rw [← integral_add, birkhoffAverageSupSet_eq_birkhoffSupSet ha]
265-
· rcongr; grind
268+
· rcongr
269+
ring
266270
· exact (integrable_const a).restrict
267271
· exact p₁.restrict
268272

@@ -274,11 +278,13 @@ variable {E : Type*} [NormedAddCommGroup E] {g : α → E} (hg : Integrable g μ
274278

275279
include hg
276280

277-
/-- **Maximal ergodic theorem** for group-valued functions: The measure of the set where
278-
the supremum of the Birkhoff averages of `‖g‖` is greater than `a`, multiplied by `a`, is
279-
bounded above by the norm of `g`. -/
280-
public theorem meas_birkhoffAverageSupSet_smul_const_le_norm (a : ℝ) (ha : 0 < a) :
281-
μ.real (birkhoffAverageSupSet f (fun x ↦ ‖g x‖) a) • a ≤ ∫ x, ‖g x‖ ∂μ :=
281+
/-- Maximal ergodic theorem: maximal ergodic operator satisfies a weak-type inequality. -/
282+
public theorem meas_birkhoffAverageSupSet_smul_const_le_norm :
283+
⨆ a, a * μ.real (birkhoffAverageSupSet f (fun x ↦ ‖g x‖) a) ≤ ∫ x, ‖g x‖ ∂μ := by
284+
refine ciSup_le fun a ↦ ?_
285+
by_cases! ha : 0 < a; swap
286+
· apply mul_nonpos_of_nonpos_of_nonneg ha measureReal_nonneg |>.trans
287+
exact integral_nonneg (fun _ ↦ norm_nonneg _)
282288
calc
283289
_ ≤ ∫ x in birkhoffAverageSupSet f (fun x ↦ ‖g x‖) a, ‖g x‖ ∂μ := by
284290
exact meas_birkhoffAverageSupSet_smul_const_le_integral μ hf hg.norm a ha

0 commit comments

Comments
 (0)