Skip to content

Commit 14bbb10

Browse files
committed
remove duplicate declaration
1 parent 8bfad47 commit 14bbb10

19 files changed

Lines changed: 34 additions & 35 deletions

File tree

Mathlib/Analysis/Normed/Group/Basic.lean

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,11 @@ theorem norm_toNNReal' : ‖a‖.toNNReal = ‖a‖₊ :=
393393
lemma toReal_enorm' (x : E) : ‖x‖ₑ.toReal = ‖x‖ := by simp [enorm]
394394

395395
@[to_additive (attr := simp) ofReal_norm]
396-
lemma ofReal_norm' (x : E) : .ofReal ‖x‖ = ‖x‖ₑ := by
397-
simp [enorm, ENNReal.ofReal, Real.toNNReal, nnnorm]
396+
lemma ofReal_norm' (x : E) : .ofReal ‖x‖ = ‖x‖ₑ := ENNReal.ofReal_eq_coe_nnreal _
397+
398+
@[deprecated (since := "2026-05-25")] alias ofReal_norm_eq_enorm := ofReal_norm
399+
400+
@[deprecated (since := "2026-05-25")] alias ofReal_norm_eq_enorm' := ofReal_norm'
398401

399402
@[to_additive enorm_eq_iff_norm_eq]
400403
theorem enorm'_eq_iff_norm_eq {x : E} {y : F} : ‖x‖ₑ = ‖y‖ₑ ↔ ‖x‖ = ‖y‖ := by
@@ -621,12 +624,9 @@ lemma exists_enorm_lt' (E : Type*) [TopologicalSpace E] [ESeminormedMonoid E]
621624
@[to_additive (attr := simp) enorm_neg]
622625
lemma enorm_inv' (a : E) : ‖a⁻¹‖ₑ = ‖a‖ₑ := by simp [enorm]
623626

