awhecmu/canonical-drafter-extract-mathlib huggingface dataset:
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unique (goal)
Goal:
F : Type u_1
R : Type u_2
S : Type u_3
A : Type u_4
B : Type u_5
p : A → Prop
q : B → Prop
inst : CommSemiring R
inst_1 : Nontrivial R
inst_2 : StarRing R
inst_3 : MetricSpace R
inst_4 : IsTopologicalSemiring R
inst_5 : ContinuousStar R
inst_6 : CommRing S
inst_7 : Algebra R S
inst_8 : NonUnitalRing A
inst_9 : StarRing A
inst_10 : TopologicalSpace A
inst_11 : Module R A
inst_12 : IsScalarTower R A A
inst_13 : SMulCommClass R A A
inst_14 : NonUnitalRing B
inst_15 : StarRing B
inst_16 : TopologicalSpace B
inst_17 : Module R B
inst_18 : IsScalarTower R B B
inst_19 : SMulCommClass R B B
inst_20 : Module S A
inst_21 : Module S B
inst_22 : IsScalarTower R S A
inst_23 : IsScalarTower R S B
inst_24 : NonUnitalContinuousFunctionalCalculus R A p
inst_25 : NonUnitalContinuousFunctionalCalculus R B q
inst_26 : ContinuousMapZero.UniqueHom R B
inst_27 : FunLike F A B
inst_28 : NonUnitalAlgHomClass F S A B
inst_29 : StarHomClass F A B
φ : F
f : R → R
a : A
hf : ContinuousOn f (quasispectrum R a)
hf₀ : f 0 = 0
hφ : Continuous[inst_10, inst_16] (⇑φ : (a : A) → B)
ha : p a
hφa : q ((φ : (a : A) → B) a)
ψ : A →⋆ₙₐ[R] B := NonUnitalStarAlgHom.restrictScalars R (↑φ : A →⋆ₙₐ[S] B)
this : Continuous[inst_10, inst_16] (⇑ψ : (a : A) → B)
h_spec : quasispectrum.{u_2, u_5} R (A := B) ((φ : (a : A) → B) a : B) ⊆ quasispectrum R a
hψa : q ((ψ : (a : A) → B) a)
ι : C((↑(quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) : Type u_2),
  (↑(quasispectrum R a) : Type u_2))₀ :=
  {
    toFun :=
      Set.inclusion (s := quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) (t := quasispectrum R a)
        h_spec,
    continuous_toFun := ⋯, map_zero' := ⋯ }
⊢ Eq (α := C((↑(quasispectrum R a) : Type u_2), R)₀ →⋆ₙₐ[R] B) (ψ.comp (cfcₙHom (p := p) ha))
    (NonUnitalStarAlgHom.comp (cfcₙHom (p := q) hψa) (ContinuousMapZero.nonUnitalStarAlgHom_precomp R ι))
have refine_1 : Continuous[_, inst_16]
  (⇑(ψ.comp (cfcₙHom (p := p) ha) : C((↑(quasispectrum R a) : Type u_2), R)₀ →⋆ₙₐ[R] B) :
    (a : C((↑(quasispectrum R a) : Type u_2), R)₀) → B)
Tactic: refine ContinuousMapZero.UniqueHom.eq_of_continuous_of_map_id _ _ _ ?_ ?_ ?apply_id
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unique (goal)
Goal:
F : Type u_1
R : Type u_2
S : Type u_3
A : Type u_4
B : Type u_5
p : A → Prop
q : B → Prop
inst : CommSemiring R
inst_1 : Nontrivial R
inst_2 : StarRing R
inst_3 : MetricSpace R
inst_4 : IsTopologicalSemiring R
inst_5 : ContinuousStar R
inst_6 : CommRing S
inst_7 : Algebra R S
inst_8 : NonUnitalRing A
inst_9 : StarRing A
inst_10 : TopologicalSpace A
inst_11 : Module R A
inst_12 : IsScalarTower R A A
inst_13 : SMulCommClass R A A
inst_14 : NonUnitalRing B
inst_15 : StarRing B
inst_16 : TopologicalSpace B
inst_17 : Module R B
inst_18 : IsScalarTower R B B
inst_19 : SMulCommClass R B B
inst_20 : Module S A
inst_21 : Module S B
inst_22 : IsScalarTower R S A
inst_23 : IsScalarTower R S B
inst_24 : NonUnitalContinuousFunctionalCalculus R A p
inst_25 : NonUnitalContinuousFunctionalCalculus R B q
inst_26 : ContinuousMapZero.UniqueHom R B
inst_27 : FunLike F A B
inst_28 : NonUnitalAlgHomClass F S A B
inst_29 : StarHomClass F A B
φ : F
f : R → R
a : A
hf : ContinuousOn f (quasispectrum R a)
hf₀ : f 0 = 0
hφ : Continuous[inst_10, inst_16] (⇑φ : (a : A) → B)
ha : p a
hφa : q ((φ : (a : A) → B) a)
ψ : A →⋆ₙₐ[R] B := NonUnitalStarAlgHom.restrictScalars R (↑φ : A →⋆ₙₐ[S] B)
this : Continuous[inst_10, inst_16] (⇑ψ : (a : A) → B)
h_spec : quasispectrum.{u_2, u_5} R (A := B) ((φ : (a : A) → B) a : B) ⊆ quasispectrum R a
hψa : q ((ψ : (a : A) → B) a)
ι : C((↑(quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) : Type u_2),
  (↑(quasispectrum R a) : Type u_2))₀ :=
  {
    toFun :=
      Set.inclusion (s := quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) (t := quasispectrum R a)
        h_spec,
    continuous_toFun := ⋯, map_zero' := ⋯ }
refine_1 :
  Continuous[_, inst_16]
    (⇑(ψ.comp (cfcₙHom (p := p) ha) : C((↑(quasispectrum R a) : Type u_2), R)₀ →⋆ₙₐ[R] B) :
      (a : C((↑(quasispectrum R a) : Type u_2), R)₀) → B)
⊢ Eq (α := C((↑(quasispectrum R a) : Type u_2), R)₀ →⋆ₙₐ[R] B) (ψ.comp (cfcₙHom (p := p) ha))
    (NonUnitalStarAlgHom.comp (cfcₙHom (p := q) hψa) (ContinuousMapZero.nonUnitalStarAlgHom_precomp R ι))
have refine_2 : Continuous[_, inst_16]
  (⇑(NonUnitalStarAlgHom.comp (cfcₙHom (p := q) hψa) (ContinuousMapZero.nonUnitalStarAlgHom_precomp R ι)) :
    (a : C((↑(quasispectrum R a) : Type u_2), R)₀) → B)
Tactic: refine ContinuousMapZero.UniqueHom.eq_of_continuous_of_map_id _ _ _ ?_ ?_ ?apply_id
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unique (goal)
Goal:
F : Type u_1
R : Type u_2
S : Type u_3
A : Type u_4
B : Type u_5
p : A → Prop
q : B → Prop
inst : CommSemiring R
inst_1 : Nontrivial R
inst_2 : StarRing R
inst_3 : MetricSpace R
inst_4 : IsTopologicalSemiring R
inst_5 : ContinuousStar R
inst_6 : CommRing S
inst_7 : Algebra R S
inst_8 : NonUnitalRing A
inst_9 : StarRing A
inst_10 : TopologicalSpace A
inst_11 : Module R A
inst_12 : IsScalarTower R A A
inst_13 : SMulCommClass R A A
inst_14 : NonUnitalRing B
inst_15 : StarRing B
inst_16 : TopologicalSpace B
inst_17 : Module R B
inst_18 : IsScalarTower R B B
inst_19 : SMulCommClass R B B
inst_20 : Module S A
inst_21 : Module S B
inst_22 : IsScalarTower R S A
inst_23 : IsScalarTower R S B
inst_24 : NonUnitalContinuousFunctionalCalculus R A p
inst_25 : NonUnitalContinuousFunctionalCalculus R B q
inst_26 : ContinuousMapZero.UniqueHom R B
inst_27 : FunLike F A B
inst_28 : NonUnitalAlgHomClass F S A B
inst_29 : StarHomClass F A B
φ : F
f : R → R
a : A
hf : ContinuousOn f (quasispectrum R a)
hf₀ : f 0 = 0
hφ : Continuous[inst_10, inst_16] (⇑φ : (a : A) → B)
ha : p a
hφa : q ((φ : (a : A) → B) a)
ψ : A →⋆ₙₐ[R] B := NonUnitalStarAlgHom.restrictScalars R (↑φ : A →⋆ₙₐ[S] B)
this : Continuous[inst_10, inst_16] (⇑ψ : (a : A) → B)
h_spec : quasispectrum.{u_2, u_5} R (A := B) ((φ : (a : A) → B) a : B) ⊆ quasispectrum R a
hψa : q ((ψ : (a : A) → B) a)
ι : C((↑(quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) : Type u_2),
  (↑(quasispectrum R a) : Type u_2))₀ :=
  {
    toFun :=
      Set.inclusion (s := quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) (t := quasispectrum R a)
        h_spec,
    continuous_toFun := ⋯, map_zero' := ⋯ }
refine_1 :
  Continuous[_, inst_16]
    (⇑(ψ.comp (cfcₙHom (p := p) ha) : C((↑(quasispectrum R a) : Type u_2), R)₀ →⋆ₙₐ[R] B) :
      (a : C((↑(quasispectrum R a) : Type u_2), R)₀) → B)
refine_2 :
  Continuous[_, inst_16]
    (⇑(NonUnitalStarAlgHom.comp (cfcₙHom (p := q) hψa) (ContinuousMapZero.nonUnitalStarAlgHom_precomp R ι)) :
      (a : C((↑(quasispectrum R a) : Type u_2), R)₀) → B)
⊢ Eq (α := C((↑(quasispectrum R a) : Type u_2), R)₀ →⋆ₙₐ[R] B) (ψ.comp (cfcₙHom (p := p) ha))
    (NonUnitalStarAlgHom.comp (cfcₙHom (p := q) hψa) (ContinuousMapZero.nonUnitalStarAlgHom_precomp R ι))
have refine : Eq.{u_5 + 1} (α := B)
  (((ψ.comp (cfcₙHom (p := p) ha) : C((↑(quasispectrum R a) : Type u_2), R)₀ →⋆ₙₐ[R] B) :
        (a : C((↑(quasispectrum R a) : Type u_2), R)₀) → B)
      (ContinuousMapZero.id (quasispectrum R a)) :
    B)
  ((NonUnitalStarAlgHom.comp (cfcₙHom (p := q) hψa) (ContinuousMapZero.nonUnitalStarAlgHom_precomp R ι) :
        (a : C((↑(quasispectrum R a) : Type u_2), R)₀) → B)
      (ContinuousMapZero.id (quasispectrum R a)) :
    B)
Tactic: refine ContinuousMapZero.UniqueHom.eq_of_continuous_of_map_id _ _ _ ?_ ?_ ?apply_id
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unique (goal)
Goal:
F : Type u_1
R : Type u_2
S : Type u_3
A : Type u_4
B : Type u_5
p : A → Prop
q : B → Prop
inst : CommSemiring R
inst_1 : Nontrivial R
inst_2 : StarRing R
inst_3 : MetricSpace R
inst_4 : IsTopologicalSemiring R
inst_5 : ContinuousStar R
inst_6 : CommRing S
inst_7 : Algebra R S
inst_8 : NonUnitalRing A
inst_9 : StarRing A
inst_10 : TopologicalSpace A
inst_11 : Module R A
inst_12 : IsScalarTower R A A
inst_13 : SMulCommClass R A A
inst_14 : NonUnitalRing B
inst_15 : StarRing B
inst_16 : TopologicalSpace B
inst_17 : Module R B
inst_18 : IsScalarTower R B B
inst_19 : SMulCommClass R B B
inst_20 : Module S A
inst_21 : Module S B
inst_22 : IsScalarTower R S A
inst_23 : IsScalarTower R S B
inst_24 : NonUnitalContinuousFunctionalCalculus R A p
inst_25 : NonUnitalContinuousFunctionalCalculus R B q
inst_26 : ContinuousMapZero.UniqueHom R B
inst_27 : FunLike F A B
inst_28 : NonUnitalAlgHomClass F S A B
inst_29 : StarHomClass F A B
φ : F
f : R → R
a : A
hf : ContinuousOn f (quasispectrum R a)
hf₀ : f 0 = 0
hφ : Continuous[inst_10, inst_16] (⇑φ : (a : A) → B)
ha : p a
hφa : q ((φ : (a : A) → B) a)
ψ : A →⋆ₙₐ[R] B := NonUnitalStarAlgHom.restrictScalars R (↑φ : A →⋆ₙₐ[S] B)
this : Continuous[inst_10, inst_16] (⇑ψ : (a : A) → B)
h_spec : quasispectrum.{u_2, u_5} R (A := B) ((φ : (a : A) → B) a : B) ⊆ quasispectrum R a
hψa : q ((ψ : (a : A) → B) a)
ι : C((↑(quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) : Type u_2),
  (↑(quasispectrum R a) : Type u_2))₀ :=
  {
    toFun :=
      Set.inclusion (s := quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) (t := quasispectrum R a)
        h_spec,
    continuous_toFun := ⋯, map_zero' := ⋯ }
⊢ Eq.{u_5 + 1} (α := B)
    (((ψ.comp (cfcₙHom (p := p) ha) : C((↑(quasispectrum R a) : Type u_2), R)₀ →⋆ₙₐ[R] B) :
          (a : C((↑(quasispectrum R a) : Type u_2), R)₀) → B)
        (ContinuousMapZero.id (quasispectrum R a)) :
      B)
    ((NonUnitalStarAlgHom.comp (cfcₙHom (p := q) hψa) (ContinuousMapZero.nonUnitalStarAlgHom_precomp R ι) :
          (a : C((↑(quasispectrum R a) : Type u_2), R)₀) → B)
        (ContinuousMapZero.id (quasispectrum R a)) :
      B)
have trans : Eq.{u_5 + 1} (α := B)
  (((ψ.comp (cfcₙHom (p := p) ha) : C((↑(quasispectrum R a) : Type u_2), R)₀ →⋆ₙₐ[R] B) :
        (a : C((↑(quasispectrum R a) : Type u_2), R)₀) → B)
      (ContinuousMapZero.id (quasispectrum R a)) :
    B)
  ((cfcₙHom (p := q) hψa : (a : C((↑(quasispectrum R ((ψ : (a : A) → B) a)) : Type u_2), R)₀) → B)
      (ContinuousMapZero.id (quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) :
        C((↑(quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) : Type u_2), R)₀) :
    B)
Tactic: trans cfcₙHom hψa (.id (quasispectrum R (ψ a)))
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unique (goal)
Goal:
F : Type u_1
R : Type u_2
S : Type u_3
A : Type u_4
B : Type u_5
p : A → Prop
q : B → Prop
inst : CommSemiring R
inst_1 : Nontrivial R
inst_2 : StarRing R
inst_3 : MetricSpace R
inst_4 : IsTopologicalSemiring R
inst_5 : ContinuousStar R
inst_6 : CommRing S
inst_7 : Algebra R S
inst_8 : NonUnitalRing A
inst_9 : StarRing A
inst_10 : TopologicalSpace A
inst_11 : Module R A
inst_12 : IsScalarTower R A A
inst_13 : SMulCommClass R A A
inst_14 : NonUnitalRing B
inst_15 : StarRing B
inst_16 : TopologicalSpace B
inst_17 : Module R B
inst_18 : IsScalarTower R B B
inst_19 : SMulCommClass R B B
inst_20 : Module S A
inst_21 : Module S B
inst_22 : IsScalarTower R S A
inst_23 : IsScalarTower R S B
inst_24 : NonUnitalContinuousFunctionalCalculus R A p
inst_25 : NonUnitalContinuousFunctionalCalculus R B q
inst_26 : ContinuousMapZero.UniqueHom R B
inst_27 : FunLike F A B
inst_28 : NonUnitalAlgHomClass F S A B
inst_29 : StarHomClass F A B
φ : F
f : R → R
a : A
hf : ContinuousOn f (quasispectrum R a)
hf₀ : f 0 = 0
hφ : Continuous[inst_10, inst_16] (⇑φ : (a : A) → B)
ha : p a
hφa : q ((φ : (a : A) → B) a)
ψ : A →⋆ₙₐ[R] B := NonUnitalStarAlgHom.restrictScalars R (↑φ : A →⋆ₙₐ[S] B)
this : Continuous[inst_10, inst_16] (⇑ψ : (a : A) → B)
h_spec : quasispectrum.{u_2, u_5} R (A := B) ((φ : (a : A) → B) a : B) ⊆ quasispectrum R a
hψa : q ((ψ : (a : A) → B) a)
ι : C((↑(quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) : Type u_2),
  (↑(quasispectrum R a) : Type u_2))₀ :=
  {
    toFun :=
      Set.inclusion (s := quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) (t := quasispectrum R a)
        h_spec,
    continuous_toFun := ⋯, map_zero' := ⋯ }
⊢ Continuous[_, inst_16]
    (⇑(ψ.comp (cfcₙHom (p := p) ha) : C((↑(quasispectrum R a) : Type u_2), R)₀ →⋆ₙₐ[R] B) :
      (a : C((↑(quasispectrum R a) : Type u_2), R)₀) → B)
have refine_1 : Continuous[_, inst_16]
  (Function.comp.{u_2 + 1, u_4 + 1, u_5 + 1} (β := A) (⇑ψ : (a : A) → B)
    (⇑(cfcₙHom (p := p) ha) : (a : C((↑(quasispectrum R a) : Type u_2), R)₀) → A))
Tactic: dsimp [ContinuousMapZero.nonUnitalStarAlgHom_precomp]
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unique (goal)
Goal:
F : Type u_1
R : Type u_2
S : Type u_3
A : Type u_4
B : Type u_5
p : A → Prop
q : B → Prop
inst : CommSemiring R
inst_1 : Nontrivial R
inst_2 : StarRing R
inst_3 : MetricSpace R
inst_4 : IsTopologicalSemiring R
inst_5 : ContinuousStar R
inst_6 : CommRing S
inst_7 : Algebra R S
inst_8 : NonUnitalRing A
inst_9 : StarRing A
inst_10 : TopologicalSpace A
inst_11 : Module R A
inst_12 : IsScalarTower R A A
inst_13 : SMulCommClass R A A
inst_14 : NonUnitalRing B
inst_15 : StarRing B
inst_16 : TopologicalSpace B
inst_17 : Module R B
inst_18 : IsScalarTower R B B
inst_19 : SMulCommClass R B B
inst_20 : Module S A
inst_21 : Module S B
inst_22 : IsScalarTower R S A
inst_23 : IsScalarTower R S B
inst_24 : NonUnitalContinuousFunctionalCalculus R A p
inst_25 : NonUnitalContinuousFunctionalCalculus R B q
inst_26 : ContinuousMapZero.UniqueHom R B
inst_27 : FunLike F A B
inst_28 : NonUnitalAlgHomClass F S A B
inst_29 : StarHomClass F A B
φ : F
f : R → R
a : A
hf : ContinuousOn f (quasispectrum R a)
hf₀ : f 0 = 0
hφ : Continuous[inst_10, inst_16] (⇑φ : (a : A) → B)
ha : p a
hφa : q ((φ : (a : A) → B) a)
ψ : A →⋆ₙₐ[R] B := NonUnitalStarAlgHom.restrictScalars R (↑φ : A →⋆ₙₐ[S] B)
this : Continuous[inst_10, inst_16] (⇑ψ : (a : A) → B)
h_spec : quasispectrum.{u_2, u_5} R (A := B) ((φ : (a : A) → B) a : B) ⊆ quasispectrum R a
hψa : q ((ψ : (a : A) → B) a)
ι : C((↑(quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) : Type u_2),
  (↑(quasispectrum R a) : Type u_2))₀ :=
  {
    toFun :=
      Set.inclusion (s := quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) (t := quasispectrum R a)
        h_spec,
    continuous_toFun := ⋯, map_zero' := ⋯ }
⊢ Continuous[_, inst_16]
    (⇑(NonUnitalStarAlgHom.comp (cfcₙHom (p := q) hψa) (ContinuousMapZero.nonUnitalStarAlgHom_precomp R ι)) :
      (a : C((↑(quasispectrum R a) : Type u_2), R)₀) → B)
have refine_2 : Continuous[_, inst_16]
  (Function.comp (β := C((↑(quasispectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) : Type u_2), R)₀)
    (⇑(cfcₙHom (p := q) hψa) : (a : C((↑(quasispectrum R ((ψ : (a : A) → B) a)) : Type u_2), R)₀) → B)
    fun (g : C((↑(quasispectrum R a) : Type u_2), R)₀) ↦ g.comp ι)
Tactic: dsimp [ContinuousMapZero.nonUnitalStarAlgHom_precomp]
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unique (hypothesis)
Goal:
F : Type u_1
R : Type u_2
S : Type u_3
A : Type u_4
B : Type u_5
p : A → Prop
q : B → Prop
inst : CommSemiring R
inst_1 : StarRing R
inst_2 : MetricSpace R
inst_3 : IsTopologicalSemiring R
inst_4 : ContinuousStar R
inst_5 : Ring A
inst_6 : StarRing A
inst_7 : TopologicalSpace A
inst_8 : Algebra R A
inst_9 : Ring B
inst_10 : StarRing B
inst_11 : TopologicalSpace B
inst_12 : Algebra R B
inst_13 : CommSemiring S
inst_14 : Algebra R S
inst_15 : Algebra S A
inst_16 : Algebra S B
inst_17 : IsScalarTower R S A
inst_18 : IsScalarTower R S B
inst_19 : ContinuousFunctionalCalculus R A p
inst_20 : ContinuousFunctionalCalculus R B q
inst_21 : ContinuousMap.UniqueHom R B
inst_22 : FunLike F A B
inst_23 : AlgHomClass F S A B
inst_24 : StarHomClass F A B
φ : F
f : R → R
a : A
hf : ContinuousOn f (spectrum R a)
hφ : Continuous[inst_7, inst_11] (⇑φ : (a : A) → B)
ha : p a
hφa : q ((φ : (a : A) → B) a)
ψ : A →⋆ₐ[R] B := StarAlgHom.restrictScalars R (↑φ : A →⋆ₐ[S] B)
⊢ (φ : (a : A) → B) (cfc (p := p) f a) = cfc (p := q) f ((φ : (a : A) → B) a)
have this : Continuous[inst_7, inst_11] (⇑ψ : (a : A) → B)
Tactic: have : Continuous ψ := hφ
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unique (hypothesis)
Goal:
F : Type u_1
R : Type u_2
S : Type u_3
A : Type u_4
B : Type u_5
p : A → Prop
q : B → Prop
inst : CommSemiring R
inst_1 : StarRing R
inst_2 : MetricSpace R
inst_3 : IsTopologicalSemiring R
inst_4 : ContinuousStar R
inst_5 : Ring A
inst_6 : StarRing A
inst_7 : TopologicalSpace A
inst_8 : Algebra R A
inst_9 : Ring B
inst_10 : StarRing B
inst_11 : TopologicalSpace B
inst_12 : Algebra R B
inst_13 : CommSemiring S
inst_14 : Algebra R S
inst_15 : Algebra S A
inst_16 : Algebra S B
inst_17 : IsScalarTower R S A
inst_18 : IsScalarTower R S B
inst_19 : ContinuousFunctionalCalculus R A p
inst_20 : ContinuousFunctionalCalculus R B q
inst_21 : ContinuousMap.UniqueHom R B
inst_22 : FunLike F A B
inst_23 : AlgHomClass F S A B
inst_24 : StarHomClass F A B
φ : F
f : R → R
a : A
hf : ContinuousOn f (spectrum R a)
hφ : Continuous[inst_7, inst_11] (⇑φ : (a : A) → B)
ha : p a
hφa : q ((φ : (a : A) → B) a)
ψ : A →⋆ₐ[R] B := StarAlgHom.restrictScalars R (↑φ : A →⋆ₐ[S] B)
this : Continuous[inst_7, inst_11] (⇑ψ : (a : A) → B)
⊢ (φ : (a : A) → B) (cfc (p := p) f a) = cfc (p := q) f ((φ : (a : A) → B) a)
have h_spec : spectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B) ⊆ spectrum R a
Tactic: have h_spec := AlgHom.spectrum_apply_subset ψ a
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unique (hypothesis)
Goal:
F : Type u_1
R : Type u_2
S : Type u_3
A : Type u_4
B : Type u_5
p : A → Prop
q : B → Prop
inst : CommSemiring R
inst_1 : StarRing R
inst_2 : MetricSpace R
inst_3 : IsTopologicalSemiring R
inst_4 : ContinuousStar R
inst_5 : Ring A
inst_6 : StarRing A
inst_7 : TopologicalSpace A
inst_8 : Algebra R A
inst_9 : Ring B
inst_10 : StarRing B
inst_11 : TopologicalSpace B
inst_12 : Algebra R B
inst_13 : CommSemiring S
inst_14 : Algebra R S
inst_15 : Algebra S A
inst_16 : Algebra S B
inst_17 : IsScalarTower R S A
inst_18 : IsScalarTower R S B
inst_19 : ContinuousFunctionalCalculus R A p
inst_20 : ContinuousFunctionalCalculus R B q
inst_21 : ContinuousMap.UniqueHom R B
inst_22 : FunLike F A B
inst_23 : AlgHomClass F S A B
inst_24 : StarHomClass F A B
φ : F
f : R → R
a : A
hf : ContinuousOn f (spectrum R a)
hφ : Continuous[inst_7, inst_11] (⇑φ : (a : A) → B)
ha : p a
hφa : q ((φ : (a : A) → B) a)
ψ : A →⋆ₐ[R] B := StarAlgHom.restrictScalars R (↑φ : A →⋆ₐ[S] B)
this : Continuous[inst_7, inst_11] (⇑ψ : (a : A) → B)
h_spec : spectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B) ⊆ spectrum R a
⊢ (φ : (a : A) → B) (cfc (p := p) f a) = cfc (p := q) f ((φ : (a : A) → B) a)
have hψa : q ((ψ : (a : A) → B) a)
Tactic: have hψa : q (ψ a) := hφa
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unique (hypothesis)
Goal:
F : Type u_1
R : Type u_2
S : Type u_3
A : Type u_4
B : Type u_5
p : A → Prop
q : B → Prop
inst : CommSemiring R
inst_1 : StarRing R
inst_2 : MetricSpace R
inst_3 : IsTopologicalSemiring R
inst_4 : ContinuousStar R
inst_5 : Ring A
inst_6 : StarRing A
inst_7 : TopologicalSpace A
inst_8 : Algebra R A
inst_9 : Ring B
inst_10 : StarRing B
inst_11 : TopologicalSpace B
inst_12 : Algebra R B
inst_13 : CommSemiring S
inst_14 : Algebra R S
inst_15 : Algebra S A
inst_16 : Algebra S B
inst_17 : IsScalarTower R S A
inst_18 : IsScalarTower R S B
inst_19 : ContinuousFunctionalCalculus R A p
inst_20 : ContinuousFunctionalCalculus R B q
inst_21 : ContinuousMap.UniqueHom R B
inst_22 : FunLike F A B
inst_23 : AlgHomClass F S A B
inst_24 : StarHomClass F A B
φ : F
f : R → R
a : A
hf : ContinuousOn f (spectrum R a)
hφ : Continuous[inst_7, inst_11] (⇑φ : (a : A) → B)
ha : p a
hφa : q ((φ : (a : A) → B) a)
ψ : A →⋆ₐ[R] B := StarAlgHom.restrictScalars R (↑φ : A →⋆ₐ[S] B)
this_1 : Continuous[inst_7, inst_11] (⇑ψ : (a : A) → B)
h_spec : spectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B) ⊆ spectrum R a
hψa : q ((ψ : (a : A) → B) a)
ι : C((↑(spectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) : Type u_2), (↑(spectrum R a) : Type u_2)) :=
  { toFun := Set.inclusion (s := spectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) (t := spectrum R a) h_spec,
    continuous_toFun := ⋯ }
this :
  Eq (α := C((↑(spectrum R a) : Type u_2), R) →⋆ₐ[R] B) (ψ.comp (cfcHom (p := p) ha))
    (StarAlgHom.comp (cfcHom (p := q) hψa) (ContinuousMap.compStarAlgHom' R R ι))
⊢ (φ : (a : A) → B) (cfc (p := p) f a) = cfc (p := q) f ((φ : (a : A) → B) a)
have hf' : ContinuousOn f (spectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B))
Tactic: have hf' : ContinuousOn f (spectrum R (ψ a)) := hf.mono h_spec
-- Lean 4 proof step from Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unique (goal)
Goal:
F : Type u_1
R : Type u_2
S : Type u_3
A : Type u_4
B : Type u_5
p : A → Prop
q : B → Prop
inst : CommSemiring R
inst_1 : StarRing R
inst_2 : MetricSpace R
inst_3 : IsTopologicalSemiring R
inst_4 : ContinuousStar R
inst_5 : Ring A
inst_6 : StarRing A
inst_7 : TopologicalSpace A
inst_8 : Algebra R A
inst_9 : Ring B
inst_10 : StarRing B
inst_11 : TopologicalSpace B
inst_12 : Algebra R B
inst_13 : CommSemiring S
inst_14 : Algebra R S
inst_15 : Algebra S A
inst_16 : Algebra S B
inst_17 : IsScalarTower R S A
inst_18 : IsScalarTower R S B
inst_19 : ContinuousFunctionalCalculus R A p
inst_20 : ContinuousFunctionalCalculus R B q
inst_21 : ContinuousMap.UniqueHom R B
inst_22 : FunLike F A B
inst_23 : AlgHomClass F S A B
inst_24 : StarHomClass F A B
φ : F
f : R → R
a : A
hf : ContinuousOn f (spectrum R a)
hφ : Continuous[inst_7, inst_11] (⇑φ : (a : A) → B)
ha : p a
hφa : q ((φ : (a : A) → B) a)
ψ : A →⋆ₐ[R] B := StarAlgHom.restrictScalars R (↑φ : A →⋆ₐ[S] B)
this_1 : Continuous[inst_7, inst_11] (⇑ψ : (a : A) → B)
h_spec : spectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B) ⊆ spectrum R a
hψa : q ((ψ : (a : A) → B) a)
ι : C((↑(spectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) : Type u_2), (↑(spectrum R a) : Type u_2)) :=
  { toFun := Set.inclusion (s := spectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B)) (t := spectrum R a) h_spec,
    continuous_toFun := ⋯ }
this :
  Eq (α := C((↑(spectrum R a) : Type u_2), R) →⋆ₐ[R] B) (ψ.comp (cfcHom (p := p) ha))
    (StarAlgHom.comp (cfcHom (p := q) hψa) (ContinuousMap.compStarAlgHom' R R ι))
hf' : ContinuousOn f (spectrum.{u_2, u_5} R (A := B) ((ψ : (a : A) → B) a : B))
⊢ (φ : (a : A) → B) (cfc (p := p) f a) = cfc (p := q) f ((φ : (a : A) → B) a)
have rw : Eq.{u_5 + 1} (α := B)
  ((φ : (a : A) → B)
      ((cfcHom (p := p) ha : (a : C((↑(spectrum R a) : Type u_2), R)) → A)
          { toFun := (spectrum R a).restrict (π := fun (a : R) ↦ R) f, continuous_toFun := sorry :
            C((↑(spectrum R a) : Type u_2), R) } :
        A) :
    B)
  ((cfcHom (p := q) hψa : (a : C((↑(spectrum R ((φ : (a : A) → B) a)) : Type u_2), R)) → B)
      { toFun := (spectrum.{u_2, u_5} R (A := B) ((φ : (a : A) → B) a : B)).restrict (π := fun (a : R) ↦ R) f,
        continuous_toFun := sorry : C((↑(spectrum.{u_2, u_5} R (A := B) ((φ : (a : A) → B) a : B)) : Type u_2), R) } :
    B)
Tactic: rw [cfc_apply .., cfc_apply ..]