PhysLean Documentation

PhysLean.ClassicalMechanics.Space.Basic

Space #

This file contains d-dimensional space.

Note on implementation #

The definition of Space d currently inherits all instances of EuclideanSpace ā„ (Fin d).

This, in particular, automatically equips Space d with a norm. This norm induces a metric on Space d which is the standard Euclidean metric. Thus Space d automatically corresponds to flat space.

The definition of deriv through fderiv explicitly uses this metric.

Space d also inherits instances of EuclideanSpace ā„ (Fin d) such as a zero vector, the ability to add two space positions etc, which are not really allowed operations on Space d.

@[reducible, inline]
abbrev Space (d : ā„• := 3) :

The type Space d representes d dimensional Euclidean space. The default value of d is 3. Thus Space = Space 3.

Equations
Instances For
    noncomputable def Space.basis {d : ā„•} :

    The standard basis of Space based on Fin d.

    Equations
    Instances For
      noncomputable def Space.coord {d : ā„•} (μ : Fin d) (p : Space d) :

      The standard coordinate functions of Space based on Fin d.

      The notation š” μ p can be used for this.

      Equations
      Instances For

        The standard coordinate functions of Space based on Fin d.

        The notation š” μ p can be used for this.

        Equations
        Instances For

          Calculus #

          noncomputable def Space.deriv {M : Type u_1} {d : ā„•} [AddCommGroup M] [Module ā„ M] [TopologicalSpace M] (μ : Fin d) (f : Space d → M) :
          Space d → M

          Given a function f : Space d → M the derivative of f in direction μ.

          Equations
          Instances For
            theorem Space.deriv_eq {M : Type u_1} {d : ā„•} [AddCommGroup M] [Module ā„ M] [TopologicalSpace M] (μ : Fin d) (f : Space d → M) (x : Space d) :
            deriv μ f x = (fderiv ā„ f x) (EuclideanSpace.single μ 1)

            Given a function f : Space d → M the derivative of f in direction μ.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              noncomputable def Space.grad {d : ā„•} (f : Space d → ā„) :

              The vector calculus operator grad.

              Equations
              Instances For

                The vector calculus operator grad.

                Equations
                Instances For
                  noncomputable def Space.curl (f : Space → EuclideanSpace ā„ (Fin 3)) :

                  The vector calculus operator curl.

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

                    The vector calculus operator curl.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      noncomputable def Space.div {d : ā„•} (f : Space d → EuclideanSpace ā„ (Fin d)) :
                      Space d → ā„

                      The vector calculus operator div.

                      Equations
                      Instances For

                        The vector calculus operator div.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          noncomputable def Space.laplacian {d : ā„•} (f : Space d → ā„) :
                          Space d → ā„

                          The scalar laplacian operator.

                          Equations
                          Instances For

                            The scalar laplacian operator.

                            Equations
                            Instances For
                              noncomputable def Space.laplacian_vec {d : ā„•} (f : Space d → EuclideanSpace ā„ (Fin d)) :

                              The vector laplacian_vec operator.

                              Equations
                              Instances For

                                The vector laplacian_vec operator.

                                Equations
                                Instances For