Buckets:
| import OAI.Analysis.NodalLength.ScaledWaves | |
| namespace OAI | |
| noncomputable section | |
| open scoped ContDiff Bundle ENNReal | |
| open Bundle Manifold MeasureTheory | |
| open scoped ContDiff ENNReal Topology | |
| open MeasureTheory Filter Set | |
| open scoped Topology ENNReal | |
| open MeasureTheory Filter Set | |
| open scoped Topology ENNReal ContDiff | |
| open MeasureTheory Filter Set | |
| open scoped Topology ENNReal ContDiff | |
| open MeasureTheory Filter Set | |
| open scoped Topology ENNReal ContDiff | |
| open MeasureTheory Filter Set | |
| open scoped Topology ContDiff | |
| open Filter Set | |
| open scoped Topology ContDiff | |
| open Filter Set | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory TopologicalSpace | |
| open scoped Topology ContDiff | |
| open Filter Set | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory TopologicalSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory TopologicalSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory Laplacian | |
| open scoped Topology ENNReal ContDiff ComplexConjugate | |
| open Filter Set MeasureTheory Laplacian | |
| open scoped Topology ENNReal ContDiff ComplexConjugate | |
| open Filter Set MeasureTheory Laplacian | |
| open scoped Topology ENNReal NNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal | |
| open Set MeasureTheory Filter | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Laplacian | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff CompactlySupported | |
| open Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff CompactlySupported | |
| open Set MeasureTheory | |
| open scoped Topology ENNReal ContDiff CompactlySupported | |
| open Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Laplacian | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff Convolution ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff ENNReal | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff ENNReal | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory Function | |
| open scoped Topology | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped BigOperators | |
| open Filter Set MeasureTheory | |
| open scoped BigOperators | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff Convolution | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology | |
| open Filter Set MeasureTheory | |
| open scoped Topology ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff BigOperators | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped Topology ENNReal ContDiff BigOperators | |
| open Filter Set MeasureTheory InnerProductSpace | |
| open scoped BigOperators | |
| open MeasureTheory | |
| open scoped BigOperators | |
| open Set MeasureTheory | |
| open scoped BigOperators | |
| open scoped Classical | |
| open scoped BigOperators Topology ENNReal | |
| open Set MeasureTheory | |
| namespace SharpNodal.Profiles | |
| abbrev GridWord (A n : ℕ) := Fin n → GridIndex A | |
| def wordIndex (A : ℕ) : (n : ℕ) → GridWord A n → GridIndex (A^n) | |
| | 0, _ => fun _ => 0 | |
| | n+1,w => fun j => Fin.cast (pow_succ' A n).symm | |
| (finProdFinEquiv (w 0 j,wordIndex A n (Fin.tail w) j)) | |
| lemma wordIndex_injective (A n : ℕ) : Function.Injective (wordIndex A n) := by | |
| induction n with | |
| | zero => intro p q _; exact Subsingleton.elim _ _ | |
| | succ n ih => | |
| intro p q hpq | |
| have hpairs (j : Fin 2) : | |
| (p 0 j,wordIndex A n (Fin.tail p) j)=(q 0 j,wordIndex A n (Fin.tail q) j) := by | |
| apply finProdFinEquiv.injective | |
| exact Fin.cast_injective (pow_succ' A n).symm (congrFun hpq j) | |
| have hhead : p 0=q 0 := funext (fun j =>congrArg Prod.fst (hpairs j)) | |
| have htail : Fin.tail p=Fin.tail q := ih (funext (fun j =>congrArg Prod.snd (hpairs j))) | |
| rw [← Fin.cons_self_tail p,← Fin.cons_self_tail q,hhead,htail] | |
| def wordCenter (A n : ℕ) (w : GridWord A n) : Plane := gridCenter (A^n) (wordIndex A n w) | |
| lemma wordCenter_zero (A : ℕ) (w : GridWord A 0) : wordCenter A 0 w=0 := by | |
| ext j | |
| norm_num [wordCenter,wordIndex,gridCenter] | |
| lemma wordCenter_succ {A : ℕ} (hA : 0<A) (n : ℕ) (w : GridWord A (n+1)) : | |
| wordCenter A (n+1) w=gridCenter A (w 0)+(A:ℝ)⁻¹ • wordCenter A n (Fin.tail w) := by | |
| have hAr : (A:ℝ)≠0 := by exact_mod_cast hA.ne' | |
| have hpow : ((A:ℝ)^n)≠0 := pow_ne_zero _ hAr | |
| ext j | |
| change (((wordIndex A (n+1) w j:ℕ):ℝ)+1/2)/(A^(n+1):ℕ)-1/2= | |
| (((w 0 j:ℕ):ℝ)+1/2)/(A:ℝ)-1/2+ | |
| (A:ℝ)⁻¹*((((wordIndex A n (Fin.tail w) j:ℕ):ℝ)+1/2)/(A^n:ℕ)-1/2) | |
| simp only [wordIndex,Fin.val_cast,finProdFinEquiv,Equiv.coe_fn_mk,Nat.cast_add,Nat.cast_mul,Nat.cast_pow] | |
| rw [pow_succ] | |
| field_simp | |
| ring | |
| lemma word_rescale_succ {A : ℕ} (hA : 0<A) (n : ℕ) (w : GridWord A (n+1)) : | |
| rescaleMap (wordCenter A (n+1) w) ((A:ℝ)⁻¹^(n+1))= | |
| rescaleMap (gridCenter A (w 0)) (A:ℝ)⁻¹ ∘ | |
| rescaleMap (wordCenter A n (Fin.tail w)) ((A:ℝ)⁻¹^n) := by | |
| funext x | |
| rw [wordCenter_succ hA] | |
| simp only [rescaleMap,Function.comp_apply,smul_add,smul_smul,pow_succ] | |
| module | |
| lemma gridWord_card (A n : ℕ) : Fintype.card (GridWord A n)=(A^n)^2 := by | |
| simp only [GridWord,GridIndex,Fintype.card_fun,Fintype.card_fin] | |
| rw [← pow_mul,← pow_mul,Nat.mul_comm] | |
| lemma expect_word_succ {α : Type*} [Fintype α] (n : ℕ) (f : (Fin (n+1) → α) → ℝ) : | |
| (𝔼 w,f w)=𝔼 a,𝔼 v : Fin n → α,f (Fin.cons a v) := by | |
| have he := Fintype.expect_equiv (Fin.consEquiv (fun _ : Fin (n+1) => α)) | |
| (fun p : α × (Fin n → α) => f (Fin.cons p.1 p.2)) f (fun _ =>rfl) | |
| rw [← he] | |
| exact Finset.expect_product _ _ _ | |
| end SharpNodal.Profiles | |
| noncomputable section | |
| open scoped BigOperators | |
| namespace SharpNodal.Profiles | |
| namespace WaveTree | |
| variable {A : ℕ} {Cp a₀ : ℝ} | |
| def PathGood (C₀ : ℝ) (P : Descent.Label → Prop) : | |
| (n : ℕ) → WaveTree A Cp a₀ → GridWord A n → Prop | |
| | 0,t,_ => P (label C₀ t.rootWave t.rootTilt) | |
| | _+1,.stop D b,_ => P (label C₀ D b) | |
| | n+1,.step D b t,w => P (label C₀ D b) ∧ PathGood C₀ P n (t (w 0)) (Fin.tail w) | |
| lemma expect_pathGood (hA : 0<A) (C₀ : ℝ) (P : Descent.Label → Prop) [DecidablePred P] | |
| (n : ℕ) (t : WaveTree A Cp a₀) (ht : t.Coherent n) : | |
| (𝔼 w : GridWord A n, if PathGood C₀ P n t w then (1:ℝ) else 0)= | |
| Descent.Tree.goodProb P (t.numerical C₀) := by | |
| classical | |
| have : NeZero A := ⟨hA.ne'⟩ | |
| induction n generalizing t with | |
| | zero => cases t with | |
| | stop D b => | |
| by_cases hh : P (label C₀ D b) <;> simp [PathGood,numerical,Descent.Tree.goodProb,rootWave,rootTilt,hh] | |
| | step D b t => exact ht.elim | |
| | succ n ih => cases t with | |
| | stop D b => | |
| by_cases hh : P (label C₀ D b) <;> simp [PathGood,numerical,Descent.Tree.goodProb,hh] | |
| | step D b t => | |
| rw [expect_word_succ] | |
| by_cases hP : P (label C₀ D b) | |
| · simp only [PathGood,Fin.cons_zero,Fin.tail_cons,hP,true_and] | |
| rw [numerical,Descent.Tree.goodProb,ite_eq_left hP] | |
| exact Finset.expect_congr rfl (fun i _ => ih (t i) (ht i).2) | |
| · simp [PathGood,hP,numerical,Descent.Tree.goodProb] | |
| end WaveTree | |
| def HighWavePath {Cp a₀ : ℝ} (A : ℕ) (L : ℝ) : | |
| (n : ℕ) → ScaledWave Cp a₀ → GridWord A n → Prop | |
| | 0,D,_ => L<D.growth 0 | |
| | n+1,D,w => L<D.growth 0 ∧ ∃E : ScaledWave Cp a₀, | |
| GridChild A D E (w 0) ∧ HighWavePath A L n E (Fin.tail w) | |
| lemma WaveTree.highPath_of_good {A : ℕ} {Cp a₀ C₀ L : ℝ} | |
| {P : Descent.Label → Prop} | |
| (hlarge : ∀(D : ScaledWave Cp a₀) (b : Plane),P (WaveTree.label C₀ D b) → L<D.growth 0) | |
| {n : ℕ} {t : WaveTree A Cp a₀} (hcoh : t.Coherent n) (hstop : t.Stopped C₀ P n) | |
| {w : GridWord A n} (hw : t.PathGood C₀ P n w) : HighWavePath A L n t.rootWave w := by | |
| induction n generalizing t with | |
| | zero => exact hlarge t.rootWave t.rootTilt hw | |
| | succ n ih => cases t with | |
| | stop D b => exact (hstop hw).elim | |
| | step D b t => | |
| exact ⟨hlarge D b hw.1, (t (w 0)).rootWave, (hcoh (w 0)).1, | |
| ih (hcoh (w 0)).2 (hstop.2 (w 0)) hw.2⟩ | |
| theorem actual_path_stability {A : ℕ} {Cp a₀ C₀ C₁ L : ℝ} (hA : 2≤A) | |
| (hCp : 0≤Cp) (ha₀ : 0<a₀) (hC₀ : 0≤C₀) (hC₁ : 0≤C₁) (hL : 0≤L) | |
| (hrule : DescentRule A Cp a₀ C₀ C₁ L) : | |
| ∃P σ : ℝ,1≤P ∧ 0<σ ∧ ∀(D : ScaledWave Cp a₀) (b : Plane) (n : ℕ), | |
| a₀≤D.K/(A:ℝ)^n → P≤‖b‖ → D.growth b≤σ*‖b‖ → | |
| (3:ℝ)/4 ≤ 𝔼 w : GridWord A n, if HighWavePath A L n D w then (1:ℝ) else 0 := by | |
| classical | |
| obtain ⟨P,σ,γ,hP,hσ,_hγ,hmain⟩ := actual_tree_stability hA hCp ha₀ hC₀ hC₁ hL hrule | |
| refine ⟨P,σ,hP,hσ,?_⟩ | |
| intro D b n hbottom hPb hm | |
| obtain ⟨t,hroot,_htilt,hcoh,_hvalid,hstop,hprob,hlarge⟩ := hmain D b n hbottom hPb hm | |
| rw [← WaveTree.expect_pathGood (by omega : 0<A) C₀ _ n t hcoh] at hprob | |
| apply hprob.trans | |
| apply Finset.expect_le_expect | |
| intro w _ | |
| split_ifs with hw hh hh | |
| · rfl | |
| · exact (hh (hroot ▸ WaveTree.highPath_of_good hlarge hcoh hstop hw)).elim | |
| · norm_num | |
| · rfl | |
| end SharpNodal.Profiles | |
| noncomputable section | |
| open scoped Topology ENNReal ContDiff | |
| open Filter Set MeasureTheory InnerProductSpace | |
| namespace SharpNodal.Profiles | |
| open Carleman | |
| lemma rescaleMap_mapsTo_margin {y : Plane} {r : ℝ} (hr : 0<r) | |
| (hmargin : ‖y‖+1000*r≤1000) : | |
| MapsTo (rescaleMap y r) (Metric.ball 0 1000) (Metric.ball 0 1000) := by | |
| intro x hx | |
| rw [Metric.mem_ball,dist_zero_right] at hx ⊢ | |
| calc | |
| ‖rescaleMap y r x‖ ≤ ‖y‖+r*‖x‖ := by | |
| simpa only [rescaleMap,norm_smul,Real.norm_eq_abs,abs_of_pos hr] using norm_add_le y (r • x) | |
| _ < ‖y‖+r*1000 := by gcongr | |
| _ ≤ 1000 := by nlinarith only [hmargin] | |
| def ScaledWave.rebase {Cp a₀ : ℝ} (D : ScaledWave Cp a₀) (y : Plane) (r : ℝ) | |
| (hr : 0<r) (hr1 : r≤1) (hmargin : ‖y‖+1000*r≤1000) | |
| (hbottom : a₀≤D.K*r) | |
| (hm0 : centeredMass 0 D.U y r≠0) | |
| (hmt : centeredMass 0 D.U y (1000*r)≠⊤) : ScaledWave Cp a₀ where | |
| p := D.p ∘ rescaleMap y r | |
| U := D.U ∘ rescaleMap y r | |
| K := D.K*r | |
| frequency_lower := hbottom | |
| smooth_p := D.smooth_p.comp (smooth_rescaleMap _ _).contDiffOn (rescaleMap_mapsTo_margin hr hmargin) | |
| smooth_U := D.smooth_U.comp (smooth_rescaleMap _ _).contDiffOn (rescaleMap_mapsTo_margin hr hmargin) | |
| coefficient_bound := fun x hx =>D.coefficient_bound _ (rescaleMap_mapsTo_margin hr hmargin hx) | |
| derivative_bound := by | |
| intro j x hx | |
| have hmap := rescaleMap_mapsTo_margin hr hmargin hx | |
| rw [partial_rescale_local Metric.isOpen_ball D.smooth_p _ _ x hmap j, | |
| abs_mul,abs_of_pos hr] | |
| exact (mul_le_of_le_one_left (abs_nonneg _) hr1).trans (D.derivative_bound j _ hmap) | |
| equation := by | |
| intro x hx | |
| have hmap := rescaleMap_mapsTo_margin hr hmargin hx | |
| rw [laplacian_rescale_local Metric.isOpen_ball D.smooth_U _ _ x hmap] | |
| dsimp only [Function.comp_apply] | |
| calc | |
| _ = r^2*(euclideanLaplacian D.U (rescaleMap y r x)+ | |
| D.K^2*D.p (rescaleMap y r x)*D.U (rescaleMap y r x)) := by ring | |
| _ = 0 := by rw [D.equation _ hmap,mul_zero] | |
| inner_nonzero := by | |
| have he := centeredMass_rescale (0:Plane) D.U y 0 hr 1 | |
| simp only [smul_zero,rescaleMap,add_zero,mul_one] at he | |
| rw [he] | |
| exact mul_ne_zero (by simp [hr.ne']) hm0 | |
| outer_finite := by | |
| have he := centeredMass_rescale (0:Plane) D.U y 0 hr 1000 | |
| simp only [smul_zero,rescaleMap,add_zero] at he | |
| rw [he] | |
| exact ENNReal.mul_ne_top (by simp) (by simpa only [mul_comm] using hmt) | |
| side := D.side*r | |
| side_pos := mul_pos D.side_pos hr | |
| side_le_one := (mul_le_of_le_one_right D.side_pos.le hr1).trans D.side_le_one | |
| physical_derivative := by | |
| intro j x hx | |
| have hmap := rescaleMap_mapsTo_margin hr hmargin hx | |
| rw [partial_rescale_local Metric.isOpen_ball D.smooth_p _ _ x hmap j,abs_mul,abs_of_pos hr] | |
| calc | |
| _ ≤ r*(Cp*D.side) := mul_le_mul_of_nonneg_left (D.physical_derivative j _ hmap) hr.le | |
| _ = Cp*(D.side*r) := by ring | |
| lemma ScaledWave.rebase_growth {Cp a₀ : ℝ} (D : ScaledWave Cp a₀) (y : Plane) (r : ℝ) | |
| (hr : 0<r) (hr1 : r≤1) (hmargin : ‖y‖+1000*r≤1000) | |
| (hbottom : a₀≤D.K*r) (hm0 : centeredMass 0 D.U y r≠0) | |
| (hmt : centeredMass 0 D.U y (1000*r)≠⊤) (b : Plane) : | |
| (D.rebase y r hr hr1 hmargin hbottom hm0 hmt).growth b= | |
| massExcess (centeredMass (D.K • b) D.U y (1000*r)) | |
| (centeredMass (D.K • b) D.U y r)/(D.K*r) := by | |
| have he := centered_excess_rescale (D.K • b) D.U y 0 hr 1000 1 | |
| have hs : r • (D.K • b)=(D.K*r) • b := by rw [smul_smul,mul_comm] | |
| simp only [hs,rescaleMap,smul_zero,add_zero,mul_one] at he | |
| dsimp only [UnitWave.growth,UnitWave.excess,ScaledWave.rebase] | |
| rw [he,mul_comm r 1000] | |
| def UnitWave.scaled {Cp a₀ : ℝ} (D : UnitWave Cp a₀) : ScaledWave Cp a₀ where | |
| toUnitWave := D | |
| side := 1 | |
| side_pos := by norm_num | |
| side_le_one := le_rfl | |
| physical_derivative := by simpa only [mul_one] using D.derivative_bound | |
| end SharpNodal.Profiles | |
| noncomputable section | |
| open scoped BigOperators Classical Topology | |
| open Filter Set MeasureTheory | |
| namespace SharpNodal.Profiles | |
| lemma frequency_at_earlier_scale {A m n : ℕ} (hA : 1≤A) (hmn : m≤n) | |
| {K a₀ : ℝ} (ha₀ : 0<a₀) (hbottom : a₀≤K/(A:ℝ)^n) : | |
| a₀≤K*((A:ℝ)⁻¹)^m := by | |
| have hAr : (1:ℝ)≤A := by exact_mod_cast hA | |
| have hAp : 0<(A:ℝ) := by linarith | |
| have hpow : (A:ℝ)^n=(A:ℝ)^m*(A:ℝ)^(n-m) := by rw [←pow_add,Nat.add_sub_of_le hmn] | |
| have hb := (le_div_iff₀ (pow_pos hAp n)).mp hbottom | |
| have hlast : 1≤(A:ℝ)^(n-m) := one_le_pow₀ hAr | |
| rw [inv_pow,←div_eq_mul_inv] | |
| apply (le_div_iff₀ (pow_pos hAp m)).mpr | |
| rw [hpow] at hb | |
| have hh := mul_le_mul_of_nonneg_left hlast (mul_nonneg ha₀.le (pow_nonneg hAp.le m)) | |
| nlinarith only [hb,hh] | |
| lemma frequency_rebase_bottom {A m n : ℕ} (hmn : m≤n) (K : ℝ) : | |
| (K*((A:ℝ)⁻¹)^m)/(A:ℝ)^(n-m)=K/(A:ℝ)^n := by | |
| rw [inv_pow,←div_eq_mul_inv,div_div,←pow_add,Nat.add_sub_of_le hmn] | |
| theorem sequence_persistent_paths {Cp a₀ C₀ C₁ L : ℝ} | |
| (hCp : 0≤Cp) (ha₀ : 0<a₀) (hC₀ : 0≤C₀) (hC₁ : 0≤C₁) (hL : 0≤L) | |
| {A : ℕ} (hA : 10000<A) (hrule : DescentRule A Cp a₀ C₀ C₁ L) | |
| {yₑ : Plane} (hyₑ : yₑ∈gridCenters A) | |
| (D : ℕ → UnitWave Cp a₀) (H : ℕ → ℝ) (hH : ∀j,0<H j) (hHlim : Tendsto H atTop atTop) | |
| (hparent : ∀j,(D j).growth 0≤H j) | |
| (hchild : ∀j,H j< massExcess (centeredMass 0 (D j).U yₑ (1000*(A:ℝ)⁻¹)) | |
| (centeredMass 0 (D j).U yₑ ((A:ℝ)⁻¹))/((D j).K*(A:ℝ)⁻¹)) | |
| (depth : ℕ → ℕ) (hdepth : Tendsto depth atTop atTop) | |
| (hbottom : ∀j,a₀≤(D j).K/(A:ℝ)^(depth j)) (m₀ : ℕ) : | |
| ∃φ : ℕ → ℕ,StrictMono φ ∧ ∃m≥m₀,∃p : Fin 2 → ℤ, | |
| let r:=((A:ℝ)⁻¹)^m | |
| let y:=extendedGridCenter r p | |
| ‖y‖+2000*r<3 ∧ 1000*r<1/4 ∧ ∀ᶠj in atTop, | |
| m≤depth (φ j) ∧ ∃E : ScaledWave Cp a₀, | |
| E.U=(D (φ j)).U ∘ rescaleMap y r ∧ E.K=(D (φ j)).K*r ∧ E.side=r ∧ | |
| (3:ℝ)/4≤𝔼 w : GridWord A (depth (φ j)-m), | |
| if HighWavePath A L (depth (φ j)-m) E w then (1:ℝ) else 0 := by | |
| obtain ⟨P,σ,hP,hσ,hstable⟩ := actual_path_stability (by omega) hCp ha₀ hC₀ hC₁ hL hrule | |
| obtain ⟨φ,hφ,m,hm,p,c,hc,hmargin,hrtiny,htransfer⟩ := | |
| sequence_persistence_square hCp ha₀ hA hyₑ D H hH hHlim hparent hchild hσ P m₀ | |
| let r:=((A:ℝ)⁻¹)^m | |
| let y:=extendedGridCenter r p | |
| have hAr : (1:ℝ)≤A := by exact_mod_cast (show 1≤A by omega) | |
| have hAp : 0<(A:ℝ) := by linarith | |
| have hr : 0<r := pow_pos (inv_pos.mpr hAp) m | |
| have hr1 : r≤1 := pow_le_one₀ (inv_nonneg.mpr hAp.le) ((inv_le_one₀ hAp).mpr hAr) | |
| have hmap : ‖y‖+1000*r≤1000 := by change ‖y‖+2000*r<3 at hmargin; linarith | |
| have hdep : ∀ᶠj in atTop,m≤depth (φ j) := (hdepth.comp hφ.tendsto_atTop).eventually_ge_atTop m | |
| refine ⟨φ,hφ,m,hm,p,hmargin,hrtiny,?_⟩ | |
| filter_upwards [hdep,htransfer] with j hj ht | |
| rcases ht with ⟨hPb,hi,ho,hgrowth⟩ | |
| have hfreq := frequency_at_earlier_scale (by omega : 1≤A) hj ha₀ (hbottom (φ j)) | |
| have hinner : centeredMass 0 (D (φ j)).U y r≠0 := centeredMass_ne_zero_of hi | |
| have houter : centeredMass 0 (D (φ j)).U y (1000*r)≠⊤ := centeredMass_ne_top_of ho | |
| let E := (D (φ j)).scaled.rebase y r hr hr1 hmap hfreq hinner houter | |
| refine ⟨hj,E,rfl,rfl,by dsimp [E,ScaledWave.rebase,UnitWave.scaled]; ring,?_⟩ | |
| refine hstable E (H (φ j) • c) (depth (φ j)-m) ?_ hPb ?_ | |
| · change a₀≤((D (φ j)).K*r)/(A:ℝ)^(depth (φ j)-m) | |
| rw [frequency_rebase_bottom hj] | |
| exact hbottom (φ j) | |
| · rw [show E.growth (H (φ j) • c)=_ from ScaledWave.rebase_growth _ _ _ hr hr1 hmap hfreq hinner houter _] | |
| simpa only [UnitWave.scaled,smul_smul] using hgrowth.le | |
| end SharpNodal.Profiles | |
| noncomputable section | |
| open scoped BigOperators Classical Topology | |
| open Filter Set MeasureTheory | |
| namespace SharpNodal.Profiles | |
| lemma finite_constant_subsequence {ι : Type*} [Finite ι] (f : ℕ → ι) : | |
| ∃φ : ℕ → ℕ,StrictMono φ ∧ ∃i : ι,∀n,f (φ n)=i := by | |
| obtain ⟨i,hi⟩ := Finite.exists_infinite_fiber f | |
| let := hi | |
| let φ := Nat.orderEmbeddingOfSet (f ⁻¹' {i}) | |
| refine ⟨φ,φ.strictMono,i,?_⟩ | |
| intro n | |
| exact (Nat.Subtype.ofNat (f ⁻¹' {i}) n).property | |
| def PersistentSquare (A : ℕ) (L : ℝ) {Cp a₀ : ℝ} (D : UnitWave Cp a₀) | |
| (depth M : ℕ) : Prop := | |
| ∃m : ℕ,2 ≤ m ∧ m≤M ∧ m≤depth ∧ ∃p : Fin 2 → ℤ, | |
| let r:=((A:ℝ)⁻¹)^m | |
| let y:=extendedGridCenter r p | |
| ‖y‖+2000*r<3 ∧ 1000*r<1/4 ∧ ∃E : ScaledWave Cp a₀, | |
| E.U=D.U ∘ rescaleMap y r ∧ E.K=D.K*r ∧ E.side=r ∧ | |
| (3:ℝ)/4≤𝔼 w : GridWord A (depth-m), | |
| if HighWavePath A L (depth-m) E w then (1:ℝ) else 0 | |
| theorem uniform_persistence_alternative {Cp a₀ C₀ C₁ L : ℝ} | |
| (hCp : 0≤Cp) (ha₀ : 0<a₀) (hC₀ : 0≤C₀) (hC₁ : 0≤C₁) (hL : 0≤L) | |
| {A : ℕ} (hA : 10000<A) (hrule : DescentRule A Cp a₀ C₀ C₁ L) | |
| (Hmin : ℝ) : ∃H : ℝ,max 1 Hmin<H ∧ ∃M : ℕ, | |
| ∀(D : UnitWave Cp a₀) (i : GridIndex A) (depth : ℕ), | |
| a₀≤D.K/(A:ℝ)^depth → D.growth 0≤H → | |
| H < massExcess (centeredMass 0 D.U (gridCenter A i) (1000*(A:ℝ)⁻¹)) | |
| (centeredMass 0 D.U (gridCenter A i) ((A:ℝ)⁻¹))/(D.K*(A:ℝ)⁻¹) → | |
| depth≤M ∨ PersistentSquare A L D depth M := by | |
| classical | |
| by_contra! hfail | |
| let H : ℕ → ℝ := fun j =>max 1 Hmin+(j:ℝ)+1 | |
| have hH (j : ℕ) : max 1 Hmin<H j := by dsimp [H]; have hn : (0:ℝ)≤j := Nat.cast_nonneg j; linarith | |
| have hHpos (j : ℕ) : 0<H j := lt_trans (by linarith [le_max_left (1:ℝ) Hmin]) (hH j) | |
| have hHlim : Tendsto H atTop atTop := by | |
| apply tendsto_atTop_mono (f:=fun j : ℕ =>(j:ℝ)) | |
| · intro j | |
| dsimp [H] | |
| linarith [le_max_left (1:ℝ) Hmin] | |
| · exact tendsto_natCast_atTop_atTop | |
| choose D i depth hbottom hparent hchild hdepth hbad using (fun j =>hfail (H j) (hH j) j) | |
| obtain ⟨φ,hφ,i₀,hi₀⟩ := finite_constant_subsequence i | |
| have hdep : Tendsto (depth ∘ φ) atTop atTop := | |
| tendsto_atTop_mono (fun j =>le_of_lt (hdepth (φ j))) hφ.tendsto_atTop | |
| have hparents (j : ℕ) : (D (φ j)).growth 0≤H (φ j) := hparent (φ j) | |
| have hchildren (j : ℕ) : H (φ j)< | |
| massExcess (centeredMass 0 (D (φ j)).U (gridCenter A i₀) (1000*(A:ℝ)⁻¹)) | |
| (centeredMass 0 (D (φ j)).U (gridCenter A i₀) ((A:ℝ)⁻¹))/((D (φ j)).K*(A:ℝ)⁻¹) := by | |
| simpa only [hi₀ j] using hchild (φ j) | |
| obtain ⟨ψ,hψ,m,hm,p,hmargin,hrtiny,hpaths⟩ := sequence_persistent_paths hCp ha₀ hC₀ hC₁ hL | |
| hA hrule (Finset.mem_image.mpr ⟨i₀,Finset.mem_univ _,rfl⟩) | |
| (D ∘ φ) (H ∘ φ) (fun j =>hHpos (φ j)) (hHlim.comp hφ.tendsto_atTop) | |
| hparents hchildren (depth ∘ φ) hdep (fun j =>hbottom (φ j)) 2 | |
| have hmle : ∀ᶠj in atTop,m≤φ (ψ j) := (hφ.comp hψ).tendsto_atTop.eventually_ge_atTop m | |
| obtain ⟨j,hj,hjpaths⟩ := (hmle.and hpaths).exists | |
| rcases hjpaths with ⟨hmd,E,hU,hK,hs,hprob⟩ | |
| exact hbad (φ (ψ j)) ⟨m,hm,hj,hmd,p,hmargin,hrtiny,E,hU,hK,hs,hprob⟩ | |
| end SharpNodal.Profiles | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 24.4 kB
- Xet hash:
- 78f56e9ef2d940817ad6cf1262bcac40e937c31b49eff5b92c4c46ecfe318c3d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.