Context
stringlengths
57
6.04k
file_name
stringlengths
21
79
start
int64
14
1.49k
end
int64
18
1.5k
theorem
stringlengths
25
1.55k
proof
stringlengths
5
7.36k
rank
int64
0
2.4k
import Mathlib.Analysis.NormedSpace.OperatorNorm.Basic suppress_compilation open Bornology open Filter hiding map_smul open scoped Classical NNReal Topology Uniformity -- the `β‚—` subscript variables are for special cases about linear (as opposed to semilinear) maps variable {π•œ π•œβ‚‚ π•œβ‚ƒ E Eβ‚— F Fβ‚— G Gβ‚— 𝓕 : Type*} section SemiNormed open Metric ContinuousLinearMap variable [SeminormedAddCommGroup E] [SeminormedAddCommGroup Eβ‚—] [SeminormedAddCommGroup F] [SeminormedAddCommGroup Fβ‚—] [SeminormedAddCommGroup G] [SeminormedAddCommGroup Gβ‚—] variable [NontriviallyNormedField π•œ] [NontriviallyNormedField π•œβ‚‚] [NontriviallyNormedField π•œβ‚ƒ] [NormedSpace π•œ E] [NormedSpace π•œ Eβ‚—] [NormedSpace π•œβ‚‚ F] [NormedSpace π•œ Fβ‚—] [NormedSpace π•œβ‚ƒ G] [NormedSpace π•œ Gβ‚—] {σ₁₂ : π•œ β†’+* π•œβ‚‚} {σ₂₃ : π•œβ‚‚ β†’+* π•œβ‚ƒ} {σ₁₃ : π•œ β†’+* π•œβ‚ƒ} [RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] variable [FunLike 𝓕 E F] namespace ContinuousLinearMap section OpNorm open Set Real section variable [RingHomIsometric σ₁₂] [RingHomIsometric σ₂₃] (f g : E β†’SL[σ₁₂] F) (h : F β†’SL[σ₂₃] G) (x : E)
Mathlib/Analysis/NormedSpace/OperatorNorm/NNNorm.lean
49
53
theorem nnnorm_def (f : E β†’SL[σ₁₂] F) : β€–fβ€–β‚Š = sInf { c | βˆ€ x, β€–f xβ€–β‚Š ≀ c * β€–xβ€–β‚Š } := by
ext rw [NNReal.coe_sInf, coe_nnnorm, norm_def, NNReal.coe_image] simp_rw [← NNReal.coe_le_coe, NNReal.coe_mul, coe_nnnorm, mem_setOf_eq, NNReal.coe_mk, exists_prop]
1,590
import Mathlib.Analysis.NormedSpace.OperatorNorm.Basic suppress_compilation open Bornology open Filter hiding map_smul open scoped Classical NNReal Topology Uniformity -- the `β‚—` subscript variables are for special cases about linear (as opposed to semilinear) maps variable {π•œ π•œβ‚‚ π•œβ‚ƒ E Eβ‚— F Fβ‚— G Gβ‚— 𝓕 : Type*} section SemiNormed open Metric ContinuousLinearMap variable [SeminormedAddCommGroup E] [SeminormedAddCommGroup Eβ‚—] [SeminormedAddCommGroup F] [SeminormedAddCommGroup Fβ‚—] [SeminormedAddCommGroup G] [SeminormedAddCommGroup Gβ‚—] variable [NontriviallyNormedField π•œ] [NontriviallyNormedField π•œβ‚‚] [NontriviallyNormedField π•œβ‚ƒ] [NormedSpace π•œ E] [NormedSpace π•œ Eβ‚—] [NormedSpace π•œβ‚‚ F] [NormedSpace π•œ Fβ‚—] [NormedSpace π•œβ‚ƒ G] [NormedSpace π•œ Gβ‚—] {σ₁₂ : π•œ β†’+* π•œβ‚‚} {σ₂₃ : π•œβ‚‚ β†’+* π•œβ‚ƒ} {σ₁₃ : π•œ β†’+* π•œβ‚ƒ} [RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] variable [FunLike 𝓕 E F] namespace ContinuousLinearMap section OpNorm open Set Real section variable [RingHomIsometric σ₁₂] [RingHomIsometric σ₂₃] (f g : E β†’SL[σ₁₂] F) (h : F β†’SL[σ₂₃] G) (x : E) theorem nnnorm_def (f : E β†’SL[σ₁₂] F) : β€–fβ€–β‚Š = sInf { c | βˆ€ x, β€–f xβ€–β‚Š ≀ c * β€–xβ€–β‚Š } := by ext rw [NNReal.coe_sInf, coe_nnnorm, norm_def, NNReal.coe_image] simp_rw [← NNReal.coe_le_coe, NNReal.coe_mul, coe_nnnorm, mem_setOf_eq, NNReal.coe_mk, exists_prop] #align continuous_linear_map.nnnorm_def ContinuousLinearMap.nnnorm_def theorem opNNNorm_le_bound (f : E β†’SL[σ₁₂] F) (M : ℝβ‰₯0) (hM : βˆ€ x, β€–f xβ€–β‚Š ≀ M * β€–xβ€–β‚Š) : β€–fβ€–β‚Š ≀ M := opNorm_le_bound f (zero_le M) hM #align continuous_linear_map.op_nnnorm_le_bound ContinuousLinearMap.opNNNorm_le_bound @[deprecated (since := "2024-02-02")] alias op_nnnorm_le_bound := opNNNorm_le_bound theorem opNNNorm_le_bound' (f : E β†’SL[σ₁₂] F) (M : ℝβ‰₯0) (hM : βˆ€ x, β€–xβ€–β‚Š β‰  0 β†’ β€–f xβ€–β‚Š ≀ M * β€–xβ€–β‚Š) : β€–fβ€–β‚Š ≀ M := opNorm_le_bound' f (zero_le M) fun x hx => hM x <| by rwa [← NNReal.coe_ne_zero] #align continuous_linear_map.op_nnnorm_le_bound' ContinuousLinearMap.opNNNorm_le_bound' @[deprecated (since := "2024-02-02")] alias op_nnnorm_le_bound' := opNNNorm_le_bound' theorem opNNNorm_le_of_unit_nnnorm [NormedSpace ℝ E] [NormedSpace ℝ F] {f : E β†’L[ℝ] F} {C : ℝβ‰₯0} (hf : βˆ€ x, β€–xβ€–β‚Š = 1 β†’ β€–f xβ€–β‚Š ≀ C) : β€–fβ€–β‚Š ≀ C := opNorm_le_of_unit_norm C.coe_nonneg fun x hx => hf x <| by rwa [← NNReal.coe_eq_one] #align continuous_linear_map.op_nnnorm_le_of_unit_nnnorm ContinuousLinearMap.opNNNorm_le_of_unit_nnnorm @[deprecated (since := "2024-02-02")] alias op_nnnorm_le_of_unit_nnnorm := opNNNorm_le_of_unit_nnnorm theorem opNNNorm_le_of_lipschitz {f : E β†’SL[σ₁₂] F} {K : ℝβ‰₯0} (hf : LipschitzWith K f) : β€–fβ€–β‚Š ≀ K := opNorm_le_of_lipschitz hf #align continuous_linear_map.op_nnnorm_le_of_lipschitz ContinuousLinearMap.opNNNorm_le_of_lipschitz @[deprecated (since := "2024-02-02")] alias op_nnnorm_le_of_lipschitz := opNNNorm_le_of_lipschitz theorem opNNNorm_eq_of_bounds {Ο† : E β†’SL[σ₁₂] F} (M : ℝβ‰₯0) (h_above : βˆ€ x, β€–Ο† xβ€–β‚Š ≀ M * β€–xβ€–β‚Š) (h_below : βˆ€ N, (βˆ€ x, β€–Ο† xβ€–β‚Š ≀ N * β€–xβ€–β‚Š) β†’ M ≀ N) : β€–Ο†β€–β‚Š = M := Subtype.ext <| opNorm_eq_of_bounds (zero_le M) h_above <| Subtype.forall'.mpr h_below #align continuous_linear_map.op_nnnorm_eq_of_bounds ContinuousLinearMap.opNNNorm_eq_of_bounds @[deprecated (since := "2024-02-02")] alias op_nnnorm_eq_of_bounds := opNNNorm_eq_of_bounds theorem opNNNorm_le_iff {f : E β†’SL[σ₁₂] F} {C : ℝβ‰₯0} : β€–fβ€–β‚Š ≀ C ↔ βˆ€ x, β€–f xβ€–β‚Š ≀ C * β€–xβ€–β‚Š := opNorm_le_iff C.2 @[deprecated (since := "2024-02-02")] alias op_nnnorm_le_iff := opNNNorm_le_iff
Mathlib/Analysis/NormedSpace/OperatorNorm/NNNorm.lean
100
101
theorem isLeast_opNNNorm : IsLeast {C : ℝβ‰₯0 | βˆ€ x, β€–f xβ€–β‚Š ≀ C * β€–xβ€–β‚Š} β€–fβ€–β‚Š := by
simpa only [← opNNNorm_le_iff] using isLeast_Ici
1,590
import Mathlib.Analysis.NormedSpace.OperatorNorm.Bilinear import Mathlib.Analysis.NormedSpace.OperatorNorm.NNNorm suppress_compilation open Bornology Metric Set Real open Filter hiding map_smul open scoped Classical NNReal Topology Uniformity -- the `β‚—` subscript variables are for special cases about linear (as opposed to semilinear) maps variable {π•œ π•œβ‚‚ π•œβ‚ƒ E Eβ‚— F Fβ‚— G Gβ‚— 𝓕 : Type*} variable [NormedAddCommGroup E] [NormedAddCommGroup F] [NormedAddCommGroup G] [NormedAddCommGroup Fβ‚—] variable [NontriviallyNormedField π•œ] [NontriviallyNormedField π•œβ‚‚] [NontriviallyNormedField π•œβ‚ƒ] [NormedSpace π•œ E] [NormedSpace π•œβ‚‚ F] [NormedSpace π•œβ‚ƒ G] [NormedSpace π•œ Fβ‚—] (c : π•œ) {σ₁₂ : π•œ β†’+* π•œβ‚‚} {σ₂₃ : π•œβ‚‚ β†’+* π•œβ‚ƒ} (f g : E β†’SL[σ₁₂] F) (x y z : E) namespace ContinuousLinearMap section Completeness variable {E' : Type*} [SeminormedAddCommGroup E'] [NormedSpace π•œ E'] [RingHomIsometric σ₁₂] @[simps! (config := .asFn) apply] def ofMemClosureImageCoeBounded (f : E' β†’ F) {s : Set (E' β†’SL[σ₁₂] F)} (hs : IsBounded s) (hf : f ∈ closure (((↑) : (E' β†’SL[σ₁₂] F) β†’ E' β†’ F) '' s)) : E' β†’SL[σ₁₂] F := by -- `f` is a linear map due to `linearMapOfMemClosureRangeCoe` refine (linearMapOfMemClosureRangeCoe f ?_).mkContinuousOfExistsBound ?_ Β· refine closure_mono (image_subset_iff.2 fun g _ => ?_) hf exact ⟨g, rfl⟩ Β· -- We need to show that `f` has bounded norm. Choose `C` such that `β€–gβ€– ≀ C` for all `g ∈ s`. rcases isBounded_iff_forall_norm_le.1 hs with ⟨C, hC⟩ -- Then `β€–g xβ€– ≀ C * β€–xβ€–` for all `g ∈ s`, `x : E`, hence `β€–f xβ€– ≀ C * β€–xβ€–` for all `x`. have : βˆ€ x, IsClosed { g : E' β†’ F | β€–g xβ€– ≀ C * β€–xβ€– } := fun x => isClosed_Iic.preimage (@continuous_apply E' (fun _ => F) _ x).norm refine ⟨C, fun x => (this x).closure_subset_iff.2 (image_subset_iff.2 fun g hg => ?_) hf⟩ exact g.le_of_opNorm_le (hC _ hg) _ #align continuous_linear_map.of_mem_closure_image_coe_bounded ContinuousLinearMap.ofMemClosureImageCoeBounded @[simps! (config := .asFn) apply] def ofTendstoOfBoundedRange {Ξ± : Type*} {l : Filter Ξ±} [l.NeBot] (f : E' β†’ F) (g : Ξ± β†’ E' β†’SL[σ₁₂] F) (hf : Tendsto (fun a x => g a x) l (𝓝 f)) (hg : IsBounded (Set.range g)) : E' β†’SL[σ₁₂] F := ofMemClosureImageCoeBounded f hg <| mem_closure_of_tendsto hf <| eventually_of_forall fun _ => mem_image_of_mem _ <| Set.mem_range_self _ #align continuous_linear_map.of_tendsto_of_bounded_range ContinuousLinearMap.ofTendstoOfBoundedRange
Mathlib/Analysis/NormedSpace/OperatorNorm/Completeness.lean
70
86
theorem tendsto_of_tendsto_pointwise_of_cauchySeq {f : β„• β†’ E' β†’SL[σ₁₂] F} {g : E' β†’SL[σ₁₂] F} (hg : Tendsto (fun n x => f n x) atTop (𝓝 g)) (hf : CauchySeq f) : Tendsto f atTop (𝓝 g) := by
/- Since `f` is a Cauchy sequence, there exists `b β†’ 0` such that `β€–f n - f mβ€– ≀ b N` for any `m, n β‰₯ N`. -/ rcases cauchySeq_iff_le_tendsto_0.1 hf with ⟨b, hbβ‚€, hfb, hb_lim⟩ -- Since `b β†’ 0`, it suffices to show that `β€–f n x - g xβ€– ≀ b n * β€–xβ€–` for all `n` and `x`. suffices βˆ€ n x, β€–f n x - g xβ€– ≀ b n * β€–xβ€– from tendsto_iff_norm_sub_tendsto_zero.2 (squeeze_zero (fun n => norm_nonneg _) (fun n => opNorm_le_bound _ (hbβ‚€ n) (this n)) hb_lim) intro n x -- Note that `f m x β†’ g x`, hence `β€–f n x - f m xβ€– β†’ β€–f n x - g xβ€–` as `m β†’ ∞` have : Tendsto (fun m => β€–f n x - f m xβ€–) atTop (𝓝 β€–f n x - g xβ€–) := (tendsto_const_nhds.sub <| tendsto_pi_nhds.1 hg _).norm -- Thus it suffices to verify `β€–f n x - f m xβ€– ≀ b n * β€–xβ€–` for `m β‰₯ n`. refine le_of_tendsto this (eventually_atTop.2 ⟨n, fun m hm => ?_⟩) -- This inequality follows from `β€–f n - f mβ€– ≀ b n`. exact (f n - f m).le_of_opNorm_le (hfb _ _ _ le_rfl hm) _
1,591
import Mathlib.Analysis.NormedSpace.OperatorNorm.Bilinear import Mathlib.Analysis.NormedSpace.OperatorNorm.NNNorm suppress_compilation open Bornology Metric Set Real open Filter hiding map_smul open scoped Classical NNReal Topology Uniformity -- the `β‚—` subscript variables are for special cases about linear (as opposed to semilinear) maps variable {π•œ π•œβ‚‚ π•œβ‚ƒ E Eβ‚— F Fβ‚— G Gβ‚— 𝓕 : Type*} variable [NormedAddCommGroup E] [NormedAddCommGroup F] [NormedAddCommGroup G] [NormedAddCommGroup Fβ‚—] variable [NontriviallyNormedField π•œ] [NontriviallyNormedField π•œβ‚‚] [NontriviallyNormedField π•œβ‚ƒ] [NormedSpace π•œ E] [NormedSpace π•œβ‚‚ F] [NormedSpace π•œβ‚ƒ G] [NormedSpace π•œ Fβ‚—] (c : π•œ) {σ₁₂ : π•œ β†’+* π•œβ‚‚} {σ₂₃ : π•œβ‚‚ β†’+* π•œβ‚ƒ} (f g : E β†’SL[σ₁₂] F) (x y z : E) namespace ContinuousLinearMap section UniformlyExtend variable [CompleteSpace F] (e : E β†’L[π•œ] Fβ‚—) (h_dense : DenseRange e) section variable (h_e : UniformInducing e) def extend : Fβ‚— β†’SL[σ₁₂] F := -- extension of `f` is continuous have cont := (uniformContinuous_uniformly_extend h_e h_dense f.uniformContinuous).continuous -- extension of `f` agrees with `f` on the domain of the embedding `e` have eq := uniformly_extend_of_ind h_e h_dense f.uniformContinuous { toFun := (h_e.denseInducing h_dense).extend f map_add' := by refine h_dense.induction_onβ‚‚ ?_ ?_ Β· exact isClosed_eq (cont.comp continuous_add) ((cont.comp continuous_fst).add (cont.comp continuous_snd)) Β· intro x y simp only [eq, ← e.map_add] exact f.map_add _ _ map_smul' := fun k => by refine fun b => h_dense.induction_on b ?_ ?_ Β· exact isClosed_eq (cont.comp (continuous_const_smul _)) ((continuous_const_smul _).comp cont) Β· intro x rw [← map_smul] simp only [eq] exact ContinuousLinearMap.map_smulβ‚›β‚— _ _ _ cont } #align continuous_linear_map.extend ContinuousLinearMap.extend -- Porting note: previously `(h_e.denseInducing h_dense)` was inferred. @[simp] theorem extend_eq (x : E) : extend f e h_dense h_e (e x) = f x := DenseInducing.extend_eq (h_e.denseInducing h_dense) f.cont _ #align continuous_linear_map.extend_eq ContinuousLinearMap.extend_eq theorem extend_unique (g : Fβ‚— β†’SL[σ₁₂] F) (H : g.comp e = f) : extend f e h_dense h_e = g := ContinuousLinearMap.coeFn_injective <| uniformly_extend_unique h_e h_dense (ContinuousLinearMap.ext_iff.1 H) g.continuous #align continuous_linear_map.extend_unique ContinuousLinearMap.extend_unique @[simp] theorem extend_zero : extend (0 : E β†’SL[σ₁₂] F) e h_dense h_e = 0 := extend_unique _ _ _ _ _ (zero_comp _) #align continuous_linear_map.extend_zero ContinuousLinearMap.extend_zero end section variable {N : ℝβ‰₯0} (h_e : βˆ€ x, β€–xβ€– ≀ N * β€–e xβ€–) [RingHomIsometric σ₁₂]
Mathlib/Analysis/NormedSpace/OperatorNorm/Completeness.lean
246
263
theorem opNorm_extend_le : β€–f.extend e h_dense (uniformEmbedding_of_bound _ h_e).toUniformInducingβ€– ≀ N * β€–fβ€– := by
-- Add `opNorm_le_of_dense`? refine opNorm_le_bound _ ?_ (isClosed_property h_dense (isClosed_le ?_ ?_) fun x ↦ ?_) Β· cases le_total 0 N with | inl hN => exact mul_nonneg hN (norm_nonneg _) | inr hN => have : Unique E := ⟨⟨0⟩, fun x ↦ norm_le_zero_iff.mp <| (h_e x).trans (mul_nonpos_of_nonpos_of_nonneg hN (norm_nonneg _))⟩ obtain rfl : f = 0 := Subsingleton.elim .. simp Β· exact (cont _).norm Β· exact continuous_const.mul continuous_norm Β· rw [extend_eq] calc β€–f xβ€– ≀ β€–fβ€– * β€–xβ€– := le_opNorm _ _ _ ≀ β€–fβ€– * (N * β€–e xβ€–) := mul_le_mul_of_nonneg_left (h_e x) (norm_nonneg _) _ ≀ N * β€–fβ€– * β€–e xβ€– := by rw [mul_comm ↑N β€–fβ€–, mul_assoc]
1,591
import Mathlib.Analysis.NormedSpace.Basic import Mathlib.Analysis.NormedSpace.LinearIsometry #align_import analysis.normed_space.conformal_linear_map from "leanprover-community/mathlib"@"d1bd9c5df2867c1cb463bc6364446d57bdd9f7f1" noncomputable section open Function LinearIsometry ContinuousLinearMap def IsConformalMap {R : Type*} {X Y : Type*} [NormedField R] [SeminormedAddCommGroup X] [SeminormedAddCommGroup Y] [NormedSpace R X] [NormedSpace R Y] (f' : X β†’L[R] Y) := βˆƒ c β‰  (0 : R), βˆƒ li : X β†’β‚—α΅’[R] Y, f' = c β€’ li.toContinuousLinearMap #align is_conformal_map IsConformalMap variable {R M N G M' : Type*} [NormedField R] [SeminormedAddCommGroup M] [SeminormedAddCommGroup N] [SeminormedAddCommGroup G] [NormedSpace R M] [NormedSpace R N] [NormedSpace R G] [NormedAddCommGroup M'] [NormedSpace R M'] {f : M β†’L[R] N} {g : N β†’L[R] G} {c : R} theorem isConformalMap_id : IsConformalMap (id R M) := ⟨1, one_ne_zero, id, by simp⟩ #align is_conformal_map_id isConformalMap_id
Mathlib/Analysis/NormedSpace/ConformalLinearMap.lean
62
65
theorem IsConformalMap.smul (hf : IsConformalMap f) {c : R} (hc : c β‰  0) : IsConformalMap (c β€’ f) := by
rcases hf with ⟨c', hc', li, rfl⟩ exact ⟨c * c', mul_ne_zero hc hc', li, smul_smul _ _ _⟩
1,592
import Mathlib.Analysis.NormedSpace.Basic import Mathlib.Analysis.NormedSpace.LinearIsometry #align_import analysis.normed_space.conformal_linear_map from "leanprover-community/mathlib"@"d1bd9c5df2867c1cb463bc6364446d57bdd9f7f1" noncomputable section open Function LinearIsometry ContinuousLinearMap def IsConformalMap {R : Type*} {X Y : Type*} [NormedField R] [SeminormedAddCommGroup X] [SeminormedAddCommGroup Y] [NormedSpace R X] [NormedSpace R Y] (f' : X β†’L[R] Y) := βˆƒ c β‰  (0 : R), βˆƒ li : X β†’β‚—α΅’[R] Y, f' = c β€’ li.toContinuousLinearMap #align is_conformal_map IsConformalMap variable {R M N G M' : Type*} [NormedField R] [SeminormedAddCommGroup M] [SeminormedAddCommGroup N] [SeminormedAddCommGroup G] [NormedSpace R M] [NormedSpace R N] [NormedSpace R G] [NormedAddCommGroup M'] [NormedSpace R M'] {f : M β†’L[R] N} {g : N β†’L[R] G} {c : R} theorem isConformalMap_id : IsConformalMap (id R M) := ⟨1, one_ne_zero, id, by simp⟩ #align is_conformal_map_id isConformalMap_id theorem IsConformalMap.smul (hf : IsConformalMap f) {c : R} (hc : c β‰  0) : IsConformalMap (c β€’ f) := by rcases hf with ⟨c', hc', li, rfl⟩ exact ⟨c * c', mul_ne_zero hc hc', li, smul_smul _ _ _⟩ #align is_conformal_map.smul IsConformalMap.smul theorem isConformalMap_const_smul (hc : c β‰  0) : IsConformalMap (c β€’ id R M) := isConformalMap_id.smul hc #align is_conformal_map_const_smul isConformalMap_const_smul protected theorem LinearIsometry.isConformalMap (f' : M β†’β‚—α΅’[R] N) : IsConformalMap f'.toContinuousLinearMap := ⟨1, one_ne_zero, f', (one_smul _ _).symm⟩ #align linear_isometry.is_conformal_map LinearIsometry.isConformalMap @[nontriviality] theorem isConformalMap_of_subsingleton [Subsingleton M] (f' : M β†’L[R] N) : IsConformalMap f' := ⟨1, one_ne_zero, ⟨0, fun x => by simp [Subsingleton.elim x 0]⟩, Subsingleton.elim _ _⟩ #align is_conformal_map_of_subsingleton isConformalMap_of_subsingleton namespace IsConformalMap
Mathlib/Analysis/NormedSpace/ConformalLinearMap.lean
84
89
theorem comp (hg : IsConformalMap g) (hf : IsConformalMap f) : IsConformalMap (g.comp f) := by
rcases hf with ⟨cf, hcf, lif, rfl⟩ rcases hg with ⟨cg, hcg, lig, rfl⟩ refine ⟨cg * cf, mul_ne_zero hcg hcf, lig.comp lif, ?_⟩ rw [smul_comp, comp_smul, mul_smul] rfl
1,592
import Mathlib.Analysis.NormedSpace.Basic import Mathlib.Analysis.NormedSpace.LinearIsometry #align_import analysis.normed_space.conformal_linear_map from "leanprover-community/mathlib"@"d1bd9c5df2867c1cb463bc6364446d57bdd9f7f1" noncomputable section open Function LinearIsometry ContinuousLinearMap def IsConformalMap {R : Type*} {X Y : Type*} [NormedField R] [SeminormedAddCommGroup X] [SeminormedAddCommGroup Y] [NormedSpace R X] [NormedSpace R Y] (f' : X β†’L[R] Y) := βˆƒ c β‰  (0 : R), βˆƒ li : X β†’β‚—α΅’[R] Y, f' = c β€’ li.toContinuousLinearMap #align is_conformal_map IsConformalMap variable {R M N G M' : Type*} [NormedField R] [SeminormedAddCommGroup M] [SeminormedAddCommGroup N] [SeminormedAddCommGroup G] [NormedSpace R M] [NormedSpace R N] [NormedSpace R G] [NormedAddCommGroup M'] [NormedSpace R M'] {f : M β†’L[R] N} {g : N β†’L[R] G} {c : R} theorem isConformalMap_id : IsConformalMap (id R M) := ⟨1, one_ne_zero, id, by simp⟩ #align is_conformal_map_id isConformalMap_id theorem IsConformalMap.smul (hf : IsConformalMap f) {c : R} (hc : c β‰  0) : IsConformalMap (c β€’ f) := by rcases hf with ⟨c', hc', li, rfl⟩ exact ⟨c * c', mul_ne_zero hc hc', li, smul_smul _ _ _⟩ #align is_conformal_map.smul IsConformalMap.smul theorem isConformalMap_const_smul (hc : c β‰  0) : IsConformalMap (c β€’ id R M) := isConformalMap_id.smul hc #align is_conformal_map_const_smul isConformalMap_const_smul protected theorem LinearIsometry.isConformalMap (f' : M β†’β‚—α΅’[R] N) : IsConformalMap f'.toContinuousLinearMap := ⟨1, one_ne_zero, f', (one_smul _ _).symm⟩ #align linear_isometry.is_conformal_map LinearIsometry.isConformalMap @[nontriviality] theorem isConformalMap_of_subsingleton [Subsingleton M] (f' : M β†’L[R] N) : IsConformalMap f' := ⟨1, one_ne_zero, ⟨0, fun x => by simp [Subsingleton.elim x 0]⟩, Subsingleton.elim _ _⟩ #align is_conformal_map_of_subsingleton isConformalMap_of_subsingleton namespace IsConformalMap theorem comp (hg : IsConformalMap g) (hf : IsConformalMap f) : IsConformalMap (g.comp f) := by rcases hf with ⟨cf, hcf, lif, rfl⟩ rcases hg with ⟨cg, hcg, lig, rfl⟩ refine ⟨cg * cf, mul_ne_zero hcg hcf, lig.comp lif, ?_⟩ rw [smul_comp, comp_smul, mul_smul] rfl #align is_conformal_map.comp IsConformalMap.comp protected theorem injective {f : M' β†’L[R] N} (h : IsConformalMap f) : Function.Injective f := by rcases h with ⟨c, hc, li, rfl⟩ exact (smul_right_injective _ hc).comp li.injective #align is_conformal_map.injective IsConformalMap.injective
Mathlib/Analysis/NormedSpace/ConformalLinearMap.lean
97
100
theorem ne_zero [Nontrivial M'] {f' : M' β†’L[R] N} (hf' : IsConformalMap f') : f' β‰  0 := by
rintro rfl rcases exists_ne (0 : M') with ⟨a, ha⟩ exact ha (hf'.injective rfl)
1,592
import Mathlib.Analysis.NormedSpace.LinearIsometry import Mathlib.Analysis.NormedSpace.ContinuousLinearMap import Mathlib.Analysis.NormedSpace.Basic variable {π•œ E : Type*} namespace LinearMap variable (π•œ) section Seminormed variable [NormedDivisionRing π•œ] [SeminormedAddCommGroup E] [Module π•œ E] [BoundedSMul π•œ E]
Mathlib/Analysis/NormedSpace/Span.lean
36
39
theorem toSpanSingleton_homothety (x : E) (c : π•œ) : β€–LinearMap.toSpanSingleton π•œ E x cβ€– = β€–xβ€– * β€–cβ€– := by
rw [mul_comm] exact norm_smul _ _
1,593
import Mathlib.Analysis.NormedSpace.OperatorNorm.Bilinear import Mathlib.Analysis.NormedSpace.OperatorNorm.NNNorm import Mathlib.Analysis.NormedSpace.Span suppress_compilation open Bornology open Filter hiding map_smul open scoped Classical NNReal Topology Uniformity -- the `β‚—` subscript variables are for special cases about linear (as opposed to semilinear) maps variable {π•œ π•œβ‚‚ π•œβ‚ƒ E Eβ‚— F Fβ‚— G Gβ‚— 𝓕 : Type*} section Normed variable [NormedAddCommGroup E] [NormedAddCommGroup F] [NormedAddCommGroup G] [NormedAddCommGroup Fβ‚—] open Metric ContinuousLinearMap section variable [NontriviallyNormedField π•œ] [NontriviallyNormedField π•œβ‚‚] [NontriviallyNormedField π•œβ‚ƒ] [NormedSpace π•œ E] [NormedSpace π•œβ‚‚ F] [NormedSpace π•œβ‚ƒ G] [NormedSpace π•œ Fβ‚—] (c : π•œ) {σ₁₂ : π•œ β†’+* π•œβ‚‚} {σ₂₃ : π•œβ‚‚ β†’+* π•œβ‚ƒ} (f g : E β†’SL[σ₁₂] F) (x y z : E) namespace LinearMap
Mathlib/Analysis/NormedSpace/OperatorNorm/NormedSpace.lean
42
46
theorem bound_of_shell [RingHomIsometric σ₁₂] (f : E β†’β‚›β‚—[σ₁₂] F) {Ξ΅ C : ℝ} (Ξ΅_pos : 0 < Ξ΅) {c : π•œ} (hc : 1 < β€–cβ€–) (hf : βˆ€ x, Ξ΅ / β€–cβ€– ≀ β€–xβ€– β†’ β€–xβ€– < Ξ΅ β†’ β€–f xβ€– ≀ C * β€–xβ€–) (x : E) : β€–f xβ€– ≀ C * β€–xβ€– := by
by_cases hx : x = 0; Β· simp [hx] exact SemilinearMapClass.bound_of_shell_semi_normed f Ξ΅_pos hc hf (norm_ne_zero_iff.2 hx)
1,594
import Mathlib.Analysis.NormedSpace.OperatorNorm.Bilinear import Mathlib.Analysis.NormedSpace.OperatorNorm.NNNorm import Mathlib.Analysis.NormedSpace.Span suppress_compilation open Bornology open Filter hiding map_smul open scoped Classical NNReal Topology Uniformity -- the `β‚—` subscript variables are for special cases about linear (as opposed to semilinear) maps variable {π•œ π•œβ‚‚ π•œβ‚ƒ E Eβ‚— F Fβ‚— G Gβ‚— 𝓕 : Type*} section Normed variable [NormedAddCommGroup E] [NormedAddCommGroup F] [NormedAddCommGroup G] [NormedAddCommGroup Fβ‚—] open Metric ContinuousLinearMap section variable [NontriviallyNormedField π•œ] [NontriviallyNormedField π•œβ‚‚] [NontriviallyNormedField π•œβ‚ƒ] [NormedSpace π•œ E] [NormedSpace π•œβ‚‚ F] [NormedSpace π•œβ‚ƒ G] [NormedSpace π•œ Fβ‚—] (c : π•œ) {σ₁₂ : π•œ β†’+* π•œβ‚‚} {σ₂₃ : π•œβ‚‚ β†’+* π•œβ‚ƒ} (f g : E β†’SL[σ₁₂] F) (x y z : E) namespace LinearMap theorem bound_of_shell [RingHomIsometric σ₁₂] (f : E β†’β‚›β‚—[σ₁₂] F) {Ξ΅ C : ℝ} (Ξ΅_pos : 0 < Ξ΅) {c : π•œ} (hc : 1 < β€–cβ€–) (hf : βˆ€ x, Ξ΅ / β€–cβ€– ≀ β€–xβ€– β†’ β€–xβ€– < Ξ΅ β†’ β€–f xβ€– ≀ C * β€–xβ€–) (x : E) : β€–f xβ€– ≀ C * β€–xβ€– := by by_cases hx : x = 0; Β· simp [hx] exact SemilinearMapClass.bound_of_shell_semi_normed f Ξ΅_pos hc hf (norm_ne_zero_iff.2 hx) #align linear_map.bound_of_shell LinearMap.bound_of_shell
Mathlib/Analysis/NormedSpace/OperatorNorm/NormedSpace.lean
52
64
theorem bound_of_ball_bound {r : ℝ} (r_pos : 0 < r) (c : ℝ) (f : E β†’β‚—[π•œ] Fβ‚—) (h : βˆ€ z ∈ Metric.ball (0 : E) r, β€–f zβ€– ≀ c) : βˆƒ C, βˆ€ z : E, β€–f zβ€– ≀ C * β€–zβ€– := by
cases' @NontriviallyNormedField.non_trivial π•œ _ with k hk use c * (β€–kβ€– / r) intro z refine bound_of_shell _ r_pos hk (fun x hko hxo => ?_) _ calc β€–f xβ€– ≀ c := h _ (mem_ball_zero_iff.mpr hxo) _ ≀ c * (β€–xβ€– * β€–kβ€– / r) := le_mul_of_one_le_right ?_ ?_ _ = _ := by ring Β· exact le_trans (norm_nonneg _) (h 0 (by simp [r_pos])) Β· rw [div_le_iff (zero_lt_one.trans hk)] at hko exact (one_le_div r_pos).mpr hko
1,594
import Mathlib.Analysis.NormedSpace.OperatorNorm.Bilinear import Mathlib.Analysis.NormedSpace.OperatorNorm.NNNorm import Mathlib.Analysis.NormedSpace.Span suppress_compilation open Bornology open Filter hiding map_smul open scoped Classical NNReal Topology Uniformity -- the `β‚—` subscript variables are for special cases about linear (as opposed to semilinear) maps variable {π•œ π•œβ‚‚ π•œβ‚ƒ E Eβ‚— F Fβ‚— G Gβ‚— 𝓕 : Type*} section Normed variable [NormedAddCommGroup E] [NormedAddCommGroup F] [NormedAddCommGroup G] [NormedAddCommGroup Fβ‚—] open Metric ContinuousLinearMap section variable [NontriviallyNormedField π•œ] [NontriviallyNormedField π•œβ‚‚] [NontriviallyNormedField π•œβ‚ƒ] [NormedSpace π•œ E] [NormedSpace π•œβ‚‚ F] [NormedSpace π•œβ‚ƒ G] [NormedSpace π•œ Fβ‚—] (c : π•œ) {σ₁₂ : π•œ β†’+* π•œβ‚‚} {σ₂₃ : π•œβ‚‚ β†’+* π•œβ‚ƒ} (f g : E β†’SL[σ₁₂] F) (x y z : E) namespace LinearMap theorem bound_of_shell [RingHomIsometric σ₁₂] (f : E β†’β‚›β‚—[σ₁₂] F) {Ξ΅ C : ℝ} (Ξ΅_pos : 0 < Ξ΅) {c : π•œ} (hc : 1 < β€–cβ€–) (hf : βˆ€ x, Ξ΅ / β€–cβ€– ≀ β€–xβ€– β†’ β€–xβ€– < Ξ΅ β†’ β€–f xβ€– ≀ C * β€–xβ€–) (x : E) : β€–f xβ€– ≀ C * β€–xβ€– := by by_cases hx : x = 0; Β· simp [hx] exact SemilinearMapClass.bound_of_shell_semi_normed f Ξ΅_pos hc hf (norm_ne_zero_iff.2 hx) #align linear_map.bound_of_shell LinearMap.bound_of_shell theorem bound_of_ball_bound {r : ℝ} (r_pos : 0 < r) (c : ℝ) (f : E β†’β‚—[π•œ] Fβ‚—) (h : βˆ€ z ∈ Metric.ball (0 : E) r, β€–f zβ€– ≀ c) : βˆƒ C, βˆ€ z : E, β€–f zβ€– ≀ C * β€–zβ€– := by cases' @NontriviallyNormedField.non_trivial π•œ _ with k hk use c * (β€–kβ€– / r) intro z refine bound_of_shell _ r_pos hk (fun x hko hxo => ?_) _ calc β€–f xβ€– ≀ c := h _ (mem_ball_zero_iff.mpr hxo) _ ≀ c * (β€–xβ€– * β€–kβ€– / r) := le_mul_of_one_le_right ?_ ?_ _ = _ := by ring Β· exact le_trans (norm_nonneg _) (h 0 (by simp [r_pos])) Β· rw [div_le_iff (zero_lt_one.trans hk)] at hko exact (one_le_div r_pos).mpr hko #align linear_map.bound_of_ball_bound LinearMap.bound_of_ball_bound
Mathlib/Analysis/NormedSpace/OperatorNorm/NormedSpace.lean
67
87
theorem antilipschitz_of_comap_nhds_le [h : RingHomIsometric σ₁₂] (f : E β†’β‚›β‚—[σ₁₂] F) (hf : (𝓝 0).comap f ≀ 𝓝 0) : βˆƒ K, AntilipschitzWith K f := by
rcases ((nhds_basis_ball.comap _).le_basis_iff nhds_basis_ball).1 hf 1 one_pos with ⟨Ρ, Ξ΅0, hΡ⟩ simp only [Set.subset_def, Set.mem_preimage, mem_ball_zero_iff] at hΞ΅ lift Ξ΅ to ℝβ‰₯0 using Ξ΅0.le rcases NormedField.exists_one_lt_norm π•œ with ⟨c, hc⟩ refine ⟨Ρ⁻¹ * β€–cβ€–β‚Š, AddMonoidHomClass.antilipschitz_of_bound f fun x => ?_⟩ by_cases hx : f x = 0 Β· rw [← hx] at hf obtain rfl : x = 0 := Specializes.eq (specializes_iff_pure.2 <| ((Filter.tendsto_pure_pure _ _).mono_right (pure_le_nhds _)).le_comap.trans hf) exact norm_zero.trans_le (mul_nonneg (NNReal.coe_nonneg _) (norm_nonneg _)) have hcβ‚€ : c β‰  0 := norm_pos_iff.1 (one_pos.trans hc) rw [← h.1] at hc rcases rescale_to_shell_zpow hc Ξ΅0 hx with ⟨n, -, hlt, -, hle⟩ simp only [← map_zpowβ‚€, h.1, ← map_smulβ‚›β‚—] at hlt hle calc β€–xβ€– = β€–c ^ n‖⁻¹ * β€–c ^ n β€’ xβ€– := by rwa [← norm_inv, ← norm_smul, inv_smul_smulβ‚€ (zpow_ne_zero _ _)] _ ≀ β€–c ^ n‖⁻¹ * 1 := (mul_le_mul_of_nonneg_left (hΞ΅ _ hlt).le (inv_nonneg.2 (norm_nonneg _))) _ ≀ Ρ⁻¹ * β€–cβ€– * β€–f xβ€– := by rwa [mul_one]
1,594
import Mathlib.Analysis.NormedSpace.OperatorNorm.Bilinear import Mathlib.Analysis.NormedSpace.OperatorNorm.NNNorm import Mathlib.Analysis.NormedSpace.Span suppress_compilation open Bornology open Filter hiding map_smul open scoped Classical NNReal Topology Uniformity -- the `β‚—` subscript variables are for special cases about linear (as opposed to semilinear) maps variable {π•œ π•œβ‚‚ π•œβ‚ƒ E Eβ‚— F Fβ‚— G Gβ‚— 𝓕 : Type*} section Normed variable [NormedAddCommGroup E] [NormedAddCommGroup F] [NormedAddCommGroup G] [NormedAddCommGroup Fβ‚—] open Metric ContinuousLinearMap section variable [NontriviallyNormedField π•œ] [NontriviallyNormedField π•œβ‚‚] [NontriviallyNormedField π•œβ‚ƒ] [NormedSpace π•œ E] [NormedSpace π•œβ‚‚ F] [NormedSpace π•œβ‚ƒ G] [NormedSpace π•œ Fβ‚—] (c : π•œ) {σ₁₂ : π•œ β†’+* π•œβ‚‚} {σ₂₃ : π•œβ‚‚ β†’+* π•œβ‚ƒ} (f g : E β†’SL[σ₁₂] F) (x y z : E) namespace ContinuousLinearMap section OpNorm open Set Real
Mathlib/Analysis/NormedSpace/OperatorNorm/NormedSpace.lean
99
107
theorem opNorm_zero_iff [RingHomIsometric σ₁₂] : β€–fβ€– = 0 ↔ f = 0 := Iff.intro (fun hn => ContinuousLinearMap.ext fun x => norm_le_zero_iff.1 (calc _ ≀ β€–fβ€– * β€–xβ€– := le_opNorm _ _ _ = _ := by
rw [hn, zero_mul])) (by rintro rfl exact opNorm_zero)
1,594
import Mathlib.Analysis.NormedSpace.OperatorNorm.Bilinear import Mathlib.Analysis.NormedSpace.OperatorNorm.NNNorm import Mathlib.Analysis.NormedSpace.Span suppress_compilation open Bornology open Filter hiding map_smul open scoped Classical NNReal Topology Uniformity -- the `β‚—` subscript variables are for special cases about linear (as opposed to semilinear) maps variable {π•œ π•œβ‚‚ π•œβ‚ƒ E Eβ‚— F Fβ‚— G Gβ‚— 𝓕 : Type*} section Normed variable [NormedAddCommGroup E] [NormedAddCommGroup F] [NormedAddCommGroup G] [NormedAddCommGroup Fβ‚—] open Metric ContinuousLinearMap section variable [NontriviallyNormedField π•œ] [NontriviallyNormedField π•œβ‚‚] [NontriviallyNormedField π•œβ‚ƒ] [NormedSpace π•œ E] [NormedSpace π•œβ‚‚ F] [NormedSpace π•œβ‚ƒ G] [NormedSpace π•œ Fβ‚—] (c : π•œ) {σ₁₂ : π•œ β†’+* π•œβ‚‚} {σ₂₃ : π•œβ‚‚ β†’+* π•œβ‚ƒ} (f g : E β†’SL[σ₁₂] F) (x y z : E) namespace ContinuousLinearMap section OpNorm open Set Real theorem opNorm_zero_iff [RingHomIsometric σ₁₂] : β€–fβ€– = 0 ↔ f = 0 := Iff.intro (fun hn => ContinuousLinearMap.ext fun x => norm_le_zero_iff.1 (calc _ ≀ β€–fβ€– * β€–xβ€– := le_opNorm _ _ _ = _ := by rw [hn, zero_mul])) (by rintro rfl exact opNorm_zero) #align continuous_linear_map.op_norm_zero_iff ContinuousLinearMap.opNorm_zero_iff @[deprecated (since := "2024-02-02")] alias op_norm_zero_iff := opNorm_zero_iff @[simp]
Mathlib/Analysis/NormedSpace/OperatorNorm/NormedSpace.lean
114
117
theorem norm_id [Nontrivial E] : β€–id π•œ Eβ€– = 1 := by
refine norm_id_of_nontrivial_seminorm ?_ obtain ⟨x, hx⟩ := exists_ne (0 : E) exact ⟨x, ne_of_gt (norm_pos_iff.2 hx)⟩
1,594
import Mathlib.Analysis.NormedSpace.OperatorNorm.Bilinear import Mathlib.Analysis.NormedSpace.OperatorNorm.NNNorm import Mathlib.Analysis.NormedSpace.Span suppress_compilation open Bornology open Filter hiding map_smul open scoped Classical NNReal Topology Uniformity -- the `β‚—` subscript variables are for special cases about linear (as opposed to semilinear) maps variable {π•œ π•œβ‚‚ π•œβ‚ƒ E Eβ‚— F Fβ‚— G Gβ‚— 𝓕 : Type*} section Normed variable [NormedAddCommGroup E] [NormedAddCommGroup F] [NormedAddCommGroup G] [NormedAddCommGroup Fβ‚—] open Metric ContinuousLinearMap section variable [NontriviallyNormedField π•œ] [NontriviallyNormedField π•œβ‚‚] [NontriviallyNormedField π•œβ‚ƒ] [NormedSpace π•œ E] [NormedSpace π•œβ‚‚ F] [NormedSpace π•œβ‚ƒ G] [NormedSpace π•œ Fβ‚—] (c : π•œ) {σ₁₂ : π•œ β†’+* π•œβ‚‚} {σ₂₃ : π•œβ‚‚ β†’+* π•œβ‚ƒ} (f g : E β†’SL[σ₁₂] F) (x y z : E) namespace ContinuousLinearMap section OpNorm open Set Real theorem opNorm_zero_iff [RingHomIsometric σ₁₂] : β€–fβ€– = 0 ↔ f = 0 := Iff.intro (fun hn => ContinuousLinearMap.ext fun x => norm_le_zero_iff.1 (calc _ ≀ β€–fβ€– * β€–xβ€– := le_opNorm _ _ _ = _ := by rw [hn, zero_mul])) (by rintro rfl exact opNorm_zero) #align continuous_linear_map.op_norm_zero_iff ContinuousLinearMap.opNorm_zero_iff @[deprecated (since := "2024-02-02")] alias op_norm_zero_iff := opNorm_zero_iff @[simp] theorem norm_id [Nontrivial E] : β€–id π•œ Eβ€– = 1 := by refine norm_id_of_nontrivial_seminorm ?_ obtain ⟨x, hx⟩ := exists_ne (0 : E) exact ⟨x, ne_of_gt (norm_pos_iff.2 hx)⟩ #align continuous_linear_map.norm_id ContinuousLinearMap.norm_id @[simp] lemma nnnorm_id [Nontrivial E] : β€–id π•œ Eβ€–β‚Š = 1 := NNReal.eq norm_id instance normOneClass [Nontrivial E] : NormOneClass (E β†’L[π•œ] E) := ⟨norm_id⟩ #align continuous_linear_map.norm_one_class ContinuousLinearMap.normOneClass instance toNormedAddCommGroup [RingHomIsometric σ₁₂] : NormedAddCommGroup (E β†’SL[σ₁₂] F) := NormedAddCommGroup.ofSeparation fun f => (opNorm_zero_iff f).mp #align continuous_linear_map.to_normed_add_comm_group ContinuousLinearMap.toNormedAddCommGroup instance toNormedRing : NormedRing (E β†’L[π•œ] E) := { ContinuousLinearMap.toNormedAddCommGroup, ContinuousLinearMap.toSemiNormedRing with } #align continuous_linear_map.to_normed_ring ContinuousLinearMap.toNormedRing variable {f}
Mathlib/Analysis/NormedSpace/OperatorNorm/NormedSpace.lean
140
146
theorem homothety_norm [RingHomIsometric σ₁₂] [Nontrivial E] (f : E β†’SL[σ₁₂] F) {a : ℝ} (hf : βˆ€ x, β€–f xβ€– = a * β€–xβ€–) : β€–fβ€– = a := by
obtain ⟨x, hx⟩ : βˆƒ x : E, x β‰  0 := exists_ne 0 rw [← norm_pos_iff] at hx have ha : 0 ≀ a := by simpa only [hf, hx, mul_nonneg_iff_of_pos_right] using norm_nonneg (f x) apply le_antisymm (f.opNorm_le_bound ha fun y => le_of_eq (hf y)) simpa only [hf, hx, mul_le_mul_right] using f.le_opNorm x
1,594
import Mathlib.Analysis.NormedSpace.OperatorNorm.NormedSpace suppress_compilation set_option linter.uppercaseLean3 false open Metric open scoped Classical NNReal Topology Uniformity variable {π•œ E : Type*} [NontriviallyNormedField π•œ] section SemiNormed variable [SeminormedAddCommGroup E] [NormedSpace π•œ E] namespace ContinuousLinearMap section MultiplicationLinear section SMulLinear variable (π•œ) (π•œ' : Type*) [NormedField π•œ'] variable [NormedAlgebra π•œ π•œ'] [NormedSpace π•œ' E] [IsScalarTower π•œ π•œ' E] def lsmul : π•œ' β†’L[π•œ] E β†’L[π•œ] E := ((Algebra.lsmul π•œ π•œ E).toLinearMap : π•œ' β†’β‚—[π•œ] E β†’β‚—[π•œ] E).mkContinuousβ‚‚ 1 fun c x => by simpa only [one_mul] using norm_smul_le c x #align continuous_linear_map.lsmul ContinuousLinearMap.lsmul @[simp] theorem lsmul_apply (c : π•œ') (x : E) : lsmul π•œ π•œ' c x = c β€’ x := rfl #align continuous_linear_map.lsmul_apply ContinuousLinearMap.lsmul_apply variable {π•œ'}
Mathlib/Analysis/NormedSpace/OperatorNorm/Mul.lean
226
231
theorem norm_toSpanSingleton (x : E) : β€–toSpanSingleton π•œ xβ€– = β€–xβ€– := by
refine opNorm_eq_of_bounds (norm_nonneg _) (fun x => ?_) fun N _ h => ?_ Β· rw [toSpanSingleton_apply, norm_smul, mul_comm] Β· specialize h 1 rw [toSpanSingleton_apply, norm_smul, mul_comm] at h exact (mul_le_mul_right (by simp)).mp h
1,595
import Mathlib.Analysis.NormedSpace.OperatorNorm.NormedSpace suppress_compilation set_option linter.uppercaseLean3 false open Metric open scoped Classical NNReal Topology Uniformity variable {π•œ E : Type*} [NontriviallyNormedField π•œ] section SemiNormed variable [SeminormedAddCommGroup E] [NormedSpace π•œ E] namespace ContinuousLinearMap section MultiplicationLinear section SMulLinear variable (π•œ) (π•œ' : Type*) [NormedField π•œ'] variable [NormedAlgebra π•œ π•œ'] [NormedSpace π•œ' E] [IsScalarTower π•œ π•œ' E] def lsmul : π•œ' β†’L[π•œ] E β†’L[π•œ] E := ((Algebra.lsmul π•œ π•œ E).toLinearMap : π•œ' β†’β‚—[π•œ] E β†’β‚—[π•œ] E).mkContinuousβ‚‚ 1 fun c x => by simpa only [one_mul] using norm_smul_le c x #align continuous_linear_map.lsmul ContinuousLinearMap.lsmul @[simp] theorem lsmul_apply (c : π•œ') (x : E) : lsmul π•œ π•œ' c x = c β€’ x := rfl #align continuous_linear_map.lsmul_apply ContinuousLinearMap.lsmul_apply variable {π•œ'} theorem norm_toSpanSingleton (x : E) : β€–toSpanSingleton π•œ xβ€– = β€–xβ€– := by refine opNorm_eq_of_bounds (norm_nonneg _) (fun x => ?_) fun N _ h => ?_ Β· rw [toSpanSingleton_apply, norm_smul, mul_comm] Β· specialize h 1 rw [toSpanSingleton_apply, norm_smul, mul_comm] at h exact (mul_le_mul_right (by simp)).mp h #align continuous_linear_map.norm_to_span_singleton ContinuousLinearMap.norm_toSpanSingleton variable {π•œ} theorem opNorm_lsmul_apply_le (x : π•œ') : β€–(lsmul π•œ π•œ' x : E β†’L[π•œ] E)β€– ≀ β€–xβ€– := ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg x) fun y => norm_smul_le x y #align continuous_linear_map.op_norm_lsmul_apply_le ContinuousLinearMap.opNorm_lsmul_apply_le @[deprecated (since := "2024-02-02")] alias op_norm_lsmul_apply_le := opNorm_lsmul_apply_le
Mathlib/Analysis/NormedSpace/OperatorNorm/Mul.lean
243
246
theorem opNorm_lsmul_le : β€–(lsmul π•œ π•œ' : π•œ' β†’L[π•œ] E β†’L[π•œ] E)β€– ≀ 1 := by
refine ContinuousLinearMap.opNorm_le_bound _ zero_le_one fun x => ?_ simp_rw [one_mul] exact opNorm_lsmul_apply_le _
1,595
import Mathlib.Analysis.BoxIntegral.Partition.Split import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.box_integral.partition.additive from "leanprover-community/mathlib"@"70fd9563a21e7b963887c9360bd29b2393e6225a" noncomputable section open scoped Classical open Function Set namespace BoxIntegral variable {ΞΉ M : Type*} {n : β„•} structure BoxAdditiveMap (ΞΉ M : Type*) [AddCommMonoid M] (I : WithTop (Box ΞΉ)) where toFun : Box ΞΉ β†’ M sum_partition_boxes' : βˆ€ J : Box ΞΉ, ↑J ≀ I β†’ βˆ€ Ο€ : Prepartition J, Ο€.IsPartition β†’ βˆ‘ Ji ∈ Ο€.boxes, toFun Ji = toFun J #align box_integral.box_additive_map BoxIntegral.BoxAdditiveMap scoped notation:25 ΞΉ " →ᡇᡃ " M => BoxIntegral.BoxAdditiveMap ΞΉ M ⊀ @[inherit_doc] scoped notation:25 ΞΉ " →ᡇᡃ[" I "] " M => BoxIntegral.BoxAdditiveMap ΞΉ M I namespace BoxAdditiveMap open Box Prepartition Finset variable {N : Type*} [AddCommMonoid M] [AddCommMonoid N] {Iβ‚€ : WithTop (Box ΞΉ)} {I J : Box ΞΉ} {i : ΞΉ} instance : FunLike (ΞΉ →ᡇᡃ[Iβ‚€] M) (Box ΞΉ) M where coe := toFun coe_injective' f g h := by cases f; cases g; congr initialize_simps_projections BoxIntegral.BoxAdditiveMap (toFun β†’ apply) #noalign box_integral.box_additive_map.to_fun_eq_coe @[simp] theorem coe_mk (f h) : ⇑(mk f h : ΞΉ →ᡇᡃ[Iβ‚€] M) = f := rfl #align box_integral.box_additive_map.coe_mk BoxIntegral.BoxAdditiveMap.coe_mk theorem coe_injective : Injective fun (f : ΞΉ →ᡇᡃ[Iβ‚€] M) x => f x := DFunLike.coe_injective #align box_integral.box_additive_map.coe_injective BoxIntegral.BoxAdditiveMap.coe_injective -- Porting note (#10618): was @[simp], now can be proved by `simp` theorem coe_inj {f g : ΞΉ →ᡇᡃ[Iβ‚€] M} : (f : Box ΞΉ β†’ M) = g ↔ f = g := DFunLike.coe_fn_eq #align box_integral.box_additive_map.coe_inj BoxIntegral.BoxAdditiveMap.coe_inj theorem sum_partition_boxes (f : ΞΉ →ᡇᡃ[Iβ‚€] M) (hI : ↑I ≀ Iβ‚€) {Ο€ : Prepartition I} (h : Ο€.IsPartition) : βˆ‘ J ∈ Ο€.boxes, f J = f I := f.sum_partition_boxes' I hI Ο€ h #align box_integral.box_additive_map.sum_partition_boxes BoxIntegral.BoxAdditiveMap.sum_partition_boxes @[simps (config := .asFn)] instance : Zero (ΞΉ →ᡇᡃ[Iβ‚€] M) := ⟨⟨0, fun _ _ _ _ => sum_const_zero⟩⟩ instance : Inhabited (ΞΉ →ᡇᡃ[Iβ‚€] M) := ⟨0⟩ instance : Add (ΞΉ →ᡇᡃ[Iβ‚€] M) := ⟨fun f g => ⟨f + g, fun I hI Ο€ hΟ€ => by simp only [Pi.add_apply, sum_add_distrib, sum_partition_boxes _ hI hΟ€]⟩⟩ instance {R} [Monoid R] [DistribMulAction R M] : SMul R (ΞΉ →ᡇᡃ[Iβ‚€] M) := ⟨fun r f => ⟨r β€’ (f : Box ΞΉ β†’ M), fun I hI Ο€ hΟ€ => by simp only [Pi.smul_apply, ← smul_sum, sum_partition_boxes _ hI hΟ€]⟩⟩ instance : AddCommMonoid (ΞΉ →ᡇᡃ[Iβ‚€] M) := Function.Injective.addCommMonoid _ coe_injective rfl (fun _ _ => rfl) fun _ _ => rfl @[simp]
Mathlib/Analysis/BoxIntegral/Partition/Additive.lean
113
115
theorem map_split_add (f : ΞΉ →ᡇᡃ[Iβ‚€] M) (hI : ↑I ≀ Iβ‚€) (i : ΞΉ) (x : ℝ) : (I.splitLower i x).elim' 0 f + (I.splitUpper i x).elim' 0 f = f I := by
rw [← f.sum_partition_boxes hI (isPartitionSplit I i x), sum_split_boxes]
1,596
import Mathlib.Algebra.Algebra.Unitization import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul suppress_compilation variable (π•œ A : Type*) [NontriviallyNormedField π•œ] [NonUnitalNormedRing A] variable [NormedSpace π•œ A] [IsScalarTower π•œ A A] [SMulCommClass π•œ A A] open ContinuousLinearMap namespace Unitization def splitMul : Unitization π•œ A →ₐ[π•œ] π•œ Γ— (A β†’L[π•œ] A) := (lift 0).prod (lift <| NonUnitalAlgHom.Lmul π•œ A) variable {π•œ A} @[simp] theorem splitMul_apply (x : Unitization π•œ A) : splitMul π•œ A x = (x.fst, algebraMap π•œ (A β†’L[π•œ] A) x.fst + mul π•œ A x.snd) := show (x.fst + 0, _) = (x.fst, _) by rw [add_zero]; rfl
Mathlib/Analysis/NormedSpace/Unitization.lean
89
101
theorem splitMul_injective_of_clm_mul_injective (h : Function.Injective (mul π•œ A)) : Function.Injective (splitMul π•œ A) := by
rw [injective_iff_map_eq_zero] intro x hx induction x rw [map_add] at hx simp only [splitMul_apply, fst_inl, snd_inl, map_zero, add_zero, fst_inr, snd_inr, zero_add, Prod.mk_add_mk, Prod.mk_eq_zero] at hx obtain ⟨rfl, hx⟩ := hx simp only [map_zero, zero_add, inl_zero] at hx ⊒ rw [← map_zero (mul π•œ A)] at hx rw [h hx, inr_zero]
1,597
import Mathlib.Algebra.Algebra.Unitization import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul suppress_compilation variable (π•œ A : Type*) [NontriviallyNormedField π•œ] [NonUnitalNormedRing A] variable [NormedSpace π•œ A] [IsScalarTower π•œ A A] [SMulCommClass π•œ A A] open ContinuousLinearMap namespace Unitization def splitMul : Unitization π•œ A →ₐ[π•œ] π•œ Γ— (A β†’L[π•œ] A) := (lift 0).prod (lift <| NonUnitalAlgHom.Lmul π•œ A) variable {π•œ A} @[simp] theorem splitMul_apply (x : Unitization π•œ A) : splitMul π•œ A x = (x.fst, algebraMap π•œ (A β†’L[π•œ] A) x.fst + mul π•œ A x.snd) := show (x.fst + 0, _) = (x.fst, _) by rw [add_zero]; rfl theorem splitMul_injective_of_clm_mul_injective (h : Function.Injective (mul π•œ A)) : Function.Injective (splitMul π•œ A) := by rw [injective_iff_map_eq_zero] intro x hx induction x rw [map_add] at hx simp only [splitMul_apply, fst_inl, snd_inl, map_zero, add_zero, fst_inr, snd_inr, zero_add, Prod.mk_add_mk, Prod.mk_eq_zero] at hx obtain ⟨rfl, hx⟩ := hx simp only [map_zero, zero_add, inl_zero] at hx ⊒ rw [← map_zero (mul π•œ A)] at hx rw [h hx, inr_zero] variable [RegularNormedAlgebra π•œ A] variable (π•œ A) theorem splitMul_injective : Function.Injective (splitMul π•œ A) := splitMul_injective_of_clm_mul_injective (isometry_mul π•œ A).injective variable {π•œ A} section Aux noncomputable abbrev normedRingAux : NormedRing (Unitization π•œ A) := NormedRing.induced (Unitization π•œ A) (π•œ Γ— (A β†’L[π•œ] A)) (splitMul π•œ A) (splitMul_injective π•œ A) attribute [local instance] Unitization.normedRingAux noncomputable abbrev normedAlgebraAux : NormedAlgebra π•œ (Unitization π•œ A) := NormedAlgebra.induced π•œ (Unitization π•œ A) (π•œ Γ— (A β†’L[π•œ] A)) (splitMul π•œ A) attribute [local instance] Unitization.normedAlgebraAux theorem norm_def (x : Unitization π•œ A) : β€–xβ€– = β€–splitMul π•œ A xβ€– := rfl theorem nnnorm_def (x : Unitization π•œ A) : β€–xβ€–β‚Š = β€–splitMul π•œ A xβ€–β‚Š := rfl
Mathlib/Analysis/NormedSpace/Unitization.lean
139
141
theorem norm_eq_sup (x : Unitization π•œ A) : β€–xβ€– = β€–x.fstβ€– βŠ” β€–algebraMap π•œ (A β†’L[π•œ] A) x.fst + mul π•œ A x.sndβ€– := by
rw [norm_def, splitMul_apply, Prod.norm_def, sup_eq_max]
1,597
import Mathlib.Algebra.Algebra.Unitization import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul suppress_compilation variable (π•œ A : Type*) [NontriviallyNormedField π•œ] [NonUnitalNormedRing A] variable [NormedSpace π•œ A] [IsScalarTower π•œ A A] [SMulCommClass π•œ A A] open ContinuousLinearMap namespace Unitization def splitMul : Unitization π•œ A →ₐ[π•œ] π•œ Γ— (A β†’L[π•œ] A) := (lift 0).prod (lift <| NonUnitalAlgHom.Lmul π•œ A) variable {π•œ A} @[simp] theorem splitMul_apply (x : Unitization π•œ A) : splitMul π•œ A x = (x.fst, algebraMap π•œ (A β†’L[π•œ] A) x.fst + mul π•œ A x.snd) := show (x.fst + 0, _) = (x.fst, _) by rw [add_zero]; rfl theorem splitMul_injective_of_clm_mul_injective (h : Function.Injective (mul π•œ A)) : Function.Injective (splitMul π•œ A) := by rw [injective_iff_map_eq_zero] intro x hx induction x rw [map_add] at hx simp only [splitMul_apply, fst_inl, snd_inl, map_zero, add_zero, fst_inr, snd_inr, zero_add, Prod.mk_add_mk, Prod.mk_eq_zero] at hx obtain ⟨rfl, hx⟩ := hx simp only [map_zero, zero_add, inl_zero] at hx ⊒ rw [← map_zero (mul π•œ A)] at hx rw [h hx, inr_zero] variable [RegularNormedAlgebra π•œ A] variable (π•œ A) theorem splitMul_injective : Function.Injective (splitMul π•œ A) := splitMul_injective_of_clm_mul_injective (isometry_mul π•œ A).injective variable {π•œ A} section Aux noncomputable abbrev normedRingAux : NormedRing (Unitization π•œ A) := NormedRing.induced (Unitization π•œ A) (π•œ Γ— (A β†’L[π•œ] A)) (splitMul π•œ A) (splitMul_injective π•œ A) attribute [local instance] Unitization.normedRingAux noncomputable abbrev normedAlgebraAux : NormedAlgebra π•œ (Unitization π•œ A) := NormedAlgebra.induced π•œ (Unitization π•œ A) (π•œ Γ— (A β†’L[π•œ] A)) (splitMul π•œ A) attribute [local instance] Unitization.normedAlgebraAux theorem norm_def (x : Unitization π•œ A) : β€–xβ€– = β€–splitMul π•œ A xβ€– := rfl theorem nnnorm_def (x : Unitization π•œ A) : β€–xβ€–β‚Š = β€–splitMul π•œ A xβ€–β‚Š := rfl theorem norm_eq_sup (x : Unitization π•œ A) : β€–xβ€– = β€–x.fstβ€– βŠ” β€–algebraMap π•œ (A β†’L[π•œ] A) x.fst + mul π•œ A x.sndβ€– := by rw [norm_def, splitMul_apply, Prod.norm_def, sup_eq_max] theorem nnnorm_eq_sup (x : Unitization π•œ A) : β€–xβ€–β‚Š = β€–x.fstβ€–β‚Š βŠ” β€–algebraMap π•œ (A β†’L[π•œ] A) x.fst + mul π•œ A x.sndβ€–β‚Š := NNReal.eq <| norm_eq_sup x
Mathlib/Analysis/NormedSpace/Unitization.lean
149
165
theorem lipschitzWith_addEquiv : LipschitzWith 2 (Unitization.addEquiv π•œ A) := by
rw [← Real.toNNReal_ofNat] refine AddMonoidHomClass.lipschitz_of_bound (Unitization.addEquiv π•œ A) 2 fun x => ?_ rw [norm_eq_sup, Prod.norm_def] refine max_le ?_ ?_ Β· rw [sup_eq_max, mul_max_of_nonneg _ _ (zero_le_two : (0 : ℝ) ≀ 2)] exact le_max_of_le_left ((le_add_of_nonneg_left (norm_nonneg _)).trans_eq (two_mul _).symm) Β· nontriviality A rw [two_mul] calc β€–x.sndβ€– = β€–mul π•œ A x.sndβ€– := .symm <| (isometry_mul π•œ A).norm_map_of_map_zero (map_zero _) _ _ ≀ β€–algebraMap π•œ _ x.fst + mul π•œ A x.sndβ€– + β€–x.fstβ€– := by simpa only [add_comm _ (mul π•œ A x.snd), norm_algebraMap'] using norm_le_add_norm_add (mul π•œ A x.snd) (algebraMap π•œ _ x.fst) _ ≀ _ := add_le_add le_sup_right le_sup_left
1,597
import Mathlib.Algebra.Algebra.Unitization import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul suppress_compilation variable (π•œ A : Type*) [NontriviallyNormedField π•œ] [NonUnitalNormedRing A] variable [NormedSpace π•œ A] [IsScalarTower π•œ A A] [SMulCommClass π•œ A A] open ContinuousLinearMap namespace Unitization def splitMul : Unitization π•œ A →ₐ[π•œ] π•œ Γ— (A β†’L[π•œ] A) := (lift 0).prod (lift <| NonUnitalAlgHom.Lmul π•œ A) variable {π•œ A} @[simp] theorem splitMul_apply (x : Unitization π•œ A) : splitMul π•œ A x = (x.fst, algebraMap π•œ (A β†’L[π•œ] A) x.fst + mul π•œ A x.snd) := show (x.fst + 0, _) = (x.fst, _) by rw [add_zero]; rfl theorem splitMul_injective_of_clm_mul_injective (h : Function.Injective (mul π•œ A)) : Function.Injective (splitMul π•œ A) := by rw [injective_iff_map_eq_zero] intro x hx induction x rw [map_add] at hx simp only [splitMul_apply, fst_inl, snd_inl, map_zero, add_zero, fst_inr, snd_inr, zero_add, Prod.mk_add_mk, Prod.mk_eq_zero] at hx obtain ⟨rfl, hx⟩ := hx simp only [map_zero, zero_add, inl_zero] at hx ⊒ rw [← map_zero (mul π•œ A)] at hx rw [h hx, inr_zero] variable [RegularNormedAlgebra π•œ A] variable (π•œ A) theorem splitMul_injective : Function.Injective (splitMul π•œ A) := splitMul_injective_of_clm_mul_injective (isometry_mul π•œ A).injective variable {π•œ A} section Aux noncomputable abbrev normedRingAux : NormedRing (Unitization π•œ A) := NormedRing.induced (Unitization π•œ A) (π•œ Γ— (A β†’L[π•œ] A)) (splitMul π•œ A) (splitMul_injective π•œ A) attribute [local instance] Unitization.normedRingAux noncomputable abbrev normedAlgebraAux : NormedAlgebra π•œ (Unitization π•œ A) := NormedAlgebra.induced π•œ (Unitization π•œ A) (π•œ Γ— (A β†’L[π•œ] A)) (splitMul π•œ A) attribute [local instance] Unitization.normedAlgebraAux theorem norm_def (x : Unitization π•œ A) : β€–xβ€– = β€–splitMul π•œ A xβ€– := rfl theorem nnnorm_def (x : Unitization π•œ A) : β€–xβ€–β‚Š = β€–splitMul π•œ A xβ€–β‚Š := rfl theorem norm_eq_sup (x : Unitization π•œ A) : β€–xβ€– = β€–x.fstβ€– βŠ” β€–algebraMap π•œ (A β†’L[π•œ] A) x.fst + mul π•œ A x.sndβ€– := by rw [norm_def, splitMul_apply, Prod.norm_def, sup_eq_max] theorem nnnorm_eq_sup (x : Unitization π•œ A) : β€–xβ€–β‚Š = β€–x.fstβ€–β‚Š βŠ” β€–algebraMap π•œ (A β†’L[π•œ] A) x.fst + mul π•œ A x.sndβ€–β‚Š := NNReal.eq <| norm_eq_sup x theorem lipschitzWith_addEquiv : LipschitzWith 2 (Unitization.addEquiv π•œ A) := by rw [← Real.toNNReal_ofNat] refine AddMonoidHomClass.lipschitz_of_bound (Unitization.addEquiv π•œ A) 2 fun x => ?_ rw [norm_eq_sup, Prod.norm_def] refine max_le ?_ ?_ Β· rw [sup_eq_max, mul_max_of_nonneg _ _ (zero_le_two : (0 : ℝ) ≀ 2)] exact le_max_of_le_left ((le_add_of_nonneg_left (norm_nonneg _)).trans_eq (two_mul _).symm) Β· nontriviality A rw [two_mul] calc β€–x.sndβ€– = β€–mul π•œ A x.sndβ€– := .symm <| (isometry_mul π•œ A).norm_map_of_map_zero (map_zero _) _ _ ≀ β€–algebraMap π•œ _ x.fst + mul π•œ A x.sndβ€– + β€–x.fstβ€– := by simpa only [add_comm _ (mul π•œ A x.snd), norm_algebraMap'] using norm_le_add_norm_add (mul π•œ A x.snd) (algebraMap π•œ _ x.fst) _ ≀ _ := add_le_add le_sup_right le_sup_left
Mathlib/Analysis/NormedSpace/Unitization.lean
167
180
theorem antilipschitzWith_addEquiv : AntilipschitzWith 2 (addEquiv π•œ A) := by
refine AddMonoidHomClass.antilipschitz_of_bound (addEquiv π•œ A) fun x => ?_ rw [norm_eq_sup, Prod.norm_def, NNReal.coe_two] refine max_le ?_ ?_ Β· rw [mul_max_of_nonneg _ _ (zero_le_two : (0 : ℝ) ≀ 2)] exact le_max_of_le_left ((le_add_of_nonneg_left (norm_nonneg _)).trans_eq (two_mul _).symm) Β· nontriviality A calc β€–algebraMap π•œ _ x.fst + mul π•œ A x.sndβ€– ≀ β€–algebraMap π•œ _ x.fstβ€– + β€–mul π•œ A x.sndβ€– := norm_add_le _ _ _ = β€–x.fstβ€– + β€–x.sndβ€– := by rw [norm_algebraMap', (AddMonoidHomClass.isometry_iff_norm (mul π•œ A)).mp (isometry_mul π•œ A)] _ ≀ _ := (add_le_add (le_max_left _ _) (le_max_right _ _)).trans_eq (two_mul _).symm
1,597
import Mathlib.Algebra.Algebra.Unitization import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul suppress_compilation variable (π•œ A : Type*) [NontriviallyNormedField π•œ] [NonUnitalNormedRing A] variable [NormedSpace π•œ A] [IsScalarTower π•œ A A] [SMulCommClass π•œ A A] open ContinuousLinearMap namespace Unitization def splitMul : Unitization π•œ A →ₐ[π•œ] π•œ Γ— (A β†’L[π•œ] A) := (lift 0).prod (lift <| NonUnitalAlgHom.Lmul π•œ A) variable {π•œ A} @[simp] theorem splitMul_apply (x : Unitization π•œ A) : splitMul π•œ A x = (x.fst, algebraMap π•œ (A β†’L[π•œ] A) x.fst + mul π•œ A x.snd) := show (x.fst + 0, _) = (x.fst, _) by rw [add_zero]; rfl theorem splitMul_injective_of_clm_mul_injective (h : Function.Injective (mul π•œ A)) : Function.Injective (splitMul π•œ A) := by rw [injective_iff_map_eq_zero] intro x hx induction x rw [map_add] at hx simp only [splitMul_apply, fst_inl, snd_inl, map_zero, add_zero, fst_inr, snd_inr, zero_add, Prod.mk_add_mk, Prod.mk_eq_zero] at hx obtain ⟨rfl, hx⟩ := hx simp only [map_zero, zero_add, inl_zero] at hx ⊒ rw [← map_zero (mul π•œ A)] at hx rw [h hx, inr_zero] variable [RegularNormedAlgebra π•œ A] variable (π•œ A) theorem splitMul_injective : Function.Injective (splitMul π•œ A) := splitMul_injective_of_clm_mul_injective (isometry_mul π•œ A).injective variable {π•œ A} section Aux noncomputable abbrev normedRingAux : NormedRing (Unitization π•œ A) := NormedRing.induced (Unitization π•œ A) (π•œ Γ— (A β†’L[π•œ] A)) (splitMul π•œ A) (splitMul_injective π•œ A) attribute [local instance] Unitization.normedRingAux noncomputable abbrev normedAlgebraAux : NormedAlgebra π•œ (Unitization π•œ A) := NormedAlgebra.induced π•œ (Unitization π•œ A) (π•œ Γ— (A β†’L[π•œ] A)) (splitMul π•œ A) attribute [local instance] Unitization.normedAlgebraAux theorem norm_def (x : Unitization π•œ A) : β€–xβ€– = β€–splitMul π•œ A xβ€– := rfl theorem nnnorm_def (x : Unitization π•œ A) : β€–xβ€–β‚Š = β€–splitMul π•œ A xβ€–β‚Š := rfl theorem norm_eq_sup (x : Unitization π•œ A) : β€–xβ€– = β€–x.fstβ€– βŠ” β€–algebraMap π•œ (A β†’L[π•œ] A) x.fst + mul π•œ A x.sndβ€– := by rw [norm_def, splitMul_apply, Prod.norm_def, sup_eq_max] theorem nnnorm_eq_sup (x : Unitization π•œ A) : β€–xβ€–β‚Š = β€–x.fstβ€–β‚Š βŠ” β€–algebraMap π•œ (A β†’L[π•œ] A) x.fst + mul π•œ A x.sndβ€–β‚Š := NNReal.eq <| norm_eq_sup x theorem lipschitzWith_addEquiv : LipschitzWith 2 (Unitization.addEquiv π•œ A) := by rw [← Real.toNNReal_ofNat] refine AddMonoidHomClass.lipschitz_of_bound (Unitization.addEquiv π•œ A) 2 fun x => ?_ rw [norm_eq_sup, Prod.norm_def] refine max_le ?_ ?_ Β· rw [sup_eq_max, mul_max_of_nonneg _ _ (zero_le_two : (0 : ℝ) ≀ 2)] exact le_max_of_le_left ((le_add_of_nonneg_left (norm_nonneg _)).trans_eq (two_mul _).symm) Β· nontriviality A rw [two_mul] calc β€–x.sndβ€– = β€–mul π•œ A x.sndβ€– := .symm <| (isometry_mul π•œ A).norm_map_of_map_zero (map_zero _) _ _ ≀ β€–algebraMap π•œ _ x.fst + mul π•œ A x.sndβ€– + β€–x.fstβ€– := by simpa only [add_comm _ (mul π•œ A x.snd), norm_algebraMap'] using norm_le_add_norm_add (mul π•œ A x.snd) (algebraMap π•œ _ x.fst) _ ≀ _ := add_le_add le_sup_right le_sup_left theorem antilipschitzWith_addEquiv : AntilipschitzWith 2 (addEquiv π•œ A) := by refine AddMonoidHomClass.antilipschitz_of_bound (addEquiv π•œ A) fun x => ?_ rw [norm_eq_sup, Prod.norm_def, NNReal.coe_two] refine max_le ?_ ?_ Β· rw [mul_max_of_nonneg _ _ (zero_le_two : (0 : ℝ) ≀ 2)] exact le_max_of_le_left ((le_add_of_nonneg_left (norm_nonneg _)).trans_eq (two_mul _).symm) Β· nontriviality A calc β€–algebraMap π•œ _ x.fst + mul π•œ A x.sndβ€– ≀ β€–algebraMap π•œ _ x.fstβ€– + β€–mul π•œ A x.sndβ€– := norm_add_le _ _ _ = β€–x.fstβ€– + β€–x.sndβ€– := by rw [norm_algebraMap', (AddMonoidHomClass.isometry_iff_norm (mul π•œ A)).mp (isometry_mul π•œ A)] _ ≀ _ := (add_le_add (le_max_left _ _) (le_max_right _ _)).trans_eq (two_mul _).symm open Bornology Filter open scoped Uniformity Topology
Mathlib/Analysis/NormedSpace/Unitization.lean
185
190
theorem uniformity_eq_aux : 𝓀[instUniformSpaceProd.comap <| addEquiv π•œ A] = 𝓀 (Unitization π•œ A) := by
have key : UniformInducing (addEquiv π•œ A) := antilipschitzWith_addEquiv.uniformInducing lipschitzWith_addEquiv.uniformContinuous rw [← key.comap_uniformity] rfl
1,597
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" noncomputable section open Topology open Filter (Tendsto) open Metric ContinuousLinearMap variable {π•œ : Type*} [NontriviallyNormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] structure IsBoundedLinearMap (π•œ : Type*) [NormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] (f : E β†’ F) extends IsLinearMap π•œ f : Prop where bound : βˆƒ M, 0 < M ∧ βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€– #align is_bounded_linear_map IsBoundedLinearMap theorem IsLinearMap.with_bound {f : E β†’ F} (hf : IsLinearMap π•œ f) (M : ℝ) (h : βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€–) : IsBoundedLinearMap π•œ f := ⟨hf, by_cases (fun (this : M ≀ 0) => ⟨1, zero_lt_one, fun x => (h x).trans <| mul_le_mul_of_nonneg_right (this.trans zero_le_one) (norm_nonneg x)⟩) fun (this : Β¬M ≀ 0) => ⟨M, lt_of_not_ge this, h⟩⟩ #align is_linear_map.with_bound IsLinearMap.with_bound theorem ContinuousLinearMap.isBoundedLinearMap (f : E β†’L[π•œ] F) : IsBoundedLinearMap π•œ f := { f.toLinearMap.isLinear with bound := f.bound } #align continuous_linear_map.is_bounded_linear_map ContinuousLinearMap.isBoundedLinearMap namespace IsBoundedLinearMap def toLinearMap (f : E β†’ F) (h : IsBoundedLinearMap π•œ f) : E β†’β‚—[π•œ] F := IsLinearMap.mk' _ h.toIsLinearMap #align is_bounded_linear_map.to_linear_map IsBoundedLinearMap.toLinearMap def toContinuousLinearMap {f : E β†’ F} (hf : IsBoundedLinearMap π•œ f) : E β†’L[π•œ] F := { toLinearMap f hf with cont := let ⟨C, _, hC⟩ := hf.bound AddMonoidHomClass.continuous_of_bound (toLinearMap f hf) C hC } #align is_bounded_linear_map.to_continuous_linear_map IsBoundedLinearMap.toContinuousLinearMap theorem zero : IsBoundedLinearMap π•œ fun _ : E => (0 : F) := (0 : E β†’β‚—[π•œ] F).isLinear.with_bound 0 <| by simp [le_refl] #align is_bounded_linear_map.zero IsBoundedLinearMap.zero theorem id : IsBoundedLinearMap π•œ fun x : E => x := LinearMap.id.isLinear.with_bound 1 <| by simp [le_refl] #align is_bounded_linear_map.id IsBoundedLinearMap.id
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
115
118
theorem fst : IsBoundedLinearMap π•œ fun x : E Γ— F => x.1 := by
refine (LinearMap.fst π•œ E F).isLinear.with_bound 1 fun x => ?_ rw [one_mul] exact le_max_left _ _
1,598
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" noncomputable section open Topology open Filter (Tendsto) open Metric ContinuousLinearMap variable {π•œ : Type*} [NontriviallyNormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] structure IsBoundedLinearMap (π•œ : Type*) [NormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] (f : E β†’ F) extends IsLinearMap π•œ f : Prop where bound : βˆƒ M, 0 < M ∧ βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€– #align is_bounded_linear_map IsBoundedLinearMap theorem IsLinearMap.with_bound {f : E β†’ F} (hf : IsLinearMap π•œ f) (M : ℝ) (h : βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€–) : IsBoundedLinearMap π•œ f := ⟨hf, by_cases (fun (this : M ≀ 0) => ⟨1, zero_lt_one, fun x => (h x).trans <| mul_le_mul_of_nonneg_right (this.trans zero_le_one) (norm_nonneg x)⟩) fun (this : Β¬M ≀ 0) => ⟨M, lt_of_not_ge this, h⟩⟩ #align is_linear_map.with_bound IsLinearMap.with_bound theorem ContinuousLinearMap.isBoundedLinearMap (f : E β†’L[π•œ] F) : IsBoundedLinearMap π•œ f := { f.toLinearMap.isLinear with bound := f.bound } #align continuous_linear_map.is_bounded_linear_map ContinuousLinearMap.isBoundedLinearMap namespace IsBoundedLinearMap def toLinearMap (f : E β†’ F) (h : IsBoundedLinearMap π•œ f) : E β†’β‚—[π•œ] F := IsLinearMap.mk' _ h.toIsLinearMap #align is_bounded_linear_map.to_linear_map IsBoundedLinearMap.toLinearMap def toContinuousLinearMap {f : E β†’ F} (hf : IsBoundedLinearMap π•œ f) : E β†’L[π•œ] F := { toLinearMap f hf with cont := let ⟨C, _, hC⟩ := hf.bound AddMonoidHomClass.continuous_of_bound (toLinearMap f hf) C hC } #align is_bounded_linear_map.to_continuous_linear_map IsBoundedLinearMap.toContinuousLinearMap theorem zero : IsBoundedLinearMap π•œ fun _ : E => (0 : F) := (0 : E β†’β‚—[π•œ] F).isLinear.with_bound 0 <| by simp [le_refl] #align is_bounded_linear_map.zero IsBoundedLinearMap.zero theorem id : IsBoundedLinearMap π•œ fun x : E => x := LinearMap.id.isLinear.with_bound 1 <| by simp [le_refl] #align is_bounded_linear_map.id IsBoundedLinearMap.id theorem fst : IsBoundedLinearMap π•œ fun x : E Γ— F => x.1 := by refine (LinearMap.fst π•œ E F).isLinear.with_bound 1 fun x => ?_ rw [one_mul] exact le_max_left _ _ #align is_bounded_linear_map.fst IsBoundedLinearMap.fst
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
121
124
theorem snd : IsBoundedLinearMap π•œ fun x : E Γ— F => x.2 := by
refine (LinearMap.snd π•œ E F).isLinear.with_bound 1 fun x => ?_ rw [one_mul] exact le_max_right _ _
1,598
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" noncomputable section open Topology open Filter (Tendsto) open Metric ContinuousLinearMap variable {π•œ : Type*} [NontriviallyNormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] structure IsBoundedLinearMap (π•œ : Type*) [NormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] (f : E β†’ F) extends IsLinearMap π•œ f : Prop where bound : βˆƒ M, 0 < M ∧ βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€– #align is_bounded_linear_map IsBoundedLinearMap theorem IsLinearMap.with_bound {f : E β†’ F} (hf : IsLinearMap π•œ f) (M : ℝ) (h : βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€–) : IsBoundedLinearMap π•œ f := ⟨hf, by_cases (fun (this : M ≀ 0) => ⟨1, zero_lt_one, fun x => (h x).trans <| mul_le_mul_of_nonneg_right (this.trans zero_le_one) (norm_nonneg x)⟩) fun (this : Β¬M ≀ 0) => ⟨M, lt_of_not_ge this, h⟩⟩ #align is_linear_map.with_bound IsLinearMap.with_bound theorem ContinuousLinearMap.isBoundedLinearMap (f : E β†’L[π•œ] F) : IsBoundedLinearMap π•œ f := { f.toLinearMap.isLinear with bound := f.bound } #align continuous_linear_map.is_bounded_linear_map ContinuousLinearMap.isBoundedLinearMap namespace IsBoundedLinearMap def toLinearMap (f : E β†’ F) (h : IsBoundedLinearMap π•œ f) : E β†’β‚—[π•œ] F := IsLinearMap.mk' _ h.toIsLinearMap #align is_bounded_linear_map.to_linear_map IsBoundedLinearMap.toLinearMap def toContinuousLinearMap {f : E β†’ F} (hf : IsBoundedLinearMap π•œ f) : E β†’L[π•œ] F := { toLinearMap f hf with cont := let ⟨C, _, hC⟩ := hf.bound AddMonoidHomClass.continuous_of_bound (toLinearMap f hf) C hC } #align is_bounded_linear_map.to_continuous_linear_map IsBoundedLinearMap.toContinuousLinearMap theorem zero : IsBoundedLinearMap π•œ fun _ : E => (0 : F) := (0 : E β†’β‚—[π•œ] F).isLinear.with_bound 0 <| by simp [le_refl] #align is_bounded_linear_map.zero IsBoundedLinearMap.zero theorem id : IsBoundedLinearMap π•œ fun x : E => x := LinearMap.id.isLinear.with_bound 1 <| by simp [le_refl] #align is_bounded_linear_map.id IsBoundedLinearMap.id theorem fst : IsBoundedLinearMap π•œ fun x : E Γ— F => x.1 := by refine (LinearMap.fst π•œ E F).isLinear.with_bound 1 fun x => ?_ rw [one_mul] exact le_max_left _ _ #align is_bounded_linear_map.fst IsBoundedLinearMap.fst theorem snd : IsBoundedLinearMap π•œ fun x : E Γ— F => x.2 := by refine (LinearMap.snd π•œ E F).isLinear.with_bound 1 fun x => ?_ rw [one_mul] exact le_max_right _ _ #align is_bounded_linear_map.snd IsBoundedLinearMap.snd variable {f g : E β†’ F} theorem smul (c : π•œ) (hf : IsBoundedLinearMap π•œ f) : IsBoundedLinearMap π•œ (c β€’ f) := let ⟨hlf, M, _, hM⟩ := hf (c β€’ hlf.mk' f).isLinear.with_bound (β€–cβ€– * M) fun x => calc β€–c β€’ f xβ€– = β€–cβ€– * β€–f xβ€– := norm_smul c (f x) _ ≀ β€–cβ€– * (M * β€–xβ€–) := mul_le_mul_of_nonneg_left (hM _) (norm_nonneg _) _ = β€–cβ€– * M * β€–xβ€– := (mul_assoc _ _ _).symm #align is_bounded_linear_map.smul IsBoundedLinearMap.smul
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
139
141
theorem neg (hf : IsBoundedLinearMap π•œ f) : IsBoundedLinearMap π•œ fun e => -f e := by
rw [show (fun e => -f e) = fun e => (-1 : π•œ) β€’ f e by funext; simp] exact smul (-1) hf
1,598
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" noncomputable section open Topology open Filter (Tendsto) open Metric ContinuousLinearMap variable {π•œ : Type*} [NontriviallyNormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] structure IsBoundedLinearMap (π•œ : Type*) [NormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] (f : E β†’ F) extends IsLinearMap π•œ f : Prop where bound : βˆƒ M, 0 < M ∧ βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€– #align is_bounded_linear_map IsBoundedLinearMap theorem IsLinearMap.with_bound {f : E β†’ F} (hf : IsLinearMap π•œ f) (M : ℝ) (h : βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€–) : IsBoundedLinearMap π•œ f := ⟨hf, by_cases (fun (this : M ≀ 0) => ⟨1, zero_lt_one, fun x => (h x).trans <| mul_le_mul_of_nonneg_right (this.trans zero_le_one) (norm_nonneg x)⟩) fun (this : Β¬M ≀ 0) => ⟨M, lt_of_not_ge this, h⟩⟩ #align is_linear_map.with_bound IsLinearMap.with_bound theorem ContinuousLinearMap.isBoundedLinearMap (f : E β†’L[π•œ] F) : IsBoundedLinearMap π•œ f := { f.toLinearMap.isLinear with bound := f.bound } #align continuous_linear_map.is_bounded_linear_map ContinuousLinearMap.isBoundedLinearMap namespace IsBoundedLinearMap def toLinearMap (f : E β†’ F) (h : IsBoundedLinearMap π•œ f) : E β†’β‚—[π•œ] F := IsLinearMap.mk' _ h.toIsLinearMap #align is_bounded_linear_map.to_linear_map IsBoundedLinearMap.toLinearMap def toContinuousLinearMap {f : E β†’ F} (hf : IsBoundedLinearMap π•œ f) : E β†’L[π•œ] F := { toLinearMap f hf with cont := let ⟨C, _, hC⟩ := hf.bound AddMonoidHomClass.continuous_of_bound (toLinearMap f hf) C hC } #align is_bounded_linear_map.to_continuous_linear_map IsBoundedLinearMap.toContinuousLinearMap theorem zero : IsBoundedLinearMap π•œ fun _ : E => (0 : F) := (0 : E β†’β‚—[π•œ] F).isLinear.with_bound 0 <| by simp [le_refl] #align is_bounded_linear_map.zero IsBoundedLinearMap.zero theorem id : IsBoundedLinearMap π•œ fun x : E => x := LinearMap.id.isLinear.with_bound 1 <| by simp [le_refl] #align is_bounded_linear_map.id IsBoundedLinearMap.id theorem fst : IsBoundedLinearMap π•œ fun x : E Γ— F => x.1 := by refine (LinearMap.fst π•œ E F).isLinear.with_bound 1 fun x => ?_ rw [one_mul] exact le_max_left _ _ #align is_bounded_linear_map.fst IsBoundedLinearMap.fst theorem snd : IsBoundedLinearMap π•œ fun x : E Γ— F => x.2 := by refine (LinearMap.snd π•œ E F).isLinear.with_bound 1 fun x => ?_ rw [one_mul] exact le_max_right _ _ #align is_bounded_linear_map.snd IsBoundedLinearMap.snd variable {f g : E β†’ F} theorem smul (c : π•œ) (hf : IsBoundedLinearMap π•œ f) : IsBoundedLinearMap π•œ (c β€’ f) := let ⟨hlf, M, _, hM⟩ := hf (c β€’ hlf.mk' f).isLinear.with_bound (β€–cβ€– * M) fun x => calc β€–c β€’ f xβ€– = β€–cβ€– * β€–f xβ€– := norm_smul c (f x) _ ≀ β€–cβ€– * (M * β€–xβ€–) := mul_le_mul_of_nonneg_left (hM _) (norm_nonneg _) _ = β€–cβ€– * M * β€–xβ€– := (mul_assoc _ _ _).symm #align is_bounded_linear_map.smul IsBoundedLinearMap.smul theorem neg (hf : IsBoundedLinearMap π•œ f) : IsBoundedLinearMap π•œ fun e => -f e := by rw [show (fun e => -f e) = fun e => (-1 : π•œ) β€’ f e by funext; simp] exact smul (-1) hf #align is_bounded_linear_map.neg IsBoundedLinearMap.neg
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
144
151
theorem add (hf : IsBoundedLinearMap π•œ f) (hg : IsBoundedLinearMap π•œ g) : IsBoundedLinearMap π•œ fun e => f e + g e := let ⟨hlf, Mf, _, hMf⟩ := hf let ⟨hlg, Mg, _, hMg⟩ := hg (hlf.mk' _ + hlg.mk' _).isLinear.with_bound (Mf + Mg) fun x => calc β€–f x + g xβ€– ≀ Mf * β€–xβ€– + Mg * β€–xβ€– := norm_add_le_of_le (hMf x) (hMg x) _ ≀ (Mf + Mg) * β€–xβ€– := by
rw [add_mul]
1,598
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" noncomputable section open Topology open Filter (Tendsto) open Metric ContinuousLinearMap variable {π•œ : Type*} [NontriviallyNormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] structure IsBoundedLinearMap (π•œ : Type*) [NormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] (f : E β†’ F) extends IsLinearMap π•œ f : Prop where bound : βˆƒ M, 0 < M ∧ βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€– #align is_bounded_linear_map IsBoundedLinearMap theorem IsLinearMap.with_bound {f : E β†’ F} (hf : IsLinearMap π•œ f) (M : ℝ) (h : βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€–) : IsBoundedLinearMap π•œ f := ⟨hf, by_cases (fun (this : M ≀ 0) => ⟨1, zero_lt_one, fun x => (h x).trans <| mul_le_mul_of_nonneg_right (this.trans zero_le_one) (norm_nonneg x)⟩) fun (this : Β¬M ≀ 0) => ⟨M, lt_of_not_ge this, h⟩⟩ #align is_linear_map.with_bound IsLinearMap.with_bound theorem ContinuousLinearMap.isBoundedLinearMap (f : E β†’L[π•œ] F) : IsBoundedLinearMap π•œ f := { f.toLinearMap.isLinear with bound := f.bound } #align continuous_linear_map.is_bounded_linear_map ContinuousLinearMap.isBoundedLinearMap namespace IsBoundedLinearMap def toLinearMap (f : E β†’ F) (h : IsBoundedLinearMap π•œ f) : E β†’β‚—[π•œ] F := IsLinearMap.mk' _ h.toIsLinearMap #align is_bounded_linear_map.to_linear_map IsBoundedLinearMap.toLinearMap def toContinuousLinearMap {f : E β†’ F} (hf : IsBoundedLinearMap π•œ f) : E β†’L[π•œ] F := { toLinearMap f hf with cont := let ⟨C, _, hC⟩ := hf.bound AddMonoidHomClass.continuous_of_bound (toLinearMap f hf) C hC } #align is_bounded_linear_map.to_continuous_linear_map IsBoundedLinearMap.toContinuousLinearMap theorem zero : IsBoundedLinearMap π•œ fun _ : E => (0 : F) := (0 : E β†’β‚—[π•œ] F).isLinear.with_bound 0 <| by simp [le_refl] #align is_bounded_linear_map.zero IsBoundedLinearMap.zero theorem id : IsBoundedLinearMap π•œ fun x : E => x := LinearMap.id.isLinear.with_bound 1 <| by simp [le_refl] #align is_bounded_linear_map.id IsBoundedLinearMap.id theorem fst : IsBoundedLinearMap π•œ fun x : E Γ— F => x.1 := by refine (LinearMap.fst π•œ E F).isLinear.with_bound 1 fun x => ?_ rw [one_mul] exact le_max_left _ _ #align is_bounded_linear_map.fst IsBoundedLinearMap.fst theorem snd : IsBoundedLinearMap π•œ fun x : E Γ— F => x.2 := by refine (LinearMap.snd π•œ E F).isLinear.with_bound 1 fun x => ?_ rw [one_mul] exact le_max_right _ _ #align is_bounded_linear_map.snd IsBoundedLinearMap.snd variable {f g : E β†’ F} theorem smul (c : π•œ) (hf : IsBoundedLinearMap π•œ f) : IsBoundedLinearMap π•œ (c β€’ f) := let ⟨hlf, M, _, hM⟩ := hf (c β€’ hlf.mk' f).isLinear.with_bound (β€–cβ€– * M) fun x => calc β€–c β€’ f xβ€– = β€–cβ€– * β€–f xβ€– := norm_smul c (f x) _ ≀ β€–cβ€– * (M * β€–xβ€–) := mul_le_mul_of_nonneg_left (hM _) (norm_nonneg _) _ = β€–cβ€– * M * β€–xβ€– := (mul_assoc _ _ _).symm #align is_bounded_linear_map.smul IsBoundedLinearMap.smul theorem neg (hf : IsBoundedLinearMap π•œ f) : IsBoundedLinearMap π•œ fun e => -f e := by rw [show (fun e => -f e) = fun e => (-1 : π•œ) β€’ f e by funext; simp] exact smul (-1) hf #align is_bounded_linear_map.neg IsBoundedLinearMap.neg theorem add (hf : IsBoundedLinearMap π•œ f) (hg : IsBoundedLinearMap π•œ g) : IsBoundedLinearMap π•œ fun e => f e + g e := let ⟨hlf, Mf, _, hMf⟩ := hf let ⟨hlg, Mg, _, hMg⟩ := hg (hlf.mk' _ + hlg.mk' _).isLinear.with_bound (Mf + Mg) fun x => calc β€–f x + g xβ€– ≀ Mf * β€–xβ€– + Mg * β€–xβ€– := norm_add_le_of_le (hMf x) (hMg x) _ ≀ (Mf + Mg) * β€–xβ€– := by rw [add_mul] #align is_bounded_linear_map.add IsBoundedLinearMap.add
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
155
156
theorem sub (hf : IsBoundedLinearMap π•œ f) (hg : IsBoundedLinearMap π•œ g) : IsBoundedLinearMap π•œ fun e => f e - g e := by
simpa [sub_eq_add_neg] using add hf (neg hg)
1,598
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" noncomputable section open Topology open Filter (Tendsto) open Metric ContinuousLinearMap variable {π•œ : Type*} [NontriviallyNormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] structure IsBoundedLinearMap (π•œ : Type*) [NormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] (f : E β†’ F) extends IsLinearMap π•œ f : Prop where bound : βˆƒ M, 0 < M ∧ βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€– #align is_bounded_linear_map IsBoundedLinearMap theorem IsLinearMap.with_bound {f : E β†’ F} (hf : IsLinearMap π•œ f) (M : ℝ) (h : βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€–) : IsBoundedLinearMap π•œ f := ⟨hf, by_cases (fun (this : M ≀ 0) => ⟨1, zero_lt_one, fun x => (h x).trans <| mul_le_mul_of_nonneg_right (this.trans zero_le_one) (norm_nonneg x)⟩) fun (this : Β¬M ≀ 0) => ⟨M, lt_of_not_ge this, h⟩⟩ #align is_linear_map.with_bound IsLinearMap.with_bound theorem ContinuousLinearMap.isBoundedLinearMap (f : E β†’L[π•œ] F) : IsBoundedLinearMap π•œ f := { f.toLinearMap.isLinear with bound := f.bound } #align continuous_linear_map.is_bounded_linear_map ContinuousLinearMap.isBoundedLinearMap section variable {ΞΉ : Type*} [Fintype ΞΉ]
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
217
231
theorem isBoundedLinearMap_prod_multilinear {E : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (E i)] [βˆ€ i, NormedSpace π•œ (E i)] : IsBoundedLinearMap π•œ fun p : ContinuousMultilinearMap π•œ E F Γ— ContinuousMultilinearMap π•œ E G => p.1.prod p.2 where map_add p₁ pβ‚‚ := by
ext : 1; rfl map_smul c p := by ext : 1; rfl bound := by refine ⟨1, zero_lt_one, fun p ↦ ?_⟩ rw [one_mul] apply ContinuousMultilinearMap.opNorm_le_bound _ (norm_nonneg _) _ intro m rw [ContinuousMultilinearMap.prod_apply, norm_prod_le_iff] constructor Β· exact (p.1.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_fst_le p) <| by positivity) Β· exact (p.2.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_snd_le p) <| by positivity)
1,598
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" noncomputable section open Topology open Filter (Tendsto) open Metric ContinuousLinearMap variable {π•œ : Type*} [NontriviallyNormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] structure IsBoundedLinearMap (π•œ : Type*) [NormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] (f : E β†’ F) extends IsLinearMap π•œ f : Prop where bound : βˆƒ M, 0 < M ∧ βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€– #align is_bounded_linear_map IsBoundedLinearMap theorem IsLinearMap.with_bound {f : E β†’ F} (hf : IsLinearMap π•œ f) (M : ℝ) (h : βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€–) : IsBoundedLinearMap π•œ f := ⟨hf, by_cases (fun (this : M ≀ 0) => ⟨1, zero_lt_one, fun x => (h x).trans <| mul_le_mul_of_nonneg_right (this.trans zero_le_one) (norm_nonneg x)⟩) fun (this : Β¬M ≀ 0) => ⟨M, lt_of_not_ge this, h⟩⟩ #align is_linear_map.with_bound IsLinearMap.with_bound theorem ContinuousLinearMap.isBoundedLinearMap (f : E β†’L[π•œ] F) : IsBoundedLinearMap π•œ f := { f.toLinearMap.isLinear with bound := f.bound } #align continuous_linear_map.is_bounded_linear_map ContinuousLinearMap.isBoundedLinearMap section variable {ΞΉ : Type*} [Fintype ΞΉ] theorem isBoundedLinearMap_prod_multilinear {E : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (E i)] [βˆ€ i, NormedSpace π•œ (E i)] : IsBoundedLinearMap π•œ fun p : ContinuousMultilinearMap π•œ E F Γ— ContinuousMultilinearMap π•œ E G => p.1.prod p.2 where map_add p₁ pβ‚‚ := by ext : 1; rfl map_smul c p := by ext : 1; rfl bound := by refine ⟨1, zero_lt_one, fun p ↦ ?_⟩ rw [one_mul] apply ContinuousMultilinearMap.opNorm_le_bound _ (norm_nonneg _) _ intro m rw [ContinuousMultilinearMap.prod_apply, norm_prod_le_iff] constructor Β· exact (p.1.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_fst_le p) <| by positivity) Β· exact (p.2.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_snd_le p) <| by positivity) #align is_bounded_linear_map_prod_multilinear isBoundedLinearMap_prod_multilinear
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
236
254
theorem isBoundedLinearMap_continuousMultilinearMap_comp_linear (g : G β†’L[π•œ] E) : IsBoundedLinearMap π•œ fun f : ContinuousMultilinearMap π•œ (fun _ : ΞΉ => E) F => f.compContinuousLinearMap fun _ => g := by
refine IsLinearMap.with_bound ⟨fun f₁ fβ‚‚ => by ext; rfl, fun c f => by ext; rfl⟩ (β€–gβ€– ^ Fintype.card ΞΉ) fun f => ?_ apply ContinuousMultilinearMap.opNorm_le_bound _ _ _ Β· apply_rules [mul_nonneg, pow_nonneg, norm_nonneg] intro m calc β€–f (g ∘ m)β€– ≀ β€–fβ€– * ∏ i, β€–g (m i)β€– := f.le_opNorm _ _ ≀ β€–fβ€– * ∏ i, β€–gβ€– * β€–m iβ€– := by apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) exact Finset.prod_le_prod (fun i _ => norm_nonneg _) fun i _ => g.le_opNorm _ _ = β€–gβ€– ^ Fintype.card ΞΉ * β€–fβ€– * ∏ i, β€–m iβ€– := by simp only [Finset.prod_mul_distrib, Finset.prod_const, Finset.card_univ] ring
1,598
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" noncomputable section open Topology open Filter (Tendsto) open Metric ContinuousLinearMap variable {π•œ : Type*} [NontriviallyNormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] structure IsBoundedLinearMap (π•œ : Type*) [NormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] (f : E β†’ F) extends IsLinearMap π•œ f : Prop where bound : βˆƒ M, 0 < M ∧ βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€– #align is_bounded_linear_map IsBoundedLinearMap theorem IsLinearMap.with_bound {f : E β†’ F} (hf : IsLinearMap π•œ f) (M : ℝ) (h : βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€–) : IsBoundedLinearMap π•œ f := ⟨hf, by_cases (fun (this : M ≀ 0) => ⟨1, zero_lt_one, fun x => (h x).trans <| mul_le_mul_of_nonneg_right (this.trans zero_le_one) (norm_nonneg x)⟩) fun (this : Β¬M ≀ 0) => ⟨M, lt_of_not_ge this, h⟩⟩ #align is_linear_map.with_bound IsLinearMap.with_bound theorem ContinuousLinearMap.isBoundedLinearMap (f : E β†’L[π•œ] F) : IsBoundedLinearMap π•œ f := { f.toLinearMap.isLinear with bound := f.bound } #align continuous_linear_map.is_bounded_linear_map ContinuousLinearMap.isBoundedLinearMap section variable {ΞΉ : Type*} [Fintype ΞΉ] theorem isBoundedLinearMap_prod_multilinear {E : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (E i)] [βˆ€ i, NormedSpace π•œ (E i)] : IsBoundedLinearMap π•œ fun p : ContinuousMultilinearMap π•œ E F Γ— ContinuousMultilinearMap π•œ E G => p.1.prod p.2 where map_add p₁ pβ‚‚ := by ext : 1; rfl map_smul c p := by ext : 1; rfl bound := by refine ⟨1, zero_lt_one, fun p ↦ ?_⟩ rw [one_mul] apply ContinuousMultilinearMap.opNorm_le_bound _ (norm_nonneg _) _ intro m rw [ContinuousMultilinearMap.prod_apply, norm_prod_le_iff] constructor Β· exact (p.1.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_fst_le p) <| by positivity) Β· exact (p.2.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_snd_le p) <| by positivity) #align is_bounded_linear_map_prod_multilinear isBoundedLinearMap_prod_multilinear theorem isBoundedLinearMap_continuousMultilinearMap_comp_linear (g : G β†’L[π•œ] E) : IsBoundedLinearMap π•œ fun f : ContinuousMultilinearMap π•œ (fun _ : ΞΉ => E) F => f.compContinuousLinearMap fun _ => g := by refine IsLinearMap.with_bound ⟨fun f₁ fβ‚‚ => by ext; rfl, fun c f => by ext; rfl⟩ (β€–gβ€– ^ Fintype.card ΞΉ) fun f => ?_ apply ContinuousMultilinearMap.opNorm_le_bound _ _ _ Β· apply_rules [mul_nonneg, pow_nonneg, norm_nonneg] intro m calc β€–f (g ∘ m)β€– ≀ β€–fβ€– * ∏ i, β€–g (m i)β€– := f.le_opNorm _ _ ≀ β€–fβ€– * ∏ i, β€–gβ€– * β€–m iβ€– := by apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) exact Finset.prod_le_prod (fun i _ => norm_nonneg _) fun i _ => g.le_opNorm _ _ = β€–gβ€– ^ Fintype.card ΞΉ * β€–fβ€– * ∏ i, β€–m iβ€– := by simp only [Finset.prod_mul_distrib, Finset.prod_const, Finset.card_univ] ring #align is_bounded_linear_map_continuous_multilinear_map_comp_linear isBoundedLinearMap_continuousMultilinearMap_comp_linear end section BilinearMap namespace ContinuousLinearMap variable {R : Type*} variable {π•œβ‚‚ π•œ' : Type*} [NontriviallyNormedField π•œ'] [NontriviallyNormedField π•œβ‚‚] variable {M : Type*} [TopologicalSpace M] variable {σ₁₂ : π•œ β†’+* π•œβ‚‚} variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œβ‚‚ G'] [NormedSpace π•œ' G'] variable [SMulCommClass π•œβ‚‚ π•œ' G'] section Semiring variable [Semiring R] [AddCommMonoid M] [Module R M] {ρ₁₂ : R β†’+* π•œ'}
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
285
286
theorem map_addβ‚‚ (f : M β†’SL[ρ₁₂] F β†’SL[σ₁₂] G') (x x' : M) (y : F) : f (x + x') y = f x y + f x' y := by
rw [f.map_add, add_apply]
1,598
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" noncomputable section open Topology open Filter (Tendsto) open Metric ContinuousLinearMap variable {π•œ : Type*} [NontriviallyNormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] structure IsBoundedLinearMap (π•œ : Type*) [NormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] (f : E β†’ F) extends IsLinearMap π•œ f : Prop where bound : βˆƒ M, 0 < M ∧ βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€– #align is_bounded_linear_map IsBoundedLinearMap theorem IsLinearMap.with_bound {f : E β†’ F} (hf : IsLinearMap π•œ f) (M : ℝ) (h : βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€–) : IsBoundedLinearMap π•œ f := ⟨hf, by_cases (fun (this : M ≀ 0) => ⟨1, zero_lt_one, fun x => (h x).trans <| mul_le_mul_of_nonneg_right (this.trans zero_le_one) (norm_nonneg x)⟩) fun (this : Β¬M ≀ 0) => ⟨M, lt_of_not_ge this, h⟩⟩ #align is_linear_map.with_bound IsLinearMap.with_bound theorem ContinuousLinearMap.isBoundedLinearMap (f : E β†’L[π•œ] F) : IsBoundedLinearMap π•œ f := { f.toLinearMap.isLinear with bound := f.bound } #align continuous_linear_map.is_bounded_linear_map ContinuousLinearMap.isBoundedLinearMap section variable {ΞΉ : Type*} [Fintype ΞΉ] theorem isBoundedLinearMap_prod_multilinear {E : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (E i)] [βˆ€ i, NormedSpace π•œ (E i)] : IsBoundedLinearMap π•œ fun p : ContinuousMultilinearMap π•œ E F Γ— ContinuousMultilinearMap π•œ E G => p.1.prod p.2 where map_add p₁ pβ‚‚ := by ext : 1; rfl map_smul c p := by ext : 1; rfl bound := by refine ⟨1, zero_lt_one, fun p ↦ ?_⟩ rw [one_mul] apply ContinuousMultilinearMap.opNorm_le_bound _ (norm_nonneg _) _ intro m rw [ContinuousMultilinearMap.prod_apply, norm_prod_le_iff] constructor Β· exact (p.1.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_fst_le p) <| by positivity) Β· exact (p.2.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_snd_le p) <| by positivity) #align is_bounded_linear_map_prod_multilinear isBoundedLinearMap_prod_multilinear theorem isBoundedLinearMap_continuousMultilinearMap_comp_linear (g : G β†’L[π•œ] E) : IsBoundedLinearMap π•œ fun f : ContinuousMultilinearMap π•œ (fun _ : ΞΉ => E) F => f.compContinuousLinearMap fun _ => g := by refine IsLinearMap.with_bound ⟨fun f₁ fβ‚‚ => by ext; rfl, fun c f => by ext; rfl⟩ (β€–gβ€– ^ Fintype.card ΞΉ) fun f => ?_ apply ContinuousMultilinearMap.opNorm_le_bound _ _ _ Β· apply_rules [mul_nonneg, pow_nonneg, norm_nonneg] intro m calc β€–f (g ∘ m)β€– ≀ β€–fβ€– * ∏ i, β€–g (m i)β€– := f.le_opNorm _ _ ≀ β€–fβ€– * ∏ i, β€–gβ€– * β€–m iβ€– := by apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) exact Finset.prod_le_prod (fun i _ => norm_nonneg _) fun i _ => g.le_opNorm _ _ = β€–gβ€– ^ Fintype.card ΞΉ * β€–fβ€– * ∏ i, β€–m iβ€– := by simp only [Finset.prod_mul_distrib, Finset.prod_const, Finset.card_univ] ring #align is_bounded_linear_map_continuous_multilinear_map_comp_linear isBoundedLinearMap_continuousMultilinearMap_comp_linear end section BilinearMap namespace ContinuousLinearMap variable {R : Type*} variable {π•œβ‚‚ π•œ' : Type*} [NontriviallyNormedField π•œ'] [NontriviallyNormedField π•œβ‚‚] variable {M : Type*} [TopologicalSpace M] variable {σ₁₂ : π•œ β†’+* π•œβ‚‚} variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œβ‚‚ G'] [NormedSpace π•œ' G'] variable [SMulCommClass π•œβ‚‚ π•œ' G'] section Semiring variable [Semiring R] [AddCommMonoid M] [Module R M] {ρ₁₂ : R β†’+* π•œ'} theorem map_addβ‚‚ (f : M β†’SL[ρ₁₂] F β†’SL[σ₁₂] G') (x x' : M) (y : F) : f (x + x') y = f x y + f x' y := by rw [f.map_add, add_apply] #align continuous_linear_map.map_addβ‚‚ ContinuousLinearMap.map_addβ‚‚
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
289
290
theorem map_zeroβ‚‚ (f : M β†’SL[ρ₁₂] F β†’SL[σ₁₂] G') (y : F) : f 0 y = 0 := by
rw [f.map_zero, zero_apply]
1,598
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" noncomputable section open Topology open Filter (Tendsto) open Metric ContinuousLinearMap variable {π•œ : Type*} [NontriviallyNormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] structure IsBoundedLinearMap (π•œ : Type*) [NormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] (f : E β†’ F) extends IsLinearMap π•œ f : Prop where bound : βˆƒ M, 0 < M ∧ βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€– #align is_bounded_linear_map IsBoundedLinearMap theorem IsLinearMap.with_bound {f : E β†’ F} (hf : IsLinearMap π•œ f) (M : ℝ) (h : βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€–) : IsBoundedLinearMap π•œ f := ⟨hf, by_cases (fun (this : M ≀ 0) => ⟨1, zero_lt_one, fun x => (h x).trans <| mul_le_mul_of_nonneg_right (this.trans zero_le_one) (norm_nonneg x)⟩) fun (this : Β¬M ≀ 0) => ⟨M, lt_of_not_ge this, h⟩⟩ #align is_linear_map.with_bound IsLinearMap.with_bound theorem ContinuousLinearMap.isBoundedLinearMap (f : E β†’L[π•œ] F) : IsBoundedLinearMap π•œ f := { f.toLinearMap.isLinear with bound := f.bound } #align continuous_linear_map.is_bounded_linear_map ContinuousLinearMap.isBoundedLinearMap section variable {ΞΉ : Type*} [Fintype ΞΉ] theorem isBoundedLinearMap_prod_multilinear {E : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (E i)] [βˆ€ i, NormedSpace π•œ (E i)] : IsBoundedLinearMap π•œ fun p : ContinuousMultilinearMap π•œ E F Γ— ContinuousMultilinearMap π•œ E G => p.1.prod p.2 where map_add p₁ pβ‚‚ := by ext : 1; rfl map_smul c p := by ext : 1; rfl bound := by refine ⟨1, zero_lt_one, fun p ↦ ?_⟩ rw [one_mul] apply ContinuousMultilinearMap.opNorm_le_bound _ (norm_nonneg _) _ intro m rw [ContinuousMultilinearMap.prod_apply, norm_prod_le_iff] constructor Β· exact (p.1.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_fst_le p) <| by positivity) Β· exact (p.2.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_snd_le p) <| by positivity) #align is_bounded_linear_map_prod_multilinear isBoundedLinearMap_prod_multilinear theorem isBoundedLinearMap_continuousMultilinearMap_comp_linear (g : G β†’L[π•œ] E) : IsBoundedLinearMap π•œ fun f : ContinuousMultilinearMap π•œ (fun _ : ΞΉ => E) F => f.compContinuousLinearMap fun _ => g := by refine IsLinearMap.with_bound ⟨fun f₁ fβ‚‚ => by ext; rfl, fun c f => by ext; rfl⟩ (β€–gβ€– ^ Fintype.card ΞΉ) fun f => ?_ apply ContinuousMultilinearMap.opNorm_le_bound _ _ _ Β· apply_rules [mul_nonneg, pow_nonneg, norm_nonneg] intro m calc β€–f (g ∘ m)β€– ≀ β€–fβ€– * ∏ i, β€–g (m i)β€– := f.le_opNorm _ _ ≀ β€–fβ€– * ∏ i, β€–gβ€– * β€–m iβ€– := by apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) exact Finset.prod_le_prod (fun i _ => norm_nonneg _) fun i _ => g.le_opNorm _ _ = β€–gβ€– ^ Fintype.card ΞΉ * β€–fβ€– * ∏ i, β€–m iβ€– := by simp only [Finset.prod_mul_distrib, Finset.prod_const, Finset.card_univ] ring #align is_bounded_linear_map_continuous_multilinear_map_comp_linear isBoundedLinearMap_continuousMultilinearMap_comp_linear end section BilinearMap namespace ContinuousLinearMap variable {R : Type*} variable {π•œβ‚‚ π•œ' : Type*} [NontriviallyNormedField π•œ'] [NontriviallyNormedField π•œβ‚‚] variable {M : Type*} [TopologicalSpace M] variable {σ₁₂ : π•œ β†’+* π•œβ‚‚} variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œβ‚‚ G'] [NormedSpace π•œ' G'] variable [SMulCommClass π•œβ‚‚ π•œ' G'] section Semiring variable [Semiring R] [AddCommMonoid M] [Module R M] {ρ₁₂ : R β†’+* π•œ'} theorem map_addβ‚‚ (f : M β†’SL[ρ₁₂] F β†’SL[σ₁₂] G') (x x' : M) (y : F) : f (x + x') y = f x y + f x' y := by rw [f.map_add, add_apply] #align continuous_linear_map.map_addβ‚‚ ContinuousLinearMap.map_addβ‚‚ theorem map_zeroβ‚‚ (f : M β†’SL[ρ₁₂] F β†’SL[σ₁₂] G') (y : F) : f 0 y = 0 := by rw [f.map_zero, zero_apply] #align continuous_linear_map.map_zeroβ‚‚ ContinuousLinearMap.map_zeroβ‚‚
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
293
294
theorem map_smulβ‚›β‚—β‚‚ (f : M β†’SL[ρ₁₂] F β†’SL[σ₁₂] G') (c : R) (x : M) (y : F) : f (c β€’ x) y = ρ₁₂ c β€’ f x y := by
rw [f.map_smulβ‚›β‚—, smul_apply]
1,598
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" noncomputable section open Topology open Filter (Tendsto) open Metric ContinuousLinearMap variable {π•œ : Type*} [NontriviallyNormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] structure IsBoundedLinearMap (π•œ : Type*) [NormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] (f : E β†’ F) extends IsLinearMap π•œ f : Prop where bound : βˆƒ M, 0 < M ∧ βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€– #align is_bounded_linear_map IsBoundedLinearMap theorem IsLinearMap.with_bound {f : E β†’ F} (hf : IsLinearMap π•œ f) (M : ℝ) (h : βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€–) : IsBoundedLinearMap π•œ f := ⟨hf, by_cases (fun (this : M ≀ 0) => ⟨1, zero_lt_one, fun x => (h x).trans <| mul_le_mul_of_nonneg_right (this.trans zero_le_one) (norm_nonneg x)⟩) fun (this : Β¬M ≀ 0) => ⟨M, lt_of_not_ge this, h⟩⟩ #align is_linear_map.with_bound IsLinearMap.with_bound theorem ContinuousLinearMap.isBoundedLinearMap (f : E β†’L[π•œ] F) : IsBoundedLinearMap π•œ f := { f.toLinearMap.isLinear with bound := f.bound } #align continuous_linear_map.is_bounded_linear_map ContinuousLinearMap.isBoundedLinearMap section variable {ΞΉ : Type*} [Fintype ΞΉ] theorem isBoundedLinearMap_prod_multilinear {E : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (E i)] [βˆ€ i, NormedSpace π•œ (E i)] : IsBoundedLinearMap π•œ fun p : ContinuousMultilinearMap π•œ E F Γ— ContinuousMultilinearMap π•œ E G => p.1.prod p.2 where map_add p₁ pβ‚‚ := by ext : 1; rfl map_smul c p := by ext : 1; rfl bound := by refine ⟨1, zero_lt_one, fun p ↦ ?_⟩ rw [one_mul] apply ContinuousMultilinearMap.opNorm_le_bound _ (norm_nonneg _) _ intro m rw [ContinuousMultilinearMap.prod_apply, norm_prod_le_iff] constructor Β· exact (p.1.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_fst_le p) <| by positivity) Β· exact (p.2.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_snd_le p) <| by positivity) #align is_bounded_linear_map_prod_multilinear isBoundedLinearMap_prod_multilinear theorem isBoundedLinearMap_continuousMultilinearMap_comp_linear (g : G β†’L[π•œ] E) : IsBoundedLinearMap π•œ fun f : ContinuousMultilinearMap π•œ (fun _ : ΞΉ => E) F => f.compContinuousLinearMap fun _ => g := by refine IsLinearMap.with_bound ⟨fun f₁ fβ‚‚ => by ext; rfl, fun c f => by ext; rfl⟩ (β€–gβ€– ^ Fintype.card ΞΉ) fun f => ?_ apply ContinuousMultilinearMap.opNorm_le_bound _ _ _ Β· apply_rules [mul_nonneg, pow_nonneg, norm_nonneg] intro m calc β€–f (g ∘ m)β€– ≀ β€–fβ€– * ∏ i, β€–g (m i)β€– := f.le_opNorm _ _ ≀ β€–fβ€– * ∏ i, β€–gβ€– * β€–m iβ€– := by apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) exact Finset.prod_le_prod (fun i _ => norm_nonneg _) fun i _ => g.le_opNorm _ _ = β€–gβ€– ^ Fintype.card ΞΉ * β€–fβ€– * ∏ i, β€–m iβ€– := by simp only [Finset.prod_mul_distrib, Finset.prod_const, Finset.card_univ] ring #align is_bounded_linear_map_continuous_multilinear_map_comp_linear isBoundedLinearMap_continuousMultilinearMap_comp_linear end section BilinearMap namespace ContinuousLinearMap variable {R : Type*} variable {π•œβ‚‚ π•œ' : Type*} [NontriviallyNormedField π•œ'] [NontriviallyNormedField π•œβ‚‚] variable {M : Type*} [TopologicalSpace M] variable {σ₁₂ : π•œ β†’+* π•œβ‚‚} variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œβ‚‚ G'] [NormedSpace π•œ' G'] variable [SMulCommClass π•œβ‚‚ π•œ' G'] section Ring variable [Ring R] [AddCommGroup M] [Module R M] {ρ₁₂ : R β†’+* π•œ'}
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
303
304
theorem map_subβ‚‚ (f : M β†’SL[ρ₁₂] F β†’SL[σ₁₂] G') (x x' : M) (y : F) : f (x - x') y = f x y - f x' y := by
rw [f.map_sub, sub_apply]
1,598
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" noncomputable section open Topology open Filter (Tendsto) open Metric ContinuousLinearMap variable {π•œ : Type*} [NontriviallyNormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] structure IsBoundedLinearMap (π•œ : Type*) [NormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] (f : E β†’ F) extends IsLinearMap π•œ f : Prop where bound : βˆƒ M, 0 < M ∧ βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€– #align is_bounded_linear_map IsBoundedLinearMap theorem IsLinearMap.with_bound {f : E β†’ F} (hf : IsLinearMap π•œ f) (M : ℝ) (h : βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€–) : IsBoundedLinearMap π•œ f := ⟨hf, by_cases (fun (this : M ≀ 0) => ⟨1, zero_lt_one, fun x => (h x).trans <| mul_le_mul_of_nonneg_right (this.trans zero_le_one) (norm_nonneg x)⟩) fun (this : Β¬M ≀ 0) => ⟨M, lt_of_not_ge this, h⟩⟩ #align is_linear_map.with_bound IsLinearMap.with_bound theorem ContinuousLinearMap.isBoundedLinearMap (f : E β†’L[π•œ] F) : IsBoundedLinearMap π•œ f := { f.toLinearMap.isLinear with bound := f.bound } #align continuous_linear_map.is_bounded_linear_map ContinuousLinearMap.isBoundedLinearMap section variable {ΞΉ : Type*} [Fintype ΞΉ] theorem isBoundedLinearMap_prod_multilinear {E : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (E i)] [βˆ€ i, NormedSpace π•œ (E i)] : IsBoundedLinearMap π•œ fun p : ContinuousMultilinearMap π•œ E F Γ— ContinuousMultilinearMap π•œ E G => p.1.prod p.2 where map_add p₁ pβ‚‚ := by ext : 1; rfl map_smul c p := by ext : 1; rfl bound := by refine ⟨1, zero_lt_one, fun p ↦ ?_⟩ rw [one_mul] apply ContinuousMultilinearMap.opNorm_le_bound _ (norm_nonneg _) _ intro m rw [ContinuousMultilinearMap.prod_apply, norm_prod_le_iff] constructor Β· exact (p.1.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_fst_le p) <| by positivity) Β· exact (p.2.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_snd_le p) <| by positivity) #align is_bounded_linear_map_prod_multilinear isBoundedLinearMap_prod_multilinear theorem isBoundedLinearMap_continuousMultilinearMap_comp_linear (g : G β†’L[π•œ] E) : IsBoundedLinearMap π•œ fun f : ContinuousMultilinearMap π•œ (fun _ : ΞΉ => E) F => f.compContinuousLinearMap fun _ => g := by refine IsLinearMap.with_bound ⟨fun f₁ fβ‚‚ => by ext; rfl, fun c f => by ext; rfl⟩ (β€–gβ€– ^ Fintype.card ΞΉ) fun f => ?_ apply ContinuousMultilinearMap.opNorm_le_bound _ _ _ Β· apply_rules [mul_nonneg, pow_nonneg, norm_nonneg] intro m calc β€–f (g ∘ m)β€– ≀ β€–fβ€– * ∏ i, β€–g (m i)β€– := f.le_opNorm _ _ ≀ β€–fβ€– * ∏ i, β€–gβ€– * β€–m iβ€– := by apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) exact Finset.prod_le_prod (fun i _ => norm_nonneg _) fun i _ => g.le_opNorm _ _ = β€–gβ€– ^ Fintype.card ΞΉ * β€–fβ€– * ∏ i, β€–m iβ€– := by simp only [Finset.prod_mul_distrib, Finset.prod_const, Finset.card_univ] ring #align is_bounded_linear_map_continuous_multilinear_map_comp_linear isBoundedLinearMap_continuousMultilinearMap_comp_linear end section BilinearMap namespace ContinuousLinearMap variable {R : Type*} variable {π•œβ‚‚ π•œ' : Type*} [NontriviallyNormedField π•œ'] [NontriviallyNormedField π•œβ‚‚] variable {M : Type*} [TopologicalSpace M] variable {σ₁₂ : π•œ β†’+* π•œβ‚‚} variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œβ‚‚ G'] [NormedSpace π•œ' G'] variable [SMulCommClass π•œβ‚‚ π•œ' G'] section Ring variable [Ring R] [AddCommGroup M] [Module R M] {ρ₁₂ : R β†’+* π•œ'} theorem map_subβ‚‚ (f : M β†’SL[ρ₁₂] F β†’SL[σ₁₂] G') (x x' : M) (y : F) : f (x - x') y = f x y - f x' y := by rw [f.map_sub, sub_apply] #align continuous_linear_map.map_subβ‚‚ ContinuousLinearMap.map_subβ‚‚
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
307
308
theorem map_negβ‚‚ (f : M β†’SL[ρ₁₂] F β†’SL[σ₁₂] G') (x : M) (y : F) : f (-x) y = -f x y := by
rw [f.map_neg, neg_apply]
1,598
import Mathlib.Analysis.NormedSpace.Multilinear.Basic import Mathlib.Analysis.NormedSpace.Units import Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness import Mathlib.Analysis.NormedSpace.OperatorNorm.Mul #align_import analysis.normed_space.bounded_linear_maps from "leanprover-community/mathlib"@"ce11c3c2a285bbe6937e26d9792fda4e51f3fe1a" noncomputable section open Topology open Filter (Tendsto) open Metric ContinuousLinearMap variable {π•œ : Type*} [NontriviallyNormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] structure IsBoundedLinearMap (π•œ : Type*) [NormedField π•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] (f : E β†’ F) extends IsLinearMap π•œ f : Prop where bound : βˆƒ M, 0 < M ∧ βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€– #align is_bounded_linear_map IsBoundedLinearMap theorem IsLinearMap.with_bound {f : E β†’ F} (hf : IsLinearMap π•œ f) (M : ℝ) (h : βˆ€ x : E, β€–f xβ€– ≀ M * β€–xβ€–) : IsBoundedLinearMap π•œ f := ⟨hf, by_cases (fun (this : M ≀ 0) => ⟨1, zero_lt_one, fun x => (h x).trans <| mul_le_mul_of_nonneg_right (this.trans zero_le_one) (norm_nonneg x)⟩) fun (this : Β¬M ≀ 0) => ⟨M, lt_of_not_ge this, h⟩⟩ #align is_linear_map.with_bound IsLinearMap.with_bound theorem ContinuousLinearMap.isBoundedLinearMap (f : E β†’L[π•œ] F) : IsBoundedLinearMap π•œ f := { f.toLinearMap.isLinear with bound := f.bound } #align continuous_linear_map.is_bounded_linear_map ContinuousLinearMap.isBoundedLinearMap section variable {ΞΉ : Type*} [Fintype ΞΉ] theorem isBoundedLinearMap_prod_multilinear {E : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (E i)] [βˆ€ i, NormedSpace π•œ (E i)] : IsBoundedLinearMap π•œ fun p : ContinuousMultilinearMap π•œ E F Γ— ContinuousMultilinearMap π•œ E G => p.1.prod p.2 where map_add p₁ pβ‚‚ := by ext : 1; rfl map_smul c p := by ext : 1; rfl bound := by refine ⟨1, zero_lt_one, fun p ↦ ?_⟩ rw [one_mul] apply ContinuousMultilinearMap.opNorm_le_bound _ (norm_nonneg _) _ intro m rw [ContinuousMultilinearMap.prod_apply, norm_prod_le_iff] constructor Β· exact (p.1.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_fst_le p) <| by positivity) Β· exact (p.2.le_opNorm m).trans (mul_le_mul_of_nonneg_right (norm_snd_le p) <| by positivity) #align is_bounded_linear_map_prod_multilinear isBoundedLinearMap_prod_multilinear theorem isBoundedLinearMap_continuousMultilinearMap_comp_linear (g : G β†’L[π•œ] E) : IsBoundedLinearMap π•œ fun f : ContinuousMultilinearMap π•œ (fun _ : ΞΉ => E) F => f.compContinuousLinearMap fun _ => g := by refine IsLinearMap.with_bound ⟨fun f₁ fβ‚‚ => by ext; rfl, fun c f => by ext; rfl⟩ (β€–gβ€– ^ Fintype.card ΞΉ) fun f => ?_ apply ContinuousMultilinearMap.opNorm_le_bound _ _ _ Β· apply_rules [mul_nonneg, pow_nonneg, norm_nonneg] intro m calc β€–f (g ∘ m)β€– ≀ β€–fβ€– * ∏ i, β€–g (m i)β€– := f.le_opNorm _ _ ≀ β€–fβ€– * ∏ i, β€–gβ€– * β€–m iβ€– := by apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) exact Finset.prod_le_prod (fun i _ => norm_nonneg _) fun i _ => g.le_opNorm _ _ = β€–gβ€– ^ Fintype.card ΞΉ * β€–fβ€– * ∏ i, β€–m iβ€– := by simp only [Finset.prod_mul_distrib, Finset.prod_const, Finset.card_univ] ring #align is_bounded_linear_map_continuous_multilinear_map_comp_linear isBoundedLinearMap_continuousMultilinearMap_comp_linear end section BilinearMap namespace ContinuousLinearMap variable {R : Type*} variable {π•œβ‚‚ π•œ' : Type*} [NontriviallyNormedField π•œ'] [NontriviallyNormedField π•œβ‚‚] variable {M : Type*} [TopologicalSpace M] variable {σ₁₂ : π•œ β†’+* π•œβ‚‚} variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œβ‚‚ G'] [NormedSpace π•œ' G'] variable [SMulCommClass π•œβ‚‚ π•œ' G']
Mathlib/Analysis/NormedSpace/BoundedLinearMaps.lean
313
314
theorem map_smulβ‚‚ (f : E β†’L[π•œ] F β†’L[π•œ] G) (c : π•œ) (x : E) (y : F) : f (c β€’ x) y = c β€’ f x y := by
rw [f.map_smul, smul_apply]
1,598
import Mathlib.Analysis.Calculus.FDeriv.Basic import Mathlib.Analysis.NormedSpace.BoundedLinearMaps #align_import analysis.calculus.fderiv.linear from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section ContinuousLinearMap @[fun_prop] protected theorem ContinuousLinearMap.hasStrictFDerivAt {x : E} : HasStrictFDerivAt e e x := (isLittleO_zero _ _).congr_left fun x => by simp only [e.map_sub, sub_self] #align continuous_linear_map.has_strict_fderiv_at ContinuousLinearMap.hasStrictFDerivAt protected theorem ContinuousLinearMap.hasFDerivAtFilter : HasFDerivAtFilter e e x L := .of_isLittleO <| (isLittleO_zero _ _).congr_left fun x => by simp only [e.map_sub, sub_self] #align continuous_linear_map.has_fderiv_at_filter ContinuousLinearMap.hasFDerivAtFilter @[fun_prop] protected theorem ContinuousLinearMap.hasFDerivWithinAt : HasFDerivWithinAt e e s x := e.hasFDerivAtFilter #align continuous_linear_map.has_fderiv_within_at ContinuousLinearMap.hasFDerivWithinAt @[fun_prop] protected theorem ContinuousLinearMap.hasFDerivAt : HasFDerivAt e e x := e.hasFDerivAtFilter #align continuous_linear_map.has_fderiv_at ContinuousLinearMap.hasFDerivAt @[simp, fun_prop] protected theorem ContinuousLinearMap.differentiableAt : DifferentiableAt π•œ e x := e.hasFDerivAt.differentiableAt #align continuous_linear_map.differentiable_at ContinuousLinearMap.differentiableAt @[fun_prop] protected theorem ContinuousLinearMap.differentiableWithinAt : DifferentiableWithinAt π•œ e s x := e.differentiableAt.differentiableWithinAt #align continuous_linear_map.differentiable_within_at ContinuousLinearMap.differentiableWithinAt @[simp] protected theorem ContinuousLinearMap.fderiv : fderiv π•œ e x = e := e.hasFDerivAt.fderiv #align continuous_linear_map.fderiv ContinuousLinearMap.fderiv protected theorem ContinuousLinearMap.fderivWithin (hxs : UniqueDiffWithinAt π•œ s x) : fderivWithin π•œ e s x = e := by rw [DifferentiableAt.fderivWithin e.differentiableAt hxs] exact e.fderiv #align continuous_linear_map.fderiv_within ContinuousLinearMap.fderivWithin @[simp, fun_prop] protected theorem ContinuousLinearMap.differentiable : Differentiable π•œ e := fun _ => e.differentiableAt #align continuous_linear_map.differentiable ContinuousLinearMap.differentiable @[fun_prop] protected theorem ContinuousLinearMap.differentiableOn : DifferentiableOn π•œ e s := e.differentiable.differentiableOn #align continuous_linear_map.differentiable_on ContinuousLinearMap.differentiableOn theorem IsBoundedLinearMap.hasFDerivAtFilter (h : IsBoundedLinearMap π•œ f) : HasFDerivAtFilter f h.toContinuousLinearMap x L := h.toContinuousLinearMap.hasFDerivAtFilter #align is_bounded_linear_map.has_fderiv_at_filter IsBoundedLinearMap.hasFDerivAtFilter @[fun_prop] theorem IsBoundedLinearMap.hasFDerivWithinAt (h : IsBoundedLinearMap π•œ f) : HasFDerivWithinAt f h.toContinuousLinearMap s x := h.hasFDerivAtFilter #align is_bounded_linear_map.has_fderiv_within_at IsBoundedLinearMap.hasFDerivWithinAt @[fun_prop] theorem IsBoundedLinearMap.hasFDerivAt (h : IsBoundedLinearMap π•œ f) : HasFDerivAt f h.toContinuousLinearMap x := h.hasFDerivAtFilter #align is_bounded_linear_map.has_fderiv_at IsBoundedLinearMap.hasFDerivAt @[fun_prop] theorem IsBoundedLinearMap.differentiableAt (h : IsBoundedLinearMap π•œ f) : DifferentiableAt π•œ f x := h.hasFDerivAt.differentiableAt #align is_bounded_linear_map.differentiable_at IsBoundedLinearMap.differentiableAt @[fun_prop] theorem IsBoundedLinearMap.differentiableWithinAt (h : IsBoundedLinearMap π•œ f) : DifferentiableWithinAt π•œ f s x := h.differentiableAt.differentiableWithinAt #align is_bounded_linear_map.differentiable_within_at IsBoundedLinearMap.differentiableWithinAt theorem IsBoundedLinearMap.fderiv (h : IsBoundedLinearMap π•œ f) : fderiv π•œ f x = h.toContinuousLinearMap := HasFDerivAt.fderiv h.hasFDerivAt #align is_bounded_linear_map.fderiv IsBoundedLinearMap.fderiv
Mathlib/Analysis/Calculus/FDeriv/Linear.lean
136
139
theorem IsBoundedLinearMap.fderivWithin (h : IsBoundedLinearMap π•œ f) (hxs : UniqueDiffWithinAt π•œ s x) : fderivWithin π•œ f s x = h.toContinuousLinearMap := by
rw [DifferentiableAt.fderivWithin h.differentiableAt hxs] exact h.fderiv
1,599
import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.add from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section Sum variable {ΞΉ : Type*} {u : Finset ΞΉ} {A : ΞΉ β†’ E β†’ F} {A' : ΞΉ β†’ E β†’L[π•œ] F} @[fun_prop]
Mathlib/Analysis/Calculus/FDeriv/Add.lean
346
350
theorem HasStrictFDerivAt.sum (h : βˆ€ i ∈ u, HasStrictFDerivAt (A i) (A' i) x) : HasStrictFDerivAt (fun y => βˆ‘ i ∈ u, A i y) (βˆ‘ i ∈ u, A' i) x := by
dsimp [HasStrictFDerivAt] at * convert IsLittleO.sum h simp [Finset.sum_sub_distrib, ContinuousLinearMap.sum_apply]
1,600
import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.add from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section Sum variable {ΞΉ : Type*} {u : Finset ΞΉ} {A : ΞΉ β†’ E β†’ F} {A' : ΞΉ β†’ E β†’L[π•œ] F} @[fun_prop] theorem HasStrictFDerivAt.sum (h : βˆ€ i ∈ u, HasStrictFDerivAt (A i) (A' i) x) : HasStrictFDerivAt (fun y => βˆ‘ i ∈ u, A i y) (βˆ‘ i ∈ u, A' i) x := by dsimp [HasStrictFDerivAt] at * convert IsLittleO.sum h simp [Finset.sum_sub_distrib, ContinuousLinearMap.sum_apply] #align has_strict_fderiv_at.sum HasStrictFDerivAt.sum
Mathlib/Analysis/Calculus/FDeriv/Add.lean
353
357
theorem HasFDerivAtFilter.sum (h : βˆ€ i ∈ u, HasFDerivAtFilter (A i) (A' i) x L) : HasFDerivAtFilter (fun y => βˆ‘ i ∈ u, A i y) (βˆ‘ i ∈ u, A' i) x L := by
simp only [hasFDerivAtFilter_iff_isLittleO] at * convert IsLittleO.sum h simp [ContinuousLinearMap.sum_apply]
1,600
import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.add from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section Neg @[fun_prop] theorem HasStrictFDerivAt.neg (h : HasStrictFDerivAt f f' x) : HasStrictFDerivAt (fun x => -f x) (-f') x := (-1 : F β†’L[π•œ] F).hasStrictFDerivAt.comp x h #align has_strict_fderiv_at.neg HasStrictFDerivAt.neg theorem HasFDerivAtFilter.neg (h : HasFDerivAtFilter f f' x L) : HasFDerivAtFilter (fun x => -f x) (-f') x L := (-1 : F β†’L[π•œ] F).hasFDerivAtFilter.comp x h tendsto_map #align has_fderiv_at_filter.neg HasFDerivAtFilter.neg @[fun_prop] nonrec theorem HasFDerivWithinAt.neg (h : HasFDerivWithinAt f f' s x) : HasFDerivWithinAt (fun x => -f x) (-f') s x := h.neg #align has_fderiv_within_at.neg HasFDerivWithinAt.neg @[fun_prop] nonrec theorem HasFDerivAt.neg (h : HasFDerivAt f f' x) : HasFDerivAt (fun x => -f x) (-f') x := h.neg #align has_fderiv_at.neg HasFDerivAt.neg @[fun_prop] theorem DifferentiableWithinAt.neg (h : DifferentiableWithinAt π•œ f s x) : DifferentiableWithinAt π•œ (fun y => -f y) s x := h.hasFDerivWithinAt.neg.differentiableWithinAt #align differentiable_within_at.neg DifferentiableWithinAt.neg @[simp] theorem differentiableWithinAt_neg_iff : DifferentiableWithinAt π•œ (fun y => -f y) s x ↔ DifferentiableWithinAt π•œ f s x := ⟨fun h => by simpa only [neg_neg] using h.neg, fun h => h.neg⟩ #align differentiable_within_at_neg_iff differentiableWithinAt_neg_iff @[fun_prop] theorem DifferentiableAt.neg (h : DifferentiableAt π•œ f x) : DifferentiableAt π•œ (fun y => -f y) x := h.hasFDerivAt.neg.differentiableAt #align differentiable_at.neg DifferentiableAt.neg @[simp] theorem differentiableAt_neg_iff : DifferentiableAt π•œ (fun y => -f y) x ↔ DifferentiableAt π•œ f x := ⟨fun h => by simpa only [neg_neg] using h.neg, fun h => h.neg⟩ #align differentiable_at_neg_iff differentiableAt_neg_iff @[fun_prop] theorem DifferentiableOn.neg (h : DifferentiableOn π•œ f s) : DifferentiableOn π•œ (fun y => -f y) s := fun x hx => (h x hx).neg #align differentiable_on.neg DifferentiableOn.neg @[simp] theorem differentiableOn_neg_iff : DifferentiableOn π•œ (fun y => -f y) s ↔ DifferentiableOn π•œ f s := ⟨fun h => by simpa only [neg_neg] using h.neg, fun h => h.neg⟩ #align differentiable_on_neg_iff differentiableOn_neg_iff @[fun_prop] theorem Differentiable.neg (h : Differentiable π•œ f) : Differentiable π•œ fun y => -f y := fun x => (h x).neg #align differentiable.neg Differentiable.neg @[simp] theorem differentiable_neg_iff : (Differentiable π•œ fun y => -f y) ↔ Differentiable π•œ f := ⟨fun h => by simpa only [neg_neg] using h.neg, fun h => h.neg⟩ #align differentiable_neg_iff differentiable_neg_iff theorem fderivWithin_neg (hxs : UniqueDiffWithinAt π•œ s x) : fderivWithin π•œ (fun y => -f y) s x = -fderivWithin π•œ f s x := if h : DifferentiableWithinAt π•œ f s x then h.hasFDerivWithinAt.neg.fderivWithin hxs else by rw [fderivWithin_zero_of_not_differentiableWithinAt h, fderivWithin_zero_of_not_differentiableWithinAt, neg_zero] simpa #align fderiv_within_neg fderivWithin_neg @[simp]
Mathlib/Analysis/Calculus/FDeriv/Add.lean
488
489
theorem fderiv_neg : fderiv π•œ (fun y => -f y) x = -fderiv π•œ f x := by
simp only [← fderivWithin_univ, fderivWithin_neg uniqueDiffWithinAt_univ]
1,600
import Mathlib.Analysis.Calculus.FDeriv.Add variable {π•œ ΞΉ : Type*} [DecidableEq ΞΉ] [Fintype ΞΉ] [NontriviallyNormedField π•œ] variable {E : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (E i)] [βˆ€ i, NormedSpace π•œ (E i)] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] @[fun_prop]
Mathlib/Analysis/Calculus/FDeriv/Pi.lean
17
29
theorem hasFDerivAt_update (x : βˆ€ i, E i) {i : ΞΉ} (y : E i) : HasFDerivAt (Function.update x i) (.pi (Pi.single i (.id π•œ (E i)))) y := by
set l := (ContinuousLinearMap.pi (Pi.single i (.id π•œ (E i)))) have update_eq : Function.update x i = (fun _ ↦ x) + l ∘ (Β· - x i) := by ext t j dsimp [l, Pi.single, Function.update] split_ifs with hji Β· subst hji simp Β· simp rw [update_eq] convert (hasFDerivAt_const _ _).add (l.hasFDerivAt.comp y (hasFDerivAt_sub_const (x i))) rw [zero_add, ContinuousLinearMap.comp_id]
1,601
import Mathlib.Analysis.NormedSpace.ConformalLinearMap import Mathlib.Analysis.Calculus.FDeriv.Add #align_import analysis.calculus.conformal.normed_space from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" noncomputable section variable {X Y Z : Type*} [NormedAddCommGroup X] [NormedAddCommGroup Y] [NormedAddCommGroup Z] [NormedSpace ℝ X] [NormedSpace ℝ Y] [NormedSpace ℝ Z] section LocConformality open LinearIsometry ContinuousLinearMap def ConformalAt (f : X β†’ Y) (x : X) := βˆƒ f' : X β†’L[ℝ] Y, HasFDerivAt f f' x ∧ IsConformalMap f' #align conformal_at ConformalAt theorem conformalAt_id (x : X) : ConformalAt _root_.id x := ⟨id ℝ X, hasFDerivAt_id _, isConformalMap_id⟩ #align conformal_at_id conformalAt_id theorem conformalAt_const_smul {c : ℝ} (h : c β‰  0) (x : X) : ConformalAt (fun x' : X => c β€’ x') x := ⟨c β€’ ContinuousLinearMap.id ℝ X, (hasFDerivAt_id x).const_smul c, isConformalMap_const_smul h⟩ #align conformal_at_const_smul conformalAt_const_smul @[nontriviality] theorem Subsingleton.conformalAt [Subsingleton X] (f : X β†’ Y) (x : X) : ConformalAt f x := ⟨0, hasFDerivAt_of_subsingleton _ _, isConformalMap_of_subsingleton _⟩ #align subsingleton.conformal_at Subsingleton.conformalAt
Mathlib/Analysis/Calculus/Conformal/NormedSpace.lean
73
82
theorem conformalAt_iff_isConformalMap_fderiv {f : X β†’ Y} {x : X} : ConformalAt f x ↔ IsConformalMap (fderiv ℝ f x) := by
constructor Β· rintro ⟨f', hf, hf'⟩ rwa [hf.fderiv] Β· intro H by_cases h : DifferentiableAt ℝ f x Β· exact ⟨fderiv ℝ f x, h.hasFDerivAt, H⟩ Β· nontriviality X exact absurd (fderiv_zero_of_not_differentiableAt h) H.ne_zero
1,602
import Mathlib.Analysis.NormedSpace.ConformalLinearMap import Mathlib.Analysis.Calculus.FDeriv.Add #align_import analysis.calculus.conformal.normed_space from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" noncomputable section variable {X Y Z : Type*} [NormedAddCommGroup X] [NormedAddCommGroup Y] [NormedAddCommGroup Z] [NormedSpace ℝ X] [NormedSpace ℝ Y] [NormedSpace ℝ Z] section LocConformality open LinearIsometry ContinuousLinearMap def ConformalAt (f : X β†’ Y) (x : X) := βˆƒ f' : X β†’L[ℝ] Y, HasFDerivAt f f' x ∧ IsConformalMap f' #align conformal_at ConformalAt theorem conformalAt_id (x : X) : ConformalAt _root_.id x := ⟨id ℝ X, hasFDerivAt_id _, isConformalMap_id⟩ #align conformal_at_id conformalAt_id theorem conformalAt_const_smul {c : ℝ} (h : c β‰  0) (x : X) : ConformalAt (fun x' : X => c β€’ x') x := ⟨c β€’ ContinuousLinearMap.id ℝ X, (hasFDerivAt_id x).const_smul c, isConformalMap_const_smul h⟩ #align conformal_at_const_smul conformalAt_const_smul @[nontriviality] theorem Subsingleton.conformalAt [Subsingleton X] (f : X β†’ Y) (x : X) : ConformalAt f x := ⟨0, hasFDerivAt_of_subsingleton _ _, isConformalMap_of_subsingleton _⟩ #align subsingleton.conformal_at Subsingleton.conformalAt theorem conformalAt_iff_isConformalMap_fderiv {f : X β†’ Y} {x : X} : ConformalAt f x ↔ IsConformalMap (fderiv ℝ f x) := by constructor Β· rintro ⟨f', hf, hf'⟩ rwa [hf.fderiv] Β· intro H by_cases h : DifferentiableAt ℝ f x Β· exact ⟨fderiv ℝ f x, h.hasFDerivAt, H⟩ Β· nontriviality X exact absurd (fderiv_zero_of_not_differentiableAt h) H.ne_zero #align conformal_at_iff_is_conformal_map_fderiv conformalAt_iff_isConformalMap_fderiv namespace ConformalAt theorem differentiableAt {f : X β†’ Y} {x : X} (h : ConformalAt f x) : DifferentiableAt ℝ f x := let ⟨_, h₁, _⟩ := h h₁.differentiableAt #align conformal_at.differentiable_at ConformalAt.differentiableAt theorem congr {f g : X β†’ Y} {x : X} {u : Set X} (hx : x ∈ u) (hu : IsOpen u) (hf : ConformalAt f x) (h : βˆ€ x : X, x ∈ u β†’ g x = f x) : ConformalAt g x := let ⟨f', hfderiv, hf'⟩ := hf ⟨f', hfderiv.congr_of_eventuallyEq ((hu.eventually_mem hx).mono h), hf'⟩ #align conformal_at.congr ConformalAt.congr
Mathlib/Analysis/Calculus/Conformal/NormedSpace.lean
98
102
theorem comp {f : X β†’ Y} {g : Y β†’ Z} (x : X) (hg : ConformalAt g (f x)) (hf : ConformalAt f x) : ConformalAt (g ∘ f) x := by
rcases hf with ⟨f', hf₁, cf⟩ rcases hg with ⟨g', hg₁, cg⟩ exact ⟨g'.comp f', hg₁.comp x hf₁, cg.comp cf⟩
1,602
import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.prod from "leanprover-community/mathlib"@"e354e865255654389cc46e6032160238df2e0f40" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section CartesianProduct section Pi variable {ΞΉ : Type*} [Fintype ΞΉ] {F' : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (F' i)] [βˆ€ i, NormedSpace π•œ (F' i)] {Ο† : βˆ€ i, E β†’ F' i} {Ο†' : βˆ€ i, E β†’L[π•œ] F' i} {Ξ¦ : E β†’ βˆ€ i, F' i} {Ξ¦' : E β†’L[π•œ] βˆ€ i, F' i} @[simp]
Mathlib/Analysis/Calculus/FDeriv/Prod.lean
400
403
theorem hasStrictFDerivAt_pi' : HasStrictFDerivAt Ξ¦ Ξ¦' x ↔ βˆ€ i, HasStrictFDerivAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x := by
simp only [HasStrictFDerivAt, ContinuousLinearMap.coe_pi] exact isLittleO_pi
1,603
import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.prod from "leanprover-community/mathlib"@"e354e865255654389cc46e6032160238df2e0f40" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section CartesianProduct section Pi variable {ΞΉ : Type*} [Fintype ΞΉ] {F' : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (F' i)] [βˆ€ i, NormedSpace π•œ (F' i)] {Ο† : βˆ€ i, E β†’ F' i} {Ο†' : βˆ€ i, E β†’L[π•œ] F' i} {Ξ¦ : E β†’ βˆ€ i, F' i} {Ξ¦' : E β†’L[π•œ] βˆ€ i, F' i} @[simp] theorem hasStrictFDerivAt_pi' : HasStrictFDerivAt Ξ¦ Ξ¦' x ↔ βˆ€ i, HasStrictFDerivAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x := by simp only [HasStrictFDerivAt, ContinuousLinearMap.coe_pi] exact isLittleO_pi #align has_strict_fderiv_at_pi' hasStrictFDerivAt_pi' @[fun_prop] theorem hasStrictFDerivAt_pi'' (hΟ† : βˆ€ i, HasStrictFDerivAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x) : HasStrictFDerivAt Ξ¦ Ξ¦' x := hasStrictFDerivAt_pi'.2 hΟ† @[fun_prop]
Mathlib/Analysis/Calculus/FDeriv/Prod.lean
411
417
theorem hasStrictFDerivAt_apply (i : ΞΉ) (f : βˆ€ i, F' i) : HasStrictFDerivAt (π•œ:=π•œ) (fun f : βˆ€ i, F' i => f i) (proj i) f := by
let id' := ContinuousLinearMap.id π•œ (βˆ€ i, F' i) have h := ((hasStrictFDerivAt_pi' (Ξ¦ := fun (f : βˆ€ i, F' i) (i' : ΞΉ) => f i') (Ξ¦':=id') (x:=f))).1 have h' : comp (proj i) id' = proj i := by rfl rw [← h']; apply h; apply hasStrictFDerivAt_id
1,603
import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.prod from "leanprover-community/mathlib"@"e354e865255654389cc46e6032160238df2e0f40" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section CartesianProduct section Pi variable {ΞΉ : Type*} [Fintype ΞΉ] {F' : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (F' i)] [βˆ€ i, NormedSpace π•œ (F' i)] {Ο† : βˆ€ i, E β†’ F' i} {Ο†' : βˆ€ i, E β†’L[π•œ] F' i} {Ξ¦ : E β†’ βˆ€ i, F' i} {Ξ¦' : E β†’L[π•œ] βˆ€ i, F' i} @[simp] theorem hasStrictFDerivAt_pi' : HasStrictFDerivAt Ξ¦ Ξ¦' x ↔ βˆ€ i, HasStrictFDerivAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x := by simp only [HasStrictFDerivAt, ContinuousLinearMap.coe_pi] exact isLittleO_pi #align has_strict_fderiv_at_pi' hasStrictFDerivAt_pi' @[fun_prop] theorem hasStrictFDerivAt_pi'' (hΟ† : βˆ€ i, HasStrictFDerivAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x) : HasStrictFDerivAt Ξ¦ Ξ¦' x := hasStrictFDerivAt_pi'.2 hΟ† @[fun_prop] theorem hasStrictFDerivAt_apply (i : ΞΉ) (f : βˆ€ i, F' i) : HasStrictFDerivAt (π•œ:=π•œ) (fun f : βˆ€ i, F' i => f i) (proj i) f := by let id' := ContinuousLinearMap.id π•œ (βˆ€ i, F' i) have h := ((hasStrictFDerivAt_pi' (Ξ¦ := fun (f : βˆ€ i, F' i) (i' : ΞΉ) => f i') (Ξ¦':=id') (x:=f))).1 have h' : comp (proj i) id' = proj i := by rfl rw [← h']; apply h; apply hasStrictFDerivAt_id @[simp 1100] -- Porting note: increased priority to make lint happy theorem hasStrictFDerivAt_pi : HasStrictFDerivAt (fun x i => Ο† i x) (ContinuousLinearMap.pi Ο†') x ↔ βˆ€ i, HasStrictFDerivAt (Ο† i) (Ο†' i) x := hasStrictFDerivAt_pi' #align has_strict_fderiv_at_pi hasStrictFDerivAt_pi @[simp]
Mathlib/Analysis/Calculus/FDeriv/Prod.lean
427
431
theorem hasFDerivAtFilter_pi' : HasFDerivAtFilter Ξ¦ Ξ¦' x L ↔ βˆ€ i, HasFDerivAtFilter (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x L := by
simp only [hasFDerivAtFilter_iff_isLittleO, ContinuousLinearMap.coe_pi] exact isLittleO_pi
1,603
import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.prod from "leanprover-community/mathlib"@"e354e865255654389cc46e6032160238df2e0f40" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section CartesianProduct section Pi variable {ΞΉ : Type*} [Fintype ΞΉ] {F' : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (F' i)] [βˆ€ i, NormedSpace π•œ (F' i)] {Ο† : βˆ€ i, E β†’ F' i} {Ο†' : βˆ€ i, E β†’L[π•œ] F' i} {Ξ¦ : E β†’ βˆ€ i, F' i} {Ξ¦' : E β†’L[π•œ] βˆ€ i, F' i} @[simp] theorem hasStrictFDerivAt_pi' : HasStrictFDerivAt Ξ¦ Ξ¦' x ↔ βˆ€ i, HasStrictFDerivAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x := by simp only [HasStrictFDerivAt, ContinuousLinearMap.coe_pi] exact isLittleO_pi #align has_strict_fderiv_at_pi' hasStrictFDerivAt_pi' @[fun_prop] theorem hasStrictFDerivAt_pi'' (hΟ† : βˆ€ i, HasStrictFDerivAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x) : HasStrictFDerivAt Ξ¦ Ξ¦' x := hasStrictFDerivAt_pi'.2 hΟ† @[fun_prop] theorem hasStrictFDerivAt_apply (i : ΞΉ) (f : βˆ€ i, F' i) : HasStrictFDerivAt (π•œ:=π•œ) (fun f : βˆ€ i, F' i => f i) (proj i) f := by let id' := ContinuousLinearMap.id π•œ (βˆ€ i, F' i) have h := ((hasStrictFDerivAt_pi' (Ξ¦ := fun (f : βˆ€ i, F' i) (i' : ΞΉ) => f i') (Ξ¦':=id') (x:=f))).1 have h' : comp (proj i) id' = proj i := by rfl rw [← h']; apply h; apply hasStrictFDerivAt_id @[simp 1100] -- Porting note: increased priority to make lint happy theorem hasStrictFDerivAt_pi : HasStrictFDerivAt (fun x i => Ο† i x) (ContinuousLinearMap.pi Ο†') x ↔ βˆ€ i, HasStrictFDerivAt (Ο† i) (Ο†' i) x := hasStrictFDerivAt_pi' #align has_strict_fderiv_at_pi hasStrictFDerivAt_pi @[simp] theorem hasFDerivAtFilter_pi' : HasFDerivAtFilter Ξ¦ Ξ¦' x L ↔ βˆ€ i, HasFDerivAtFilter (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x L := by simp only [hasFDerivAtFilter_iff_isLittleO, ContinuousLinearMap.coe_pi] exact isLittleO_pi #align has_fderiv_at_filter_pi' hasFDerivAtFilter_pi' theorem hasFDerivAtFilter_pi : HasFDerivAtFilter (fun x i => Ο† i x) (ContinuousLinearMap.pi Ο†') x L ↔ βˆ€ i, HasFDerivAtFilter (Ο† i) (Ο†' i) x L := hasFDerivAtFilter_pi' #align has_fderiv_at_filter_pi hasFDerivAtFilter_pi @[simp] theorem hasFDerivAt_pi' : HasFDerivAt Ξ¦ Ξ¦' x ↔ βˆ€ i, HasFDerivAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x := hasFDerivAtFilter_pi' #align has_fderiv_at_pi' hasFDerivAt_pi' @[fun_prop] theorem hasFDerivAt_pi'' (hΟ† : βˆ€ i, HasFDerivAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x) : HasFDerivAt Ξ¦ Ξ¦' x := hasFDerivAt_pi'.2 hΟ† @[fun_prop]
Mathlib/Analysis/Calculus/FDeriv/Prod.lean
451
454
theorem hasFDerivAt_apply (i : ΞΉ) (f : βˆ€ i, F' i) : HasFDerivAt (π•œ:=π•œ) (fun f : βˆ€ i, F' i => f i) (proj i) f := by
apply HasStrictFDerivAt.hasFDerivAt apply hasStrictFDerivAt_apply
1,603
import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.prod from "leanprover-community/mathlib"@"e354e865255654389cc46e6032160238df2e0f40" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section CartesianProduct section Pi variable {ΞΉ : Type*} [Fintype ΞΉ] {F' : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (F' i)] [βˆ€ i, NormedSpace π•œ (F' i)] {Ο† : βˆ€ i, E β†’ F' i} {Ο†' : βˆ€ i, E β†’L[π•œ] F' i} {Ξ¦ : E β†’ βˆ€ i, F' i} {Ξ¦' : E β†’L[π•œ] βˆ€ i, F' i} @[simp] theorem hasStrictFDerivAt_pi' : HasStrictFDerivAt Ξ¦ Ξ¦' x ↔ βˆ€ i, HasStrictFDerivAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x := by simp only [HasStrictFDerivAt, ContinuousLinearMap.coe_pi] exact isLittleO_pi #align has_strict_fderiv_at_pi' hasStrictFDerivAt_pi' @[fun_prop] theorem hasStrictFDerivAt_pi'' (hΟ† : βˆ€ i, HasStrictFDerivAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x) : HasStrictFDerivAt Ξ¦ Ξ¦' x := hasStrictFDerivAt_pi'.2 hΟ† @[fun_prop] theorem hasStrictFDerivAt_apply (i : ΞΉ) (f : βˆ€ i, F' i) : HasStrictFDerivAt (π•œ:=π•œ) (fun f : βˆ€ i, F' i => f i) (proj i) f := by let id' := ContinuousLinearMap.id π•œ (βˆ€ i, F' i) have h := ((hasStrictFDerivAt_pi' (Ξ¦ := fun (f : βˆ€ i, F' i) (i' : ΞΉ) => f i') (Ξ¦':=id') (x:=f))).1 have h' : comp (proj i) id' = proj i := by rfl rw [← h']; apply h; apply hasStrictFDerivAt_id @[simp 1100] -- Porting note: increased priority to make lint happy theorem hasStrictFDerivAt_pi : HasStrictFDerivAt (fun x i => Ο† i x) (ContinuousLinearMap.pi Ο†') x ↔ βˆ€ i, HasStrictFDerivAt (Ο† i) (Ο†' i) x := hasStrictFDerivAt_pi' #align has_strict_fderiv_at_pi hasStrictFDerivAt_pi @[simp] theorem hasFDerivAtFilter_pi' : HasFDerivAtFilter Ξ¦ Ξ¦' x L ↔ βˆ€ i, HasFDerivAtFilter (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x L := by simp only [hasFDerivAtFilter_iff_isLittleO, ContinuousLinearMap.coe_pi] exact isLittleO_pi #align has_fderiv_at_filter_pi' hasFDerivAtFilter_pi' theorem hasFDerivAtFilter_pi : HasFDerivAtFilter (fun x i => Ο† i x) (ContinuousLinearMap.pi Ο†') x L ↔ βˆ€ i, HasFDerivAtFilter (Ο† i) (Ο†' i) x L := hasFDerivAtFilter_pi' #align has_fderiv_at_filter_pi hasFDerivAtFilter_pi @[simp] theorem hasFDerivAt_pi' : HasFDerivAt Ξ¦ Ξ¦' x ↔ βˆ€ i, HasFDerivAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x := hasFDerivAtFilter_pi' #align has_fderiv_at_pi' hasFDerivAt_pi' @[fun_prop] theorem hasFDerivAt_pi'' (hΟ† : βˆ€ i, HasFDerivAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') x) : HasFDerivAt Ξ¦ Ξ¦' x := hasFDerivAt_pi'.2 hΟ† @[fun_prop] theorem hasFDerivAt_apply (i : ΞΉ) (f : βˆ€ i, F' i) : HasFDerivAt (π•œ:=π•œ) (fun f : βˆ€ i, F' i => f i) (proj i) f := by apply HasStrictFDerivAt.hasFDerivAt apply hasStrictFDerivAt_apply theorem hasFDerivAt_pi : HasFDerivAt (fun x i => Ο† i x) (ContinuousLinearMap.pi Ο†') x ↔ βˆ€ i, HasFDerivAt (Ο† i) (Ο†' i) x := hasFDerivAtFilter_pi #align has_fderiv_at_pi hasFDerivAt_pi @[simp] theorem hasFDerivWithinAt_pi' : HasFDerivWithinAt Ξ¦ Ξ¦' s x ↔ βˆ€ i, HasFDerivWithinAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') s x := hasFDerivAtFilter_pi' #align has_fderiv_within_at_pi' hasFDerivWithinAt_pi' @[fun_prop] theorem hasFDerivWithinAt_pi'' (hΟ† : βˆ€ i, HasFDerivWithinAt (fun x => Ξ¦ x i) ((proj i).comp Ξ¦') s x) : HasFDerivWithinAt Ξ¦ Ξ¦' s x := hasFDerivWithinAt_pi'.2 hΟ† @[fun_prop]
Mathlib/Analysis/Calculus/FDeriv/Prod.lean
474
480
theorem hasFDerivWithinAt_apply (i : ΞΉ) (f : βˆ€ i, F' i) (s' : Set (βˆ€ i, F' i)) : HasFDerivWithinAt (π•œ:=π•œ) (fun f : βˆ€ i, F' i => f i) (proj i) s' f := by
let id' := ContinuousLinearMap.id π•œ (βˆ€ i, F' i) have h := ((hasFDerivWithinAt_pi' (Ξ¦ := fun (f : βˆ€ i, F' i) (i' : ΞΉ) => f i') (Ξ¦':=id') (x:=f) (s:=s'))).1 have h' : comp (proj i) id' = proj i := by rfl rw [← h']; apply h; apply hasFDerivWithinAt_id
1,603
import Mathlib.Analysis.Calculus.FDeriv.Prod #align_import analysis.calculus.fderiv.bilinear from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section BilinearMap variable {b : E Γ— F β†’ G} {u : Set (E Γ— F)} open NormedField -- Porting note (#11215): TODO: rewrite/golf using analytic functions? @[fun_prop]
Mathlib/Analysis/Calculus/FDeriv/Bilinear.lean
51
74
theorem IsBoundedBilinearMap.hasStrictFDerivAt (h : IsBoundedBilinearMap π•œ b) (p : E Γ— F) : HasStrictFDerivAt b (h.deriv p) p := by
simp only [HasStrictFDerivAt] simp only [← map_add_left_nhds_zero (p, p), isLittleO_map] set T := (E Γ— F) Γ— E Γ— F calc _ = fun x ↦ h.deriv (x.1 - x.2) (x.2.1, x.1.2) := by ext ⟨⟨x₁, yβ‚βŸ©, ⟨xβ‚‚, yβ‚‚βŸ©βŸ© rcases p with ⟨x, y⟩ simp only [map_sub, deriv_apply, Function.comp_apply, Prod.mk_add_mk, h.add_right, h.add_left, Prod.mk_sub_mk, h.map_sub_left, h.map_sub_right, sub_add_sub_cancel] abel -- _ =O[𝓝 (0 : T)] fun x ↦ β€–x.1 - x.2β€– * β€–(x.2.1, x.1.2)β€– := -- h.toContinuousLinearMap.derivβ‚‚.isBoundedBilinearMap.isBigO_comp -- _ = o[𝓝 0] fun x ↦ β€–x.1 - x.2β€– * 1 := _ _ =o[𝓝 (0 : T)] fun x ↦ x.1 - x.2 := by -- TODO : add 2 `calc` steps instead of the next 3 lines refine h.toContinuousLinearMap.derivβ‚‚.isBoundedBilinearMap.isBigO_comp.trans_isLittleO ?_ suffices (fun x : T ↦ β€–x.1 - x.2β€– * β€–(x.2.1, x.1.2)β€–) =o[𝓝 0] fun x ↦ β€–x.1 - x.2β€– * 1 by simpa only [mul_one, isLittleO_norm_right] using this refine (isBigO_refl _ _).mul_isLittleO ((isLittleO_one_iff _).2 ?_) -- TODO: `continuity` fails exact (continuous_snd.fst.prod_mk continuous_fst.snd).norm.tendsto' _ _ (by simp) _ = _ := by simp [(Β· ∘ Β·)]
1,604
import Mathlib.Analysis.Calculus.FDeriv.Bilinear #align_import analysis.calculus.fderiv.mul from "leanprover-community/mathlib"@"d608fc5d4e69d4cc21885913fb573a88b0deb521" open scoped Classical open Filter Asymptotics ContinuousLinearMap Set Metric Topology NNReal ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section ContinuousMultilinearApplyConst variable {ΞΉ : Type*} [Fintype ΞΉ] {M : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (M i)] [βˆ€ i, NormedSpace π•œ (M i)] {H : Type*} [NormedAddCommGroup H] [NormedSpace π•œ H] {c : E β†’ ContinuousMultilinearMap π•œ M H} {c' : E β†’L[π•œ] ContinuousMultilinearMap π•œ M H} @[fun_prop] theorem HasStrictFDerivAt.continuousMultilinear_apply_const (hc : HasStrictFDerivAt c c' x) (u : βˆ€ i, M i) : HasStrictFDerivAt (fun y ↦ (c y) u) (c'.flipMultilinear u) x := (ContinuousMultilinearMap.apply π•œ M H u).hasStrictFDerivAt.comp x hc @[fun_prop] theorem HasFDerivWithinAt.continuousMultilinear_apply_const (hc : HasFDerivWithinAt c c' s x) (u : βˆ€ i, M i) : HasFDerivWithinAt (fun y ↦ (c y) u) (c'.flipMultilinear u) s x := (ContinuousMultilinearMap.apply π•œ M H u).hasFDerivAt.comp_hasFDerivWithinAt x hc @[fun_prop] theorem HasFDerivAt.continuousMultilinear_apply_const (hc : HasFDerivAt c c' x) (u : βˆ€ i, M i) : HasFDerivAt (fun y ↦ (c y) u) (c'.flipMultilinear u) x := (ContinuousMultilinearMap.apply π•œ M H u).hasFDerivAt.comp x hc @[fun_prop] theorem DifferentiableWithinAt.continuousMultilinear_apply_const (hc : DifferentiableWithinAt π•œ c s x) (u : βˆ€ i, M i) : DifferentiableWithinAt π•œ (fun y ↦ (c y) u) s x := (hc.hasFDerivWithinAt.continuousMultilinear_apply_const u).differentiableWithinAt @[fun_prop] theorem DifferentiableAt.continuousMultilinear_apply_const (hc : DifferentiableAt π•œ c x) (u : βˆ€ i, M i) : DifferentiableAt π•œ (fun y ↦ (c y) u) x := (hc.hasFDerivAt.continuousMultilinear_apply_const u).differentiableAt @[fun_prop] theorem DifferentiableOn.continuousMultilinear_apply_const (hc : DifferentiableOn π•œ c s) (u : βˆ€ i, M i) : DifferentiableOn π•œ (fun y ↦ (c y) u) s := fun x hx ↦ (hc x hx).continuousMultilinear_apply_const u @[fun_prop] theorem Differentiable.continuousMultilinear_apply_const (hc : Differentiable π•œ c) (u : βˆ€ i, M i) : Differentiable π•œ fun y ↦ (c y) u := fun x ↦ (hc x).continuousMultilinear_apply_const u theorem fderivWithin_continuousMultilinear_apply_const (hxs : UniqueDiffWithinAt π•œ s x) (hc : DifferentiableWithinAt π•œ c s x) (u : βˆ€ i, M i) : fderivWithin π•œ (fun y ↦ (c y) u) s x = ((fderivWithin π•œ c s x).flipMultilinear u) := (hc.hasFDerivWithinAt.continuousMultilinear_apply_const u).fderivWithin hxs theorem fderiv_continuousMultilinear_apply_const (hc : DifferentiableAt π•œ c x) (u : βˆ€ i, M i) : (fderiv π•œ (fun y ↦ (c y) u) x) = (fderiv π•œ c x).flipMultilinear u := (hc.hasFDerivAt.continuousMultilinear_apply_const u).fderiv
Mathlib/Analysis/Calculus/FDeriv/Mul.lean
224
227
theorem fderivWithin_continuousMultilinear_apply_const_apply (hxs : UniqueDiffWithinAt π•œ s x) (hc : DifferentiableWithinAt π•œ c s x) (u : βˆ€ i, M i) (m : E) : (fderivWithin π•œ (fun y ↦ (c y) u) s x) m = (fderivWithin π•œ c s x) m u := by
simp [fderivWithin_continuousMultilinear_apply_const hxs hc]
1,605
import Mathlib.Analysis.Calculus.FDeriv.Bilinear #align_import analysis.calculus.fderiv.mul from "leanprover-community/mathlib"@"d608fc5d4e69d4cc21885913fb573a88b0deb521" open scoped Classical open Filter Asymptotics ContinuousLinearMap Set Metric Topology NNReal ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section ContinuousMultilinearApplyConst variable {ΞΉ : Type*} [Fintype ΞΉ] {M : ΞΉ β†’ Type*} [βˆ€ i, NormedAddCommGroup (M i)] [βˆ€ i, NormedSpace π•œ (M i)] {H : Type*} [NormedAddCommGroup H] [NormedSpace π•œ H] {c : E β†’ ContinuousMultilinearMap π•œ M H} {c' : E β†’L[π•œ] ContinuousMultilinearMap π•œ M H} @[fun_prop] theorem HasStrictFDerivAt.continuousMultilinear_apply_const (hc : HasStrictFDerivAt c c' x) (u : βˆ€ i, M i) : HasStrictFDerivAt (fun y ↦ (c y) u) (c'.flipMultilinear u) x := (ContinuousMultilinearMap.apply π•œ M H u).hasStrictFDerivAt.comp x hc @[fun_prop] theorem HasFDerivWithinAt.continuousMultilinear_apply_const (hc : HasFDerivWithinAt c c' s x) (u : βˆ€ i, M i) : HasFDerivWithinAt (fun y ↦ (c y) u) (c'.flipMultilinear u) s x := (ContinuousMultilinearMap.apply π•œ M H u).hasFDerivAt.comp_hasFDerivWithinAt x hc @[fun_prop] theorem HasFDerivAt.continuousMultilinear_apply_const (hc : HasFDerivAt c c' x) (u : βˆ€ i, M i) : HasFDerivAt (fun y ↦ (c y) u) (c'.flipMultilinear u) x := (ContinuousMultilinearMap.apply π•œ M H u).hasFDerivAt.comp x hc @[fun_prop] theorem DifferentiableWithinAt.continuousMultilinear_apply_const (hc : DifferentiableWithinAt π•œ c s x) (u : βˆ€ i, M i) : DifferentiableWithinAt π•œ (fun y ↦ (c y) u) s x := (hc.hasFDerivWithinAt.continuousMultilinear_apply_const u).differentiableWithinAt @[fun_prop] theorem DifferentiableAt.continuousMultilinear_apply_const (hc : DifferentiableAt π•œ c x) (u : βˆ€ i, M i) : DifferentiableAt π•œ (fun y ↦ (c y) u) x := (hc.hasFDerivAt.continuousMultilinear_apply_const u).differentiableAt @[fun_prop] theorem DifferentiableOn.continuousMultilinear_apply_const (hc : DifferentiableOn π•œ c s) (u : βˆ€ i, M i) : DifferentiableOn π•œ (fun y ↦ (c y) u) s := fun x hx ↦ (hc x hx).continuousMultilinear_apply_const u @[fun_prop] theorem Differentiable.continuousMultilinear_apply_const (hc : Differentiable π•œ c) (u : βˆ€ i, M i) : Differentiable π•œ fun y ↦ (c y) u := fun x ↦ (hc x).continuousMultilinear_apply_const u theorem fderivWithin_continuousMultilinear_apply_const (hxs : UniqueDiffWithinAt π•œ s x) (hc : DifferentiableWithinAt π•œ c s x) (u : βˆ€ i, M i) : fderivWithin π•œ (fun y ↦ (c y) u) s x = ((fderivWithin π•œ c s x).flipMultilinear u) := (hc.hasFDerivWithinAt.continuousMultilinear_apply_const u).fderivWithin hxs theorem fderiv_continuousMultilinear_apply_const (hc : DifferentiableAt π•œ c x) (u : βˆ€ i, M i) : (fderiv π•œ (fun y ↦ (c y) u) x) = (fderiv π•œ c x).flipMultilinear u := (hc.hasFDerivAt.continuousMultilinear_apply_const u).fderiv theorem fderivWithin_continuousMultilinear_apply_const_apply (hxs : UniqueDiffWithinAt π•œ s x) (hc : DifferentiableWithinAt π•œ c s x) (u : βˆ€ i, M i) (m : E) : (fderivWithin π•œ (fun y ↦ (c y) u) s x) m = (fderivWithin π•œ c s x) m u := by simp [fderivWithin_continuousMultilinear_apply_const hxs hc]
Mathlib/Analysis/Calculus/FDeriv/Mul.lean
230
233
theorem fderiv_continuousMultilinear_apply_const_apply (hc : DifferentiableAt π•œ c x) (u : βˆ€ i, M i) (m : E) : (fderiv π•œ (fun y ↦ (c y) u) x) m = (fderiv π•œ c x) m u := by
simp [fderiv_continuousMultilinear_apply_const hc]
1,605
import Mathlib.Analysis.Calculus.FDeriv.Bilinear #align_import analysis.calculus.fderiv.mul from "leanprover-community/mathlib"@"d608fc5d4e69d4cc21885913fb573a88b0deb521" open scoped Classical open Filter Asymptotics ContinuousLinearMap Set Metric Topology NNReal ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section SMul variable {π•œ' : Type*} [NontriviallyNormedField π•œ'] [NormedAlgebra π•œ π•œ'] [NormedSpace π•œ' F] [IsScalarTower π•œ π•œ' F] variable {c : E β†’ π•œ'} {c' : E β†’L[π•œ] π•œ'} @[fun_prop] theorem HasStrictFDerivAt.smul (hc : HasStrictFDerivAt c c' x) (hf : HasStrictFDerivAt f f' x) : HasStrictFDerivAt (fun y => c y β€’ f y) (c x β€’ f' + c'.smulRight (f x)) x := (isBoundedBilinearMap_smul.hasStrictFDerivAt (c x, f x)).comp x <| hc.prod hf #align has_strict_fderiv_at.smul HasStrictFDerivAt.smul @[fun_prop] theorem HasFDerivWithinAt.smul (hc : HasFDerivWithinAt c c' s x) (hf : HasFDerivWithinAt f f' s x) : HasFDerivWithinAt (fun y => c y β€’ f y) (c x β€’ f' + c'.smulRight (f x)) s x := (isBoundedBilinearMap_smul.hasFDerivAt (c x, f x)).comp_hasFDerivWithinAt x <| hc.prod hf #align has_fderiv_within_at.smul HasFDerivWithinAt.smul @[fun_prop] theorem HasFDerivAt.smul (hc : HasFDerivAt c c' x) (hf : HasFDerivAt f f' x) : HasFDerivAt (fun y => c y β€’ f y) (c x β€’ f' + c'.smulRight (f x)) x := (isBoundedBilinearMap_smul.hasFDerivAt (c x, f x)).comp x <| hc.prod hf #align has_fderiv_at.smul HasFDerivAt.smul @[fun_prop] theorem DifferentiableWithinAt.smul (hc : DifferentiableWithinAt π•œ c s x) (hf : DifferentiableWithinAt π•œ f s x) : DifferentiableWithinAt π•œ (fun y => c y β€’ f y) s x := (hc.hasFDerivWithinAt.smul hf.hasFDerivWithinAt).differentiableWithinAt #align differentiable_within_at.smul DifferentiableWithinAt.smul @[simp, fun_prop] theorem DifferentiableAt.smul (hc : DifferentiableAt π•œ c x) (hf : DifferentiableAt π•œ f x) : DifferentiableAt π•œ (fun y => c y β€’ f y) x := (hc.hasFDerivAt.smul hf.hasFDerivAt).differentiableAt #align differentiable_at.smul DifferentiableAt.smul @[fun_prop] theorem DifferentiableOn.smul (hc : DifferentiableOn π•œ c s) (hf : DifferentiableOn π•œ f s) : DifferentiableOn π•œ (fun y => c y β€’ f y) s := fun x hx => (hc x hx).smul (hf x hx) #align differentiable_on.smul DifferentiableOn.smul @[simp, fun_prop] theorem Differentiable.smul (hc : Differentiable π•œ c) (hf : Differentiable π•œ f) : Differentiable π•œ fun y => c y β€’ f y := fun x => (hc x).smul (hf x) #align differentiable.smul Differentiable.smul theorem fderivWithin_smul (hxs : UniqueDiffWithinAt π•œ s x) (hc : DifferentiableWithinAt π•œ c s x) (hf : DifferentiableWithinAt π•œ f s x) : fderivWithin π•œ (fun y => c y β€’ f y) s x = c x β€’ fderivWithin π•œ f s x + (fderivWithin π•œ c s x).smulRight (f x) := (hc.hasFDerivWithinAt.smul hf.hasFDerivWithinAt).fderivWithin hxs #align fderiv_within_smul fderivWithin_smul theorem fderiv_smul (hc : DifferentiableAt π•œ c x) (hf : DifferentiableAt π•œ f x) : fderiv π•œ (fun y => c y β€’ f y) x = c x β€’ fderiv π•œ f x + (fderiv π•œ c x).smulRight (f x) := (hc.hasFDerivAt.smul hf.hasFDerivAt).fderiv #align fderiv_smul fderiv_smul @[fun_prop]
Mathlib/Analysis/Calculus/FDeriv/Mul.lean
307
309
theorem HasStrictFDerivAt.smul_const (hc : HasStrictFDerivAt c c' x) (f : F) : HasStrictFDerivAt (fun y => c y β€’ f) (c'.smulRight f) x := by
simpa only [smul_zero, zero_add] using hc.smul (hasStrictFDerivAt_const f x)
1,605
import Mathlib.Analysis.Calculus.FDeriv.Bilinear #align_import analysis.calculus.fderiv.mul from "leanprover-community/mathlib"@"d608fc5d4e69d4cc21885913fb573a88b0deb521" open scoped Classical open Filter Asymptotics ContinuousLinearMap Set Metric Topology NNReal ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section SMul variable {π•œ' : Type*} [NontriviallyNormedField π•œ'] [NormedAlgebra π•œ π•œ'] [NormedSpace π•œ' F] [IsScalarTower π•œ π•œ' F] variable {c : E β†’ π•œ'} {c' : E β†’L[π•œ] π•œ'} @[fun_prop] theorem HasStrictFDerivAt.smul (hc : HasStrictFDerivAt c c' x) (hf : HasStrictFDerivAt f f' x) : HasStrictFDerivAt (fun y => c y β€’ f y) (c x β€’ f' + c'.smulRight (f x)) x := (isBoundedBilinearMap_smul.hasStrictFDerivAt (c x, f x)).comp x <| hc.prod hf #align has_strict_fderiv_at.smul HasStrictFDerivAt.smul @[fun_prop] theorem HasFDerivWithinAt.smul (hc : HasFDerivWithinAt c c' s x) (hf : HasFDerivWithinAt f f' s x) : HasFDerivWithinAt (fun y => c y β€’ f y) (c x β€’ f' + c'.smulRight (f x)) s x := (isBoundedBilinearMap_smul.hasFDerivAt (c x, f x)).comp_hasFDerivWithinAt x <| hc.prod hf #align has_fderiv_within_at.smul HasFDerivWithinAt.smul @[fun_prop] theorem HasFDerivAt.smul (hc : HasFDerivAt c c' x) (hf : HasFDerivAt f f' x) : HasFDerivAt (fun y => c y β€’ f y) (c x β€’ f' + c'.smulRight (f x)) x := (isBoundedBilinearMap_smul.hasFDerivAt (c x, f x)).comp x <| hc.prod hf #align has_fderiv_at.smul HasFDerivAt.smul @[fun_prop] theorem DifferentiableWithinAt.smul (hc : DifferentiableWithinAt π•œ c s x) (hf : DifferentiableWithinAt π•œ f s x) : DifferentiableWithinAt π•œ (fun y => c y β€’ f y) s x := (hc.hasFDerivWithinAt.smul hf.hasFDerivWithinAt).differentiableWithinAt #align differentiable_within_at.smul DifferentiableWithinAt.smul @[simp, fun_prop] theorem DifferentiableAt.smul (hc : DifferentiableAt π•œ c x) (hf : DifferentiableAt π•œ f x) : DifferentiableAt π•œ (fun y => c y β€’ f y) x := (hc.hasFDerivAt.smul hf.hasFDerivAt).differentiableAt #align differentiable_at.smul DifferentiableAt.smul @[fun_prop] theorem DifferentiableOn.smul (hc : DifferentiableOn π•œ c s) (hf : DifferentiableOn π•œ f s) : DifferentiableOn π•œ (fun y => c y β€’ f y) s := fun x hx => (hc x hx).smul (hf x hx) #align differentiable_on.smul DifferentiableOn.smul @[simp, fun_prop] theorem Differentiable.smul (hc : Differentiable π•œ c) (hf : Differentiable π•œ f) : Differentiable π•œ fun y => c y β€’ f y := fun x => (hc x).smul (hf x) #align differentiable.smul Differentiable.smul theorem fderivWithin_smul (hxs : UniqueDiffWithinAt π•œ s x) (hc : DifferentiableWithinAt π•œ c s x) (hf : DifferentiableWithinAt π•œ f s x) : fderivWithin π•œ (fun y => c y β€’ f y) s x = c x β€’ fderivWithin π•œ f s x + (fderivWithin π•œ c s x).smulRight (f x) := (hc.hasFDerivWithinAt.smul hf.hasFDerivWithinAt).fderivWithin hxs #align fderiv_within_smul fderivWithin_smul theorem fderiv_smul (hc : DifferentiableAt π•œ c x) (hf : DifferentiableAt π•œ f x) : fderiv π•œ (fun y => c y β€’ f y) x = c x β€’ fderiv π•œ f x + (fderiv π•œ c x).smulRight (f x) := (hc.hasFDerivAt.smul hf.hasFDerivAt).fderiv #align fderiv_smul fderiv_smul @[fun_prop] theorem HasStrictFDerivAt.smul_const (hc : HasStrictFDerivAt c c' x) (f : F) : HasStrictFDerivAt (fun y => c y β€’ f) (c'.smulRight f) x := by simpa only [smul_zero, zero_add] using hc.smul (hasStrictFDerivAt_const f x) #align has_strict_fderiv_at.smul_const HasStrictFDerivAt.smul_const @[fun_prop]
Mathlib/Analysis/Calculus/FDeriv/Mul.lean
313
315
theorem HasFDerivWithinAt.smul_const (hc : HasFDerivWithinAt c c' s x) (f : F) : HasFDerivWithinAt (fun y => c y β€’ f) (c'.smulRight f) s x := by
simpa only [smul_zero, zero_add] using hc.smul (hasFDerivWithinAt_const f x s)
1,605
import Mathlib.Analysis.Calculus.FDeriv.Bilinear #align_import analysis.calculus.fderiv.mul from "leanprover-community/mathlib"@"d608fc5d4e69d4cc21885913fb573a88b0deb521" open scoped Classical open Filter Asymptotics ContinuousLinearMap Set Metric Topology NNReal ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section SMul variable {π•œ' : Type*} [NontriviallyNormedField π•œ'] [NormedAlgebra π•œ π•œ'] [NormedSpace π•œ' F] [IsScalarTower π•œ π•œ' F] variable {c : E β†’ π•œ'} {c' : E β†’L[π•œ] π•œ'} @[fun_prop] theorem HasStrictFDerivAt.smul (hc : HasStrictFDerivAt c c' x) (hf : HasStrictFDerivAt f f' x) : HasStrictFDerivAt (fun y => c y β€’ f y) (c x β€’ f' + c'.smulRight (f x)) x := (isBoundedBilinearMap_smul.hasStrictFDerivAt (c x, f x)).comp x <| hc.prod hf #align has_strict_fderiv_at.smul HasStrictFDerivAt.smul @[fun_prop] theorem HasFDerivWithinAt.smul (hc : HasFDerivWithinAt c c' s x) (hf : HasFDerivWithinAt f f' s x) : HasFDerivWithinAt (fun y => c y β€’ f y) (c x β€’ f' + c'.smulRight (f x)) s x := (isBoundedBilinearMap_smul.hasFDerivAt (c x, f x)).comp_hasFDerivWithinAt x <| hc.prod hf #align has_fderiv_within_at.smul HasFDerivWithinAt.smul @[fun_prop] theorem HasFDerivAt.smul (hc : HasFDerivAt c c' x) (hf : HasFDerivAt f f' x) : HasFDerivAt (fun y => c y β€’ f y) (c x β€’ f' + c'.smulRight (f x)) x := (isBoundedBilinearMap_smul.hasFDerivAt (c x, f x)).comp x <| hc.prod hf #align has_fderiv_at.smul HasFDerivAt.smul @[fun_prop] theorem DifferentiableWithinAt.smul (hc : DifferentiableWithinAt π•œ c s x) (hf : DifferentiableWithinAt π•œ f s x) : DifferentiableWithinAt π•œ (fun y => c y β€’ f y) s x := (hc.hasFDerivWithinAt.smul hf.hasFDerivWithinAt).differentiableWithinAt #align differentiable_within_at.smul DifferentiableWithinAt.smul @[simp, fun_prop] theorem DifferentiableAt.smul (hc : DifferentiableAt π•œ c x) (hf : DifferentiableAt π•œ f x) : DifferentiableAt π•œ (fun y => c y β€’ f y) x := (hc.hasFDerivAt.smul hf.hasFDerivAt).differentiableAt #align differentiable_at.smul DifferentiableAt.smul @[fun_prop] theorem DifferentiableOn.smul (hc : DifferentiableOn π•œ c s) (hf : DifferentiableOn π•œ f s) : DifferentiableOn π•œ (fun y => c y β€’ f y) s := fun x hx => (hc x hx).smul (hf x hx) #align differentiable_on.smul DifferentiableOn.smul @[simp, fun_prop] theorem Differentiable.smul (hc : Differentiable π•œ c) (hf : Differentiable π•œ f) : Differentiable π•œ fun y => c y β€’ f y := fun x => (hc x).smul (hf x) #align differentiable.smul Differentiable.smul theorem fderivWithin_smul (hxs : UniqueDiffWithinAt π•œ s x) (hc : DifferentiableWithinAt π•œ c s x) (hf : DifferentiableWithinAt π•œ f s x) : fderivWithin π•œ (fun y => c y β€’ f y) s x = c x β€’ fderivWithin π•œ f s x + (fderivWithin π•œ c s x).smulRight (f x) := (hc.hasFDerivWithinAt.smul hf.hasFDerivWithinAt).fderivWithin hxs #align fderiv_within_smul fderivWithin_smul theorem fderiv_smul (hc : DifferentiableAt π•œ c x) (hf : DifferentiableAt π•œ f x) : fderiv π•œ (fun y => c y β€’ f y) x = c x β€’ fderiv π•œ f x + (fderiv π•œ c x).smulRight (f x) := (hc.hasFDerivAt.smul hf.hasFDerivAt).fderiv #align fderiv_smul fderiv_smul @[fun_prop] theorem HasStrictFDerivAt.smul_const (hc : HasStrictFDerivAt c c' x) (f : F) : HasStrictFDerivAt (fun y => c y β€’ f) (c'.smulRight f) x := by simpa only [smul_zero, zero_add] using hc.smul (hasStrictFDerivAt_const f x) #align has_strict_fderiv_at.smul_const HasStrictFDerivAt.smul_const @[fun_prop] theorem HasFDerivWithinAt.smul_const (hc : HasFDerivWithinAt c c' s x) (f : F) : HasFDerivWithinAt (fun y => c y β€’ f) (c'.smulRight f) s x := by simpa only [smul_zero, zero_add] using hc.smul (hasFDerivWithinAt_const f x s) #align has_fderiv_within_at.smul_const HasFDerivWithinAt.smul_const @[fun_prop]
Mathlib/Analysis/Calculus/FDeriv/Mul.lean
319
321
theorem HasFDerivAt.smul_const (hc : HasFDerivAt c c' x) (f : F) : HasFDerivAt (fun y => c y β€’ f) (c'.smulRight f) x := by
simpa only [smul_zero, zero_add] using hc.smul (hasFDerivAt_const f x)
1,605
import Mathlib.Analysis.Calculus.FDeriv.Bilinear #align_import analysis.calculus.fderiv.mul from "leanprover-community/mathlib"@"d608fc5d4e69d4cc21885913fb573a88b0deb521" open scoped Classical open Filter Asymptotics ContinuousLinearMap Set Metric Topology NNReal ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section Mul variable {𝔸 𝔸' : Type*} [NormedRing 𝔸] [NormedCommRing 𝔸'] [NormedAlgebra π•œ 𝔸] [NormedAlgebra π•œ 𝔸'] {a b : E β†’ 𝔸} {a' b' : E β†’L[π•œ] 𝔸} {c d : E β†’ 𝔸'} {c' d' : E β†’L[π•œ] 𝔸'} @[fun_prop] theorem HasStrictFDerivAt.mul' {x : E} (ha : HasStrictFDerivAt a a' x) (hb : HasStrictFDerivAt b b' x) : HasStrictFDerivAt (fun y => a y * b y) (a x β€’ b' + a'.smulRight (b x)) x := ((ContinuousLinearMap.mul π•œ 𝔸).isBoundedBilinearMap.hasStrictFDerivAt (a x, b x)).comp x (ha.prod hb) #align has_strict_fderiv_at.mul' HasStrictFDerivAt.mul' @[fun_prop]
Mathlib/Analysis/Calculus/FDeriv/Mul.lean
376
380
theorem HasStrictFDerivAt.mul (hc : HasStrictFDerivAt c c' x) (hd : HasStrictFDerivAt d d' x) : HasStrictFDerivAt (fun y => c y * d y) (c x β€’ d' + d x β€’ c') x := by
convert hc.mul' hd ext z apply mul_comm
1,605
import Mathlib.Analysis.Calculus.FDeriv.Bilinear #align_import analysis.calculus.fderiv.mul from "leanprover-community/mathlib"@"d608fc5d4e69d4cc21885913fb573a88b0deb521" open scoped Classical open Filter Asymptotics ContinuousLinearMap Set Metric Topology NNReal ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section Mul variable {𝔸 𝔸' : Type*} [NormedRing 𝔸] [NormedCommRing 𝔸'] [NormedAlgebra π•œ 𝔸] [NormedAlgebra π•œ 𝔸'] {a b : E β†’ 𝔸} {a' b' : E β†’L[π•œ] 𝔸} {c d : E β†’ 𝔸'} {c' d' : E β†’L[π•œ] 𝔸'} @[fun_prop] theorem HasStrictFDerivAt.mul' {x : E} (ha : HasStrictFDerivAt a a' x) (hb : HasStrictFDerivAt b b' x) : HasStrictFDerivAt (fun y => a y * b y) (a x β€’ b' + a'.smulRight (b x)) x := ((ContinuousLinearMap.mul π•œ 𝔸).isBoundedBilinearMap.hasStrictFDerivAt (a x, b x)).comp x (ha.prod hb) #align has_strict_fderiv_at.mul' HasStrictFDerivAt.mul' @[fun_prop] theorem HasStrictFDerivAt.mul (hc : HasStrictFDerivAt c c' x) (hd : HasStrictFDerivAt d d' x) : HasStrictFDerivAt (fun y => c y * d y) (c x β€’ d' + d x β€’ c') x := by convert hc.mul' hd ext z apply mul_comm #align has_strict_fderiv_at.mul HasStrictFDerivAt.mul @[fun_prop] theorem HasFDerivWithinAt.mul' (ha : HasFDerivWithinAt a a' s x) (hb : HasFDerivWithinAt b b' s x) : HasFDerivWithinAt (fun y => a y * b y) (a x β€’ b' + a'.smulRight (b x)) s x := ((ContinuousLinearMap.mul π•œ 𝔸).isBoundedBilinearMap.hasFDerivAt (a x, b x)).comp_hasFDerivWithinAt x (ha.prod hb) #align has_fderiv_within_at.mul' HasFDerivWithinAt.mul' @[fun_prop]
Mathlib/Analysis/Calculus/FDeriv/Mul.lean
391
395
theorem HasFDerivWithinAt.mul (hc : HasFDerivWithinAt c c' s x) (hd : HasFDerivWithinAt d d' s x) : HasFDerivWithinAt (fun y => c y * d y) (c x β€’ d' + d x β€’ c') s x := by
convert hc.mul' hd ext z apply mul_comm
1,605
import Mathlib.Analysis.Calculus.FDeriv.Bilinear #align_import analysis.calculus.fderiv.mul from "leanprover-community/mathlib"@"d608fc5d4e69d4cc21885913fb573a88b0deb521" open scoped Classical open Filter Asymptotics ContinuousLinearMap Set Metric Topology NNReal ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} section Mul variable {𝔸 𝔸' : Type*} [NormedRing 𝔸] [NormedCommRing 𝔸'] [NormedAlgebra π•œ 𝔸] [NormedAlgebra π•œ 𝔸'] {a b : E β†’ 𝔸} {a' b' : E β†’L[π•œ] 𝔸} {c d : E β†’ 𝔸'} {c' d' : E β†’L[π•œ] 𝔸'} @[fun_prop] theorem HasStrictFDerivAt.mul' {x : E} (ha : HasStrictFDerivAt a a' x) (hb : HasStrictFDerivAt b b' x) : HasStrictFDerivAt (fun y => a y * b y) (a x β€’ b' + a'.smulRight (b x)) x := ((ContinuousLinearMap.mul π•œ 𝔸).isBoundedBilinearMap.hasStrictFDerivAt (a x, b x)).comp x (ha.prod hb) #align has_strict_fderiv_at.mul' HasStrictFDerivAt.mul' @[fun_prop] theorem HasStrictFDerivAt.mul (hc : HasStrictFDerivAt c c' x) (hd : HasStrictFDerivAt d d' x) : HasStrictFDerivAt (fun y => c y * d y) (c x β€’ d' + d x β€’ c') x := by convert hc.mul' hd ext z apply mul_comm #align has_strict_fderiv_at.mul HasStrictFDerivAt.mul @[fun_prop] theorem HasFDerivWithinAt.mul' (ha : HasFDerivWithinAt a a' s x) (hb : HasFDerivWithinAt b b' s x) : HasFDerivWithinAt (fun y => a y * b y) (a x β€’ b' + a'.smulRight (b x)) s x := ((ContinuousLinearMap.mul π•œ 𝔸).isBoundedBilinearMap.hasFDerivAt (a x, b x)).comp_hasFDerivWithinAt x (ha.prod hb) #align has_fderiv_within_at.mul' HasFDerivWithinAt.mul' @[fun_prop] theorem HasFDerivWithinAt.mul (hc : HasFDerivWithinAt c c' s x) (hd : HasFDerivWithinAt d d' s x) : HasFDerivWithinAt (fun y => c y * d y) (c x β€’ d' + d x β€’ c') s x := by convert hc.mul' hd ext z apply mul_comm #align has_fderiv_within_at.mul HasFDerivWithinAt.mul @[fun_prop] theorem HasFDerivAt.mul' (ha : HasFDerivAt a a' x) (hb : HasFDerivAt b b' x) : HasFDerivAt (fun y => a y * b y) (a x β€’ b' + a'.smulRight (b x)) x := ((ContinuousLinearMap.mul π•œ 𝔸).isBoundedBilinearMap.hasFDerivAt (a x, b x)).comp x (ha.prod hb) #align has_fderiv_at.mul' HasFDerivAt.mul' @[fun_prop]
Mathlib/Analysis/Calculus/FDeriv/Mul.lean
405
409
theorem HasFDerivAt.mul (hc : HasFDerivAt c c' x) (hd : HasFDerivAt d d' x) : HasFDerivAt (fun y => c y * d y) (c x β€’ d' + d x β€’ c') x := by
convert hc.mul' hd ext z apply mul_comm
1,605
import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.equiv from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} namespace ContinuousLinearEquiv variable (iso : E ≃L[π•œ] F) @[fun_prop] protected theorem hasStrictFDerivAt : HasStrictFDerivAt iso (iso : E β†’L[π•œ] F) x := iso.toContinuousLinearMap.hasStrictFDerivAt #align continuous_linear_equiv.has_strict_fderiv_at ContinuousLinearEquiv.hasStrictFDerivAt @[fun_prop] protected theorem hasFDerivWithinAt : HasFDerivWithinAt iso (iso : E β†’L[π•œ] F) s x := iso.toContinuousLinearMap.hasFDerivWithinAt #align continuous_linear_equiv.has_fderiv_within_at ContinuousLinearEquiv.hasFDerivWithinAt @[fun_prop] protected theorem hasFDerivAt : HasFDerivAt iso (iso : E β†’L[π•œ] F) x := iso.toContinuousLinearMap.hasFDerivAtFilter #align continuous_linear_equiv.has_fderiv_at ContinuousLinearEquiv.hasFDerivAt @[fun_prop] protected theorem differentiableAt : DifferentiableAt π•œ iso x := iso.hasFDerivAt.differentiableAt #align continuous_linear_equiv.differentiable_at ContinuousLinearEquiv.differentiableAt @[fun_prop] protected theorem differentiableWithinAt : DifferentiableWithinAt π•œ iso s x := iso.differentiableAt.differentiableWithinAt #align continuous_linear_equiv.differentiable_within_at ContinuousLinearEquiv.differentiableWithinAt protected theorem fderiv : fderiv π•œ iso x = iso := iso.hasFDerivAt.fderiv #align continuous_linear_equiv.fderiv ContinuousLinearEquiv.fderiv protected theorem fderivWithin (hxs : UniqueDiffWithinAt π•œ s x) : fderivWithin π•œ iso s x = iso := iso.toContinuousLinearMap.fderivWithin hxs #align continuous_linear_equiv.fderiv_within ContinuousLinearEquiv.fderivWithin @[fun_prop] protected theorem differentiable : Differentiable π•œ iso := fun _ => iso.differentiableAt #align continuous_linear_equiv.differentiable ContinuousLinearEquiv.differentiable @[fun_prop] protected theorem differentiableOn : DifferentiableOn π•œ iso s := iso.differentiable.differentiableOn #align continuous_linear_equiv.differentiable_on ContinuousLinearEquiv.differentiableOn
Mathlib/Analysis/Calculus/FDeriv/Equiv.lean
95
101
theorem comp_differentiableWithinAt_iff {f : G β†’ E} {s : Set G} {x : G} : DifferentiableWithinAt π•œ (iso ∘ f) s x ↔ DifferentiableWithinAt π•œ f s x := by
refine ⟨fun H => ?_, fun H => iso.differentiable.differentiableAt.comp_differentiableWithinAt x H⟩ have : DifferentiableWithinAt π•œ (iso.symm ∘ iso ∘ f) s x := iso.symm.differentiable.differentiableAt.comp_differentiableWithinAt x H rwa [← Function.comp.assoc iso.symm iso f, iso.symm_comp_self] at this
1,606
import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.equiv from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} namespace ContinuousLinearEquiv variable (iso : E ≃L[π•œ] F) @[fun_prop] protected theorem hasStrictFDerivAt : HasStrictFDerivAt iso (iso : E β†’L[π•œ] F) x := iso.toContinuousLinearMap.hasStrictFDerivAt #align continuous_linear_equiv.has_strict_fderiv_at ContinuousLinearEquiv.hasStrictFDerivAt @[fun_prop] protected theorem hasFDerivWithinAt : HasFDerivWithinAt iso (iso : E β†’L[π•œ] F) s x := iso.toContinuousLinearMap.hasFDerivWithinAt #align continuous_linear_equiv.has_fderiv_within_at ContinuousLinearEquiv.hasFDerivWithinAt @[fun_prop] protected theorem hasFDerivAt : HasFDerivAt iso (iso : E β†’L[π•œ] F) x := iso.toContinuousLinearMap.hasFDerivAtFilter #align continuous_linear_equiv.has_fderiv_at ContinuousLinearEquiv.hasFDerivAt @[fun_prop] protected theorem differentiableAt : DifferentiableAt π•œ iso x := iso.hasFDerivAt.differentiableAt #align continuous_linear_equiv.differentiable_at ContinuousLinearEquiv.differentiableAt @[fun_prop] protected theorem differentiableWithinAt : DifferentiableWithinAt π•œ iso s x := iso.differentiableAt.differentiableWithinAt #align continuous_linear_equiv.differentiable_within_at ContinuousLinearEquiv.differentiableWithinAt protected theorem fderiv : fderiv π•œ iso x = iso := iso.hasFDerivAt.fderiv #align continuous_linear_equiv.fderiv ContinuousLinearEquiv.fderiv protected theorem fderivWithin (hxs : UniqueDiffWithinAt π•œ s x) : fderivWithin π•œ iso s x = iso := iso.toContinuousLinearMap.fderivWithin hxs #align continuous_linear_equiv.fderiv_within ContinuousLinearEquiv.fderivWithin @[fun_prop] protected theorem differentiable : Differentiable π•œ iso := fun _ => iso.differentiableAt #align continuous_linear_equiv.differentiable ContinuousLinearEquiv.differentiable @[fun_prop] protected theorem differentiableOn : DifferentiableOn π•œ iso s := iso.differentiable.differentiableOn #align continuous_linear_equiv.differentiable_on ContinuousLinearEquiv.differentiableOn theorem comp_differentiableWithinAt_iff {f : G β†’ E} {s : Set G} {x : G} : DifferentiableWithinAt π•œ (iso ∘ f) s x ↔ DifferentiableWithinAt π•œ f s x := by refine ⟨fun H => ?_, fun H => iso.differentiable.differentiableAt.comp_differentiableWithinAt x H⟩ have : DifferentiableWithinAt π•œ (iso.symm ∘ iso ∘ f) s x := iso.symm.differentiable.differentiableAt.comp_differentiableWithinAt x H rwa [← Function.comp.assoc iso.symm iso f, iso.symm_comp_self] at this #align continuous_linear_equiv.comp_differentiable_within_at_iff ContinuousLinearEquiv.comp_differentiableWithinAt_iff
Mathlib/Analysis/Calculus/FDeriv/Equiv.lean
104
107
theorem comp_differentiableAt_iff {f : G β†’ E} {x : G} : DifferentiableAt π•œ (iso ∘ f) x ↔ DifferentiableAt π•œ f x := by
rw [← differentiableWithinAt_univ, ← differentiableWithinAt_univ, iso.comp_differentiableWithinAt_iff]
1,606
import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.equiv from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} namespace ContinuousLinearEquiv variable (iso : E ≃L[π•œ] F) @[fun_prop] protected theorem hasStrictFDerivAt : HasStrictFDerivAt iso (iso : E β†’L[π•œ] F) x := iso.toContinuousLinearMap.hasStrictFDerivAt #align continuous_linear_equiv.has_strict_fderiv_at ContinuousLinearEquiv.hasStrictFDerivAt @[fun_prop] protected theorem hasFDerivWithinAt : HasFDerivWithinAt iso (iso : E β†’L[π•œ] F) s x := iso.toContinuousLinearMap.hasFDerivWithinAt #align continuous_linear_equiv.has_fderiv_within_at ContinuousLinearEquiv.hasFDerivWithinAt @[fun_prop] protected theorem hasFDerivAt : HasFDerivAt iso (iso : E β†’L[π•œ] F) x := iso.toContinuousLinearMap.hasFDerivAtFilter #align continuous_linear_equiv.has_fderiv_at ContinuousLinearEquiv.hasFDerivAt @[fun_prop] protected theorem differentiableAt : DifferentiableAt π•œ iso x := iso.hasFDerivAt.differentiableAt #align continuous_linear_equiv.differentiable_at ContinuousLinearEquiv.differentiableAt @[fun_prop] protected theorem differentiableWithinAt : DifferentiableWithinAt π•œ iso s x := iso.differentiableAt.differentiableWithinAt #align continuous_linear_equiv.differentiable_within_at ContinuousLinearEquiv.differentiableWithinAt protected theorem fderiv : fderiv π•œ iso x = iso := iso.hasFDerivAt.fderiv #align continuous_linear_equiv.fderiv ContinuousLinearEquiv.fderiv protected theorem fderivWithin (hxs : UniqueDiffWithinAt π•œ s x) : fderivWithin π•œ iso s x = iso := iso.toContinuousLinearMap.fderivWithin hxs #align continuous_linear_equiv.fderiv_within ContinuousLinearEquiv.fderivWithin @[fun_prop] protected theorem differentiable : Differentiable π•œ iso := fun _ => iso.differentiableAt #align continuous_linear_equiv.differentiable ContinuousLinearEquiv.differentiable @[fun_prop] protected theorem differentiableOn : DifferentiableOn π•œ iso s := iso.differentiable.differentiableOn #align continuous_linear_equiv.differentiable_on ContinuousLinearEquiv.differentiableOn theorem comp_differentiableWithinAt_iff {f : G β†’ E} {s : Set G} {x : G} : DifferentiableWithinAt π•œ (iso ∘ f) s x ↔ DifferentiableWithinAt π•œ f s x := by refine ⟨fun H => ?_, fun H => iso.differentiable.differentiableAt.comp_differentiableWithinAt x H⟩ have : DifferentiableWithinAt π•œ (iso.symm ∘ iso ∘ f) s x := iso.symm.differentiable.differentiableAt.comp_differentiableWithinAt x H rwa [← Function.comp.assoc iso.symm iso f, iso.symm_comp_self] at this #align continuous_linear_equiv.comp_differentiable_within_at_iff ContinuousLinearEquiv.comp_differentiableWithinAt_iff theorem comp_differentiableAt_iff {f : G β†’ E} {x : G} : DifferentiableAt π•œ (iso ∘ f) x ↔ DifferentiableAt π•œ f x := by rw [← differentiableWithinAt_univ, ← differentiableWithinAt_univ, iso.comp_differentiableWithinAt_iff] #align continuous_linear_equiv.comp_differentiable_at_iff ContinuousLinearEquiv.comp_differentiableAt_iff
Mathlib/Analysis/Calculus/FDeriv/Equiv.lean
110
113
theorem comp_differentiableOn_iff {f : G β†’ E} {s : Set G} : DifferentiableOn π•œ (iso ∘ f) s ↔ DifferentiableOn π•œ f s := by
rw [DifferentiableOn, DifferentiableOn] simp only [iso.comp_differentiableWithinAt_iff]
1,606
import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.equiv from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} namespace ContinuousLinearEquiv variable (iso : E ≃L[π•œ] F) @[fun_prop] protected theorem hasStrictFDerivAt : HasStrictFDerivAt iso (iso : E β†’L[π•œ] F) x := iso.toContinuousLinearMap.hasStrictFDerivAt #align continuous_linear_equiv.has_strict_fderiv_at ContinuousLinearEquiv.hasStrictFDerivAt @[fun_prop] protected theorem hasFDerivWithinAt : HasFDerivWithinAt iso (iso : E β†’L[π•œ] F) s x := iso.toContinuousLinearMap.hasFDerivWithinAt #align continuous_linear_equiv.has_fderiv_within_at ContinuousLinearEquiv.hasFDerivWithinAt @[fun_prop] protected theorem hasFDerivAt : HasFDerivAt iso (iso : E β†’L[π•œ] F) x := iso.toContinuousLinearMap.hasFDerivAtFilter #align continuous_linear_equiv.has_fderiv_at ContinuousLinearEquiv.hasFDerivAt @[fun_prop] protected theorem differentiableAt : DifferentiableAt π•œ iso x := iso.hasFDerivAt.differentiableAt #align continuous_linear_equiv.differentiable_at ContinuousLinearEquiv.differentiableAt @[fun_prop] protected theorem differentiableWithinAt : DifferentiableWithinAt π•œ iso s x := iso.differentiableAt.differentiableWithinAt #align continuous_linear_equiv.differentiable_within_at ContinuousLinearEquiv.differentiableWithinAt protected theorem fderiv : fderiv π•œ iso x = iso := iso.hasFDerivAt.fderiv #align continuous_linear_equiv.fderiv ContinuousLinearEquiv.fderiv protected theorem fderivWithin (hxs : UniqueDiffWithinAt π•œ s x) : fderivWithin π•œ iso s x = iso := iso.toContinuousLinearMap.fderivWithin hxs #align continuous_linear_equiv.fderiv_within ContinuousLinearEquiv.fderivWithin @[fun_prop] protected theorem differentiable : Differentiable π•œ iso := fun _ => iso.differentiableAt #align continuous_linear_equiv.differentiable ContinuousLinearEquiv.differentiable @[fun_prop] protected theorem differentiableOn : DifferentiableOn π•œ iso s := iso.differentiable.differentiableOn #align continuous_linear_equiv.differentiable_on ContinuousLinearEquiv.differentiableOn theorem comp_differentiableWithinAt_iff {f : G β†’ E} {s : Set G} {x : G} : DifferentiableWithinAt π•œ (iso ∘ f) s x ↔ DifferentiableWithinAt π•œ f s x := by refine ⟨fun H => ?_, fun H => iso.differentiable.differentiableAt.comp_differentiableWithinAt x H⟩ have : DifferentiableWithinAt π•œ (iso.symm ∘ iso ∘ f) s x := iso.symm.differentiable.differentiableAt.comp_differentiableWithinAt x H rwa [← Function.comp.assoc iso.symm iso f, iso.symm_comp_self] at this #align continuous_linear_equiv.comp_differentiable_within_at_iff ContinuousLinearEquiv.comp_differentiableWithinAt_iff theorem comp_differentiableAt_iff {f : G β†’ E} {x : G} : DifferentiableAt π•œ (iso ∘ f) x ↔ DifferentiableAt π•œ f x := by rw [← differentiableWithinAt_univ, ← differentiableWithinAt_univ, iso.comp_differentiableWithinAt_iff] #align continuous_linear_equiv.comp_differentiable_at_iff ContinuousLinearEquiv.comp_differentiableAt_iff theorem comp_differentiableOn_iff {f : G β†’ E} {s : Set G} : DifferentiableOn π•œ (iso ∘ f) s ↔ DifferentiableOn π•œ f s := by rw [DifferentiableOn, DifferentiableOn] simp only [iso.comp_differentiableWithinAt_iff] #align continuous_linear_equiv.comp_differentiable_on_iff ContinuousLinearEquiv.comp_differentiableOn_iff
Mathlib/Analysis/Calculus/FDeriv/Equiv.lean
116
118
theorem comp_differentiable_iff {f : G β†’ E} : Differentiable π•œ (iso ∘ f) ↔ Differentiable π•œ f := by
rw [← differentiableOn_univ, ← differentiableOn_univ] exact iso.comp_differentiableOn_iff
1,606
import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.equiv from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} namespace ContinuousLinearEquiv variable (iso : E ≃L[π•œ] F) @[fun_prop] protected theorem hasStrictFDerivAt : HasStrictFDerivAt iso (iso : E β†’L[π•œ] F) x := iso.toContinuousLinearMap.hasStrictFDerivAt #align continuous_linear_equiv.has_strict_fderiv_at ContinuousLinearEquiv.hasStrictFDerivAt @[fun_prop] protected theorem hasFDerivWithinAt : HasFDerivWithinAt iso (iso : E β†’L[π•œ] F) s x := iso.toContinuousLinearMap.hasFDerivWithinAt #align continuous_linear_equiv.has_fderiv_within_at ContinuousLinearEquiv.hasFDerivWithinAt @[fun_prop] protected theorem hasFDerivAt : HasFDerivAt iso (iso : E β†’L[π•œ] F) x := iso.toContinuousLinearMap.hasFDerivAtFilter #align continuous_linear_equiv.has_fderiv_at ContinuousLinearEquiv.hasFDerivAt @[fun_prop] protected theorem differentiableAt : DifferentiableAt π•œ iso x := iso.hasFDerivAt.differentiableAt #align continuous_linear_equiv.differentiable_at ContinuousLinearEquiv.differentiableAt @[fun_prop] protected theorem differentiableWithinAt : DifferentiableWithinAt π•œ iso s x := iso.differentiableAt.differentiableWithinAt #align continuous_linear_equiv.differentiable_within_at ContinuousLinearEquiv.differentiableWithinAt protected theorem fderiv : fderiv π•œ iso x = iso := iso.hasFDerivAt.fderiv #align continuous_linear_equiv.fderiv ContinuousLinearEquiv.fderiv protected theorem fderivWithin (hxs : UniqueDiffWithinAt π•œ s x) : fderivWithin π•œ iso s x = iso := iso.toContinuousLinearMap.fderivWithin hxs #align continuous_linear_equiv.fderiv_within ContinuousLinearEquiv.fderivWithin @[fun_prop] protected theorem differentiable : Differentiable π•œ iso := fun _ => iso.differentiableAt #align continuous_linear_equiv.differentiable ContinuousLinearEquiv.differentiable @[fun_prop] protected theorem differentiableOn : DifferentiableOn π•œ iso s := iso.differentiable.differentiableOn #align continuous_linear_equiv.differentiable_on ContinuousLinearEquiv.differentiableOn theorem comp_differentiableWithinAt_iff {f : G β†’ E} {s : Set G} {x : G} : DifferentiableWithinAt π•œ (iso ∘ f) s x ↔ DifferentiableWithinAt π•œ f s x := by refine ⟨fun H => ?_, fun H => iso.differentiable.differentiableAt.comp_differentiableWithinAt x H⟩ have : DifferentiableWithinAt π•œ (iso.symm ∘ iso ∘ f) s x := iso.symm.differentiable.differentiableAt.comp_differentiableWithinAt x H rwa [← Function.comp.assoc iso.symm iso f, iso.symm_comp_self] at this #align continuous_linear_equiv.comp_differentiable_within_at_iff ContinuousLinearEquiv.comp_differentiableWithinAt_iff theorem comp_differentiableAt_iff {f : G β†’ E} {x : G} : DifferentiableAt π•œ (iso ∘ f) x ↔ DifferentiableAt π•œ f x := by rw [← differentiableWithinAt_univ, ← differentiableWithinAt_univ, iso.comp_differentiableWithinAt_iff] #align continuous_linear_equiv.comp_differentiable_at_iff ContinuousLinearEquiv.comp_differentiableAt_iff theorem comp_differentiableOn_iff {f : G β†’ E} {s : Set G} : DifferentiableOn π•œ (iso ∘ f) s ↔ DifferentiableOn π•œ f s := by rw [DifferentiableOn, DifferentiableOn] simp only [iso.comp_differentiableWithinAt_iff] #align continuous_linear_equiv.comp_differentiable_on_iff ContinuousLinearEquiv.comp_differentiableOn_iff theorem comp_differentiable_iff {f : G β†’ E} : Differentiable π•œ (iso ∘ f) ↔ Differentiable π•œ f := by rw [← differentiableOn_univ, ← differentiableOn_univ] exact iso.comp_differentiableOn_iff #align continuous_linear_equiv.comp_differentiable_iff ContinuousLinearEquiv.comp_differentiable_iff
Mathlib/Analysis/Calculus/FDeriv/Equiv.lean
121
130
theorem comp_hasFDerivWithinAt_iff {f : G β†’ E} {s : Set G} {x : G} {f' : G β†’L[π•œ] E} : HasFDerivWithinAt (iso ∘ f) ((iso : E β†’L[π•œ] F).comp f') s x ↔ HasFDerivWithinAt f f' s x := by
refine ⟨fun H => ?_, fun H => iso.hasFDerivAt.comp_hasFDerivWithinAt x H⟩ have A : f = iso.symm ∘ iso ∘ f := by rw [← Function.comp.assoc, iso.symm_comp_self] rfl have B : f' = (iso.symm : F β†’L[π•œ] E).comp ((iso : E β†’L[π•œ] F).comp f') := by rw [← ContinuousLinearMap.comp_assoc, iso.coe_symm_comp_coe, ContinuousLinearMap.id_comp] rw [A, B] exact iso.symm.hasFDerivAt.comp_hasFDerivWithinAt x H
1,606
import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.equiv from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} namespace ContinuousLinearEquiv variable (iso : E ≃L[π•œ] F) @[fun_prop] protected theorem hasStrictFDerivAt : HasStrictFDerivAt iso (iso : E β†’L[π•œ] F) x := iso.toContinuousLinearMap.hasStrictFDerivAt #align continuous_linear_equiv.has_strict_fderiv_at ContinuousLinearEquiv.hasStrictFDerivAt @[fun_prop] protected theorem hasFDerivWithinAt : HasFDerivWithinAt iso (iso : E β†’L[π•œ] F) s x := iso.toContinuousLinearMap.hasFDerivWithinAt #align continuous_linear_equiv.has_fderiv_within_at ContinuousLinearEquiv.hasFDerivWithinAt @[fun_prop] protected theorem hasFDerivAt : HasFDerivAt iso (iso : E β†’L[π•œ] F) x := iso.toContinuousLinearMap.hasFDerivAtFilter #align continuous_linear_equiv.has_fderiv_at ContinuousLinearEquiv.hasFDerivAt @[fun_prop] protected theorem differentiableAt : DifferentiableAt π•œ iso x := iso.hasFDerivAt.differentiableAt #align continuous_linear_equiv.differentiable_at ContinuousLinearEquiv.differentiableAt @[fun_prop] protected theorem differentiableWithinAt : DifferentiableWithinAt π•œ iso s x := iso.differentiableAt.differentiableWithinAt #align continuous_linear_equiv.differentiable_within_at ContinuousLinearEquiv.differentiableWithinAt protected theorem fderiv : fderiv π•œ iso x = iso := iso.hasFDerivAt.fderiv #align continuous_linear_equiv.fderiv ContinuousLinearEquiv.fderiv protected theorem fderivWithin (hxs : UniqueDiffWithinAt π•œ s x) : fderivWithin π•œ iso s x = iso := iso.toContinuousLinearMap.fderivWithin hxs #align continuous_linear_equiv.fderiv_within ContinuousLinearEquiv.fderivWithin @[fun_prop] protected theorem differentiable : Differentiable π•œ iso := fun _ => iso.differentiableAt #align continuous_linear_equiv.differentiable ContinuousLinearEquiv.differentiable @[fun_prop] protected theorem differentiableOn : DifferentiableOn π•œ iso s := iso.differentiable.differentiableOn #align continuous_linear_equiv.differentiable_on ContinuousLinearEquiv.differentiableOn theorem comp_differentiableWithinAt_iff {f : G β†’ E} {s : Set G} {x : G} : DifferentiableWithinAt π•œ (iso ∘ f) s x ↔ DifferentiableWithinAt π•œ f s x := by refine ⟨fun H => ?_, fun H => iso.differentiable.differentiableAt.comp_differentiableWithinAt x H⟩ have : DifferentiableWithinAt π•œ (iso.symm ∘ iso ∘ f) s x := iso.symm.differentiable.differentiableAt.comp_differentiableWithinAt x H rwa [← Function.comp.assoc iso.symm iso f, iso.symm_comp_self] at this #align continuous_linear_equiv.comp_differentiable_within_at_iff ContinuousLinearEquiv.comp_differentiableWithinAt_iff theorem comp_differentiableAt_iff {f : G β†’ E} {x : G} : DifferentiableAt π•œ (iso ∘ f) x ↔ DifferentiableAt π•œ f x := by rw [← differentiableWithinAt_univ, ← differentiableWithinAt_univ, iso.comp_differentiableWithinAt_iff] #align continuous_linear_equiv.comp_differentiable_at_iff ContinuousLinearEquiv.comp_differentiableAt_iff theorem comp_differentiableOn_iff {f : G β†’ E} {s : Set G} : DifferentiableOn π•œ (iso ∘ f) s ↔ DifferentiableOn π•œ f s := by rw [DifferentiableOn, DifferentiableOn] simp only [iso.comp_differentiableWithinAt_iff] #align continuous_linear_equiv.comp_differentiable_on_iff ContinuousLinearEquiv.comp_differentiableOn_iff theorem comp_differentiable_iff {f : G β†’ E} : Differentiable π•œ (iso ∘ f) ↔ Differentiable π•œ f := by rw [← differentiableOn_univ, ← differentiableOn_univ] exact iso.comp_differentiableOn_iff #align continuous_linear_equiv.comp_differentiable_iff ContinuousLinearEquiv.comp_differentiable_iff theorem comp_hasFDerivWithinAt_iff {f : G β†’ E} {s : Set G} {x : G} {f' : G β†’L[π•œ] E} : HasFDerivWithinAt (iso ∘ f) ((iso : E β†’L[π•œ] F).comp f') s x ↔ HasFDerivWithinAt f f' s x := by refine ⟨fun H => ?_, fun H => iso.hasFDerivAt.comp_hasFDerivWithinAt x H⟩ have A : f = iso.symm ∘ iso ∘ f := by rw [← Function.comp.assoc, iso.symm_comp_self] rfl have B : f' = (iso.symm : F β†’L[π•œ] E).comp ((iso : E β†’L[π•œ] F).comp f') := by rw [← ContinuousLinearMap.comp_assoc, iso.coe_symm_comp_coe, ContinuousLinearMap.id_comp] rw [A, B] exact iso.symm.hasFDerivAt.comp_hasFDerivWithinAt x H #align continuous_linear_equiv.comp_has_fderiv_within_at_iff ContinuousLinearEquiv.comp_hasFDerivWithinAt_iff
Mathlib/Analysis/Calculus/FDeriv/Equiv.lean
133
137
theorem comp_hasStrictFDerivAt_iff {f : G β†’ E} {x : G} {f' : G β†’L[π•œ] E} : HasStrictFDerivAt (iso ∘ f) ((iso : E β†’L[π•œ] F).comp f') x ↔ HasStrictFDerivAt f f' x := by
refine ⟨fun H => ?_, fun H => iso.hasStrictFDerivAt.comp x H⟩ convert iso.symm.hasStrictFDerivAt.comp x H using 1 <;> ext z <;> apply (iso.symm_apply_apply _).symm
1,606
import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.equiv from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E}
Mathlib/Analysis/Calculus/FDeriv/Equiv.lean
391
410
theorem HasStrictFDerivAt.of_local_left_inverse {f : E β†’ F} {f' : E ≃L[π•œ] F} {g : F β†’ E} {a : F} (hg : ContinuousAt g a) (hf : HasStrictFDerivAt f (f' : E β†’L[π•œ] F) (g a)) (hfg : βˆ€αΆ  y in 𝓝 a, f (g y) = y) : HasStrictFDerivAt g (f'.symm : F β†’L[π•œ] E) a := by
replace hg := hg.prod_map' hg replace hfg := hfg.prod_mk_nhds hfg have : (fun p : F Γ— F => g p.1 - g p.2 - f'.symm (p.1 - p.2)) =O[𝓝 (a, a)] fun p : F Γ— F => f' (g p.1 - g p.2) - (p.1 - p.2) := by refine ((f'.symm : F β†’L[π•œ] E).isBigO_comp _ _).congr (fun x => ?_) fun _ => rfl simp refine this.trans_isLittleO ?_ clear this refine ((hf.comp_tendsto hg).symm.congr' (hfg.mono ?_) (eventually_of_forall fun _ => rfl)).trans_isBigO ?_ Β· rintro p ⟨hp1, hp2⟩ simp [hp1, hp2] Β· refine (hf.isBigO_sub_rev.comp_tendsto hg).congr' (eventually_of_forall fun _ => rfl) (hfg.mono ?_) rintro p ⟨hp1, hp2⟩ simp only [(Β· ∘ Β·), hp1, hp2]
1,606
import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.equiv from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} theorem HasStrictFDerivAt.of_local_left_inverse {f : E β†’ F} {f' : E ≃L[π•œ] F} {g : F β†’ E} {a : F} (hg : ContinuousAt g a) (hf : HasStrictFDerivAt f (f' : E β†’L[π•œ] F) (g a)) (hfg : βˆ€αΆ  y in 𝓝 a, f (g y) = y) : HasStrictFDerivAt g (f'.symm : F β†’L[π•œ] E) a := by replace hg := hg.prod_map' hg replace hfg := hfg.prod_mk_nhds hfg have : (fun p : F Γ— F => g p.1 - g p.2 - f'.symm (p.1 - p.2)) =O[𝓝 (a, a)] fun p : F Γ— F => f' (g p.1 - g p.2) - (p.1 - p.2) := by refine ((f'.symm : F β†’L[π•œ] E).isBigO_comp _ _).congr (fun x => ?_) fun _ => rfl simp refine this.trans_isLittleO ?_ clear this refine ((hf.comp_tendsto hg).symm.congr' (hfg.mono ?_) (eventually_of_forall fun _ => rfl)).trans_isBigO ?_ Β· rintro p ⟨hp1, hp2⟩ simp [hp1, hp2] Β· refine (hf.isBigO_sub_rev.comp_tendsto hg).congr' (eventually_of_forall fun _ => rfl) (hfg.mono ?_) rintro p ⟨hp1, hp2⟩ simp only [(Β· ∘ Β·), hp1, hp2] #align has_strict_fderiv_at.of_local_left_inverse HasStrictFDerivAt.of_local_left_inverse
Mathlib/Analysis/Calculus/FDeriv/Equiv.lean
418
433
theorem HasFDerivAt.of_local_left_inverse {f : E β†’ F} {f' : E ≃L[π•œ] F} {g : F β†’ E} {a : F} (hg : ContinuousAt g a) (hf : HasFDerivAt f (f' : E β†’L[π•œ] F) (g a)) (hfg : βˆ€αΆ  y in 𝓝 a, f (g y) = y) : HasFDerivAt g (f'.symm : F β†’L[π•œ] E) a := by
have : (fun x : F => g x - g a - f'.symm (x - a)) =O[𝓝 a] fun x : F => f' (g x - g a) - (x - a) := by refine ((f'.symm : F β†’L[π•œ] E).isBigO_comp _ _).congr (fun x => ?_) fun _ => rfl simp refine HasFDerivAtFilter.of_isLittleO <| this.trans_isLittleO ?_ clear this refine ((hf.isLittleO.comp_tendsto hg).symm.congr' (hfg.mono ?_) .rfl).trans_isBigO ?_ Β· intro p hp simp [hp, hfg.self_of_nhds] Β· refine ((hf.isBigO_sub_rev f'.antilipschitz).comp_tendsto hg).congr' (eventually_of_forall fun _ => rfl) (hfg.mono ?_) rintro p hp simp only [(Β· ∘ Β·), hp, hfg.self_of_nhds]
1,606
import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent import Mathlib.Analysis.Calculus.FDeriv.Linear import Mathlib.Analysis.Calculus.FDeriv.Comp #align_import analysis.calculus.fderiv.equiv from "leanprover-community/mathlib"@"e3fb84046afd187b710170887195d50bada934ee" open Filter Asymptotics ContinuousLinearMap Set Metric open scoped Classical open Topology NNReal Filter Asymptotics ENNReal noncomputable section section variable {π•œ : Type*} [NontriviallyNormedField π•œ] variable {E : Type*} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {F : Type*} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {G : Type*} [NormedAddCommGroup G] [NormedSpace π•œ G] variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace π•œ G'] variable {f fβ‚€ f₁ g : E β†’ F} variable {f' fβ‚€' f₁' g' : E β†’L[π•œ] F} variable (e : E β†’L[π•œ] F) variable {x : E} variable {s t : Set E} variable {L L₁ Lβ‚‚ : Filter E} theorem HasStrictFDerivAt.of_local_left_inverse {f : E β†’ F} {f' : E ≃L[π•œ] F} {g : F β†’ E} {a : F} (hg : ContinuousAt g a) (hf : HasStrictFDerivAt f (f' : E β†’L[π•œ] F) (g a)) (hfg : βˆ€αΆ  y in 𝓝 a, f (g y) = y) : HasStrictFDerivAt g (f'.symm : F β†’L[π•œ] E) a := by replace hg := hg.prod_map' hg replace hfg := hfg.prod_mk_nhds hfg have : (fun p : F Γ— F => g p.1 - g p.2 - f'.symm (p.1 - p.2)) =O[𝓝 (a, a)] fun p : F Γ— F => f' (g p.1 - g p.2) - (p.1 - p.2) := by refine ((f'.symm : F β†’L[π•œ] E).isBigO_comp _ _).congr (fun x => ?_) fun _ => rfl simp refine this.trans_isLittleO ?_ clear this refine ((hf.comp_tendsto hg).symm.congr' (hfg.mono ?_) (eventually_of_forall fun _ => rfl)).trans_isBigO ?_ Β· rintro p ⟨hp1, hp2⟩ simp [hp1, hp2] Β· refine (hf.isBigO_sub_rev.comp_tendsto hg).congr' (eventually_of_forall fun _ => rfl) (hfg.mono ?_) rintro p ⟨hp1, hp2⟩ simp only [(Β· ∘ Β·), hp1, hp2] #align has_strict_fderiv_at.of_local_left_inverse HasStrictFDerivAt.of_local_left_inverse theorem HasFDerivAt.of_local_left_inverse {f : E β†’ F} {f' : E ≃L[π•œ] F} {g : F β†’ E} {a : F} (hg : ContinuousAt g a) (hf : HasFDerivAt f (f' : E β†’L[π•œ] F) (g a)) (hfg : βˆ€αΆ  y in 𝓝 a, f (g y) = y) : HasFDerivAt g (f'.symm : F β†’L[π•œ] E) a := by have : (fun x : F => g x - g a - f'.symm (x - a)) =O[𝓝 a] fun x : F => f' (g x - g a) - (x - a) := by refine ((f'.symm : F β†’L[π•œ] E).isBigO_comp _ _).congr (fun x => ?_) fun _ => rfl simp refine HasFDerivAtFilter.of_isLittleO <| this.trans_isLittleO ?_ clear this refine ((hf.isLittleO.comp_tendsto hg).symm.congr' (hfg.mono ?_) .rfl).trans_isBigO ?_ Β· intro p hp simp [hp, hfg.self_of_nhds] Β· refine ((hf.isBigO_sub_rev f'.antilipschitz).comp_tendsto hg).congr' (eventually_of_forall fun _ => rfl) (hfg.mono ?_) rintro p hp simp only [(Β· ∘ Β·), hp, hfg.self_of_nhds] #align has_fderiv_at.of_local_left_inverse HasFDerivAt.of_local_left_inverse theorem PartialHomeomorph.hasStrictFDerivAt_symm (f : PartialHomeomorph E F) {f' : E ≃L[π•œ] F} {a : F} (ha : a ∈ f.target) (htff' : HasStrictFDerivAt f (f' : E β†’L[π•œ] F) (f.symm a)) : HasStrictFDerivAt f.symm (f'.symm : F β†’L[π•œ] E) a := htff'.of_local_left_inverse (f.symm.continuousAt ha) (f.eventually_right_inverse ha) #align local_homeomorph.has_strict_fderiv_at_symm PartialHomeomorph.hasStrictFDerivAt_symm theorem PartialHomeomorph.hasFDerivAt_symm (f : PartialHomeomorph E F) {f' : E ≃L[π•œ] F} {a : F} (ha : a ∈ f.target) (htff' : HasFDerivAt f (f' : E β†’L[π•œ] F) (f.symm a)) : HasFDerivAt f.symm (f'.symm : F β†’L[π•œ] E) a := htff'.of_local_left_inverse (f.symm.continuousAt ha) (f.eventually_right_inverse ha) #align local_homeomorph.has_fderiv_at_symm PartialHomeomorph.hasFDerivAt_symm
Mathlib/Analysis/Calculus/FDeriv/Equiv.lean
459
465
theorem HasFDerivWithinAt.eventually_ne (h : HasFDerivWithinAt f f' s x) (hf' : βˆƒ C, βˆ€ z, β€–zβ€– ≀ C * β€–f' zβ€–) : βˆ€αΆ  z in 𝓝[s \ {x}] x, f z β‰  f x := by
rw [nhdsWithin, diff_eq, ← inf_principal, ← inf_assoc, eventually_inf_principal] have A : (fun z => z - x) =O[𝓝[s] x] fun z => f' (z - x) := isBigO_iff.2 <| hf'.imp fun C hC => eventually_of_forall fun z => hC _ have : (fun z => f z - f x) ~[𝓝[s] x] fun z => f' (z - x) := h.isLittleO.trans_isBigO A simpa [not_imp_not, sub_eq_zero] using (A.trans this.isBigO_symm).eq_zero_imp
1,606
import Mathlib.Analysis.Calculus.FDeriv.Equiv import Mathlib.Analysis.Calculus.FormalMultilinearSeries #align_import analysis.calculus.cont_diff_def from "leanprover-community/mathlib"@"3a69562db5a458db8322b190ec8d9a8bbd8a5b14" noncomputable section open scoped Classical open NNReal Topology Filter local notation "∞" => (⊀ : β„•βˆž) open Set Fin Filter Function universe u uE uF uG uX variable {π•œ : Type u} [NontriviallyNormedField π•œ] {E : Type uE} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type uF} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type uG} [NormedAddCommGroup G] [NormedSpace π•œ G] {X : Type uX} [NormedAddCommGroup X] [NormedSpace π•œ X] {s s₁ t u : Set E} {f f₁ : E β†’ F} {g : F β†’ G} {x xβ‚€ : E} {c : F} {m n : β„•βˆž} {p : E β†’ FormalMultilinearSeries π•œ E F} structure HasFTaylorSeriesUpToOn (n : β„•βˆž) (f : E β†’ F) (p : E β†’ FormalMultilinearSeries π•œ E F) (s : Set E) : Prop where zero_eq : βˆ€ x ∈ s, (p x 0).uncurry0 = f x protected fderivWithin : βˆ€ m : β„•, (m : β„•βˆž) < n β†’ βˆ€ x ∈ s, HasFDerivWithinAt (p Β· m) (p x m.succ).curryLeft s x cont : βˆ€ m : β„•, (m : β„•βˆž) ≀ n β†’ ContinuousOn (p Β· m) s #align has_ftaylor_series_up_to_on HasFTaylorSeriesUpToOn
Mathlib/Analysis/Calculus/ContDiff/Defs.lean
196
199
theorem HasFTaylorSeriesUpToOn.zero_eq' (h : HasFTaylorSeriesUpToOn n f p s) {x : E} (hx : x ∈ s) : p x 0 = (continuousMultilinearCurryFin0 π•œ E F).symm (f x) := by
rw [← h.zero_eq x hx] exact (p x 0).uncurry0_curry0.symm
1,607
import Mathlib.Analysis.Calculus.FDeriv.Equiv import Mathlib.Analysis.Calculus.FormalMultilinearSeries #align_import analysis.calculus.cont_diff_def from "leanprover-community/mathlib"@"3a69562db5a458db8322b190ec8d9a8bbd8a5b14" noncomputable section open scoped Classical open NNReal Topology Filter local notation "∞" => (⊀ : β„•βˆž) open Set Fin Filter Function universe u uE uF uG uX variable {π•œ : Type u} [NontriviallyNormedField π•œ] {E : Type uE} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type uF} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type uG} [NormedAddCommGroup G] [NormedSpace π•œ G] {X : Type uX} [NormedAddCommGroup X] [NormedSpace π•œ X] {s s₁ t u : Set E} {f f₁ : E β†’ F} {g : F β†’ G} {x xβ‚€ : E} {c : F} {m n : β„•βˆž} {p : E β†’ FormalMultilinearSeries π•œ E F} structure HasFTaylorSeriesUpToOn (n : β„•βˆž) (f : E β†’ F) (p : E β†’ FormalMultilinearSeries π•œ E F) (s : Set E) : Prop where zero_eq : βˆ€ x ∈ s, (p x 0).uncurry0 = f x protected fderivWithin : βˆ€ m : β„•, (m : β„•βˆž) < n β†’ βˆ€ x ∈ s, HasFDerivWithinAt (p Β· m) (p x m.succ).curryLeft s x cont : βˆ€ m : β„•, (m : β„•βˆž) ≀ n β†’ ContinuousOn (p Β· m) s #align has_ftaylor_series_up_to_on HasFTaylorSeriesUpToOn theorem HasFTaylorSeriesUpToOn.zero_eq' (h : HasFTaylorSeriesUpToOn n f p s) {x : E} (hx : x ∈ s) : p x 0 = (continuousMultilinearCurryFin0 π•œ E F).symm (f x) := by rw [← h.zero_eq x hx] exact (p x 0).uncurry0_curry0.symm #align has_ftaylor_series_up_to_on.zero_eq' HasFTaylorSeriesUpToOn.zero_eq'
Mathlib/Analysis/Calculus/ContDiff/Defs.lean
204
208
theorem HasFTaylorSeriesUpToOn.congr (h : HasFTaylorSeriesUpToOn n f p s) (h₁ : βˆ€ x ∈ s, f₁ x = f x) : HasFTaylorSeriesUpToOn n f₁ p s := by
refine ⟨fun x hx => ?_, h.fderivWithin, h.cont⟩ rw [h₁ x hx] exact h.zero_eq x hx
1,607
import Mathlib.Analysis.Calculus.FDeriv.Equiv import Mathlib.Analysis.Calculus.FormalMultilinearSeries #align_import analysis.calculus.cont_diff_def from "leanprover-community/mathlib"@"3a69562db5a458db8322b190ec8d9a8bbd8a5b14" noncomputable section open scoped Classical open NNReal Topology Filter local notation "∞" => (⊀ : β„•βˆž) open Set Fin Filter Function universe u uE uF uG uX variable {π•œ : Type u} [NontriviallyNormedField π•œ] {E : Type uE} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type uF} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type uG} [NormedAddCommGroup G] [NormedSpace π•œ G] {X : Type uX} [NormedAddCommGroup X] [NormedSpace π•œ X] {s s₁ t u : Set E} {f f₁ : E β†’ F} {g : F β†’ G} {x xβ‚€ : E} {c : F} {m n : β„•βˆž} {p : E β†’ FormalMultilinearSeries π•œ E F} structure HasFTaylorSeriesUpToOn (n : β„•βˆž) (f : E β†’ F) (p : E β†’ FormalMultilinearSeries π•œ E F) (s : Set E) : Prop where zero_eq : βˆ€ x ∈ s, (p x 0).uncurry0 = f x protected fderivWithin : βˆ€ m : β„•, (m : β„•βˆž) < n β†’ βˆ€ x ∈ s, HasFDerivWithinAt (p Β· m) (p x m.succ).curryLeft s x cont : βˆ€ m : β„•, (m : β„•βˆž) ≀ n β†’ ContinuousOn (p Β· m) s #align has_ftaylor_series_up_to_on HasFTaylorSeriesUpToOn theorem HasFTaylorSeriesUpToOn.zero_eq' (h : HasFTaylorSeriesUpToOn n f p s) {x : E} (hx : x ∈ s) : p x 0 = (continuousMultilinearCurryFin0 π•œ E F).symm (f x) := by rw [← h.zero_eq x hx] exact (p x 0).uncurry0_curry0.symm #align has_ftaylor_series_up_to_on.zero_eq' HasFTaylorSeriesUpToOn.zero_eq' theorem HasFTaylorSeriesUpToOn.congr (h : HasFTaylorSeriesUpToOn n f p s) (h₁ : βˆ€ x ∈ s, f₁ x = f x) : HasFTaylorSeriesUpToOn n f₁ p s := by refine ⟨fun x hx => ?_, h.fderivWithin, h.cont⟩ rw [h₁ x hx] exact h.zero_eq x hx #align has_ftaylor_series_up_to_on.congr HasFTaylorSeriesUpToOn.congr theorem HasFTaylorSeriesUpToOn.mono (h : HasFTaylorSeriesUpToOn n f p s) {t : Set E} (hst : t βŠ† s) : HasFTaylorSeriesUpToOn n f p t := ⟨fun x hx => h.zero_eq x (hst hx), fun m hm x hx => (h.fderivWithin m hm x (hst hx)).mono hst, fun m hm => (h.cont m hm).mono hst⟩ #align has_ftaylor_series_up_to_on.mono HasFTaylorSeriesUpToOn.mono theorem HasFTaylorSeriesUpToOn.of_le (h : HasFTaylorSeriesUpToOn n f p s) (hmn : m ≀ n) : HasFTaylorSeriesUpToOn m f p s := ⟨h.zero_eq, fun k hk x hx => h.fderivWithin k (lt_of_lt_of_le hk hmn) x hx, fun k hk => h.cont k (le_trans hk hmn)⟩ #align has_ftaylor_series_up_to_on.of_le HasFTaylorSeriesUpToOn.of_le
Mathlib/Analysis/Calculus/ContDiff/Defs.lean
223
226
theorem HasFTaylorSeriesUpToOn.continuousOn (h : HasFTaylorSeriesUpToOn n f p s) : ContinuousOn f s := by
have := (h.cont 0 bot_le).congr fun x hx => (h.zero_eq' hx).symm rwa [← (continuousMultilinearCurryFin0 π•œ E F).symm.comp_continuousOn_iff]
1,607
import Mathlib.Analysis.Calculus.FDeriv.Equiv import Mathlib.Analysis.Calculus.FormalMultilinearSeries #align_import analysis.calculus.cont_diff_def from "leanprover-community/mathlib"@"3a69562db5a458db8322b190ec8d9a8bbd8a5b14" noncomputable section open scoped Classical open NNReal Topology Filter local notation "∞" => (⊀ : β„•βˆž) open Set Fin Filter Function universe u uE uF uG uX variable {π•œ : Type u} [NontriviallyNormedField π•œ] {E : Type uE} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type uF} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type uG} [NormedAddCommGroup G] [NormedSpace π•œ G] {X : Type uX} [NormedAddCommGroup X] [NormedSpace π•œ X] {s s₁ t u : Set E} {f f₁ : E β†’ F} {g : F β†’ G} {x xβ‚€ : E} {c : F} {m n : β„•βˆž} {p : E β†’ FormalMultilinearSeries π•œ E F} structure HasFTaylorSeriesUpToOn (n : β„•βˆž) (f : E β†’ F) (p : E β†’ FormalMultilinearSeries π•œ E F) (s : Set E) : Prop where zero_eq : βˆ€ x ∈ s, (p x 0).uncurry0 = f x protected fderivWithin : βˆ€ m : β„•, (m : β„•βˆž) < n β†’ βˆ€ x ∈ s, HasFDerivWithinAt (p Β· m) (p x m.succ).curryLeft s x cont : βˆ€ m : β„•, (m : β„•βˆž) ≀ n β†’ ContinuousOn (p Β· m) s #align has_ftaylor_series_up_to_on HasFTaylorSeriesUpToOn theorem HasFTaylorSeriesUpToOn.zero_eq' (h : HasFTaylorSeriesUpToOn n f p s) {x : E} (hx : x ∈ s) : p x 0 = (continuousMultilinearCurryFin0 π•œ E F).symm (f x) := by rw [← h.zero_eq x hx] exact (p x 0).uncurry0_curry0.symm #align has_ftaylor_series_up_to_on.zero_eq' HasFTaylorSeriesUpToOn.zero_eq' theorem HasFTaylorSeriesUpToOn.congr (h : HasFTaylorSeriesUpToOn n f p s) (h₁ : βˆ€ x ∈ s, f₁ x = f x) : HasFTaylorSeriesUpToOn n f₁ p s := by refine ⟨fun x hx => ?_, h.fderivWithin, h.cont⟩ rw [h₁ x hx] exact h.zero_eq x hx #align has_ftaylor_series_up_to_on.congr HasFTaylorSeriesUpToOn.congr theorem HasFTaylorSeriesUpToOn.mono (h : HasFTaylorSeriesUpToOn n f p s) {t : Set E} (hst : t βŠ† s) : HasFTaylorSeriesUpToOn n f p t := ⟨fun x hx => h.zero_eq x (hst hx), fun m hm x hx => (h.fderivWithin m hm x (hst hx)).mono hst, fun m hm => (h.cont m hm).mono hst⟩ #align has_ftaylor_series_up_to_on.mono HasFTaylorSeriesUpToOn.mono theorem HasFTaylorSeriesUpToOn.of_le (h : HasFTaylorSeriesUpToOn n f p s) (hmn : m ≀ n) : HasFTaylorSeriesUpToOn m f p s := ⟨h.zero_eq, fun k hk x hx => h.fderivWithin k (lt_of_lt_of_le hk hmn) x hx, fun k hk => h.cont k (le_trans hk hmn)⟩ #align has_ftaylor_series_up_to_on.of_le HasFTaylorSeriesUpToOn.of_le theorem HasFTaylorSeriesUpToOn.continuousOn (h : HasFTaylorSeriesUpToOn n f p s) : ContinuousOn f s := by have := (h.cont 0 bot_le).congr fun x hx => (h.zero_eq' hx).symm rwa [← (continuousMultilinearCurryFin0 π•œ E F).symm.comp_continuousOn_iff] #align has_ftaylor_series_up_to_on.continuous_on HasFTaylorSeriesUpToOn.continuousOn
Mathlib/Analysis/Calculus/ContDiff/Defs.lean
229
237
theorem hasFTaylorSeriesUpToOn_zero_iff : HasFTaylorSeriesUpToOn 0 f p s ↔ ContinuousOn f s ∧ βˆ€ x ∈ s, (p x 0).uncurry0 = f x := by
refine ⟨fun H => ⟨H.continuousOn, H.zero_eq⟩, fun H => ⟨H.2, fun m hm => False.elim (not_le.2 hm bot_le), fun m hm ↦ ?_⟩⟩ obtain rfl : m = 0 := mod_cast hm.antisymm (zero_le _) have : EqOn (p Β· 0) ((continuousMultilinearCurryFin0 π•œ E F).symm ∘ f) s := fun x hx ↦ (continuousMultilinearCurryFin0 π•œ E F).eq_symm_apply.2 (H.2 x hx) rw [continuousOn_congr this, LinearIsometryEquiv.comp_continuousOn_iff] exact H.1
1,607
import Mathlib.Analysis.Calculus.FDeriv.Equiv import Mathlib.Analysis.Calculus.FormalMultilinearSeries #align_import analysis.calculus.cont_diff_def from "leanprover-community/mathlib"@"3a69562db5a458db8322b190ec8d9a8bbd8a5b14" noncomputable section open scoped Classical open NNReal Topology Filter local notation "∞" => (⊀ : β„•βˆž) open Set Fin Filter Function universe u uE uF uG uX variable {π•œ : Type u} [NontriviallyNormedField π•œ] {E : Type uE} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type uF} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type uG} [NormedAddCommGroup G] [NormedSpace π•œ G] {X : Type uX} [NormedAddCommGroup X] [NormedSpace π•œ X] {s s₁ t u : Set E} {f f₁ : E β†’ F} {g : F β†’ G} {x xβ‚€ : E} {c : F} {m n : β„•βˆž} {p : E β†’ FormalMultilinearSeries π•œ E F} structure HasFTaylorSeriesUpToOn (n : β„•βˆž) (f : E β†’ F) (p : E β†’ FormalMultilinearSeries π•œ E F) (s : Set E) : Prop where zero_eq : βˆ€ x ∈ s, (p x 0).uncurry0 = f x protected fderivWithin : βˆ€ m : β„•, (m : β„•βˆž) < n β†’ βˆ€ x ∈ s, HasFDerivWithinAt (p Β· m) (p x m.succ).curryLeft s x cont : βˆ€ m : β„•, (m : β„•βˆž) ≀ n β†’ ContinuousOn (p Β· m) s #align has_ftaylor_series_up_to_on HasFTaylorSeriesUpToOn theorem HasFTaylorSeriesUpToOn.zero_eq' (h : HasFTaylorSeriesUpToOn n f p s) {x : E} (hx : x ∈ s) : p x 0 = (continuousMultilinearCurryFin0 π•œ E F).symm (f x) := by rw [← h.zero_eq x hx] exact (p x 0).uncurry0_curry0.symm #align has_ftaylor_series_up_to_on.zero_eq' HasFTaylorSeriesUpToOn.zero_eq' theorem HasFTaylorSeriesUpToOn.congr (h : HasFTaylorSeriesUpToOn n f p s) (h₁ : βˆ€ x ∈ s, f₁ x = f x) : HasFTaylorSeriesUpToOn n f₁ p s := by refine ⟨fun x hx => ?_, h.fderivWithin, h.cont⟩ rw [h₁ x hx] exact h.zero_eq x hx #align has_ftaylor_series_up_to_on.congr HasFTaylorSeriesUpToOn.congr theorem HasFTaylorSeriesUpToOn.mono (h : HasFTaylorSeriesUpToOn n f p s) {t : Set E} (hst : t βŠ† s) : HasFTaylorSeriesUpToOn n f p t := ⟨fun x hx => h.zero_eq x (hst hx), fun m hm x hx => (h.fderivWithin m hm x (hst hx)).mono hst, fun m hm => (h.cont m hm).mono hst⟩ #align has_ftaylor_series_up_to_on.mono HasFTaylorSeriesUpToOn.mono theorem HasFTaylorSeriesUpToOn.of_le (h : HasFTaylorSeriesUpToOn n f p s) (hmn : m ≀ n) : HasFTaylorSeriesUpToOn m f p s := ⟨h.zero_eq, fun k hk x hx => h.fderivWithin k (lt_of_lt_of_le hk hmn) x hx, fun k hk => h.cont k (le_trans hk hmn)⟩ #align has_ftaylor_series_up_to_on.of_le HasFTaylorSeriesUpToOn.of_le theorem HasFTaylorSeriesUpToOn.continuousOn (h : HasFTaylorSeriesUpToOn n f p s) : ContinuousOn f s := by have := (h.cont 0 bot_le).congr fun x hx => (h.zero_eq' hx).symm rwa [← (continuousMultilinearCurryFin0 π•œ E F).symm.comp_continuousOn_iff] #align has_ftaylor_series_up_to_on.continuous_on HasFTaylorSeriesUpToOn.continuousOn theorem hasFTaylorSeriesUpToOn_zero_iff : HasFTaylorSeriesUpToOn 0 f p s ↔ ContinuousOn f s ∧ βˆ€ x ∈ s, (p x 0).uncurry0 = f x := by refine ⟨fun H => ⟨H.continuousOn, H.zero_eq⟩, fun H => ⟨H.2, fun m hm => False.elim (not_le.2 hm bot_le), fun m hm ↦ ?_⟩⟩ obtain rfl : m = 0 := mod_cast hm.antisymm (zero_le _) have : EqOn (p Β· 0) ((continuousMultilinearCurryFin0 π•œ E F).symm ∘ f) s := fun x hx ↦ (continuousMultilinearCurryFin0 π•œ E F).eq_symm_apply.2 (H.2 x hx) rw [continuousOn_congr this, LinearIsometryEquiv.comp_continuousOn_iff] exact H.1 #align has_ftaylor_series_up_to_on_zero_iff hasFTaylorSeriesUpToOn_zero_iff
Mathlib/Analysis/Calculus/ContDiff/Defs.lean
240
250
theorem hasFTaylorSeriesUpToOn_top_iff : HasFTaylorSeriesUpToOn ∞ f p s ↔ βˆ€ n : β„•, HasFTaylorSeriesUpToOn n f p s := by
constructor Β· intro H n; exact H.of_le le_top Β· intro H constructor Β· exact (H 0).zero_eq Β· intro m _ apply (H m.succ).fderivWithin m (WithTop.coe_lt_coe.2 (lt_add_one m)) Β· intro m _ apply (H m).cont m le_rfl
1,607
import Mathlib.Analysis.NormedSpace.BoundedLinearMaps import Mathlib.Topology.FiberBundle.Basic #align_import topology.vector_bundle.basic from "leanprover-community/mathlib"@"e473c3198bb41f68560cab68a0529c854b618833" noncomputable section open scoped Classical open Bundle Set open scoped Topology variable (R : Type*) {B : Type*} (F : Type*) (E : B β†’ Type*) section TopologicalVectorSpace variable {F E} variable [Semiring R] [TopologicalSpace F] [TopologicalSpace B] protected class Pretrivialization.IsLinear [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] (e : Pretrivialization F (Ο€ F E)) : Prop where linear : βˆ€ b ∈ e.baseSet, IsLinearMap R fun x : E b => (e ⟨b, x⟩).2 #align pretrivialization.is_linear Pretrivialization.IsLinear namespace Pretrivialization variable (e : Pretrivialization F (Ο€ F E)) {x : TotalSpace F E} {b : B} {y : E b} theorem linear [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] [e.IsLinear R] {b : B} (hb : b ∈ e.baseSet) : IsLinearMap R fun x : E b => (e ⟨b, x⟩).2 := Pretrivialization.IsLinear.linear b hb #align pretrivialization.linear Pretrivialization.linear variable [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] @[simps!] protected def symmβ‚— (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : F β†’β‚—[R] E b := by refine IsLinearMap.mk' (e.symm b) ?_ by_cases hb : b ∈ e.baseSet Β· exact (((e.linear R hb).mk' _).inverse (e.symm b) (e.symm_apply_apply_mk hb) fun v ↦ congr_arg Prod.snd <| e.apply_mk_symm hb v).isLinear Β· rw [e.coe_symm_of_not_mem hb] exact (0 : F β†’β‚—[R] E b).isLinear #align pretrivialization.symmβ‚— Pretrivialization.symmβ‚— @[simps (config := .asFn)] def linearEquivAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) (hb : b ∈ e.baseSet) : E b ≃ₗ[R] F where toFun y := (e ⟨b, y⟩).2 invFun := e.symm b left_inv := e.symm_apply_apply_mk hb right_inv v := by simp_rw [e.apply_mk_symm hb v] map_add' v w := (e.linear R hb).map_add v w map_smul' c v := (e.linear R hb).map_smul c v #align pretrivialization.linear_equiv_at Pretrivialization.linearEquivAt protected def linearMapAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : E b β†’β‚—[R] F := if hb : b ∈ e.baseSet then e.linearEquivAt R b hb else 0 #align pretrivialization.linear_map_at Pretrivialization.linearMapAt variable {R}
Mathlib/Topology/VectorBundle/Basic.lean
120
123
theorem coe_linearMapAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : ⇑(e.linearMapAt R b) = fun y => if b ∈ e.baseSet then (e ⟨b, y⟩).2 else 0 := by
rw [Pretrivialization.linearMapAt] split_ifs <;> rfl
1,608
import Mathlib.Analysis.NormedSpace.BoundedLinearMaps import Mathlib.Topology.FiberBundle.Basic #align_import topology.vector_bundle.basic from "leanprover-community/mathlib"@"e473c3198bb41f68560cab68a0529c854b618833" noncomputable section open scoped Classical open Bundle Set open scoped Topology variable (R : Type*) {B : Type*} (F : Type*) (E : B β†’ Type*) section TopologicalVectorSpace variable {F E} variable [Semiring R] [TopologicalSpace F] [TopologicalSpace B] protected class Pretrivialization.IsLinear [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] (e : Pretrivialization F (Ο€ F E)) : Prop where linear : βˆ€ b ∈ e.baseSet, IsLinearMap R fun x : E b => (e ⟨b, x⟩).2 #align pretrivialization.is_linear Pretrivialization.IsLinear namespace Pretrivialization variable (e : Pretrivialization F (Ο€ F E)) {x : TotalSpace F E} {b : B} {y : E b} theorem linear [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] [e.IsLinear R] {b : B} (hb : b ∈ e.baseSet) : IsLinearMap R fun x : E b => (e ⟨b, x⟩).2 := Pretrivialization.IsLinear.linear b hb #align pretrivialization.linear Pretrivialization.linear variable [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] @[simps!] protected def symmβ‚— (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : F β†’β‚—[R] E b := by refine IsLinearMap.mk' (e.symm b) ?_ by_cases hb : b ∈ e.baseSet Β· exact (((e.linear R hb).mk' _).inverse (e.symm b) (e.symm_apply_apply_mk hb) fun v ↦ congr_arg Prod.snd <| e.apply_mk_symm hb v).isLinear Β· rw [e.coe_symm_of_not_mem hb] exact (0 : F β†’β‚—[R] E b).isLinear #align pretrivialization.symmβ‚— Pretrivialization.symmβ‚— @[simps (config := .asFn)] def linearEquivAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) (hb : b ∈ e.baseSet) : E b ≃ₗ[R] F where toFun y := (e ⟨b, y⟩).2 invFun := e.symm b left_inv := e.symm_apply_apply_mk hb right_inv v := by simp_rw [e.apply_mk_symm hb v] map_add' v w := (e.linear R hb).map_add v w map_smul' c v := (e.linear R hb).map_smul c v #align pretrivialization.linear_equiv_at Pretrivialization.linearEquivAt protected def linearMapAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : E b β†’β‚—[R] F := if hb : b ∈ e.baseSet then e.linearEquivAt R b hb else 0 #align pretrivialization.linear_map_at Pretrivialization.linearMapAt variable {R} theorem coe_linearMapAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : ⇑(e.linearMapAt R b) = fun y => if b ∈ e.baseSet then (e ⟨b, y⟩).2 else 0 := by rw [Pretrivialization.linearMapAt] split_ifs <;> rfl #align pretrivialization.coe_linear_map_at Pretrivialization.coe_linearMapAt
Mathlib/Topology/VectorBundle/Basic.lean
126
128
theorem coe_linearMapAt_of_mem (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (hb : b ∈ e.baseSet) : ⇑(e.linearMapAt R b) = fun y => (e ⟨b, y⟩).2 := by
simp_rw [coe_linearMapAt, if_pos hb]
1,608
import Mathlib.Analysis.NormedSpace.BoundedLinearMaps import Mathlib.Topology.FiberBundle.Basic #align_import topology.vector_bundle.basic from "leanprover-community/mathlib"@"e473c3198bb41f68560cab68a0529c854b618833" noncomputable section open scoped Classical open Bundle Set open scoped Topology variable (R : Type*) {B : Type*} (F : Type*) (E : B β†’ Type*) section TopologicalVectorSpace variable {F E} variable [Semiring R] [TopologicalSpace F] [TopologicalSpace B] protected class Pretrivialization.IsLinear [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] (e : Pretrivialization F (Ο€ F E)) : Prop where linear : βˆ€ b ∈ e.baseSet, IsLinearMap R fun x : E b => (e ⟨b, x⟩).2 #align pretrivialization.is_linear Pretrivialization.IsLinear namespace Pretrivialization variable (e : Pretrivialization F (Ο€ F E)) {x : TotalSpace F E} {b : B} {y : E b} theorem linear [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] [e.IsLinear R] {b : B} (hb : b ∈ e.baseSet) : IsLinearMap R fun x : E b => (e ⟨b, x⟩).2 := Pretrivialization.IsLinear.linear b hb #align pretrivialization.linear Pretrivialization.linear variable [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] @[simps!] protected def symmβ‚— (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : F β†’β‚—[R] E b := by refine IsLinearMap.mk' (e.symm b) ?_ by_cases hb : b ∈ e.baseSet Β· exact (((e.linear R hb).mk' _).inverse (e.symm b) (e.symm_apply_apply_mk hb) fun v ↦ congr_arg Prod.snd <| e.apply_mk_symm hb v).isLinear Β· rw [e.coe_symm_of_not_mem hb] exact (0 : F β†’β‚—[R] E b).isLinear #align pretrivialization.symmβ‚— Pretrivialization.symmβ‚— @[simps (config := .asFn)] def linearEquivAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) (hb : b ∈ e.baseSet) : E b ≃ₗ[R] F where toFun y := (e ⟨b, y⟩).2 invFun := e.symm b left_inv := e.symm_apply_apply_mk hb right_inv v := by simp_rw [e.apply_mk_symm hb v] map_add' v w := (e.linear R hb).map_add v w map_smul' c v := (e.linear R hb).map_smul c v #align pretrivialization.linear_equiv_at Pretrivialization.linearEquivAt protected def linearMapAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : E b β†’β‚—[R] F := if hb : b ∈ e.baseSet then e.linearEquivAt R b hb else 0 #align pretrivialization.linear_map_at Pretrivialization.linearMapAt variable {R} theorem coe_linearMapAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : ⇑(e.linearMapAt R b) = fun y => if b ∈ e.baseSet then (e ⟨b, y⟩).2 else 0 := by rw [Pretrivialization.linearMapAt] split_ifs <;> rfl #align pretrivialization.coe_linear_map_at Pretrivialization.coe_linearMapAt theorem coe_linearMapAt_of_mem (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (hb : b ∈ e.baseSet) : ⇑(e.linearMapAt R b) = fun y => (e ⟨b, y⟩).2 := by simp_rw [coe_linearMapAt, if_pos hb] #align pretrivialization.coe_linear_map_at_of_mem Pretrivialization.coe_linearMapAt_of_mem
Mathlib/Topology/VectorBundle/Basic.lean
131
133
theorem linearMapAt_apply (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (y : E b) : e.linearMapAt R b y = if b ∈ e.baseSet then (e ⟨b, y⟩).2 else 0 := by
rw [coe_linearMapAt]
1,608
import Mathlib.Analysis.NormedSpace.BoundedLinearMaps import Mathlib.Topology.FiberBundle.Basic #align_import topology.vector_bundle.basic from "leanprover-community/mathlib"@"e473c3198bb41f68560cab68a0529c854b618833" noncomputable section open scoped Classical open Bundle Set open scoped Topology variable (R : Type*) {B : Type*} (F : Type*) (E : B β†’ Type*) section TopologicalVectorSpace variable {F E} variable [Semiring R] [TopologicalSpace F] [TopologicalSpace B] protected class Pretrivialization.IsLinear [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] (e : Pretrivialization F (Ο€ F E)) : Prop where linear : βˆ€ b ∈ e.baseSet, IsLinearMap R fun x : E b => (e ⟨b, x⟩).2 #align pretrivialization.is_linear Pretrivialization.IsLinear namespace Pretrivialization variable (e : Pretrivialization F (Ο€ F E)) {x : TotalSpace F E} {b : B} {y : E b} theorem linear [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] [e.IsLinear R] {b : B} (hb : b ∈ e.baseSet) : IsLinearMap R fun x : E b => (e ⟨b, x⟩).2 := Pretrivialization.IsLinear.linear b hb #align pretrivialization.linear Pretrivialization.linear variable [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] @[simps!] protected def symmβ‚— (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : F β†’β‚—[R] E b := by refine IsLinearMap.mk' (e.symm b) ?_ by_cases hb : b ∈ e.baseSet Β· exact (((e.linear R hb).mk' _).inverse (e.symm b) (e.symm_apply_apply_mk hb) fun v ↦ congr_arg Prod.snd <| e.apply_mk_symm hb v).isLinear Β· rw [e.coe_symm_of_not_mem hb] exact (0 : F β†’β‚—[R] E b).isLinear #align pretrivialization.symmβ‚— Pretrivialization.symmβ‚— @[simps (config := .asFn)] def linearEquivAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) (hb : b ∈ e.baseSet) : E b ≃ₗ[R] F where toFun y := (e ⟨b, y⟩).2 invFun := e.symm b left_inv := e.symm_apply_apply_mk hb right_inv v := by simp_rw [e.apply_mk_symm hb v] map_add' v w := (e.linear R hb).map_add v w map_smul' c v := (e.linear R hb).map_smul c v #align pretrivialization.linear_equiv_at Pretrivialization.linearEquivAt protected def linearMapAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : E b β†’β‚—[R] F := if hb : b ∈ e.baseSet then e.linearEquivAt R b hb else 0 #align pretrivialization.linear_map_at Pretrivialization.linearMapAt variable {R} theorem coe_linearMapAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : ⇑(e.linearMapAt R b) = fun y => if b ∈ e.baseSet then (e ⟨b, y⟩).2 else 0 := by rw [Pretrivialization.linearMapAt] split_ifs <;> rfl #align pretrivialization.coe_linear_map_at Pretrivialization.coe_linearMapAt theorem coe_linearMapAt_of_mem (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (hb : b ∈ e.baseSet) : ⇑(e.linearMapAt R b) = fun y => (e ⟨b, y⟩).2 := by simp_rw [coe_linearMapAt, if_pos hb] #align pretrivialization.coe_linear_map_at_of_mem Pretrivialization.coe_linearMapAt_of_mem theorem linearMapAt_apply (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (y : E b) : e.linearMapAt R b y = if b ∈ e.baseSet then (e ⟨b, y⟩).2 else 0 := by rw [coe_linearMapAt] #align pretrivialization.linear_map_at_apply Pretrivialization.linearMapAt_apply theorem linearMapAt_def_of_mem (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (hb : b ∈ e.baseSet) : e.linearMapAt R b = e.linearEquivAt R b hb := dif_pos hb #align pretrivialization.linear_map_at_def_of_mem Pretrivialization.linearMapAt_def_of_mem theorem linearMapAt_def_of_not_mem (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (hb : b βˆ‰ e.baseSet) : e.linearMapAt R b = 0 := dif_neg hb #align pretrivialization.linear_map_at_def_of_not_mem Pretrivialization.linearMapAt_def_of_not_mem theorem linearMapAt_eq_zero (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (hb : b βˆ‰ e.baseSet) : e.linearMapAt R b = 0 := dif_neg hb #align pretrivialization.linear_map_at_eq_zero Pretrivialization.linearMapAt_eq_zero
Mathlib/Topology/VectorBundle/Basic.lean
151
154
theorem symmβ‚—_linearMapAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (hb : b ∈ e.baseSet) (y : E b) : e.symmβ‚— R b (e.linearMapAt R b y) = y := by
rw [e.linearMapAt_def_of_mem hb] exact (e.linearEquivAt R b hb).left_inv y
1,608
import Mathlib.Analysis.NormedSpace.BoundedLinearMaps import Mathlib.Topology.FiberBundle.Basic #align_import topology.vector_bundle.basic from "leanprover-community/mathlib"@"e473c3198bb41f68560cab68a0529c854b618833" noncomputable section open scoped Classical open Bundle Set open scoped Topology variable (R : Type*) {B : Type*} (F : Type*) (E : B β†’ Type*) section TopologicalVectorSpace variable {F E} variable [Semiring R] [TopologicalSpace F] [TopologicalSpace B] protected class Pretrivialization.IsLinear [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] (e : Pretrivialization F (Ο€ F E)) : Prop where linear : βˆ€ b ∈ e.baseSet, IsLinearMap R fun x : E b => (e ⟨b, x⟩).2 #align pretrivialization.is_linear Pretrivialization.IsLinear namespace Pretrivialization variable (e : Pretrivialization F (Ο€ F E)) {x : TotalSpace F E} {b : B} {y : E b} theorem linear [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] [e.IsLinear R] {b : B} (hb : b ∈ e.baseSet) : IsLinearMap R fun x : E b => (e ⟨b, x⟩).2 := Pretrivialization.IsLinear.linear b hb #align pretrivialization.linear Pretrivialization.linear variable [AddCommMonoid F] [Module R F] [βˆ€ x, AddCommMonoid (E x)] [βˆ€ x, Module R (E x)] @[simps!] protected def symmβ‚— (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : F β†’β‚—[R] E b := by refine IsLinearMap.mk' (e.symm b) ?_ by_cases hb : b ∈ e.baseSet Β· exact (((e.linear R hb).mk' _).inverse (e.symm b) (e.symm_apply_apply_mk hb) fun v ↦ congr_arg Prod.snd <| e.apply_mk_symm hb v).isLinear Β· rw [e.coe_symm_of_not_mem hb] exact (0 : F β†’β‚—[R] E b).isLinear #align pretrivialization.symmβ‚— Pretrivialization.symmβ‚— @[simps (config := .asFn)] def linearEquivAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) (hb : b ∈ e.baseSet) : E b ≃ₗ[R] F where toFun y := (e ⟨b, y⟩).2 invFun := e.symm b left_inv := e.symm_apply_apply_mk hb right_inv v := by simp_rw [e.apply_mk_symm hb v] map_add' v w := (e.linear R hb).map_add v w map_smul' c v := (e.linear R hb).map_smul c v #align pretrivialization.linear_equiv_at Pretrivialization.linearEquivAt protected def linearMapAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : E b β†’β‚—[R] F := if hb : b ∈ e.baseSet then e.linearEquivAt R b hb else 0 #align pretrivialization.linear_map_at Pretrivialization.linearMapAt variable {R} theorem coe_linearMapAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] (b : B) : ⇑(e.linearMapAt R b) = fun y => if b ∈ e.baseSet then (e ⟨b, y⟩).2 else 0 := by rw [Pretrivialization.linearMapAt] split_ifs <;> rfl #align pretrivialization.coe_linear_map_at Pretrivialization.coe_linearMapAt theorem coe_linearMapAt_of_mem (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (hb : b ∈ e.baseSet) : ⇑(e.linearMapAt R b) = fun y => (e ⟨b, y⟩).2 := by simp_rw [coe_linearMapAt, if_pos hb] #align pretrivialization.coe_linear_map_at_of_mem Pretrivialization.coe_linearMapAt_of_mem theorem linearMapAt_apply (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (y : E b) : e.linearMapAt R b y = if b ∈ e.baseSet then (e ⟨b, y⟩).2 else 0 := by rw [coe_linearMapAt] #align pretrivialization.linear_map_at_apply Pretrivialization.linearMapAt_apply theorem linearMapAt_def_of_mem (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (hb : b ∈ e.baseSet) : e.linearMapAt R b = e.linearEquivAt R b hb := dif_pos hb #align pretrivialization.linear_map_at_def_of_mem Pretrivialization.linearMapAt_def_of_mem theorem linearMapAt_def_of_not_mem (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (hb : b βˆ‰ e.baseSet) : e.linearMapAt R b = 0 := dif_neg hb #align pretrivialization.linear_map_at_def_of_not_mem Pretrivialization.linearMapAt_def_of_not_mem theorem linearMapAt_eq_zero (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (hb : b βˆ‰ e.baseSet) : e.linearMapAt R b = 0 := dif_neg hb #align pretrivialization.linear_map_at_eq_zero Pretrivialization.linearMapAt_eq_zero theorem symmβ‚—_linearMapAt (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (hb : b ∈ e.baseSet) (y : E b) : e.symmβ‚— R b (e.linearMapAt R b y) = y := by rw [e.linearMapAt_def_of_mem hb] exact (e.linearEquivAt R b hb).left_inv y #align pretrivialization.symmβ‚—_linear_map_at Pretrivialization.symmβ‚—_linearMapAt
Mathlib/Topology/VectorBundle/Basic.lean
157
160
theorem linearMapAt_symmβ‚— (e : Pretrivialization F (Ο€ F E)) [e.IsLinear R] {b : B} (hb : b ∈ e.baseSet) (y : F) : e.linearMapAt R b (e.symmβ‚— R b y) = y := by
rw [e.linearMapAt_def_of_mem hb] exact (e.linearEquivAt R b hb).right_inv y
1,608
import Mathlib.Topology.FiberBundle.Constructions import Mathlib.Topology.VectorBundle.Basic import Mathlib.Analysis.NormedSpace.OperatorNorm.Prod #align_import topology.vector_bundle.constructions from "leanprover-community/mathlib"@"e473c3198bb41f68560cab68a0529c854b618833" noncomputable section open scoped Classical open Bundle Set FiberBundle namespace Bundle.Trivial variable (π•œ : Type*) (B : Type*) (F : Type*) [NontriviallyNormedField π•œ] [NormedAddCommGroup F] [NormedSpace π•œ F] [TopologicalSpace B] instance trivialization.isLinear : (trivialization B F).IsLinear π•œ where linear _ _ := ⟨fun _ _ => rfl, fun _ _ => rfl⟩ #align bundle.trivial.trivialization.is_linear Bundle.Trivial.trivialization.isLinear variable {π•œ}
Mathlib/Topology/VectorBundle/Constructions.lean
50
55
theorem trivialization.coordChangeL (b : B) : (trivialization B F).coordChangeL π•œ (trivialization B F) b = ContinuousLinearEquiv.refl π•œ F := by
ext v rw [Trivialization.coordChangeL_apply'] exacts [rfl, ⟨mem_univ _, mem_univ _⟩]
1,609
import Mathlib.Topology.FiberBundle.Constructions import Mathlib.Topology.VectorBundle.Basic import Mathlib.Analysis.NormedSpace.OperatorNorm.Prod #align_import topology.vector_bundle.constructions from "leanprover-community/mathlib"@"e473c3198bb41f68560cab68a0529c854b618833" noncomputable section open scoped Classical open Bundle Set FiberBundle section variable (π•œ : Type*) {B : Type*} [NontriviallyNormedField π•œ] [TopologicalSpace B] (F₁ : Type*) [NormedAddCommGroup F₁] [NormedSpace π•œ F₁] (E₁ : B β†’ Type*) [TopologicalSpace (TotalSpace F₁ E₁)] (Fβ‚‚ : Type*) [NormedAddCommGroup Fβ‚‚] [NormedSpace π•œ Fβ‚‚] (Eβ‚‚ : B β†’ Type*) [TopologicalSpace (TotalSpace Fβ‚‚ Eβ‚‚)] namespace Trivialization variable {F₁ E₁ Fβ‚‚ Eβ‚‚} variable [βˆ€ x, AddCommMonoid (E₁ x)] [βˆ€ x, Module π•œ (E₁ x)] [βˆ€ x, AddCommMonoid (Eβ‚‚ x)] [βˆ€ x, Module π•œ (Eβ‚‚ x)] (e₁ e₁' : Trivialization F₁ (Ο€ F₁ E₁)) (eβ‚‚ eβ‚‚' : Trivialization Fβ‚‚ (Ο€ Fβ‚‚ Eβ‚‚)) instance prod.isLinear [e₁.IsLinear π•œ] [eβ‚‚.IsLinear π•œ] : (e₁.prod eβ‚‚).IsLinear π•œ where linear := fun _ ⟨h₁, hβ‚‚βŸ© => (((e₁.linear π•œ h₁).mk' _).prodMap ((eβ‚‚.linear π•œ hβ‚‚).mk' _)).isLinear #align trivialization.prod.is_linear Trivialization.prod.isLinear @[simp]
Mathlib/Topology/VectorBundle/Constructions.lean
96
106
theorem coordChangeL_prod [e₁.IsLinear π•œ] [e₁'.IsLinear π•œ] [eβ‚‚.IsLinear π•œ] [eβ‚‚'.IsLinear π•œ] ⦃b⦄ (hb : b ∈ (e₁.prod eβ‚‚).baseSet ∩ (e₁'.prod eβ‚‚').baseSet) : ((e₁.prod eβ‚‚).coordChangeL π•œ (e₁'.prod eβ‚‚') b : F₁ Γ— Fβ‚‚ β†’L[π•œ] F₁ Γ— Fβ‚‚) = (e₁.coordChangeL π•œ e₁' b : F₁ β†’L[π•œ] F₁).prodMap (eβ‚‚.coordChangeL π•œ eβ‚‚' b) := by
rw [ContinuousLinearMap.ext_iff, ContinuousLinearMap.coe_prodMap'] rintro ⟨v₁, vβ‚‚βŸ© show (e₁.prod eβ‚‚).coordChangeL π•œ (e₁'.prod eβ‚‚') b (v₁, vβ‚‚) = (e₁.coordChangeL π•œ e₁' b v₁, eβ‚‚.coordChangeL π•œ eβ‚‚' b vβ‚‚) rw [e₁.coordChangeL_apply e₁', eβ‚‚.coordChangeL_apply eβ‚‚', (e₁.prod eβ‚‚).coordChangeL_apply'] exacts [rfl, hb, ⟨hb.1.2, hb.2.2⟩, ⟨hb.1.1, hb.2.1⟩]
1,609
import Mathlib.Topology.VectorBundle.Basic #align_import topology.vector_bundle.hom from "leanprover-community/mathlib"@"8905e5ed90859939681a725b00f6063e65096d95" noncomputable section open scoped Bundle open Bundle Set ContinuousLinearMap variable {π•œβ‚ : Type*} [NontriviallyNormedField π•œβ‚] {π•œβ‚‚ : Type*} [NontriviallyNormedField π•œβ‚‚] (Οƒ : π•œβ‚ β†’+* π•œβ‚‚) [iΟƒ : RingHomIsometric Οƒ] variable {B : Type*} variable {F₁ : Type*} [NormedAddCommGroup F₁] [NormedSpace π•œβ‚ F₁] (E₁ : B β†’ Type*) [βˆ€ x, AddCommGroup (E₁ x)] [βˆ€ x, Module π•œβ‚ (E₁ x)] [TopologicalSpace (TotalSpace F₁ E₁)] variable {Fβ‚‚ : Type*} [NormedAddCommGroup Fβ‚‚] [NormedSpace π•œβ‚‚ Fβ‚‚] (Eβ‚‚ : B β†’ Type*) [βˆ€ x, AddCommGroup (Eβ‚‚ x)] [βˆ€ x, Module π•œβ‚‚ (Eβ‚‚ x)] [TopologicalSpace (TotalSpace Fβ‚‚ Eβ‚‚)] protected abbrev Bundle.ContinuousLinearMap [βˆ€ x, TopologicalSpace (E₁ x)] [βˆ€ x, TopologicalSpace (Eβ‚‚ x)] : B β†’ Type _ := fun x => E₁ x β†’SL[Οƒ] Eβ‚‚ x #align bundle.continuous_linear_map Bundle.ContinuousLinearMap -- Porting note: possibly remove after the port instance Bundle.ContinuousLinearMap.module [βˆ€ x, TopologicalSpace (E₁ x)] [βˆ€ x, TopologicalSpace (Eβ‚‚ x)] [βˆ€ x, TopologicalAddGroup (Eβ‚‚ x)] [βˆ€ x, ContinuousConstSMul π•œβ‚‚ (Eβ‚‚ x)] : βˆ€ x, Module π•œβ‚‚ (Bundle.ContinuousLinearMap Οƒ E₁ Eβ‚‚ x) := fun _ => inferInstance #align bundle.continuous_linear_map.module Bundle.ContinuousLinearMap.module variable {E₁ Eβ‚‚} variable [TopologicalSpace B] (e₁ e₁' : Trivialization F₁ (Ο€ F₁ E₁)) (eβ‚‚ eβ‚‚' : Trivialization Fβ‚‚ (Ο€ Fβ‚‚ Eβ‚‚)) namespace Pretrivialization def continuousLinearMapCoordChange [e₁.IsLinear π•œβ‚] [e₁'.IsLinear π•œβ‚] [eβ‚‚.IsLinear π•œβ‚‚] [eβ‚‚'.IsLinear π•œβ‚‚] (b : B) : (F₁ β†’SL[Οƒ] Fβ‚‚) β†’L[π•œβ‚‚] F₁ β†’SL[Οƒ] Fβ‚‚ := ((e₁'.coordChangeL π•œβ‚ e₁ b).symm.arrowCongrSL (eβ‚‚.coordChangeL π•œβ‚‚ eβ‚‚' b) : (F₁ β†’SL[Οƒ] Fβ‚‚) ≃L[π•œβ‚‚] F₁ β†’SL[Οƒ] Fβ‚‚) #align pretrivialization.continuous_linear_map_coord_change Pretrivialization.continuousLinearMapCoordChange variable {Οƒ e₁ e₁' eβ‚‚ eβ‚‚'} variable [βˆ€ x, TopologicalSpace (E₁ x)] [FiberBundle F₁ E₁] variable [βˆ€ x, TopologicalSpace (Eβ‚‚ x)] [ita : βˆ€ x, TopologicalAddGroup (Eβ‚‚ x)] [FiberBundle Fβ‚‚ Eβ‚‚]
Mathlib/Topology/VectorBundle/Hom.lean
92
112
theorem continuousOn_continuousLinearMapCoordChange [VectorBundle π•œβ‚ F₁ E₁] [VectorBundle π•œβ‚‚ Fβ‚‚ Eβ‚‚] [MemTrivializationAtlas e₁] [MemTrivializationAtlas e₁'] [MemTrivializationAtlas eβ‚‚] [MemTrivializationAtlas eβ‚‚'] : ContinuousOn (continuousLinearMapCoordChange Οƒ e₁ e₁' eβ‚‚ eβ‚‚') (e₁.baseSet ∩ eβ‚‚.baseSet ∩ (e₁'.baseSet ∩ eβ‚‚'.baseSet)) := by
have h₁ := (compSL F₁ Fβ‚‚ Fβ‚‚ Οƒ (RingHom.id π•œβ‚‚)).continuous have hβ‚‚ := (ContinuousLinearMap.flip (compSL F₁ F₁ Fβ‚‚ (RingHom.id π•œβ‚) Οƒ)).continuous have h₃ := continuousOn_coordChange π•œβ‚ e₁' e₁ have hβ‚„ := continuousOn_coordChange π•œβ‚‚ eβ‚‚ eβ‚‚' refine ((h₁.comp_continuousOn (hβ‚„.mono ?_)).clm_comp (hβ‚‚.comp_continuousOn (h₃.mono ?_))).congr ?_ Β· mfld_set_tac Β· mfld_set_tac Β· intro b _; ext L v -- Porting note: was -- simp only [continuousLinearMapCoordChange, ContinuousLinearEquiv.coe_coe, -- ContinuousLinearEquiv.arrowCongrβ‚›β‚—_apply, LinearEquiv.toFun_eq_coe, coe_comp', -- ContinuousLinearEquiv.arrowCongrSL_apply, comp_apply, Function.comp, compSL_apply, -- flip_apply, ContinuousLinearEquiv.symm_symm] -- Now `simp` fails to use `ContinuousLinearMap.comp_apply` in this case dsimp [continuousLinearMapCoordChange] rw [ContinuousLinearEquiv.symm_symm]
1,610
import Mathlib.Analysis.Calculus.FDeriv.Basic import Mathlib.Analysis.NormedSpace.OperatorNorm.NormedSpace #align_import analysis.calculus.deriv.basic from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w noncomputable section open scoped Classical Topology Filter ENNReal NNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] def HasDerivAtFilter (f : π•œ β†’ F) (f' : F) (x : π•œ) (L : Filter π•œ) := HasFDerivAtFilter f (smulRight (1 : π•œ β†’L[π•œ] π•œ) f') x L #align has_deriv_at_filter HasDerivAtFilter def HasDerivWithinAt (f : π•œ β†’ F) (f' : F) (s : Set π•œ) (x : π•œ) := HasDerivAtFilter f f' x (𝓝[s] x) #align has_deriv_within_at HasDerivWithinAt def HasDerivAt (f : π•œ β†’ F) (f' : F) (x : π•œ) := HasDerivAtFilter f f' x (𝓝 x) #align has_deriv_at HasDerivAt def HasStrictDerivAt (f : π•œ β†’ F) (f' : F) (x : π•œ) := HasStrictFDerivAt f (smulRight (1 : π•œ β†’L[π•œ] π•œ) f') x #align has_strict_deriv_at HasStrictDerivAt def derivWithin (f : π•œ β†’ F) (s : Set π•œ) (x : π•œ) := fderivWithin π•œ f s x 1 #align deriv_within derivWithin def deriv (f : π•œ β†’ F) (x : π•œ) := fderiv π•œ f x 1 #align deriv deriv variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ}
Mathlib/Analysis/Calculus/Deriv/Basic.lean
161
162
theorem hasFDerivAtFilter_iff_hasDerivAtFilter {f' : π•œ β†’L[π•œ] F} : HasFDerivAtFilter f f' x L ↔ HasDerivAtFilter f (f' 1) x L := by
simp [HasDerivAtFilter]
1,611
import Mathlib.Analysis.Calculus.FDeriv.Basic import Mathlib.Analysis.NormedSpace.OperatorNorm.NormedSpace #align_import analysis.calculus.deriv.basic from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w noncomputable section open scoped Classical Topology Filter ENNReal NNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] def HasDerivAtFilter (f : π•œ β†’ F) (f' : F) (x : π•œ) (L : Filter π•œ) := HasFDerivAtFilter f (smulRight (1 : π•œ β†’L[π•œ] π•œ) f') x L #align has_deriv_at_filter HasDerivAtFilter def HasDerivWithinAt (f : π•œ β†’ F) (f' : F) (s : Set π•œ) (x : π•œ) := HasDerivAtFilter f f' x (𝓝[s] x) #align has_deriv_within_at HasDerivWithinAt def HasDerivAt (f : π•œ β†’ F) (f' : F) (x : π•œ) := HasDerivAtFilter f f' x (𝓝 x) #align has_deriv_at HasDerivAt def HasStrictDerivAt (f : π•œ β†’ F) (f' : F) (x : π•œ) := HasStrictFDerivAt f (smulRight (1 : π•œ β†’L[π•œ] π•œ) f') x #align has_strict_deriv_at HasStrictDerivAt def derivWithin (f : π•œ β†’ F) (s : Set π•œ) (x : π•œ) := fderivWithin π•œ f s x 1 #align deriv_within derivWithin def deriv (f : π•œ β†’ F) (x : π•œ) := fderiv π•œ f x 1 #align deriv deriv variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} theorem hasFDerivAtFilter_iff_hasDerivAtFilter {f' : π•œ β†’L[π•œ] F} : HasFDerivAtFilter f f' x L ↔ HasDerivAtFilter f (f' 1) x L := by simp [HasDerivAtFilter] #align has_fderiv_at_filter_iff_has_deriv_at_filter hasFDerivAtFilter_iff_hasDerivAtFilter theorem HasFDerivAtFilter.hasDerivAtFilter {f' : π•œ β†’L[π•œ] F} : HasFDerivAtFilter f f' x L β†’ HasDerivAtFilter f (f' 1) x L := hasFDerivAtFilter_iff_hasDerivAtFilter.mp #align has_fderiv_at_filter.has_deriv_at_filter HasFDerivAtFilter.hasDerivAtFilter theorem hasFDerivWithinAt_iff_hasDerivWithinAt {f' : π•œ β†’L[π•œ] F} : HasFDerivWithinAt f f' s x ↔ HasDerivWithinAt f (f' 1) s x := hasFDerivAtFilter_iff_hasDerivAtFilter #align has_fderiv_within_at_iff_has_deriv_within_at hasFDerivWithinAt_iff_hasDerivWithinAt theorem hasDerivWithinAt_iff_hasFDerivWithinAt {f' : F} : HasDerivWithinAt f f' s x ↔ HasFDerivWithinAt f (smulRight (1 : π•œ β†’L[π•œ] π•œ) f') s x := Iff.rfl #align has_deriv_within_at_iff_has_fderiv_within_at hasDerivWithinAt_iff_hasFDerivWithinAt theorem HasFDerivWithinAt.hasDerivWithinAt {f' : π•œ β†’L[π•œ] F} : HasFDerivWithinAt f f' s x β†’ HasDerivWithinAt f (f' 1) s x := hasFDerivWithinAt_iff_hasDerivWithinAt.mp #align has_fderiv_within_at.has_deriv_within_at HasFDerivWithinAt.hasDerivWithinAt theorem HasDerivWithinAt.hasFDerivWithinAt {f' : F} : HasDerivWithinAt f f' s x β†’ HasFDerivWithinAt f (smulRight (1 : π•œ β†’L[π•œ] π•œ) f') s x := hasDerivWithinAt_iff_hasFDerivWithinAt.mp #align has_deriv_within_at.has_fderiv_within_at HasDerivWithinAt.hasFDerivWithinAt theorem hasFDerivAt_iff_hasDerivAt {f' : π•œ β†’L[π•œ] F} : HasFDerivAt f f' x ↔ HasDerivAt f (f' 1) x := hasFDerivAtFilter_iff_hasDerivAtFilter #align has_fderiv_at_iff_has_deriv_at hasFDerivAt_iff_hasDerivAt theorem HasFDerivAt.hasDerivAt {f' : π•œ β†’L[π•œ] F} : HasFDerivAt f f' x β†’ HasDerivAt f (f' 1) x := hasFDerivAt_iff_hasDerivAt.mp #align has_fderiv_at.has_deriv_at HasFDerivAt.hasDerivAt
Mathlib/Analysis/Calculus/Deriv/Basic.lean
201
203
theorem hasStrictFDerivAt_iff_hasStrictDerivAt {f' : π•œ β†’L[π•œ] F} : HasStrictFDerivAt f f' x ↔ HasStrictDerivAt f (f' 1) x := by
simp [HasStrictDerivAt, HasStrictFDerivAt]
1,611
import Mathlib.Analysis.Calculus.Deriv.Basic #align_import analysis.calculus.deriv.support from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {E : Type v} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f : π•œ β†’ E} section Support open Function
Mathlib/Analysis/Calculus/Deriv/Support.lean
36
41
theorem support_deriv_subset : support (deriv f) βŠ† tsupport f := by
intro x rw [← not_imp_not] intro h2x rw [not_mem_tsupport_iff_eventuallyEq] at h2x exact nmem_support.mpr (h2x.deriv_eq.trans (deriv_const x 0))
1,612
import Mathlib.Analysis.Calculus.FDeriv.Pi import Mathlib.Analysis.Calculus.Deriv.Basic variable {π•œ ΞΉ : Type*} [DecidableEq ΞΉ] [Fintype ΞΉ] [NontriviallyNormedField π•œ]
Mathlib/Analysis/Calculus/Deriv/Pi.lean
15
22
theorem hasDerivAt_update (x : ΞΉ β†’ π•œ) (i : ΞΉ) (y : π•œ) : HasDerivAt (Function.update x i) (Pi.single i (1 : π•œ)) y := by
convert (hasFDerivAt_update x y).hasDerivAt ext z j rw [Pi.single, Function.update_apply] split_ifs with h Β· simp [h] Β· simp [Pi.single_eq_of_ne h]
1,613
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} section Composition variable {π•œ' : Type*} [NontriviallyNormedField π•œ'] [NormedAlgebra π•œ π•œ'] [NormedSpace π•œ' F] [IsScalarTower π•œ π•œ' F] {s' t' : Set π•œ'} {h : π•œ β†’ π•œ'} {h₁ : π•œ β†’ π•œ} {hβ‚‚ : π•œ' β†’ π•œ'} {h' hβ‚‚' : π•œ'} {h₁' : π•œ} {g₁ : π•œ' β†’ F} {g₁' : F} {L' : Filter π•œ'} {y : π•œ'} (x)
Mathlib/Analysis/Calculus/Deriv/Comp.lean
74
77
theorem HasDerivAtFilter.scomp (hg : HasDerivAtFilter g₁ g₁' (h x) L') (hh : HasDerivAtFilter h h' x L) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by
simpa using ((hg.restrictScalars π•œ).comp x hh hL).hasDerivAtFilter
1,614
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} section Composition variable {π•œ' : Type*} [NontriviallyNormedField π•œ'] [NormedAlgebra π•œ π•œ'] [NormedSpace π•œ' F] [IsScalarTower π•œ π•œ' F] {s' t' : Set π•œ'} {h : π•œ β†’ π•œ'} {h₁ : π•œ β†’ π•œ} {hβ‚‚ : π•œ' β†’ π•œ'} {h' hβ‚‚' : π•œ'} {h₁' : π•œ} {g₁ : π•œ' β†’ F} {g₁' : F} {L' : Filter π•œ'} {y : π•œ'} (x) theorem HasDerivAtFilter.scomp (hg : HasDerivAtFilter g₁ g₁' (h x) L') (hh : HasDerivAtFilter h h' x L) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by simpa using ((hg.restrictScalars π•œ).comp x hh hL).hasDerivAtFilter #align has_deriv_at_filter.scomp HasDerivAtFilter.scomp
Mathlib/Analysis/Calculus/Deriv/Comp.lean
80
83
theorem HasDerivAtFilter.scomp_of_eq (hg : HasDerivAtFilter g₁ g₁' y L') (hh : HasDerivAtFilter h h' x L) (hy : y = h x) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by
rw [hy] at hg; exact hg.scomp x hh hL
1,614
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} section Composition variable {π•œ' : Type*} [NontriviallyNormedField π•œ'] [NormedAlgebra π•œ π•œ'] [NormedSpace π•œ' F] [IsScalarTower π•œ π•œ' F] {s' t' : Set π•œ'} {h : π•œ β†’ π•œ'} {h₁ : π•œ β†’ π•œ} {hβ‚‚ : π•œ' β†’ π•œ'} {h' hβ‚‚' : π•œ'} {h₁' : π•œ} {g₁ : π•œ' β†’ F} {g₁' : F} {L' : Filter π•œ'} {y : π•œ'} (x) theorem HasDerivAtFilter.scomp (hg : HasDerivAtFilter g₁ g₁' (h x) L') (hh : HasDerivAtFilter h h' x L) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by simpa using ((hg.restrictScalars π•œ).comp x hh hL).hasDerivAtFilter #align has_deriv_at_filter.scomp HasDerivAtFilter.scomp theorem HasDerivAtFilter.scomp_of_eq (hg : HasDerivAtFilter g₁ g₁' y L') (hh : HasDerivAtFilter h h' x L) (hy : y = h x) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by rw [hy] at hg; exact hg.scomp x hh hL theorem HasDerivWithinAt.scomp_hasDerivAt (hg : HasDerivWithinAt g₁ g₁' s' (h x)) (hh : HasDerivAt h h' x) (hs : βˆ€ x, h x ∈ s') : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := hg.scomp x hh <| tendsto_inf.2 ⟨hh.continuousAt, tendsto_principal.2 <| eventually_of_forall hs⟩ #align has_deriv_within_at.scomp_has_deriv_at HasDerivWithinAt.scomp_hasDerivAt
Mathlib/Analysis/Calculus/Deriv/Comp.lean
90
93
theorem HasDerivWithinAt.scomp_hasDerivAt_of_eq (hg : HasDerivWithinAt g₁ g₁' s' y) (hh : HasDerivAt h h' x) (hs : βˆ€ x, h x ∈ s') (hy : y = h x) : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by
rw [hy] at hg; exact hg.scomp_hasDerivAt x hh hs
1,614
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} section Composition variable {π•œ' : Type*} [NontriviallyNormedField π•œ'] [NormedAlgebra π•œ π•œ'] [NormedSpace π•œ' F] [IsScalarTower π•œ π•œ' F] {s' t' : Set π•œ'} {h : π•œ β†’ π•œ'} {h₁ : π•œ β†’ π•œ} {hβ‚‚ : π•œ' β†’ π•œ'} {h' hβ‚‚' : π•œ'} {h₁' : π•œ} {g₁ : π•œ' β†’ F} {g₁' : F} {L' : Filter π•œ'} {y : π•œ'} (x) theorem HasDerivAtFilter.scomp (hg : HasDerivAtFilter g₁ g₁' (h x) L') (hh : HasDerivAtFilter h h' x L) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by simpa using ((hg.restrictScalars π•œ).comp x hh hL).hasDerivAtFilter #align has_deriv_at_filter.scomp HasDerivAtFilter.scomp theorem HasDerivAtFilter.scomp_of_eq (hg : HasDerivAtFilter g₁ g₁' y L') (hh : HasDerivAtFilter h h' x L) (hy : y = h x) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by rw [hy] at hg; exact hg.scomp x hh hL theorem HasDerivWithinAt.scomp_hasDerivAt (hg : HasDerivWithinAt g₁ g₁' s' (h x)) (hh : HasDerivAt h h' x) (hs : βˆ€ x, h x ∈ s') : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := hg.scomp x hh <| tendsto_inf.2 ⟨hh.continuousAt, tendsto_principal.2 <| eventually_of_forall hs⟩ #align has_deriv_within_at.scomp_has_deriv_at HasDerivWithinAt.scomp_hasDerivAt theorem HasDerivWithinAt.scomp_hasDerivAt_of_eq (hg : HasDerivWithinAt g₁ g₁' s' y) (hh : HasDerivAt h h' x) (hs : βˆ€ x, h x ∈ s') (hy : y = h x) : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by rw [hy] at hg; exact hg.scomp_hasDerivAt x hh hs nonrec theorem HasDerivWithinAt.scomp (hg : HasDerivWithinAt g₁ g₁' t' (h x)) (hh : HasDerivWithinAt h h' s x) (hst : MapsTo h s t') : HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x := hg.scomp x hh <| hh.continuousWithinAt.tendsto_nhdsWithin hst #align has_deriv_within_at.scomp HasDerivWithinAt.scomp
Mathlib/Analysis/Calculus/Deriv/Comp.lean
101
104
theorem HasDerivWithinAt.scomp_of_eq (hg : HasDerivWithinAt g₁ g₁' t' y) (hh : HasDerivWithinAt h h' s x) (hst : MapsTo h s t') (hy : y = h x) : HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x := by
rw [hy] at hg; exact hg.scomp x hh hst
1,614
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} section Composition variable {π•œ' : Type*} [NontriviallyNormedField π•œ'] [NormedAlgebra π•œ π•œ'] [NormedSpace π•œ' F] [IsScalarTower π•œ π•œ' F] {s' t' : Set π•œ'} {h : π•œ β†’ π•œ'} {h₁ : π•œ β†’ π•œ} {hβ‚‚ : π•œ' β†’ π•œ'} {h' hβ‚‚' : π•œ'} {h₁' : π•œ} {g₁ : π•œ' β†’ F} {g₁' : F} {L' : Filter π•œ'} {y : π•œ'} (x) theorem HasDerivAtFilter.scomp (hg : HasDerivAtFilter g₁ g₁' (h x) L') (hh : HasDerivAtFilter h h' x L) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by simpa using ((hg.restrictScalars π•œ).comp x hh hL).hasDerivAtFilter #align has_deriv_at_filter.scomp HasDerivAtFilter.scomp theorem HasDerivAtFilter.scomp_of_eq (hg : HasDerivAtFilter g₁ g₁' y L') (hh : HasDerivAtFilter h h' x L) (hy : y = h x) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by rw [hy] at hg; exact hg.scomp x hh hL theorem HasDerivWithinAt.scomp_hasDerivAt (hg : HasDerivWithinAt g₁ g₁' s' (h x)) (hh : HasDerivAt h h' x) (hs : βˆ€ x, h x ∈ s') : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := hg.scomp x hh <| tendsto_inf.2 ⟨hh.continuousAt, tendsto_principal.2 <| eventually_of_forall hs⟩ #align has_deriv_within_at.scomp_has_deriv_at HasDerivWithinAt.scomp_hasDerivAt theorem HasDerivWithinAt.scomp_hasDerivAt_of_eq (hg : HasDerivWithinAt g₁ g₁' s' y) (hh : HasDerivAt h h' x) (hs : βˆ€ x, h x ∈ s') (hy : y = h x) : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by rw [hy] at hg; exact hg.scomp_hasDerivAt x hh hs nonrec theorem HasDerivWithinAt.scomp (hg : HasDerivWithinAt g₁ g₁' t' (h x)) (hh : HasDerivWithinAt h h' s x) (hst : MapsTo h s t') : HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x := hg.scomp x hh <| hh.continuousWithinAt.tendsto_nhdsWithin hst #align has_deriv_within_at.scomp HasDerivWithinAt.scomp theorem HasDerivWithinAt.scomp_of_eq (hg : HasDerivWithinAt g₁ g₁' t' y) (hh : HasDerivWithinAt h h' s x) (hst : MapsTo h s t') (hy : y = h x) : HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x := by rw [hy] at hg; exact hg.scomp x hh hst nonrec theorem HasDerivAt.scomp (hg : HasDerivAt g₁ g₁' (h x)) (hh : HasDerivAt h h' x) : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := hg.scomp x hh hh.continuousAt #align has_deriv_at.scomp HasDerivAt.scomp
Mathlib/Analysis/Calculus/Deriv/Comp.lean
113
116
theorem HasDerivAt.scomp_of_eq (hg : HasDerivAt g₁ g₁' y) (hh : HasDerivAt h h' x) (hy : y = h x) : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by
rw [hy] at hg; exact hg.scomp x hh
1,614
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} section Composition variable {π•œ' : Type*} [NontriviallyNormedField π•œ'] [NormedAlgebra π•œ π•œ'] [NormedSpace π•œ' F] [IsScalarTower π•œ π•œ' F] {s' t' : Set π•œ'} {h : π•œ β†’ π•œ'} {h₁ : π•œ β†’ π•œ} {hβ‚‚ : π•œ' β†’ π•œ'} {h' hβ‚‚' : π•œ'} {h₁' : π•œ} {g₁ : π•œ' β†’ F} {g₁' : F} {L' : Filter π•œ'} {y : π•œ'} (x) theorem HasDerivAtFilter.scomp (hg : HasDerivAtFilter g₁ g₁' (h x) L') (hh : HasDerivAtFilter h h' x L) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by simpa using ((hg.restrictScalars π•œ).comp x hh hL).hasDerivAtFilter #align has_deriv_at_filter.scomp HasDerivAtFilter.scomp theorem HasDerivAtFilter.scomp_of_eq (hg : HasDerivAtFilter g₁ g₁' y L') (hh : HasDerivAtFilter h h' x L) (hy : y = h x) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by rw [hy] at hg; exact hg.scomp x hh hL theorem HasDerivWithinAt.scomp_hasDerivAt (hg : HasDerivWithinAt g₁ g₁' s' (h x)) (hh : HasDerivAt h h' x) (hs : βˆ€ x, h x ∈ s') : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := hg.scomp x hh <| tendsto_inf.2 ⟨hh.continuousAt, tendsto_principal.2 <| eventually_of_forall hs⟩ #align has_deriv_within_at.scomp_has_deriv_at HasDerivWithinAt.scomp_hasDerivAt theorem HasDerivWithinAt.scomp_hasDerivAt_of_eq (hg : HasDerivWithinAt g₁ g₁' s' y) (hh : HasDerivAt h h' x) (hs : βˆ€ x, h x ∈ s') (hy : y = h x) : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by rw [hy] at hg; exact hg.scomp_hasDerivAt x hh hs nonrec theorem HasDerivWithinAt.scomp (hg : HasDerivWithinAt g₁ g₁' t' (h x)) (hh : HasDerivWithinAt h h' s x) (hst : MapsTo h s t') : HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x := hg.scomp x hh <| hh.continuousWithinAt.tendsto_nhdsWithin hst #align has_deriv_within_at.scomp HasDerivWithinAt.scomp theorem HasDerivWithinAt.scomp_of_eq (hg : HasDerivWithinAt g₁ g₁' t' y) (hh : HasDerivWithinAt h h' s x) (hst : MapsTo h s t') (hy : y = h x) : HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x := by rw [hy] at hg; exact hg.scomp x hh hst nonrec theorem HasDerivAt.scomp (hg : HasDerivAt g₁ g₁' (h x)) (hh : HasDerivAt h h' x) : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := hg.scomp x hh hh.continuousAt #align has_deriv_at.scomp HasDerivAt.scomp theorem HasDerivAt.scomp_of_eq (hg : HasDerivAt g₁ g₁' y) (hh : HasDerivAt h h' x) (hy : y = h x) : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by rw [hy] at hg; exact hg.scomp x hh
Mathlib/Analysis/Calculus/Deriv/Comp.lean
118
120
theorem HasStrictDerivAt.scomp (hg : HasStrictDerivAt g₁ g₁' (h x)) (hh : HasStrictDerivAt h h' x) : HasStrictDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by
simpa using ((hg.restrictScalars π•œ).comp x hh).hasStrictDerivAt
1,614
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} section Composition variable {π•œ' : Type*} [NontriviallyNormedField π•œ'] [NormedAlgebra π•œ π•œ'] [NormedSpace π•œ' F] [IsScalarTower π•œ π•œ' F] {s' t' : Set π•œ'} {h : π•œ β†’ π•œ'} {h₁ : π•œ β†’ π•œ} {hβ‚‚ : π•œ' β†’ π•œ'} {h' hβ‚‚' : π•œ'} {h₁' : π•œ} {g₁ : π•œ' β†’ F} {g₁' : F} {L' : Filter π•œ'} {y : π•œ'} (x) theorem HasDerivAtFilter.scomp (hg : HasDerivAtFilter g₁ g₁' (h x) L') (hh : HasDerivAtFilter h h' x L) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by simpa using ((hg.restrictScalars π•œ).comp x hh hL).hasDerivAtFilter #align has_deriv_at_filter.scomp HasDerivAtFilter.scomp theorem HasDerivAtFilter.scomp_of_eq (hg : HasDerivAtFilter g₁ g₁' y L') (hh : HasDerivAtFilter h h' x L) (hy : y = h x) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by rw [hy] at hg; exact hg.scomp x hh hL theorem HasDerivWithinAt.scomp_hasDerivAt (hg : HasDerivWithinAt g₁ g₁' s' (h x)) (hh : HasDerivAt h h' x) (hs : βˆ€ x, h x ∈ s') : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := hg.scomp x hh <| tendsto_inf.2 ⟨hh.continuousAt, tendsto_principal.2 <| eventually_of_forall hs⟩ #align has_deriv_within_at.scomp_has_deriv_at HasDerivWithinAt.scomp_hasDerivAt theorem HasDerivWithinAt.scomp_hasDerivAt_of_eq (hg : HasDerivWithinAt g₁ g₁' s' y) (hh : HasDerivAt h h' x) (hs : βˆ€ x, h x ∈ s') (hy : y = h x) : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by rw [hy] at hg; exact hg.scomp_hasDerivAt x hh hs nonrec theorem HasDerivWithinAt.scomp (hg : HasDerivWithinAt g₁ g₁' t' (h x)) (hh : HasDerivWithinAt h h' s x) (hst : MapsTo h s t') : HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x := hg.scomp x hh <| hh.continuousWithinAt.tendsto_nhdsWithin hst #align has_deriv_within_at.scomp HasDerivWithinAt.scomp theorem HasDerivWithinAt.scomp_of_eq (hg : HasDerivWithinAt g₁ g₁' t' y) (hh : HasDerivWithinAt h h' s x) (hst : MapsTo h s t') (hy : y = h x) : HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x := by rw [hy] at hg; exact hg.scomp x hh hst nonrec theorem HasDerivAt.scomp (hg : HasDerivAt g₁ g₁' (h x)) (hh : HasDerivAt h h' x) : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := hg.scomp x hh hh.continuousAt #align has_deriv_at.scomp HasDerivAt.scomp theorem HasDerivAt.scomp_of_eq (hg : HasDerivAt g₁ g₁' y) (hh : HasDerivAt h h' x) (hy : y = h x) : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by rw [hy] at hg; exact hg.scomp x hh theorem HasStrictDerivAt.scomp (hg : HasStrictDerivAt g₁ g₁' (h x)) (hh : HasStrictDerivAt h h' x) : HasStrictDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by simpa using ((hg.restrictScalars π•œ).comp x hh).hasStrictDerivAt #align has_strict_deriv_at.scomp HasStrictDerivAt.scomp
Mathlib/Analysis/Calculus/Deriv/Comp.lean
123
126
theorem HasStrictDerivAt.scomp_of_eq (hg : HasStrictDerivAt g₁ g₁' y) (hh : HasStrictDerivAt h h' x) (hy : y = h x) : HasStrictDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by
rw [hy] at hg; exact hg.scomp x hh
1,614
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} section Composition variable {π•œ' : Type*} [NontriviallyNormedField π•œ'] [NormedAlgebra π•œ π•œ'] [NormedSpace π•œ' F] [IsScalarTower π•œ π•œ' F] {s' t' : Set π•œ'} {h : π•œ β†’ π•œ'} {h₁ : π•œ β†’ π•œ} {hβ‚‚ : π•œ' β†’ π•œ'} {h' hβ‚‚' : π•œ'} {h₁' : π•œ} {g₁ : π•œ' β†’ F} {g₁' : F} {L' : Filter π•œ'} {y : π•œ'} (x) theorem HasDerivAtFilter.scomp (hg : HasDerivAtFilter g₁ g₁' (h x) L') (hh : HasDerivAtFilter h h' x L) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by simpa using ((hg.restrictScalars π•œ).comp x hh hL).hasDerivAtFilter #align has_deriv_at_filter.scomp HasDerivAtFilter.scomp theorem HasDerivAtFilter.scomp_of_eq (hg : HasDerivAtFilter g₁ g₁' y L') (hh : HasDerivAtFilter h h' x L) (hy : y = h x) (hL : Tendsto h L L') : HasDerivAtFilter (g₁ ∘ h) (h' β€’ g₁') x L := by rw [hy] at hg; exact hg.scomp x hh hL theorem HasDerivWithinAt.scomp_hasDerivAt (hg : HasDerivWithinAt g₁ g₁' s' (h x)) (hh : HasDerivAt h h' x) (hs : βˆ€ x, h x ∈ s') : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := hg.scomp x hh <| tendsto_inf.2 ⟨hh.continuousAt, tendsto_principal.2 <| eventually_of_forall hs⟩ #align has_deriv_within_at.scomp_has_deriv_at HasDerivWithinAt.scomp_hasDerivAt theorem HasDerivWithinAt.scomp_hasDerivAt_of_eq (hg : HasDerivWithinAt g₁ g₁' s' y) (hh : HasDerivAt h h' x) (hs : βˆ€ x, h x ∈ s') (hy : y = h x) : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by rw [hy] at hg; exact hg.scomp_hasDerivAt x hh hs nonrec theorem HasDerivWithinAt.scomp (hg : HasDerivWithinAt g₁ g₁' t' (h x)) (hh : HasDerivWithinAt h h' s x) (hst : MapsTo h s t') : HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x := hg.scomp x hh <| hh.continuousWithinAt.tendsto_nhdsWithin hst #align has_deriv_within_at.scomp HasDerivWithinAt.scomp theorem HasDerivWithinAt.scomp_of_eq (hg : HasDerivWithinAt g₁ g₁' t' y) (hh : HasDerivWithinAt h h' s x) (hst : MapsTo h s t') (hy : y = h x) : HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x := by rw [hy] at hg; exact hg.scomp x hh hst nonrec theorem HasDerivAt.scomp (hg : HasDerivAt g₁ g₁' (h x)) (hh : HasDerivAt h h' x) : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := hg.scomp x hh hh.continuousAt #align has_deriv_at.scomp HasDerivAt.scomp theorem HasDerivAt.scomp_of_eq (hg : HasDerivAt g₁ g₁' y) (hh : HasDerivAt h h' x) (hy : y = h x) : HasDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by rw [hy] at hg; exact hg.scomp x hh theorem HasStrictDerivAt.scomp (hg : HasStrictDerivAt g₁ g₁' (h x)) (hh : HasStrictDerivAt h h' x) : HasStrictDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by simpa using ((hg.restrictScalars π•œ).comp x hh).hasStrictDerivAt #align has_strict_deriv_at.scomp HasStrictDerivAt.scomp theorem HasStrictDerivAt.scomp_of_eq (hg : HasStrictDerivAt g₁ g₁' y) (hh : HasStrictDerivAt h h' x) (hy : y = h x) : HasStrictDerivAt (g₁ ∘ h) (h' β€’ g₁') x := by rw [hy] at hg; exact hg.scomp x hh theorem HasDerivAt.scomp_hasDerivWithinAt (hg : HasDerivAt g₁ g₁' (h x)) (hh : HasDerivWithinAt h h' s x) : HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x := HasDerivWithinAt.scomp x hg.hasDerivWithinAt hh (mapsTo_univ _ _) #align has_deriv_at.scomp_has_deriv_within_at HasDerivAt.scomp_hasDerivWithinAt
Mathlib/Analysis/Calculus/Deriv/Comp.lean
133
136
theorem HasDerivAt.scomp_hasDerivWithinAt_of_eq (hg : HasDerivAt g₁ g₁' y) (hh : HasDerivWithinAt h h' s x) (hy : y = h x) : HasDerivWithinAt (g₁ ∘ h) (h' β€’ g₁') s x := by
rw [hy] at hg; exact hg.scomp_hasDerivWithinAt x hh
1,614
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} section CompositionVector open ContinuousLinearMap variable {l : F β†’ E} {l' : F β†’L[π•œ] E} {y : F} variable (x) theorem HasFDerivWithinAt.comp_hasDerivWithinAt {t : Set F} (hl : HasFDerivWithinAt l l' t (f x)) (hf : HasDerivWithinAt f f' s x) (hst : MapsTo f s t) : HasDerivWithinAt (l ∘ f) (l' f') s x := by simpa only [one_apply, one_smul, smulRight_apply, coe_comp', (Β· ∘ Β·)] using (hl.comp x hf.hasFDerivWithinAt hst).hasDerivWithinAt #align has_fderiv_within_at.comp_has_deriv_within_at HasFDerivWithinAt.comp_hasDerivWithinAt
Mathlib/Analysis/Calculus/Deriv/Comp.lean
357
361
theorem HasFDerivWithinAt.comp_hasDerivWithinAt_of_eq {t : Set F} (hl : HasFDerivWithinAt l l' t y) (hf : HasDerivWithinAt f f' s x) (hst : MapsTo f s t) (hy : y = f x) : HasDerivWithinAt (l ∘ f) (l' f') s x := by
rw [hy] at hl; exact hl.comp_hasDerivWithinAt x hf hst
1,614
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} section CompositionVector open ContinuousLinearMap variable {l : F β†’ E} {l' : F β†’L[π•œ] E} {y : F} variable (x) theorem HasFDerivWithinAt.comp_hasDerivWithinAt {t : Set F} (hl : HasFDerivWithinAt l l' t (f x)) (hf : HasDerivWithinAt f f' s x) (hst : MapsTo f s t) : HasDerivWithinAt (l ∘ f) (l' f') s x := by simpa only [one_apply, one_smul, smulRight_apply, coe_comp', (Β· ∘ Β·)] using (hl.comp x hf.hasFDerivWithinAt hst).hasDerivWithinAt #align has_fderiv_within_at.comp_has_deriv_within_at HasFDerivWithinAt.comp_hasDerivWithinAt theorem HasFDerivWithinAt.comp_hasDerivWithinAt_of_eq {t : Set F} (hl : HasFDerivWithinAt l l' t y) (hf : HasDerivWithinAt f f' s x) (hst : MapsTo f s t) (hy : y = f x) : HasDerivWithinAt (l ∘ f) (l' f') s x := by rw [hy] at hl; exact hl.comp_hasDerivWithinAt x hf hst theorem HasFDerivAt.comp_hasDerivWithinAt (hl : HasFDerivAt l l' (f x)) (hf : HasDerivWithinAt f f' s x) : HasDerivWithinAt (l ∘ f) (l' f') s x := hl.hasFDerivWithinAt.comp_hasDerivWithinAt x hf (mapsTo_univ _ _) #align has_fderiv_at.comp_has_deriv_within_at HasFDerivAt.comp_hasDerivWithinAt
Mathlib/Analysis/Calculus/Deriv/Comp.lean
368
371
theorem HasFDerivAt.comp_hasDerivWithinAt_of_eq (hl : HasFDerivAt l l' y) (hf : HasDerivWithinAt f f' s x) (hy : y = f x) : HasDerivWithinAt (l ∘ f) (l' f') s x := by
rw [hy] at hl; exact hl.comp_hasDerivWithinAt x hf
1,614
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} section CompositionVector open ContinuousLinearMap variable {l : F β†’ E} {l' : F β†’L[π•œ] E} {y : F} variable (x) theorem HasFDerivWithinAt.comp_hasDerivWithinAt {t : Set F} (hl : HasFDerivWithinAt l l' t (f x)) (hf : HasDerivWithinAt f f' s x) (hst : MapsTo f s t) : HasDerivWithinAt (l ∘ f) (l' f') s x := by simpa only [one_apply, one_smul, smulRight_apply, coe_comp', (Β· ∘ Β·)] using (hl.comp x hf.hasFDerivWithinAt hst).hasDerivWithinAt #align has_fderiv_within_at.comp_has_deriv_within_at HasFDerivWithinAt.comp_hasDerivWithinAt theorem HasFDerivWithinAt.comp_hasDerivWithinAt_of_eq {t : Set F} (hl : HasFDerivWithinAt l l' t y) (hf : HasDerivWithinAt f f' s x) (hst : MapsTo f s t) (hy : y = f x) : HasDerivWithinAt (l ∘ f) (l' f') s x := by rw [hy] at hl; exact hl.comp_hasDerivWithinAt x hf hst theorem HasFDerivAt.comp_hasDerivWithinAt (hl : HasFDerivAt l l' (f x)) (hf : HasDerivWithinAt f f' s x) : HasDerivWithinAt (l ∘ f) (l' f') s x := hl.hasFDerivWithinAt.comp_hasDerivWithinAt x hf (mapsTo_univ _ _) #align has_fderiv_at.comp_has_deriv_within_at HasFDerivAt.comp_hasDerivWithinAt theorem HasFDerivAt.comp_hasDerivWithinAt_of_eq (hl : HasFDerivAt l l' y) (hf : HasDerivWithinAt f f' s x) (hy : y = f x) : HasDerivWithinAt (l ∘ f) (l' f') s x := by rw [hy] at hl; exact hl.comp_hasDerivWithinAt x hf theorem HasFDerivAt.comp_hasDerivAt (hl : HasFDerivAt l l' (f x)) (hf : HasDerivAt f f' x) : HasDerivAt (l ∘ f) (l' f') x := hasDerivWithinAt_univ.mp <| hl.comp_hasDerivWithinAt x hf.hasDerivWithinAt #align has_fderiv_at.comp_has_deriv_at HasFDerivAt.comp_hasDerivAt
Mathlib/Analysis/Calculus/Deriv/Comp.lean
382
385
theorem HasFDerivAt.comp_hasDerivAt_of_eq (hl : HasFDerivAt l l' y) (hf : HasDerivAt f f' x) (hy : y = f x) : HasDerivAt (l ∘ f) (l' f') x := by
rw [hy] at hl; exact hl.comp_hasDerivAt x hf
1,614
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} section CompositionVector open ContinuousLinearMap variable {l : F β†’ E} {l' : F β†’L[π•œ] E} {y : F} variable (x) theorem HasFDerivWithinAt.comp_hasDerivWithinAt {t : Set F} (hl : HasFDerivWithinAt l l' t (f x)) (hf : HasDerivWithinAt f f' s x) (hst : MapsTo f s t) : HasDerivWithinAt (l ∘ f) (l' f') s x := by simpa only [one_apply, one_smul, smulRight_apply, coe_comp', (Β· ∘ Β·)] using (hl.comp x hf.hasFDerivWithinAt hst).hasDerivWithinAt #align has_fderiv_within_at.comp_has_deriv_within_at HasFDerivWithinAt.comp_hasDerivWithinAt theorem HasFDerivWithinAt.comp_hasDerivWithinAt_of_eq {t : Set F} (hl : HasFDerivWithinAt l l' t y) (hf : HasDerivWithinAt f f' s x) (hst : MapsTo f s t) (hy : y = f x) : HasDerivWithinAt (l ∘ f) (l' f') s x := by rw [hy] at hl; exact hl.comp_hasDerivWithinAt x hf hst theorem HasFDerivAt.comp_hasDerivWithinAt (hl : HasFDerivAt l l' (f x)) (hf : HasDerivWithinAt f f' s x) : HasDerivWithinAt (l ∘ f) (l' f') s x := hl.hasFDerivWithinAt.comp_hasDerivWithinAt x hf (mapsTo_univ _ _) #align has_fderiv_at.comp_has_deriv_within_at HasFDerivAt.comp_hasDerivWithinAt theorem HasFDerivAt.comp_hasDerivWithinAt_of_eq (hl : HasFDerivAt l l' y) (hf : HasDerivWithinAt f f' s x) (hy : y = f x) : HasDerivWithinAt (l ∘ f) (l' f') s x := by rw [hy] at hl; exact hl.comp_hasDerivWithinAt x hf theorem HasFDerivAt.comp_hasDerivAt (hl : HasFDerivAt l l' (f x)) (hf : HasDerivAt f f' x) : HasDerivAt (l ∘ f) (l' f') x := hasDerivWithinAt_univ.mp <| hl.comp_hasDerivWithinAt x hf.hasDerivWithinAt #align has_fderiv_at.comp_has_deriv_at HasFDerivAt.comp_hasDerivAt theorem HasFDerivAt.comp_hasDerivAt_of_eq (hl : HasFDerivAt l l' y) (hf : HasDerivAt f f' x) (hy : y = f x) : HasDerivAt (l ∘ f) (l' f') x := by rw [hy] at hl; exact hl.comp_hasDerivAt x hf theorem HasStrictFDerivAt.comp_hasStrictDerivAt (hl : HasStrictFDerivAt l l' (f x)) (hf : HasStrictDerivAt f f' x) : HasStrictDerivAt (l ∘ f) (l' f') x := by simpa only [one_apply, one_smul, smulRight_apply, coe_comp', (Β· ∘ Β·)] using (hl.comp x hf.hasStrictFDerivAt).hasStrictDerivAt #align has_strict_fderiv_at.comp_has_strict_deriv_at HasStrictFDerivAt.comp_hasStrictDerivAt
Mathlib/Analysis/Calculus/Deriv/Comp.lean
393
396
theorem HasStrictFDerivAt.comp_hasStrictDerivAt_of_eq (hl : HasStrictFDerivAt l l' y) (hf : HasStrictDerivAt f f' x) (hy : y = f x) : HasStrictDerivAt (l ∘ f) (l' f') x := by
rw [hy] at hl; exact hl.comp_hasStrictDerivAt x hf
1,614
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} section CompositionVector open ContinuousLinearMap variable {l : F β†’ E} {l' : F β†’L[π•œ] E} {y : F} variable (x) theorem HasFDerivWithinAt.comp_hasDerivWithinAt {t : Set F} (hl : HasFDerivWithinAt l l' t (f x)) (hf : HasDerivWithinAt f f' s x) (hst : MapsTo f s t) : HasDerivWithinAt (l ∘ f) (l' f') s x := by simpa only [one_apply, one_smul, smulRight_apply, coe_comp', (Β· ∘ Β·)] using (hl.comp x hf.hasFDerivWithinAt hst).hasDerivWithinAt #align has_fderiv_within_at.comp_has_deriv_within_at HasFDerivWithinAt.comp_hasDerivWithinAt theorem HasFDerivWithinAt.comp_hasDerivWithinAt_of_eq {t : Set F} (hl : HasFDerivWithinAt l l' t y) (hf : HasDerivWithinAt f f' s x) (hst : MapsTo f s t) (hy : y = f x) : HasDerivWithinAt (l ∘ f) (l' f') s x := by rw [hy] at hl; exact hl.comp_hasDerivWithinAt x hf hst theorem HasFDerivAt.comp_hasDerivWithinAt (hl : HasFDerivAt l l' (f x)) (hf : HasDerivWithinAt f f' s x) : HasDerivWithinAt (l ∘ f) (l' f') s x := hl.hasFDerivWithinAt.comp_hasDerivWithinAt x hf (mapsTo_univ _ _) #align has_fderiv_at.comp_has_deriv_within_at HasFDerivAt.comp_hasDerivWithinAt theorem HasFDerivAt.comp_hasDerivWithinAt_of_eq (hl : HasFDerivAt l l' y) (hf : HasDerivWithinAt f f' s x) (hy : y = f x) : HasDerivWithinAt (l ∘ f) (l' f') s x := by rw [hy] at hl; exact hl.comp_hasDerivWithinAt x hf theorem HasFDerivAt.comp_hasDerivAt (hl : HasFDerivAt l l' (f x)) (hf : HasDerivAt f f' x) : HasDerivAt (l ∘ f) (l' f') x := hasDerivWithinAt_univ.mp <| hl.comp_hasDerivWithinAt x hf.hasDerivWithinAt #align has_fderiv_at.comp_has_deriv_at HasFDerivAt.comp_hasDerivAt theorem HasFDerivAt.comp_hasDerivAt_of_eq (hl : HasFDerivAt l l' y) (hf : HasDerivAt f f' x) (hy : y = f x) : HasDerivAt (l ∘ f) (l' f') x := by rw [hy] at hl; exact hl.comp_hasDerivAt x hf theorem HasStrictFDerivAt.comp_hasStrictDerivAt (hl : HasStrictFDerivAt l l' (f x)) (hf : HasStrictDerivAt f f' x) : HasStrictDerivAt (l ∘ f) (l' f') x := by simpa only [one_apply, one_smul, smulRight_apply, coe_comp', (Β· ∘ Β·)] using (hl.comp x hf.hasStrictFDerivAt).hasStrictDerivAt #align has_strict_fderiv_at.comp_has_strict_deriv_at HasStrictFDerivAt.comp_hasStrictDerivAt theorem HasStrictFDerivAt.comp_hasStrictDerivAt_of_eq (hl : HasStrictFDerivAt l l' y) (hf : HasStrictDerivAt f f' x) (hy : y = f x) : HasStrictDerivAt (l ∘ f) (l' f') x := by rw [hy] at hl; exact hl.comp_hasStrictDerivAt x hf theorem fderivWithin.comp_derivWithin {t : Set F} (hl : DifferentiableWithinAt π•œ l t (f x)) (hf : DifferentiableWithinAt π•œ f s x) (hs : MapsTo f s t) (hxs : UniqueDiffWithinAt π•œ s x) : derivWithin (l ∘ f) s x = (fderivWithin π•œ l t (f x) : F β†’ E) (derivWithin f s x) := (hl.hasFDerivWithinAt.comp_hasDerivWithinAt x hf.hasDerivWithinAt hs).derivWithin hxs #align fderiv_within.comp_deriv_within fderivWithin.comp_derivWithin
Mathlib/Analysis/Calculus/Deriv/Comp.lean
404
408
theorem fderivWithin.comp_derivWithin_of_eq {t : Set F} (hl : DifferentiableWithinAt π•œ l t y) (hf : DifferentiableWithinAt π•œ f s x) (hs : MapsTo f s t) (hxs : UniqueDiffWithinAt π•œ s x) (hy : y = f x) : derivWithin (l ∘ f) s x = (fderivWithin π•œ l t (f x) : F β†’ E) (derivWithin f s x) := by
rw [hy] at hl; exact fderivWithin.comp_derivWithin x hl hf hs hxs
1,614
import Mathlib.Analysis.Calculus.Deriv.Basic import Mathlib.Analysis.Calculus.FDeriv.Comp import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars #align_import analysis.calculus.deriv.comp from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set open ContinuousLinearMap (smulRight smulRight_one_eq_iff) variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} section CompositionVector open ContinuousLinearMap variable {l : F β†’ E} {l' : F β†’L[π•œ] E} {y : F} variable (x) theorem HasFDerivWithinAt.comp_hasDerivWithinAt {t : Set F} (hl : HasFDerivWithinAt l l' t (f x)) (hf : HasDerivWithinAt f f' s x) (hst : MapsTo f s t) : HasDerivWithinAt (l ∘ f) (l' f') s x := by simpa only [one_apply, one_smul, smulRight_apply, coe_comp', (Β· ∘ Β·)] using (hl.comp x hf.hasFDerivWithinAt hst).hasDerivWithinAt #align has_fderiv_within_at.comp_has_deriv_within_at HasFDerivWithinAt.comp_hasDerivWithinAt theorem HasFDerivWithinAt.comp_hasDerivWithinAt_of_eq {t : Set F} (hl : HasFDerivWithinAt l l' t y) (hf : HasDerivWithinAt f f' s x) (hst : MapsTo f s t) (hy : y = f x) : HasDerivWithinAt (l ∘ f) (l' f') s x := by rw [hy] at hl; exact hl.comp_hasDerivWithinAt x hf hst theorem HasFDerivAt.comp_hasDerivWithinAt (hl : HasFDerivAt l l' (f x)) (hf : HasDerivWithinAt f f' s x) : HasDerivWithinAt (l ∘ f) (l' f') s x := hl.hasFDerivWithinAt.comp_hasDerivWithinAt x hf (mapsTo_univ _ _) #align has_fderiv_at.comp_has_deriv_within_at HasFDerivAt.comp_hasDerivWithinAt theorem HasFDerivAt.comp_hasDerivWithinAt_of_eq (hl : HasFDerivAt l l' y) (hf : HasDerivWithinAt f f' s x) (hy : y = f x) : HasDerivWithinAt (l ∘ f) (l' f') s x := by rw [hy] at hl; exact hl.comp_hasDerivWithinAt x hf theorem HasFDerivAt.comp_hasDerivAt (hl : HasFDerivAt l l' (f x)) (hf : HasDerivAt f f' x) : HasDerivAt (l ∘ f) (l' f') x := hasDerivWithinAt_univ.mp <| hl.comp_hasDerivWithinAt x hf.hasDerivWithinAt #align has_fderiv_at.comp_has_deriv_at HasFDerivAt.comp_hasDerivAt theorem HasFDerivAt.comp_hasDerivAt_of_eq (hl : HasFDerivAt l l' y) (hf : HasDerivAt f f' x) (hy : y = f x) : HasDerivAt (l ∘ f) (l' f') x := by rw [hy] at hl; exact hl.comp_hasDerivAt x hf theorem HasStrictFDerivAt.comp_hasStrictDerivAt (hl : HasStrictFDerivAt l l' (f x)) (hf : HasStrictDerivAt f f' x) : HasStrictDerivAt (l ∘ f) (l' f') x := by simpa only [one_apply, one_smul, smulRight_apply, coe_comp', (Β· ∘ Β·)] using (hl.comp x hf.hasStrictFDerivAt).hasStrictDerivAt #align has_strict_fderiv_at.comp_has_strict_deriv_at HasStrictFDerivAt.comp_hasStrictDerivAt theorem HasStrictFDerivAt.comp_hasStrictDerivAt_of_eq (hl : HasStrictFDerivAt l l' y) (hf : HasStrictDerivAt f f' x) (hy : y = f x) : HasStrictDerivAt (l ∘ f) (l' f') x := by rw [hy] at hl; exact hl.comp_hasStrictDerivAt x hf theorem fderivWithin.comp_derivWithin {t : Set F} (hl : DifferentiableWithinAt π•œ l t (f x)) (hf : DifferentiableWithinAt π•œ f s x) (hs : MapsTo f s t) (hxs : UniqueDiffWithinAt π•œ s x) : derivWithin (l ∘ f) s x = (fderivWithin π•œ l t (f x) : F β†’ E) (derivWithin f s x) := (hl.hasFDerivWithinAt.comp_hasDerivWithinAt x hf.hasDerivWithinAt hs).derivWithin hxs #align fderiv_within.comp_deriv_within fderivWithin.comp_derivWithin theorem fderivWithin.comp_derivWithin_of_eq {t : Set F} (hl : DifferentiableWithinAt π•œ l t y) (hf : DifferentiableWithinAt π•œ f s x) (hs : MapsTo f s t) (hxs : UniqueDiffWithinAt π•œ s x) (hy : y = f x) : derivWithin (l ∘ f) s x = (fderivWithin π•œ l t (f x) : F β†’ E) (derivWithin f s x) := by rw [hy] at hl; exact fderivWithin.comp_derivWithin x hl hf hs hxs theorem fderiv.comp_deriv (hl : DifferentiableAt π•œ l (f x)) (hf : DifferentiableAt π•œ f x) : deriv (l ∘ f) x = (fderiv π•œ l (f x) : F β†’ E) (deriv f x) := (hl.hasFDerivAt.comp_hasDerivAt x hf.hasDerivAt).deriv #align fderiv.comp_deriv fderiv.comp_deriv
Mathlib/Analysis/Calculus/Deriv/Comp.lean
415
418
theorem fderiv.comp_deriv_of_eq (hl : DifferentiableAt π•œ l y) (hf : DifferentiableAt π•œ f x) (hy : y = f x) : deriv (l ∘ f) x = (fderiv π•œ l (f x) : F β†’ E) (deriv f x) := by
rw [hy] at hl; exact fderiv.comp_deriv x hl hf
1,614
import Mathlib.Analysis.Calculus.Deriv.Comp import Mathlib.Analysis.Calculus.FDeriv.Equiv #align_import analysis.calculus.deriv.inverse from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} theorem HasStrictDerivAt.hasStrictFDerivAt_equiv {f : π•œ β†’ π•œ} {f' x : π•œ} (hf : HasStrictDerivAt f f' x) (hf' : f' β‰  0) : HasStrictFDerivAt f (ContinuousLinearEquiv.unitsEquivAut π•œ (Units.mk0 f' hf') : π•œ β†’L[π•œ] π•œ) x := hf #align has_strict_deriv_at.has_strict_fderiv_at_equiv HasStrictDerivAt.hasStrictFDerivAt_equiv theorem HasDerivAt.hasFDerivAt_equiv {f : π•œ β†’ π•œ} {f' x : π•œ} (hf : HasDerivAt f f' x) (hf' : f' β‰  0) : HasFDerivAt f (ContinuousLinearEquiv.unitsEquivAut π•œ (Units.mk0 f' hf') : π•œ β†’L[π•œ] π•œ) x := hf #align has_deriv_at.has_fderiv_at_equiv HasDerivAt.hasFDerivAt_equiv theorem HasStrictDerivAt.of_local_left_inverse {f g : π•œ β†’ π•œ} {f' a : π•œ} (hg : ContinuousAt g a) (hf : HasStrictDerivAt f f' (g a)) (hf' : f' β‰  0) (hfg : βˆ€αΆ  y in 𝓝 a, f (g y) = y) : HasStrictDerivAt g f'⁻¹ a := (hf.hasStrictFDerivAt_equiv hf').of_local_left_inverse hg hfg #align has_strict_deriv_at.of_local_left_inverse HasStrictDerivAt.of_local_left_inverse theorem PartialHomeomorph.hasStrictDerivAt_symm (f : PartialHomeomorph π•œ π•œ) {a f' : π•œ} (ha : a ∈ f.target) (hf' : f' β‰  0) (htff' : HasStrictDerivAt f f' (f.symm a)) : HasStrictDerivAt f.symm f'⁻¹ a := htff'.of_local_left_inverse (f.symm.continuousAt ha) hf' (f.eventually_right_inverse ha) #align local_homeomorph.has_strict_deriv_at_symm PartialHomeomorph.hasStrictDerivAt_symm theorem HasDerivAt.of_local_left_inverse {f g : π•œ β†’ π•œ} {f' a : π•œ} (hg : ContinuousAt g a) (hf : HasDerivAt f f' (g a)) (hf' : f' β‰  0) (hfg : βˆ€αΆ  y in 𝓝 a, f (g y) = y) : HasDerivAt g f'⁻¹ a := (hf.hasFDerivAt_equiv hf').of_local_left_inverse hg hfg #align has_deriv_at.of_local_left_inverse HasDerivAt.of_local_left_inverse theorem PartialHomeomorph.hasDerivAt_symm (f : PartialHomeomorph π•œ π•œ) {a f' : π•œ} (ha : a ∈ f.target) (hf' : f' β‰  0) (htff' : HasDerivAt f f' (f.symm a)) : HasDerivAt f.symm f'⁻¹ a := htff'.of_local_left_inverse (f.symm.continuousAt ha) hf' (f.eventually_right_inverse ha) #align local_homeomorph.has_deriv_at_symm PartialHomeomorph.hasDerivAt_symm theorem HasDerivAt.eventually_ne (h : HasDerivAt f f' x) (hf' : f' β‰  0) : βˆ€αΆ  z in 𝓝[β‰ ] x, f z β‰  f x := (hasDerivAt_iff_hasFDerivAt.1 h).eventually_ne βŸ¨β€–f'‖⁻¹, fun z => by field_simp [norm_smul, mt norm_eq_zero.1 hf']⟩ #align has_deriv_at.eventually_ne HasDerivAt.eventually_ne theorem HasDerivAt.tendsto_punctured_nhds (h : HasDerivAt f f' x) (hf' : f' β‰  0) : Tendsto f (𝓝[β‰ ] x) (𝓝[β‰ ] f x) := tendsto_nhdsWithin_of_tendsto_nhds_of_eventually_within _ h.continuousAt.continuousWithinAt (h.eventually_ne hf') #align has_deriv_at.tendsto_punctured_nhds HasDerivAt.tendsto_punctured_nhds
Mathlib/Analysis/Calculus/Deriv/Inverse.lean
112
117
theorem not_differentiableWithinAt_of_local_left_inverse_hasDerivWithinAt_zero {f g : π•œ β†’ π•œ} {a : π•œ} {s t : Set π•œ} (ha : a ∈ s) (hsu : UniqueDiffWithinAt π•œ s a) (hf : HasDerivWithinAt f 0 t (g a)) (hst : MapsTo g s t) (hfg : f ∘ g =αΆ [𝓝[s] a] id) : Β¬DifferentiableWithinAt π•œ g s a := by
intro hg have := (hf.comp a hg.hasDerivWithinAt hst).congr_of_eventuallyEq_of_mem hfg.symm ha simpa using hsu.eq_deriv _ this (hasDerivWithinAt_id _ _)
1,615
import Mathlib.Analysis.Calculus.Deriv.Comp import Mathlib.Analysis.Calculus.FDeriv.Equiv #align_import analysis.calculus.deriv.inverse from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" universe u v w open scoped Classical open Topology Filter ENNReal open Filter Asymptotics Set variable {π•œ : Type u} [NontriviallyNormedField π•œ] variable {F : Type v} [NormedAddCommGroup F] [NormedSpace π•œ F] variable {E : Type w} [NormedAddCommGroup E] [NormedSpace π•œ E] variable {f fβ‚€ f₁ g : π•œ β†’ F} variable {f' fβ‚€' f₁' g' : F} variable {x : π•œ} variable {s t : Set π•œ} variable {L L₁ Lβ‚‚ : Filter π•œ} theorem HasStrictDerivAt.hasStrictFDerivAt_equiv {f : π•œ β†’ π•œ} {f' x : π•œ} (hf : HasStrictDerivAt f f' x) (hf' : f' β‰  0) : HasStrictFDerivAt f (ContinuousLinearEquiv.unitsEquivAut π•œ (Units.mk0 f' hf') : π•œ β†’L[π•œ] π•œ) x := hf #align has_strict_deriv_at.has_strict_fderiv_at_equiv HasStrictDerivAt.hasStrictFDerivAt_equiv theorem HasDerivAt.hasFDerivAt_equiv {f : π•œ β†’ π•œ} {f' x : π•œ} (hf : HasDerivAt f f' x) (hf' : f' β‰  0) : HasFDerivAt f (ContinuousLinearEquiv.unitsEquivAut π•œ (Units.mk0 f' hf') : π•œ β†’L[π•œ] π•œ) x := hf #align has_deriv_at.has_fderiv_at_equiv HasDerivAt.hasFDerivAt_equiv theorem HasStrictDerivAt.of_local_left_inverse {f g : π•œ β†’ π•œ} {f' a : π•œ} (hg : ContinuousAt g a) (hf : HasStrictDerivAt f f' (g a)) (hf' : f' β‰  0) (hfg : βˆ€αΆ  y in 𝓝 a, f (g y) = y) : HasStrictDerivAt g f'⁻¹ a := (hf.hasStrictFDerivAt_equiv hf').of_local_left_inverse hg hfg #align has_strict_deriv_at.of_local_left_inverse HasStrictDerivAt.of_local_left_inverse theorem PartialHomeomorph.hasStrictDerivAt_symm (f : PartialHomeomorph π•œ π•œ) {a f' : π•œ} (ha : a ∈ f.target) (hf' : f' β‰  0) (htff' : HasStrictDerivAt f f' (f.symm a)) : HasStrictDerivAt f.symm f'⁻¹ a := htff'.of_local_left_inverse (f.symm.continuousAt ha) hf' (f.eventually_right_inverse ha) #align local_homeomorph.has_strict_deriv_at_symm PartialHomeomorph.hasStrictDerivAt_symm theorem HasDerivAt.of_local_left_inverse {f g : π•œ β†’ π•œ} {f' a : π•œ} (hg : ContinuousAt g a) (hf : HasDerivAt f f' (g a)) (hf' : f' β‰  0) (hfg : βˆ€αΆ  y in 𝓝 a, f (g y) = y) : HasDerivAt g f'⁻¹ a := (hf.hasFDerivAt_equiv hf').of_local_left_inverse hg hfg #align has_deriv_at.of_local_left_inverse HasDerivAt.of_local_left_inverse theorem PartialHomeomorph.hasDerivAt_symm (f : PartialHomeomorph π•œ π•œ) {a f' : π•œ} (ha : a ∈ f.target) (hf' : f' β‰  0) (htff' : HasDerivAt f f' (f.symm a)) : HasDerivAt f.symm f'⁻¹ a := htff'.of_local_left_inverse (f.symm.continuousAt ha) hf' (f.eventually_right_inverse ha) #align local_homeomorph.has_deriv_at_symm PartialHomeomorph.hasDerivAt_symm theorem HasDerivAt.eventually_ne (h : HasDerivAt f f' x) (hf' : f' β‰  0) : βˆ€αΆ  z in 𝓝[β‰ ] x, f z β‰  f x := (hasDerivAt_iff_hasFDerivAt.1 h).eventually_ne βŸ¨β€–f'‖⁻¹, fun z => by field_simp [norm_smul, mt norm_eq_zero.1 hf']⟩ #align has_deriv_at.eventually_ne HasDerivAt.eventually_ne theorem HasDerivAt.tendsto_punctured_nhds (h : HasDerivAt f f' x) (hf' : f' β‰  0) : Tendsto f (𝓝[β‰ ] x) (𝓝[β‰ ] f x) := tendsto_nhdsWithin_of_tendsto_nhds_of_eventually_within _ h.continuousAt.continuousWithinAt (h.eventually_ne hf') #align has_deriv_at.tendsto_punctured_nhds HasDerivAt.tendsto_punctured_nhds theorem not_differentiableWithinAt_of_local_left_inverse_hasDerivWithinAt_zero {f g : π•œ β†’ π•œ} {a : π•œ} {s t : Set π•œ} (ha : a ∈ s) (hsu : UniqueDiffWithinAt π•œ s a) (hf : HasDerivWithinAt f 0 t (g a)) (hst : MapsTo g s t) (hfg : f ∘ g =αΆ [𝓝[s] a] id) : Β¬DifferentiableWithinAt π•œ g s a := by intro hg have := (hf.comp a hg.hasDerivWithinAt hst).congr_of_eventuallyEq_of_mem hfg.symm ha simpa using hsu.eq_deriv _ this (hasDerivWithinAt_id _ _) #align not_differentiable_within_at_of_local_left_inverse_has_deriv_within_at_zero not_differentiableWithinAt_of_local_left_inverse_hasDerivWithinAt_zero
Mathlib/Analysis/Calculus/Deriv/Inverse.lean
120
124
theorem not_differentiableAt_of_local_left_inverse_hasDerivAt_zero {f g : π•œ β†’ π•œ} {a : π•œ} (hf : HasDerivAt f 0 (g a)) (hfg : f ∘ g =αΆ [𝓝 a] id) : Β¬DifferentiableAt π•œ g a := by
intro hg have := (hf.comp a hg.hasDerivAt).congr_of_eventuallyEq hfg.symm simpa using this.unique (hasDerivAt_id a)
1,615
import Mathlib.Analysis.Calculus.ContDiff.Defs import Mathlib.Analysis.Calculus.FDeriv.Add import Mathlib.Analysis.Calculus.FDeriv.Mul import Mathlib.Analysis.Calculus.Deriv.Inverse #align_import analysis.calculus.cont_diff from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" noncomputable section open scoped Classical NNReal Nat local notation "∞" => (⊀ : β„•βˆž) universe u v w uD uE uF uG attribute [local instance 1001] NormedAddCommGroup.toAddCommGroup NormedSpace.toModule' AddCommGroup.toAddCommMonoid open Set Fin Filter Function open scoped Topology variable {π•œ : Type*} [NontriviallyNormedField π•œ] {D : Type uD} [NormedAddCommGroup D] [NormedSpace π•œ D] {E : Type uE} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type uF} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type uG} [NormedAddCommGroup G] [NormedSpace π•œ G] {X : Type*} [NormedAddCommGroup X] [NormedSpace π•œ X] {s s₁ t u : Set E} {f f₁ : E β†’ F} {g : F β†’ G} {x xβ‚€ : E} {c : F} {b : E Γ— F β†’ G} {m n : β„•βˆž} {p : E β†’ FormalMultilinearSeries π•œ E F} @[simp]
Mathlib/Analysis/Calculus/ContDiff/Basic.lean
62
70
theorem iteratedFDerivWithin_zero_fun (hs : UniqueDiffOn π•œ s) (hx : x ∈ s) {i : β„•} : iteratedFDerivWithin π•œ i (fun _ : E ↦ (0 : F)) s x = 0 := by
induction i generalizing x with | zero => ext; simp | succ i IH => ext m rw [iteratedFDerivWithin_succ_apply_left, fderivWithin_congr (fun _ ↦ IH) (IH hx)] rw [fderivWithin_const_apply _ (hs x hx)] rfl
1,616
import Mathlib.Analysis.Calculus.ContDiff.Defs import Mathlib.Analysis.Calculus.FDeriv.Add import Mathlib.Analysis.Calculus.FDeriv.Mul import Mathlib.Analysis.Calculus.Deriv.Inverse #align_import analysis.calculus.cont_diff from "leanprover-community/mathlib"@"3bce8d800a6f2b8f63fe1e588fd76a9ff4adcebe" noncomputable section open scoped Classical NNReal Nat local notation "∞" => (⊀ : β„•βˆž) universe u v w uD uE uF uG attribute [local instance 1001] NormedAddCommGroup.toAddCommGroup NormedSpace.toModule' AddCommGroup.toAddCommMonoid open Set Fin Filter Function open scoped Topology variable {π•œ : Type*} [NontriviallyNormedField π•œ] {D : Type uD} [NormedAddCommGroup D] [NormedSpace π•œ D] {E : Type uE} [NormedAddCommGroup E] [NormedSpace π•œ E] {F : Type uF} [NormedAddCommGroup F] [NormedSpace π•œ F] {G : Type uG} [NormedAddCommGroup G] [NormedSpace π•œ G] {X : Type*} [NormedAddCommGroup X] [NormedSpace π•œ X] {s s₁ t u : Set E} {f f₁ : E β†’ F} {g : F β†’ G} {x xβ‚€ : E} {c : F} {b : E Γ— F β†’ G} {m n : β„•βˆž} {p : E β†’ FormalMultilinearSeries π•œ E F} @[simp] theorem iteratedFDerivWithin_zero_fun (hs : UniqueDiffOn π•œ s) (hx : x ∈ s) {i : β„•} : iteratedFDerivWithin π•œ i (fun _ : E ↦ (0 : F)) s x = 0 := by induction i generalizing x with | zero => ext; simp | succ i IH => ext m rw [iteratedFDerivWithin_succ_apply_left, fderivWithin_congr (fun _ ↦ IH) (IH hx)] rw [fderivWithin_const_apply _ (hs x hx)] rfl @[simp] theorem iteratedFDeriv_zero_fun {n : β„•} : (iteratedFDeriv π•œ n fun _ : E ↦ (0 : F)) = 0 := funext fun x ↦ by simpa [← iteratedFDerivWithin_univ] using iteratedFDerivWithin_zero_fun uniqueDiffOn_univ (mem_univ x) #align iterated_fderiv_zero_fun iteratedFDeriv_zero_fun theorem contDiff_zero_fun : ContDiff π•œ n fun _ : E => (0 : F) := contDiff_of_differentiable_iteratedFDeriv fun m _ => by rw [iteratedFDeriv_zero_fun] exact differentiable_const (0 : E[Γ—m]β†’L[π•œ] F) #align cont_diff_zero_fun contDiff_zero_fun
Mathlib/Analysis/Calculus/ContDiff/Basic.lean
86
91
theorem contDiff_const {c : F} : ContDiff π•œ n fun _ : E => c := by
suffices h : ContDiff π•œ ∞ fun _ : E => c from h.of_le le_top rw [contDiff_top_iff_fderiv] refine ⟨differentiable_const c, ?_⟩ rw [fderiv_const] exact contDiff_zero_fun
1,616