624-
@[to_additive ofReal_norm_eq_enorm]
625-
lemma ofReal_norm_eq_enorm' (a : E) : .ofReal ‖a‖ = ‖a‖ₑ := ENNReal.ofReal_eq_coe_nnreal _
626-
627627
@[to_additive]
628628
theorem edist_eq_enorm_inv_mul (a b : E) : edist a b = ‖a⁻¹ * b‖ₑ := by
629-
rw [edist_dist, dist_eq_norm_inv_mul, ofReal_norm_eq_enorm']
629+
rw [edist_dist, dist_eq_norm_inv_mul, ofReal_norm']
630630

631631
@[deprecated (since := "2026-02-11")] alias edist_one_eq_enorm := edist_one_right
632632

@@ -794,7 +794,7 @@ alias nndist_eq_nnnorm := nndist_eq_nnnorm_sub
794794

795795
@[to_additive]
796796
theorem edist_eq_enorm_div (a b : E) : edist a b = ‖a / b‖ₑ := by
797-
rw [edist_dist, dist_eq_norm_div, ofReal_norm_eq_enorm']
797+
rw [edist_dist, dist_eq_norm_div, ofReal_norm']
798798

799799
@[to_additive]
800800
theorem dist_inv (x y : E) : dist x⁻¹ y = dist x y⁻¹ := by

Mathlib/Analysis/Normed/Group/Real.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ lemma enorm_ofReal_of_nonneg {a : ℝ} (ha : 0 ≤ a) : ‖ENNReal.ofReal a‖
102102
@[simp] lemma enorm_abs (r : ℝ) : ‖|r|‖ₑ = ‖r‖ₑ := by simp [enorm]
103103

104104
theorem enorm_eq_ofReal (hr : 0 ≤ r) : ‖r‖ₑ = .ofReal r := by
105-
rw [← ofReal_norm_eq_enorm, norm_of_nonneg hr]
105+
rw [← ofReal_norm, norm_of_nonneg hr]
106106

107107
theorem enorm_eq_ofReal_abs (r : ℝ) : ‖r‖ₑ = ENNReal.ofReal |r| := by
108108
rw [← enorm_eq_ofReal (abs_nonneg _), enorm_abs]

Mathlib/MeasureTheory/Function/ConditionalExpectation/CondexpL1.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ theorem norm_condExpIndL1Fin_le (hs : MeasurableSet s) (hμs : μ s ≠ ∞) (x
122122
refine lintegral_congr_ae ?_
123123
filter_upwards [condExpIndL1Fin_ae_eq_condExpIndSMul hm hs hμs x] with z hz
124124
rw [hz]
125-
rw [h_eq, ofReal_norm_eq_enorm]
125+
rw [h_eq, ofReal_norm]
126126
exact lintegral_nnnorm_condExpIndSMul_le hm hs hμs x
127127

128128
theorem condExpIndL1Fin_disjoint_union (hs : MeasurableSet s) (ht : MeasurableSet t) (hμs : μ s ≠ ∞)

Mathlib/MeasureTheory/Function/ConditionalExpectation/Real.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ theorem integral_abs_condExp_le (f : α → ℝ) : ∫ x, |(μ[f | m]) x| ∂μ
100100
smul_eq_mul, mul_zero]
101101
positivity
102102
rw [integral_eq_lintegral_of_nonneg_ae, integral_eq_lintegral_of_nonneg_ae]
103-
· apply ENNReal.toReal_mono <;> simp_rw [← Real.norm_eq_abs, ofReal_norm_eq_enorm]
103+
· apply ENNReal.toReal_mono <;> simp_rw [← Real.norm_eq_abs, ofReal_norm]
104104
· exact hfint.2.ne
105105
· rw [← eLpNorm_one_eq_lintegral_enorm, ← eLpNorm_one_eq_lintegral_enorm]
106106
exact eLpNorm_one_condExp_le_eLpNorm _

Mathlib/MeasureTheory/Function/L1Space/HasFiniteIntegral.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ lemma lintegral_enorm_eq_lintegral_edist (f : α → β) :
4949

5050
theorem lintegral_norm_eq_lintegral_edist (f : α → β) :
5151
∫⁻ a, ENNReal.ofReal ‖f a‖ ∂μ = ∫⁻ a, edist (f a) 0 ∂μ := by
52-
simp only [ofReal_norm_eq_enorm, edist_zero_right]
52+
simp only [ofReal_norm, edist_zero_right]
5353

5454
theorem lintegral_edist_triangle {f g h : α → β} (hf : AEStronglyMeasurable f μ)
5555
(hh : AEStronglyMeasurable h μ) :
@@ -90,7 +90,7 @@ theorem hasFiniteIntegral_iff_enorm {f : α → ε} : HasFiniteIntegral f μ ↔
9090

9191
theorem hasFiniteIntegral_iff_norm (f : α → β) :
9292
HasFiniteIntegral f μ ↔ (∫⁻ a, ENNReal.ofReal ‖f a‖ ∂μ) < ∞ := by
93-
simp only [hasFiniteIntegral_iff_enorm, ofReal_norm_eq_enorm]
93+
simp only [hasFiniteIntegral_iff_enorm, ofReal_norm]
9494

9595
theorem hasFiniteIntegral_iff_edist (f : α → β) :
9696
HasFiniteIntegral f μ ↔ (∫⁻ a, edist (f a) 0 ∂μ) < ∞ := by

Mathlib/MeasureTheory/Function/L2Space.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ theorem integral_inner_eq_sq_eLpNorm (f : α →₂[μ] E) :
150150
ext1 x
151151
have h_two : (2 : ℝ) = ((2 : ℕ) : ℝ) := by simp
152152
rw [← Real.rpow_natCast _ 2, ← h_two, ←
153-
ENNReal.ofReal_rpow_of_nonneg (norm_nonneg _) zero_le_two, ofReal_norm_eq_enorm]
153+
ENNReal.ofReal_rpow_of_nonneg (norm_nonneg _) zero_le_two, ofReal_norm]
154154
norm_cast
155155

156156
private theorem norm_sq_eq_re_inner (f : α →₂[μ] E) : ‖f‖ ^ 2 = RCLike.re ⟪f, f⟫ := by

Mathlib/MeasureTheory/Function/LpSeminorm/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ lemma eLpNorm_ofReal (f : α → ℝ) (hf : ∀ᵐ x ∂μ, 0 ≤ f x) :
451451
theorem eLpNorm'_norm_rpow (f : α → F) (p q : ℝ) (hq_pos : 0 < q) :
452452
eLpNorm' (fun x => ‖f x‖ ^ q) p μ = eLpNorm' f (p * q) μ ^ q := by
453453
simp_rw [eLpNorm', ← ENNReal.rpow_mul, ← one_div_mul_one_div, one_div,
454-
mul_assoc, inv_mul_cancel₀ hq_pos.ne.symm, mul_one, ← ofReal_norm_eq_enorm,
454+
mul_assoc, inv_mul_cancel₀ hq_pos.ne.symm, mul_one, ← ofReal_norm,
455455
Real.norm_eq_abs, abs_eq_self.mpr (Real.rpow_nonneg (norm_nonneg _) _), mul_comm p,
456456
← ENNReal.ofReal_rpow_of_nonneg (norm_nonneg _) hq_pos.le, ENNReal.rpow_mul]
457457

@@ -480,7 +480,7 @@ theorem eLpNorm_norm_rpow (f : α → F) (hq_pos : 0 < q) :
480480
rw [← eLpNorm_enorm_rpow f hq_pos]
481481
symm
482482
convert! eLpNorm_ofReal (fun x ↦ ‖f x‖ ^ q) (by filter_upwards with x using by positivity)
483-
rw [Function.comp_apply, ← ofReal_norm_eq_enorm]
483+
rw [Function.comp_apply, ← ofReal_norm]
484484
exact ENNReal.ofReal_rpow_of_nonneg (by positivity) (by positivity)
485485

486486
theorem eLpNorm_congr_ae {f g : α → ε} (hfg : f =ᵐ[μ] g) : eLpNorm f p μ = eLpNorm g p μ :=

Mathlib/MeasureTheory/Function/LpSeminorm/Indicator.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ theorem eLpNorm_indicator_sub_le_of_dist_bdd {β : Type*} [NormedAddCommGroup β
192192
Real.norm_eq_abs, abs_of_nonneg hc]
193193
exact hf x hx
194194
· simp [Set.indicator_of_notMem hx]
195-
grw [eLpNorm_mono this, eLpNorm_indicator_const hs hp hp', ← ofReal_norm_eq_enorm,
195+
grw [eLpNorm_mono this, eLpNorm_indicator_const hs hp hp', ← ofReal_norm,
196196
Real.norm_eq_abs, abs_of_nonneg hc]
197197

198198
theorem eLpNorm_sub_le_of_dist_bdd {β : Type*} [NormedAddCommGroup β]

Mathlib/MeasureTheory/Function/LpSpace/Complete.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private theorem lintegral_rpow_sum_enorm_sub_le_rpow_tsum
218218
(∑ i ∈ Finset.range (n + 1), ‖f (i + 1) a - f i a‖ₑ) ^ p := by
219219
ext1 a
220220
congr
221-
simp_rw [← ofReal_norm_eq_enorm]
221+
simp_rw [← ofReal_norm]
222222
rw [← ENNReal.ofReal_sum_of_nonneg]
223223
· rw [Real.norm_of_nonneg _]
224224
exact Finset.sum_nonneg fun x _ => norm_nonneg _
@@ -303,7 +303,7 @@ theorem ae_tendsto_of_cauchy_eLpNorm [CompleteSpace E] {f : ℕ → α → E}
303303
specialize hx N n m hnN hmN
304304
rw [_root_.dist_eq_norm,
305305
← ENNReal.ofReal_le_iff_le_toReal (ENNReal.ne_top_of_tsum_ne_top hB N),
306-
ofReal_norm_eq_enorm]
306+
ofReal_norm]
307307
exact hx.le
308308
· rw [← ENNReal.toReal_zero]
309309
exact

Mathlib/MeasureTheory/Integral/Bochner/Basic.lean

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ theorem integral_eq_lintegral_of_nonneg_ae {f : α → ℝ} (hf : 0 ≤ᵐ[μ] f
505505
theorem integral_norm_eq_lintegral_enorm {P : Type*} [NormedAddCommGroup P] {f : α → P}
506506
(hf : AEStronglyMeasurable f μ) : ∫ x, ‖f x‖ ∂μ = (∫⁻ x, ‖f x‖ₑ ∂μ).toReal := by
507507
rw [integral_eq_lintegral_of_nonneg_ae _ hf.norm]
508-
· simp_rw [ofReal_norm_eq_enorm]
508+
· simp_rw [ofReal_norm]
509509
· filter_upwards; simp_rw [Pi.zero_apply, norm_nonneg, imp_true_iff]
510510

511511
theorem ofReal_integral_norm_eq_lintegral_enorm {P : Type*} [NormedAddCommGroup P] {f : α → P}
@@ -689,7 +689,7 @@ theorem ofReal_integral_eq_lintegral_ofReal {f : α → ℝ} (hfi : Integrable f
689689
ENNReal.ofReal (∫ x, f x ∂μ) = ∫⁻ x, ENNReal.ofReal (f x) ∂μ := by
690690
have : f =ᵐ[μ] (‖f ·‖) := f_nn.mono fun _x hx ↦ (abs_of_nonneg hx).symm
691691
simp_rw [integral_congr_ae this, ofReal_integral_norm_eq_lintegral_enorm hfi,
692-
ofReal_norm_eq_enorm]
692+
ofReal_norm]
693693
exact lintegral_congr_ae (this.symm.fun_comp ENNReal.ofReal)
694694

695695
theorem integral_toReal {f : α → ℝ≥0∞} (hfm : AEMeasurable f μ) (hf : ∀ᵐ x ∂μ, f x < ∞) :
@@ -907,7 +907,7 @@ theorem MemLp.eLpNorm_eq_integral_rpow_norm {f : α → H} {p : ℝ≥0∞} (hp1
907907
(hf : MemLp f p μ) :
908908
eLpNorm f p μ = ENNReal.ofReal ((∫ a, ‖f a‖ ^ p.toReal ∂μ) ^ p.toReal⁻¹) := by
909909
have A : ∫⁻ a : α, ENNReal.ofReal (‖f a‖ ^ p.toReal) ∂μ = ∫⁻ a : α, ‖f a‖ₑ ^ p.toReal ∂μ := by
910-
simp_rw [← ofReal_rpow_of_nonneg (norm_nonneg _) toReal_nonneg, ofReal_norm_eq_enorm]
910+
simp_rw [← ofReal_rpow_of_nonneg (norm_nonneg _) toReal_nonneg, ofReal_norm]
911911
simp only [eLpNorm_eq_lintegral_rpow_enorm_toReal hp1 hp2, one_div]
912912
rw [integral_eq_lintegral_of_nonneg_ae]; rotate_left
913913
· exact ae_of_all _ fun x => by positivity
@@ -1145,13 +1145,13 @@ theorem integral_mul_norm_le_Lp_mul_Lq {E} [NormedAddCommGroup E] {f g : α →
11451145
-- replace norms by nnnorm
11461146
have h_left : ∫⁻ a, ENNReal.ofReal (‖f a‖ * ‖g a‖) ∂μ =
11471147
∫⁻ a, ((‖f ·‖ₑ) * (‖g ·‖ₑ)) a ∂μ := by
1148-
simp_rw [Pi.mul_apply, ← ofReal_norm_eq_enorm, ENNReal.ofReal_mul (norm_nonneg _)]
1148+
simp_rw [Pi.mul_apply, ← ofReal_norm, ENNReal.ofReal_mul (norm_nonneg _)]
11491149
have h_right_f : ∫⁻ a, .ofReal (‖f a‖ ^ p) ∂μ = ∫⁻ a, ‖f a‖ₑ ^ p ∂μ := by
11501150
refine lintegral_congr fun x => ?_
1151-
rw [← ofReal_norm_eq_enorm, ENNReal.ofReal_rpow_of_nonneg (norm_nonneg _) hpq.nonneg]
1151+
rw [← ofReal_norm, ENNReal.ofReal_rpow_of_nonneg (norm_nonneg _) hpq.nonneg]
11521152
have h_right_g : ∫⁻ a, .ofReal (‖g a‖ ^ q) ∂μ = ∫⁻ a, ‖g a‖ₑ ^ q ∂μ := by
11531153
refine lintegral_congr fun x => ?_
1154-
rw [← ofReal_norm_eq_enorm, ENNReal.ofReal_rpow_of_nonneg (norm_nonneg _) hpq.symm.nonneg]
1154+
rw [← ofReal_norm, ENNReal.ofReal_rpow_of_nonneg (norm_nonneg _) hpq.symm.nonneg]
11551155
rw [h_left, h_right_f, h_right_g]
11561156
-- we can now apply `ENNReal.lintegral_mul_le_Lp_mul_Lq` (up to the `toReal` application)
11571157
refine ENNReal.toReal_mono ?_ ?_

0 commit comments

Comments
 (0)