PhyslibSearch

Physlib.Mathematics.VariationalCalculus.HasVarGradient

9 declarations

inductive

The variational gradient of FF at uu is grad\text{grad}

#HasVarGradientAt

The proposition `HasVarGradientAt F grad u` states that the function grad:XU\text{grad} : X \to U is the variational gradient (functional derivative) δSδu\frac{\delta S}{\delta u} of a functional SS at the point u:XUu : X \to U. The functional SS is defined by the density mapping F:(XU)(XR)F : (X \to U) \to (X \to \mathbb{R}), where the total functional is given by S[u]=XF(u)(x)dμ(x)S[u] = \int_X F(u)(x) \, d\mu(x). This formalizes the relationship where grad\text{grad} represents the functional derivative δSδu\frac{\delta S}{\delta u} evaluated at uu.

theorem

The variational gradient of F+FF + F' is grad+grad\text{grad} + \text{grad}'

#add

Let FF and FF' be functional density mappings from (XU)(X \to U) to (XR)(X \to \mathbb{R}). If FF has a variational gradient grad:XU\text{grad} : X \to U at u:XUu : X \to U, and FF' has a variational gradient grad:XU\text{grad}' : X \to U at uu, then the sum mapping F+FF + F' (defined by (F+F)(v)(x)=F(v)(x)+F(v)(x)(F + F')(v)(x) = F(v)(x) + F'(v)(x)) has the variational gradient grad+grad\text{grad} + \text{grad}' at uu. This holds provided that XX is a measurable space where the volume measure is finite on compact sets.

theorem

The variational gradient of Fi\sum F_i is gradi\sum \text{grad}_i

#sum

Let ι\iota be a finite index set. Let Fi:(XU)(XR)F_i : (X \to U) \to (X \to \mathbb{R}) be a family of functional density mappings for iιi \in \iota. Suppose that for each iιi \in \iota, the mapping FiF_i has a variational gradient gradi:XU\text{grad}_i : X \to U at u:XUu : X \to U. Provided that uu is CC^\infty and XX is a measurable space where the volume measure is finite on compact sets, the functional defined by the sum of these densities, (iιFi)(v)(x)=iιFi(v)(x)(\sum_{i \in \iota} F_i)(v)(x) = \sum_{i \in \iota} F_i(v)(x), has the variational gradient iιgradi\sum_{i \in \iota} \text{grad}_i at uu.

theorem

The variational gradient of F-F is grad-\text{grad}

#neg

Let F:(XU)(XR)F: (X \to U) \to (X \to \mathbb{R}) be a density mapping defining a functional S[u]=XF(u)(x)dμ(x)S[u] = \int_X F(u)(x) \, d\mu(x). If grad:XU\text{grad}: X \to U is the variational gradient (functional derivative) δSδu\frac{\delta S}{\delta u} of FF at the point uu, then the variational gradient of the functional defined by the density mapping F-F at uu is grad-\text{grad}.

definition

Variational gradient δSδu\frac{\delta S}{\delta u} of FF at uu

#varGradient

Given a mapping F:(XU)(XR)F: (X \to U) \to (X \to \mathbb{R}) that represents the integrand of a functional S[u]=XF(u)(x)dμ(x)S[u] = \int_X F(u)(x) \, d\mu(x), and a function u:XUu: X \to U, the variational gradient is the function g:XUg: X \to U representing the functional derivative δSδu\frac{\delta S}{\delta u} evaluated at uu. If there exists a function gg satisfying the property `HasVarGradientAt F g u`, the definition returns this gg; otherwise, it returns the zero function 0:XU0: X \to U.

definition

Notation for the variational gradient δu,x,b\delta u, \int x, b

#termδ_,∫_,_

This notation provides a syntax for the variational gradient (functional derivative) of an integral functional. For a function uu and an integrand bb that depends on uu and a spatial variable xx, the expression δu,x,b\delta u, \int x, b represents the variational gradient of the functional F[u]=b(u,x)dxF[u] = \int b(u, x) \, dx. Mathematically, this corresponds to the functional derivative δδu(x)b(u,x)dx\frac{\delta}{\delta u(x)} \int b(u, x) \, dx, which is a function of xx.

definition

Variational gradient δ(u:=u),x,b\delta(u := u'), \int x, b

#termδ(_:=_),∫_,_

This notation δ(u:=u),x,b\delta(u := u'), \int x, b represents the variational gradient (also known as the functional derivative) of an integral functional S[u]=b(u,x)dxS[u] = \int b(u, x) dx with respect to the function uu, evaluated at a specific function u=uu = u'. In this syntax, uu is the bound function variable, uu' is the point in the function space where the gradient is calculated, xx is the integration variable, and bb is the integrand expression. The result is a function of xx corresponding to the variational derivative δSδuu=u\left. \frac{\delta S}{\delta u} \right|_{u=u'}.

theorem

Uniqueness of the variational gradient

#unique

Let S:(XU)(XR)S' : (X \to U) \to (X \to \mathbb{R}) be a mapping that defines a functional S[u]=XS(u)(x)dμ(x)S[u] = \int_X S'(u)(x) \, d\mu(x). If grad\text{grad} and grad\text{grad}' are both variational gradients of SS' at the function u:XUu : X \to U (i.e., they both satisfy the property HasVarGradientAt\text{HasVarGradientAt} for SS' at uu), then grad=grad\text{grad} = \text{grad}'.

theorem

If grad\text{grad} is the variational gradient of FF at uu, then varGradientFu=grad\text{varGradient} F u = \text{grad}

#varGradient

Let F:(XU)(XR)F: (X \to U) \to (X \to \mathbb{R}) be a density mapping such that the total functional is given by S[u]=XF(u)(x)dμ(x)S[u] = \int_X F(u)(x) \, d\mu(x). If grad:XU\text{grad}: X \to U is a function that satisfies the property of being the variational gradient (functional derivative) of FF at the point u:XUu: X \to U (i.e., `HasVarGradientAt F grad u` holds), then the variational gradient defined by the operator `varGradient F u` is equal to grad\text{grad}.