Physlib

Physlib.SpaceAndTime.Time.TimeUnit

Units on time

A unit of time corresponds to a choice of translationally-invariant metric on the time manifold `TimeTransMan`. Such a choice is (non-canonically) equivalent to a choice of positive real number. We define the type `TimeUnit` to be equivalent to the positive reals.

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

We define `HasTimeDimension` to be a property of a function from `TimeUnit` to a type `M` which is a function that scales with the time unit with respect to the rational power `d`.

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

Division of TimeUnit

The scaling of a time unit

Specific choices of time units

To define a specific time units. We first define the notion of a second to correspond to the length unit with underlying value equal to `1`. This is really down to a choice in the isomorphism between the set of metrics on the time manifold and the positive reals. From this choice of second, we can define other length units by scaling second.

Relations between time units

35 declarations

theorem

The value of a time unit is non-zero (x.val0x.val \neq 0)

For any time unit xx, its associated real value x.valx.val is not equal to zero.

theorem

The value of a time unit is strictly positive (x.val>0x.\text{val} > 0)

For any time unit xx, its underlying real value x.valx.\text{val} is strictly greater than zero, i.e., x.val>0x.\text{val} > 0.

instance

Default time unit of 11

The type of time units, TimeUnit\text{TimeUnit} (representing the set of positive real numbers), is provided with a default inhabitant defined as 11.

instance

Ratio of time units x/tR0x/t \in \mathbb{R}_{\ge 0}

For any two time units x,tTimeUnitx, t \in \text{TimeUnit}, their ratio x/tx / t is defined as the quotient of their underlying positive real values xvaltval\frac{x_{\text{val}}}{t_{\text{val}}}, resulting in a non-negative real number in R0\mathbb{R}_{\ge 0}.

theorem

x/y=x.val/y.valx / y = x.\text{val} / y.\text{val} for time units x,yx, y

For any two time units x,yTimeUnitx, y \in \text{TimeUnit}, the quotient x/yx / y is equal to the ratio of their underlying numerical values x.valy.val\frac{x.\text{val}}{y.\text{val}}, represented as a non-negative real number in R0\mathbb{R}_{\ge 0}.

theorem

x/y0x / y \neq 0 for time units x,yx, y

For any two time units x,yTimeUnitx, y \in \text{TimeUnit}, their ratio x/yx / y is not equal to zero in the non-negative real numbers R0\mathbb{R}_{\ge 0}.

theorem

x/y>0x / y > 0 for time units x,yx, y

For any two time units x,yTimeUnitx, y \in \text{TimeUnit}, their ratio x/yx / y is strictly greater than zero in the non-negative real numbers R0\mathbb{R}_{\ge 0}.

theorem

x/x=1x / x = 1 for time units

For any time unit xx, the ratio of xx to itself is equal to 1, where the ratio is considered as a non-negative real number (x/x=1R0x / x = 1 \in \mathbb{R}_{\ge 0}).

theorem

x/y=(y/x)1x / y = (y / x)^{-1} for time units

For any two time units x,yTimeUnitx, y \in \text{TimeUnit}, the ratio x/yx / y is equal to the reciprocal of the ratio y/xy / x. That is, x/y=(y/x)1x / y = (y / x)^{-1} where the division of two time units results in a non-negative real number in R0\mathbb{R}_{\ge 0}.

theorem

(x/y)(y/z)=x/z(x/y) \cdot (y/z) = x/z for time units

For any three time units x,y,zTimeUnitx, y, z \in \text{TimeUnit}, the product of the ratio of xx to yy and the ratio of yy to zz is equal to the ratio of xx to zz. That is, (x/y)(y/z)=x/z(x / y) \cdot (y / z) = x / z, where the ratios are treated as real numbers.

theorem

scale(r,x)/x=r\text{scale}(r, x) / x = r for time units

For any time unit xTimeUnitx \in \text{TimeUnit} and any positive real number r>0r > 0, the ratio of the scaled time unit scale(r,x)\text{scale}(r, x) to the original time unit xx is equal to rr. That is, scale(r,x)x=r\frac{\text{scale}(r, x)}{x} = r where the division of two time units results in a non-negative real number in R0\mathbb{R}_{\ge 0}.

