Download data/lean/OAI/MeasureTheory/FalconerCompletion/Recursion/TensorCapCompact.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.87 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/FalconerCompletion/Recursion/TensorCapCompact.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/FalconerCompletion/Recursion/TensorCapCompact.lean
-
curl -L -o TensorCapCompact.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/FalconerCompletion/Recursion/TensorCapCompact.lean
5.87 kB
| import Mathlib | |
| import OAI.MeasureTheory.Falconer.Model | |
| import OAI.MeasureTheory.Falconer.Recursion.PolicyDescriptors | |
| import OAI.MeasureTheory.FalconerCompletion.Shells.TransportedAngularField | |
| namespace OAI | |
| /-! Recursive policies and quantitative depth estimates. -/ | |
| open _root_.OAI.PlanarFalconer | |
| section | |
| section | |
| open Set MeasureTheory | |
| open scoped ComplexConjugate RealInnerProductSpace | |
| namespace GraphLiteralSupport | |
| namespace CurrentFalconer | |
| open Set Metric MeasureTheory PlanarFalconer | |
| open scoped ContDiff | |
| variable {d : β} | |
| lemma tensorCapND_compact {Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) (a : Fin d β β€) : | |
| HasCompactSupport (tensorCapND Ξ΄ a) := by | |
| apply (isCompact_closedBall (capGridPointND Ξ΄ a) ((d+1:β)*Ξ΄)).of_isClosed_subset | |
| isClosed_closure | |
| exact fun w hw => tensorCapND_tsupport_dist hΞ΄ a hw | |
| lemma bufferedMaskND_compact {Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) | |
| (K : Set (EuclideanSpace β (Fin d))) : HasCompactSupport (bufferedMaskND Ξ΄ K) := by | |
| have h : HasCompactSupport (β a β maskCapSelectionND Ξ΄ K, tensorCapND Ξ΄ a) := | |
| HasCompactSupport.finset_sum (fun a _ => tensorCapND_compact hΞ΄ a) | |
| have he : (β a β maskCapSelectionND Ξ΄ K, tensorCapND Ξ΄ a) = bufferedMaskND Ξ΄ K := by | |
| funext w | |
| simp only [Finset.sum_apply,bufferedMaskND,selectedCapND] | |
| rw [he] at h | |
| exact h | |
| lemma evenBufferedMaskND_compact {Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) | |
| (K : Set (EuclideanSpace β (Fin d))) : HasCompactSupport (evenBufferedMaskND Ξ΄ K) := by | |
| have h := bufferedMaskND_compact hΞ΄ K | |
| have hn : HasCompactSupport (fun w => bufferedMaskND Ξ΄ K (-w)) := | |
| h.comp_homeomorph (Homeomorph.neg _) | |
| exact (h.add hn).mul_left | |
| namespace TreeND | |
| lemma actualDescriptorSmooth_compact (Ο : Measure (EuclideanSpace β (Fin d))) | |
| (m : β β β) (N : β) (sig C : β) (J i : β) (P : CellPath d) | |
| (b : PolicyDescriptor) : HasCompactSupport (actualDescriptorSmooth Ο m N sig C J i P b).1 := by | |
| exact (evenBufferedMaskND_compact (sourceMaskRadiusND_pos _ _ _ _) | |
| (descriptorGood Ο m N sig C J i P b)).comp_left (by simp : Complex.ofReal 0=0) | |
| lemma actualEndpointAngular_global_bound | |
| (L : List (EuclideanSpace β (Fin d) βL[β] EuclideanSpace β (Fin d))) | |
| (Ο : Measure (EuclideanSpace β (Fin d))) (m : β β β) (N : β) | |
| (sig C : β) (J i : β) (b : PolicyDescriptor) : | |
| β B : β, 0 β€ B β§ β x w, β(actualEndpointAngular L Ο m N sig C J i b x).1 wβ β€ B := by | |
| classical | |
| let D := sourceMaskScaleND (descriptorLength b) ((2:β)^N) sig | |
| let f := fun P : CellPath d => normalizedAngularWordND D L | |
| (actualDescriptorSmooth Ο m N sig C J i P b) | |
| have hf : β P, β B : β, 0 β€ B β§ β w, β(f P).1 wβ β€ B := by | |
| intro P | |
| have hc : HasCompactSupport (f P).1 := | |
| (actualDescriptorSmooth_compact Ο m N sig C J i P b).of_isClosed_subset | |
| isClosed_closure (normalizedAngularWordND_support _ _ _) | |
| obtain β¨B,hBβ© := hc.exists_bound_of_continuous (smoothFunctionND_contDiff (f P)).continuous | |
| exact β¨max 0 B,le_max_left _ _,fun w => (hB w).trans (le_max_right _ _)β© | |
| choose B hB hbound using hf | |
| refine β¨β P β dyadicPaths (descriptorAnchor b), B P, | |
| Finset.sum_nonneg (fun P _ => hB P),?_β© | |
| intro x w | |
| by_cases hx : β P β dyadicPaths (descriptorAnchor b), x β treeCell P | |
| Β· obtain β¨P,hP,hxβ© := hx | |
| have he : actualEndpointSmooth Ο m N sig C J i b x= | |
| actualDescriptorSmooth Ο m N sig C J i P b := by | |
| apply Subtype.ext | |
| exact congrArg (fun g => fun u => (g u:β)) (actualEndpointMask_of_mem Ο m N sig C J i b hP hx) | |
| unfold actualEndpointAngular | |
| rw [he] | |
| exact (hbound P w).trans (Finset.single_le_sum (fun Q _ => hB Q) hP) | |
| Β· have he : actualEndpointSmooth Ο m N sig C J i b x=0 := by | |
| apply Subtype.ext | |
| have hzero := actualEndpointMask_of_absent Ο m N sig C J i b | |
| (by simpa only [not_exists,not_and] using hx) | |
| funext u | |
| change (actualEndpointMask Ο m N sig C J i b x u:β)=0 | |
| rw [hzero] | |
| simp | |
| simp only [actualEndpointAngular,he,normalizedAngularWordND,map_zero,smul_zero] | |
| change β(0:β)β β€ _ | |
| rw [norm_zero] | |
| exact Finset.sum_nonneg (fun P _ => hB P) | |
| lemma actualAngularProduct_global_bound {ΞΉ : Type*} (S : Finset ΞΉ) | |
| (b : ΞΉ β PolicyDescriptor) | |
| (L : ΞΉ β List (EuclideanSpace β (Fin d) βL[β] EuclideanSpace β (Fin d))) | |
| (Ο : Measure (EuclideanSpace β (Fin d))) (m : β β β) (N : β) | |
| (sig C : β) (J i : β) : | |
| β B : β, 0 β€ B β§ β x w, β(actualAngularProduct S b L Ο m N sig C J i x).1 wβ β€ B := by | |
| classical | |
| choose B hB hb using (fun a => actualEndpointAngular_global_bound (L a) Ο m N sig C J i (b a)) | |
| refine β¨β a β S, B a,Finset.prod_nonneg (fun a _ => hB a),?_β© | |
| intro x w | |
| change ββ a β S, (actualEndpointAngular (L a) Ο m N sig C J i (b a) x).1 wβ β€ _ | |
| rw [norm_prod] | |
| exact Finset.prod_le_prodβ (fun _ _ => norm_nonneg _) (fun a _ => hb a x w) | |
| namespace PositiveDistanceState | |
| variable {n : β} (e : PositiveDistanceState (n+1)) | |
| lemma prefixInverse_global_bound (p : PrefixAssignment n) : | |
| β B : β, 0 β€ B β§ β x w, βe.prefixInverseLeft p x wβ β€ B β§ | |
| βe.prefixInverseRight p x wβ β€ B := by | |
| obtain β¨B,hB,hleftβ© := actualAngularProduct_global_bound e.prefixDescriptors id (prefixLeftWords p) | |
| e.Ο e.mass e.N e.sig e.C e.J e.i | |
| obtain β¨C,hC,hrightβ© := actualAngularProduct_global_bound e.prefixDescriptors id (prefixRightWords p) | |
| e.Ο e.mass e.N e.sig e.C e.J e.i | |
| refine β¨max B C,hB.trans (le_max_left _ _),?_β© | |
| intro x w | |
| rw [e.prefixInverseLeft_eq,e.prefixInverseRight_eq] | |
| exact β¨(hleft x w).trans (le_max_left _ _),(hright x w).trans (le_max_right _ _)β© | |
| end PositiveDistanceState | |
| end TreeND | |
| end CurrentFalconer | |
| end GraphLiteralSupport | |
| end | |
| end | |
| end OAI | |