Skip to content

Commit 169c26b

Browse files
committed
refactor: rename restrict to domRestrict (leanprover-community#25980)
Update the documentation for consistency, and to contrast with `codRestrict` which is prevalent.
1 parent d0060d7 commit 169c26b

151 files changed

Lines changed: 974 additions & 770 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Archive/Sensitivity.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,12 @@ theorem exists_eigenvalue (H : Set (Q m.succ)) (hH : Card H ≥ 2 ^ m + 1) :
387387
rw [rank_range_of_injective (g m) g_injective]
388388
apply dim_V
389389
have dimW : dim W = card H := by
390-
have li : LinearIndependent ℝ (H.restrict e) := by
390+
have li : LinearIndependent ℝ (H.domRestrict e) := by
391391
convert! (dualBases_e_ε m.succ).basis.linearIndependent.comp _ Subtype.val_injective
392392
rw [(dualBases_e_ε _).coe_basis]
393393
rfl
394394
have hdW := rank_span li
395-
rw [Set.range_restrict] at hdW
395+
rw [Set.range_domRestrict] at hdW
396396
convert! hdW
397397
rw [← (dualBases_e_ε _).coe_basis, Cardinal.mk_image_eq (dualBases_e_ε _).basis.injective,
398398
Cardinal.mk_fintype]

Mathlib/Algebra/Group/Subgroup/Basic.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,20 +1087,20 @@ theorem normalClosure_eq_top_of {N : Subgroup G} [hn : N.Normal] {g g' : G} {hg
10871087
have h : ∀ x : N, (MulAut.conj c) x ∈ N := by
10881088
rintro ⟨x, hx⟩
10891089
exact hn.conj_mem _ hx c
1090-
have hs : Function.Surjective (((MulAut.conj c).toMonoidHom.restrict N).codRestrict _ h) := by
1090+
have hs : Function.Surjective (((MulAut.conj c).toMonoidHom.domRestrict N).codRestrict _ h) := by
10911091
rintro ⟨x, hx⟩
10921092
refine ⟨⟨c⁻¹ * x * c, ?_⟩, ?_⟩
10931093
· have h := hn.conj_mem _ hx c⁻¹
10941094
rwa [inv_inv] at h
10951095
simp only [MonoidHom.codRestrict_apply, MulEquiv.coe_toMonoidHom, MulAut.conj_apply,
1096-
MonoidHom.restrict_apply, Subtype.mk_eq_mk, ← mul_assoc, mul_inv_cancel, one_mul]
1096+
MonoidHom.domRestrict_apply, Subtype.mk_eq_mk, ← mul_assoc, mul_inv_cancel, one_mul]
10971097
rw [mul_assoc, mul_inv_cancel, mul_one]
10981098
rw [eq_top_iff, ← MonoidHom.range_eq_top.2 hs, MonoidHom.range_eq_map]
10991099
grw [eq_top_iff.1 ht]
11001100
refine map_le_iff_le_comap.2 (normalClosure_le_normal ?_)
11011101
rw [Set.singleton_subset_iff, SetLike.mem_coe]
11021102
simp only [MonoidHom.codRestrict_apply, MulEquiv.coe_toMonoidHom, MulAut.conj_apply,
1103-
MonoidHom.restrict_apply, mem_comap]
1103+
MonoidHom.domRestrict_apply, mem_comap]
11041104
exact subset_normalClosure (Set.mem_singleton _)
11051105

11061106
end IsConj

