import YM.Analysis.Polydisc import YM.Bid.Grow /-! # Inner product at separate hot profiles First keep both widths, and specialize time variables to purely imaginary: the two vectors computed recursively then give actual GNS plants; the Gram calculation uses opposite heights, reverse *and* reflected tokens. Continue along a single complex parameter instead of doing a padding comparison: any prescribed array of real times times that parameter (conjugate the parameter in the first/antilinear slot). Strict height and gap inequalities still suffice on an open strip. -/ set_option autoImplicit false noncomputable section namespace YM.Work.C22 open Function Set Filter Complex open Mink Boundary OS Word open scoped Topology NNReal InnerProductSpace BigOperators ContDiff variable {G : Gauge} {L : Register G} {n m : ℕ} {S T : Table L} {V : Chamber T timeAxis} -- Shot or intermediate train with preceding reference Z,X of padding q private def fromRef (B : Small S V) (p q : ℝ≥0) : ∀ {n}, Times n → SpacePoints n → (Fin n → S.Union) → ℂ → Space3 → V.H | 0,_,_,_,_,_ => V.omega | n+1,z,x,v,Z,X => Small.rip (z 0-Z) (q+p) (x 0-X) ((B.bar p (v 0)) (B.trainB p n (Fin.tail z) (Fin.tail x) (Fin.tail v) (z 0) (x 0))) private lemma fromTrain (B : Small S V) (p : ℝ≥0) (z : Times n) (x : SpacePoints n) (v : Fin n → S.Union) (Z : ℂ) (X : Space3) : B.trainB p n z x v Z X = fromRef B p p z x v Z X := by cases n <;> simp only [fromRef,Small.trainB] private lemma fromPoint (B : Small S V) (p : ℝ≥0) (v : Fin n → S.Union) (y : Heights n) (k : Points n) : B.shot p n v y k = fromRef B p 0 (shift k y) (trace k) v 0 0 := by cases n <;> simp only [Small.shot,fromRef,zero_add,sub_zero] private lemma nextRef (B : Small S V) (p q : ℝ≥0) (z : Times (n+1)) (x : SpacePoints (n+1)) (v : Fin (n+1) → S.Union) (Z : ℂ) (X : Space3) : fromRef B p q z x v Z X = Small.rip (z 0-Z) (q+p) (x 0-X) ((B.bar p (v 0)) (fromRef B p p (Fin.tail z) (Fin.tail x) (Fin.tail v) (z 0) (x 0))) := by rw [← fromTrain]; rfl -- Hypotheses actually needed on imaginary coordinates in fromRef. private def Room (p q : ℝ≥0) (y : Heights n) (Y : ℝ) : Prop := (∀ i, ↑(q+p) < y i - Y) ∧ (∀ i j : Fin n, i < j → ↑(p+p) < y j - y i) private lemma tailRoom {p q : ℝ≥0} {y : Heights (n+1)} {Y : ℝ} (h : Room p q y Y) : Room p p (Fin.tail y) (y 0) := ⟨fun i => h.2 0 i.succ (Fin.succ_pos i), fun i j hij => h.2 i.succ j.succ (Fin.succ_lt_succ_iff.mpr hij)⟩ private def pinned (e : S.Tag) := S.pin e.1 e.2 private def raw (e : S.Tag) : L.Token := ⟨e.1,S.representative e.1 e.2⟩ private def iz (y : ℝ) : ℂ := ↑y*I private lemma oneSlab (e : L.Token) {p : ℝ≥0} (hp : 0
(position (x i-X) (y i-Y-(q:ℝ)),raw (v i))) ∧
fromRef B p q (iz ∘ y) x (pinned ∘ v) (iz Y) X = V.GNS.plant b := by
induction n generalizing q Y X with
| zero => exact ⟨air timeAxis,List.ofFn_zero.symm,rfl⟩
| succ n ih =>
obtain ⟨b,hb,hplant⟩ := ih p (Fin.tail y) (Fin.tail x) (Fin.tail v) _ (x 0) (tailRoom h)
let r := (y 0 - Y - ↑(q+p)).toNNReal
have hg : 0 < y 0 - Y - ↑(q+p) := sub_pos.mpr (h.1 0)
have hr : 0 (position (x i) (y i),raw (v i))) ∧
fromRef B p 0 (iz ∘ y) x (pinned ∘ v) 0 0 = V.GNS.plant b := by
simpa only [iz,NNReal.coe_zero, Complex.ofReal_zero,zero_mul,sub_zero] using
euclideanRef link hp 0 y x v 0 0 h
-- No common-width restrictions in this lemma. S.classTokens is used even on T.
private lemma onImag {B : Small S V} {A : Spread V} {J : StarOp S} {H : S.RealSpin}
{F : Waves S} (link : B.concretized A) (hr : starRead J H)
(hf : F.Region T) (hT : T.Symmetric) (hw : T.respects S)
{p q : ℝ≥0} (hp : 0 (z c i).im) (Z c).im)
(hx : ∀ i, DifferentiableAt ℂ (fun d => z d i) c) (hu : DifferentiableAt ℂ Z c) :
DifferentiableAt ℂ (fun d => fromRef B p q (z d) x v (Z d) X) c := by
induction n generalizing q Z X with
| zero => exact differentiableAt_const _
| succ n ih =>
let f (d : ℂ) := Small.interval (z d 0 - Z d) (q+p)
have hf : DifferentiableAt ℂ f c :=
(differentiableAt_const _ |>.mul ((hx 0).sub hu)).sub (differentiableAt_const _)
have hI : f c ∈ OS.Semigroup.inside := (Small.down _ _).mpr (h.1 0)
have hb := ih p (fun c => Fin.tail (z c)) (fun c => z c 0) (Fin.tail x) (x 0) (Fin.tail v)
(tailRoom h) (fun i => hx i.succ) (hx 0)
let u := V.flow.U (Small.bufferF (x 0-X))
let g := B.bar p (v 0)
simp_rw [nextRef]
exact ((V.flow.localHeat (f c) hI).differentiableAt.comp c hf).clm_apply
(u.differentiableAt.comp c (g.differentiableAt.comp c hb))
-- The first vector need not have a conjugation in its Hilbert space.
-- Use the scalar conjugation and antilinearity in the slope calculation.
private lemma fromInner {D : Hilbert} {f g : ℂ → D} {c : ℂ}
(hf : DifferentiableAt ℂ f (star c)) (hg : DifferentiableAt ℂ g c) :
DifferentiableAt ℂ (fun d => inner ℂ (f (star d)) (g d)) c := by
have hs : Tendsto (star : ℂ → ℂ) (𝓝[≠] c) (𝓝[≠] star c) := by
apply tendsto_nhdsWithin_of_tendsto_nhds_of_eventually_within
· exact (continuous_star.tendsto c).mono_left nhdsWithin_le_nhds
filter_upwards [self_mem_nhdsWithin] with d hd
exact fun he => hd (star_injective he)
let w : ℂ := inner ℂ (deriv f (star c)) (g c)+inner ℂ (f (star c)) (deriv g c)
suffices H : HasDerivAt (fun d => inner ℂ (f (star d)) (g d)) w c from H.differentiableAt
apply hasDerivAt_iff_tendsto_slope.mpr
have h₁ := (hf.hasDerivAt.tendsto_slope.comp hs).inner (𝕜:=ℂ)
(hg.continuousAt.tendsto.mono_left (nhdsWithin_le_nhds (s:={c}ᶜ)))
have h₂ := (tendsto_const_nhds (x:= f (star c))).inner (𝕜:=ℂ) hg.hasDerivAt.tendsto_slope
refine (h₁.add h₂).congr' (Eventually.of_forall fun d => ?_)
simp [slope_def_module,inner_smul_left,inner_smul_right,inner_sub_left,inner_sub_right]; ring
-- profile and imaginary part along the one-complex-dimensional path
private def alongTimes (y : Heights n) (r : Points n) (c : ℂ) : Times n := fun i =>
iz (y i) + c * ↑(YM.time (r i))
private def alongImag (y : Heights n) (r : Points n) (t : ℝ) : Heights n := fun i =>
y i+t*YM.time (r i)
private lemma along_im (y : Heights n) (r : Points n) (c : ℂ) :
(fun i => (alongTimes y r c i).im)=alongImag y r c.im := by
funext i; simp [alongTimes,alongImag,iz]
private lemma along_pure (y : Heights n) (r : Points n) (t : ℝ) :
alongTimes y r (iz t)=iz ∘ alongImag y r t := by
funext i; simp only [alongTimes,alongImag,Function.comp_apply,iz]; push_cast; ring
private lemma along_both (y : Heights n) (z : Heights m) (r : Points n) (s : Points m) (t : ℝ) :
alongImag (Bid.bothH y z) (Bid.bothP r s) t = Bid.bothH (alongImag y r (-t)) (alongImag z s t) := by
funext i; cases i using Fin.addCases <;> simp [Bid.bothH,Bid.bothP,alongImag]; ring
private lemma along_room {p : ℝ≥0} {y : Heights n} (h : Room p 0 y 0) (r : Points n) :
∀ᶠ t : ℝ in 𝓝 0, Room p 0 (alongImag y r t) 0 := by
let S := {v : Heights n | Room p 0 v 0}
have ho : IsOpen S := by
have he : S = (⋂ i : Fin n, {v : Heights n | ↑(0+p) fromRef B p 0 (z₁ c) (trace r) (pinned ∘ v) 0 0
let b : ℂ → V.H := fun c => fromRef B q 0 (z₂ c) (trace s) (pinned ∘ w) 0 0
let l (c : ℂ) := inner ℂ (a (star c)) (b c)
let k (c : ℂ) := F.F (n+m) (Z c) x (Bid.bothT (pinned ∘ v) (pinned ∘ w) J)
have hs : Tendsto (fun t : ℝ => -t) (𝓝 0) (𝓝 0) := by
simpa using (continuous_neg.tendsto (0:ℝ))
obtain ⟨δ,hδ,hstrip⟩ := Metric.eventually_nhds_iff.mp
((hs.eventually (along_room h r)).and (along_room g s))
let U : Set ℂ := im ⁻¹' Ioo (-δ) δ
have hu : IsOpen U := isOpen_Ioo.preimage continuous_im
have hc : IsPreconnected U := Convex.isPreconnected ((convex_Ioo (-δ) δ).linear_preimage imCLM.toLinearMap)
have hzero : (0:ℂ)∈U := ⟨neg_lt_zero.mpr hδ,hδ⟩
have hroom (c : ℂ) (Hc : c ∈ U) :
Room p 0 (alongImag y r (-c.im)) 0 ∧ Room q 0 (alongImag z s c.im) 0 :=
hstrip (by simpa only [Real.dist_eq,sub_zero,abs_lt] using (show -δ