cfahlgren1/math / lean /OAI /Probability /SKValue /Equations /ParametricChain.lean
cfahlgren1's picture
download
raw
3.07 kB
import Mathlib
namespace OAI
section
open MeasureTheory ProbabilityTheory Set Filter Asymptotics
open scoped Topology NNReal ENNReal BigOperators Convex
namespace SKValue
theorem parametric_spatial_error
{ฮฑ ๐•œ E F : Type*} [NontriviallyNormedField ๐•œ] [IsRCLikeNormedField ๐•œ] [NormedAddCommGroup E]
[NormedSpace โ„ E] [NormedSpace ๐•œ E] [NormedAddCommGroup F] [NormedSpace ๐•œ F]
{u : E} {v w : ฮฑ โ†’ E} {l : Filter ฮฑ} (hv : Tendsto v l (๐“ u)) (hw : Tendsto w l (๐“ u))
(s : Set E := Set.univ) (seg : โˆ€แถ  ฯ‡ in l, [w ฯ‡ -[โ„] v ฯ‡] โІ s := by simp)
{f : ฮฑ โ†’ E โ†’ F} {f' : ฮฑ โ†’ E โ†’ E โ†’L[๐•œ] F}
(df' : โˆ€แถ  p in l ร—หข ๐“[s] u, HasFDerivWithinAt (f p.1) (f' p.1 p.2) s p.2)
{ฯ† : E โ†’L[๐•œ] F} (cf' : Tendsto โ†ฟf' (l ร—หข ๐“[s] u) (๐“ ฯ†)) :
(fun ฯ‡ => f ฯ‡ (v ฯ‡) - f ฯ‡ (w ฯ‡) - ฯ† (v ฯ‡ - w ฯ‡)) =o[l] (fun ฯ‡ => v ฯ‡ - w ฯ‡) := by
rw [isLittleO_iff]
intro ฮต hฮต
replace df' : โˆ€แถ  ฯ‡ in l, โˆ€ z โˆˆ [w ฯ‡ -[โ„] v ฯ‡], HasFDerivWithinAt (f ฯ‡) (f' ฯ‡ z) s z :=
df'.segment_of_prod_nhdsWithin hw hv seg
replace cf' : โˆ€แถ  ฯ‡ in l, โˆ€ z โˆˆ [w ฯ‡ -[โ„] v ฯ‡], โ€–f' ฯ‡ z - ฯ†โ€– < ฮต := by
simp_rw [Metric.tendsto_nhds, dist_eq_norm_sub] at cf'
exact (cf' ฮต hฮต).segment_of_prod_nhdsWithin hw hv seg
filter_upwards [seg, df', cf'] with ฯ‡ seg df' cf'
exact Convex.norm_image_sub_le_of_norm_hasFDerivWithin_le'
(fun z hz => (df' z hz).mono seg) (fun z hz => (cf' z hz).le)
(convex_segment ..) (left_mem_segment ..) (right_mem_segment ..)
lemma hasDerivAt_parametric_comp {f fx : โ„ โ†’ โ„ โ†’ โ„} {ฯ† : โ„ โ†’ โ„} {t a b : โ„}
(hd : HasDerivAt (fun s โ†ฆ f s (ฯ† t)) a t) (hฯ† : HasDerivAt ฯ† b t)
(hx : โˆ€แถ  p : โ„ร—โ„ in ๐“ (t,ฯ† t), HasDerivAt (f p.1) (fx p.1 p.2) p.2)
(hc : ContinuousAt (fun p : โ„ร—โ„ โ†ฆ fx p.1 p.2) (t,ฯ† t)) :
HasDerivAt (fun s โ†ฆ f s (ฯ† s)) (a+fx t (ฯ† t)*b) t := by
have hsp := parametric_spatial_error hฯ†.continuousAt tendsto_const_nhds
(s := Set.univ) (seg := by simp) (f := f) (f' := fun s x โ†ฆ (1 : โ„ โ†’L[โ„] โ„).smulRight (fx s x))
(ฯ† := (1 : โ„ โ†’L[โ„] โ„).smulRight (fx t (ฯ† t)))
(df' := by
rw [nhdsWithin_univ,โ†nhds_prod_eq]
exact hx.mono (fun p hp โ†ฆ hp.hasFDerivAt.hasFDerivWithinAt))
(cf' := by
rw [nhdsWithin_univ,โ†nhds_prod_eq]
exact (ContinuousLinearMap.smulRightL โ„ โ„ โ„ 1).continuous.continuousAt.comp hc)
have hsmall := (hsp.trans_isBigO hฯ†.isBigO_sub).add
(hd.isLittleO.add (hฯ†.isLittleO.const_mul_left (fx t (ฯ† t))))
apply HasDerivAt.of_isLittleO
have heq : (fun s โ†ฆ f s (ฯ† s)-f s (ฯ† t)-
(1 : โ„ โ†’L[โ„] โ„).smulRight (fx t (ฯ† t)) (ฯ† s-ฯ† t) +
((f s (ฯ† t)-f t (ฯ† t)-(s-t) โ€ข a)+fx t (ฯ† t)*(ฯ† s-ฯ† t-(s-t) โ€ข b))) =
(fun s โ†ฆ f s (ฯ† s)-f t (ฯ† t)-(s-t) โ€ข (a+fx t (ฯ† t)*b)) := by
funext s
simp only [ContinuousLinearMap.smulRight_apply,one_apply_eq_self,smul_eq_mul]
ring
rw [heq] at hsmall
exact hsmall
end SKValue
end
end OAI

Xet Storage Details

Size:
3.07 kB
ยท
Xet hash:
1124c934319ebec431bd50fa432e2bb4e03c14645e6982d070945a7ad4f73618

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.