Download data/lean/OAI/Analysis/BernoulliCone/LowerSupport.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 61.8 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/BernoulliCone/LowerSupport.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/BernoulliCone/LowerSupport.lean
-
curl -L -o LowerSupport.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/BernoulliCone/LowerSupport.lean
61.8 kB
import OAI.Analysis.BernoulliCone.SobolevCalculus
namespace OAI
universe uE uΞΉ
section
noncomputable section
open MeasureTheory Set Filter
open scoped ENNReal Topology ContDiff
noncomputable section
open Set Filter Finset
open scoped Topology
namespace Bernoulli.DeSilvaJerison
/-- Half the logarithmic ratio; it is artanh on (-1,1). -/
def A (t : β) : β := (Real.log (1+t) - Real.log (1-t))/2
/-- The even solution of (1-tΒ²)f''-6tf'+6f=0 with f(0)=1. -/
def f (t : β) : β :=
(8-25*t^2+15*t^4)/(8*(1-t^2)^2) - (15/8)*t*A t
/-- A convenient rational-logarithmic expression for f'. -/
def fp (t : β) : β :=
-t/(1-t^2)^3 - (5/4)*t/(1-t^2)^2 - (15/8)*t/(1-t^2) - (15/8)*A t
lemma A_neg (t : β) : A (-t) = -A t := by
simp only [A, sub_eq_add_neg, neg_neg]
ring
@[simp] lemma A_zero : A 0 = 0 := by simp [A]
@[simp] lemma f_zero : f 0 = 1 := by norm_num [f]
@[simp] lemma fp_zero : fp 0 = 0 := by simp [fp]
lemma f_neg (t : β) : f (-t) = f t := by
simp only [f, neg_sq, A_neg]
ring
lemma A_eq_half_log {t : β} (ht : t β Ioo (-1 : β) 1) :
A t = 1/2 * Real.log ((1+t)/(1-t)) := by
rw [Real.log_div (by linarith [ht.1] : 1+tβ 0) (by linarith [ht.2] : 1-tβ 0)]
unfold A
ring
lemma hasDerivAt_A {t : β} (ht : t β Ioo (-1 : β) 1) :
HasDerivAt A (1/(1-t^2)) t := by
have hp : 1+tβ 0 := by linarith [ht.1]
have hm : 1-tβ 0 := by linarith [ht.2]
have hd : 1-t^2β 0 := by nlinarith [ht.1,ht.2]
apply (((((hasDerivAt_const t (1:β)).add (hasDerivAt_id t)).log hp).sub
(((hasDerivAt_const t (1:β)).sub (hasDerivAt_id t)).log hm)).div_const 2).congr_deriv
norm_num
field_simp [hd,hp,hm]
ring
lemma hasDerivAt_f {t : β} (ht : t β Ioo (-1 : β) 1) : HasDerivAt f (fp t) t := by
have hd : 1-t^2β 0 := by nlinarith [ht.1,ht.2]
have hden : 8*(1-t^2)^2β 0 := mul_ne_zero (by norm_num) (pow_ne_zero _ hd)
have hnum := ((hasDerivAt_const t (8:β)).sub
(((hasDerivAt_id t).pow 2).const_mul 25)).add
(((hasDerivAt_id t).pow 4).const_mul 15)
have hden' := (((hasDerivAt_const t (1:β)).sub ((hasDerivAt_id t).pow 2)).pow 2).const_mul 8
apply ((hnum.div hden' hden).sub
(((hasDerivAt_id t).const_mul (15/8)).mul (hasDerivAt_A ht))).congr_deriv
norm_num [fp]
field_simp [hd]
ring
lemma hasDerivAt_fp {t : β} (ht : t β Ioo (-1 : β) 1) :
HasDerivAt fp (-6/(1-t^2)^4) t := by
have hd : 1-t^2β 0 := by nlinarith [ht.1,ht.2]
have hD := (hasDerivAt_const t (1:β)).sub ((hasDerivAt_id t).pow 2)
apply (((((hasDerivAt_id t).neg.div (hD.pow 3) (pow_ne_zero _ hd)).sub
(((hasDerivAt_id t).const_mul (5/4)).div (hD.pow 2) (pow_ne_zero _ hd))).sub
(((hasDerivAt_id t).const_mul (15/8)).div hD hd)).sub
((hasDerivAt_A ht).const_mul (15/8))).congr_deriv
norm_num
field_simp [hd]
ring
lemma f_relation {t : β} (ht : t β Ioo (-1 : β) 1) :
t * fp t - f t = -1/(1-t^2)^3 := by
have hd : 1-t^2β 0 := by nlinarith [ht.1,ht.2]
unfold fp f
field_simp
ring
/-- The profile satisfies the differential equation `(1-tΒ²)f''-6tf'+6f=0`. -/
theorem profile_equation {t : β} (ht : t β Ioo (-1 : β) 1) :
(1-t^2) * deriv (deriv f) t - 6*t*deriv f t + 6*f t = 0 := by
have he : deriv f =αΆ [π t] fp := by
filter_upwards [isOpen_Ioo.mem_nhds ht] with x hx
exact (hasDerivAt_f hx).deriv
rw [he.deriv_eq, (hasDerivAt_fp ht).deriv, (hasDerivAt_f ht).deriv]
have hr := f_relation ht
have hd : 1-t^2β 0 := by nlinarith [ht.1,ht.2]
field_simp at hr β’
nlinarith [hr]
lemma A_nonneg {t : β} (ht : 0 β€ t) (ht1 : t < 1) : 0 β€ A t := by
rw [A_eq_half_log β¨by linarith,ht1β©]
exact mul_nonneg (by norm_num) (Real.log_nonneg ((one_le_div (by linarith)).mpr (by linarith)))
lemma fp_neg {t : β} (ht : 0 < t) (ht1 : t < 1) : fp t < 0 := by
have hD : 0<1-t^2 := by nlinarith
have hA := A_nonneg ht.le ht1
have h1 : 0 < t/(1-t^2)^3 := div_pos ht (pow_pos hD _)
have h2 : 0 β€ (5/4:β)*t/(1-t^2)^2 := by positivity
have h3 : 0 β€ (15/8:β)*t/(1-t^2) := by positivity
unfold fp
rw [neg_div]
nlinarith
lemma f_strictAnti : StrictAntiOn f (Ico (0 : β) 1) := by
apply strictAntiOn_of_deriv_neg (convex_Ico 0 1)
Β· intro t ht
exact (hasDerivAt_f β¨by linarith [ht.1],ht.2β©).continuousAt.continuousWithinAt
Β· intro t ht
rw [interior_Ico] at ht
rw [(hasDerivAt_f β¨by linarith [ht.1],ht.2β©).deriv]
exact fp_neg ht.1 ht.2
/-- A certified enclosure, replacing the decimal root in the preprint. -/
lemma f_lower_pos : 0 < f (517330/1000000) := by
have hA : A (517330/1000000) β€ 5726875/10000000 := by
rw [A_eq_half_log (by norm_num)]
refine (Real.log_div_le_sum_range_add (by norm_num) (by norm_num) 12).trans ?_
norm_num [Finset.sum_range_succ]
unfold f
norm_num at hA β’
linarith
lemma f_upper_neg : f (517331/1000000) < 0 := by
have hA : 572688/1000000 β€ A (517331/1000000) := by
rw [A_eq_half_log (by norm_num)]
refine le_trans ?_ (Real.sum_range_le_log_div (by norm_num) (by norm_num) 12)
norm_num [Finset.sum_range_succ]
unfold f
norm_num at hA β’
linarith
lemma exists_profile_root : β t β Icc (517330/1000000 : β) (517331/1000000), f t = 0 := by
have hc : ContinuousOn f (Icc (517330/1000000 : β) (517331/1000000)) := by
intro t ht
exact (hasDerivAt_f β¨by linarith [ht.1],by linarith [ht.2]β©).continuousAt.continuousWithinAt
obtain β¨t,ht,hftβ© := intermediate_value_Icc' (by norm_num : (517330/1000000 : β) β€ 517331/1000000)
hc β¨f_upper_neg.le, f_lower_pos.leβ©
exact β¨t,ht,hftβ©
/-- The first positive root tβ of the normalized profile. -/
def t7 : β := exists_profile_root.choose
lemma t7_bounds : t7 β Icc (517330/1000000 : β) (517331/1000000) :=
exists_profile_root.choose_spec.1
@[simp] lemma f_t7 : f t7 = 0 := exists_profile_root.choose_spec.2
lemma t7_pos : 0 < t7 := by linarith [t7_bounds.1]
lemma t7_lt_one : t7 < 1 := by linarith [t7_bounds.2]
lemma f_pos_of_abs_lt {t : β} (ht : |t| < t7) : 0 < f t := by
have h : 0 < f |t| := by
rw [β f_t7]
exact f_strictAnti β¨abs_nonneg t,lt_trans ht t7_lt_oneβ©
β¨t7_pos.le,t7_lt_oneβ© ht
by_cases h0 : 0 β€ t
Β· simpa [abs_of_nonneg h0] using h
Β· simpa [abs_of_neg (lt_of_not_ge h0), f_neg] using h
lemma root_unique {t : β} (ht : t β Ico (0 : β) 1) (hf : f t = 0) : t = t7 := by
exact f_strictAnti.injOn ht β¨t7_pos.le,t7_lt_oneβ© (hf.trans f_t7.symm)
lemma fp_t7 : fp t7 = -1 / (t7 * (1-t7^2)^3) := by
have h := f_relation β¨by linarith [t7_pos],t7_lt_oneβ©
rw [f_t7,sub_zero] at h
calc
fp t7 = (-1 / (1-t7^2)^3) / t7 :=
(eq_div_iff (ne_of_gt t7_pos)).mpr (by rw [mul_comm]; exact h)
_ = _ := by rw [div_div, mul_comm]
/-- The square of the normal derivative of the unscaled conical function. -/
def c7 : β := (1-t7^2) * (fp t7)^2
lemma c7_pos : 0 < c7 := by
have hD : 0 < 1-t7^2 := by nlinarith [t7_pos,t7_lt_one]
exact mul_pos hD (sq_pos_of_neg (fp_neg t7_pos t7_lt_one))
lemma c7_eq : c7 = 1 / (t7^2 * (1-t7^2)^5) := by
have ht : t7β 0 := ne_of_gt t7_pos
have hd : 1-t7^2β 0 := ne_of_gt (show 0<1-t7^2 by nlinarith [t7_pos,t7_lt_one])
rw [c7,fp_t7]
field_simp
lemma contDiffAt_f {n : WithTop ββ} {t : β} (ht : t β Ioo (-1 : β) 1) :
ContDiffAt β n f t := by
have hd : 8*(1-t^2)^2β 0 := by
apply mul_ne_zero (by norm_num)
exact pow_ne_zero _ (by nlinarith [ht.1,ht.2])
have hp : 1+tβ 0 := by linarith [ht.1]
have hm : 1-tβ 0 := by linarith [ht.2]
unfold f A
fun_prop
/-- Extend the positive spherical profile by zero outside its first two roots. -/
def p (t : β) : β := f (min |t| t7)
lemma f_abs (t : β) : f |t| = f t := by
by_cases ht : 0 β€ t
Β· rw [abs_of_nonneg ht]
Β· rw [abs_of_neg (lt_of_not_ge ht), f_neg]
lemma p_eq_f {t : β} (ht : |t| β€ t7) : p t = f t := by
rw [p, min_eq_left ht, f_abs]
lemma p_eq_zero {t : β} (ht : t7 β€ |t|) : p t = 0 := by
rw [p, min_eq_right ht, f_t7]
lemma p_neg (t : β) : p (-t) = p t := by simp only [p, abs_neg]
@[simp] lemma p_zero : p 0 = 1 := by rw [p_eq_f (by simpa using t7_pos.le), f_zero]
lemma p_pos_iff (t : β) : 0 < p t β |t| < t7 := by
constructor
Β· intro ht
by_contra hn
rw [p_eq_zero (le_of_not_gt hn)] at ht
exact lt_irrefl 0 ht
Β· intro ht
rw [p_eq_f ht.le]
exact f_pos_of_abs_lt ht
lemma p_nonneg (t : β) : 0 β€ p t := by
rcases lt_or_ge |t| t7 with ht | ht
Β· exact ((p_pos_iff t).mpr ht).le
Β· rw [p_eq_zero ht]
lemma p_le_one (t : β) : p t β€ 1 := by
rw [p, β f_zero]
apply f_strictAnti.antitoneOn β¨le_rfl,by norm_numβ©
β¨le_min (abs_nonneg _) t7_pos.le, (min_le_right _ _).trans_lt t7_lt_oneβ©
exact le_min (abs_nonneg _) t7_pos.le
lemma exists_lipschitz_p : β K : NNReal, LipschitzWith K p := by
have hc : ContDiffOn β 1 f (Icc 0 t7) := by
intro t ht
exact (contDiffAt_f β¨by linarith [ht.1],ht.2.trans_lt t7_lt_oneβ©).contDiffWithinAt
obtain β¨K,hKβ© := hc.exists_lipschitzOnWith (by norm_num) (convex_Icc 0 t7) isCompact_Icc
have hclip : LipschitzWith 1 (fun t : β => min |t| t7) := by
simpa only [Real.norm_eq_abs] using ((lipschitzWith_one_norm : LipschitzWith 1 (fun t : β => βtβ)).min_const t7)
refine β¨K, LipschitzWith.of_dist_le_mul (fun x y => ?_)β©
have hm (t : β) : min |t| t7 β Icc 0 t7 :=
β¨le_min (abs_nonneg _) t7_pos.le, min_le_right _ _β©
exact (hK.dist_le_mul _ (hm x) _ (hm y)).trans (by
have hh := hclip.dist_le_mul x y
norm_num at hh
exact mul_le_mul_of_nonneg_left hh K.coe_nonneg)
/-- The normalization imposed by the Bernoulli condition. -/
def ΞΊ : β := (Real.sqrt c7)β»ΒΉ
lemma ΞΊ_pos : 0 < ΞΊ := inv_pos.mpr (Real.sqrt_pos.mpr c7_pos)
lemma ΞΊ_sq : ΞΊ^2 * c7 = 1 := by
rw [ΞΊ, inv_pow, Real.sq_sqrt c7_pos.le]
exact inv_mul_cancelβ (ne_of_gt c7_pos)
end Bernoulli.DeSilvaJerison
/-! The concrete seven-dimensional cone belonging to the De SilvaβJerison profile.
These are actual function/Sobolev constructions, not an assumption of minimality. -/
namespace Bernoulli.DeSilvaJerison
/-- The homogeneous, nonnegative profile, prior to normalizing its boundary slope. -/
def Z (x : Space 7) : β := βxβ * p (x 6 / βxβ)
def U (x : Space 7) : β := ΞΊ * Z x
@[simp] lemma Z_zero : Z 0 = 0 := by simp [Z]
@[simp] lemma U_zero : U 0 = 0 := by simp [U]
lemma Z_nonneg (x : Space 7) : 0 β€ Z x := mul_nonneg (norm_nonneg x) (p_nonneg _)
lemma U_nonneg (x : Space 7) : 0 β€ U x := mul_nonneg ΞΊ_pos.le (Z_nonneg x)
lemma Z_le_norm (x : Space 7) : Z x β€ βxβ := by
calc Z x β€ βxβ * 1 := mul_le_mul_of_nonneg_left (p_le_one _) (norm_nonneg x)
_ = _ := mul_one _
lemma U_even (x : Space 7) : U (-x) = U x := by
simp only [U,Z,norm_neg,PiLp.neg_apply,neg_div,p_neg]
lemma coordinate_le_norm (x : Space 7) : |x 6| β€ βxβ := by
simpa only [Real.norm_eq_abs] using PiLp.norm_apply_le x (6 : Fin 7)
lemma angular_estimate {x y : Space 7} (hx : xβ 0) (hy : yβ 0) :
βyβ * |x 6/βxβ - y 6/βyβ| β€ 2*βx-yβ := by
have hr : 0<βxβ := norm_pos_iff.mpr hx
have hs : 0<βyβ := norm_pos_iff.mpr hy
have hq : |x 6/βxβ| β€ 1 := by
rw [abs_div,abs_of_pos hr]
exact (div_le_one hr).mpr (coordinate_le_norm x)
have hxy : |x 6-y 6| β€ βx-yβ := by
simpa only [PiLp.sub_apply] using coordinate_le_norm (x-y)
calc
βyβ * |x 6/βxβ - y 6/βyβ| =
|(βyβ-βxβ)*(x 6/βxβ) + (x 6-y 6)| := by
rw [β abs_of_pos hs, β abs_mul]
congr 1
rw [abs_of_pos hs]
field_simp
ring
_ β€ |βyβ-βxβ| * |x 6/βxβ| + |x 6-y 6| := by
simpa only [abs_mul] using abs_add_le ((βyβ-βxβ)*(x 6/βxβ)) (x 6-y 6)
_ β€ |βyβ-βxβ| * 1 + βx-yβ := by gcongr
_ β€ βx-yβ + βx-yβ := by
rw [mul_one]
gcongr
simpa only [norm_sub_rev] using abs_norm_sub_norm_le y x
_ = _ := by ring
lemma exists_lipschitz_Z : β K : NNReal, LipschitzWith K Z := by
obtain β¨K,hKβ© := exists_lipschitz_p
refine β¨1+2*K, LipschitzWith.of_dist_le_mul (fun x y => ?_)β©
simp only [dist_eq_norm, Real.norm_eq_abs, NNReal.coe_add, NNReal.coe_mul,
NNReal.coe_one, NNReal.coe_ofNat]
by_cases hx : x=0
Β· subst x
rw [Z_zero,zero_sub,abs_neg,abs_of_nonneg (Z_nonneg y),zero_sub,norm_neg]
exact (Z_le_norm y).trans (by nlinarith [K.coe_nonneg,norm_nonneg y])
by_cases hy : y=0
Β· subst y
rw [Z_zero,sub_zero,abs_of_nonneg (Z_nonneg x),sub_zero]
exact (Z_le_norm x).trans (by nlinarith [K.coe_nonneg,norm_nonneg x])
have hpd : |p (x 6/βxβ)-p (y 6/βyβ)| β€ K * |x 6/βxβ- y 6/βyβ| := by
simpa only [Real.dist_eq] using hK.dist_le_mul (x 6/βxβ) (y 6/βyβ)
have hpb : |p (x 6/βxβ)| β€ 1 := by
rw [abs_of_nonneg (p_nonneg _)]
exact p_le_one _
calc
|Z x-Z y| = |(βxβ-βyβ)*p (x 6/βxβ) + βyβ*(p (x 6/βxβ)-p (y 6/βyβ))| := by
unfold Z
congr 1
ring
_ β€ |βxβ-βyβ| * |p (x 6/βxβ)| + βyβ* |p (x 6/βxβ)-p (y 6/βyβ)| := by
simpa only [abs_mul, abs_of_nonneg (norm_nonneg y)] using
abs_add_le ((βxβ-βyβ)*p (x 6/βxβ)) (βyβ*(p (x 6/βxβ)-p (y 6/βyβ)))
_ β€ |βxβ-βyβ| * 1 + βyβ*(K* |x 6/βxβ-y 6/βyβ|) := by gcongr
_ = |βxβ-βyβ| + K*(βyβ* |x 6/βxβ-y 6/βyβ|) := by ring
_ β€ βx-yβ + K*(2*βx-yβ) := by
exact add_le_add (abs_norm_sub_norm_le x y)
(mul_le_mul_of_nonneg_left (angular_estimate hx hy) K.coe_nonneg)
_ = _ := by ring
lemma exists_lipschitz_U : β K : NNReal, LipschitzWith K U := by
obtain β¨K,hKβ© := exists_lipschitz_Z
exact β¨βΞΊββ*K, (lipschitzWith_smul ΞΊ).comp hKβ©
lemma U_continuous : Continuous U := exists_lipschitz_U.choose_spec.continuous
theorem U_h1loc : H1Loc univ U (gradient U) := by
obtain β¨K,hKβ© := exists_lipschitz_U
intro c r _ _
exact LipschitzSobolev.h1_ball hK c r
lemma U_smul (r : β) (hr : 0<r) (x : Space 7) : U (r β’ x) = r * U x := by
simp only [U,Z,norm_smul,Real.norm_eq_abs,abs_of_pos hr,PiLp.smul_apply,smul_eq_mul,
mul_div_mul_left _ _ (ne_of_gt hr)]
ring
theorem U_homogeneous : OneHomogeneous U := by
intro r hr
exact Filter.Eventually.of_forall (U_smul r hr)
/-- Values in every direction perpendicular to the symmetry axis are positive. -/
lemma U_of_coordinate_zero {x : Space 7} (hx : x 6=0) : U x = ΞΊ*βxβ := by
simp [U,Z,hx]
theorem U_nonzero : Nonzero U := by
intro h
have he := congrFun (MeasureTheory.Measure.eq_of_ae_eq h U_continuous continuous_const)
(EuclideanSpace.single 0 (1:β) : Space 7)
have hv : U (EuclideanSpace.single 0 (1:β)) = ΞΊ := by
rw [U_of_coordinate_zero (by simp)]
simp
rw [hv] at he
exact (ne_of_gt ΞΊ_pos) he
theorem U_not_flat : Β¬ Flat U := by
rintro β¨e,he,haeβ©
have hc : Continuous (fun x : Space 7 => max (inner β x e) 0) := by fun_prop
have heq := MeasureTheory.Measure.eq_of_ae_eq hae U_continuous hc
have hp := congrFun heq e
have hn := congrFun heq (-e)
rw [U_even] at hn
rw [real_inner_self_eq_norm_sq,he] at hp
rw [inner_neg_left,real_inner_self_eq_norm_sq,he] at hn
norm_num at hp hn
linarith
end Bernoulli.DeSilvaJerison
/-! Euclidean calculus for the actual De SilvaβJerison axisymmetric construction.
No free-boundary or variational conclusion is built into these definitions. -/
noncomputable section
open Set Filter Finset
open scoped Topology ContDiff Laplacian
namespace Bernoulli.Axisymmetric
variable {E : Type uE} [NormedAddCommGroup E] [InnerProductSpace β E]
lemma hasDerivAt_radius (x v : E) (t : β) (h : x+t β’ v β 0) :
HasDerivAt (fun a:β=>βx+a β’ vβ)
(inner β (x+t β’ v) v / βx+t β’ vβ) t := by
have hc : HasDerivAt (fun a:β=>x+a β’ v) v t := by
simpa using ((hasDerivAt_id t).smul_const v).const_add x
have hn : βx+t β’ vβ β 0 := norm_ne_zero_iff.mpr h
have hh := hc.norm_sq.sqrt (pow_ne_zero 2 hn)
simp only [Real.sqrt_sq (norm_nonneg _)] at hh
convert hh using 1; field_simp
lemma hasDerivAt_axis (x v e : E) (t : β) :
HasDerivAt (fun a:β=>inner β (x+a β’ v) e) (inner β v e) t := by
have hc : HasDerivAt (fun a:β=>x+a β’ v) v t := by
simpa using ((hasDerivAt_id t).smul_const v).const_add x
simpa using hc.inner β (hasDerivAt_const t e)
/-- Lift of a polar profile; values at the origin use the usual total operations. -/
def lift (e : E) (Ξ± : β) (Ο : β β β) (x : E) : β :=
βxβ ^ Ξ± * Ο (inner β x e / βxβ)
lemma hasDerivAt_angular (x v e : E) (t : β) (h : x+t β’ vβ 0) :
HasDerivAt (fun a:β=>inner β (x+a β’ v) e / βx+a β’ vβ)
((inner β v e * βx+t β’ vβ^2 - inner β (x+t β’ v) e *
inner β (x+t β’ v) v) / βx+t β’ vβ^3) t := by
have hn := norm_ne_zero_iff.mpr h
apply ((hasDerivAt_axis x v e t).div (hasDerivAt_radius x v t h) hn).congr_deriv
field_simp
lemma hasDerivAt_lift_line {Ο : β β β} {Ο' : β} (e x v : E) (Ξ± t : β)
(hx : x+t β’ vβ 0)
(hΟ : HasDerivAt Ο Ο' (inner β (x+t β’ v) e / βx+t β’ vβ)) :
HasDerivAt (fun a:β=>lift e Ξ± Ο (x+a β’ v))
(βx+t β’ vβ^Ξ± *
(Ξ± * inner β (x+t β’ v) v / βx+t β’ vβ^2 * Ο (inner β (x+t β’ v) e / βx+t β’ vβ) +
Ο' * ((inner β v e * βx+t β’ vβ^2 - inner β (x+t β’ v) e *
inner β (x+t β’ v) v) / βx+t β’ vβ^3))) t := by
have hn := norm_ne_zero_iff.mpr hx
have hr := (hasDerivAt_radius x v t hx).rpow_const (p:=Ξ±) (Or.inl hn)
have hp := hΟ.comp t (hasDerivAt_angular x v e t hx)
apply (hr.mul hp).congr_deriv
simp only [Function.comp_def]
rw [Real.rpow_sub_one hn]
field_simp
/-- The explicit first derivative along a line, used to avoid assuming an ODE
or a second derivative in the Euclidean Laplacian computation. -/
def lineFirst (e x v : E) (Ξ± : β) (Ο Οβ : β β β) (t : β) : β :=
βx+t β’ vβ^Ξ± *
(Ξ± * inner β (x+t β’ v) v / βx+t β’ vβ^2 * Ο (inner β (x+t β’ v) e / βx+t β’ vβ) +
Οβ (inner β (x+t β’ v) e / βx+t β’ vβ) *
((inner β v e * βx+t β’ vβ^2 - inner β (x+t β’ v) e *
inner β (x+t β’ v) v) / βx+t β’ vβ^3))
lemma hasDerivAt_lineFirst {Ο Οβ : β β β} {Οβ : β} (e x v : E) (Ξ± t : β)
(hx : x+t β’ vβ 0)
(hΟ : HasDerivAt Ο (Οβ (inner β (x+t β’ v) e / βx+t β’ vβ))
(inner β (x+t β’ v) e / βx+t β’ vβ))
(hΟβ : HasDerivAt Οβ Οβ (inner β (x+t β’ v) e / βx+t β’ vβ)) :
HasDerivAt (lineFirst e x v Ξ± Ο Οβ)
(βx+t β’ vβ^Ξ± / βx+t β’ vβ^2 *
(Ξ± * Ο (inner β (x+t β’ v) e / βx+t β’ vβ) * βvβ^2 +
Ξ± * (Ξ±-2) * Ο (inner β (x+t β’ v) e / βx+t β’ vβ) *
(inner β (x+t β’ v) v / βx+t β’ vβ)^2 +
2*(Ξ±-1) * Οβ (inner β (x+t β’ v) e / βx+t β’ vβ) *
(inner β (x+t β’ v) v / βx+t β’ vβ) *
(inner β v e - inner β (x+t β’ v) e / βx+t β’ vβ *
(inner β (x+t β’ v) v / βx+t β’ vβ)) -
inner β (x+t β’ v) e / βx+t β’ vβ *
Οβ (inner β (x+t β’ v) e / βx+t β’ vβ) *
(βvβ^2-(inner β (x+t β’ v) v / βx+t β’ vβ)^2) +
Οβ * (inner β v e - inner β (x+t β’ v) e / βx+t β’ vβ *
(inner β (x+t β’ v) v / βx+t β’ vβ))^2)) t := by
have hn := norm_ne_zero_iff.mpr hx
have hr := hasDerivAt_radius x v t hx
have ha := hasDerivAt_axis x v e t
have hq : HasDerivAt (fun a:β=>inner β (x+a β’ v) v) (βvβ^2) t := by
simpa only [real_inner_self_eq_norm_sq] using hasDerivAt_axis x v v t
have hs := hasDerivAt_angular x v e t hx
have hp := hΟ.comp t hs
have hpβ := hΟβ.comp t hs
have hQ := ((hq.const_mul Ξ±).div (hr.pow 2) (pow_ne_zero _ hn)).mul hp
have hS := (((hr.pow 2).const_mul (inner β v e)).sub (ha.mul hq)).div
(hr.pow 3) (pow_ne_zero _ hn)
apply (((hr.rpow_const (p:=Ξ±) (Or.inl hn)).mul
(hQ.add (hpβ.mul hS)))).congr_deriv
simp only [Function.comp_def, Pi.pow_apply, Pi.div_apply, Pi.mul_apply, Pi.sub_apply, Pi.add_apply]
rw [Real.rpow_sub_one hn]
field_simp
ring
/-- Scalar diagonal Hessian coefficient in a unit radial/angular frame. -/
def secondCoeff (Ξ± F Fβ Fβ s p b n : β) : β :=
Ξ±*F*n + Ξ±*(Ξ±-2)*F*p^2 + 2*(Ξ±-1)*Fβ*p*(b-s*p) -
s*Fβ*(n-p^2) + Fβ*(b-s*p)^2
lemma secondCoeff_sum {ΞΉ : Type uΞΉ} [Fintype ΞΉ]
(Ξ± F Fβ Fβ s : β) (p b : ΞΉ β β)
(hp : β i, (p i)^2 = 1) (hb : β i, (b i)^2 = 1)
(hpb : β i, p i*b i = s) :
β i, secondCoeff Ξ± F Fβ Fβ s (p i) (b i) 1 =
Ξ±*(Ξ±+(Fintype.card ΞΉ : β)-2)*F - ((Fintype.card ΞΉ : β)-1)*s*Fβ + (1-s^2)*Fβ := by
have he (i:ΞΉ) : secondCoeff Ξ± F Fβ Fβ s (p i) (b i) 1 =
(Ξ±*F-s*Fβ) + (Ξ±*(Ξ±-2)*F-(2*Ξ±-3)*s*Fβ+s^2*Fβ)*(p i)^2 +
(2*(Ξ±-1)*Fβ-2*s*Fβ)*(p i*b i) + Fβ*(b i)^2 := by
unfold secondCoeff
ring
simp_rw [he, Finset.sum_add_distrib, βFinset.mul_sum]
rw [hp,hb,hpb]
simp only [Finset.sum_const, Finset.card_univ, nsmul_eq_mul]
ring
lemma contDiffAt_lift {Ο : β β β} {e x : E} {Ξ± : β} {n : WithTop ββ}
(hx : x β 0) (hf : ContDiffAt β n Ο (inner β x e / βxβ)) :
ContDiffAt β n (lift e Ξ± Ο) x := by
have hn : ContDiffAt β n (fun y:E=>βyβ) x := contDiffAt_id.norm β hx
have ha : ContDiffAt β n (fun y:E=>inner β y e / βyβ) x :=
((contDiffAt_id.inner β contDiffAt_const).div hn (norm_ne_zero_iff.mpr hx))
exact (hn.rpow_const_of_ne (norm_ne_zero_iff.mpr hx)).mul (hf.comp x ha)
lemma lift_line_second {Ο Οβ : β β β} {Οβ : β} (e x v : E) (Ξ± : β)
(hx : xβ 0)
(hΟ : βαΆ s in π (inner β x e / βxβ), HasDerivAt Ο (Οβ s) s)
(hΟβ : HasDerivAt Οβ Οβ (inner β x e / βxβ)) :
deriv (deriv (fun t:β=>lift e Ξ± Ο (x+t β’ v))) 0 =
βxβ^Ξ± / βxβ^2 * secondCoeff Ξ± (Ο (inner β x e / βxβ))
(Οβ (inner β x e / βxβ)) Οβ (inner β x e / βxβ)
(inner β x v / βxβ) (inner β v e) (βvβ^2) := by
have hx0 : x+(0:β) β’ vβ 0 := by simpa
have hc : ContinuousAt (fun t:β=>x+t β’ v) 0 := by fun_prop
have hnear : βαΆ t:β in π 0, x+t β’ vβ 0 :=
hc.eventually_ne hx0
have hs := (hasDerivAt_angular x v e 0 hx0).continuousAt
have hp : βαΆ t in π (0:β), HasDerivAt Ο (Οβ (inner β (x+t β’ v) e / βx+t β’ vβ))
(inner β (x+t β’ v) e / βx+t β’ vβ) := by
exact hs.tendsto.eventually (p:=fun s=>HasDerivAt Ο (Οβ s) s) (by simpa using hΟ)
have he : deriv (fun t:β=>lift e Ξ± Ο (x+t β’ v)) =αΆ [π 0] lineFirst e x v Ξ± Ο Οβ := by
filter_upwards [hnear,hp] with t ht hpt
exact (hasDerivAt_lift_line e x v Ξ± t ht hpt).deriv
rw [he.deriv_eq]
have hh := hasDerivAt_lineFirst e x v Ξ± 0 hx0 (by simpa using hΟ.self_of_nhds)
(by simpa using hΟβ)
simpa only [zero_smul, add_zero, secondCoeff] using hh.deriv
lemma line_second_derivative {f : E β β} {x : E} (hf : ContDiffAt β 2 f x) (v : E) :
deriv (deriv (fun t:β=>f (x+t β’ v))) 0=(fderiv β (fderiv β f) x v) v := by
let c := fun t:β=>x+t β’ v
let q := fun t:β=>(fderiv β f (c t)) v
have hc (t:β) : HasDerivAt c v t := by
simpa only [one_smul,id_eq,c] using ((hasDerivAt_id t).smul_const v).const_add x
have hc0 : c 0=x := by simp [c]
have hnear : βαΆ t in π (0:β), ContDiffAt β 2 f (c t) :=
(hc 0).continuousAt.tendsto.eventually (hc0 βΈ hf.eventually (by norm_num))
have hq : deriv (fun t:β=>f (x+t β’ v)) =αΆ [π 0] q := by
filter_upwards [hnear] with t ht
exact ((ht.differentiableAt (by norm_num)).hasFDerivAt.comp_hasDerivAt t (hc t)).deriv
have hff := (hf.fderiv_right (m:=1) (by norm_num)).differentiableAt (by norm_num)
have hff' : HasFDerivAt (fderiv β f) (fderiv β (fderiv β f) x) (c 0) := hc0.symm βΈ hff.hasFDerivAt
have hh := (hff'.comp_hasDerivAt 0 (hc 0)).clm_apply (hasDerivAt_const 0 v)
have hqq : HasDerivAt q ((fderiv β (fderiv β f) x v) v) 0 := by
simpa only [Function.comp_def,ContinuousLinearMap.map_zero,add_zero,q] using hh
rw [hq.deriv_eq,hqq.deriv]
lemma laplacian_lift [FiniteDimensional β E] {Ο Οβ : β β β} {Οβ : β}
(e x : E) (Ξ± : β) (he : βeβ=1) (hx : xβ 0)
(hc : ContDiffAt β 2 Ο (inner β x e / βxβ))
(hΟ : βαΆ s in π (inner β x e / βxβ), HasDerivAt Ο (Οβ s) s)
(hΟβ : HasDerivAt Οβ Οβ (inner β x e / βxβ)) :
Ξ (lift e Ξ± Ο) x = βxβ^Ξ± / βxβ^2 *
(Ξ±*(Ξ±+(Module.finrank β E : β)-2)*Ο (inner β x e / βxβ) -
((Module.finrank β E : β)-1)*(inner β x e / βxβ)*Οβ (inner β x e / βxβ) +
(1-(inner β x e / βxβ)^2)*Οβ) := by
let b := stdOrthonormalBasis β E
have hn := norm_ne_zero_iff.mpr hx
have hp : β i, (inner β x (b i) / βxβ)^2 = 1 := by
simp_rw [div_pow, βFinset.sum_div]
rw [b.sum_sq_inner_left]
exact div_self (pow_ne_zero _ hn)
have hb : β i, (inner β (b i) e)^2 = 1 := by
rw [b.sum_sq_inner_right,he]
norm_num
have hpb : β i, (inner β x (b i) / βxβ) * inner β (b i) e = inner β x e / βxβ := by
simp_rw [div_mul_eq_mul_div, βFinset.sum_div]
rw [b.sum_inner_mul_inner]
have hs := secondCoeff_sum Ξ± (Ο (inner β x e / βxβ)) (Οβ (inner β x e / βxβ)) Οβ
(inner β x e / βxβ) (fun i=>inner β x (b i) / βxβ) (fun i=>inner β (b i) e) hp hb hpb
rw [InnerProductSpace.laplacian_eq_iteratedFDeriv_stdOrthonormalBasis]
simp_rw [iteratedFDeriv_two_apply]
simp only [Fin.isValue,Matrix.cons_val_zero,Matrix.cons_val_one]
have hcc := contDiffAt_lift (Ξ±:=Ξ±) hx hc
simp_rw [βline_second_derivative hcc, lift_line_second e x _ Ξ± hx hΟ hΟβ]
have hbunit (i:Fin (Module.finrank β E)) : βb iβ^2 = (1:β) := by simp
change (β i, βxβ^Ξ± / βxβ^2 * secondCoeff Ξ± (Ο (inner β x e / βxβ))
(Οβ (inner β x e / βxβ)) Οβ (inner β x e / βxβ)
(inner β x (b i) / βxβ) (inner β (b i) e) (βb iβ^2)) = _
simp_rw [hbunit, βFinset.mul_sum]
rw [hs]
simp
/-- The radial unit vector (at nonzero points) and the tangential polar direction. -/
def radial (x : E) : E := βxββ»ΒΉ β’ x
def polarGradient (e x : E) (a b : β) : E :=
a β’ radial x + b β’ (e - (inner β x e / βxβ) β’ radial x)
lemma radial_norm {x : E} (hx : xβ 0) : βradial xβ=1 := by
rw [radial,norm_smul,Real.norm_eq_abs,abs_inv,abs_norm,inv_mul_cancelβ (norm_ne_zero_iff.mpr hx)]
lemma radial_inner (x e : E) : inner β (radial x) e = inner β x e / βxβ := by
simp only [radial,real_inner_smul_left,div_eq_mul_inv,mul_comm]
lemma norm_sq_polarGradient {e x : E} (he : βeβ=1) (hx : xβ 0) (a b : β) :
βpolarGradient e x a bβ^2 = a^2 + (1-(inner β x e / βxβ)^2)*b^2 := by
have hn : inner β (radial x) (radial x)=1 := by
rw [real_inner_self_eq_norm_sq,radial_norm hx]; norm_num
have het : inner β e e=1 := by rw [real_inner_self_eq_norm_sq,he]; norm_num
have hrev : inner β e (radial x) = inner β x e / βxβ :=
(real_inner_comm e (radial x)).symm.trans (radial_inner x e)
rw [βreal_inner_self_eq_norm_sq]
simp only [polarGradient,inner_add_left,inner_add_right,inner_sub_left,inner_sub_right,
real_inner_smul_left,real_inner_smul_right,hn,het,hrev,radial_inner]
ring
lemma hasGradientAt_lift [CompleteSpace E] {Ο : β β β} {Οβ : β}
(e x : E) (Ξ± : β) (hx : xβ 0)
(hΟ : HasDerivAt Ο Οβ (inner β x e / βxβ)) :
HasGradientAt (lift e Ξ± Ο)
((βxβ^Ξ± / βxβ) β’ polarGradient e x (Ξ±*Ο (inner β x e / βxβ)) Οβ) x := by
have hn := norm_ne_zero_iff.mpr hx
have hdN : DifferentiableAt β (fun y:E=>βyβ) x := differentiableAt_id.norm β hx
have ha : ContDiffAt β 1 (fun y:E=>inner β y e / βyβ) x :=
(contDiffAt_id.inner β contDiffAt_const).div (contDiffAt_id.norm β hx) hn
have hdA := ha.differentiableAt (by norm_num : (1 : WithTop ββ) β 0)
have hd : DifferentiableAt β (lift e Ξ± Ο) x := by
exact (hdN.rpow_const (Or.inl hn)).fun_mul (hΟ.differentiableAt.comp x hdA)
apply hasGradientAt_iff_hasFDerivAt.mpr
apply hd.hasFDerivAt.congr_fderiv
ext v
have hl : HasDerivAt (fun t:β=>x+t β’ v) v 0 := by
simpa using ((hasDerivAt_id (0:β)).smul_const v).const_add x
have hd0 : HasFDerivAt (lift e Ξ± Ο) (fderiv β (lift e Ξ± Ο) x) (x+(0:β) β’ v) := by
simpa using hd.hasFDerivAt
have hcomp := hd0.comp_hasDerivAt (0:β) hl
have hline := hasDerivAt_lift_line e x v Ξ± 0 (by simpa using hx) (by simpa using hΟ)
simp only [zero_smul,add_zero] at hline
rw [hcomp.unique hline]
simp only [InnerProductSpace.toDual_apply_apply,real_inner_smul_left,polarGradient,
inner_add_left,inner_sub_left,real_inner_smul_left,radial,real_inner_smul_left,
real_inner_comm e v]
field_simp
lemma gradient_lift_norm_sq [CompleteSpace E] {Ο : β β β} {Οβ : β}
(e x : E) (Ξ± : β) (he : βeβ=1) (hx : xβ 0)
(hΟ : HasDerivAt Ο Οβ (inner β x e / βxβ)) :
βgradient (lift e Ξ± Ο) xβ^2 = (βxβ^Ξ± / βxβ)^2 *
((Ξ±*Ο (inner β x e / βxβ))^2+(1-(inner β x e / βxβ)^2)*Οβ^2) := by
rw [(hasGradientAt_lift e x Ξ± hx hΟ).gradient,norm_smul,mul_pow]
rw [norm_sq_polarGradient he hx]
simp only [Real.norm_eq_abs,sq_abs]
end Bernoulli.Axisymmetric
namespace Bernoulli.DeSilvaJerison
open Axisymmetric InnerProductSpace
open scoped Laplacian ContDiff
def axis : Space 7 := EuclideanSpace.single 6 1
def angle (x : Space 7) : β := x 6 / βxβ
@[simp] lemma axis_norm : βaxisβ=1 := by simp [axis]
@[simp] lemma inner_axis (x : Space 7) : inner β x axis=x 6 := by
simp [axis, EuclideanSpace.inner_single_right]
lemma angle_contDiffAt {x : Space 7} {n : WithTop ββ} (hx : xβ 0) :
ContDiffAt β n angle x := by
have hn : ContDiffAt β n (fun y:Space 7=>βyβ) x := contDiffAt_id.norm β hx
have hi : ContDiffAt β n (fun y:Space 7=>inner β y axis) x :=
contDiffAt_id.inner β contDiffAt_const
unfold angle
simpa only [inner_axis] using hi.fun_div hn (norm_ne_zero_iff.mpr hx)
lemma U_pos_iff (x : Space 7) : 0<U x β xβ 0 β§ |angle x|<t7 := by
rw [U, mul_pos_iff_of_pos_left ΞΊ_pos,Z]
constructor
Β· intro h
have hx : xβ 0 := by rintro rfl; simp at h
exact β¨hx, (p_pos_iff _).mp ((mul_pos_iff_of_pos_left (norm_pos_iff.mpr hx)).mp h)β©
Β· rintro β¨hx,htβ©
exact mul_pos (norm_pos_iff.mpr hx) ((p_pos_iff _).mpr ht)
/-- Smooth signed extension near the free boundary away from the singular axis. -/
def Zsigned : Space 7 β β := lift axis 1 f
def Usigned (x : Space 7) : β := ΞΊ*Zsigned x
lemma Zsigned_eq (x : Space 7) : Zsigned x=βxβ*f (angle x) := by
simp [Zsigned,lift,angle]
lemma Z_eq_Zsigned {x : Space 7} (ht : |angle x|β€t7) : Z x=Zsigned x := by
rw [Zsigned_eq,Z,p_eq_f (show |x 6 / βxβ|β€t7 from ht)]
rfl
lemma U_eq_Usigned {x : Space 7} (ht : |angle x|β€t7) : U x=Usigned x := by
unfold U Usigned
rw [Z_eq_Zsigned ht]
lemma signed_contDiffAt {x : Space 7} {n : WithTop ββ} (hx : xβ 0)
(ha : |angle x|<1) : ContDiffAt β n Zsigned x := by
apply contDiffAt_lift hx
simpa only [inner_axis,angle] using contDiffAt_f (abs_lt.mp ha)
lemma signed_laplacian {x : Space 7} (hx : xβ 0) (ha : |angle x|<1) : Ξ Zsigned x=0 := by
have ht : angle x β Ioo (-1:β) 1 := abs_lt.mp ha
have hp : βαΆ s in π (inner β x axis/βxβ), HasDerivAt f (fp s) s := by
simp only [inner_axis]
filter_upwards [isOpen_Ioo.mem_nhds ht] with s hs
exact hasDerivAt_f hs
have ht' : inner β x axis / βxβ β Ioo (-1:β) 1 := by simpa only [inner_axis,angle] using ht
have hl := laplacian_lift axis x 1 axis_norm hx (contDiffAt_f ht') hp (hasDerivAt_fp ht')
have hd : 1-(angle x)^2β 0 := by nlinarith [sq_nonneg (angle x),ht.1,ht.2]
have hr := f_relation ht
have he : 6*f (angle x)-6*angle x*fp (angle x)+(1-(angle x)^2)*(-6/(1-(angle x)^2)^4)=0 := by
field_simp at hr β’
nlinarith [hr]
change Ξ (lift axis 1 f) x=0
simp only [inner_axis,Space,finrank_euclideanSpace_fin, Nat.cast_ofNat] at hl
norm_num only at hl
change Ξ (lift axis 1 f) x = βxβ^ (1:β) / βxβ^2 *
(6*f (angle x)-6*angle x*fp (angle x)+(1-(angle x)^2)*(-6/(1-(angle x)^2)^4)) at hl
simpa only [he,mul_zero] using hl
lemma signed_harmonicAt {x : Space 7} (hx : xβ 0) (ha : |angle x|<1) :
HarmonicAt Zsigned x := by
refine β¨signed_contDiffAt hx ha,?_β©
have hN : βαΆ y in π x, yβ 0 := isOpen_compl_singleton.mem_nhds hx
have hA : βαΆ y in π x, |angle y|<1 :=
(angle_contDiffAt (n:=1) hx).continuousAt.abs.eventually (gt_mem_nhds ha)
filter_upwards [hN,hA] with y hy hya
exact signed_laplacian hy hya
lemma U_eventuallyEq_Usigned {x : Space 7} (hu : 0<U x) : U =αΆ [π x] Usigned := by
obtain β¨hx,htβ© := (U_pos_iff x).mp hu
have hA : βαΆ y in π x, |angle y|<t7 :=
(angle_contDiffAt (n:=1) hx).continuousAt.abs.eventually (gt_mem_nhds ht)
exact hA.mono (fun y hy=>U_eq_Usigned hy.le)
/-- Positive-phase harmonicity is proved for the actual Sobolev candidate. -/
theorem U_harmonic : HarmonicOnNhd U {x|0<U x} := by
intro x hu
obtain β¨hx,htβ© := (U_pos_iff x).mp hu
apply (harmonicAt_congr_nhds (U_eventuallyEq_Usigned hu)).mpr
exact (signed_harmonicAt hx (ht.trans t7_lt_one)).const_smul (c:=ΞΊ)
lemma fp_neg_arg (t : β) : fp (-t)= -fp t := by
simp only [fp,neg_sq,A_neg]
ring
lemma f_zero_at_boundary {t : β} (ht : |t|=t7) : f t=0 := by
rw [βf_abs,ht,f_t7]
lemma fp_sq_at_boundary {t : β} (ht : |t|=t7) : (fp t)^2=(fp t7)^2 := by
have h : (fp |t|)^2=(fp t)^2 := by
rcases le_total 0 t with h|h
Β· rw [abs_of_nonneg h]
Β· rw [abs_of_nonpos h,fp_neg_arg,neg_sq]
rw [ht] at h
exact h.symm
lemma signed_gradient_norm_sq {x : Space 7} (hx : xβ 0) (ha : |angle x|<1) :
βgradient Zsigned xβ^2=(f (angle x))^2+(1-(angle x)^2)*(fp (angle x))^2 := by
have ha' : |inner β x axis/βxβ|<1 := by simpa only [inner_axis,angle] using ha
have hh := gradient_lift_norm_sq axis x 1 axis_norm hx (hasDerivAt_f (abs_lt.mp ha'))
simpa only [Zsigned,inner_axis,angle,Real.rpow_one,div_self (norm_ne_zero_iff.mpr hx),one_pow,one_mul] using hh
/-- Exact slope-squared c7 on the boundary of the unnormalized cone. -/
lemma Zsigned_boundary_slope {x : Space 7} (hx : xβ 0) (ha : |angle x|=t7) :
βgradient Zsigned xβ^2=c7 := by
rw [signed_gradient_norm_sq hx (ha.trans_lt t7_lt_one),f_zero_at_boundary ha,
fp_sq_at_boundary ha]
have hs : (angle x)^2=t7^2 := by rw [βsq_abs,ha]
simp only [hs,zero_pow (by norm_num : 2β 0),zero_add,c7]
lemma gradient_const_mul {F : Space 7 β β} {x : Space 7} (c : β)
(hF : DifferentiableAt β F x) :
gradient (fun y=>c*F y) x=c β’ gradient F x := by
rw [gradient, fderiv_const_mul hF]
simp only [map_smul,gradient]
/-- The actual signed extension has exactly unit normal slope at every
nonvertex free-boundary point. This does not claim its energy comparison. -/
theorem Usigned_boundary_slope {x : Space 7} (hx : xβ 0) (ha : |angle x|=t7) :
βgradient Usigned xβ=1 := by
have hd : DifferentiableAt β Zsigned x :=
(signed_contDiffAt (n:=1) hx (ha.trans_lt t7_lt_one)).differentiableAt (by norm_num)
have he : gradient Usigned x=ΞΊ β’ gradient Zsigned x := gradient_const_mul ΞΊ hd
have hs : βgradient Usigned xβ^2=1 := by
rw [he,norm_smul,mul_pow,Real.norm_eq_abs,sq_abs,Zsigned_boundary_slope hx ha,ΞΊ_sq]
nlinarith [norm_nonneg (gradient Usigned x)]
end Bernoulli.DeSilvaJerison
namespace Bernoulli.DeSilvaJerison
open scoped BigOperators
def B (n:β) (u:β) : β := β i β Finset.range n, u^i / (2*i+1)
lemma B_nonneg (n:β) {u:β} (hu:0β€u) : 0β€B n u := by
apply Finset.sum_nonneg
intro i hi
positivity
lemma odd_sum_eq (n:β) (t:β) :
(β i β Finset.range n, t^(2*i+1)/(2*i+1))=t*B n (t^2) := by
rw [B,Finset.mul_sum]
apply Finset.sum_congr rfl
intro i hi
rw [pow_add,pow_mul]
ring
lemma A_series_bounds (n:β) {t:β} (ht:0β€t) (ht1:t<1) :
t*B n (t^2) β€ A t β§ A t β€ t*(B n (t^2)+(t^2)^n/(1-t^2)) := by
have hI : tβIoo (-1:β) 1 := β¨by linarith,ht1β©
have hL := Real.sum_range_le_log_div ht ht1 n
have hU := Real.log_div_le_sum_range_add ht ht1 n
rw [odd_sum_eq,A_eq_half_log hI] at *
constructor
Β· exact hL
Β· convert hU using 1
rw [pow_add,pow_mul]
ring
lemma f_series_lower (n:β) {t:β} (ht:0β€t) (ht1:t<1) :
(8-25*t^2+15*(t^2)^2)/(8*(1-t^2)^2)
-15/8*t^2*(B n (t^2)+(t^2)^n/(1-t^2)) β€ f t := by
have ha := (A_series_bounds n ht ht1).2
have hp := mul_le_mul_of_nonneg_left ha (show (0:β)β€15/8*t from by positivity)
unfold f
convert! sub_le_sub_left hp ((8-25*t^2+15*t^4)/(8*(1-t^2)^2)) using 1
ring
lemma fp_series_upper (n:β) {t:β} (ht:0β€t) (ht1:t<1) :
fp t β€ -t*(1/(1-t^2)^3+5/4/(1-t^2)^2+15/8/(1-t^2)+15/8*B n (t^2)) := by
have ha := (A_series_bounds n ht ht1).1
unfold fp
have hp := mul_le_mul_of_nonneg_left ha (show (0:β)β€15/8 from by norm_num)
convert! sub_le_sub_left hp (-t/(1-t^2)^3-5/4*t/(1-t^2)^2-15/8*t/(1-t^2)) using 1
ring
end Bernoulli.DeSilvaJerison
noncomputable section
open scoped BigOperators
namespace Bernoulli.DeSilvaJerison.Algebra
def g (u:β) : β := (1+u*((2869387/1000000:β)+u*((589981/125000:β)+u*((6566689/1000000:β)+u*((4206127/500000:β)+u*((10257227/1000000:β)+u*((6050939/500000:β)+u*((2789267/200000:β)+u*(7895333/500000:β)))))))))
def g1 (u:β) : β := ((2869387/1000000:β)+u*((589981/62500:β)+u*((19700067/1000000:β)+u*((4206127/125000:β)+u*((10257227/200000:β)+u*((18152817/250000:β)+u*((19524869/200000:β)+u*(7895333/62500:β))))))))
def g2 (u:β) : β := ((589981/62500:β)+u*((19700067/500000:β)+u*((12618381/125000:β)+u*((10257227/50000:β)+u*((18152817/50000:β)+u*((58574607/100000:β)+u*(55267331/62500:β)))))))
def FlowNum (u:β) : β := (8+u*(-40+u*(40+u*(-8+u*((-8/7:β)+u*((-8/21:β)+u*((-40/231:β)+u*((-460/33:β)+u*(150/11:β)))))))))
def JlowNum (u:β) : β := (48+u*(-80+u*(48+u*((-48/7:β)+u*((-16/21:β)+u*((-16/77:β)+u*((-95/77:β)+u*((80/33:β)+u*(-15/11:β)))))))))
def H (u:β) : β :=
(1-(-643/200:β))^2 * (FlowNum u)^2*(1-u)^2*(g u)^2
+u*(1-u)*(JlowNum u*g u+2*FlowNum u*(1-u)*g1 u)^2
-64*(177344/10000:β)*(1-u)^6*(g u)^2
def bern (x:β) :β :=
(1273/625:β)*x^0*(1-x)^34 +
(18301700752813/39062500000:β)*x^1*(1-x)^33 +
(215052290412518053937/15625000000000000:β)*x^2*(1-x)^32 +
(4011660524023528296977/19531250000000000:β)*x^3*(1-x)^31 +
(2737813200177456418780827/1367187500000000000:β)*x^4*(1-x)^30 +
(36470062299690915838876891/2563476562500000000:β)*x^5*(1-x)^29 +
(25224069904037561558116841153/322265625000000000000:β)*x^6*(1-x)^28 +
(1140064408982925692415284885429/3289794921875000000000:β)*x^7*(1-x)^27 +
(41702430755303183867323989789361/32897949218750000000000:β)*x^8*(1-x)^26 +
(3302410109850186979935464577903227/845947265625000000000000:β)*x^9*(1-x)^25 +
(607809096133375762153335847523839391/59216308593750000000000000:β)*x^10*(1-x)^24 +
(8427099588852868346099742136229588957/361877441406250000000000000:β)*x^11*(1-x)^23 +
(83162165720757436741420385026341254509/1809387207031250000000000000:β)*x^12*(1-x)^22 +
(6465714023183326120974320513863787790989/81422424316406250000000000000:β)*x^13*(1-x)^21 +
(3070489019357153411700150072588091455833/25444507598876953125000000000:β)*x^14*(1-x)^20 +
(82369624574464912186052678411201103823739/508890151977539062500000000000:β)*x^15*(1-x)^19 +
(3910314359275519861283649778682853171355229/20355606079101562500000000000000:β)*x^16*(1-x)^18 +
(979175253390516279186463881299949127320211/4846572875976562500000000000000:β)*x^17*(1-x)^17 +
(18263450287363530970672089631693726965414361/96931457519531250000000000000000:β)*x^18*(1-x)^16 +
(17617068143172995639202711944743442184849557/113086700439453125000000000000000:β)*x^19*(1-x)^15 +
(5805157568137808862325200615665450856083238073/50889015197753906250000000000000000:β)*x^20*(1-x)^14 +
(106751395374573342818643134988112428956196041/1445710659027099609375000000000000:β)*x^21*(1-x)^13 +
(13399476602886887470912830751358415258789263239/318056344985961914062500000000000000:β)*x^22*(1-x)^12 +
(203394843320074906765348971241270582814374973/9638071060180664062500000000000000:β)*x^23*(1-x)^11 +
(73412104728736551372464217800669117696986097123/7951408624649047851562500000000000000:β)*x^24*(1-x)^10 +
(139309476218905417280721075386752271276084623033/39757043123245239257812500000000000000:β)*x^25*(1-x)^9 +
(32477127068915750179291210097408098171730074813/28397887945175170898437500000000000000:β)*x^26*(1-x)^8 +
(39433145196824909814460561789894422591933034093/124240759760141372680664062500000000000:β)*x^27*(1-x)^7 +
(1852317908162190170035216935656039577364200647/25099143385887145996093750000000000000:β)*x^28*(1-x)^6 +
(5836982899230309706402487066150347002468521567/414135865867137908935546875000000000000:β)*x^29*(1-x)^5 +
(53440683331803983473324825254354074715316174661/24848151952028274536132812500000000000000:β)*x^30*(1-x)^4 +
(1564303979409844850797520400352897238700085837/6212037988007068634033203125000000000000:β)*x^31*(1-x)^3 +
(219633445088755317503000659291685432421229847/10353396646678447723388671875000000000000:β)*x^32*(1-x)^2 +
(4437106302213137739667714564011045560602003/3882523742504417896270751953125000000000:β)*x^33*(1-x)^1 +
(57307964213152837654157884692498315776209/1941261871252208948135375976562500000000:β)*x^34*(1-x)^0
lemma identity (x:β) : H ((1/5:β)*x)=bern x := by
unfold H FlowNum JlowNum g g1 bern
ring
lemma bern_nonneg {x:β} (hx:0β€x) (hx1:xβ€1) : 0β€bern x := by
have hy : 0β€1-x := sub_nonneg.mpr hx1
unfold bern
positivity
lemma H_nonneg {u:β} (hu:0β€u) (hu1:uβ€1/5) : 0β€H u := by
have he : u=(1/5:β)*(u/(1/5)) := by ring
rw [he,identity]
apply bern_nonneg
Β· positivity
Β· rw [div_le_one (by norm_num : (0:β)<1/5)]
exact hu1
lemma hasDerivAt_g (u:β) : HasDerivAt g (g1 u) u := by
have hh := ((hasDerivAt_const u 1).add ((hasDerivAt_id u).mul ((hasDerivAt_const u (2869387/1000000:β)).add ((hasDerivAt_id u).mul ((hasDerivAt_const u (589981/125000:β)).add ((hasDerivAt_id u).mul ((hasDerivAt_const u (6566689/1000000:β)).add ((hasDerivAt_id u).mul ((hasDerivAt_const u (4206127/500000:β)).add ((hasDerivAt_id u).mul ((hasDerivAt_const u (10257227/1000000:β)).add ((hasDerivAt_id u).mul ((hasDerivAt_const u (6050939/500000:β)).add ((hasDerivAt_id u).mul ((hasDerivAt_const u (2789267/200000:β)).add ((hasDerivAt_id u).mul (hasDerivAt_const u (7895333/500000:β))))))))))))))))))
convert! hh using 1
simp only [g1, Pi.add_apply, Pi.mul_apply, id_eq]
ring
lemma hasDerivAt_g1 (u:β) : HasDerivAt g1 (g2 u) u := by
have hh := ((hasDerivAt_const u (2869387/1000000:β)).add ((hasDerivAt_id u).mul ((hasDerivAt_const u (589981/62500:β)).add ((hasDerivAt_id u).mul ((hasDerivAt_const u (19700067/1000000:β)).add ((hasDerivAt_id u).mul ((hasDerivAt_const u (4206127/125000:β)).add ((hasDerivAt_id u).mul ((hasDerivAt_const u (10257227/200000:β)).add ((hasDerivAt_id u).mul ((hasDerivAt_const u (18152817/250000:β)).add ((hasDerivAt_id u).mul ((hasDerivAt_const u (19524869/200000:β)).add ((hasDerivAt_id u).mul (hasDerivAt_const u (7895333/62500:β))))))))))))))))
convert! hh using 1
simp only [g2, Pi.add_apply, Pi.mul_apply, id_eq]
ring
lemma g_ge_one {u:β} (hu:0β€u) : 1β€g u := by
unfold g
have : 0β€u*((2869387/1000000:β)+u*((589981/125000:β)+u*((6566689/1000000:β)+u*((4206127/500000:β)+u*((10257227/1000000:β)+u*((6050939/500000:β)+u*((2789267/200000:β)+u*(7895333/500000:β)))))))) := by positivity
linarith
lemma g1_nonneg {u:β} (hu:0β€u) : 0β€g1 u := by unfold g1; positivity
lemma g_residual_nonpos {u:β} (hu:0β€u) :
(1-u)*(2*g1 u+4*u*g2 u)-12*u*g1 u+(-643/200:β)*(-643/200+5)*g u β€0 := by
have he : -((1-u)*(2*g1 u+4*u*g2 u)-12*u*g1 u+(-643/200:β)*(-643/200+5)*g u) =
((1/1000000:β)+u*((335237/40000000000:β)+u*((18531/5000000000:β)+u*((26639/40000000000:β)+u*((378977/20000000000:β)+u*((2875077/40000000000:β)+u*((1938389/20000000000:β)+u*((1189117/8000000000:β)+u*(107925657105483/20000000000:β))))))))) := by unfold g g1 g2; ring
have hz : 0β€ -((1-u)*(2*g1 u+4*u*g2 u)-12*u*g1 u+(-643/200:β)*(-643/200+5)*g u) := by
rw [he]
positivity
linarith
lemma lower_logder {u:β} (hu:0β€u) (hub:uβ€(27/100:β)) : 0β€2*(1-u)*g1 u-5*g u := by
let x:=u/(27/100:β)
have hx:0β€x := by dsimp [x]; positivity
have hy:0β€1-x := by dsimp [x]; linarith
have he : 2*(1-u)*g1 u-5*g u =
(369387/500000:β)*x^0*(1-x)^8 + (558448641/100000000:β)*x^1*(1-x)^7 + (90906551829/5000000000:β)*x^2*(1-x)^6 + (33087845213199/1000000000000:β)*x^3*(1-x)^5 + (910658646456597/25000000000000:β)*x^4*(1-x)^4 + (243550667389510017/10000000000000000:β)*x^5*(1-x)^3 + (1156300362730287837/125000000000000000:β)*x^6*(1-x)^2 + (160712254758181821273/100000000000000000000:β)*x^7*(1-x)^1 + (141611539097570077017/5000000000000000000000:β)*x^8*(1-x)^0 := by
dsimp [x]
unfold g g1
ring
rw [he]
positivity
lemma upper_logder {u:β} (hu:0β€u) (hub:uβ€(27/100:β)) : 0β€2*g u-(13/25)*g1 u := by
let x:=u/(27/100:β)
have hx:0β€x := by dsimp [x]; positivity
have hy:0β€1-x := by dsimp [x]; linarith
have he : 2*g u-(13/25)*g1 u =
(12697969/25000000:β)*x^0*(1-x)^8 + (5359357177/1250000000:β)*x^1*(1-x)^7 + (3933009652441/250000000000:β)*x^2*(1-x)^6 + (408907285769443/12500000000000:β)*x^3*(1-x)^5 + (21018853182775349/500000000000000:β)*x^4*(1-x)^4 + (4252809530492624731/125000000000000000:β)*x^5*(1-x)^3 + (83958125315148478907/5000000000000000000:β)*x^6*(1-x)^2 + (5678700560736300182329/1250000000000000000000:β)*x^7*(1-x)^1 + (1242771118592263674331/2500000000000000000000:β)*x^8*(1-x)^0 := by
dsimp [x]
unfold g g1
ring
rw [he]
positivity
lemma FlowNum_nonneg {u:β} (hu:0β€u) (hub:uβ€(1/5:β)) : 0β€FlowNum u := by
let x:=u/(1/5:β)
have hx:0β€x := by dsimp [x]; positivity
have hy:0β€1-x := by dsimp [x]; linarith
have he : FlowNum u =
8*x^0*(1-x)^8 + 56*x^1*(1-x)^7 + (848/5:β)*x^2*(1-x)^6 + (36192/125:β)*x^3*(1-x)^5 + (1328592/4375:β)*x^4*(1-x)^4 + (13082512/65625:β)*x^5*(1-x)^3 + (57279808/721875:β)*x^6*(1-x)^2 + (62341556/3609375:β)*x^7*(1-x)^1 + (5536402/3609375:β)*x^8*(1-x)^0 := by
dsimp [x]
unfold FlowNum
ring
rw [he]
positivity
end Bernoulli.DeSilvaJerison.Algebra
namespace Bernoulli.DeSilvaJerison
def gSub (t:β) : β := Algebra.g (t^2)
def gSub1 (t:β) : β := 2*t*Algebra.g1 (t^2)
def gSub2 (t:β) : β := 2*Algebra.g1 (t^2)+4*t^2*Algebra.g2 (t^2)
def qSub (t:β) : β := gSub1 t/gSub t
lemma gSub_pos (t:β) : 0<gSub t := by
have h:=Algebra.g_ge_one (sq_nonneg t)
unfold gSub
linarith
lemma hasDerivAt_gSub (t:β) : HasDerivAt gSub (gSub1 t) t := by
have hh:=(Algebra.hasDerivAt_g (t^2)).comp t (hasDerivAt_pow 2 t)
convert! hh using 1
dsimp only [gSub1,Function.comp_apply,id_eq]
norm_num only
ring
lemma hasDerivAt_gSub1 (t:β) : HasDerivAt gSub1 (gSub2 t) t := by
have hh:=((hasDerivAt_id t).const_mul 2).mul
((Algebra.hasDerivAt_g1 (t^2)).comp t (hasDerivAt_pow 2 t))
convert! hh using 1
dsimp only [gSub2,Function.comp_apply,id_eq]
norm_num only
ring
lemma gSub_residual (t:β) :
(1-t^2)*gSub2 t-6*t*gSub1 t+(-643/200:β)*(-643/200+5)*gSub t β€0 := by
convert! Algebra.g_residual_nonpos (sq_nonneg t) using 1
unfold gSub gSub1 gSub2
ring
lemma qSub_nonneg {t:β} (ht:0β€t) : 0β€qSub t := by
unfold qSub gSub1
exact div_nonneg (by have:=Algebra.g1_nonneg (sq_nonneg t); positivity) (gSub_pos t).le
lemma qSub_bounds {t:β} (ht:0β€t) (hT:tβ€t7) :
5*tβ€(1-t^2)*qSub t β§ qSub tβ€4 := by
have htl:tβ€517331/1000000 := hT.trans t7_bounds.2
have hu:t^2β€27/100 := by nlinarith
have hd:=Algebra.lower_logder (sq_nonneg t) hu
have hm:=Algebra.upper_logder (sq_nonneg t) hu
have hp:=Algebra.g1_nonneg (sq_nonneg t)
have hg:=gSub_pos t
unfold qSub gSub1 gSub at *
constructor
Β· rw [βmul_div_assoc]
apply (le_div_iffβ hg).mpr
have hh:=mul_nonneg ht hd
nlinarith
Β· apply (div_le_iffβ hg).mpr
have hh:=mul_le_mul_of_nonneg_right (show 2*tβ€26/25 by linarith) hp
linarith
lemma c7_upper : c7β€177344/10000 := by
have hl:t7^2β₯(517330/1000000:β)^2 := by nlinarith [t7_bounds.1,t7_pos]
have hu:1-t7^2β₯1-(517331/1000000:β)^2 := by nlinarith [t7_bounds.2,t7_pos]
have hp:=pow_le_pow_leftβ (by norm_num : (0:β)β€1-(517331/1000000:β)^2) hu 5
have hm:=mul_le_mul hl hp (by norm_num : (0:β)β€(1-(517331/1000000:β)^2)^5) (sq_nonneg t7)
have ht : 0<1-t7^2 := by nlinarith [t7_pos,t7_lt_one]
have hT:=t7_pos
rw [c7_eq]
apply (div_le_iffβ (by positivity : 0<t7^2*(1-t7^2)^5)).mpr
norm_num at hm
linarith
lemma fp_strictAnti : StrictAntiOn fp (Ico (0:β) 1) := by
apply strictAntiOn_of_deriv_neg (convex_Ico 0 1)
Β· intro t ht
exact (hasDerivAt_fp β¨by linarith [ht.1],ht.2β©).continuousAt.continuousWithinAt
Β· intro t ht
rw [interior_Ico] at ht
rw [(hasDerivAt_fp β¨by linarith [ht.1],ht.2β©).deriv]
have hp : 0<1-t^2 := by nlinarith [ht.1,ht.2]
exact div_neg_of_neg_of_pos (by norm_num) (pow_pos hp 4)
lemma sub_endpoint_bounds : f (11/25)β€1/3 β§ fp (11/25)β€-7/2 := by
have ha : 4722/10000 β€ A (11/25) := by
rw [A_eq_half_log (by norm_num)]
refine le_trans ?_ (Real.sum_range_le_log_div (by norm_num) (by norm_num) 6)
norm_num [Finset.sum_range_succ]
constructor <;> dsimp only [f,fp] <;> norm_num at ha β’ <;> linarith
end Bernoulli.DeSilvaJerison
namespace Bernoulli.DeSilvaJerison
/-- The free-boundary gradient numerator for the explicit lower barrier. -/
def GSub (t:β) : β := (1-(-643/200:β))^2*(f t)^2+
(1-t^2)*(fp t-f t*qSub t)^2
def FLo (t:β) : β := Algebra.FlowNum (t^2)/(8*(1-t^2)^2)
def JLo (t:β) : β := Algebra.JlowNum (t^2)/(8*(1-t^2)^3)
lemma FLo_le {t:β} (ht:0β€t) (ht1:t<1) : FLo tβ€f t := by
have hd:1-t^2β 0 := by nlinarith
convert! f_series_lower 6 ht ht1 using 1
unfold FLo Algebra.FlowNum B
norm_num [Finset.sum_range_succ]
field_simp [hd]
ring
lemma fp_le_JLo {t:β} (ht:0β€t) (ht1:t<1) : fp tβ€-t*JLo t := by
have hd:1-t^2β 0 := by nlinarith
convert! fp_series_upper 6 ht ht1 using 1
unfold JLo Algebra.JlowNum B
norm_num [Finset.sum_range_succ]
field_simp [hd]
ring_nf
simp
lemma JLo_nonneg {t:β} (ht:0β€t) (ht1:t<1) : 0β€JLo t := by
have hd:0<1-t^2 := by nlinarith
have he : JLo t=1/(1-t^2)^3+5/4/(1-t^2)^2+15/8/(1-t^2)+15/8*B 6 (t^2) := by
unfold JLo Algebra.JlowNum B
norm_num [Finset.sum_range_succ]
field_simp
ring
rw [he]
have hh:=B_nonneg 6 (sq_nonneg t)
positivity
lemma GSub_low {t:β} (ht:0β€t) (htb:tβ€11/25) : c7β€GSub t := by
have ht1:t<1 := by linarith
have hd:0<1-t^2 := by nlinarith
have hu:t^2β€1/5 := by nlinarith
have hg:=gSub_pos t
have hF:0β€FLo t := div_nonneg (Algebra.FlowNum_nonneg (sq_nonneg t) hu) (by positivity)
have hL:=FLo_le ht ht1
have hp:=fp_le_JLo ht ht1
have hJ:=JLo_nonneg ht ht1
have hq:=qSub_nonneg ht
have hB: t*JLo t+FLo t*qSub t β€ -(fp t-f t*qSub t) := by
have hh:=mul_le_mul_of_nonneg_right hL hq
linarith
have hB0:0β€t*JLo t+FLo t*qSub t := by positivity
have hs1 := sq_le_sqβ hF (hF.trans hL) |>.mpr hL
have hs2 := sq_le_sqβ hB0 (hB0.trans hB) |>.mpr hB
have hH:=Algebra.H_nonneg (sq_nonneg t) hu
have he : Algebra.H (t^2) =
64*(1-t^2)^6*(gSub t)^2 *
((1-(-643/200:β))^2*(FLo t)^2+(1-t^2)*(t*JLo t+FLo t*qSub t)^2-177344/10000) := by
unfold Algebra.H FLo JLo qSub gSub gSub1
have hgn : Algebra.g (t^2) β 0 := ne_of_gt hg
field_simp [ne_of_gt hd,hgn]
ring
rw [he] at hH
have hn := (mul_nonneg_iff_of_pos_left (by positivity : 0<64*(1-t^2)^6*(gSub t)^2)).mp hH
have hu1:=mul_le_mul_of_nonneg_left hs1 (show (0:β)β€(1-(-643/200:β))^2 by positivity)
have hu2:=mul_le_mul_of_nonneg_left hs2 hd.le
dsimp [GSub]
nlinarith [c7_upper]
lemma hasDerivAt_qSub (t:β) :
HasDerivAt qSub (gSub2 t/gSub t-(qSub t)^2) t := by
have hh := (hasDerivAt_gSub1 t).div (hasDerivAt_gSub t) (ne_of_gt (gSub_pos t))
convert! hh using 1
unfold qSub
field_simp
lemma qSub_deriv_bound {t:β} (_ht:0β€t) (_ht1:t<1) :
(1-t^2)*(gSub2 t/gSub t-(qSub t)^2) β€
6*t*qSub t-(-643/200:β)*(-643/200+5)-(1-t^2)*(qSub t)^2 := by
have hg:=gSub_pos t
have hh:=gSub_residual t
have he : (1-t^2)*(gSub2 t/gSub t-(qSub t)^2)-
(6*t*qSub t-(-643/200:β)*(-643/200+5)-(1-t^2)*(qSub t)^2) =
((1-t^2)*gSub2 t-6*t*gSub1 t+(-643/200:β)*(-643/200+5)*gSub t)/gSub t := by
unfold qSub
field_simp
ring
have hz:=div_nonpos_of_nonpos_of_nonneg hh hg.le
linarith
lemma hasDerivAt_GSub {t:β} (ht:tβIoo (-1:β) 1) :
HasDerivAt GSub
(2*((1-(-643/200:β))^2*f t*fp t-t*(fp t-f t*qSub t)^2+
(1-t^2)*(fp t-f t*qSub t)*(-6/(1-t^2)^4-fp t*qSub t-f t*(gSub2 t/gSub t-(qSub t)^2)))) t := by
have hh:=(((hasDerivAt_f ht).pow 2).const_mul ((1-(-643/200:β))^2)).add
(((hasDerivAt_const t (1:β)).sub ((hasDerivAt_id t).pow 2)).mul
(((hasDerivAt_fp ht).sub ((hasDerivAt_f ht).mul (hasDerivAt_qSub t))).pow 2))
convert! hh using 1
norm_num only [id_eq,pow_one,Pi.add_apply,Pi.sub_apply,Pi.mul_apply,Pi.pow_apply]
ring
lemma GSub_nonpos_deriv {t:β} (ht:11/25β€t) (ht7:tβ€t7) : deriv GSub t β€0 := by
have ht0:0β€t := by linarith
have ht1:t<1:=ht7.trans_lt t7_lt_one
have hI:tβIoo (-1:β) 1:=β¨by linarith,ht1β©
have hd:0<1-t^2 := by nlinarith
have hf0:0β€f t := by
have hh:=f_strictAnti.antitoneOn β¨ht0,ht1β© β¨t7_pos.le,t7_lt_oneβ© ht7
simpa only [f_t7] using hh
have hfall : f t β€ f (11/25) := f_strictAnti.antitoneOn β¨by norm_num,by norm_numβ© β¨ht0,ht1β© ht
have hfp : fp t β€ fp (11/25) := fp_strictAnti.antitoneOn β¨by norm_num,by norm_numβ© β¨ht0,ht1β© ht
have hf:f tβ€1/3:=hfall.trans sub_endpoint_bounds.1
have hp:fp tβ€-7/2:=hfp.trans sub_endpoint_bounds.2
have hq:=qSub_nonneg ht0
obtain β¨hqL,hqUβ©:=qSub_bounds ht0 ht7
have hb:fp t-f t*qSub tβ€0 := by nlinarith [mul_nonneg hf0 hq]
have hres:=qSub_deriv_bound ht0 ht1
have hODE: (1-t^2)*(-6/(1-t^2)^4)=6*t*fp t-6*f t := by
have hh:=f_relation hI
field_simp at hh β’
nlinarith
have hbd : (1-t^2)*(-6/(1-t^2)^4-fp t*qSub t-f t*(gSub2 t/gSub t-(qSub t)^2)) β₯
6*t*fp t-6*f t-(1-t^2)*fp t*qSub t-
f t*(6*t*qSub t-(-643/200:β)*(-643/200+5)-(1-t^2)*(qSub t)^2) := by
have hh:=mul_le_mul_of_nonneg_left hres hf0
nlinarith only [hh,hODE]
have hmul:=mul_le_mul_of_nonpos_left hbd hb
rw [(hasDerivAt_GSub hI).deriv]
have hfirst : (5*t-(1-t^2)*qSub t)*(fp t-f t*qSub t)^2 β€0 :=
mul_nonpos_of_nonpos_of_nonneg (by linarith) (sq_nonneg _)
have hlast : (6.02745:β)*fp t+(11.738775:β)*f t*qSub tβ€0 := by
have hmul:=mul_le_mul hf hqU hq (by norm_num : (0:β)β€1/3)
linarith
have hlast2:=mul_nonpos_of_nonneg_of_nonpos hf0 hlast
nlinarith only [hmul,hfirst,hlast2]
lemma GSub_high {t:β} (ht:11/25β€t) (ht7:tβ€t7) : c7β€GSub t := by
have hcont:ContinuousOn GSub (Icc (11/25) t7) := by
intro x hx
exact (hasDerivAt_GSub β¨by linarith [hx.1],hx.2.trans_lt t7_lt_oneβ©).continuousAt.continuousWithinAt
have hanti:AntitoneOn GSub (Icc (11/25) t7) := by
apply antitoneOn_of_deriv_nonpos (convex_Icc _ _) hcont
Β· intro x hx
rw [interior_Icc] at hx
exact (hasDerivAt_GSub β¨by linarith [hx.1],hx.2.trans t7_lt_oneβ©).differentiableAt.differentiableWithinAt
Β· intro x hx
rw [interior_Icc] at hx
exact GSub_nonpos_deriv hx.1.le hx.2.le
have he:GSub t7=c7 := by simp [GSub,f_t7,c7]
rw [βhe]
exact hanti β¨ht,ht7β© β¨by linarith [t7_bounds.1],le_rflβ© ht7
/-- Exact substitute for DSJ's numerical lower-barrier plot in dimension seven. -/
theorem GSub_ge_c7 {t:β} (ht:0β€t) (ht7:tβ€t7) : c7β€GSub t := by
by_cases h:tβ€11/25
Β· exact GSub_low ht h
Β· exact GSub_high (le_of_lt (lt_of_not_ge h)) ht7
end Bernoulli.DeSilvaJerison
namespace Bernoulli.DeSilvaJerison
open Axisymmetric InnerProductSpace
open scoped Laplacian ContDiff
lemma qSub_neg (t:β) : qSub (-t)= -qSub t := by
simp only [qSub,gSub,gSub1,neg_sq]
ring
lemma GSub_neg (t:β) : GSub (-t)=GSub t := by
rw [GSub,GSub,f_neg,fp_neg_arg,qSub_neg,neg_sq]
ring
lemma GSub_ge_c7_abs {t:β} (ht:|t|β€t7) : c7β€GSub t := by
have hh:=GSub_ge_c7 (abs_nonneg t) ht
rcases le_total 0 t with hp|hn
Β· simpa only [abs_of_nonneg hp] using hh
Β· simpa only [abs_of_nonpos hn,GSub_neg] using hh
lemma gSub_contDiff {n:WithTop ββ} : ContDiff β n gSub := by
unfold gSub Algebra.g
fun_prop
/-- Positive superharmonic ground state used by the lower comparison. -/
def YSub : Space 7 β β := lift axis (-643/200) gSub
lemma YSub_pos {x:Space 7} (hx:xβ 0) : 0<YSub x := by
unfold YSub lift
exact mul_pos (Real.rpow_pos_of_pos (norm_pos_iff.mpr hx) _) (gSub_pos _)
lemma YSub_contDiffAt {x:Space 7} {n:WithTop ββ} (hx:xβ 0) :
ContDiffAt β n YSub x := contDiffAt_lift hx gSub_contDiff.contDiffAt
/-- An actual sign of the Euclidean Laplacian, not a barrier hypothesis. -/
theorem YSub_superharmonic {x:Space 7} (hx:xβ 0) : Ξ YSub xβ€0 := by
have hp : βαΆ s in π (inner β x axis/βxβ), HasDerivAt gSub (gSub1 s) s :=
Filter.Eventually.of_forall hasDerivAt_gSub
have hh:=laplacian_lift axis x (-643/200) axis_norm hx
(gSub_contDiff (n:=2)).contDiffAt hp (hasDerivAt_gSub1 _)
rw [YSub,hh]
have hR:=gSub_residual (inner β x axis/βxβ)
have he : (-643/200:β)*(-643/200+(Module.finrank β (Space 7):β)-2)*
gSub (inner β x axis/βxβ)-((Module.finrank β (Space 7):β)-1)*
(inner β x axis/βxβ)*gSub1 (inner β x axis/βxβ)+
(1-(inner β x axis/βxβ)^2)*gSub2 (inner β x axis/βxβ)β€0 := by
simp only [Space,finrank_euclideanSpace_fin,Nat.cast_ofNat]
nlinarith [hR]
exact mul_nonpos_of_nonneg_of_nonpos (by positivity) he
lemma Usigned_gradient {x:Space 7} (hx:xβ 0) (ha:|angle x|<1) :
gradient Usigned x=ΞΊ β’ polarGradient axis x (f (angle x)) (fp (angle x)) := by
have hi : inner β x axis/βxββIoo (-1:β) 1 := by
simpa only [inner_axis,angle,Set.mem_Ioo] using abs_lt.mp ha
rw [show gradient Usigned x=ΞΊ β’ gradient Zsigned x from
gradient_const_mul ΞΊ ((signed_contDiffAt (n:=1) hx ha).differentiableAt (by norm_num))]
rw [Zsigned,(hasGradientAt_lift axis x 1 hx (hasDerivAt_f hi)).gradient]
simp only [Real.rpow_one,div_self (norm_ne_zero_iff.mpr hx),one_smul,one_mul,inner_axis,angle]
lemma YSub_gradient {x:Space 7} (hx:xβ 0) :
gradient YSub x=(βxβ^(-643/200:β)/βxβ) β’
polarGradient axis x ((-643/200:β)*gSub (angle x)) (gSub1 (angle x)) := by
simpa only [YSub,inner_axis,angle] using
(hasGradientAt_lift axis x (-643/200) hx (hasDerivAt_gSub _)).gradient
lemma U_gradient {x:Space 7} (hu:0<U x) :
gradient U x=ΞΊ β’ polarGradient axis x (f (angle x)) (fp (angle x)) := by
obtain β¨hx,haβ©:=(U_pos_iff x).mp hu
have he:gradient U x=gradient Usigned x := by
rw [gradient,(U_eventuallyEq_Usigned hu).fderiv_eq]
rfl
rw [he,Usigned_gradient hx (ha.trans t7_lt_one)]
/-- The square-completion vector of the lower comparison has norm at least one
throughout the entire positive phase of the concrete seven-dimensional cone. -/
theorem lower_groundstate_slope {x:Space 7} (hu:0<U x) :
1β€βgradient U x-(U x/YSub x) β’ gradient YSub xβ^2 := by
obtain β¨hx,haβ©:=(U_pos_iff x).mp hu
have hn:=norm_ne_zero_iff.mpr hx
have hg:=ne_of_gt (gSub_pos (angle x))
have hr:=ne_of_gt (Real.rpow_pos_of_pos (norm_pos_iff.mpr hx) (-643/200:β))
have hU : U x=ΞΊ*βxβ*f (angle x) := by
rw [U_eq_Usigned ha.le,Usigned,Zsigned_eq]
ring
have he : gradient U x-(U x/YSub x) β’ gradient YSub x=
ΞΊ β’ polarGradient axis x ((1-(-643/200:β))*f (angle x))
(fp (angle x)-f (angle x)*qSub (angle x)) := by
rw [U_gradient hu,YSub_gradient hx,hU]
have hy : YSub x = βxβ^(-643/200:β)*gSub (angle x) := by
simp only [YSub,lift,inner_axis,angle]
rw [hy]
unfold polarGradient qSub
simp only [inner_axis]
ext i
simp only [PiLp.sub_apply,PiLp.add_apply,PiLp.smul_apply,smul_eq_mul]
unfold angle at *
field_simp [hn,hg,hr]
ring
rw [he,norm_smul,mul_pow,Real.norm_eq_abs,sq_abs,norm_sq_polarGradient axis_norm hx]
have hG:=mul_le_mul_of_nonneg_left (GSub_ge_c7_abs ha.le) (sq_nonneg ΞΊ)
rw [ΞΊ_sq] at hG
simpa only [GSub,inner_axis,angle,mul_pow] using hG
end Bernoulli.DeSilvaJerison
end
end
end
end
end
end OAI
import OAI.Analysis.BernoulliCone.SobolevCalculus
namespace OAI
universe uE uΞΉ
section
noncomputable section
open MeasureTheory Set Filter
open scoped ENNReal Topology ContDiff
noncomputable section
open Set Filter Finset
open scoped Topology
namespace Bernoulli.DeSilvaJerison
/-- Half the logarithmic ratio; it is artanh on (-1,1). -/
def A (t : β) : β := (Real.log (1+t) - Real.log (1-t))/2
/-- The even solution of (1-tΒ²)f''-6tf'+6f=0 with f(0)=1. -/
def f (t : β) : β :=
(8-25*t^2+15*t^4)/(8*(1-t^2)^2) - (15/8)*t*A t
/-- A convenient rational-logarithmic expression for f'. -/
def fp (t : β) : β :=
-t/(1-t^2)^3 - (5/4)*t/(1-t^2)^2 - (15/8)*t/(1-t^2) - (15/8)*A t
lemma A_neg (t : β) : A (-t) = -A t := by
simp only [A, sub_eq_add_neg, neg_neg]
ring
lemma A_zero : A 0 = 0 := by simp [A]
lemma f_zero : f 0 = 1 := by norm_num [f]
lemma fp_zero : fp 0 = 0 := by simp [fp]
lemma f_neg (t : β) : f (-t) = f t := by
simp only [f, neg_sq, A_neg]
ring
lemma A_eq_half_log {t : β} (ht : t β Ioo (-1 : β) 1) :
A t = 1/2 * Real.log ((1+t)/(1-t)) := by
rw [Real.log_div (by linarith [ht.1] : 1+tβ 0) (by linarith [ht.2] : 1-tβ 0)]
unfold A
ring
lemma hasDerivAt_A {t : β} (ht : t β Ioo (-1 : β) 1) :
HasDerivAt A (1/(1-t^2)) t := by
have hp : 1+tβ 0 := by linarith [ht.1]
have hm : 1-tβ 0 := by linarith [ht.2]
have hd : 1-t^2β 0 := by nlinarith [ht.1,ht.2]
apply (((((hasDerivAt_const t (1:β)).add (hasDerivAt_id t)).log hp).sub
(((hasDerivAt_const t (1:β)).sub (hasDerivAt_id t)).log hm)).div_const 2).congr_deriv
norm_num
field_simp [hd,hp,hm]
ring
lemma hasDerivAt_f {t : β} (ht : t β Ioo (-1 : β) 1) : HasDerivAt f (fp t) t := by
have hd : 1-t^2β 0 := by nlinarith [ht.1,ht.2]
have hden : 8*(1-t^2)^2β 0 := mul_ne_zero (by norm_num) (pow_ne_zero _ hd)
have hnum := ((hasDerivAt_const t (8:β)).sub
(((hasDerivAt_id t).pow 2).const_mul 25)).add
(((hasDerivAt_id t).pow 4).const_mul 15)
have hden' := (((hasDerivAt_const t (1:β)).sub ((hasDerivAt_id t).pow 2)).pow 2).const_mul 8
apply ((hnum.div hden' hden).sub
(((hasDerivAt_id t).const_mul (15/8)).mul (hasDerivAt_A ht))).congr_deriv
norm_num [fp]
field_simp [hd]
ring
lemma hasDerivAt_fp {t : β} (ht : t β Ioo (-1 : β) 1) :
HasDerivAt fp (-6/(1-t^2)^4) t := by
have hd : 1-t^2β 0 := by nlinarith [ht.1,ht.2]
have hD := (hasDerivAt_const t (1:β)).sub ((hasDerivAt_id t).pow 2)
apply (((((hasDerivAt_id t).neg.div (hD.pow 3) (pow_ne_zero _ hd)).sub
(((hasDerivAt_id t).const_mul (5/4)).div (hD.pow 2) (pow_ne_zero _ hd))).sub
(((hasDerivAt_id t).const_mul (15/8)).div hD hd)).sub
((hasDerivAt_A ht).const_mul (15/8))).congr_deriv
norm_num
field_simp [hd]
ring
lemma f_relation {t : β} (ht : t β Ioo (-1 : β) 1) :
t * fp t - f t = -1/(1-t^2)^3 := by
have hd : 1-t^2β 0 := by nlinarith [ht.1,ht.2]
unfold fp f
field_simp
ring
/-- The profile satisfies the differential equation `(1-tΒ²)f''-6tf'+6f=0`. -/
theorem profile_equation {t : β} (ht : t β Ioo (-1 : β) 1) :
(1-t^2) * deriv (deriv f) t - 6*t*deriv f t + 6*f t = 0 := by
have he : deriv f =αΆ [π t] fp := by
filter_upwards [isOpen_Ioo.mem_nhds ht] with x hx
exact (hasDerivAt_f hx).deriv
rw [he.deriv_eq, (hasDerivAt_fp ht).deriv, (hasDerivAt_f ht).deriv]
have hr := f_relation ht
have hd : 1-t^2β 0 := by nlinarith [ht.1,ht.2]
field_simp at hr β’
nlinarith [hr]