PhysLean Documentation

PhysLean.SpaceAndTime.Space.Distributions.Basic

Distributions on Space #

In this module we define the derivatives, gradient, divergence and curl of distributions on Space.

Contrary to the usual definition of derivatives on functions, when working with distributions one does not need to check that the function is differentiable to perform basic operations. This has the consequence that in a lot of cases, distributions are in fact somewhat easier to work with than functions.

Examples of distributions #

Distributions cover a wide range of objects that we use in physics.

The constant distribution on space #

noncomputable def Space.constD {M : Type} [NormedAddCommGroup M] [NormedSpace M] (d : ) (m : M) :

The constant distribution from Space d to a module M associated with m : M.

Equations
Instances For

    Derivatives #

    noncomputable def Space.derivD {M : Type} {d : } [NormedAddCommGroup M] [NormedSpace M] (μ : Fin d) :

    Given a distribution (function) f : Space d →d[ℝ] M the derivative of f in direction μ.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem Space.derivD_comm {M : Type} {d : } [NormedAddCommGroup M] [NormedSpace M] (μ ν : Fin d) (f : (Space d)→d[] M) :
      (derivD ν) ((derivD μ) f) = (derivD μ) ((derivD ν) f)
      @[simp]
      theorem Space.derivD_constD {M : Type} {d : } [NormedAddCommGroup M] [NormedSpace M] (μ : Fin d) (m : M) :
      (derivD μ) (constD d m) = 0
      theorem Space.derivD_apply {M : Type} {d : } [NormedAddCommGroup M] [NormedSpace M] (μ : Fin d) (f : (Space d)→d[] M) (ε : SchwartzMap (Space d) ) :
      ((derivD μ) f) ε = (((Distribution.fderivD ) f) ε) (basis μ)

      The gradient #

      The gradient of a distribution (Space d) →d[ℝ] ℝ as a distribution (Space d) →d[ℝ] (EuclideanSpace ℝ (Fin d)).

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem Space.gradD_inner_eq {d : } (f : (Space d)→d[] ) (η : SchwartzMap (Space d) ) (y : EuclideanSpace (Fin d)) :
        inner ((gradD f) η) y = (((Distribution.fderivD ) f) η) y
        theorem Space.gradD_eq_of_inner {d : } (f : (Space d)→d[] ) (g : (Space d)→d[] EuclideanSpace (Fin d)) (h : ∀ (η : SchwartzMap (Space d) ) (y : Space d), (((Distribution.fderivD ) f) η) y = inner (g η) y) :
        gradD f = g
        @[simp]
        theorem Space.gradD_constD {d : } (m : ) :
        gradD (constD d m) = 0
        theorem Space.gradD_toFun_eq_derivD {d : } (f : (Space d)→d[] ) :
        (↑(gradD f)).toFun = fun (ε : SchwartzMap (Space d) ) (i : Fin d) => ((derivD i) f) ε
        theorem Space.gradD_apply {d : } (f : (Space d)→d[] ) (ε : SchwartzMap (Space d) ) :
        (gradD f) ε = fun (i : Fin d) => ((derivD i) f) ε

        The divergence #

        The divergence of a distribution (Space d) →d[ℝ] (EuclideanSpace ℝ (Fin d)) as a distribution (Space d) →d[ℝ] ℝ.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem Space.divD_apply_eq_sum_fderivD {d : } (f : (Space d)→d[] EuclideanSpace (Fin d)) (η : SchwartzMap (Space d) ) :
          (divD f) η = i : Fin d, (((Distribution.fderivD ) f) η) (basis i) i
          theorem Space.divD_apply_eq_sum_derivD {d : } (f : (Space d)→d[] EuclideanSpace (Fin d)) (η : SchwartzMap (Space d) ) :
          (divD f) η = i : Fin d, ((derivD i) f) η i
          @[simp]
          theorem Space.divD_constD {d : } (m : EuclideanSpace (Fin d)) :
          divD (constD d m) = 0
          theorem Space.divD_ofFunction {dm1 : } {f : Space dm1.succEuclideanSpace (Fin dm1.succ)} {hf : Distribution.IsDistBounded f} {hae : MeasureTheory.AEStronglyMeasurable (fun (x : Space dm1.succ) => f x) MeasureTheory.volume} (η : SchwartzMap (EuclideanSpace (Fin dm1.succ)) ) :
          (divD (Distribution.ofFunction f hf hae)) η = - (x : Space dm1.succ), inner (f x) (grad (⇑η) x)

          The divergence of a distribution from a bounded function.

          The curl #

          The curl of a distribution Space →d[ℝ] (EuclideanSpace ℝ (Fin 3)) as a distribution Space →d[ℝ] (EuclideanSpace ℝ (Fin 3)).

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            @[simp]

            ## Vector identities

            @[simp]

            The curl of a grad is equal to zero.

            For time-dependent distributions #

            The time derivative of a distribution dependent on time and space.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              noncomputable def Space.spaceDerivD {M : Type} {d : } [NormedAddCommGroup M] [NormedSpace M] (i : Fin d) :

              The space derivative of a distribution dependent on time and space.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                The spatial gradient of a distribution dependent on time and space.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  theorem Space.spaceGradD_apply {d : } (f : (Time × Space d)→d[] ) (ε : SchwartzMap (Time × Space d) ) :
                  (spaceGradD f) ε = fun (i : Fin d) => ((spaceDerivD i) f) ε

                  The spatial divergence of a distribution dependent on time and space.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    The curl of a distribution dependent on time and space.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For