import Mathlib import OAI.MeasureTheory.Falconer.Estimates.ActualOuterMasks import OAI.MeasureTheory.Falconer.Model import OAI.MeasureTheory.Falconer.Recursion.Ledger import OAI.MeasureTheory.Falconer.Recursion.PolicyDescriptors import OAI.MeasureTheory.FalconerCompletion.Graphs.AssemblyRootGraph 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 : ℕ} theorem actual_two_profile_outer_angular_bound (hn : 1≤n) (Ctest : ℝ) : ∃ Cd : ℝ,0≤Cd ∧ ∀ (chi beta sig kap eta : ℝ), 0 if j=0 then e₁.profile else e₂.profile) N beta ∀ (L₁ L₂ : PolicyDescriptor → List (EuclideanSpace ℝ (Fin (n+1)) →L[ℝ] EuclideanSpace ℝ (Fin (n+1)))) (f g : EuclideanSpace ℝ (Fin (n+1)) → ℂ) (Q P : SmoothFunctionND (EuclideanSpace ℝ (Fin (n+1)))), Measurable f → Measurable g → (∀ x,‖f x‖≤1) → (∀ x,‖g x‖≤1) → (∀ b∈assemblyDescriptorList e₁.profile N e₁.q c,L₁ b∈W) → (∀ b∈assemblyDescriptorList e₂.profile N e₂.q c,L₂ b∈W) → (∑ b∈assemblyDescriptorList e₁.profile N e₁.q c,(L₁ b).length)≤total → (∑ b∈assemblyDescriptorList e₂.profile N e₂.q c,(L₂ b).length)≤total → (∀ j≤M,∀ w,‖w‖=1 → ‖iteratedFDeriv ℝ j Q.1 w‖≤Cq) → (∀ j≤M,∀ w,‖w‖=1 → ‖iteratedFDeriv ℝ j P.1 w‖≤Cq) → assemblyRootEnergy e₁ e₂ c L₁ L₂ f g Q P Ψ ψ ≤ ((2:ℝ)^N)^(-beta+Cd*(kap+sig/kap)+eta) := by let Dloss : ℝ := |Ctest|+100*(n+2:ℝ) let Cd : ℝ := profileDimLoss n Ctest+Dloss have hDloss : 0≤Dloss := by dsimp [Dloss]; positivity have hCd : 0≤Cd := add_nonneg (profileDimLoss_nonneg n Ctest) hDloss refine ⟨Cd,hCd,?_⟩ intro chi beta sig kap eta hchi hbeta hbetasm hkap hkap1 hsig hsigkap hsmall heta W B total hW Ψ hΨ hsupp hΨ0 hΨ1 ψ hψ hψ1 have hbeta1 : beta<1/10 := hbetasm.trans_le (min_le_right _ _) have hkap1' : kap≤1 := by linarith only [hkap1] have hsig1 : sig≤1/100 := by linarith only [hsigkap,hkap1] obtain ⟨D,hD,N₁,hN₁,hchild⟩ := uniform_assembly_child_max hn Ctest hsig hkap hkap1' hsigkap (show 0