File size: 5,896 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 | import OAI.Analysis.AncientFlat.Geometry.InnerExtensionCore
import OAI.Analysis.AncientFlat.Weighted.WeightedScaling
namespace OAI
noncomputable section
open Set Filter
open scoped ContDiff ENNReal
namespace FlatWeighted
open ParabolicInterior
variable {V : Type}
lemma sigma_sq [NormedAddCommGroup V] [InnerProductSpace β V] [FiniteDimensional β V]
(p : V Γ β) : (sigma p)^2=βp.1β^2+Real.sqrt (-p.2) := by
exact Real.sq_sqrt (by positivity)
lemma norm_le_sigma [NormedAddCommGroup V] [InnerProductSpace β V] [FiniteDimensional β V]
(p : V Γ β) : βp.1ββ€ sigma p := by
have hs := sigma_sq p
have hp : 0β€ sigma p := Real.sqrt_nonneg _
nlinarith [norm_nonneg p.1,Real.sqrt_nonneg (-p.2)]
lemma pdist_symm [NormedAddCommGroup V] [InnerProductSpace β V] [FiniteDimensional β V]
(p q : V Γ β) : pdist p q=pdist q p := by
simp only [pdist,norm_sub_rev,abs_sub_comm]
lemma sigma_le_add_pdist [NormedAddCommGroup V] [InnerProductSpace β V] [FiniteDimensional β V]
(p q : V Γ β) (hp : p.2<0) (hq : q.2<0) :
sigma pβ€ sigma q+pdist p q := by
let d := |p.2-q.2|^((1:β)/4)
have hd : 0β€d := Real.rpow_nonneg (abs_nonneg _) _
have hd4 : d^4=|p.2-q.2| := by
dsimp [d]
rw [βReal.rpow_natCast,βReal.rpow_mul (abs_nonneg _)]
norm_num
have hq2 := Real.sq_sqrt (show 0β€ -q.2 by linarith)
have ht : Real.sqrt (-p.2)β€Real.sqrt (-q.2)+d^2 := by
apply (sq_le_sqβ (Real.sqrt_nonneg _) (by positivity)).mp
rw [Real.sq_sqrt (neg_pos.mpr hp).le]
have hdiff : -p.2β€ -q.2+|p.2-q.2| := by linarith [neg_le_abs (p.2-q.2)]
nlinarith [mul_nonneg (Real.sqrt_nonneg (-q.2)) (sq_nonneg d)]
have hpq : βp.1ββ€βq.1β+βp.1-q.1β := by
calc
_ = βq.1+(p.1-q.1)β := by congr 1; abel
_ β€ _ := norm_add_le _ _
have hpq2 : βp.1β^2β€(βq.1β+βp.1-q.1β)^2 := pow_le_pow_leftβ (norm_nonneg _) hpq 2
have hqs := sigma_sq q
have hnp := norm_le_sigma q
have hh : 0β€ sigma q-βq.1β := sub_nonneg.mpr hnp
unfold sigma
apply Real.sqrt_le_iff.mpr
refine β¨by dsimp [pdist]; positivity,?_β©
change βp.1β^2+Real.sqrt (-p.2)β€(sigma q+(βp.1-q.1β+d))^2
have hpos : 0 β€ sigma q := Real.sqrt_nonneg _
have hmul : 0 β€ (sigma q+βp.1-q.1β)*d := mul_nonneg (add_nonneg hpos (norm_nonneg _)) hd
nlinarith [mul_nonneg hh (norm_nonneg (p.1-q.1))]
def timeProject (T : β) (p : V Γ β) : V Γ β := (p.1,max p.2 (-T))
def extensionWeight [NormedAddCommGroup V] (Ο : β β β) (T : β) (p : V Γ β) : β :=
if -Tβ€p.2 then 1 else Ο ((-p.2-T)/(βp.1β^2+Real.sqrt T)^2)
lemma innerExtension_eq [NormedAddCommGroup V] [InnerProductSpace β V] [FiniteDimensional β V]
(Ο : β β β) (T : β) (f : V Γ β β β) (p : V Γ β) :
innerExtension Ο T f p=extensionWeight Ο T p β’ f (timeProject T p) := by
by_cases h : -Tβ€p.2
Β· simp [innerExtension,extensionWeight,timeProject,h]
Β· simp [innerExtension,extensionWeight,timeProject,h,max_eq_right (not_le.mp h).le]
lemma timeProject_mem [NormedAddCommGroup V] [InnerProductSpace β V] [FiniteDimensional β V]
{T : β} (hT : 0<T) (p : V Γ β) (hp : p.2<0) :
-Tβ€(timeProject T p).2 β§ (timeProject T p).2<0 :=
β¨le_max_right _ _,max_lt hp (by linarith)β©
lemma timeProject_pdist [NormedAddCommGroup V] [InnerProductSpace β V] [FiniteDimensional β V]
(T : β) (p q : V Γ β) : pdist (timeProject T p) (timeProject T q)β€pdist p q := by
dsimp [pdist,timeProject]
apply add_le_add_right
exact Real.rpow_le_rpow (abs_nonneg _) (abs_max_sub_max_le_abs _ _ _) (by norm_num)
lemma sigma_project_le [NormedAddCommGroup V] [InnerProductSpace β V] [FiniteDimensional β V]
(T : β) (p : V Γ β) : sigma (timeProject T p)β€ sigma p := by
apply Real.sqrt_le_sqrt
exact add_le_add_right (Real.sqrt_le_sqrt (neg_le_neg (le_max_left _ _))) _
lemma extensionWeight_range [NormedAddCommGroup V] [InnerProductSpace β V] [FiniteDimensional β V]
{Ο : β β β} (hΟ : ExtensionCutoff Ο) {T : β} (hT : 0<T) (p : V Γ β) :
0β€extensionWeight Ο T p β§ extensionWeight Ο T pβ€1 := by
by_cases h : -Tβ€p.2
Β· simp [extensionWeight,h]
Β· rw [extensionWeight,ite_eq_right h]
apply hΟ.2.1
apply div_nonneg
Β· linarith [not_le.mp h]
Β· exact (sq_pos_of_pos (add_pos_of_nonneg_of_pos (sq_nonneg _) (Real.sqrt_pos.mpr hT))).le
lemma sigma_le_project_of_active [NormedAddCommGroup V] [InnerProductSpace β V] [FiniteDimensional β V]
{Ο : β β β} (hΟ : ExtensionCutoff Ο) {T : β} (hT : 0<T)
(p : V Γ β) (hp : p.2<0) (hactive : extensionWeight Ο T pβ 0) :
sigma pβ€2*sigma (timeProject T p) := by
by_cases h : -Tβ€p.2
Β· have he : timeProject T p=p := by ext <;> simp [timeProject,max_eq_left h]
rw [he]
have hs : 0 β€ sigma p := (sigma_pos p hp).le
linarith
have hb : 0<βp.1β^2+Real.sqrt T := add_pos_of_nonneg_of_pos (sq_nonneg _) (Real.sqrt_pos.2 hT)
have harg : (-p.2-T)/(βp.1β^2+Real.sqrt T)^2<1 := by
by_contra hn
exact hactive (by rw [extensionWeight,ite_eq_right h,hΟ.2.2.2 _ (not_lt.mp hn)])
have hbnd : -p.2-T<(βp.1β^2+Real.sqrt T)^2 := by
simpa only [one_mul] using (div_lt_iffβ (sq_pos_of_pos hb)).mp harg
have hTsq := Real.sq_sqrt hT.le
have hrt : Real.sqrt (-p.2)β€2*(βp.1β^2+Real.sqrt T) := by
apply Real.sqrt_le_iff.mpr
refine β¨by positivity,?_β©
nlinarith [sq_nonneg (βp.1β^2),mul_nonneg (sq_nonneg βp.1β) (Real.sqrt_nonneg T)]
change Real.sqrt (βp.1β^2+Real.sqrt (-p.2))β€2*Real.sqrt (βp.1β^2+Real.sqrt (-max p.2 (-T)))
rw [max_eq_right (not_le.mp h).le,neg_neg]
apply Real.sqrt_le_iff.mpr
refine β¨by positivity,?_β©
rw [mul_pow,Real.sq_sqrt hb.le]
nlinarith [sq_nonneg βp.1β,Real.sqrt_nonneg T]
end FlatWeighted
end
end OAI
|