Download data/lean/OAI/MeasureTheory/Falconer/Graphs/ActualDirectGraph.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.39 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Graphs/ActualDirectGraph.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/Falconer/Graphs/ActualDirectGraph.lean
-
curl -L -o ActualDirectGraph.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Graphs/ActualDirectGraph.lean
5.39 kB
| import OAI.MeasureTheory.Falconer.Recursion.DirectPolicyWitness | |
| import OAI.MeasureTheory.Falconer.Angular.AngularStateDropping | |
| import OAI.MeasureTheory.Falconer.Estimates.ActualProductEquation13 | |
| namespace OAI | |
| namespace PlanarFalconer | |
| open Set MeasureTheory | |
| open scoped ContDiff | |
| namespace AngularStateData | |
| theorem uniform_direct_graph {lam sig eps : β} (hlam : 0 β€ lam) (hsig : 0 < sig) | |
| (heps : 0 < eps) (T : β) (K J : β) (hJ : 0 < J) | |
| {Ξ¨ : β β β} (hΞ¨ : ContDiff β β Ξ¨) (hpos : β x, 0 β€ Ξ¨ x) | |
| (hs : β x, Ξ¨ x β 0 β x β Ioo (1/4:β) 4) : | |
| β Nβ : β, β d : AngularStateData, | |
| d.lam = lam β d.sig = sig β d.J = J β Nβ β€ d.N β | |
| d.Q.side = 1 β 0 < d.q β d.v β€ d.N β d.i < d.J β | |
| d.X.length = d.a β d.Y.length = d.a β | |
| β B : β, β Ξ΄ : β, RegularizedProfileData d.Q d.Ο d.N B Ξ΄ d.lam d.mass β | |
| β k : Fin 2 β PolicyDescriptor β β, (β l, β b β d.retainedList d.a, k l b β€ K) β | |
| β h : Fin 2 β Plane β β, (β l, Measurable (h l)) β (β l x, βh l xβ β€ 1) β | |
| β e : PolicyDescriptor, DirectPolicyWitness d.profile d.N d.q d.aβ d.tβ d.a d.v d.sig e β | |
| let p := descriptorAnchor e | |
| d.energy k h Ξ¨ β β€ β§ (β row, d.childEnergy k h p Ξ¨ row β β€) β§ | |
| (β l, β b β d.retainedList p, k l b β€ K) β§ | |
| (d.energy k h Ξ¨).toReal β€ ((2:β)^d.N)^ | |
| (-2*(d.profile p-d.profile d.a)+height d.profile d.a p+4000*(lam+sig)+eps) * | |
| d.childMaximum k h p Ξ¨ + ((2:β)^d.N)^(-T) := by | |
| obtain β¨Nβ,hββ© := uniform_actual_product_equation13 hsig Real.pi_pos | |
| (by linarith [Real.pi_pos] : Real.pi β€ 2*Real.pi) | |
| K lam T hlam (half_pos heps) hJ hΨ hpos hs | |
| obtain β¨Nβ,hββ© := fixed_constant_absorbed (half_pos heps) ((symbolDerivativeConstant K^K)^4) | |
| refine β¨max Nβ Nβ,?_β© | |
| intro d hdLam hdSig hdJ hN hQ hq hvN hi hX hY B Ξ΄ hprof k hk h hh hhb e hw | |
| subst lam | |
| subst sig | |
| subst J | |
| let := hprof.probability | |
| have hQp : 0 < d.Q.side := by rw [hQ]; norm_num | |
| let p := descriptorAnchor e | |
| have hap : d.a β€ p := hw.anchor_gt.le | |
| have hpN : p β€ d.N := hw.anchor_lt.le.trans hvN | |
| have heq : d.a+(p-d.a) = p := Nat.add_sub_of_le hap | |
| have heqR : (d.a:β)+((p-d.a:β):β) = (p:β) := by exact_mod_cast heq | |
| have hcard (_l : Fin 2) : (d.retainedList d.a).card β€ (d.N+1)^3+1 := | |
| (remainingPolicyDescriptors_card d.profile hq).trans (Nat.le_succ _) | |
| have hL (_l : Fin 2) (b : PolicyDescriptor) (hb : b β d.retainedList d.a) : | |
| descriptorLength (id b) β€ descriptorLength e := by | |
| rw [hw.maximal] | |
| exact Finset.le_sup hb | |
| have hdepth : ((p-d.a:β):β) β€ (d.v:β)-((d.a:β)+((p-d.a:β):β))+2*d.sig*d.N := by | |
| rw [heqR] | |
| exact hw.depth_scale | |
| have hlength : (descriptorLength e:β) β€ (d.v:β)-((d.a:β)+((p-d.a:β):β))+2*d.sig*d.N := by | |
| rw [heqR] | |
| exact hw.length_scale | |
| have hv : 0 β€ (d.v:β)-((d.a:β)+((p-d.a:β):β)) := by | |
| rw [heqR] | |
| exact sub_nonneg.mpr (Nat.cast_le.mpr hw.anchor_lt.le) | |
| have hgap : ((max d.a (p-descriptorLength e):β):β)-d.a β€ 2*d.sig*d.N := by | |
| have hg := hw.g_slack | |
| dsimp only [p] at * | |
| linarith [show 0 β€ d.sig*(d.N:β) by positivity] | |
| have hmain := hβ d.N ((le_max_left _ _).trans hN) | |
| (fun _ : Fin 2 => d.retainedList d.a) (fun _ => id) k hcard hk | |
| (descriptorLength e) hL (fun _ => d.Q) (fun _ => hQ) (fun _ => d.Ο) d.mass B Ξ΄ | |
| (fun _ => hprof) d.i h hi hh hhb d.a (p-d.a) d.v (by omega) hv hdepth hlength | |
| (by have htR : (d.v:β) β€ d.N := Nat.cast_le.mpr hvN; linarith [show (0:β) β€ (d.a:β) from Nat.cast_nonneg _]) | |
| (.parallel (max d.a (p-descriptorLength e)) p) hw.companion | |
| (max d.a (p-descriptorLength e)) (by simp only [id_eq,heq]) | |
| (le_max_left _ _) (by rw [heq]; exact hw.g_lt.le) hgap d.X d.Y hX hY | |
| have hgraph : d.energy k h Ξ¨ β β€ β§ | |
| (d.energy k h Ξ¨).toReal β€ ((2:β)^d.N)^ | |
| (-2*(d.profile p-d.profile d.a)+height d.profile d.a p+4000*(d.lam+d.sig)+eps/2) * | |
| finiteEnergyMaximum (d.children p) (d.cellEnergy (d.retainedList d.a) k h p Ξ¨) | |
| + ((2:β)^d.N)^(-T) := by | |
| dsimp only at hmain | |
| simp only [heqR,heq] at hmain | |
| exact hmain | |
| have hk' (l : Fin 2) := d.child_budget hap (k l) (hk l) | |
| refine β¨hgraph.1,fun row => d.cellEnergy_finite hQp (d.retainedList p) k K hk' h hh hhb p hΞ¨ hpos hs row, | |
| hk',hgraph.2.trans ?_β© | |
| have hdrop := d.child_maximum_drop hQp p hap hX hY k K hk h hh hhb hΨ hpos hs | |
| have hconst := hβ d.N ((le_max_right _ _).trans hN) | |
| let E := -2*(d.profile p-d.profile d.a)+height d.profile d.a p+4000*(d.lam+d.sig) | |
| have habs : ((2:β)^d.N)^(E+eps/2)*(symbolDerivativeConstant K^K)^4 β€ | |
| ((2:β)^d.N)^(E+eps) := by | |
| calc | |
| _ β€ ((2:β)^d.N)^(E+eps/2)*((2:β)^d.N)^(eps/2) := by gcongr | |
| _ = _ := by rw [β Real.rpow_add (by positivity)]; congr 1; ring | |
| calc | |
| _ β€ ((2:β)^d.N)^(E+eps/2)*((symbolDerivativeConstant K^K)^4*d.childMaximum k h p Ξ¨) | |
| + ((2:β)^d.N)^(-T) := by gcongr | |
| _ = (((2:β)^d.N)^(E+eps/2)*(symbolDerivativeConstant K^K)^4)*d.childMaximum k h p Ξ¨ | |
| + ((2:β)^d.N)^(-T) := by ring | |
| _ β€ _ := add_le_add (mul_le_mul_of_nonneg_right habs (d.childMaximum_nonneg k h p Ξ¨)) le_rfl | |
| end AngularStateData | |
| end PlanarFalconer | |
| end OAI | |