theoremcutFullVariance_biaffine (n : ℕ) (q : ℕ→RestCoordinate n →ℝ)
(U : ℕ) (l t : ℝ) (b h K : ℕ→ℝ) :
cutFullVariance n q U l t b h K = fun j i =>
cutFullVariance n q U00 b h K j i+t*cutTSlope n U0 b h K j i+
l*(cutLSlope n U0 b h K j i+t*cutLowError n U b h K j i) :=by
proof · 5
lines
funext j i
rcases i with (i | i) | (i | i) <;>
simp only [cutFullVariance,cutTSlope,cutLSlope,cutLowError,fullVariance,
rowInterpolationSlope,relocatedClock,Sum.elim_inl,Sum.elim_inr] <;>
split_ifs <;> simp_all <;> ring
theoremmixed_cutDisorderExpect (n : ℕ) (q : ℕ→RestCoordinate n →ℝ)
(U : ℕ) {l t : ℝ} (hl : l ∈Ioo (0:ℝ) 1) (ht : t ∈Ioo (0:ℝ) 1)
(b h K : ℕ→ℝ) (hq0 : ∀ j i, 0≤ q j i) (hq : ∀ i, Monotone (fun j => q j i))
(hb : ∀ j, 0≤ b j) (hh : ∀ j, 0≤ h j) (hK : ∀ j, 0≤K j)
(hbm : Monotone b) (hhm : Monotone h) (hKm : MonotoneK)
{as : ListPositiveMass} (T : ClockTree (Spin n ×Bool) as) (ho : MassOrdered0 as)
(P : T.Assignment→ℝ) (x : FullCoordinate n →ℝ) (k : ℕ) :
HasDerivAt (fun s => iteratedDeriv k (fun u =>T.disorderExpect (fullWeight n)
(fullFeature n) 0 (cutFullVariance n q U u s b h K) P x) l)
((ClockPolynomial.finiteMixedJet (T.testExpr P) (fullFeature n)
(cutLSlope n U0 b h K) (cutTSlope n U0 b h K) (cutLowError n U b h K) l k).finiteEval
(fullWeight n) (fullFeature n) t 0 (cutFullVariance n q U l t b h K) x) t :=by
proof · 26
lines
havehp : ∀ u ∈Ioo (0:ℝ) 1, ∀ s ∈Ioo (0:ℝ) 1, ∀ i,
Monotone (fun j => cutFullVariance n q U00 b h K j i+s*cutTSlope n U0 b h K j i+
u*(cutLSlope n U0 b h K j i+s*cutLowError n U b h K j i)) :=by
intro u hu s hs i
have hm := cutFullVariance_monotone n q U ⟨hu.1.le,hu.2.le⟩ ⟨hs.1.le,hs.2.le⟩
hq hb hh hK hbm hhm hKm i
rwa [cutFullVariance_biaffine] at hm
havehr : ∀ u ∈Ioo (0:ℝ) 1, ∀ s ∈Ioo (0:ℝ) 1, ∀ i,
(0 : FullCoordinate n →ℝ) i ≤ cutFullVariance n q U00 b h K0 i+
s*cutTSlope n U0 b h K0 i+
u*(cutLSlope n U0 b h K0 i+s*cutLowError n U b h K0 i) :=by
intro u hu s hs i
have hn := cutFullVariance_nonneg n q U ⟨hu.1.le,hu.2.le⟩ ⟨hs.1.le,hs.2.le⟩ hq0 hb hh hK 0 i
rw [cutFullVariance_biaffine] at hn
exact hn
have hd :=T.mixed_finiteDisorderExpect (fullWeight_pos n) (fullFeature n) ho 0
(cutFullVariance n q U00 b h K) (cutLSlope n U0 b h K) (cutTSlope n U0 b h K)
(cutLowError n U b h K) hp hr hl ht P x k
have he (u s : ℝ) : T.disorderExpect (fullWeight n) (fullFeature n) 0
(cutFullVariance n q U u s b h K) P x = T.disorderExpect (fullWeight n) (fullFeature n) 0
(fun j i => cutFullVariance n q U00 b h K j i+s*cutTSlope n U0 b h K j i+
u*(cutLSlope n U0 b h K j i+s*cutLowError n U b h K j i)) P x :=by
rw [cutFullVariance_biaffine]
simp only [he]
rw [cutFullVariance_biaffine n q U l t b h K]
exact hd
letF:=fun l => f₀ l+(1-l)*f₁ l+((1-l)^2/2)*f₂ l
havehc : ContinuousF:=by unfold F; fun_prop
have hd (l : ℝ) (hl : l ∈Ioo (0:ℝ) 1) :
HasDerivAtF ((1/2:ℝ)*((1-l)^2*f₃ l)) l :=byhavehs : HasDerivAt (funx : ℝ=>1-x) (-1) l :=by
convert (hasDerivAt_id l).const_sub 1using1; rfl
convert ((hd₀ l hl).add (hs.mul (hd₁ l hl))).add
(((hs.pow 2).div_const 2).mul (hd₂ l hl)) using1; try rfl
simp only [Pi.pow_apply]
ring
havehi : IntervalIntegrable (funl : ℝ=> (1/2:ℝ)*((1-l)^2*f₃ l)) volume 01:=by
apply Continuous.intervalIntegrable
fun_prop
haveH:= intervalIntegral.integral_eq_sub_of_hasDerivAt_of_le (bynorm_num : (0:ℝ) ≤1)
hc.continuousOn hd hi
rw [intervalIntegral.integral_const_mul] at H
dsimp [F] at H
norm_num at H
linarith
defcutLowJet (n : ℕ) (q : ℕ→RestCoordinate n →ℝ) (U : ℕ)
(b h K : ℕ→ℝ) {as : ListPositiveMass} (T : ClockTree (Spin n ×Bool) as)
(P : T.Assignment→ℝ) (x : FullCoordinate n →ℝ) (k : ℕ) (l t : ℝ) : ℝ:=
body · 3
lines
(ClockPolynomial.finiteLowJet (T.testExpr P) (fullFeature n)
(cutLSlope n U0 b h K) (cutLowError n U b h K) k).finiteEval
(fullWeight n) (fullFeature n) t 0 (cutFullVariance n q U l t b h K) x
defcutMixedJet (n : ℕ) (q : ℕ→RestCoordinate n →ℝ) (U : ℕ)
(b h K : ℕ→ℝ) {as : ListPositiveMass} (T : ClockTree (Spin n ×Bool) as)
(P : T.Assignment→ℝ) (x : FullCoordinate n →ℝ) (k : ℕ) (l t : ℝ) : ℝ:=
body · 3
lines
(ClockPolynomial.finiteMixedJet (T.testExpr P) (fullFeature n)
(cutLSlope n U0 b h K) (cutTSlope n U0 b h K) (cutLowError n U b h K) l k).finiteEval
(fullWeight n) (fullFeature n) t 0 (cutFullVariance n q U l t b h K) x
theoremcutFullVariance_continuous_l (n : ℕ) (q : ℕ→RestCoordinate n →ℝ)
(U : ℕ) (b h K : ℕ→ℝ) (t : ℝ) (j : ℕ) :
Continuous (fun l => cutFullVariance n q U l t b h K j) :=by
theoremcutFullVariance_continuous_t (n : ℕ) (q : ℕ→RestCoordinate n →ℝ)
(U : ℕ) (b h K : ℕ→ℝ) (l : ℝ) (j : ℕ) :
Continuous (fun t => cutFullVariance n q U l t b h K j) :=by
theoremcutLowJet_continuous_l (n : ℕ) (q : ℕ→RestCoordinate n →ℝ) (U : ℕ)
(b h K : ℕ→ℝ) {as : ListPositiveMass} (T : ClockTree (Spin n ×Bool) as)
(P : T.Assignment→ℝ) (x : FullCoordinate n →ℝ) (k : ℕ) (t : ℝ) :
Continuous (fun l => cutLowJet n q U b h KTP x k l t) :=by
proof · 3
lines
exact ClockPolynomial.finiteEval_continuous (fullWeight_pos n) (fullFeature n) _
(fun _ => t) continuous_const 0 _ (cutFullVariance_continuous_l n q U b h K t)
(fun _ => x) continuous_const
theoremcutLowJet_continuous_t (n : ℕ) (q : ℕ→RestCoordinate n →ℝ) (U : ℕ)
(b h K : ℕ→ℝ) {as : ListPositiveMass} (T : ClockTree (Spin n ×Bool) as)
(P : T.Assignment→ℝ) (x : FullCoordinate n →ℝ) (k : ℕ) (l : ℝ) :
Continuous (cutLowJet n q U b h KTP x k l) :=by
proof · 3
lines
exact ClockPolynomial.finiteEval_continuous (fullWeight_pos n) (fullFeature n) _
id continuous_id 0 _ (cutFullVariance_continuous_t n q U b h K l)
(fun _ => x) continuous_const
theoremcutMixedJet_continuous_t (n : ℕ) (q : ℕ→RestCoordinate n →ℝ) (U : ℕ)
(b h K : ℕ→ℝ) {as : ListPositiveMass} (T : ClockTree (Spin n ×Bool) as)
(P : T.Assignment→ℝ) (x : FullCoordinate n →ℝ) (k : ℕ) (l : ℝ) :
Continuous (cutMixedJet n q U b h KTP x k l) :=by
proof · 3
lines
exact ClockPolynomial.finiteEval_continuous (fullWeight_pos n) (fullFeature n) _
id continuous_id 0 _ (cutFullVariance_continuous_t n q U b h K l)
(fun _ => x) continuous_const
theoremcutLowJet_zero (n : ℕ) (q : ℕ→RestCoordinate n →ℝ) (U : ℕ)
(b h K : ℕ→ℝ) {as : ListPositiveMass} (T : ClockTree (Spin n ×Bool) as)
(ho : MassOrdered0 as) (P : T.Assignment→ℝ) (x : FullCoordinate n →ℝ) (l t : ℝ) :
cutLowJet n q U b h KTP x 0 l t =
T.disorderExpect (fullWeight n) (fullFeature n) 0 (cutFullVariance n q U l t b h K) P x :=by
proof · 11
lines
unfold cutLowJet ClockPolynomial.finiteLowJet ClockPolynomial.finiteEval
simp only [ClockPolynomial.lowJet,ClockPolynomial.rootEval,List.map_cons,List.map_nil,
List.sum_cons,List.sum_nil,Polynomial.eval_one,one_mul,add_zero]
rw [ClockTree.rootEval_testExpr (fullWeight_pos n)
(reindexFeature (finiteJetEquiv (FullCoordinate n)) (fullFeature n)) T ho
(fun i => (0 : FullCoordinate n →ℝ) (finiteJetEquiv _ i))
(fun j i => cutFullVariance n q U l t b h K j (finiteJetEquiv _ i)) P
((coordinateEquiv (finiteJetEquiv (FullCoordinate n))).symm x)]
simpa only [ContinuousLinearEquiv.apply_symm_apply] usingT.disorderExpect_reindex (finiteJetEquiv (FullCoordinate n)) (fullWeight n) (fullFeature n)
0 (cutFullVariance n q U l t b h K) P ((coordinateEquiv (finiteJetEquiv _)).symm x)
theoremcutLowJet_hasDerivAt_l (n : ℕ) (q : ℕ→RestCoordinate n →ℝ)
(U : ℕ) {l t : ℝ} (hl : l ∈Ioo (0:ℝ) 1) (ht : t ∈Icc (0:ℝ) 1)
(b h K : ℕ→ℝ) (hq0 : ∀ j i, 0≤ q j i) (hq : ∀ i, Monotone (fun j => q j i))
(hb : ∀ j, 0≤ b j) (hh : ∀ j, 0≤ h j) (hK : ∀ j, 0≤K j)
(hbm : Monotone b) (hhm : Monotone h) (hKm : MonotoneK)
{as : ListPositiveMass} (T : ClockTree (Spin n ×Bool) as) (ho : MassOrdered0 as)
(P : T.Assignment→ℝ) (x : FullCoordinate n →ℝ) (k : ℕ) :
HasDerivAt (fun s => cutLowJet n q U b h KTP x k s t)
(cutLowJet n q U b h KTP x (k+1) l t) l :=by
proof · 22
lines
havehp : ∀ s ∈Ioo (0:ℝ) 1, ∀ i, Monotone (fun j =>
(cutFullVariance n q U00 b h K j i+t*cutTSlope n U0 b h K j i)+
s*(cutLSlope n U0 b h K j i+t*cutLowError n U b h K j i)) :=by
intro s hs i
have h := cutFullVariance_monotone n q U ⟨hs.1.le,hs.2.le⟩ ht hq hb hh hK hbm hhm hKm i
rwa [cutFullVariance_biaffine] at h
havehr : ∀ s ∈Ioo (0:ℝ) 1, ∀ i, (0 : FullCoordinate n →ℝ) i ≤
(cutFullVariance n q U00 b h K0 i+t*cutTSlope n U0 b h K0 i)+
s*(cutLSlope n U0 b h K0 i+t*cutLowError n U b h K0 i) :=by
intro s hs i
have h := cutFullVariance_nonneg n q U ⟨hs.1.le,hs.2.le⟩ ht hq0 hb hh hK 0 i
rw [cutFullVariance_biaffine] at h
exact h
have hd :=ClockPolynomial.finiteLowJet_hasDerivAt_low (fullWeight_pos n) (fullFeature n)
(T.testExpr P) ho 0
(fun j i => cutFullVariance n q U00 b h K j i+t*cutTSlope n U0 b h K j i)
(cutLSlope n U0 b h K) (cutLowError n U b h K) k t hp hr hl x
have he (s : ℝ) : (fun j i => cutFullVariance n q U00 b h K j i+
t*cutTSlope n U0 b h K j i+s*(cutLSlope n U0 b h K j i+t*cutLowError n U b h K j i)) =
cutFullVariance n q U s t b h K:= (cutFullVariance_biaffine n q U s t b h K).symm
simp only [he] at hd
exact hd
theoremcutLowJet_hasDerivAt_t (n : ℕ) (q : ℕ→RestCoordinate n →ℝ)
(U : ℕ) {l t : ℝ} (hl : l ∈Icc (0:ℝ) 1) (ht : t ∈Ioo (0:ℝ) 1)
(b h K : ℕ→ℝ) (hq0 : ∀ j i, 0≤ q j i) (hq : ∀ i, Monotone (fun j => q j i))
(hb : ∀ j, 0≤ b j) (hh : ∀ j, 0≤ h j) (hK : ∀ j, 0≤K j)
(hbm : Monotone b) (hhm : Monotone h) (hKm : MonotoneK)
{as : ListPositiveMass} (T : ClockTree (Spin n ×Bool) as) (ho : MassOrdered0 as)
(P : T.Assignment→ℝ) (x : FullCoordinate n →ℝ) (k : ℕ) :
HasDerivAt (cutLowJet n q U b h KTP x k l)
(cutMixedJet n q U b h KTP x k l t) t :=by
proof · 21
lines
havehp : ∀ s ∈Ioo (0:ℝ) 1, ∀ i, Monotone (fun j =>
cutFullVariance n q U00 b h K j i+s*cutTSlope n U0 b h K j i+
l*(cutLSlope n U0 b h K j i+s*cutLowError n U b h K j i)) :=by
intro s hs i
have h := cutFullVariance_monotone n q U hl ⟨hs.1.le,hs.2.le⟩ hq hb hh hK hbm hhm hKm i
rwa [cutFullVariance_biaffine] at h
havehr : ∀ s ∈Ioo (0:ℝ) 1, ∀ i, (0 : FullCoordinate n →ℝ) i ≤
cutFullVariance n q U00 b h K0 i+s*cutTSlope n U0 b h K0 i+
l*(cutLSlope n U0 b h K0 i+s*cutLowError n U b h K0 i) :=by
intro s hs i
have h := cutFullVariance_nonneg n q U hl ⟨hs.1.le,hs.2.le⟩ hq0 hb hh hK 0 i
rw [cutFullVariance_biaffine] at h
exact h
have hd :=ClockPolynomial.finiteLowJet_hasDerivAt_high (fullWeight_pos n) (fullFeature n)
(T.testExpr P) ho 0 (cutFullVariance n q U00 b h K)
(cutLSlope n U0 b h K) (cutTSlope n U0 b h K) (cutLowError n U b h K) k l hp hr ht x
have he (s : ℝ) : (fun j i => cutFullVariance n q U00 b h K j i+
s*cutTSlope n U0 b h K j i+l*(cutLSlope n U0 b h K j i+s*cutLowError n U b h K j i)) =
cutFullVariance n q U l s b h K:= (cutFullVariance_biaffine n q U l s b h K).symm
simp only [he] at hd
exact hd
theoremcutDisorderExpect_third_remainder (n : ℕ) (q : ℕ→RestCoordinate n →ℝ)
(U : ℕ) {t : ℝ} (ht : t ∈Icc (0:ℝ) 1)
(b h K : ℕ→ℝ) (hq0 : ∀ j i, 0≤ q j i) (hq : ∀ i, Monotone (fun j => q j i))
(hb : ∀ j, 0≤ b j) (hh : ∀ j, 0≤ h j) (hK : ∀ j, 0≤K j)
(hbm : Monotone b) (hhm : Monotone h) (hKm : MonotoneK)
{as : ListPositiveMass} (T : ClockTree (Spin n ×Bool) as) (ho : MassOrdered0 as)
(P : T.Assignment→ℝ) (x : FullCoordinate n →ℝ) :
T.disorderExpect (fullWeight n) (fullFeature n) 0 (cutFullVariance n q U1 t b h K) P x =
cutLowJet n q U b h KTP x 00 t+cutLowJet n q U b h KTP x 10 t+
(1/2:ℝ)*cutLowJet n q U b h KTP x 20 t+
(1/2:ℝ)*∫ l in (0:ℝ)..1, (1-l)^2*cutLowJet n q U b h KTP x 3 l t :=by
proof · 12
lines
rw [← cutLowJet_zero n q U b h KT ho P x 1 t]
apply third_low_remainder (fun l => cutLowJet n q U b h KTP x 0 l t)
(fun l => cutLowJet n q U b h KTP x 1 l t)
(fun l => cutLowJet n q U b h KTP x 2 l t)
(fun l => cutLowJet n q U b h KTP x 3 l t)
· exact cutLowJet_continuous_l n q U b h KTP x 0 t
· exact cutLowJet_continuous_l n q U b h KTP x 1 t
· exact cutLowJet_continuous_l n q U b h KTP x 2 t
· exact cutLowJet_continuous_l n q U b h KTP x 3 t
· intro l hl; exact cutLowJet_hasDerivAt_l n q U hl ht b h K hq0 hq hb hh hK hbm hhm hKm T ho P x 0
· intro l hl; exact cutLowJet_hasDerivAt_l n q U hl ht b h K hq0 hq hb hh hK hbm hhm hKm T ho P x 1
· intro l hl; exact cutLowJet_hasDerivAt_l n q U hl ht b h K hq0 hq hb hh hK hbm hhm hKm T ho P x 2
theoremcutFullVariance_scalar_endpoint (n : ℕ) (q : ℕ→RestCoordinate n →ℝ)
(U : ℕ) (l : ℝ) (b h K : ℕ→ℝ) :
cutFullVariance n q U l 0 b h K = fun j =>Sum.elim (Sum.elim (q j) (fun _ => relocatedClock U l K j)) (fun _ =>0) :=by
proof · 2
lines
funext j i
rcases i with (i | i) | (i | i) <;> simp [cutFullVariance,fullVariance]
theoremcutDisorderExpect_rest_endpoint (n : ℕ) (q : ℕ→RestCoordinate n →ℝ)
(U : ℕ) (l : ℝ) (b h K : ℕ→ℝ) {as : ListPositiveMass}
(T : ClockTree (Spin n ×Bool) as) (ho : MassOrdered0 as)
(P : T.cavityLeft.Assignment→ℝ) (x : ActiveCoordinate n →ℝ) :
T.disorderExpect (fullWeight n) (fullFeature n) 0 (cutFullVariance n q U l 0 b h K)
(fun σ =>P (T.cavityAssignment σ).1) (cavityEmbed x) =
T.cavityLeft.disorderExpect (restWeight n) (restFeature n) 0 q P (fun i => x (.inl i)) :=by
proof · 3
lines
have he := cutDisorderExpect_scalar_product n q U l b h KT ho P (fun _ =>1) x
rw [T.cavityRight.disorderExpect_one (by intro s; norm_num) scalarFeature ho] at he
simpa only [mul_one] using he
theoremcutDisorderExpect_site_endpoint (n : ℕ) (q : ℕ→RestCoordinate n →ℝ)
(U : ℕ) (l : ℝ) (b h K : ℕ→ℝ) {as : ListPositiveMass}
(T : ClockTree (Spin n ×Bool) as) (ho : MassOrdered0 as)
(Q : T.cavityRight.Assignment→ℝ) (x : ActiveCoordinate n →ℝ) :
T.disorderExpect (fullWeight n) (fullFeature n) 0 (cutFullVariance n q U l 0 b h K)
(fun σ =>Q (T.cavityAssignment σ).2) (cavityEmbed x) =
T.cavityRight.disorderExpect (fun_ : Bool=> (1/2:ℝ)) scalarFeature 0
(fun j _ => relocatedClock U l K j) Q (fun i => x (.inr i)) :=by
proof · 3
lines
have he := cutDisorderExpect_scalar_product n q U l b h KT ho (fun _ =>1) Q x
rw [T.cavityLeft.disorderExpect_one (restWeight_pos n) (restFeature n) ho] at he
simpa only [one_mul] using he
theoremcutDisorderExpect_centered_endpoint (n : ℕ) (q : ℕ→RestCoordinate n →ℝ)
(U : ℕ) (l : ℝ) (b h K : ℕ→ℝ) {as : ListPositiveMass}
(T : ClockTree (Spin n ×Bool) as) (ho : MassOrdered0 as)
(P : T.cavityLeft.Assignment→ℝ) (Q : T.cavityRight.Assignment→ℝ)
(x : ActiveCoordinate n →ℝ) :
T.disorderExpect (fullWeight n) (fullFeature n) 0 (cutFullVariance n q U l 0 b h K)
(fun σ =>P (T.cavityAssignment σ).1*Q (T.cavityAssignment σ).2) (cavityEmbed x) -
T.disorderExpect (fullWeight n) (fullFeature n) 0 (cutFullVariance n q U l 0 b h K)
(fun σ =>Q (T.cavityAssignment σ).2) (cavityEmbed x)*
T.disorderExpect (fullWeight n) (fullFeature n) 0 (cutFullVariance n q U l 0 b h K)
(fun σ =>P (T.cavityAssignment σ).1) (cavityEmbed x) = 0:=by
proof · 4
lines
rw [cutDisorderExpect_scalar_product n q U l b h KT ho,
cutDisorderExpect_site_endpoint n q U l b h KT ho,
cutDisorderExpect_rest_endpoint n q U l b h KT ho]
ring
theoremproductJet3_hasDerivAt (g f : Fin4→ℝ→ℝ) {l : ℝ}
(hg : ∀i : Fin3, HasDerivAt (g i.castSucc) (g i.succ l) l)
(hf : ∀i : Fin3, HasDerivAt (f i.castSucc) (f i.succ l) l) (k : Fin3) :
HasDerivAt (fun s => productJet3 (fun i => g i s) (fun i => f i s) k.castSucc)
(productJet3 (fun i => g i l) (fun i => f i l) k.succ) l :=by
theoremproductJet3_continuous {X : Type*} [TopologicalSpaceX]
(g f : Fin4→X→ℝ) (hg : ∀ i, Continuous (g i)) (hf : ∀ i, Continuous (f i))
(k : Fin4) : Continuous (fun x => productJet3 (fun i => g i x) (fun i => f i x) k) :=by
theoremderivative_zero_of_zero (f g : ℝ→ℝ)
(hd : ∀ l ∈Ioo (0:ℝ) 1, HasDerivAt f (g l) l)
(hz : ∀ l ∈Ioo (0:ℝ) 1, f l = 0) : ∀ l ∈Ioo (0:ℝ) 1, g l = 0:=by
proof · 5
lines
intro l hl
apply (hd l hl).unique
apply (hasDerivAt_const l (0:ℝ)).congr_of_eventuallyEq
filter_upwards [isOpen_Ioo.mem_nhds hl] with s hs
exact hz s hs
cutLowJet n q U b h KT (fun σ =>P (T.cavityAssignment σ).1*Q (T.cavityAssignment σ).2)
(cavityEmbed x) k l t -
productJet3
(fun i => cutLowJet n q U b h KT (fun σ =>Q (T.cavityAssignment σ).2) (cavityEmbed x) i l 0)
(fun i => cutLowJet n q U b h KT (fun σ =>P (T.cavityAssignment σ).1) (cavityEmbed x) i l t) k
cutMixedJet n q U b h KT (fun σ =>P (T.cavityAssignment σ).1*Q (T.cavityAssignment σ).2)
(cavityEmbed x) k l t -
productJet3
(fun i => cutLowJet n q U b h KT (fun σ =>Q (T.cavityAssignment σ).2) (cavityEmbed x) i l 0)
(fun i => cutMixedJet n q U b h KT (fun σ =>P (T.cavityAssignment σ).1) (cavityEmbed x) i l t) k
theoremcutCenteredJet_continuous_l (k : Fin4) (t : ℝ) :
Continuous (fun l => cutCenteredJet n q U b h KTPQ x k l t) :=by
proof · 4
lines
apply (cutLowJet_continuous_l n q U b h KT _ _ _ _).sub
exact productJet3_continuous _ _
(fun _ => cutLowJet_continuous_l n q U b h KT _ _ _ _)
(fun _ => cutLowJet_continuous_l n q U b h KT _ _ _ _) k
theoremcutCenteredJet_continuous_t (k : Fin4) (l : ℝ) :
Continuous (cutCenteredJet n q U b h KTPQ x k l) :=by
proof · 3
lines
apply (cutLowJet_continuous_t n q U b h KT _ _ _ _).sub
exact productJet3_continuous _ _ (fun _ => continuous_const)
(fun _ => cutLowJet_continuous_t n q U b h KT _ _ _ _) k
theoremcutCenteredMixedJet_continuous_t (k : Fin4) (l : ℝ) :
Continuous (cutCenteredMixedJet n q U b h KTPQ x k l) :=by
proof · 3
lines
apply (cutMixedJet_continuous_t n q U b h KT _ _ _ _).sub
exact productJet3_continuous _ _ (fun _ => continuous_const)
(fun _ => cutMixedJet_continuous_t n q U b h KT _ _ _ _) k
theoremcutCenteredJet_hasDerivAt_l (k : Fin3) {l t : ℝ}
(hl : l ∈Ioo (0:ℝ) 1) (ht : t ∈Icc (0:ℝ) 1) :
HasDerivAt (fun s => cutCenteredJet n q U b h KTPQ x k.castSucc s t)
(cutCenteredJet n q U b h KTPQ x k.succ l t) l :=by
proof · 4
lines
apply (cutLowJet_hasDerivAt_l n q U hl ht b h K hq0 hq hb hh hK hbm hhm hKm T ho _ _ _).sub
exact productJet3_hasDerivAt _ _
(fun _ => cutLowJet_hasDerivAt_l n q U hl (by norm_num) b h K hq0 hq hb hh hK hbm hhm hKm T ho _ _ _)
(fun _ => cutLowJet_hasDerivAt_l n q U hl ht b h K hq0 hq hb hh hK hbm hhm hKm T ho _ _ _) k
theoremcutCenteredJet_hasDerivAt_t (k : Fin4) {l t : ℝ}
(hl : l ∈Icc (0:ℝ) 1) (ht : t ∈Ioo (0:ℝ) 1) :
HasDerivAt (cutCenteredJet n q U b h KTPQ x k l)
(cutCenteredMixedJet n q U b h KTPQ x k l t) t :=by
proof · 3
lines
apply (cutLowJet_hasDerivAt_t n q U hl ht b h K hq0 hq hb hh hK hbm hhm hKm T ho _ _ _).sub
exact productJet3_hasDerivAt_right _ _ _
(fun _ => cutLowJet_hasDerivAt_t n q U hl ht b h K hq0 hq hb hh hK hbm hhm hKm T ho _ _ _) k
theoremcutCenteredJet_zero_endpoint (k : Fin4) {l : ℝ} (hl : l ∈Icc (0:ℝ) 1) :
cutCenteredJet n q U b h KTPQ x k l 0 = 0:=by
proof · 8
lines
apply thirdJet_zero_of_zero (fun k l => cutCenteredJet n q U b h KTPQ x k l 0)
(fun _ => cutCenteredJet_continuous_l n q U b h KTPQ x _ 0)
(fun _ _ hl => cutCenteredJet_hasDerivAt_l n q U b h KTPQ x hq0 hq hb hh hK hbm hhm hKm ho _ hl (by norm_num))
_ k l hl
intro s hs
simp only [cutCenteredJet, productJet3, Fin.val_zero]
simp only [cutLowJet_zero n q U b h KT ho]
exact cutDisorderExpect_centered_endpoint n q U s b h KT ho PQ x
theoremcutCenteredJet_third_mixed_remainder :
cutCenteredJet n q U b h KTPQ x 011 =
cutCenteredJet n q U b h KTPQ x 001+
cutCenteredJet n q U b h KTPQ x 101+
(1/2:ℝ)*cutCenteredJet n q U b h KTPQ x 201+
(1/2:ℝ)*∫ l in (0:ℝ)..1, (1-l)^2*∫ t in (0:ℝ)..1,
cutCenteredMixedJet n q U b h KTPQ x 3 l t :=by
proof · 17
lines
apply third_low_mixed_remainder
(fun l => cutCenteredJet n q U b h KTPQ x 0 l 1)
(fun l => cutCenteredJet n q U b h KTPQ x 1 l 1)
(fun l => cutCenteredJet n q U b h KTPQ x 2 l 1)
(cutCenteredJet n q U b h KTPQ x 3)
(cutCenteredMixedJet n q U b h KTPQ x 3)
· exact cutCenteredJet_continuous_l n q U b h KTPQ x 01
· exact cutCenteredJet_continuous_l n q U b h KTPQ x 11
· exact cutCenteredJet_continuous_l n q U b h KTPQ x 21
· exact cutCenteredJet_continuous_l n q U b h KTPQ x 31
· intro l _; exact cutCenteredJet_continuous_t n q U b h KTPQ x 3 l
· intro l _; exact cutCenteredMixedJet_continuous_t n q U b h KTPQ x 3 l
· intro l hl; exact cutCenteredJet_hasDerivAt_l n q U b h KTPQ x hq0 hq hb hh hK hbm hhm hKm ho 0 hl (by norm_num)
· intro l hl; exact cutCenteredJet_hasDerivAt_l n q U b h KTPQ x hq0 hq hb hh hK hbm hhm hKm ho 1 hl (by norm_num)
· intro l hl; exact cutCenteredJet_hasDerivAt_l n q U b h KTPQ x hq0 hq hb hh hK hbm hhm hKm ho 2 hl (by norm_num)
· intro l hl t ht; exact cutCenteredJet_hasDerivAt_t n q U b h KTPQ x hq0 hq hb hh hK hbm hhm hKm ho 3 hl ht
· intro l hl; exact cutCenteredJet_zero_endpoint n q U b h KTPQ x hq0 hq hb hh hK hbm hhm hKm ho 3 hl
letF:=fun t => f₀ t+(1-t)*f₁ t
havehc : ContinuousF:=by unfold F; fun_prop
have hd (t : ℝ) (ht : t ∈Ioo (0:ℝ) 1) : HasDerivAtF ((1-t)*f₂ t) t :=byhavehs : HasDerivAt (funs : ℝ=>1-s) (-1) t :=by
convert (hasDerivAt_id t).const_sub 1using1; rfl
convert (hd₀ t ht).add (hs.mul (hd₁ t ht)) using1; try rfl
ring
havehi : IntervalIntegrable (fun t => (1-t)*f₂ t) volume 01:=by
apply Continuous.intervalIntegrable
fun_prop
haveH:= intervalIntegral.integral_eq_sub_of_hasDerivAt_of_le (bynorm_num : (0:ℝ) ≤1)
hc.continuousOn hd hi
dsimp [F] at H
norm_num at H
linarith