awhecmu/canonical-drafter-extract-mathlib huggingface dataset:
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
⊢ Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s

Tactic:
have hs' := hs
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
⊢ ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))

Tactic:
simp only [nhdsSet_iUnion, mem_iSup] at hs'

Premises used: nhdsSet_iUnion, Filter.mem_iSup
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
x : (↑t : Type u_1)
obtain :
  ∀ (S : Set ℝ≥0) (hS₃ : id S ⊆ s) (hS₁ : S ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a (↑x : X)))) (hS₂ : IsCompact S),
    ∃ (S : Set ℝ≥0), IsCompact S ∧ (∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S) ∧ S ⊆ s
⊢ ∃ (S : Set ℝ≥0), IsCompact S ∧ (∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S) ∧ S ⊆ s

Tactic:
obtain ⟨S, ⟨hS₁, hS₂⟩, hS₃⟩ :=
      quasispectrum.isCompact_nnreal (a x) |>.nhdsSet_basis_isCompact.mem_iff.mp (hs' x x.2)

Premises used: Filter.HasBasis.mem_iff, quasispectrum.isCompact_nnreal, Iff.mp, Subtype.val, Subtype.property, IsCompact.nhdsSet_basis_isCompact
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
x : (↑t : Type u_1)
S : Set ℝ≥0
hS₃ : id S ⊆ s
hS₁ : S ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a (↑x : X)))
hS₂ : IsCompact S
⊢ ∃ (S : Set ℝ≥0), IsCompact S ∧ (∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S) ∧ S ⊆ s

Tactic:
⟨S, hS₂, ?_, hS₃⟩

Premises used: And.intro, Exists.intro
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
x : (↑t : Type u_1)
S : Set ℝ≥0
hS₃ : id S ⊆ s
hS₁ : S ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a (↑x : X)))
hS₂ : IsCompact S
refine : ∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S
⊢ ∃ (S : Set ℝ≥0), IsCompact S ∧ (∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S) ∧ S ⊆ s

Tactic:
refine ⟨S, hS₂, ?_, hS₃⟩
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
x : (↑t : Type u_1)
S : Set ℝ≥0
hS₃ : id S ⊆ s
hS₁ : S ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a (↑x : X)))
hS₂ : IsCompact S
⊢ ∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S

Tactic:
upperHemicontinuous_quasispectrum_nnreal A |>.upperHemicontinuousAt (a x) _ hS₁ |>.mono
      fun _ ↦ subset_of_mem_nhdsSet

Premises used: subset_of_mem_nhdsSet, Filter.Eventually.mono, upperHemicontinuous_quasispectrum_nnreal, UpperHemicontinuous.upperHemicontinuousAt, Subtype.val
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
x : (↑t : Type u_1)
S : Set ℝ≥0
hS₃ : id S ⊆ s
hS₁ : S ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a (↑x : X)))
hS₂ : IsCompact S
⊢ ∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S

Tactic:
exact upperHemicontinuous_quasispectrum_nnreal A |>.upperHemicontinuousAt (a x) _ hS₁ |>.mono
      fun _ ↦ subset_of_mem_nhdsSet

Premises used: subset_of_mem_nhdsSet, Filter.Eventually.mono, upperHemicontinuous_quasispectrum_nnreal, UpperHemicontinuous.upperHemicontinuousAt, Subtype.val
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
⊢ ∀ (x : (↑t : Type u_1)),
    ∃ (S : Set ℝ≥0), IsCompact S ∧ (∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S) ∧ S ⊆ s

Tactic:
have (x : t) : ∃ S, IsCompact S ∧ (∀ᶠ (x' : A) in 𝓝 (a x), quasispectrum ℝ≥0 x' ⊆ S) ∧ S ⊆ s := by
    obtain ⟨S, ⟨hS₁, hS₂⟩, hS₃⟩ :=
      quasispectrum.isCompact_nnreal (a x) |>.nhdsSet_basis_isCompact.mem_iff.mp (hs' x x.2)
    refine ⟨S, hS₂, ?_, hS₃⟩
    exact upperHemicontinuous_quasispectrum_nnreal A |>.upperHemicontinuousAt (a x) _ hS₁ |>.mono
      fun _ ↦ subset_of_mem_nhdsSet
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
this :
  ∀ (x : (↑t : Type u_1)),
    ∃ (S : Set ℝ≥0), IsCompact S ∧ (∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S) ∧ S ⊆ s
choose :
  ∀ (S : (x : (↑t : Type u_1)) → Set ℝ≥0) (hS₁ : ∀ (x : (↑t : Type u_1)), IsCompact (S x))
    (hS₂ : ∀ (x : (↑t : Type u_1)), ∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S x)
    (hS₃ : ∀ (x : (↑t : Type u_1)), S x ⊆ s),
    ContinuousOn.{u_1, u_2} (Y := A) (fun (x : X) ↦ cfcₙ (p := fun (x : A) ↦ 0 ≤ x) f (a x)) t
⊢ ContinuousOn.{u_1, u_2} (Y := A) (fun (x : X) ↦ cfcₙ (p := fun (x : A) ↦ 0 ≤ x) f (a x)) t

Tactic:
choose S hS₁ hS₂ hS₃ using this
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
S : (x : (↑t : Type u_1)) → Set ℝ≥0
hS₁ : ∀ (x : (↑t : Type u_1)), IsCompact (S x)
hS₂ : ∀ (x : (↑t : Type u_1)), ∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S x
hS₃ : ∀ (x : (↑t : Type u_1)), S x ⊆ s
⊢ ∀ x ∈ t,
    IsCompact (X := ℝ≥0)
      ((fun (x : X) ↦ (if hx : x ∈ t then S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x hx) else ∅ : Set ℝ≥0)) x)

Tactic:
simpa +contextual using hS₁
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
S : (x : (↑t : Type u_1)) → Set ℝ≥0
hS₁ : ∀ (x : (↑t : Type u_1)), IsCompact (S x)
hS₂ : ∀ (x : (↑t : Type u_1)), ∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S x
hS₃ : ∀ (x : (↑t : Type u_1)), S x ⊆ s
refine_1 :
  ∀ x₀ ∈ t,
    ∀ᶠ (x : X) in 𝓝[t] x₀,
      quasispectrum ℝ≥0 (a x) ⊆
        (fun (x : X) ↦ (if hx : x ∈ t then S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x hx) else ∅ : Set ℝ≥0)) x₀
