File size: 2,925 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 | 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
|