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
The value of a time unit is non-zero ()
For any time unit , its associated real value is not equal to zero.
The value of a time unit is strictly positive ()
For any time unit , its underlying real value is strictly greater than zero, i.e., .
Default time unit of
The type of time units, (representing the set of positive real numbers), is provided with a default inhabitant defined as .
Ratio of time units
For any two time units , their ratio is defined as the quotient of their underlying positive real values , resulting in a non-negative real number in .
for time units
For any two time units , the quotient is equal to the ratio of their underlying numerical values , represented as a non-negative real number in .
for time units
For any two time units , their ratio is not equal to zero in the non-negative real numbers .
for time units
For any two time units , their ratio is strictly greater than zero in the non-negative real numbers .
for time units
For any time unit , the ratio of to itself is equal to 1, where the ratio is considered as a non-negative real number ().
for time units
For any two time units , the ratio is equal to the reciprocal of the ratio . That is, where the division of two time units results in a non-negative real number in .
for time units
For any three time units , the product of the ratio of to and the ratio of to is equal to the ratio of to . That is, , where the ratios are treated as real numbers.
for time units
For any time unit and any positive real number , the ratio of the scaled time unit to the original time unit is equal to . That is, where the division of two time units results in a non-negative real number in .
for time units
For any time unit , scaling by a factor of results in the same time unit . That is, .
Ratio of scaled time units
For any two time units and and any two positive real numbers , the ratio of the scaled time units and is equal to the product of the ratio of the scaling factors and the ratio of the original units : where the division of two time units results in a non-negative real number.
for time units
For any time unit and any positive real number , the ratio of the original unit to the unit scaled by (denoted ) is equal to the reciprocal of the scaling factor, . Mathematically, this is expressed as: where the ratio of two time units is a non-negative real number in .
for time units
For any time unit and any two positive real numbers , scaling the unit by and then scaling the resulting unit by is equivalent to scaling the original unit by the product : where denotes the time unit obtained by scaling by a factor .
The time unit of seconds
The constant `seconds` is defined as a specific unit of time in the type `TimeUnit`, corresponding to the value in the set of positive real numbers .
The time unit of femtoseconds ( s)
The constant `femtoseconds` is a unit of time defined by scaling the base unit `seconds` by a factor of , corresponding to the value of in the set of positive real numbers representing the time unit.
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 .
The time unit of nanoseconds ( s)
The constant `nanoseconds` is a unit of time defined as the result of scaling the base unit `seconds` by a factor of , corresponding to the value of in the set of positive real numbers representing the time unit.
The time unit of microseconds ( 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 .
The time unit of milliseconds ( s)
The constant `milliseconds` is a unit of time defined as the result of scaling the base unit `seconds` by a factor of , which corresponds to seconds.
The time unit of centiseconds ( s)
The constant `centiseconds` is a unit of time defined as the result of scaling the base unit `seconds` by a factor of , which corresponds to seconds.
The time unit of deciseconds ( s)
The constant `deciseconds` is a unit of time defined as the result of scaling the base unit `seconds` by a factor of , which corresponds to seconds.
The time unit of minutes ( s)
The constant `minutes` is a unit of time defined as the result of scaling the base unit `seconds` by a factor of .
The time unit of hours ( 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 , which represents seconds.
The time unit of days ( 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 . It represents the duration of a standard 24-hour day.
The time unit of weeks
The time unit is defined by scaling the unit by a factor of .
The ratio of the time unit to the time unit is equal to the non-negative real number . That is, where the division of two time units results in a value in .
The ratio of the time unit of hours to the time unit of seconds is equal to the non-negative real number . That is, where and are elements of `TimeUnit` and the division operator returns their ratio in .
The ratio of the time unit of days to the time unit of seconds is equal to as a non-negative real number, i.e.,
The ratio of the time unit to the time unit is equal to . That is, where the division of these two time units results in a non-negative real number in .
The ratio of the time unit for days to the time unit for minutes is equal to the non-negative real number , expressed as .
The ratio of the time unit to the time unit is equal to the non-negative real number : where the division of two time units results in a ratio in .
The ratio of the time unit `days` to the time unit `hours` is equal to the non-negative real number .
The ratio of the time unit to the time unit is equal to the non-negative real number .