refine_2 :
  ∀ x ∈ t,
    ContinuousOn f
      ((fun (x : X) ↦ (if hx : x ∈ t then S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x hx) else ∅ : Set ℝ≥0)) x)
⊢ ContinuousOn.{u_1, u_2} (Y := A) (fun (x : X) ↦ cfcₙ (p := fun (x : A) ↦ 0 ≤ x) f (a x)) t

Tactic:
refine ha_cont.cfcₙ_nnreal (s := fun x : X ↦ if hx : x ∈ t then S ⟨x, hx⟩ else ∅) f
    (by simpa +contextual using hS₁) ?_ ha' ?_

Premises used: ContinuousOn.cfcₙ_nnreal
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
S : (x : (↑t : Type u_1)) → Set ℝ≥0
hS₁ : ∀ (x : (↑t : Type u_1)), IsCompact (S x)
hS₂ : ∀ (x : (↑t : Type u_1)), ∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S x
hS₃ : ∀ (x : (↑t : Type u_1)), S x ⊆ s
refine_1 :
  ∀ (x₀ : X) (a_1 : x₀ ∈ t),
    ∀ᶠ (x : X) in 𝓝[t] x₀, quasispectrum ℝ≥0 (a x) ⊆ S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x₀ ⋯)
⊢ ∀ x₀ ∈ t,
    ∀ᶠ (x : X) in 𝓝[t] x₀,
      quasispectrum ℝ≥0 (a x) ⊆
        (fun (x : X) ↦ (if hx : x ∈ t then S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x hx) else ∅ : Set ℝ≥0)) x₀

Tactic:
simp +contextual only [↓reduceDIte]

Premises used: reduceDIte
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
S : (x : (↑t : Type u_1)) → Set ℝ≥0
hS₁ : ∀ (x : (↑t : Type u_1)), IsCompact (S x)
hS₂ : ∀ (x : (↑t : Type u_1)), ∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S x
hS₃ : ∀ (x : (↑t : Type u_1)), S x ⊆ s
refine_2 : ∀ (x : X) (a : x ∈ t), ContinuousOn f (S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x ⋯))
⊢ ∀ x ∈ t,
    ContinuousOn f
      ((fun (x : X) ↦ (if hx : x ∈ t then S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x hx) else ∅ : Set ℝ≥0)) x)

Tactic:
simp +contextual only [↓reduceDIte]

Premises used: reduceDIte
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
S : (x : (↑t : Type u_1)) → Set ℝ≥0
hS₁ : ∀ (x : (↑t : Type u_1)), IsCompact (S x)
hS₂ : ∀ (x : (↑t : Type u_1)), ∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S x
hS₃ : ∀ (x : (↑t : Type u_1)), S x ⊆ s
⊢ ∀ (x₀ : X) (a_1 : x₀ ∈ t),
    ∀ᶠ (x : X) in 𝓝[t] x₀, quasispectrum ℝ≥0 (a x) ⊆ S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x₀ ⋯)

Tactic:
fun x₀ hx₀ ↦ ha_cont.continuousWithinAt hx₀ |>.eventually <| hS₂ ⟨x₀, hx₀⟩

Premises used: Subtype.mk, Filter.Tendsto.eventually, ContinuousOn.continuousWithinAt
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
S : (x : (↑t : Type u_1)) → Set ℝ≥0
hS₁ : ∀ (x : (↑t : Type u_1)), IsCompact (S x)
hS₂ : ∀ (x : (↑t : Type u_1)), ∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S x
hS₃ : ∀ (x : (↑t : Type u_1)), S x ⊆ s
⊢ ∀ (x₀ : X) (a_1 : x₀ ∈ t),
    ∀ᶠ (x : X) in 𝓝[t] x₀, quasispectrum ℝ≥0 (a x) ⊆ S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x₀ ⋯)

