import Mathlib namespace OAI noncomputable section /- Use the normed-field structure on ℂ for real scalar multiplication. -/ attribute [-instance] instCommCStarAlgebraComplex open MeasureTheory Set open scoped ENNReal NNReal namespace LipschitzHilbert abbrev Plane := EuclideanSpace ℝ (Fin 2) abbrev DirectionPlane := EuclideanSpace ℝ (Fin 2) def sample (v : DirectionPlane → DirectionPlane) (t : ℝ) (x : DirectionPlane) : DirectionPlane := x - t • v x /-- The symmetrized form of the hard-truncated directional integral. -/ def shortTransform (v : DirectionPlane → DirectionPlane) (ε a : ℝ) (f : DirectionPlane → ℂ) (x : DirectionPlane) : ℂ := ∫ t in ε..a, t⁻¹ • (f (sample v t x) - f (sample v (-t) x)) def directionalKernel (v : DirectionPlane → DirectionPlane) (f : DirectionPlane → ℂ) (x : DirectionPlane) (t : ℝ) : ℂ := t⁻¹ • f (sample v t x) /-- The two hard-cutoff intervals in the directional Hilbert transform. -/ def twoSidedTruncation (v : DirectionPlane → DirectionPlane) (ε a : ℝ) (f : DirectionPlane → ℂ) (x : DirectionPlane) : ℂ := (∫ t in -a..-ε, directionalKernel v f x t) + ∫ t in ε..a, directionalKernel v f x t /-- The symmetric quotient extended continuously at zero for smooth inputs. -/ def smoothPrincipalValue (v : DirectionPlane → DirectionPlane) (a : ℝ) (f : DirectionPlane → ℂ) (x : DirectionPlane) : ℂ := let g := fun t : ℝ => f (sample v t x)-f (sample v (-t) x) ∫ t in (0:ℝ)..a, Function.update (fun t => t⁻¹ • g t) 0 (deriv g 0) t attribute [instance] instCommCStarAlgebraComplex def ShortHilbertConclusion (a : ℝ) (C : ℝ≥0) : Prop := ∀ v : Plane → Plane, LipschitzWith 1 v → (∀ x, ‖v x‖=1) → (∀ epsilon : ℝ, 0