File size: 6,586 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | import Mathlib
import OAI.Probability.SKBarriers.Scalar.ScalarCDFLimit
import OAI.Probability.SKBarriers.Hierarchy.HierarchySandwich
import OAI.Probability.SKBarriers.Hierarchy.HierarchyScoreGeneral
import OAI.Probability.SKBarriers.Scalar.ScalarSymmetricTaylor
import OAI.Probability.SKBarriers.Scalar.UniformExpansion
namespace OAI
section
noncomputable section
open scoped BigOperators NNReal Topology
open MeasureTheory ProbabilityTheory Filter Set
namespace SK.Analytic
attribute [local instance 2000] parameterNormedGroup parameterNormedSpace
section Linear
variable {E : Type} [NormedAddCommGroup E] [NormedSpace β E]
theorem scalar_composition_coordinate_bound {f : β β β} (hf : BoundedDerivs f)
(hL : LipschitzWith 1 f) (X : E βL[β] β) (z e : E) :
|fderiv β (f β X) z e| β€ |X e| := by
rw [fderiv_comp z (hf.1.differentiable (by norm_num) _) X.differentiableAt,
X.fderiv,ContinuousLinearMap.comp_apply]
have H := ((fderiv β f (X z)).le_opNorm (X e)).trans
(mul_le_mul_of_nonneg_right (norm_fderiv_le_of_lipschitz β hL) (norm_nonneg _))
simpa only [Real.norm_eq_abs,NNReal.coe_one,one_mul] using H
end Linear
def tripleMiddleBoundary (f : β β β) {n : β}
(X Z : ParameterSpace n βL[β] β) : ParameterSpace n β β :=
fun z => f (X z)+2*f (Z z)
def tripleModifiedBoundary (f : β β β) {n : β}
(X Z Y : ParameterSpace n βL[β] β) (Ξ΄ : β) : ParameterSpace n β β :=
fun z => f (X z)+f (Z z+Ξ΄*Y z)+f (Z z-Ξ΄*Y z)
theorem tripleMiddleBoundary_regular {n : β} {f : β β β} (hf : BoundedDerivs f)
(X Z : ParameterSpace n βL[β] β) : BoundedDerivs (tripleMiddleBoundary f X Z) :=
(hf.compCLM X).add ((hf.compCLM Z).const_mul 2)
theorem tripleModifiedBoundary_regular {n : β} {f : β β β} (hf : BoundedDerivs f)
(X Z Y : ParameterSpace n βL[β] β) (Ξ΄ : β) :
BoundedDerivs (tripleModifiedBoundary f X Z Y Ξ΄) :=
((hf.compCLM X).add (hf.compCLM (Z+Ξ΄ β’ Y))).add (hf.compCLM (Z-Ξ΄ β’ Y))
theorem tripleMiddleBoundary_coordinate_bound {n : β} {f : β β β} (hf : BoundedDerivs f)
(hL : LipschitzWith 1 f) (X Z : ParameterSpace n βL[β] β) (i : Fin n) (z : ParameterSpace n) :
|fderiv β (tripleMiddleBoundary f X Z) z (coordinateAxis n i)| β€
|X (coordinateAxis n i)|+2*|Z (coordinateAxis n i)| := by
let F := f β X
let G := f β Z
have hF := (hf.compCLM X).1.differentiable (by norm_num)
have hG := (hf.compCLM Z).1.differentiable (by norm_num)
change |fderiv β (fun z => F z+2*G z) z (coordinateAxis n i)| β€ _
dsimp only [F,G,Function.comp_def]
rw [fderiv_fun_add (hF z) ((hG z).const_mul 2),fderiv_const_mul (hG z),
add_apply,smul_apply,smul_eq_mul]
calc
_ β€ |fderiv β F z (coordinateAxis n i)|+|2*fderiv β G z (coordinateAxis n i)| := abs_add_le _ _
_ β€ _ := by
rw [abs_mul,abs_of_pos (by norm_num : (0:β)<2)]
exact add_le_add (scalar_composition_coordinate_bound hf hL X z _)
(mul_le_mul_of_nonneg_left (scalar_composition_coordinate_bound hf hL Z z _) (by norm_num))
theorem tripleMiddle_recursive_expansion (n t : β) (m : Fin n β β) (p v : Fin t β β)
(hm : β i, m iβIcc (0:β) 1) (hmono : Monotone m)
(hp : β i, p iβIcc (0:β) 1) (hpmono : Monotone p)
(X Z : ParameterSpace n βL[β] β) (a : Fin n β β) (x : β)
{c Ξ΄ : β} (hc : 0<c) (hΞ΄ : 4*Ξ΄^2 β€ c) (hΞ΄1 : |Ξ΄| β€ 1)
(hsmall : c*(4*(β i, (a i)^2)+
(2*β i, |a i| *(|X (coordinateAxis n i)|+2*|Z (coordinateAxis n i)|))^2) β€ 1/2) :
let f := scalarHierarchy t p v scalarSpinTerminal
let F := tripleMiddleBoundary f X Z
let Y := coordinateLinear n a
hierarchyPressure n m (tripleModifiedBoundary f X Z Y Ξ΄) x β€
hierarchyPressure n m F x+
Ξ΄^2*(β« z, rootHessian 0 f (Z z)*(Y z)^2 βhierarchyPathLaw n m F x)+
((2*(susceptibilityLipschitzConstant:β)*(1+2/c^2)+32/c^2)*2)*|Ξ΄|^3 := by
dsimp only
let f := scalarHierarchy t p v scalarSpinTerminal
let F := tripleMiddleBoundary f X Z
let Y := coordinateLinear n a
let G := tripleModifiedBoundary f X Z Y Ξ΄
let ΞΌ := hierarchyPathLaw n m F x
have hf : BoundedDerivs f := scalarHierarchy_spin_regular t p v
have hFL : LipschitzWith 1 f := scalarHierarchy_lipschitz t p v (fun i => (hp i).1)
scalarSpinTerminal_regular scalarSpinTerminal_lipschitz
have hF : BoundedDerivs F := tripleMiddleBoundary_regular hf X Z
have hG : BoundedDerivs G := tripleModifiedBoundary_regular hf X Z Y Ξ΄
have hU : BoundedDerivs (fun z => G z-F z) := by
simpa only [neg_one_mul,β sub_eq_add_neg] using hG.add (hF.const_mul (-1))
let := hierarchyPathLaw_probability n m F hF x
obtain β¨hE,hMβ© := hierarchy_exp_square_bound n m hm hmono F hF
(fun i => |X (coordinateAxis n i)|+2*|Z (coordinateAxis n i)|) (by intro i; positivity)
(fun z i => tripleMiddleBoundary_coordinate_bound hf hFL X Z i z) x a hc.le hsmall
have hΞ : Integrable (fun z => G z-F z) ΞΌ :=
hU.hasExpGrowth.integrable_hierarchyPathLaw n m hF hU.1.continuous x
have hcA : Continuous (fun z : ParameterSpace n => rootHessian 0 f (Z z)) :=
(scalarHierarchy_spin_hessian_lipschitz t p v hp hpmono).continuous.comp Z.continuous
have hbA (z : ParameterSpace n) : βrootHessian 0 f (Z z)β β€ 1 := by
have H := scalarHierarchy_spin_derivative_bounds t p v hp (Z z)
change |fderiv β (fderiv β f) (Z z) 1 1| β€ 1
rw [abs_of_pos H.2.1]
exact H.2.2.trans (sub_le_self _ (sq_nonneg _))
have hA : Integrable (fun z => rootHessian 0 f (Z z)*(Y z)^2) ΞΌ :=
((HasExpGrowth.of_bounded zero_le_one hbA).mul ((HasExpGrowth.linear Y).pow 2)).integrable_hierarchyPathLaw
n m hF (hcA.mul (Y.continuous.pow 2)) x
have he (z) : G z-F z=symmetricIncrement f (Z z) (Ξ΄*Y z) := by
dsimp [F,G,tripleMiddleBoundary,tripleModifiedBoundary,symmetricIncrement]; ring
have H := log_integral_exp_cubic_expansion ΞΌ Y (fun z => G z-F z)
(fun z => rootHessian 0 f (Z z)) Y.continuous.aestronglyMeasurable hΞ hA hc hΞ΄ hΞ΄1
(by positivity : 0 β€ 2*(susceptibilityLipschitzConstant:β)) hE hM
(ae_of_all _ (fun z => by rw [he]; exact (scalarHierarchy_symmetricIncrement_bounds t p v hp hpmono _ Ξ΄ _).1))
(ae_of_all _ (fun z => by rw [he]; exact (scalarHierarchy_symmetricIncrement_bounds t p v hp hpmono _ Ξ΄ _).2))
have HS := (hierarchyPressure_increment_integral_sandwich n m hm hF hG x).2
change hierarchyPressure n m G x β€ hierarchyPressure n m F x+_+_
linarith
end SK.Analytic
end
end
end OAI
|