Mathlib/Algebra/Group/Subgroup/Ker.lean

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,14 @@ instance _root_.Subgroup.range_isMulCommutative {G : Type*} [Group G] [IsMulComm
9494
range_eq_map f ▸ Subgroup.map_isMulCommutative ⊤ f
9595

9696
@[to_additive (attr := simp)]
97-
theorem restrict_range (f : G →* N) : (f.restrict K).range = K.map f := by
98-
simp_rw [SetLike.ext_iff, mem_range, mem_map, restrict_apply, SetLike.exists,
97+
theorem domRestrict_range (f : G →* N) : (f.domRestrict K).range = K.map f := by
98+
simp_rw [SetLike.ext_iff, mem_range, mem_map, domRestrict_apply, SetLike.exists,
9999
exists_prop, forall_const]
100100

101+
@[deprecated (since := "2026-07-19")] alias restrict_range := domRestrict_range
102+
@[deprecated (since := "2026-07-19")]
103+
alias _root_.AddMonoidHom.restrict_range := _root_.AddMonoidHom.domRestrict_range
104+
101105
/-- The canonical surjective group homomorphism `G →* f(G)` induced by a group
102106
homomorphism `G →* N`. -/
103107
@[to_additive
@@ -280,9 +284,13 @@ theorem ker_le_comap (f : G →* N) (H : Subgroup N) : f.ker ≤ H.comap f :=
280284
comap_mono bot_le
281285

282286
@[to_additive (attr := simp)]
283-
theorem ker_restrict (f : G →* M) : (f.restrict K).ker = f.ker.subgroupOf K :=
287+
theorem ker_domRestrict (f : G →* M) : (f.domRestrict K).ker = f.ker.subgroupOf K :=
284288
rfl
285289

290+
@[deprecated (since := "2026-07-19")] alias ker_restrict := ker_domRestrict
291+
@[deprecated (since := "2026-07-19")]
292+
alias _root_.AddMonoidHom.ker_restrict := _root_.AddMonoidHom.ker_domRestrict
293+
286294
@[to_additive (attr := simp)]
287295
theorem ker_codRestrict {S} [SetLike S N] [SubmonoidClass S N] (f : G →* N) (s : S)
288296
(h : ∀ x, f x ∈ s) : (f.codRestrict s h).ker = f.ker :=

Mathlib/Algebra/Group/Submonoid/Operations.lean

Lines changed: 95 additions & 64 deletions
Large diffs are not rendered by default.

Mathlib/Algebra/Group/Subsemigroup/Operations.lean

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ In this file we define various operations on `Subsemigroup`s and `MulHom`s.
5050
### Operations on `MulHom`s
5151
5252
* `MulHom.srange`: range of a semigroup homomorphism as a subsemigroup of the codomain;
53-
* `MulHom.restrict`: restrict a semigroup homomorphism to a subsemigroup;
53+
* `MulHom.domRestrict`: restrict a semigroup homomorphism to a subsemigroup of its domain;
5454
* `MulHom.codRestrict`: restrict the codomain of a semigroup homomorphism to a subsemigroup;
5555
* `MulHom.srangeRestrict`: restrict a semigroup homomorphism to its range;
5656
@@ -595,14 +595,21 @@ theorem map_mclosure (f : M →ₙ* N) (s : Set M) : (closure s).map f = closure
595595

596596
/-- Restriction of a semigroup hom to a subsemigroup of the domain. -/
597597
@[to_additive /-- Restriction of an AddSemigroup hom to an `AddSubsemigroup` of the domain. -/]
598-
def restrict {N : Type*} [Mul N] [SetLike σ M] [MulMemClass σ M] (f : M →ₙ* N) (S : σ) : S →ₙ* N :=
598+
def domRestrict {N : Type*} [Mul N] [SetLike σ M] [MulMemClass σ M] (f : M →ₙ* N)
599+
(S : σ) : S →ₙ* N :=
599600
f.comp (MulMemClass.subtype S)
600601

601602
@[to_additive (attr := simp)]
602-
theorem restrict_apply {N : Type*} [Mul N] [SetLike σ M] [MulMemClass σ M] (f : M →ₙ* N) {S : σ}
603-
(x : S) : f.restrict S x = f x :=
603+
theorem domRestrict_apply {N : Type*} [Mul N] [SetLike σ M] [MulMemClass σ M]
604+
(f : M →ₙ* N) {S : σ} (x : S) : f.domRestrict S x = f x :=
604605
rfl
605606

607+
@[deprecated (since := "2026-07-19")] alias restrict := domRestrict
608+
@[deprecated (since := "2026-07-19")] alias _root_.AddHom.restrict := _root_.AddHom.domRestrict
609+
@[deprecated (since := "2026-07-19")] alias restrict_apply := domRestrict_apply
610+
@[deprecated (since := "2026-07-19")]
611+
alias _root_.AddHom.restrict_apply := _root_.AddHom.domRestrict_apply
612+
606613
/-- Restriction of a semigroup hom to a subsemigroup of the codomain. -/
607614
@[to_additive (attr := simps)
608615
/-- Restriction of an `AddSemigroup` hom to an `AddSubsemigroup` of the codomain. -/]

Mathlib/Algebra/Module/Submodule/LinearMap.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ theorem domRestrict_apply (f : M →ₛₗ[σ₁₂] M₂) (p : Submodule R M) (
148148
rfl
149149

150150
lemma coe_domRestrict (f : M →ₛₗ[σ₁₂] M₂) (p : Submodule R M) :
151-
⇑(f.domRestrict p) = Set.restrict p f := rfl
151+
⇑(f.domRestrict p) = Set.domRestrict p f := rfl
152152

153153
/-- A linear map `f : M₂ → M` whose values lie in a submodule `p ⊆ M` can be restricted to a
154154
linear map M₂ → p.

Mathlib/Algebra/Ring/Subsemiring/Defs.lean

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,11 @@ def domRestrict (f : R →+* S) (s : σR) : s →+* S :=
400400
f.comp <| SubsemiringClass.subtype s
401401

402402
@[simp]
403-
theorem restrict_apply (f : R →+* S) {s : σR} (x : s) : f.domRestrict s x = f x :=
403+
theorem domRestrict_apply (f : R →+* S) {s : σR} (x : s) : f.domRestrict s x = f x :=
404404
rfl
405405

406+
@[deprecated (since := "2026-07-19")] alias restrict_apply := domRestrict_apply
407+
406408
/-- The subsemiring of elements `x : R` such that `f x = g x` -/
407409
def eqLocusS (f g : R →+* S) : Subsemiring R :=
408410
{ (f : R →* S).eqLocusM g, (f : R →+ S).eqLocusM g with carrier := { x | f x = g x } }

Mathlib/Analysis/CStarAlgebra/ContinuousFunctionalCalculus/Commute.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ protected theorem Commute.cfc {a b : A} (hb₁ : Commute a b)
7878
(hb₂ : Commute (star a) b) (f : 𝕜 → 𝕜) :
7979
Commute (cfc f a) b :=
8080
cfc_cases (fun x ↦ Commute x b) a f (Commute.zero_left _)
81-
fun hf ha ↦ hb₁.cfcHom ha hb₂ ⟨_, hf.restrict
81+
fun hf ha ↦ hb₁.cfcHom ha hb₂ ⟨_, hf.domRestrict
8282

8383
/-- For `a` selfadjoint, an element commutes with `cfc f a` if it commutes with `a`.
8484
@@ -163,7 +163,7 @@ protected theorem Commute.cfcₙ {a b : A} (hb₁ : Commute a b)
163163
(hb₂ : Commute (star a) b) (f : 𝕜 → 𝕜) :
164164
Commute (cfcₙ f a) b :=
165165
cfcₙ_cases (fun x ↦ Commute x b) a f (Commute.zero_left _)
166-
fun hf hf₀ ha ↦ hb₁.cfcₙHom ha hb₂ ⟨⟨_, hf.restrict⟩, hf₀⟩
166+
fun hf hf₀ ha ↦ hb₁.cfcₙHom ha hb₂ ⟨⟨_, hf.domRestrict⟩, hf₀⟩
167167

168168
/-- For `a` selfadjoint, an element commutes with `cfcₙ f a` if it commutes with `a`.
169169

Mathlib/Analysis/CStarAlgebra/ContinuousFunctionalCalculus/Continuity.lean

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ theorem tendsto_cfc_fun {l : Filter X} {F : X → R → R} {f : R → R} {a : A}
9696
rw [Function.comp_apply, cfc_apply (hf := x.2)]
9797
rw [cfc_apply ..]
9898
apply cfcHom_continuous _ |>.tendsto _ |>.comp
99-
rw [hf.tendsto_restrict_iff_tendstoUniformlyOn Subtype.property]
99+
rw [hf.tendsto_domRestrict_iff_tendstoUniformlyOn Subtype.property]
100100
intro t
101101
simp only [eventually_comap, Subtype.forall]
102102
peel h_tendsto t with ht x _
@@ -235,12 +235,13 @@ satisfying the predicate `p` (associated to `𝕜`) and whose `𝕜`-spectrum is
235235
theorem continuousOn_cfc {s : Set 𝕜} (hs : IsCompact s) (f : 𝕜 → 𝕜)
236236
(hf : ContinuousOn f s := by cfc_cont_tac) :
237237
ContinuousOn (cfc f) {a | p a ∧ spectrum 𝕜 a ⊆ s} :=
238-
continuousOn_iff_continuous_restrict.mpr <| by
238+
continuousOn_iff_continuous_domRestrict.mpr <| by
239239
convert!
240-
continuous_cfcHomSuperset_left hs ⟨_, hf.restrict⟩ ((↑) : {a | p a ∧ spectrum 𝕜 a ⊆ s} → A)
240+
continuous_cfcHomSuperset_left hs ⟨_, hf.domRestrict⟩
241+
((↑) : {a | p a ∧ spectrum 𝕜 a ⊆ s} → A)
241242
continuous_subtype_val (fun x ↦ x.2.2) with
242243
x
243-
rw [cfcHomSuperset_apply, Set.restrict_apply, cfc_apply _ _ x.2.1 (hf.mono x.2.2)]
244+
rw [cfcHomSuperset_apply, Set.domRestrict_apply, cfc_apply _ _ x.2.1 (hf.mono x.2.2)]
244245
congr!
245246

246247
open UniformOnFun in
@@ -626,9 +627,9 @@ theorem tendsto_cfcₙ_fun {l : Filter X} {F : X → R → R} {f : R → R} {a :
626627
rw [cfcₙ_apply ..]
627628
apply cfcₙHom_continuous _ |>.tendsto _ |>.comp
628629
rw [ContinuousMapZero.isEmbedding_toContinuousMap.isInducing.tendsto_nhds_iff]
629-
change Tendsto (fun x : s ↦ (⟨_, x.2.1.restrict⟩ : C(quasispectrum R a, R))) _
630-
(𝓝 ⟨_, hf.restrict⟩)
631-
rw [hf.tendsto_restrict_iff_tendstoUniformlyOn (fun x ↦ x.2.1)]
630+
change Tendsto (fun x : s ↦ (⟨_, x.2.1.domRestrict⟩ : C(quasispectrum R a, R))) _
631+
(𝓝 ⟨_, hf.domRestrict⟩)
632+
rw [hf.tendsto_domRestrict_iff_tendstoUniformlyOn (fun x ↦ x.2.1)]
632633
intro t
633634
simp only [eventually_comap, Subtype.forall]
634635
peel h_tendsto t with ht x _
@@ -771,12 +772,12 @@ theorem continuousOn_cfcₙ {s : Set 𝕜} (hs : IsCompact s) (f : 𝕜 → 𝕜
771772
(hf : ContinuousOn f s := by cfc_cont_tac) (hf0 : f 0 = 0 := by cfc_zero_tac) :
772773
ContinuousOn (cfcₙ f · : A → A) {a | p a ∧ quasispectrum 𝕜 a ⊆ s} := by
773774
by_cases hs0 : 0 ∈ s
774-
· rw [continuousOn_iff_continuous_restrict]
775+
· rw [continuousOn_iff_continuous_domRestrict]
775776
convert!
776-
continuous_cfcₙHomSuperset_left hs (hs0 := ⟨hs0⟩) ⟨⟨_, hf.restrict⟩, hf0⟩ (X :=
777+
continuous_cfcₙHomSuperset_left hs (hs0 := ⟨hs0⟩) ⟨⟨_, hf.domRestrict⟩, hf0⟩ (X :=
777778
{a : A | p a ∧ quasispectrum 𝕜 a ⊆ s}) continuous_subtype_val (fun x ↦ x.2.2) with
778779
x
779-
rw [cfcₙHomSuperset_apply, Set.restrict_apply, cfcₙ_apply _ _ (hf.mono x.2.2) hf0 x.2.1]
780+
rw [cfcₙHomSuperset_apply, Set.domRestrict_apply, cfcₙ_apply _ _ (hf.mono x.2.2) hf0 x.2.1]
780781
congr!
781782
· convert! continuousOn_empty _
782783
rw [Set.eq_empty_iff_forall_notMem]

Mathlib/Analysis/CStarAlgebra/ContinuousFunctionalCalculus/Integral.lean

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ For a version with stronger assumptions which in practice are often easier to ve
7474
`integrable_cfc`. -/
7575
lemma integrable_cfc' (f : X → 𝕜 → 𝕜) (a : A)
7676
(hf : Integrable
77-
(fun x : X => mkD ((spectrum 𝕜 a).restrict (f x)) 0) μ)
77+
(fun x : X => mkD ((spectrum 𝕜 a).domRestrict (f x)) 0) μ)
7878
(ha : p a := by cfc_tac) :
7979
Integrable (fun x => cfc (f x) a) μ := by
8080
conv in cfc _ _ => rw [cfc_eq_cfcL_mkD _ a]
@@ -85,7 +85,7 @@ For a version with stronger assumptions which in practice are often easier to ve
8585
`integrableOn_cfc`. -/
8686
lemma integrableOn_cfc' {s : Set X} (f : X → 𝕜 → 𝕜) (a : A)
8787
(hf : IntegrableOn
88-
(fun x : X => mkD ((spectrum 𝕜 a).restrict (f x)) 0) s μ)
88+
(fun x : X => mkD ((spectrum 𝕜 a).domRestrict (f x)) 0) s μ)
8989
(ha : p a := by cfc_tac) :
9090
IntegrableOn (fun x => cfc (f x) a) s μ := by
9191
exact integrable_cfc' _ _ hf ha
@@ -130,21 +130,21 @@ For a version with stronger assumptions which in practice are often easier to ve
130130
lemma cfc_integral' [NormedSpace ℝ A] (f : X → 𝕜 → 𝕜) (a : A)
131131
(hf₁ : ∀ᵐ x ∂μ, ContinuousOn (f x) (spectrum 𝕜 a))
132132
(hf₂ : Integrable
133-
(fun x : X => mkD ((spectrum 𝕜 a).restrict (f x)) 0) μ)
133+
(fun x : X => mkD ((spectrum 𝕜 a).domRestrict (f x)) 0) μ)
134134
(ha : p a := by cfc_tac) :
135135
cfc (fun z => ∫ x, f x z ∂μ) a = ∫ x, cfc (f x) a ∂μ := by
136136
have key₁ (z : spectrum 𝕜 a) :
137-
∫ x, f x z ∂μ = (∫ x, mkD ((spectrum 𝕜 a).restrict (f x)) 0 ∂μ) z := by
137+
∫ x, f x z ∂μ = (∫ x, mkD ((spectrum 𝕜 a).domRestrict (f x)) 0 ∂μ) z := by
138138
rw [integral_apply hf₂]
139139
refine integral_congr_ae ?_
140140
filter_upwards [hf₁] with x cont_x
141141
rw [mkD_apply_of_continuousOn cont_x]
142142
have key₂ (z : spectrum 𝕜 a) :
143-
∫ x, f x z ∂μ = mkD ((spectrum 𝕜 a).restrict (fun z ↦ ∫ x, f x z ∂μ)) 0 z := by
143+
∫ x, f x z ∂μ = mkD ((spectrum 𝕜 a).domRestrict (fun z ↦ ∫ x, f x z ∂μ)) 0 z := by
144144
rw [mkD_apply_of_continuousOn]
145-
rw [continuousOn_iff_continuous_restrict]
145+
rw [continuousOn_iff_continuous_domRestrict]
146146
refine continuous_congr key₁ |>.mpr ?_
147-
exact map_continuous (∫ x, mkD ((spectrum 𝕜 a).restrict (f x)) 0 ∂μ)
147+
exact map_continuous (∫ x, mkD ((spectrum 𝕜 a).domRestrict (f x)) 0 ∂μ)
148148
simp_rw [cfc_eq_cfcL_mkD _ a, cfcL_integral a _ hf₂ ha]
149149
congr
150150
ext z
@@ -157,7 +157,7 @@ For a version with stronger assumptions which in practice are often easier to ve
157157
lemma cfc_setIntegral' {s : Set X} [NormedSpace ℝ A] (f : X → 𝕜 → 𝕜) (a : A)
158158
(hf₁ : ∀ᵐ x ∂(μ.restrict s), ContinuousOn (f x) (spectrum 𝕜 a))
159159
(hf₂ : IntegrableOn
160-
(fun x : X => mkD ((spectrum 𝕜 a).restrict (f x)) 0) s μ)
160+
(fun x : X => mkD ((spectrum 𝕜 a).domRestrict (f x)) 0) s μ)
161161
(ha : p a := by cfc_tac) :
162162
cfc (fun z => ∫ x in s, f x z ∂μ) a = ∫ x in s, cfc (f x) a ∂μ :=
163163
cfc_integral' _ _ hf₁ hf₂ ha
@@ -228,7 +228,7 @@ For a version with stronger assumptions which in practice are often easier to ve
228228
`integrable_cfcₙ`. -/
229229
lemma integrable_cfcₙ' (f : X → 𝕜 → 𝕜) (a : A)
230230
(hf : Integrable
231-
(fun x : X => mkD ((quasispectrum 𝕜 a).restrict (f x)) 0) μ)
231+
(fun x : X => mkD ((quasispectrum 𝕜 a).domRestrict (f x)) 0) μ)
232232
(ha : p a := by cfc_tac) :
233233
Integrable (fun x => cfcₙ (f x) a) μ := by
234234
conv in cfcₙ _ _ => rw [cfcₙ_eq_cfcₙL_mkD _ a]
@@ -239,7 +239,7 @@ For a version with stronger assumptions which in practice are often easier to ve
239239
`integrableOn_cfcₙ`. -/
240240
lemma integrableOn_cfcₙ' {s : Set X} (f : X → 𝕜 → 𝕜) (a : A)
241241
(hf : IntegrableOn
242-
(fun x : X => mkD ((quasispectrum 𝕜 a).restrict (f x)) 0) s μ)
242+
(fun x : X => mkD ((quasispectrum 𝕜 a).domRestrict (f x)) 0) s μ)
243243
(ha : p a := by cfc_tac) :
244244
IntegrableOn (fun x => cfcₙ (f x) a) s μ := by
245245
exact integrable_cfcₙ' _ _ hf ha
@@ -288,21 +288,21 @@ lemma cfcₙ_integral' [NormedSpace ℝ A] (f : X → 𝕜 → 𝕜) (a : A)
288288
(hf₁ : ∀ᵐ x ∂μ, ContinuousOn (f x) (quasispectrum 𝕜 a))
289289
(hf₂ : ∀ᵐ x ∂μ, f x 0 = 0)
290290
(hf₃ : Integrable
291-
(fun x : X => mkD ((quasispectrum 𝕜 a).restrict (f x)) 0) μ)
291+
(fun x : X => mkD ((quasispectrum 𝕜 a).domRestrict (f x)) 0) μ)
292292
(ha : p a := by cfc_tac) :
293293
cfcₙ (fun z => ∫ x, f x z ∂μ) a = ∫ x, cfcₙ (f x) a ∂μ := by
294294
have key₁ (z : quasispectrum 𝕜 a) :
295-
∫ x, f x z ∂μ = (∫ x, mkD ((quasispectrum 𝕜 a).restrict (f x)) 0 ∂μ) z := by
295+
∫ x, f x z ∂μ = (∫ x, mkD ((quasispectrum 𝕜 a).domRestrict (f x)) 0 ∂μ) z := by
296296
rw [integral_apply hf₃]
297297
refine integral_congr_ae ?_
298298
filter_upwards [hf₁, hf₂] with x cont_x zero_x
299299
rw [mkD_apply_of_continuousOn cont_x zero_x]
300300
have key₂ (z : quasispectrum 𝕜 a) :
301-
∫ x, f x z ∂μ = mkD ((quasispectrum 𝕜 a).restrict (fun z ↦ ∫ x, f x z ∂μ)) 0 z := by
301+
∫ x, f x z ∂μ = mkD ((quasispectrum 𝕜 a).domRestrict (fun z ↦ ∫ x, f x z ∂μ)) 0 z := by
302302
rw [mkD_apply_of_continuousOn]
303-
· rw [continuousOn_iff_continuous_restrict]
303+
· rw [continuousOn_iff_continuous_domRestrict]
304304
refine continuous_congr key₁ |>.mpr ?_
305-
exact map_continuous (∫ x, mkD ((quasispectrum 𝕜 a).restrict (f x)) 0 ∂μ)
305+
exact map_continuous (∫ x, mkD ((quasispectrum 𝕜 a).domRestrict (f x)) 0 ∂μ)
306306
· exact integral_eq_zero_of_ae hf₂
307307
simp_rw [cfcₙ_eq_cfcₙL_mkD _ a, cfcₙL_integral a _ hf₃ ha]
308308
congr
@@ -317,7 +317,7 @@ lemma cfcₙ_setIntegral' {s : Set X} [NormedSpace ℝ A] (f : X → 𝕜 →
317317
(hf₁ : ∀ᵐ x ∂(μ.restrict s), ContinuousOn (f x) (quasispectrum 𝕜 a))
318318
(hf₂ : ∀ᵐ x ∂(μ.restrict s), f x 0 = 0)
319319
(hf₃ : IntegrableOn
320-
(fun x : X => mkD ((quasispectrum 𝕜 a).restrict (f x)) 0) s μ)
320+
(fun x : X => mkD ((quasispectrum 𝕜 a).domRestrict (f x)) 0) s μ)
321321
(ha : p a := by cfc_tac) :
322322
cfcₙ (fun z => ∫ x in s, f x z ∂μ) a = ∫ x in s, cfcₙ (f x) a ∂μ :=
323323
cfcₙ_integral' _ _ hf₁ hf₂ hf₃ ha

0 commit comments

Comments
 (0)