Download data/lean/OAI/MeasureTheory/Falconer/Recursion/ActualRecursiveProfile.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 9.95 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Recursion/ActualRecursiveProfile.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/Falconer/Recursion/ActualRecursiveProfile.lean
-
curl -L -o ActualRecursiveProfile.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Recursion/ActualRecursiveProfile.lean
9.95 kB
| import OAI.MeasureTheory.Falconer.Graphs.RecursiveEnergyFamily | |
| import OAI.MeasureTheory.Falconer.Recursion.WeightedBranchInduction | |
| namespace OAI | |
| namespace PlanarFalconer | |
| open Set MeasureTheory | |
| open scoped ContDiff | |
| theorem RecursiveEnvironment.energies_mono (e : RecursiveEnvironment) {K L : β} | |
| (hKL : K β€ L) (Ξ¨ : β β β) {s : BranchState} {x : β} | |
| (hx : e.energies K Ξ¨ s x) : e.energies L Ξ¨ s x := by | |
| cases s with | |
| | D a t i => exact hx | |
| | H aβ tβ a v i => | |
| obtain β¨X,Y,hX,hY,k,hk,h,hh,hhb,hxβ© := hx | |
| exact β¨X,Y,hX,hY,k,fun l => (hk l).trans hKL,h,hh,hhb,hxβ© | |
| theorem uniform_actual_profile_with_overhead {lam sig kap theta : β} | |
| (hlam : 0 β€ lam) (hsig : 0 < sig) (hkap : 0 < kap) (hkap1 : kap β€ 1) | |
| (hgap : sig < kap/1000) (hloss : 4000*(lam+sig) β€ 1) | |
| (htheta : 0 < theta) (htheta1 : theta β€ 1) (Kβ : β) | |
| {Ξ¨ : β β β} (hΞ¨ : ContDiff β β Ξ¨) (hpos : β x, 0 β€ Ξ¨ x) | |
| (hs : β x, Ξ¨ x β 0 β x β Ioo (1/4:β) 4) | |
| (hone : β x β Icc (1/2:β) 2, 1 β€ Ξ¨ x) : | |
| β Nβ : β, 0 < Nβ β§ β e : RecursiveEnvironment, | |
| e.lam = lam β e.sig = sig β e.q = sourcePolicyBlock e.N kap β | |
| e.J = sourceSmoothingLevels sig kap β Nβ β€ e.N β e.Q.side = 1 β e.Ο e.Q.carrierαΆ = 0 β | |
| β B : β, β Ξ΄ : β, RegularizedProfileData e.Q e.Ο e.N B Ξ΄ e.lam e.mass β | |
| β root : BranchState, root.Valid e.N e.sig β root.index = 0 β | |
| root.start+10*e.q β€ root.finish β β x, e.energies Kβ Ξ¨ root x β | |
| x β€ ((e.N:β)+4)^(β20/kap+1/sigββ+1) * | |
| (((2:β)^e.N)^(2*e.profile root.start-potential e.profile root.start root.finish (10*e.q) | |
| +500*kap+10^6*(lam+sig)/kap+theta)+((2:β)^e.N)^(-10:β)) := by | |
| let Dstar : β := 1+20/kap+1/sig | |
| have hDstar : 1 β€ Dstar := by | |
| have hk : 0 β€ 20/kap := by positivity | |
| have hs : 0 β€ 1/sig := by positivity | |
| dsimp only [Dstar] | |
| linarith | |
| have hDpos : 0 < Dstar := by linarith | |
| let eps := theta/(2*Dstar) | |
| have heps : 0 < eps := div_pos htheta (by positivity) | |
| have hepstau : eps β€ theta/2 := by | |
| apply (div_le_iffβ (by positivity : 0 < 2*Dstar)).mpr | |
| nlinarith | |
| have heps1 : eps β€ 1 := by linarith | |
| let T : β := 1000*(1/sig+1/kap)+1001 | |
| have hT : 0 < T := by dsimp [T]; positivity | |
| have hTlarge : 1000*(1/sig+1/kap)+1000 < T := by dsimp [T]; linarith | |
| obtain β¨K,hK,Nβ,hNβ,hββ© := uniform_recursive_energy_rules hlam hsig hkap hgap heps | |
| (half_pos htheta) hT Kβ hΞ¨ hpos hs hone | |
| obtain β¨Nβ,_,hββ© := uniform_branch_successor_validity hsig hkap hgap | |
| obtain β¨Nβ,_,hββ© := uniform_source_branch_depth hsig hkap hkap1 hgap | |
| obtain β¨Nβ,_,hββ© := uniform_source_weighted_terminal hlam hsig hkap hkap1 hgap htheta | |
| obtain β¨Nβ ,_,hβ β© := uniform_source_weighted_error hsig hkap hkap1 hgap hloss heps1 hTlarge | |
| refine β¨max Nβ (max Nβ (max Nβ (max Nβ Nβ ))),by omega,?_β© | |
| intro e hdlam hdsig hdq hdJ hN hQ hcarry B Ξ΄ hprof root hroot hi hwide x hx | |
| have hNp : 0 < e.N := by omega | |
| have hqp := sourcePolicyBlock_pos hNp hkap | |
| have hA := hprof.discrete_lipschitz | |
| have hrules := hβ e hdlam hdsig hdq hdJ (by omega) hQ hcarry B Ξ΄ hprof | |
| let D : β := β20/kap+1/sigββ | |
| let L := ((2:β)^e.N)^(2*e.profile root.start-potential e.profile root.start root.finish (10*e.q) | |
| +500*kap+10^6*(lam+sig)/kap+theta) | |
| let terminal := ((2:β)^e.N)^(200*(e.q:β)/e.N+12*lam+theta/2) | |
| let floor := ((2:β)^e.N)^(12*lam+eps) | |
| have hfloor : floor β€ terminal := by | |
| apply Real.rpow_le_rpow_of_exponent_le (one_le_powβ (by norm_num)) | |
| have hnonneg : 0 β€ 200*(e.q:β)/e.N := by positivity | |
| linarith | |
| have hdepth : β n, β b : PolicyBranch e.profile e.N (sourcePolicyBlock e.N kap) sig n, | |
| b.state 0 = root β n β€ D := by | |
| intro n b hb | |
| have hidx : (b.state 0).index = 0 := by rw [hb]; exact hi | |
| have hn := (hβ e.N (by omega) e.profile n b hidx).2.2.1 | |
| exact Nat.cast_le.mp (hn.trans (Nat.le_ceil _)) | |
| have htermWeight : β n, β b : PolicyBranch e.profile e.N (sourcePolicyBlock e.N kap) sig n, | |
| b.state 0 = root β b.weight lam eps*terminal β€ L := by | |
| intro n b hb | |
| have hw : (b.state 0).start+10*sourcePolicyBlock e.N kap β€ (b.state 0).finish := by | |
| simpa only [hb,hdq] using hwide | |
| have hh := hβ e.N (by omega) e.profile hA n b hw | |
| simpa only [hb,β hdq] using hh | |
| have hind := weighted_branch_energy_induction e.profile e.N (sourcePolicyBlock e.N kap) D | |
| sig lam eps ((e.N:β)+3) terminal floor (((2:β)^e.N)^(-T)) L (((2:β)^e.N)^(-10:β)) | |
| root (e.energies K Ξ¨) hNp hqp hsig | |
| (by linarith [Nat.cast_nonneg (Ξ± := β) e.N]) (by positivity) (by positivity) | |
| (fun s u l hv hstep => (hβ e.N (by omega) e.profile s u l hv hstep).1) | |
| hdepth | |
| (by | |
| intro s hv ht y hy | |
| exact hrules.1 s (by simpa only [hdsig] using hv) (by simpa only [hdq] using ht) y hy) | |
| (by | |
| intro s hv hr hw M hM hfloorM hchildren y hy | |
| obtain β¨n,b,hb,hbsβ© := hr | |
| have hidx : (b.state 0).index = 0 := by rw [hb]; exact hi | |
| have hindex := ((hβ e.N (by omega) e.profile n b hidx).2.2.2 n le_rfl).2 | |
| rw [hbs,β hdJ] at hindex | |
| apply hrules.2 s (by simpa only [hdsig] using hv) hindex.le | |
| (by simpa only [hdq] using hw) M hM hfloorM _ y hy | |
| intro u l hstep z hz | |
| exact hchildren u l (by simpa only [hdq,hdsig] using hstep) z hz) | |
| htermWeight | |
| (fun n b hb => (mul_le_mul_of_nonneg_left hfloor (b.weight_pos lam eps).le).trans (htermWeight n b hb)) | |
| (by | |
| intro n b hb | |
| have hidx : (b.state 0).index = 0 := by rw [hb]; exact hi | |
| exact hβ e.N (by omega) e.profile hA n b hidx) | |
| let b : PolicyBranch e.profile e.N (sourcePolicyBlock e.N kap) sig 0 := | |
| β¨fun _ => root,fun _ => .low,fun _ _ => by simpa only [hdsig] using hroot,by omegaβ© | |
| have hh := hind 0 b rfl x (e.energies_mono hK Ξ¨ hx) | |
| simpa only [PolicyBranch.weight_zero,one_mul,Nat.sub_zero,show (e.N:β)+3+1 = (e.N:β)+4 by ring] using hh | |
| theorem recursion_overhead_absorption (D : β) {eta theta : β} | |
| (heta : 0 < eta) (htheta : theta β€ eta/4) : | |
| β Nβ : β, β N β₯ Nβ, β g : β, -4 β€ g β | |
| ((N:β)+4)^(D+1)*(((2:β)^N)^g+((2:β)^N)^(-10:β)) β€ | |
| ((2:β)^N)^(g+eta-theta) := by | |
| have he : 0 < eta-theta := by linarith | |
| obtain β¨Nβ,hββ© := fixed_polynomial_subpower (D+2) he | |
| refine β¨max 2 Nβ,?_β© | |
| intro N hN g hg | |
| have hNR : 2 β€ (N:β) := by exact_mod_cast (show 2 β€ N by omega) | |
| have hRp : 0 < (2:β)^N := by positivity | |
| have herr : ((2:β)^N)^(-10:β) β€ ((2:β)^N)^g := | |
| Real.rpow_le_rpow_of_exponent_le (one_le_powβ (by norm_num)) (by linarith) | |
| have hpol : 2*((N:β)+4)^(D+1) β€ (4*(N:β)+1)^(D+2) := by | |
| calc | |
| _ β€ 2*(4*(N:β)+1)^(D+1) := mul_le_mul_of_nonneg_left | |
| (pow_le_pow_leftβ (by linarith) (by linarith) (D+1)) (by norm_num) | |
| _ β€ (4*(N:β)+1)^(D+1)*(4*(N:β)+1) := by nlinarith [pow_nonneg (by linarith : 0 β€ 4*(N:β)+1) (D+1)] | |
| _ = _ := (pow_succ _ (D+1)).symm | |
| calc | |
| _ β€ (2*((N:β)+4)^(D+1))*((2:β)^N)^g := by nlinarith [pow_nonneg (by linarith : 0 β€ (N:β)+4) (D+1)] | |
| _ β€ ((2:β)^N)^(eta-theta)*((2:β)^N)^g := | |
| mul_le_mul_of_nonneg_right (hpol.trans (hβ N (by omega))) (by positivity) | |
| _ = _ := by rw [β Real.rpow_add hRp]; congr 1; ring | |
| theorem uniform_actual_recursive_profile {lam sig kap eta : β} | |
| (hlam : 0 β€ lam) (hsig : 0 < sig) (hkap : 0 < kap) (hkap1 : kap β€ 1) | |
| (hgap : sig < kap/1000) (hloss : 4000*(lam+sig) β€ 1) (heta : 0 < eta) (Kβ : β) | |
| {Ξ¨ : β β β} (hΞ¨ : ContDiff β β Ξ¨) (hpos : β x, 0 β€ Ξ¨ x) | |
| (hs : β x, Ξ¨ x β 0 β x β Ioo (1/4:β) 4) | |
| (hone : β x β Icc (1/2:β) 2, 1 β€ Ξ¨ x) : | |
| β Nβ : β, 0 < Nβ β§ β e : RecursiveEnvironment, | |
| e.lam = lam β e.sig = sig β e.q = sourcePolicyBlock e.N kap β | |
| e.J = sourceSmoothingLevels sig kap β Nβ β€ e.N β e.Q.side = 1 β e.Ο e.Q.carrierαΆ = 0 β | |
| β B : β, β Ξ΄ : β, RegularizedProfileData e.Q e.Ο e.N B Ξ΄ e.lam e.mass β | |
| β root : BranchState, root.Valid e.N e.sig β root.index = 0 β | |
| root.start+10*e.q β€ root.finish β β x, e.energies Kβ Ξ¨ root x β | |
| x β€ ((2:β)^e.N)^(2*e.profile root.start-potential e.profile root.start root.finish (10*e.q) | |
| +500*kap+10^6*(lam+sig)/kap+eta) := by | |
| let theta := min (eta/4) 1 | |
| have htheta : 0 < theta := lt_min (by positivity) (by norm_num) | |
| obtain β¨Nβ,hNβ,hββ© := uniform_actual_profile_with_overhead hlam hsig hkap hkap1 hgap hloss | |
| htheta (min_le_right _ _) Kβ hΞ¨ hpos hs hone | |
| obtain β¨Nβ,hββ© := recursion_overhead_absorption β20/kap+1/sigββ heta (min_le_left (eta/4) 1) | |
| refine β¨max Nβ Nβ,by omega,?_β© | |
| intro e hdlam hdsig hdq hdJ hN hQ hcarry B Ξ΄ hprof root hv hi hw x hx | |
| have hNp : 0 < e.N := by omega | |
| have hq : 0 < e.q := by rw [hdq]; exact sourcePolicyBlock_pos hNp hkap | |
| have hA := hprof.discrete_lipschitz | |
| have hzero : e.profile 0 = 0 := by simp only [RecursiveEnvironment.profile,Nat.cast_zero,hprof.zero,zero_div,sub_zero] | |
| have hrootdepth := BranchState.valid_depths hv | |
| have hbase := source_profile_exponent_lower hA hNp hzero (by omega : 0 < 10*e.q) hw hrootdepth.2 | |
| change -4 β€ 2*e.profile root.start-potential e.profile root.start root.finish (10*e.q) at hbase | |
| have hg : -4 β€ 2*e.profile root.start-potential e.profile root.start root.finish (10*e.q) | |
| +500*kap+10^6*(lam+sig)/kap+theta := by | |
| have hloss0 : 0 β€ 10^6*(lam+sig)/kap := by positivity | |
| linarith | |
| have hh := hβ e hdlam hdsig hdq hdJ (by omega) hQ hcarry B Ξ΄ hprof root hv hi hw x hx | |
| have habs := hβ e.N (by omega) _ hg | |
| have hh := hh.trans habs | |
| apply hh.trans_eq | |
| congr 1 | |
| dsimp only [theta] | |
| ring | |
| end PlanarFalconer | |
| end OAI | |