PhysLean Documentation

PhysLean.SpaceAndTime.Space.LengthUnit

Units on Length #

A unit of length corresponds to a choice of translationally-invariant metric on the space manifold (to be defined). Such a choice is (non-canonically) equivalent to a choice of positive real number. We define the type LengthUnit to be equivalent to the positive reals.

On LengthUnit there is an instance of division giving a real number, corresponding to the ratio of the two scales of length unit.

To define specific length units, we first axiomise the existence of a a given length unit, and then construct all other length units from it. We choose to axiomise the existence of the length unit of meters, and construct all other length units from that.

structure LengthUnit :

The choices of translationally-invariant metrics on the space-manifold. Such a choice corresponds to a choice of units for length.

  • val :

    The underlying scale of the unit.

  • property : 0 < self.val
Instances For
    @[simp]

    Division of LengthUnit #

    Equations
    theorem LengthUnit.div_eq_val (x y : LengthUnit) :
    x / y = x.val / y.val,
    @[simp]
    theorem LengthUnit.div_neq_zero (x y : LengthUnit) :
    ¬x / y = 0
    @[simp]
    theorem LengthUnit.div_self (x : LengthUnit) :
    x / x = 1
    theorem LengthUnit.div_symm (x y : LengthUnit) :
    x / y = (y / x)⁻¹

    The scaling of a length unit #

    def LengthUnit.scale (r : ) (x : LengthUnit) (hr : 0 < r := by norm_num) :

    The scaling of a length unit by a positive real.

    Equations
    Instances For
      @[simp]
      theorem LengthUnit.scale_div_self (x : LengthUnit) (r : ) (hr : 0 < r) :
      scale r x hr / x = r,
      @[simp]
      theorem LengthUnit.scale_one (x : LengthUnit) :
      scale 1 x = x
      @[simp]
      theorem LengthUnit.scale_div_scale (x1 x2 : LengthUnit) {r1 r2 : } (hr1 : 0 < r1) (hr2 : 0 < r2) :
      scale r1 x1 hr1 / scale r2 x2 hr2 = r1, / r2, * (x1 / x2)

      Specific choices of Length units #

      To define a specific length units, we must first axiomise the existence of a a given length unit, and then construct all other length units from it. We choose to axiomise the existence of the length unit of meters.

      We need an axiom since this relates something to something in the physical world.

      The axiom corresponding to the definition of a length unit of meters.

      The length unit of femtometers (10⁻¹⁵ of a meter).

      Equations
      Instances For

        The length unit of picometers (10⁻¹² of a meter).

        Equations
        Instances For

          The length unit of nanometers (10⁻⁹ of a meter).

          Equations
          Instances For

            The length unit of micrometers (10⁻⁶ of a meter).

            Equations
            Instances For

              The length unit of millimeters (10⁻³ of a meter).

              Equations
              Instances For

                The length unit of centimeters (10⁻² of a meter).

                Equations
                Instances For
                  noncomputable def LengthUnit.inches :

                  The length unit of inch (0.0254 meters).

                  Equations
                  Instances For
                    noncomputable def LengthUnit.feet :

                    The length unit of feet (0.3048 meters)

                    Equations
                    Instances For
                      noncomputable def LengthUnit.yards :

                      The length unit of a yard (0.9144 meters)

                      Equations
                      Instances For
                        noncomputable def LengthUnit.rods :

                        The length unit of a rod (5.0292 meters)

                        Equations
                        Instances For
                          noncomputable def LengthUnit.chains :

                          The length unit of a chain (20.1168 meters)

                          Equations
                          Instances For
                            noncomputable def LengthUnit.furlongs :

                            The length unit of a furlong (201.168 meters)

                            Equations
                            Instances For

                              The length unit of kilometers (10³ meters).

                              Equations
                              Instances For
                                noncomputable def LengthUnit.miles :

                                The length unit of a mile (1609.344 meters).

                                Equations
                                Instances For

                                  The length unit of a nautical mile (1852 meters).

                                  Equations
                                  Instances For

                                    The length unit of an astronomical unit (149,597,870,700 meters).

                                    Equations
                                    Instances For

                                      The length unit of a light year (9,460,730,472,580,800 meters).

                                      Equations
                                      Instances For
                                        noncomputable def LengthUnit.parsecs :

                                        The length unit of a parsec (648,000/π astronomicalUnits).

                                        Equations
                                        Instances For

                                          Relations between length units #

                                          There are exactly 1760 yards in a mile.

                                          There are exactly 220 yards in a furlong.