import YM.EveryPhase.DerivativeHelpers /-! # Don't lose the differential system at Wick rotation Compatibility consumer, using the common input and the *actual* realizations. Establish analytic continuation of the Euclidean derivative identities to the full tube, distribution derivative identity on the Schwartz boundary, and operator identity on the field-word domain. In particular the stated adjoint and spacelike commutation laws for the fields on the word domain can be used coherently even when using a known `DiffPlan` (raising the degree), and there is a conservation identity on that domain. No claim of commutation on extended domains (adjoints etc.). This is not an assumption of Ward identities on the Lorentz side. Do not infer Euclidean contact identities *on* coincidence sets. -/ set_option autoImplicit false noncomputable section namespace YM.Next.BOUNDARY open Set Filter Function MeasureTheory Complex Analysis open Boundary OS Spec Org open Work.C20 open scoped Topology InnerProductSpace BigOperators ContDiff LineDeriv variable {G : Gauge} {L : Register G} {n : ℕ} /-- Euclidean time derivative analytically rotates with **plus** i on field correlations. Will put **minus i** on test functions. -/ def wick (a : Axis) : ℂ := if a=timeAxis then I else 1 lemma wick_ne_zero (a : Axis) : wick a≠0 := by unfold wick; split <;> simp def realPartL (n : ℕ) : Points n →L[ℝ] Full n := LinearMap.toContinuousLinearMap { toFun := fun x => glow x 0 map_add' := fun x y => by ext1 i; simp [glow] map_smul' := fun c x => by ext1 i; simp [glow, real_smul] } theorem wick_dir (i : Fin n) (a : Axis) : wickSlice n (Points.direction i a) = wick a • realPartL n (Points.direction i a) := by ext1 j rcases j with ⟨j,b⟩ change (wickSlice n _ : Full n) (j,b) = wick a * glow _ 0 (j,b) rw [wick_apply] by_cases h : j=i · subst j by_cases hb : b=a <;> simp [Points.direction, glow, wick, hb] simp [Points.direction, glow, h] private theorem real_movement (x y : Points n) : HasFDerivAt (fun x => glow x y) (realPartL n) x := by have hp : (fun x : Points n => glow x y) = fun x => realPartL n x + glow 0 y := by funext z ext1 i change glow z y i=glow z 0 i + glow 0 y i simp [glow] rw [hp] exact (realPartL n).hasFDerivAt.add_const _ private lemma inside_convex : Convex ℝ Mink.inside := by intro x hx y hy c d hc hd h change ‖spatial _‖