PhysLean Documentation

PhysLean.Units.Dimension

Dimension #

In this module we define the type Dimension which carries the dimension of a physical quantity.

Defining dimensions #

structure Dimension :

The foundational dimensions. Defined in the order ⟨length, time, mass, charge, temperature⟩

  • length :

    The length dimension.

  • time :

    The time dimension.

  • mass :

    The mass dimension.

  • charge :

    The charge dimension.

  • temperature :

    The temperature dimension.

Instances For
    theorem Dimension.ext {d1 d2 : Dimension} (h1 : d1.length = d2.length) (h2 : d1.time = d2.time) (h3 : d1.mass = d2.mass) (h4 : d1.charge = d2.charge) (h5 : d1.temperature = d2.temperature) :
    d1 = d2
    theorem Dimension.ext_iff {d1 d2 : Dimension} :
    d1 = d2 d1.length = d2.length d1.time = d2.time d1.mass = d2.mass d1.charge = d2.charge d1.temperature = d2.temperature
    Equations
    • One or more equations did not get rendered due to their size.
    @[simp]
    theorem Dimension.time_mul (d1 d2 : Dimension) :
    (d1 * d2).time = d1.time + d2.time
    @[simp]
    theorem Dimension.length_mul (d1 d2 : Dimension) :
    (d1 * d2).length = d1.length + d2.length
    @[simp]
    theorem Dimension.mass_mul (d1 d2 : Dimension) :
    (d1 * d2).mass = d1.mass + d2.mass
    @[simp]
    theorem Dimension.charge_mul (d1 d2 : Dimension) :
    (d1 * d2).charge = d1.charge + d2.charge
    Equations
    @[simp]
    @[simp]
    @[simp]
    @[simp]
    Equations
    • One or more equations did not get rendered due to their size.
    @[simp]
    theorem Dimension.div_length (d1 d2 : Dimension) :
    (d1 / d2).length = d1.length - d2.length
    @[simp]
    theorem Dimension.div_time (d1 d2 : Dimension) :
    (d1 / d2).time = d1.time - d2.time
    @[simp]
    theorem Dimension.div_mass (d1 d2 : Dimension) :
    (d1 / d2).mass = d1.mass - d2.mass
    @[simp]
    theorem Dimension.div_charge (d1 d2 : Dimension) :
    (d1 / d2).charge = d1.charge - d2.charge
    @[simp]
    theorem Dimension.npow_length (d : Dimension) (n : ) :
    (d ^ n).length = n d.length
    @[simp]
    theorem Dimension.npow_time (d : Dimension) (n : ) :
    (d ^ n).time = n d.time
    @[simp]
    theorem Dimension.npow_mass (d : Dimension) (n : ) :
    (d ^ n).mass = n d.mass
    @[simp]
    theorem Dimension.npow_charge (d : Dimension) (n : ) :
    (d ^ n).charge = n d.charge
    Equations
    • One or more equations did not get rendered due to their size.

    The dimension corresponding to length.

    Equations
    Instances For

      The dimension corresponding to time.

      Equations
      Instances For

        The dimension corresponding to mass.

        Equations
        Instances For

          The dimension corresponding to charge.

          Equations
          Instances For

            The dimension corresponding to temperature.

            Equations
            Instances For