Theorem: MeasureTheory.integral_fun_norm_addHaar
File: Mathlib/MeasureTheory/Constructions/HaarToSphere.lean

tactic: rw [integral_subtype_comap (measurableSet_singleton _).compl fun x ↦ f (‖x‖),
  restrict_compl_singleton]
state_before: E : Type u_1
inst✝⁸ : NormedAddCommGroup E
inst✝⁷ : NormedSpace ℝ E
inst✝⁶ : FiniteDimensional ℝ E
inst✝⁵ : MeasurableSpace E
inst✝⁴ : BorelSpace E
F : Type u_2
inst✝³ : NormedAddCommGroup F
inst✝² : NormedSpace ℝ F
inst✝¹ : Nontrivial E
μ : Measure E
inst✝ : μ.IsAddHaarMeasure
f : ℝ → F
⊢ ∫ (x : E), f ‖x‖ ∂μ = ∫ (x : ↑{0}ᶜ), f ‖↑x‖ ∂Measure.comap Subtype.val μ
state_after: no goals

tactic: simp only [Measure.volumeIoiPow, ENNReal.ofReal]
state_before: E : Type u_1
inst✝⁸ : NormedAddCommGroup E
inst✝⁷ : NormedSpace ℝ E
inst✝⁶ : FiniteDimensional ℝ E
inst✝⁵ : MeasurableSpace E
inst✝⁴ : BorelSpace E
F : Type u_2
inst✝³ : NormedAddCommGroup F
inst✝² : NormedSpace ℝ F
inst✝¹ : Nontrivial E
μ : Measure E
inst✝ : μ.IsAddHaarMeasure
f : ℝ → F
⊢ (μ.toSphere univ).toReal • ∫ (x : ↑(Ioi 0)), f ↑x ∂Measure.volumeIoiPow (dim E - 1) =
    dim E • (μ (ball 0 1)).toReal • ∫ (y : ℝ) in Ioi 0, y ^ (dim E - 1) • f y
state_after: E : Type u_1
inst✝⁸ : NormedAddCommGroup E
inst✝⁷ : NormedSpace ℝ E
inst✝⁶ : FiniteDimensional ℝ E
inst✝⁵ : MeasurableSpace E
inst✝⁴ : BorelSpace E
F : Type u_2
inst✝³ : NormedAddCommGroup F
inst✝² : NormedSpace ℝ F
inst✝¹ : Nontrivial E
μ : Measure E
inst✝ : μ.IsAddHaarMeasure
f : ℝ → F
⊢ ((μ.toSphere univ).toReal •
      ∫ (x : ↑(Ioi 0)), f ↑x ∂(Measure.comap Subtype.val volume).withDensity fun r => ↑(↑r ^ (dim E - 1)).toNNReal) =
    dim E • (μ (ball 0 1)).toReal • ∫ (y : ℝ) in Ioi 0, y ^ (dim E - 1) • f y

tactic: rw [integral_withDensity_eq_integral_smul, μ.toSphere_apply_univ,
  ENNReal.toReal_mul, ENNReal.toReal_nat, ← nsmul_eq_mul, smul_assoc,
  integral_subtype_comap measurableSet_Ioi fun a ↦ Real.toNNReal (a ^ (dim E - 1)) • f a,
  setIntegral_congr measurableSet_Ioi fun x hx ↦ ?_]
state_before: E : Type u_1
inst✝⁸ : NormedAddCommGroup E
inst✝⁷ : NormedSpace ℝ E
inst✝⁶ : FiniteDimensional ℝ E
inst✝⁵ : MeasurableSpace E
inst✝⁴ : BorelSpace E
F : Type u_2
inst✝³ : NormedAddCommGroup F
inst✝² : NormedSpace ℝ F
inst✝¹ : Nontrivial E
μ : Measure E
inst✝ : μ.IsAddHaarMeasure
f : ℝ → F
⊢ ((μ.toSphere univ).toReal •
      ∫ (x : ↑(Ioi 0)), f ↑x ∂(Measure.comap Subtype.val volume).withDensity fun r => ↑(↑r ^ (dim E - 1)).toNNReal) =
    dim E • (μ (ball 0 1)).toReal • ∫ (y : ℝ) in Ioi 0, y ^ (dim E - 1) • f y
state_after: E : Type u_1
inst✝⁸ : NormedAddCommGroup E
inst✝⁷ : NormedSpace ℝ E
inst✝⁶ : FiniteDimensional ℝ E
inst✝⁵ : MeasurableSpace E
inst✝⁴ : BorelSpace E
F : Type u_2
inst✝³ : NormedAddCommGroup F
inst✝² : NormedSpace ℝ F
inst✝¹ : Nontrivial E
μ : Measure E
inst✝ : μ.IsAddHaarMeasure
f : ℝ → F
x : ℝ
hx : x ∈ Ioi 0
⊢ (x ^ (dim E - 1)).toNNReal • f x = x ^ (dim E - 1) • f x

case f_meas
E : Type u_1
inst✝⁸ : NormedAddCommGroup E
inst✝⁷ : NormedSpace ℝ E
inst✝⁶ : FiniteDimensional ℝ E
inst✝⁵ : MeasurableSpace E
inst✝⁴ : BorelSpace E
F : Type u_2
inst✝³ : NormedAddCommGroup F
inst✝² : NormedSpace ℝ F
inst✝¹ : Nontrivial E
μ : Measure E
inst✝ : μ.IsAddHaarMeasure
f : ℝ → F
⊢ Measurable fun r => (↑r ^ (dim E - 1)).toNNReal

tactic: rw [NNReal.smul_def, Real.coe_toNNReal _ (pow_nonneg hx.out.le _)]
state_before: E : Type u_1
inst✝⁸ : NormedAddCommGroup E
inst✝⁷ : NormedSpace ℝ E
inst✝⁶ : FiniteDimensional ℝ E
inst✝⁵ : MeasurableSpace E
inst✝⁴ : BorelSpace E
F : Type u_2
inst✝³ : NormedAddCommGroup F
inst✝² : NormedSpace ℝ F
inst✝¹ : Nontrivial E
μ : Measure E
inst✝ : μ.IsAddHaarMeasure
f : ℝ → F
x : ℝ
hx : x ∈ Ioi 0
⊢ (x ^ (dim E - 1)).toNNReal • f x = x ^ (dim E - 1) • f x
state_after: no goals

tactic: exact (measurable_subtype_coe.pow_const _).real_toNNReal
state_before: case f_meas
E : Type u_1
inst✝⁸ : NormedAddCommGroup E
inst✝⁷ : NormedSpace ℝ E
inst✝⁶ : FiniteDimensional ℝ E
inst✝⁵ : MeasurableSpace E
inst✝⁴ : BorelSpace E
F : Type u_2
inst✝³ : NormedAddCommGroup F
inst✝² : NormedSpace ℝ F
inst✝¹ : Nontrivial E
μ : Measure E
inst✝ : μ.IsAddHaarMeasure
f : ℝ → F
⊢ Measurable fun r => (↑r ^ (dim E - 1)).toNNReal
state_after: no goals