lemmaupper_strict_barrier {sigma kappa z : ℝ}
(hs : sigma≤993/1000) (hk : kappa≤0) (hz : z ∈Set.Ioc0 (9/10)) :
N kappa z (upper z)<D sigma z (upper z)*upperDeriv z :=by
proof · 25
lines
have hzp := hz.1havehzc : z ∈Set.Icc0 (9/10) := ⟨le_of_lt hz.1,hz.2⟩
have hu := barriers_in_unit hzc
have hd := polyDen_pos hzc
have hurd := upperDeriv_pos hzc
havehup : 0<1-(upper z)^2:=by nlinarith [hu.2.2.1,hu.2.2.2]
havehuc : 0<1-(3/5:ℝ)*(upper z)^2:=by nlinarith [sq_nonneg (upper z)]
havehpatch1 : D (993/1000) z (upper z)≤D sigma z (upper z) :=byhavehs0 : 0≤993/1000-sigma := sub_nonneg.mpr hs
havehm : 0≤z*(993/1000-sigma)*z^2*(1-(upper z)^2) :=by positivity
dsimp [D]
nlinarith only [hm]
havehpatch2 : N kappa z (upper z)≤N0 z (upper z) :=byhavehm : (1-(3/5:ℝ)*(upper z)^2)*kappa*z*(1-(upper z)^2)≤0:=by
exact mul_nonpos_of_nonpos_of_nonneg
(mul_nonpos_of_nonpos_of_nonneg (mul_nonpos_of_nonneg_of_nonpos (le_of_lt huc) hk) (le_of_lt hz.1))
(le_of_lt hup)
dsimp [N]
nlinarith only [hm]
havehbase : 0<D (993/1000) z (upper z)*upperDeriv z-N0 z (upper z) :=by
rw [upper_residual_identity (by linarith)]
have hp := residualPoly_pos ⟨(radius_bounds hzc).1,(radius_bounds hzc).2.1⟩
positivity
have hm := mul_le_mul_of_nonneg_right hpatch1 (le_of_lt hurd)
linarith
The actual regular normalized source equation can be integrated all the way
to any b≤.9 while retaining the two explicit axis barriers. The clamping device
is not a replacement equation: the conclusion includes its complete removal.
theoremexists_between_barriers {sigma kappa a b u0 : ℝ}
(hslo : (991/1000:ℝ) ≤ sigma) (hshi : sigma≤993/1000)
(hklo : -(1/500:ℝ)≤kappa) (hkhi : kappa≤0)
(ha : 0<a) (hab : a≤b) (hb : b≤9/10)
(hu0 : u0 ∈Icc (lower a) (upper a)) :
∃u : ℝ→ℝ, u a=u0 ∧ContinuousOn u (Icc a b) ∧
(∀ t ∈Icc a b, u t ∈Icc (lower t) (upper t)) ∧∀ t ∈Icc a b, HasDerivWithinAt u
(N kappa t (u t)/D sigma t (u t)) (Icc a b) t :=by
proof · 55
lines
letf : ℝ×ℝ→ℝ:=fun p =>N kappa p.1 p.2/D sigma p.1 p.2
obtain ⟨u,hu,huc,hud⟩ := exists_clamped_solution hab (bynorm_num : (0:ℝ)≤9/10)
(field_contDiffOn hshi ha hb (kappa := kappa)) u0
have ht0 {t : ℝ} (ht : t ∈Icc a b) : t ∈Icc0 (9/10) :=
⟨le_trans (le_of_lt ha) ht.1,le_trans ht.2 hb⟩
have htpos {t : ℝ} (ht : t ∈Icc a b) : t ∈Ioc0 (9/10) :=
⟨lt_of_lt_of_le ha ht.1,le_trans ht.2 hb⟩
have hlowD (t : ℝ) : HasDerivAt lower (749/1000) t :=by
convert (hasDerivAt_id t).const_mul (749/1000:ℝ) using1 <;> first | rfl | simp
have hright (t : ℝ) (ht : t ∈Ico a b) : HasDerivWithinAt u
(f (t,clamp 0 (9/10) (u t))) (Ici t) t :=by
apply (hud t ⟨ht.1,le_of_lt ht.2⟩).mono_of_mem_nhdsWithin
exact Filter.mem_of_superset (Icc_mem_nhdsGE ht.2) (Icc_subset_Icc_left ht.1)
havehupper : ∀ t ∈Icc a b, u t≤upper t :=by
apply image_le_of_deriv_right_lt_deriv_boundary' huc hright
(B':= upperDeriv) (by simpa [hu] using hu0.2)
(fun t ht => (upper_hasDeriv (ht0 ht)).continuousAt.continuousWithinAt)
(fun t ht => (upper_hasDeriv (ht0 ⟨ht.1,le_of_lt ht.2⟩)).hasDerivWithinAt)
intro t ht he
have htz := ht0 ⟨ht.1,le_of_lt ht.2⟩
havehtu : upper t ∈Icc0 (9/10) :=
⟨(barriers_in_unit htz).2.2.1,le_of_lt (upper_lt_nine_tenths htz)⟩
rw [he,clamp_eq htu]
dsimp [f]
exact (div_lt_iff₀ (D_pos hshi (htpos ⟨ht.1,le_of_lt ht.2⟩) htu)).mpr
(by simpa [mul_comm] using upper_strict_barrier hshi hkhi (htpos ⟨ht.1,le_of_lt ht.2⟩))
havehlower : ∀ t ∈Icc a b, lower t≤u t :=byhave hh := image_le_of_deriv_right_lt_deriv_boundary'
huc.neg (fun t ht => (hright t ht).neg)
(B:=fun t => -lower t) (B':=fun _ => -(749/1000:ℝ))
(by change -u a ≤ -lower a; rw [hu]; linarith [hu0.1])
(fun t _ => (hlowD t).neg.continuousAt.continuousWithinAt)
(fun t _ => (hlowD t).neg.hasDerivWithinAt)
havehh' : ∀ t ∈Icc a b, -u t≤ -lower t :=by
apply hh
intro t ht he
have htz := ht0 ⟨ht.1,le_of_lt ht.2⟩
havehtu : lower t ∈Icc0 (9/10) :=by
refine ⟨(barriers_in_unit htz).1,?_⟩
dsimp [lower]
linarith [htz.2]
havehe' : u t=lower t := neg_inj.mp he
rw [he',clamp_eq htu]
dsimp [f]
have hstrict := (lt_div_iff₀ (D_pos hshi (htpos ⟨ht.1,le_of_lt ht.2⟩) htu)).mpr
(by simpa [mul_comm] using lower_strict_barrier hslo hklo (htpos ⟨ht.1,le_of_lt ht.2⟩))
linarith
intro t ht
linarith [hh' t ht]
refine ⟨u,hu,huc,fun t ht => ⟨hlower t ht,hupper t ht⟩,?_⟩
intro t ht
havehtu : u t ∈Icc0 (9/10) :=
⟨le_trans (barriers_in_unit (ht0 ht)).1 (hlower t ht),
le_trans (hupper t ht) (le_of_lt (upper_lt_nine_tenths (ht0 ht)))⟩
simpa only [clamp_eq htu] using hud t ht