theorem

scale(1,x)=x\text{scale}(1, x) = x for time units

For any time unit xTimeUnitx \in \text{TimeUnit}, scaling xx by a factor of 11 results in the same time unit xx. That is, scale(1,x)=x\text{scale}(1, x) = x.

theorem

Ratio of scaled time units scale(r1,x1)scale(r2,x2)=r1r2x1x2\frac{\text{scale}(r_1, x_1)}{\text{scale}(r_2, x_2)} = \frac{r_1}{r_2} \frac{x_1}{x_2}

For any two time units x1x_1 and x2x_2 and any two positive real numbers r1,r2>0r_1, r_2 > 0, the ratio of the scaled time units scale(r1,x1)\text{scale}(r_1, x_1) and scale(r2,x2)\text{scale}(r_2, x_2) is equal to the product of the ratio of the scaling factors r1r2\frac{r_1}{r_2} and the ratio of the original units x1x2\frac{x_1}{x_2}: scale(r1,x1)scale(r2,x2)=r1r2x1x2\frac{\text{scale}(r_1, x_1)}{\text{scale}(r_2, x_2)} = \frac{r_1}{r_2} \cdot \frac{x_1}{x_2} where the division of two time units results in a non-negative real number.

theorem

x/scale(r,x)=1/rx / \text{scale}(r, x) = 1/r for time units

For any time unit xTimeUnitx \in \text{TimeUnit} and any positive real number r>0r > 0, the ratio of the original unit xx to the unit scaled by rr (denoted scale(r,x)\text{scale}(r, x)) is equal to the reciprocal of the scaling factor, 1/r1/r. Mathematically, this is expressed as: xscale(r,x)=1r\frac{x}{\text{scale}(r, x)} = \frac{1}{r} where the ratio of two time units is a non-negative real number in R0\mathbb{R}_{\ge 0}.

theorem

scale(r1,scale(r2,x))=scale(r1r2,x)\text{scale}(r_1, \text{scale}(r_2, x)) = \text{scale}(r_1 \cdot r_2, x) for time units

For any time unit xTimeUnitx \in \text{TimeUnit} and any two positive real numbers r1,r2>0r_1, r_2 > 0, scaling the unit xx by r2r_2 and then scaling the resulting unit by r1r_1 is equivalent to scaling the original unit xx by the product r1r2r_1 \cdot r_2: scale(r1,scale(r2,x))=scale(r1r2,x)\text{scale}(r_1, \text{scale}(r_2, x)) = \text{scale}(r_1 \cdot r_2, x) where scale(r,x)\text{scale}(r, x) denotes the time unit obtained by scaling xx by a factor rr.

definition

The time unit of seconds

The constant `seconds` is defined as a specific unit of time in the type `TimeUnit`, corresponding to the value 11 in the set of positive real numbers R>0\mathbb{R}_{>0}.

definition

The time unit of femtoseconds (101510^{-15} s)

The constant `femtoseconds` is a unit of time defined by scaling the base unit `seconds` by a factor of 101510^{-15}, corresponding to the value of 101510^{-15} in the set of positive real numbers R>0\mathbb{R}_{>0} representing the time unit.

definition

The time unit of picoseconds

The constant `picoseconds` is defined as a specific unit of time in the type `TimeUnit`, obtained by scaling the unit `seconds` by a factor of 101210^{-12}.

definition

The time unit of nanoseconds (10910^{-9} s)

The constant `nanoseconds` is a unit of time defined as the result of scaling the base unit `seconds` by a factor of 10910^{-9}, corresponding to the value of 10910^{-9} in the set of positive real numbers R>0\mathbb{R}_{>0} representing the time unit.

definition

The time unit of microseconds (10610^{-6} s)

The constant `microseconds` is defined as a specific unit of time in the type `TimeUnit`, obtained by scaling the base unit `seconds` by a factor of 10610^{-6}.

definition

The time unit of milliseconds (10310^{-3} s)