Tactic:
exact fun x₀ hx₀ ↦ ha_cont.continuousWithinAt hx₀ |>.eventually <| hS₂ ⟨x₀, hx₀⟩

Premises used: Subtype.mk, Filter.Tendsto.eventually, ContinuousOn.continuousWithinAt
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
S : (x : (↑t : Type u_1)) → Set ℝ≥0
hS₁ : ∀ (x : (↑t : Type u_1)), IsCompact (S x)
hS₂ : ∀ (x : (↑t : Type u_1)), ∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S x
hS₃ : ∀ (x : (↑t : Type u_1)), S x ⊆ s
⊢ ∀ (x : X) (a : x ∈ t), ContinuousOn f (S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x ⋯))

Tactic:
fun x hx ↦ hf.mono <| hS₃ ⟨x, hx⟩

Premises used: Subtype.mk, ContinuousOn.mono
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
S : (x : (↑t : Type u_1)) → Set ℝ≥0
hS₁ : ∀ (x : (↑t : Type u_1)), IsCompact (S x)
hS₂ : ∀ (x : (↑t : Type u_1)), ∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S x
hS₃ : ∀ (x : (↑t : Type u_1)), S x ⊆ s
⊢ ∀ (x : X) (a : x ∈ t), ContinuousOn f (S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x ⋯))

Tactic:
exact fun x hx ↦ hf.mono <| hS₃ ⟨x, hx⟩

Premises used: Subtype.mk, ContinuousOn.mono
-- Module: Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity
Goal:
X : Type u_1
A : Type u_2
inst : NonUnitalNormedRing A
inst_1 : StarRing A
inst_2 : NormedSpace ℝ A
inst_3 : IsScalarTower ℝ A A
inst_4 : SMulCommClass ℝ A A
inst_5 : ContinuousStar A
inst_6 : NonUnitalIsometricContinuousFunctionalCalculus ℝ A IsSelfAdjoint
inst_7 : PartialOrder A
inst_8 : StarOrderedRing A
inst_9 : NonnegSpectrumClass ℝ A
inst_10 : T2Space A
inst_11 : IsSemitopologicalRing A
inst_12 : CompleteSpace A
inst_13 : TopologicalSpace X
s : Set ℝ≥0
f : ℝ≥0 → ℝ≥0
a : X → A
t : Set X
hs : Membership.mem (γ := Filter ℝ≥0) (𝓝ˢ (⋃ x ∈ t, quasispectrum ℝ≥0 (a x))) s
ha_cont : ContinuousOn a t
ha' : ∀ x ∈ t, 0 ≤ a x
hf : ContinuousOn f s
hf0 : f 0 = 0
hs' : ∀ (i : X) (i_1 : i ∈ t), s ∈ 𝓝ˢ (quasispectrum ℝ≥0 (a i))
S : (x : (↑t : Type u_1)) → Set ℝ≥0
hS₁ : ∀ (x : (↑t : Type u_1)), IsCompact (S x)
hS₂ : ∀ (x : (↑t : Type u_1)), ∀ᶠ (x' : A) in 𝓝 (a (↑x : X)), quasispectrum ℝ≥0 x' ⊆ S x
hS₃ : ∀ (x : (↑t : Type u_1)), S x ⊆ s
refine_1 :
  ∀ x₀ ∈ t,
    ∀ᶠ (x : X) in 𝓝[t] x₀,
      quasispectrum ℝ≥0 (a x) ⊆
        (fun (x : X) ↦ (if hx : x ∈ t then S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x hx) else ∅ : Set ℝ≥0)) x₀
refine_2 :
  ∀ x ∈ t,
    ContinuousOn f
      ((fun (x : X) ↦ (if hx : x ∈ t then S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x hx) else ∅ : Set ℝ≥0)) x)
refine_1₁ :
  ∀ (x₀ : X) (a_1 : x₀ ∈ t),
    ∀ᶠ (x : X) in 𝓝[t] x₀, quasispectrum ℝ≥0 (a x) ⊆ S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x₀ ⋯)
refine_2₁ refine_2₂ : ∀ (x : X) (a : x ∈ t), ContinuousOn f (S (Subtype.mk (p := fun (x : X) ↦ x ∈ t) x ⋯))
⊢ ContinuousOn.{u_1, u_2} (Y := A) (fun (x : X) ↦ cfcₙ (p := fun (x : A) ↦ 0 ≤ x) f (a x)) t

Tactic:
classical
  refine ha_cont.cfcₙ_nnreal (s := fun x : X ↦ if hx : x ∈ t then S ⟨x, hx⟩ else ∅) f
    (by simpa +contextual using hS₁) ?_ ha' ?_
  all_goals simp +contextual only [↓reduceDIte]
  · exact fun x₀ hx₀ ↦ ha_cont.continuousWithinAt hx₀ |>.eventually <| hS₂ ⟨x₀, hx₀⟩
  · exact fun x hx ↦ hf.mono <| hS₃ ⟨x, hx⟩

Premises used: reduceDIte, Subtype.mk, Filter.Tendsto.eventually, ContinuousOn.mono, ContinuousOn.continuousWithinAt