math / data /lean /OAI /MeasureTheory /FalconerCompletion /Estimates /SourceWeightedErrorGeneral.lean
Download data/lean/OAI/MeasureTheory/FalconerCompletion/Estimates/SourceWeightedErrorGeneral.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.93 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/FalconerCompletion/Estimates/SourceWeightedErrorGeneral.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/FalconerCompletion/Estimates/SourceWeightedErrorGeneral.lean
-
curl -L -o SourceWeightedErrorGeneral.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/FalconerCompletion/Estimates/SourceWeightedErrorGeneral.lean
2.93 kB
| import Mathlib | |
| import OAI.MeasureTheory.Falconer.Estimates.ActualDirectBuffer | |
| import OAI.MeasureTheory.Falconer.Estimates.ActualOuterMasks | |
| import OAI.MeasureTheory.Falconer.Model | |
| import OAI.MeasureTheory.Falconer.Recursion.BranchCounts | |
| import OAI.MeasureTheory.Falconer.Recursion.BranchTransitions | |
| import OAI.MeasureTheory.Falconer.Recursion.SourceBranchDepth | |
| import OAI.MeasureTheory.FalconerCompletion.Graphs.SuffixDescendants | |
| import OAI.MeasureTheory.FalconerCompletion.Recursion.Extend | |
| namespace OAI | |
| /-! Quantitative estimates for the distance-set construction. -/ | |
| open _root_.OAI.PlanarFalconer | |
| section | |
| section | |
| open Set MeasureTheory | |
| open scoped ComplexConjugate RealInnerProductSpace | |
| namespace GraphLiteralSupport.CurrentFalconer.DimensionalPolicy | |
| open PlanarFalconer | |
| theorem uniform_source_weighted_error_generalND (offset : β) {sig kap T eps L C B : β} | |
| (hsig : 0<sig) (hkap : 0<kap) (hkap1 : kapβ€1) (hgap : sig<kap/1000) | |
| (hL : 0β€L) (hC : 0β€C) (heps : epsβ€1) | |
| (hT : (3*L+C*(sig+sig)+1)*(20/kap+1/sig)+Bβ€T) : | |
| β Nβ : β,0<Nβ β§ β Nβ₯Nβ,β A : β β β,ProfileLipschitzND A N L β | |
| β j : β,β b : PolicyBranch A N (sourcePolicyBlock N kap) offset sig j, | |
| b.weight C sig eps*((2:β)^N)^(-T)β€((2:β)^N)^(-B) := by | |
| obtain β¨Nβ,hNβ,hββ© := uniform_source_ceiling_slack hsig hgap | |
| refine β¨Nβ,hNβ,?_β© | |
| intro N hN A hA j b | |
| have hNp : 0<N := by omega | |
| have hq := sourcePolicyBlock_pos hNp hkap | |
| have hn := (source_branch_count_bounds hNp hsig hkap hkap1 (hβ N hN).1 b).2.2 | |
| have hb : b.exponentSum C sig epsβ€(j:β)*(3*L+C*(sig+sig)+eps) := by | |
| unfold PolicyBranch.exponentSum | |
| have hterm : β kβFinset.range j, | |
| branchExponentND A C sig sig eps (b.state k) (b.label k) (b.state (k+1))β€3*L+C*(sig+sig)+eps := by | |
| intro k hk | |
| have hk := Finset.mem_range.mp hk | |
| have hv := b.valid k hk.le | |
| have hu := b.valid (k+1) (by omega) | |
| have hc := (b.step k hk).cost_le hA hNp hq hL hv hu | |
| have hsd := BranchState.valid_depths hv | |
| have hud := BranchState.valid_depths hu | |
| have hi := abs_le.mp (hA.increment_le hNp hL (hud.1.trans hud.2) (hsd.1.trans hsd.2)) | |
| have hloss : 0β€C*(sig+sig) := by positivity | |
| unfold branchExponentND | |
| split_ifs <;> linarith | |
| simpa only [Finset.sum_const,Finset.card_range,nsmul_eq_mul] using Finset.sum_le_sum hterm | |
| have hexp : b.exponentSum C sig eps-Tβ€-B := by | |
| have hβ := mul_le_mul_of_nonneg_left hn (show 0β€3*L+C*(sig+sig)+1 by positivity) | |
| have hβ := mul_le_mul_of_nonneg_left heps (Nat.cast_nonneg (Ξ±:=β) j) | |
| nlinarith only [hb,hβ,hβ,hT] | |
| rw [PolicyBranch.weight,βReal.rpow_add (by positivity : 0<(2:β)^N)] | |
| exact Real.rpow_le_rpow_of_exponent_le (one_le_powβ (by norm_num)) (by simpa only [sub_eq_add_neg] using hexp) | |
| end GraphLiteralSupport.CurrentFalconer.DimensionalPolicy | |
| end | |
| end | |
| end OAI | |