awhecmu/canonical-drafter-extract-mathlib huggingface dataset:
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Integral (goal)
Goal:
X : Type u_1
𝕜 : Type u_2
A : Type u_3
p : A → Prop
inst : RCLike 𝕜
inst_1 : MeasurableSpace X
μ : Measure X
inst_2 : NonUnitalNormedRing A
inst_3 : StarRing A
inst_4 : NormedSpace 𝕜 A
inst_5 : IsScalarTower 𝕜 A A
inst_6 : SMulCommClass 𝕜 A A
inst_7 : NonUnitalContinuousFunctionalCalculus 𝕜 A p
inst_8 : CompleteSpace A
inst_9 : NormedSpace ℝ A
f : X → 𝕜 → 𝕜
a : A
hf₁ : ∀ᵐ (x : X) ∂μ, ContinuousOn (f x) (quasispectrum 𝕜 a)
hf₂ : ∀ᵐ (x : X) ∂μ, f x 0 = 0
hf₃ :
  Integrable.{u_2, u_1} (ε := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
    (fun (x : X) ↦ mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0) μ
ha : p a
key₁ :
  ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
    Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
      ((∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ :
            (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
          z :
        𝕜)
z : (↑(quasispectrum 𝕜 a) : Type u_2)
hf : ContinuousOn (Y := 𝕜) (fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) (quasispectrum 𝕜 a)
⊢ Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
    ((mkD ((quasispectrum 𝕜 a).restrict (π := fun (z : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0 :
          (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
        z :
      𝕜)
have hf₀ : Eq.{u_2 + 1} (α := 𝕜) (∫ (x : X), f x (↑0 : 𝕜) ∂μ) 0
Tactic: rw [mkD_apply_of_continuousOn]
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Integral (goal)
Goal:
X : Type u_1
𝕜 : Type u_2
A : Type u_3
p : A → Prop
inst : RCLike 𝕜
inst_1 : MeasurableSpace X
μ : Measure X
inst_2 : NonUnitalNormedRing A
inst_3 : StarRing A
inst_4 : NormedSpace 𝕜 A
inst_5 : IsScalarTower 𝕜 A A
inst_6 : SMulCommClass 𝕜 A A
inst_7 : NonUnitalContinuousFunctionalCalculus 𝕜 A p
inst_8 : CompleteSpace A
inst_9 : NormedSpace ℝ A
f : X → 𝕜 → 𝕜
a : A
hf₁ : ∀ᵐ (x : X) ∂μ, ContinuousOn (f x) (quasispectrum 𝕜 a)
hf₂ : ∀ᵐ (x : X) ∂μ, f x 0 = 0
hf₃ :
  Integrable.{u_2, u_1} (ε := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
    (fun (x : X) ↦ mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0) μ
ha : p a
key₁ :
  ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
    Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
      ((∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ :
            (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
          z :
        𝕜)
z : (↑(quasispectrum 𝕜 a) : Type u_2)
⊢ ContinuousOn (Y := 𝕜) (fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) (quasispectrum 𝕜 a)
have hf : Continuous[instTopologicalSpaceSubtype, PseudoMetricSpace.toUniformSpace.toTopologicalSpace]
  ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ)
Tactic: rw [continuousOn_iff_continuous_restrict]
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Integral (goal)
Goal:
X : Type u_1
𝕜 : Type u_2
A : Type u_3
p : A → Prop
inst : RCLike 𝕜
inst_1 : MeasurableSpace X
μ : Measure X
inst_2 : NonUnitalNormedRing A
inst_3 : StarRing A
inst_4 : NormedSpace 𝕜 A
inst_5 : IsScalarTower 𝕜 A A
inst_6 : SMulCommClass 𝕜 A A
inst_7 : NonUnitalContinuousFunctionalCalculus 𝕜 A p
inst_8 : CompleteSpace A
inst_9 : NormedSpace ℝ A
f : X → 𝕜 → 𝕜
a : A
hf₁ : ∀ᵐ (x : X) ∂μ, ContinuousOn (f x) (quasispectrum 𝕜 a)
hf₂ : ∀ᵐ (x : X) ∂μ, f x 0 = 0
hf₃ :
  Integrable.{u_2, u_1} (ε := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
    (fun (x : X) ↦ mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0) μ
ha : p a
key₁ :
  ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
    Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
      ((∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ :
            (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
          z :
        𝕜)
z : (↑(quasispectrum 𝕜 a) : Type u_2)
⊢ Continuous[instTopologicalSpaceSubtype, PseudoMetricSpace.toUniformSpace.toTopologicalSpace]
    ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ)
have hf : Continuous[instTopologicalSpaceSubtype, PseudoMetricSpace.toUniformSpace.toTopologicalSpace]
  (⇑(∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ) :
    (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
Tactic: refine continuous_congr key₁ |>.mpr ?_
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Integral (hypothesis)
Goal:
X : Type u_1
𝕜 : Type u_2
A : Type u_3
p : A → Prop
inst : RCLike 𝕜
inst_1 : MeasurableSpace X
μ : Measure X
inst_2 : NonUnitalNormedRing A
inst_3 : StarRing A
inst_4 : NormedSpace 𝕜 A
inst_5 : IsScalarTower 𝕜 A A
inst_6 : SMulCommClass 𝕜 A A
inst_7 : NonUnitalContinuousFunctionalCalculus 𝕜 A p
inst_8 : CompleteSpace A
inst_9 : NormedSpace ℝ A
f : X → 𝕜 → 𝕜
a : A
hf₁ : ∀ᵐ (x : X) ∂μ, ContinuousOn (f x) (quasispectrum 𝕜 a)
hf₂ : ∀ᵐ (x : X) ∂μ, f x 0 = 0
hf₃ :
  Integrable.{u_2, u_1} (ε := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
    (fun (x : X) ↦ mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0) μ
ha : p a
key₁ :
  ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
    Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
      ((∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ :
            (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
          z :
        𝕜)
⊢ cfcₙ (p := p) (fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) a = ∫ (x : X), cfcₙ (p := p) (f x) a ∂μ
have key₂ : ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
  Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
    ((mkD ((quasispectrum 𝕜 a).restrict (π := fun (z : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0 :
          (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
        z :
      𝕜)
Tactic: have key₂ (z : quasispectrum 𝕜 a) :
      ∫ x, f x z ∂μ = mkD ((quasispectrum 𝕜 a).restrict (fun z ↦ ∫ x, f x z ∂μ)) 0 z := by
    rw [mkD_apply_of_continuousOn]
    · rw [continuousOn_iff_continuous_restrict]
      refine continuous_congr key₁ |>.mpr ?_
      exact map_continuous (∫ x, mkD ((quasispectrum 𝕜 a).restrict (f x)) 0 ∂μ)
    · exact integral_eq_zero_of_ae hf₂
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Integral (goal)
Goal:
X : Type u_1
𝕜 : Type u_2
A : Type u_3
p : A → Prop
inst : RCLike 𝕜
inst_1 : MeasurableSpace X
μ : Measure X
inst_2 : NonUnitalNormedRing A
inst_3 : StarRing A
inst_4 : NormedSpace 𝕜 A
inst_5 : IsScalarTower 𝕜 A A
inst_6 : SMulCommClass 𝕜 A A
inst_7 : NonUnitalContinuousFunctionalCalculus 𝕜 A p
inst_8 : CompleteSpace A
inst_9 : NormedSpace ℝ A
f : X → 𝕜 → 𝕜
a : A
hf₁ : ∀ᵐ (x : X) ∂μ, ContinuousOn (f x) (quasispectrum 𝕜 a)
hf₂ : ∀ᵐ (x : X) ∂μ, f x 0 = 0
hf₃ :
  Integrable.{u_2, u_1} (ε := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
    (fun (x : X) ↦ mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0) μ
ha : p a
key₁ :
  ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
    Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
      ((∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ :
            (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
          z :
        𝕜)
key₂ :
  ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
    Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
      ((mkD ((quasispectrum 𝕜 a).restrict (π := fun (z : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0 :
            (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
          z :
        𝕜)
⊢ cfcₙ (p := p) (fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) a = ∫ (x : X), cfcₙ (p := p) (f x) a ∂μ
have simp_rw : Eq.{u_3 + 1} (α := A)
  (((cfcₙL (p := p) ha : C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀ →L[𝕜] A) :
        (a : C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀) → A)
      (mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0) :
    A)
  (((cfcₙL (p := p) ha : C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀ →L[𝕜] A) :
        (a : C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀) → A)
      (∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ) :
    A)
Tactic: simp_rw [cfcₙ_eq_cfcₙL_mkD _ a, cfcₙL_integral a _ hf₃ ha]
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Integral (goal)
Goal:
X : Type u_1
𝕜 : Type u_2
A : Type u_3
p : A → Prop
inst : RCLike 𝕜
inst_1 : MeasurableSpace X
μ : Measure X
inst_2 : NonUnitalNormedRing A
inst_3 : StarRing A
inst_4 : NormedSpace 𝕜 A
inst_5 : IsScalarTower 𝕜 A A
inst_6 : SMulCommClass 𝕜 A A
inst_7 : NonUnitalContinuousFunctionalCalculus 𝕜 A p
inst_8 : CompleteSpace A
inst_9 : NormedSpace ℝ A
f : X → 𝕜 → 𝕜
a : A
hf₁ : ∀ᵐ (x : X) ∂μ, ContinuousOn (f x) (quasispectrum 𝕜 a)
hf₂ : ∀ᵐ (x : X) ∂μ, f x 0 = 0
hf₃ :
  Integrable.{u_2, u_1} (ε := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
    (fun (x : X) ↦ mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0) μ
ha : p a
key₁ :
  ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
    Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
      ((∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ :
            (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
          z :
        𝕜)
key₂ :
  ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
    Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
      ((mkD ((quasispectrum 𝕜 a).restrict (π := fun (z : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0 :
            (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
          z :
        𝕜)
⊢ Eq.{u_3 + 1} (α := A)
    (((cfcₙL (p := p) ha : C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀ →L[𝕜] A) :
          (a : C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀) → A)
        (mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0) :
      A)
    (((cfcₙL (p := p) ha : C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀ →L[𝕜] A) :
          (a : C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀) → A)
        (∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ) :
      A)
have h : Eq.{u_2 + 1} (α := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
  (mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0)
  (∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ)
Tactic: congr
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Integral (goal)
Goal:
X : Type u_1
𝕜 : Type u_2
A : Type u_3
p : A → Prop
inst : RCLike 𝕜
inst_1 : MeasurableSpace X
μ : Measure X
inst_2 : NonUnitalNormedRing A
inst_3 : StarRing A
inst_4 : NormedSpace 𝕜 A
inst_5 : IsScalarTower 𝕜 A A
inst_6 : SMulCommClass 𝕜 A A
inst_7 : NonUnitalContinuousFunctionalCalculus 𝕜 A p
inst_8 : CompleteSpace A
inst_9 : NormedSpace ℝ A
f : X → 𝕜 → 𝕜
a : A
hf₁ : ∀ᵐ (x : X) ∂μ, ContinuousOn (f x) (quasispectrum 𝕜 a)
hf₂ : ∀ᵐ (x : X) ∂μ, f x 0 = 0
hf₃ :
  Integrable.{u_2, u_1} (ε := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
    (fun (x : X) ↦ mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0) μ
ha : p a
key₁ :
  ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
    Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
      ((∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ :
            (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
          z :
        𝕜)
key₂ :
  ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
    Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
      ((mkD ((quasispectrum 𝕜 a).restrict (π := fun (z : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0 :
            (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
          z :
        𝕜)
⊢ Eq.{u_2 + 1} (α := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
    (mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0)
    (∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ)
have h : ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
  Eq (α := 𝕜)
    ((mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0 :
          (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
        z :
      𝕜)
    ((∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ :
          (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
        z :
      𝕜)
Tactic: ext z
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Integral (goal)
Goal:
X : Type u_1
𝕜 : Type u_2
A : Type u_3
p : A → Prop
inst : RCLike 𝕜
inst_1 : MeasurableSpace X
μ : Measure X
inst_2 : NonUnitalNormedRing A
inst_3 : StarRing A
inst_4 : NormedSpace 𝕜 A
inst_5 : IsScalarTower 𝕜 A A
inst_6 : SMulCommClass 𝕜 A A
inst_7 : NonUnitalContinuousFunctionalCalculus 𝕜 A p
inst_8 : CompleteSpace A
inst_9 : NormedSpace ℝ A
f : X → 𝕜 → 𝕜
a : A
hf₁ : ∀ᵐ (x : X) ∂μ, ContinuousOn (f x) (quasispectrum 𝕜 a)
hf₂ : ∀ᵐ (x : X) ∂μ, f x 0 = 0
hf₃ :
  Integrable.{u_2, u_1} (ε := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
    (fun (x : X) ↦ mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0) μ
ha : p a
key₁ :
  ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
    Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
      ((∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ :
            (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
          z :
        𝕜)
key₂ :
  ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
    Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
      ((mkD ((quasispectrum 𝕜 a).restrict (π := fun (z : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0 :
            (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
          z :
        𝕜)
z : (↑(quasispectrum 𝕜 a) : Type u_2)
⊢ Eq (α := 𝕜)
    ((mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0 :
          (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
        z :
      𝕜)
    ((∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ :
          (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
        z :
      𝕜)
have h : Eq (α := 𝕜)
  ((mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0 :
        (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
      z :
    𝕜)
  (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
Tactic: rw [← key₁, key₂]
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Integral (goal)
Goal:
X : Type u_1
𝕜 : Type u_2
A : Type u_3
p : A → Prop
inst : RCLike 𝕜
inst_1 : MeasurableSpace X
μ : Measure X
inst_2 : NonUnitalNormedRing A
inst_3 : StarRing A
inst_4 : NormedSpace 𝕜 A
inst_5 : IsScalarTower 𝕜 A A
inst_6 : SMulCommClass 𝕜 A A
inst_7 : NonUnitalContinuousFunctionalCalculus 𝕜 A p
inst_8 : CompleteSpace A
inst_9 : NormedSpace ℝ A
f : X → 𝕜 → 𝕜
a : A
hf₁ : ∀ᵐ (x : X) ∂μ, ContinuousOn (f x) (quasispectrum 𝕜 a)
hf₂ : ∀ᵐ (x : X) ∂μ, f x 0 = 0
hf₃ :
  Integrable.{u_2, u_1} (ε := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
    (fun (x : X) ↦ mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0) μ
ha : p a
key₁ :
  ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
    Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
      ((∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ :
            (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
          z :
        𝕜)
key₂ :
  ∀ (z : (↑(quasispectrum 𝕜 a) : Type u_2)),
    Eq (α := 𝕜) (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
      ((mkD ((quasispectrum 𝕜 a).restrict (π := fun (z : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0 :
            (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
          z :
        𝕜)
z : (↑(quasispectrum 𝕜 a) : Type u_2)
h :
  Eq (α := 𝕜)
    ((mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0 :
          (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
        z :
      𝕜)
    (∫ (x : X), f x (↑z : 𝕜) ∂μ : 𝕜)
⊢ Eq (α := 𝕜)
    ((mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0 :
          (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
        z :
      𝕜)
    ((∫ (x : X), mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0 ∂μ :
          (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
        z :
      𝕜)
have h₁ : Eq (α := 𝕜)
  ((mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0 :
        (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
      z :
    𝕜)
  ((mkD ((quasispectrum 𝕜 a).restrict (π := fun (z : 𝕜) ↦ 𝕜) fun (z : 𝕜) ↦ ∫ (x : X), f x z ∂μ) 0 :
        (a : (↑(quasispectrum 𝕜 a) : Type u_2)) → 𝕜)
      z :
    𝕜)
Tactic: rw [← key₁, key₂]
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Integral (hypothesis)
Goal:
X : Type u_1
𝕜 : Type u_2
A : Type u_3
p : A → Prop
inst : RCLike 𝕜
inst_1 : MeasurableSpace X
μ : Measure X
inst_2 : NonUnitalNormedRing A
inst_3 : StarRing A
inst_4 : NormedSpace 𝕜 A
inst_5 : IsScalarTower 𝕜 A A
inst_6 : SMulCommClass 𝕜 A A
inst_7 : NonUnitalContinuousFunctionalCalculus 𝕜 A p
inst_8 : CompleteSpace A
inst_9 : NormedSpace ℝ A
inst_10 : TopologicalSpace X
inst_11 : OpensMeasurableSpace X
f : X → 𝕜 → 𝕜
bound : X → ℝ
a : A
inst_12 : SecondCountableTopologyEither.{u_1, u_2} X C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)
hf : ContinuousOn (uncurry f) (SProd.sprod (α := Set X) univ (quasispectrum 𝕜 a))
f_zero : ∀ᵐ (x : X) ∂μ, f x 0 = 0
bound_ge : ∀ᵐ (x : X) ∂μ, ∀ z ∈ quasispectrum 𝕜 a, ‖f x z‖ ≤ bound x
bound_int : HasFiniteIntegral bound μ
ha : p a
⊢ cfcₙ (p := p) (fun (r : 𝕜) ↦ ∫ (x : X), f x r ∂μ) a = ∫ (x : X), cfcₙ (p := p) (f x) a ∂μ
have this : ∀ᵐ (x : X) ∂μ, ContinuousOn (f x) (quasispectrum 𝕜 a)
Tactic: have : ∀ᵐ (x : X) ∂μ, ContinuousOn (f x) (quasispectrum 𝕜 a) := .of_forall fun x ↦
    hf.comp (Continuous.prodMk_right x).continuousOn fun _ hz ↦ ⟨Set.mem_univ _, hz⟩
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Integral (goal)
Goal:
X : Type u_1
𝕜 : Type u_2
A : Type u_3
p : A → Prop
inst : RCLike 𝕜
inst_1 : MeasurableSpace X
μ : Measure X
inst_2 : NonUnitalNormedRing A
inst_3 : StarRing A
inst_4 : NormedSpace 𝕜 A
inst_5 : IsScalarTower 𝕜 A A
inst_6 : SMulCommClass 𝕜 A A
inst_7 : NonUnitalContinuousFunctionalCalculus 𝕜 A p
inst_8 : CompleteSpace A
inst_9 : NormedSpace ℝ A
inst_10 : TopologicalSpace X
inst_11 : OpensMeasurableSpace X
f : X → 𝕜 → 𝕜
bound : X → ℝ
a : A
inst_12 : SecondCountableTopologyEither.{u_1, u_2} X C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)
hf : ContinuousOn (uncurry f) (SProd.sprod (α := Set X) univ (quasispectrum 𝕜 a))
f_zero : ∀ᵐ (x : X) ∂μ, f x 0 = 0
bound_ge : ∀ᵐ (x : X) ∂μ, ∀ z ∈ quasispectrum 𝕜 a, ‖f x z‖ ≤ bound x
bound_int : HasFiniteIntegral bound μ
ha : p a
this : ∀ᵐ (x : X) ∂μ, ContinuousOn (f x) (quasispectrum 𝕜 a)
⊢ cfcₙ (p := p) (fun (r : 𝕜) ↦ ∫ (x : X), f x r ∂μ) a = ∫ (x : X), cfcₙ (p := p) (f x) a ∂μ
have refine_1 : AEStronglyMeasurable.{u_1, u_2} (β := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
  (fun (x : X) ↦ mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0) μ
Tactic: refine cfcₙ_integral' _ _ this f_zero ⟨?_, ?_⟩ ha
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Integral (goal)
Goal:
X : Type u_1
𝕜 : Type u_2
A : Type u_3
p : A → Prop
inst : RCLike 𝕜
inst_1 : MeasurableSpace X
μ : Measure X
inst_2 : NonUnitalNormedRing A
inst_3 : StarRing A
inst_4 : NormedSpace 𝕜 A
inst_5 : IsScalarTower 𝕜 A A
inst_6 : SMulCommClass 𝕜 A A
inst_7 : NonUnitalContinuousFunctionalCalculus 𝕜 A p
inst_8 : CompleteSpace A
inst_9 : NormedSpace ℝ A
inst_10 : TopologicalSpace X
inst_11 : OpensMeasurableSpace X
f : X → 𝕜 → 𝕜
bound : X → ℝ
a : A
inst_12 : SecondCountableTopologyEither.{u_1, u_2} X C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)
hf : ContinuousOn (uncurry f) (SProd.sprod (α := Set X) univ (quasispectrum 𝕜 a))
f_zero : ∀ᵐ (x : X) ∂μ, f x 0 = 0
bound_ge : ∀ᵐ (x : X) ∂μ, ∀ z ∈ quasispectrum 𝕜 a, ‖f x z‖ ≤ bound x
bound_int : HasFiniteIntegral bound μ
ha : p a
this : ∀ᵐ (x : X) ∂μ, ContinuousOn (f x) (quasispectrum 𝕜 a)
refine_1 :
  AEStronglyMeasurable.{u_1, u_2} (β := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
    (fun (x : X) ↦ mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0) μ
⊢ cfcₙ (p := p) (fun (r : 𝕜) ↦ ∫ (x : X), f x r ∂μ) a = ∫ (x : X), cfcₙ (p := p) (f x) a ∂μ
have refine_2 : HasFiniteIntegral.{u_1, u_2} (ε := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
  (fun (x : X) ↦ mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0) μ
Tactic: refine cfcₙ_integral' _ _ this f_zero ⟨?_, ?_⟩ ha
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Integral (hypothesis)
Goal:
X : Type u_1
𝕜 : Type u_2
A : Type u_3
p : A → Prop
inst : RCLike 𝕜
inst_1 : MeasurableSpace X
μ : Measure X
inst_2 : NonUnitalNormedRing A
inst_3 : StarRing A
inst_4 : NormedSpace 𝕜 A
inst_5 : IsScalarTower 𝕜 A A
inst_6 : SMulCommClass 𝕜 A A
inst_7 : NonUnitalContinuousFunctionalCalculus 𝕜 A p
inst_8 : CompleteSpace A
inst_9 : NormedSpace ℝ A
inst_10 : TopologicalSpace X
inst_11 : OpensMeasurableSpace X
s : Set X
hs : MeasurableSet s
f : X → 𝕜 → 𝕜
bound : X → ℝ
a : A
inst_12 : SecondCountableTopologyEither.{u_1, u_2} X C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)
hf : ContinuousOn (uncurry f) (s ×ˢ quasispectrum 𝕜 a)
f_zero : ∀ᵐ (x : X) ∂μ.restrict s, f x 0 = 0
bound_ge : ∀ᵐ (x : X) ∂μ.restrict s, ∀ z ∈ quasispectrum 𝕜 a, ‖f x z‖ ≤ bound x
bound_int : HasFiniteIntegral bound (μ.restrict s)
ha : p a
⊢ cfcₙ (p := p) (fun (r : 𝕜) ↦ ∫ (x : X) in s, f x r ∂μ) a = ∫ (x : X) in s, cfcₙ (p := p) (f x) a ∂μ
have this : ∀ᵐ (x : X) ∂μ.restrict s, ContinuousOn (f x) (quasispectrum 𝕜 a)
Tactic: have : ∀ᵐ (x : X) ∂(μ.restrict s), ContinuousOn (f x) (quasispectrum 𝕜 a) :=
    ae_restrict_of_forall_mem hs fun x hx ↦
      hf.comp (Continuous.prodMk_right x).continuousOn fun _ hz ↦ ⟨hx, hz⟩
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Integral (goal)
Goal:
X : Type u_1
𝕜 : Type u_2
A : Type u_3
p : A → Prop
inst : RCLike 𝕜
inst_1 : MeasurableSpace X
μ : Measure X
inst_2 : NonUnitalNormedRing A
inst_3 : StarRing A
inst_4 : NormedSpace 𝕜 A
inst_5 : IsScalarTower 𝕜 A A
inst_6 : SMulCommClass 𝕜 A A
inst_7 : NonUnitalContinuousFunctionalCalculus 𝕜 A p
inst_8 : CompleteSpace A
inst_9 : NormedSpace ℝ A
inst_10 : TopologicalSpace X
inst_11 : OpensMeasurableSpace X
s : Set X
hs : MeasurableSet s
f : X → 𝕜 → 𝕜
bound : X → ℝ
a : A
inst_12 : SecondCountableTopologyEither.{u_1, u_2} X C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)
hf : ContinuousOn (uncurry f) (s ×ˢ quasispectrum 𝕜 a)
f_zero : ∀ᵐ (x : X) ∂μ.restrict s, f x 0 = 0
bound_ge : ∀ᵐ (x : X) ∂μ.restrict s, ∀ z ∈ quasispectrum 𝕜 a, ‖f x z‖ ≤ bound x
bound_int : HasFiniteIntegral bound (μ.restrict s)
ha : p a
this : ∀ᵐ (x : X) ∂μ.restrict s, ContinuousOn (f x) (quasispectrum 𝕜 a)
⊢ cfcₙ (p := p) (fun (r : 𝕜) ↦ ∫ (x : X) in s, f x r ∂μ) a = ∫ (x : X) in s, cfcₙ (p := p) (f x) a ∂μ
have refine_1 : AEStronglyMeasurable.{u_1, u_2} (β := C((↑(quasispectrum 𝕜 a) : Type u_2), 𝕜)₀)
  (fun (x : X) ↦ mkD ((quasispectrum 𝕜 a).restrict (π := fun (a : 𝕜) ↦ 𝕜) (f x)) 0) (μ.restrict s)
Tactic: refine cfcₙ_setIntegral' _ _ this f_zero ⟨?_, ?_⟩ ha