@@ -81,17 +81,9 @@ theorem MeasureTheory.measure_lt_one_eq_integral_div_gamma {p : ℝ} (hp : 0 < p
8181 .ofReal ((∫ (x : E), Real.exp (-(g x) ^ p) ∂μ) / Real.Gamma (finrank ℝ E / p + 1 )) := by
8282 -- We copy `E` to a new type `F` on which we will put the norm defined by `g`
8383 letI F : Type _ := E
84- letI : NormedAddCommGroup F :=
85- { norm := g
86- dist := fun x y => g (x - y)
87- dist_self := by simp only [_root_.sub_self, h1, forall_const]
88- dist_comm := fun _ _ => by rw [← h2, neg_sub]
89- dist_triangle := fun x y z => by convert h3 (x - y) (y - z) using 1 ; simp [F]
90- edist := fun x y => .ofReal (g (x - y))
91- edist_dist := fun _ _ => rfl
92- eq_of_dist_eq_zero := by convert fun _ _ h => eq_of_sub_eq_zero (h4 h) }
93- letI : NormedSpace ℝ F :=
94- { norm_smul_le := fun _ _ ↦ h5 _ _ }
84+ let p : AddGroupNorm F := ⟨⟨g, h1, h3, h2⟩, fun x hx ↦ h4 hx⟩
85+ letI : NormedAddCommGroup F := AddGroupNorm.toNormedAddCommGroup p
86+ letI : NormedSpace ℝ F := { norm_smul_le := fun _ _ ↦ h5 _ _ }
9587 -- We put the new topology on F
9688 letI : TopologicalSpace F := UniformSpace.toTopologicalSpace
9789 letI : MeasurableSpace F := borel F
@@ -122,17 +114,9 @@ theorem MeasureTheory.measure_le_eq_lt [Nontrivial E] (r : ℝ) :
122114 μ {x : E | g x ≤ r} = μ {x : E | g x < r} := by
123115 -- We copy `E` to a new type `F` on which we will put the norm defined by `g`
124116 letI F : Type _ := E
125- letI : NormedAddCommGroup F :=
126- { norm := g
127- dist := fun x y => g (x - y)
128- dist_self := by simp only [_root_.sub_self, h1, forall_const]
129- dist_comm := fun _ _ => by rw [← h2, neg_sub]
130- dist_triangle := fun x y z => by convert h3 (x - y) (y - z) using 1 ; simp [F]
131- edist := fun x y => .ofReal (g (x - y))
132- edist_dist := fun _ _ => rfl
133- eq_of_dist_eq_zero := by convert fun _ _ h => eq_of_sub_eq_zero (h4 h) }
134- letI : NormedSpace ℝ F :=
135- { norm_smul_le := fun _ _ ↦ h5 _ _ }
117+ let p : AddGroupNorm F := ⟨⟨g, h1, h3, h2⟩, fun x hx ↦ h4 hx⟩
118+ letI : NormedAddCommGroup F := AddGroupNorm.toNormedAddCommGroup p
119+ letI : NormedSpace ℝ F := { norm_smul_le := fun _ _ ↦ h5 _ _ }
136120 -- We put the new topology on F
137121 letI : TopologicalSpace F := UniformSpace.toTopologicalSpace
138122 letI : MeasurableSpace F := borel F
0 commit comments