lemmaconnectorProfile_hasDerivAt (Kz : ℝ) : HasDerivAt (connectorProfile K)
(-connectorRate K z*connectorProfile K z) z :=by
proof · 7
lines
have hr := (connectorRate_smooth K).continuous
have h := intervalIntegral.integral_hasDerivAt_right (hr.intervalIntegrable 0 z)
(hr.stronglyMeasurableAtFilter _ _) hr.continuousAt
change HasDerivAt (fun w => exp (-(∫ t in (0:ℝ)..w, connectorRate K t)))
(-connectorRate K z*connectorProfile K z) z
exact h.neg.exp.congr_deriv (g' := -connectorRate K z*connectorProfile K z)
(by simp only [connectorProfile,Pi.neg_apply]; ring)
lemmaconnectorProfile_second (Kz : ℝ) :
deriv (deriv (connectorProfile K)) z =
((connectorRate K z)^2-deriv (connectorRate K) z)*connectorProfile K z :=by
proof · 8
lines
havehe : deriv (connectorProfile K) = fun z => -connectorRate K z*connectorProfile K z :=
funext fun z => (connectorProfile_hasDerivAt K z).deriv
rw [he]
have h := (((connectorRate_smooth K).differentiable (by simp) z).hasDerivAt.neg).mul
(connectorProfile_hasDerivAt K z)
simp only [Pi.mul_def,Pi.neg_def] at h
rw [h.deriv]
ring
lemmaconnectorAngular_bounds {MK : ℝ} (hM : 1≤M) (hK : 20*M≤K)
(hbound : ∀x : ℝ, |deriv smoothTransition x| ≤M) (z : ℝ) :
1/8≤ connectorAngular K z ∧ connectorAngular K z ≤9:=by
proof · 4
lines
rw [connectorAngular_formula]
obtain ⟨hl,hu⟩ := connectorRate_bounds K z
obtain ⟨hdl,hdu⟩ := connectorRate_derivative_bounds hM hK hbound z
constructor <;> nlinarith
lemmaconnectorProfile_le_one {Kz : ℝ} (hz : 0≤ z) : connectorProfile K z ≤1:=by
proof · 4
lines
apply exp_le_one_iff.mpr
havehn : 0≤∫ t in (0 : ℝ)..z, connectorRate K t :=
intervalIntegral.integral_nonneg hz (fun t _ => le_trans (by norm_num) (connectorRate_bounds K t).1)
exact neg_nonpos.mpr hn