The constant `milliseconds` is a unit of time defined as the result of scaling the base unit `seconds` by a factor of (1/10)3(1/10)^3, which corresponds to 10310^{-3} seconds.

definition

The time unit of centiseconds (10210^{-2} s)

The constant `centiseconds` is a unit of time defined as the result of scaling the base unit `seconds` by a factor of (1/10)2(1/10)^2, which corresponds to 10210^{-2} seconds.

definition

The time unit of deciseconds (10110^{-1} s)

The constant `deciseconds` is a unit of time defined as the result of scaling the base unit `seconds` by a factor of (1/10)1(1/10)^1, which corresponds to 10110^{-1} seconds.

definition

The time unit of minutes (6060 s)

The constant `minutes` is a unit of time defined as the result of scaling the base unit `seconds` by a factor of 6060.

definition

The time unit of hours (36003600 s)

The constant `hours` is a unit of time in `TimeUnit` defined as the result of scaling the base unit `seconds` by a factor of 36003600, which represents 60×6060 \times 60 seconds.

definition

The time unit of days (86,40086,400 s)

The constant `days` is a unit of time in `TimeUnit` defined as the result of scaling the base unit `seconds` by a factor of 24×60×60=86,40024 \times 60 \times 60 = 86,400. It represents the duration of a standard 24-hour day.

definition

The time unit of weeks

The time unit weeksTimeUnit\text{weeks} \in \text{TimeUnit} is defined by scaling the unit seconds\text{seconds} by a factor of 7×24×60×60=604,8007 \times 24 \times 60 \times 60 = 604,800.

theorem

minutes/seconds=60\text{minutes} / \text{seconds} = 60

The ratio of the time unit minutes\text{minutes} to the time unit seconds\text{seconds} is equal to the non-negative real number 6060. That is, minutes/seconds=60\text{minutes} / \text{seconds} = 60 where the division of two time units results in a value in R0\mathbb{R}_{\ge 0}.

theorem

hours/seconds=3600\text{hours} / \text{seconds} = 3600

The ratio of the time unit of hours to the time unit of seconds is equal to the non-negative real number 36003600. That is, hoursseconds=3600\frac{\text{hours}}{\text{seconds}} = 3600 where hours\text{hours} and seconds\text{seconds} are elements of `TimeUnit` and the division operator returns their ratio in R0\mathbb{R}_{\ge 0}.

theorem

days/seconds=86,400\text{days} / \text{seconds} = 86,400

The ratio of the time unit of days to the time unit of seconds is equal to 86,40086,400 as a non-negative real number, i.e., days/seconds=86,400\text{days} / \text{seconds} = 86,400

theorem

weeks/seconds=604,800\text{weeks} / \text{seconds} = 604,800

The ratio of the time unit weeks\text{weeks} to the time unit seconds\text{seconds} is equal to 604,800604,800. That is, weeksseconds=604,800\frac{\text{weeks}}{\text{seconds}} = 604,800 where the division of these two time units results in a non-negative real number in R0\mathbb{R}_{\ge 0}.

theorem

days/minutes=1440\text{days} / \text{minutes} = 1440

The ratio of the time unit for days to the time unit for minutes is equal to the non-negative real number 14401440, expressed as days/minutes=1440R0\text{days} / \text{minutes} = 1440 \in \mathbb{R}_{\ge 0}.

theorem

weeks/minutes=10080\text{weeks} / \text{minutes} = 10080

The ratio of the time unit weeks\text{weeks} to the time unit minutes\text{minutes} is equal to the non-negative real number 1008010080: weeks/minutes=10080\text{weeks} / \text{minutes} = 10080 where the division of two time units results in a ratio in R0\mathbb{R}_{\ge 0}.

theorem

days/hours=24\text{days} / \text{hours} = 24

The ratio of the time unit `days` to the time unit `hours` is equal to the non-negative real number 2424.

theorem

weeks/hours=168\text{weeks} / \text{hours} = 168

The ratio of the time unit weeks\text{weeks} to the time unit hours\text{hours} is equal to the non-negative real number 168168.