Download data/lean/OAI/MeasureTheory/FalconerCompletion/Angular/AssemblyInnerSymbol.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 10.6 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/FalconerCompletion/Angular/AssemblyInnerSymbol.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/FalconerCompletion/Angular/AssemblyInnerSymbol.lean
-
curl -L -o AssemblyInnerSymbol.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/FalconerCompletion/Angular/AssemblyInnerSymbol.lean
10.6 kB
| import Mathlib | |
| import OAI.MeasureTheory.Falconer.Model | |
| import OAI.MeasureTheory.Falconer.Recursion.InheritedPolicyState | |
| import OAI.MeasureTheory.Falconer.Recursion.PolicyDescriptors | |
| import OAI.MeasureTheory.FalconerCompletion.Recursion.AssemblyDescriptorList | |
| import OAI.MeasureTheory.FalconerCompletion.Recursion.RecursiveUnit | |
| import OAI.MeasureTheory.FalconerCompletion.Recursion.TensorCapCompact | |
| namespace OAI | |
| /-! Angular cutoffs and derivative estimates. -/ | |
| open _root_.OAI.PlanarFalconer | |
| section | |
| section | |
| open Set MeasureTheory | |
| open scoped ComplexConjugate RealInnerProductSpace | |
| namespace GraphLiteralSupport.CurrentFalconer.TreeND | |
| open Set MeasureTheory Filter PlanarFalconer | |
| open scoped ContDiff Classical | |
| variable {n : β} | |
| noncomputable def assemblyInnerSymbol (e : RecursiveEnvironmentND n) (c : β) | |
| (L : PolicyDescriptor β List (EuclideanSpace β (Fin (n+1)) βL[β] EuclideanSpace β (Fin (n+1)))) | |
| (f : EuclideanSpace β (Fin (n+1)) β β) : | |
| EuclideanSpace β (Fin (n+1)) β EuclideanSpace β (Fin (n+1)) β β := | |
| fun x w => f x*(actualAngularProduct (policyDescriptorList e.profile e.N e.q c e.N) | |
| id L e.Ο e.mass e.N e.sig e.C e.J 0 x).1 w | |
| noncomputable def assemblyOuterFactor (e : RecursiveEnvironmentND n) (c : β) | |
| (L : PolicyDescriptor β List (EuclideanSpace β (Fin (n+1)) βL[β] EuclideanSpace β (Fin (n+1)))) | |
| (Q : SmoothFunctionND (EuclideanSpace β (Fin (n+1)))) | |
| (P : CellPath (n+1)) : EuclideanSpace β (Fin (n+1)) β β := | |
| fun w => Q.1 w*(actualEndpointAngular (L (.parallel 0 c)) e.Ο e.mass e.N e.sig e.C e.J 0 | |
| (.parallel 0 c) (treeCenter P)).1 w | |
| lemma assemblySymbol_factor (e : RecursiveEnvironmentND n) (hq : 0<e.q) (c : β) | |
| (L : PolicyDescriptor β List (EuclideanSpace β (Fin (n+1)) βL[β] EuclideanSpace β (Fin (n+1)))) | |
| (f : EuclideanSpace β (Fin (n+1)) β β) | |
| (Q : SmoothFunctionND (EuclideanSpace β (Fin (n+1)))) | |
| (P : CellPath (n+1)) (hPc : cβ€P.length) {x : EuclideanSpace β (Fin (n+1))} (hx : xβtreeCell P) | |
| (w : EuclideanSpace β (Fin (n+1))) : | |
| assemblySymbol e c L f Q x w=assemblyOuterFactor e c L Q P w*assemblyInnerSymbol e c L f x w := by | |
| have hn : PolicyDescriptor.parallel 0 cβpolicyDescriptorList e.profile e.N e.q c e.N := by | |
| intro h | |
| have hh := policyDescriptor_anchor_gt_start e.profile hq h | |
| simp only [descriptorAnchor] at hh | |
| omega | |
| have hc := actualEndpointAngular_reached (L (.parallel 0 c)) e.Ο e.mass e.N e.sig e.C e.J 0 | |
| (.parallel 0 c) (show descriptorAnchor (.parallel 0 c)β€P.length by simpa only [descriptorAnchor] using hPc) hx (treeCenter_mem P) | |
| change Q.1 w*f x*(β bβinsert (.parallel 0 c) (policyDescriptorList e.profile e.N e.q c e.N), | |
| (actualEndpointAngular (L b) e.Ο e.mass e.N e.sig e.C e.J 0 b x).1 w)=_ | |
| rw [Finset.prod_insert hn,hc] | |
| simp only [assemblyOuterFactor,assemblyInnerSymbol,actualAngularProduct,smoothFinsetProductND,id_eq] | |
| ring | |
| lemma assemblyTransform_factor (e : RecursiveEnvironmentND n) (hq : 0<e.q) (c : β) | |
| (L : PolicyDescriptor β List (EuclideanSpace β (Fin (n+1)) βL[β] EuclideanSpace β (Fin (n+1)))) | |
| (f : EuclideanSpace β (Fin (n+1)) β β) | |
| (Q : SmoothFunctionND (EuclideanSpace β (Fin (n+1)))) | |
| (P : CellPath (n+1)) (hPc : cβ€P.length) (M r : β) (w : EuclideanSpace β (Fin (n+1))) : | |
| _root_.OAI.CurrentFalconer.sourceAngularTransformND e.Ο (treeCell P) M (assemblySymbol e c L f Q) r w= | |
| assemblyOuterFactor e c L Q P w* | |
| _root_.OAI.CurrentFalconer.sourceAngularTransformND e.Ο (treeCell P) M (assemblyInnerSymbol e c L f) r w := by | |
| unfold _root_.OAI.CurrentFalconer.sourceAngularTransformND | |
| rw [show (β« x in treeCell P, _root_.OAI.CurrentFalconer.spherePlaneWaveND r x w*assemblySymbol e c L f Q x w βe.Ο)= | |
| β« x in treeCell P, assemblyOuterFactor e c L Q P w* | |
| (_root_.OAI.CurrentFalconer.spherePlaneWaveND r x w*assemblyInnerSymbol e c L f x w) βe.Ο by | |
| apply setIntegral_congr_fun (measurableSet_treeCell P) | |
| intro x hx | |
| dsimp only | |
| rw [assemblySymbol_factor e hq c L f Q P hPc hx w] | |
| ring] | |
| rw [integral_const_mul] | |
| exact (mul_smul_comm _ _ _).symm | |
| lemma assemblyInnerSymbol_initial (e : RecursiveEnvironmentND n) (hq : 0<e.q) (c : β) | |
| (L : PolicyDescriptor β List (EuclideanSpace β (Fin (n+1)) βL[β] EuclideanSpace β (Fin (n+1)))) | |
| (f : EuclideanSpace β (Fin (n+1)) β β) (P Q : CellPath (n+1)) : | |
| assemblyInnerSymbol e c L f=(e.angularData c e.N c e.N 0 P Q).symbol L f recursiveUnit c := by | |
| ext x w | |
| simp only [RecursiveAngularND.symbol,RecursiveEnvironmentND.angularData,RecursiveAngularND.profile, | |
| actualResidualSourceSymbol,unreachedDescriptorList_initial _ _ _ _ _ hq, | |
| recursiveUnit,one_mul,assemblyInnerSymbol] | |
| lemma assemblyInnerSymbol_measurable (e : RecursiveEnvironmentND n) (c : β) | |
| (L : PolicyDescriptor β List (EuclideanSpace β (Fin (n+1)) βL[β] EuclideanSpace β (Fin (n+1)))) | |
| (f : EuclideanSpace β (Fin (n+1)) β β) (hf : Measurable f) : | |
| Measurable (Function.uncurry (assemblyInnerSymbol e c L f)) := | |
| (hf.comp measurable_fst).mul (actualAngularProduct_measurable _ _ _ _ _ _ _ _ _ _) | |
| lemma assemblyInnerSymbol_bounded (e : RecursiveEnvironmentND n) (c : β) | |
| (L : PolicyDescriptor β List (EuclideanSpace β (Fin (n+1)) βL[β] EuclideanSpace β (Fin (n+1)))) | |
| (f : EuclideanSpace β (Fin (n+1)) β β) (hf : β x,βf xββ€1) : | |
| β H : β,0β€H β§ β x w,βassemblyInnerSymbol e c L f x wββ€H := by | |
| obtain β¨H,hH,hβ© := actualAngularProduct_global_bound | |
| (policyDescriptorList e.profile e.N e.q c e.N) id L e.Ο e.mass e.N e.sig e.C e.J 0 | |
| refine β¨H,hH,?_β© | |
| intro x w | |
| change βf x*(actualAngularProduct _ _ _ _ _ _ _ _ _ _ x).1 wββ€H | |
| rw [norm_mul] | |
| exact (mul_le_mul_of_nonneg_right (hf x) (norm_nonneg _)).trans (by simpa only [one_mul] using h x w) | |
| lemma uniform_assemblyOuterFactor_bound | |
| (W : Finset (List (EuclideanSpace β (Fin (n+1)) βL[β] EuclideanSpace β (Fin (n+1))))) | |
| (B : β) (hW : β LβW,L.lengthβ€B) {sig : β} (hsig : 0<sig) : | |
| β D : β,1β€D β§ βαΆ N : β in atTop,β e : RecursiveEnvironmentND n,e.N=N β e.sig=sig β | |
| β c L (Q : SmoothFunctionND (EuclideanSpace β (Fin (n+1)))) (Cq : β), | |
| L (.parallel 0 c)βW β (β w,βwβ=1 β βQ.1 wββ€Cq) β | |
| β P w,βwβ=1 β βassemblyOuterFactor e c L Q P wββ€Cq*D^B := by | |
| obtain β¨D,hD,hβ© := uniform_actualAngularProduct_derivatives (ΞΉ:=PolicyDescriptor) W 0 B B 0 hW 1 sig hsig | |
| refine β¨D,hD,?_β© | |
| filter_upwards [h] with N hN | |
| intro e he hs c L Q Cq hL hQ P w hw | |
| subst N | |
| have hh := hN {PolicyDescriptor.parallel 0 c} id L e.Ο e.mass e.C e.J 0 c | |
| (by simp) (by simpa using hL) (by simpa using hW _ hL) | |
| (by simp [descriptorLength]) (treeCenter P) 0 (by omega) w hw | |
| simp only [norm_iteratedFDeriv_zero,pow_zero,mul_one] at hh | |
| have hb : β(actualEndpointAngular (L (.parallel 0 c)) e.Ο e.mass e.N e.sig e.C e.J 0 | |
| (.parallel 0 c) (treeCenter P)).1 wββ€D^B := by | |
| simpa only [actualAngularProduct,smoothFinsetProductND,Finset.prod_singleton,id_eq,hs] using hh | |
| exact (norm_mul _ _).trans_le (mul_le_mul (hQ w hw) hb (norm_nonneg _) ((norm_nonneg _).trans (hQ w hw))) | |
| end GraphLiteralSupport.CurrentFalconer.TreeND | |
| end | |
| end | |
| section | |
| section | |
| open Set MeasureTheory | |
| open scoped ComplexConjugate RealInnerProductSpace | |
| namespace CurrentFalconer.AssemblyEstimate | |
| open Set MeasureTheory | |
| open scoped ComplexConjugate | |
| variable {V : Type*} [MeasurableSpace V] | |
| open Attempt4Near | |
| lemma sourceAngularHND_two_profile_power (d : β) (ΞΌ : Measure V) [IsFiniteMeasure ΞΌ] | |
| (a v : β) {U W : β Γ V β β} (hU : Measurable U) (hW : Measurable W) | |
| {C E : β} (hbU : β r,βα΅ w βΞΌ,βU (r,w)ββ€C) | |
| (hbW : β r,βα΅ w βΞΌ,βW (r,w)ββ€E) | |
| {Ξ¨ : β β β} (hiΞ¨ : Integrable (fun r => Ξ¨ (r/(2:β)^v))) | |
| (hΞ¨ : β r,0β€Ξ¨ r) {R gβ gβ : β} (hR : 0<R) | |
| (hβ : sourceAngularHND d ΞΌ a v Ξ¨ U Uβ€R^gβ) | |
| (hβ : sourceAngularHND d ΞΌ a v Ξ¨ W Wβ€R^gβ) : | |
| sourceAngularHND d ΞΌ a v Ξ¨ U Wβ€R^((gβ+gβ)/2) := by | |
| let t := R^((gβ-gβ)/2) | |
| have ht : 0<t := Real.rpow_pos_of_pos hR _ | |
| have hiβ := graph_weighted_moments_integrableND ΞΌ hU hU hbU hbU hiΞ¨ | |
| have hiβ := graph_weighted_moments_integrableND ΞΌ hW hW hbW hbW hiΞ¨ | |
| have hpoint (A B : β) : A*Bβ€(t*A*A+tβ»ΒΉ*B*B)/2 := by | |
| have hs := sq_nonneg (t*A-B) | |
| have hti : t*tβ»ΒΉ=1 := mul_inv_cancelβ ht.ne' | |
| have he : t*(t*A*A+tβ»ΒΉ*B*B-2*(A*B))=(t*A-B)^2 := by | |
| calc | |
| _ = t^2*A^2+(t*tβ»ΒΉ)*B^2-2*t*A*B := by ring | |
| _ = _ := by rw [hti]; ring | |
| have hh : 0β€t*A*A+tβ»ΒΉ*B*B-2*(A*B) := | |
| (mul_nonneg_iff_of_pos_left ht).mp (by rw [he]; exact hs) | |
| linarith | |
| have hh : (β« r, Ξ¨ (r/(2:β)^v)*sourceAngularMomentND ΞΌ U r*sourceAngularMomentND ΞΌ W r) β€ | |
| (t*(β« r, Ξ¨ (r/(2:β)^v)*sourceAngularMomentND ΞΌ U r*sourceAngularMomentND ΞΌ U r)+ | |
| tβ»ΒΉ*(β« r, Ξ¨ (r/(2:β)^v)*sourceAngularMomentND ΞΌ W r*sourceAngularMomentND ΞΌ W r))/2 := by | |
| rw [β integral_const_mul,β integral_const_mul,β integral_add (hiβ.const_mul t) (hiβ.const_mul tβ»ΒΉ), | |
| β integral_div] | |
| apply integral_mono_of_nonneg | |
| (Filter.Eventually.of_forall fun r => mul_nonneg | |
| (mul_nonneg (hΨ _) (sourceAngularMomentND_nonneg _ _ _)) (sourceAngularMomentND_nonneg _ _ _)) | |
| (((hiβ.const_mul t).add (hiβ.const_mul tβ»ΒΉ)).div_const 2) | |
| filter_upwards with r | |
| have h := mul_le_mul_of_nonneg_left | |
| (hpoint (sourceAngularMomentND ΞΌ U r) (sourceAngularMomentND ΞΌ W r)) (hΞ¨ (r/(2:β)^v)) | |
| simp only [Pi.add_apply] | |
| convert h using 1 <;> ring | |
| have hen : sourceAngularHND d ΞΌ a v Ξ¨ U W β€ | |
| (t*sourceAngularHND d ΞΌ a v Ξ¨ U U+tβ»ΒΉ*sourceAngularHND d ΞΌ a v Ξ¨ W W)/2 := by | |
| have h := mul_le_mul_of_nonneg_left hh | |
| (show 0β€(2:β)^((d:β)*(v-a))*((2:β)^v)β»ΒΉ by positivity) | |
| unfold sourceAngularHND | |
| nlinarith only [h] | |
| have hrβ : t*R^gβ=R^((gβ+gβ)/2) := by | |
| rw [β Real.rpow_add hR]; congr 1; ring | |
| have hrβ : tβ»ΒΉ*R^gβ=R^((gβ+gβ)/2) := by | |
| dsimp only [t] | |
| rw [β Real.rpow_neg hR.le,β Real.rpow_add hR]; congr 1; ring | |
| calc | |
| _ β€ (t*sourceAngularHND d ΞΌ a v Ξ¨ U U+tβ»ΒΉ*sourceAngularHND d ΞΌ a v Ξ¨ W W)/2 := hen | |
| _ β€ (t*R^gβ+tβ»ΒΉ*R^gβ)/2 := by gcongr | |
| _ = _ := by rw [hrβ,hrβ]; ring | |
| end CurrentFalconer.AssemblyEstimate | |
| end | |
| end | |
| end OAI | |