Download data/lean/OAI/MeasureTheory/FalconerCompletion/Recursion/DescriptorSmooth.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.68 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/FalconerCompletion/Recursion/DescriptorSmooth.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/FalconerCompletion/Recursion/DescriptorSmooth.lean
-
curl -L -o DescriptorSmooth.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/FalconerCompletion/Recursion/DescriptorSmooth.lean
5.68 kB
| import Mathlib | |
| import OAI.MeasureTheory.Falconer.Model | |
| import OAI.MeasureTheory.Falconer.Recursion.PolicyDescriptors | |
| import OAI.MeasureTheory.FalconerCompletion.Angular.AngularWordOperatorBound | |
| 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.TreeND | |
| open Set Metric MeasureTheory PlanarFalconer | |
| open scoped ENNReal RealInnerProductSpace ContDiff Topology Classical | |
| variable {d : β} | |
| noncomputable def actualDescriptorSmooth (Ο : Measure (EuclideanSpace β (Fin d))) | |
| (m : β β β) (N : β) (sig C : β) (J i : β) (P : CellPath d) (b : PolicyDescriptor) : | |
| SmoothFunctionND (EuclideanSpace β (Fin d)) := | |
| β¨fun w => (actualDescriptorMask Ο m N sig C J i P b w : β), | |
| Complex.ofRealCLM.contDiff.comp (actualDescriptorMask_smooth Ο m N sig C J i P b)β© | |
| lemma actualEndpointSmooth_of_mem (Ο : Measure (EuclideanSpace β (Fin d))) | |
| (m : β β β) (N : β) (sig C : β) (J i : β) (b : PolicyDescriptor) | |
| {P : CellPath d} (hP : P β dyadicPaths (descriptorAnchor b)) | |
| {x : EuclideanSpace β (Fin d)} (hx : x β treeCell P) : | |
| actualEndpointSmooth Ο m N sig C J i b x=actualDescriptorSmooth Ο m N sig C J i P b := by | |
| apply Subtype.ext | |
| funext w | |
| exact congrArg Complex.ofReal (congrFun (actualEndpointMask_of_mem Ο m N sig C J i b hP hx) w) | |
| lemma actualEndpointSmooth_of_absent (Ο : Measure (EuclideanSpace β (Fin d))) | |
| (m : β β β) (N : β) (sig C : β) (J i : β) (b : PolicyDescriptor) | |
| {x : EuclideanSpace β (Fin d)} | |
| (hx : β P β dyadicPaths (descriptorAnchor b), x β treeCell P) : | |
| actualEndpointSmooth Ο m N sig C J i b x=0 := by | |
| apply Subtype.ext | |
| funext w | |
| change (actualEndpointMask Ο m N sig C J i b x w : β)=0 | |
| rw [actualEndpointMask_of_absent Ο m N sig C J i b hx] | |
| rfl | |
| lemma actualEndpointAngular_partition | |
| (L : List (EuclideanSpace β (Fin d) βL[β] EuclideanSpace β (Fin d))) | |
| (Ο : Measure (EuclideanSpace β (Fin d))) (m : β β β) (N : β) | |
| (sig C : β) (J i : β) (b : PolicyDescriptor) (x : EuclideanSpace β (Fin d)) : | |
| actualEndpointAngular L Ο m N sig C J i b x= | |
| β P β dyadicPaths (descriptorAnchor b), | |
| if x β treeCell P then | |
| normalizedAngularWordND (sourceMaskScaleND (descriptorLength b) ((2:β)^N) sig) L | |
| (actualDescriptorSmooth Ο m N sig C J i P b) else 0 := by | |
| classical | |
| by_cases hx : β P β dyadicPaths (descriptorAnchor b), x β treeCell P | |
| Β· obtain β¨P,hP,hxβ© := hx | |
| unfold actualEndpointAngular | |
| rw [actualEndpointSmooth_of_mem Ο m N sig C J i b hP hx,Finset.sum_eq_single P] | |
| Β· simp only [hx,ite_true] | |
| Β· intro Q hQ hQP | |
| have hnot : x β treeCell Q := fun hxQ => | |
| Set.disjoint_left.mp (treeCell_disjoint | |
| (((mem_dyadicPaths _ _).mp hQ).trans ((mem_dyadicPaths _ _).mp hP).symm) hQP) hxQ hx | |
| simp only [hnot,ite_false] | |
| Β· exact fun h => (h hP).elim | |
| Β· have hx' : β P β dyadicPaths (descriptorAnchor b), x β treeCell P := by | |
| simpa only [not_exists,not_and] using hx | |
| unfold actualEndpointAngular normalizedAngularWordND | |
| rw [actualEndpointSmooth_of_absent Ο m N sig C J i b hx',map_zero,smul_zero] | |
| exact (Finset.sum_eq_zero fun P hP => ite_eq_right (hx' P hP)).symm | |
| lemma actualEndpointAngular_measurable | |
| (L : List (EuclideanSpace β (Fin d) βL[β] EuclideanSpace β (Fin d))) | |
| (Ο : Measure (EuclideanSpace β (Fin d))) (m : β β β) (N : β) | |
| (sig C : β) (J i : β) (b : PolicyDescriptor) : | |
| Measurable (fun z : EuclideanSpace β (Fin d) Γ EuclideanSpace β (Fin d) => | |
| (actualEndpointAngular L Ο m N sig C J i b z.1).1 z.2) := by | |
| classical | |
| have he : (fun z : EuclideanSpace β (Fin d) Γ EuclideanSpace β (Fin d) => | |
| (actualEndpointAngular L Ο m N sig C J i b z.1).1 z.2)= | |
| fun z => β P β dyadicPaths (descriptorAnchor b), if z.1 β treeCell P then | |
| (normalizedAngularWordND (sourceMaskScaleND (descriptorLength b) ((2:β)^N) sig) L | |
| (actualDescriptorSmooth Ο m N sig C J i P b)).1 z.2 else 0 := by | |
| funext z | |
| rw [actualEndpointAngular_partition] | |
| simp only [Submodule.coe_sum,Finset.sum_apply] | |
| apply Finset.sum_congr rfl | |
| intro P _hP | |
| split_ifs <;> rfl | |
| rw [he] | |
| apply Finset.measurable_sum | |
| intro P _hP | |
| exact Measurable.ite ((measurableSet_treeCell P).preimage measurable_fst) | |
| ((smoothFunctionND_contDiff _).continuous.measurable.comp measurable_snd) measurable_const | |
| lemma actualEndpointSmooth_even (Ο : Measure (EuclideanSpace β (Fin d))) | |
| (m : β β β) (N : β) (sig C : β) (J i : β) (b : PolicyDescriptor) | |
| (x : EuclideanSpace β (Fin d)) : Function.Even (actualEndpointSmooth Ο m N sig C J i b x).1 := by | |
| classical | |
| intro w | |
| change (actualEndpointMask Ο m N sig C J i b x (-w):β)=_ | |
| unfold actualEndpointMask | |
| congr 1 | |
| apply Finset.sum_congr rfl | |
| intro P _hP | |
| split_ifs | |
| Β· exact actualDescriptorMask_even Ο m N sig C J i P b w | |
| Β· rfl | |
| lemma actualEndpointAngular_even | |
| (L : List (EuclideanSpace β (Fin d) βL[β] EuclideanSpace β (Fin d))) | |
| (Ο : Measure (EuclideanSpace β (Fin d))) (m : β β β) (N : β) | |
| (sig C : β) (J i : β) (b : PolicyDescriptor) (x : EuclideanSpace β (Fin d)) : | |
| Function.Even (actualEndpointAngular L Ο m N sig C J i b x).1 := | |
| normalizedAngularWordND_even _ L _ (actualEndpointSmooth_even Ο m N sig C J i b x) | |
| end CurrentFalconer.TreeND | |
| end GraphLiteralSupport | |
| end | |
| end | |
| end OAI | |