import YM.AnalyticNext.CONNECTED_ACTIVITY_JETS_E6.Das import YM.AnalyticNext.CONNECTED_ACTIVITY_JETS_E6.Levan import YM.AnalyticNext.CONNECTED_ACTIVITY_JETS_E6.Zest /-! # Weak sprouts for integral differentiation wrt PROB reference Bottom lifted while interpolating. Need polynomial suit opacity, this part does not assert *Hit*, only controls germs uniformly near Eval per support in FIXED volume. -/ set_option autoImplicit false noncomputable section namespace YM.ConnectedActivityE6.Blaze.Flux open Filter Function Lattice RG Pressure Pressure.Stores Pressure.Tube Tree Wilson Finset MeasureTheory Matrix open Push Push.AbsoluteSums Precision Exterior Shell Channel Next.Fluctuations SectorMeasure Oriented Work.E03 open Bloch Laurent SliceRows Mask Tags Progress.StationaryScenes Green Census Work.F03 Animals Control Window Coat Footprint Raw open Pulse Itinerary Scroll Vine Polar Frond Corona Brush Foramen Gate Tablet Strokes Quill Bid Matter open Packets Art Silica Poll Pond Shield Eider open scoped Topology InnerProductSpace Matrix.Norms.Frobenius ContDiff BigOperators Classical ENNReal variable {G : Gauge} {ι α E : Type} [Fintype ι] [DecidableEq ι] [NormedAddCommGroup E] [NormedSpace ℝ E] {x:E} variable {j n : ℕ} {L : Side} {A : Matrix ι ι ℝ} {t η b τ y : ℝ} {a v : Body ι} lemma protect (h : A.PosDef) (he : 0 Real.exp (-b*‖z‖^2)/Shield.lens₀ A z) (sweep A) := by rw [magnifies _ h] have hg : Measurable (fun x=> ENNReal.ofReal (lens₀ A x)) := ENNReal.measurable_ofReal.comp (bulbB (S:=fun _:Body ι=>A) (fun i j=> measurable_const) measurable_id) rw [MeasureTheory.integrable_withDensity_iff_integrable_smul' hg (ae_of_all _ fun _=> ENNReal.ofReal_lt_top)] have hp := (GaussianFourier.integrable_cexp_neg_mul_sq_norm_add (b:=(b:ℂ)) (by exact he) 0 (0:Body ι)).norm apply hp.congr refine ae_of_all _ fun z=> ?_ dsimp only; simp_rw [ENNReal.toReal_ofReal (fullFuel A z).le,smul_eq_mul,Complex.norm_exp] have hx : lens₀ A z≠0:= (fullFuel A z).ne' field_simp; simp [← Complex.ofReal_pow] omit [DecidableEq ι] in private lemma dot_shape (v:Body ι) : dotProduct v.ofLp v.ofLp=‖v‖^2 := by simp_rw [dotProduct,EuclideanSpace.real_norm_sq_eq]; simp only [pow_two] omit [DecidableEq ι] [NormedSpace ℝ E] in lemma squarePulse (A : E→Matrix ι ι ℝ) (t : ℝ) (ht:0 A p i j') x) : ∀ᶠ y in 𝓝 x, Bottom (A y) (t/2) := by let u:=Fintype.card ι; let b:= t/(2*(1+u)); have he:0 |(A y-A x) i j|) x := ((hp i j).sub_const _).abs filter_upwards [he'.eventually (gt_mem_nhds (show |(A x-A x) i j| < b from by simpa using he))] with x hx; exact le_of_lt hx filter_upwards [eventually_all.mpr fun i=> eventually_all.mpr (hx i)] with y hy let f (i:ι):Site (1:Side):=0 have hg (F : Matrix ι ι ℝ) (h : ∀ i j, |F i j| ≤ b): Green.Rows f f F 0 (t/2) := by intro i; apply (sum_le_sum (g:=fun _=> b) (fun j hj=> ?_)).trans · rw [sum_const,nsmul_eq_mul]; change ↑u * b ≤ _; unfold b; field_simp; nlinarith apply le_trans _ (h i j); unfold wt; rw [zero_mul,Real.exp_zero,one_mul] have hv:= Control.bilinear_floor (A:=A y-A x) ⟨hg _ hy,hg _ (fun j i=>hy i j)⟩ (le_refl 0) intro v; have hx:= hv v; have hV:= hB v; rw [Matrix.sub_mulVec,dotProduct_sub] at hx; nlinarith omit [DecidableEq ι] in private lemma scalar_jet (A : E→Matrix ι ι ℝ) (p : ∀ i j', Brush j b 1 (fun x=> A x i j') x) (_hf : 0≤b) (f : E→Body ι) (h : Brush j η 1 f x) : let v:= Fintype.card ι; let Q:ℝ:=↑v* (η*(↑v*(b*η))) Brush j (Q*(1+(1+(1+1)))^j) 1 (fun p=> dotProduct (WithLp.ofLp (f p)) (A p*ᵥ WithLp.ofLp (f p))) x := by intro v W have he i: Brush j η 1 (fun x=>f x i) x := by -- color general FIN let P:=EuclideanSpace.proj (𝕜:=ℝ) (ι:=ι) i have hp: ‖P‖≤1 := ContinuousLinearMap.opNorm_le_bound _ zero_le_one (fun x => by change ‖x i‖≤_; rw [one_mul,← EuclideanSpace.basisFun_inner]; exact (abs_real_inner_le_norm ..).trans_eq (by rw [OrthonormalBasis.norm_eq_one,one_mul])) have hv:= h.report P hp; rw [one_mul] at hv; exact hv have hx i := (((Brush.spree univ (fun j p=> A p i j*f p j) _ (show (0:ℝ) ≤ 1+1 by norm_num) (fun j (_:j∈univ)=> (p i j).paints (he j))))) simp only [sum_const,nsmul_eq_mul,card_univ] at hx have hh:= Brush.spree (univ (α:=ι)) _ _ (by norm_num) (fun j _=> (he j).paints (hx j)); simp only [sum_const,nsmul_eq_mul,card_univ] at hh exact hh.trim lemma winglet {A:E→Matrix ι ι ℝ} {Z:α → Body ι} {V:α→ E→ Body ι} (hp : (A x).PosDef) (h : Bottom (A x)⁻¹ t) (ht : 0 A x i j') x) (hV : Zest (fun a x=> V a x-Z a) x j) : ∃ (M : Body ι→ℝ), Measurable M ∧ Integrable M (sweep (A x)) ∧ ∀ᶠ y in 𝓝 x, ∀ a, Brush j (M (Z a)) 1 (fun y=> lens₀ (A y) (V a y)/lens₀ (A x) (Z a)) y := by have hx:= isUnit_iff_ne_zero.mpr hp.det_pos.ne' have he i k:= jetBack hA hx i k let P i:= (A i)⁻¹; let S := sweep (A x) obtain ⟨B,hB,hF⟩:=hV.post let s := Fintype.card ι; let v y:= -Real.log (A y).det/2 obtain ⟨A',hA',hH⟩:= Brush.neighborhood x (((determinant hA).log hx.ne_zero).neg.div_const 2 : ContDiffAt ℝ (↑j) v x) choose k hk hQ using fun i j=> Brush.neighborhood x (he i j) let U := ∑ i:ι, ∑ j:ι,k i j; have htU : 0≤U := sum_nonneg fun _ _=> sum_nonneg fun j _=> (hk _ j).le have hm := (squarePulse (x:=x) P t ht h (fun i j=> (he i j).continuousAt)) let f a y:= dotProduct (V a y).ofLp ((P y)*ᵥ(V a y).ofLp) let g a y:= v y - f a y/2 have hh (p:ℝ) (x:E) (i:α) (hp:Brush j p 1 (fun x=> V i x) x) (h : ∀ i j, Brush _ U 1 (fun x=>P x i j) x) := scalar_jet P h htU (V i) hp obtain ⟨C,hC,hΨ⟩:= Brush.neighborhood (k:=j) 0 Real.contDiff_exp.contDiffAt let n y := A'+((s:ℝ)*(y*(s*(U*y))))*(1+(1+(1+1)))^j let b y := (1+(1+(j.factorial:ℝ)*C)*(1+(n y+n y)))^j let X : ℝ := t/8; let D:=(t/4)*B^2 let Z':= ((Real.sqrt (2*Real.pi))^Fintype.card ι)⁻¹ have hz:0≤Z':= by unfold Z'; positivity let F (z:Body ι):= Z' * Real.exp (A'+D-X * ‖z‖^2)* b (B+ ‖z‖)/lens₀ (A x) z have hF' : Measurable F := by unfold F; refine Measurable.div (show Measurable _ from ?_) (bulbB (fun _ _=> measurable_const : Art.Borel (fun _ : Body ι=> A x)) measurable_id) unfold b n; fun_prop refine ⟨F,hF',?_,?_⟩ swap · filter_upwards [hm,hF,hH,eventually_all.mpr (fun i=> eventually_all.mpr (hQ i))] with y hp hv hh' hz' a have hp' : Brush j (B+‖Z a‖) 1 (V a) y := ((hv a).gathering (Brush.certified zero_le_one (Z a))).shimmy (Eventually.of_forall fun _=> (sub_add_cancel ..).symm) have hx: Brush j (n (B+‖Z a‖)) 1 (g a) y := hh'.separating (semi (hh _ _ _ hp' (fun i j=> (hz' i j).climb ((Finset.single_le_sum (fun b _=>(hk _ b).le) (mem_univ j)).trans (Finset.single_le_sum (f:=fun i=> ∑ j,k i j) (fun i _=>sum_nonneg fun j _=> (hk _ _).le) (mem_univ i))) le_rfl))) have hSS y : lens₀ (A y) (V a y)= Z'*Real.exp (g a y) := rfl have hz' := ((Blaze.fever _ (hx.separating ((Brush.certified zero_le_one _).climb hx.bound le_rfl)) hΨ.self_of_nhds).trim.smul Z').smul (lens₀ (A x) (Z a))⁻¹ have hP:= fullFuel (A x) (Z a) apply (hz'.climb ?_ le_rfl).shimmy (Eventually.of_forall (fun t=> by change lens₀ _ _ / _= (lens₀ (A x) (Z a))⁻¹ * (Z' * _); rw [hSS]; ring)) unfold F; rw [Real.norm_of_nonneg hz, norm_inv, Real.norm_of_nonneg hP.le] have hv': f a y≥ t/2 * ‖V a y‖^2 := (mul_le_mul_of_nonneg_left (dot_shape _).symm.le (by positivity)).trans (hp _) have hs: ‖Z a‖^2 ≤ 2*(‖V a y‖^2+B^2) := by have he := (hv a).bound; have hh : ‖Z a‖ ≤ ‖V a y‖+B := by nth_rw 1 [show Z a=V a y-(V a y-Z a) from by abel]; exact (norm_sub_le ..).trans (add_le_add_right he _) nlinarith [norm_nonneg (Z a),norm_nonneg (V a y),sq_nonneg (‖V a y‖-B)] have hf' : g a y ≤ A'+D-X*‖Z a‖^2 := by unfold g D X; nlinarith only [hv', show v y≤A' from (le_abs_self _).trans hh'.bound, mul_le_mul_of_nonneg_left hs ht.le] change _⁻¹*(Z'*(Real.exp (g a y)*b _))≤_ rw [div_eq_inv_mul] apply mul_le_mul_of_nonneg_left _ (inv_nonneg.mpr hP.le) rw [mul_assoc Z' (Real.exp _)] apply mul_le_mul_of_nonneg_left _ hz apply mul_le_mul_of_nonneg_right (Real.exp_le_exp.mpr hf'); unfold b; have hf:=hx.nonneg; positivity -- polynomial absorbed into exponential, rank and κ entirely free here let N := n (B+1); let P:= 1+(1+(j.factorial:ℝ)*C)*(1+(N+N)); let y:= X/2 let D' := (2*(j:ℝ))^2/(4*y) let H := Z'*P^j*Real.exp (A'+D+D') have hs: 0≤(s:ℝ):= Nat.cast_nonneg _ have hN :0≤N := by unfold N n; positivity have h' :0