import Mathlib import OAI.MeasureTheory.Falconer.Model import OAI.MeasureTheory.Falconer.Recursion.PolicyDescriptors import OAI.MeasureTheory.FalconerCompletion.Estimates.AssemblyEndpointSmooth import OAI.MeasureTheory.FalconerCompletion.Graphs.GraphSymbolJetConj namespace OAI /-! Recursive policies and quantitative depth 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 Topology ComplexConjugate variable {n : ℕ} local notation "V" => EuclideanSpace ℝ (Fin (n+1)) lemma assemblyLists_card (e₁ e₂ : RecursiveEnvironmentND n) (hN : 1≤e₁.N) (heN : e₂.N=e₁.N) (hq₁ : 0 assemblyDescriptorList_valid e₁.profile hq₁ hc hb) have h₂ := validDescriptorList_card (by omega : 1≤e₂.N) (assemblyDescriptorList e₂.profile e₂.N e₂.q c) (fun _ hb => assemblyDescriptorList_valid e₂.profile hq₂ (by omega) hb) rw [heN] at h₂ have hN' : (1:ℝ)≤e₁.N := by exact_mod_cast hN apply max_le · nlinarith only [hN',sq_nonneg ((e₁.N:ℝ)-1)] · push_cast rw [heN] linarith only [h₁,h₂] lemma assemblyDescriptor_scale (e : RecursiveEnvironmentND n) (hq : 0 actualEndpointMask e.ρ e.mass e.N e.sig e.C e.J 0 b z.1 ((dist z.1 z.2)⁻¹ • (z.1-z.2))) := by simpa only [radialVector,dist_eq_norm,Function.comp_def] using (actualEndpointMask_measurable e.ρ e.mass e.N e.sig e.C e.J 0 b).comp (measurable_fst.prodMk measurable_radialVector) lemma assembly_endpoint_radial_right (e : RecursiveEnvironmentND n) (b : PolicyDescriptor) : Measurable (fun z : V×V => actualEndpointMask e.ρ e.mass e.N e.sig e.C e.J 0 b z.2 ((dist z.1 z.2)⁻¹ • (z.1-z.2))) := by simpa only [radialVector,dist_eq_norm,Function.comp_def] using (actualEndpointMask_measurable e.ρ e.mass e.N e.sig e.C e.J 0 b).comp (measurable_snd.prodMk measurable_radialVector) lemma assembly_pairMask_radial_measurable (e₁ e₂ : RecursiveEnvironmentND n) (c : ℕ) : Measurable (fun z : V×V => (Attempt4PrefixShell.pairMaskProductND (assemblyDescriptorList e₁.profile e₁.N e₁.q c) (assemblyDescriptorList e₂.profile e₂.N e₂.q c) (assemblyEndpointSmooth e₁) (assemblyEndpointSmooth e₂) z).1 ((dist z.1 z.2)⁻¹ • (z.1-z.2))) := by simp only [assembly_pairMask_eq] apply Complex.continuous_ofReal.measurable.comp exact (Finset.measurable_prod _ (fun b _ => assembly_endpoint_radial_left e₁ b)).mul (Finset.measurable_prod _ (fun b _ => assembly_endpoint_radial_right e₂ b)) lemma assembly_pairMask_measurable (e₁ e₂ : RecursiveEnvironmentND n) (c : ℕ) {f g : V → ℂ} (hf : Measurable f) (hg : Measurable g) : Measurable (fun z : V×V => (f z.1*conj (g z.2))* (Attempt4PrefixShell.pairMaskProductND (assemblyDescriptorList e₁.profile e₁.N e₁.q c) (assemblyDescriptorList e₂.profile e₂.N e₂.q c) (assemblyEndpointSmooth e₁) (assemblyEndpointSmooth e₂) z).1 ((dist z.1 z.2)⁻¹ • (z.1-z.2))) := by exact ((hf.comp measurable_fst).mul (Complex.continuous_conj.measurable.comp (hg.comp measurable_snd))).mul (assembly_pairMask_radial_measurable e₁ e₂ c) end GraphLiteralSupport.CurrentFalconer.TreeND end end end OAI