/-
Copyright (c) 2026 Sidharth Hariharan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sidharth Hariharan
-/
module
public import Mathlib.Analysis.Normed.Group.Uniform
/-!
# Radial functions
A function on a space equipped with a norm is *radial* if its value at a point depends only on the
norm of that point, that is, if it factors through the norm. This file introduces the predicate
`Function.IsRadial` and develops basic API.
## Main definitions
* `Function.IsRadial`: the predicate stating that `f : E → F` factors through `‖·‖ : E → ℝ`.
* `Function.radialPart`: a choice of function `ℝ → F` through which `f : E → F` factors; it
satisfies `f = f.radialPart ∘ (‖·‖)` precisely when `f` is radial.
## Tags
radial function, radially symmetric
-/
@[expose] public section
variable {D E F : Type*}
namespace Function
/-- A function on a space with a norm is *radial* if it factors through the norm. -/
@[fun_prop]
def IsRadial [Norm E] (f : E → F) : Prop := f.FactorsThrough (‖·‖ : E → ℝ)
lemma isRadial_def [Norm E] (f : E → F) :
f.IsRadial ↔ ∀ {x y : E}, ‖x‖ = ‖y‖ → f x = f y := by
simp [IsRadial, Function.FactorsThrough]
/-- The radial part of a function. If `f` is radial, then `f = f.radialPart ∘ (‖·‖)`. -/
noncomputable def radialPart [Norm E] [hF : Nonempty F] (f : E → F) : ℝ → F :=
Function.extend (‖·‖ : E → ℝ) f <| fun _ ↦ Classical.choice hF
namespace IsRadial
@[simp]
lemma radialPart_norm [Norm E] [Nonempty F] {f : E → F} (hf : f.IsRadial) {x : E} :
f.radialPart ‖x‖ = f x := hf.extend_apply _ _
lemma even [SeminormedAddGroup E] {f : E → F} (hf : f.IsRadial) : f.Even := fun x ↦ hf (norm_neg x)
@[fun_prop]
lemma comp_right [Norm D] {f : D → E} {g : E → F} (hf : f.IsRadial) :
(g ∘ f).IsRadial := by grind [isRadial_def]
lemma comp_isometry [SeminormedAddGroup E] {f : E → F} (hf : f.IsRadial) {g : E → E}
(hg : Isometry g) (hg₀ : g 0 = 0) : f ∘ g = f :=
funext fun x ↦ hf <| hg.norm_map_of_map_zero hg₀ x
end IsRadial
section Norm
variable [Norm E]
variable (E) in
@[fun_prop]
lemma isRadial_norm : (‖·‖ : E → ℝ).IsRadial := by grind [isRadial_def]
lemma IsRadial.comp_norm (g : ℝ → F) : (g ∘ (‖·‖ : E → ℝ)).IsRadial := by fun_prop
variable (E) in
@[fun_prop]
lemma isRadial_norm_sq : IsRadial (‖·‖ ^ 2 : E → ℝ) := by fun_prop
end Norm
end Function
¤ Dauer der Verarbeitung: 0.2 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland