Physlib

Physlib.Units.Dimension

45 declarations

theorem

Extensionality of physical dimensions: d1=d2d_1 = d_2 if all base components are equal

#ext

For any two physical dimensions d1d_1 and d2d_2, if their base components for length, time, mass, charge, and temperature are respectively equal—that is, d1.length=d2.lengthd_1.\text{length} = d_2.\text{length}, d1.time=d2.timed_1.\text{time} = d_2.\text{time}, d1.mass=d2.massd_1.\text{mass} = d_2.\text{mass}, d1.charge=d2.charged_1.\text{charge} = d_2.\text{charge}, and d1.temperature=d2.temperatured_1.\text{temperature} = d_2.\text{temperature}—then the dimensions are equal, d1=d2d_1 = d_2.

instance

Multiplication of physical dimensions d1d2d_1 \cdot d_2

#instMul

For any two physical dimensions d1,d2Dimensiond_1, d_2 \in \text{Dimension}, their product d1d2d_1 \cdot d_2 is defined as the dimension whose base component exponents are the sums of the corresponding exponents in d1d_1 and d2d_2. Specifically: - (d1d2).length=d1.length+d2.length(d_1 \cdot d_2).\text{length} = d_1.\text{length} + d_2.\text{length} - (d1d2).time=d1.time+d2.time(d_1 \cdot d_2).\text{time} = d_1.\text{time} + d_2.\text{time} - (d1d2).mass=d1.mass+d2.mass(d_1 \cdot d_2).\text{mass} = d_1.\text{mass} + d_2.\text{mass} - (d1d2).charge=d1.charge+d2.charge(d_1 \cdot d_2).\text{charge} = d_1.\text{charge} + d_2.\text{charge} - (d1d2).temperature=d1.temperature+d2.temperature(d_1 \cdot d_2).\text{temperature} = d_1.\text{temperature} + d_2.\text{temperature}

theorem

(d1d2).time=d1.time+d2.time(d_1 \cdot d_2).\text{time} = d_1.\text{time} + d_2.\text{time}

#time_mul

For any two physical dimensions d1d_1 and d2d_2, the exponent of the time component in their product d1d2d_1 \cdot d_2 is equal to the sum of the time exponents of d1d_1 and d2d_2. That is, (d1d2).time=d1.time+d2.time(d_1 \cdot d_2).\text{time} = d_1.\text{time} + d_2.\text{time}.

theorem

(d1d2).length=d1.length+d2.length(d_1 \cdot d_2).\text{length} = d_1.\text{length} + d_2.\text{length}

#length_mul

For any two physical dimensions d1d_1 and d2d_2, the exponent of the length component in their product d1d2d_1 \cdot d_2 is equal to the sum of the length exponents of d1d_1 and d2d_2. That is, (d1d2).length=d1.length+d2.length(d_1 \cdot d_2).\text{length} = d_1.\text{length} + d_2.\text{length}.

theorem

(d1d2).mass=d1.mass+d2.mass(d_1 \cdot d_2).\text{mass} = d_1.\text{mass} + d_2.\text{mass}

#mass_mul

For any two physical dimensions d1d_1 and d2d_2, the exponent of the mass component in their product d1d2d_1 \cdot d_2 is equal to the sum of the mass exponents of d1d_1 and d2d_2. That is, (d1d2).mass=d1.mass+d2.mass(d_1 \cdot d_2).\text{mass} = d_1.\text{mass} + d_2.\text{mass}.

theorem

(d1d2).charge=d1.charge+d2.charge(d_1 \cdot d_2).\text{charge} = d_1.\text{charge} + d_2.\text{charge}

#charge_mul

For any two physical dimensions d1d_1 and d2d_2, the exponent of the charge component in their product d1d2d_1 \cdot d_2 is equal to the sum of the charge exponents of d1d_1 and d2d_2. That is, (d1d2).charge=d1.charge+d2.charge(d_1 \cdot d_2).\text{charge} = d_1.\text{charge} + d_2.\text{charge}.

theorem

(d1d2).temperature=d1.temperature+d2.temperature(d_1 \cdot d_2).\text{temperature} = d_1.\text{temperature} + d_2.\text{temperature}

#temperature_mul

For any two physical dimensions d1d_1 and d2d_2, the temperature component of their product d1d2d_1 \cdot d_2 is equal to the sum of the temperature components of d1d_1 and d2d_2. This is expressed as (d1d2).temperature=d1.temperature+d2.temperature(d_1 \cdot d_2).\text{temperature} = d_1.\text{temperature} + d_2.\text{temperature}.

instance

Dimensionless identity 11

#instOne

The multiplicative identity element 11 of the type `Dimension` is defined as the dimension where all five base components (exponents) are zero, representing a dimensionless quantity. Mathematically, it is given by the 5-tuple 0,0,0,0,0\langle 0, 0, 0, 0, 0 \rangle.

theorem

1.length=01.\text{length} = 0

#one_length

The length component of the dimensionless identity 11 in the type Dimension\text{Dimension} is 00, which is expressed as 1.length=01.\text{length} = 0.

theorem

1.time=01.\text{time} = 0

#one_time

The time component of the dimensionless identity 11 in the type Dimension\text{Dimension} is 00, which is expressed as 1.time=01.\text{time} = 0.

theorem

1.mass=01.\text{mass} = 0

#one_mass

The mass component of the dimensionless identity 1Dimension1 \in \text{Dimension} is equal to 00.

theorem

The charge component of 11 is 00

#one_charge

The charge component of the dimensionless identity 1Dimension1 \in \text{Dimension} is equal to 00.

theorem

The temperature component of 11 is 00

#one_temperature

The temperature component of the dimensionless identity 1Dimension1 \in \text{Dimension} is equal to 00.

instance

Dimension\text{Dimension} forms a commutative group

#instCommGroup

The type `Dimension` of physical dimensions forms a commutative group (abelian group) under the multiplication operation. In this group, the product of two dimensions corresponds to the component-wise addition of their base exponents (length, time, mass, charge, and temperature). The identity element 11 represents the dimensionless quantity where all base exponents are zero, and the inverse d1d^{-1} is obtained by negating each base exponent of the dimension dd.

theorem

The length component of d1d^{-1} is d.length-d.\text{length}

#inv_length

For any physical dimension dd, the length component of its inverse d1d^{-1} is equal to the negative of the length component of dd, that is, (d1).length=d.length(d^{-1}).\text{length} = -d.\text{length}.

theorem

The time component of d1d^{-1} is d.time-d.\text{time}

#inv_time

For any physical dimension dd, the time component (the exponent of the time base unit) of its group inverse d1d^{-1} is equal to the negation of the time component of dd. This is expressed as: (d1).time=d.time(d^{-1}).\text{time} = -d.\text{time} where the inverse d1d^{-1} is the element in the commutative group of dimensions such that dd1=1d \cdot d^{-1} = 1.

theorem

(d1).mass=d.mass(d^{-1}).\text{mass} = -d.\text{mass}

#inv_mass

For any physical dimension dd, the mass exponent of its inverse dimension d1d^{-1} is equal to the negation of the mass exponent of dd, i.e., (d1).mass=(d.mass)(d^{-1}).\text{mass} = -(d.\text{mass}).

theorem

(d1).charge=(d.charge)(d^{-1}).\text{charge} = -(d.\text{charge})

#inv_charge

For any physical dimension dd, the charge component of its inverse d1d^{-1} is equal to the negative of its charge component, i.e., (d1).charge=(d.charge)(d^{-1}).\text{charge} = -(d.\text{charge}).

theorem

(d1).temperature=d.temperature(d^{-1}).\text{temperature} = -d.\text{temperature}

#inv_temperature

For any physical dimension dd, the temperature component of its inverse d1d^{-1} is equal to the negative of the temperature component of dd, expressed as (d1).temperature=d.temperature(d^{-1}).\text{temperature} = -d.\text{temperature}.

theorem

(d1/d2).length=d1.lengthd2.length(d_1 / d_2).\text{length} = d_1.\text{length} - d_2.\text{length}

#div_length

For any two physical dimensions d1d_1 and d2d_2, the exponent of the length component in their quotient d1/d2d_1 / d_2 is equal to the difference between the length exponents of d1d_1 and d2d_2. That is, (d1/d2).length=d1.lengthd2.length(d_1 / d_2).\text{length} = d_1.\text{length} - d_2.\text{length}.

theorem

(d1/d2).time=d1.timed2.time(d_1 / d_2).\text{time} = d_1.\text{time} - d_2.\text{time}

#div_time

For any two physical dimensions d1d_1 and d2d_2, the time component (the exponent of the time base unit) of their quotient d1/d2d_1 / d_2 is equal to the difference between the time components of d1d_1 and d2d_2. This is expressed as: (d1/d2).time=d1.timed2.time(d_1 / d_2).\text{time} = d_1.\text{time} - d_2.\text{time}

theorem

(d1/d2).mass=d1.massd2.mass(d_1 / d_2).\text{mass} = d_1.\text{mass} - d_2.\text{mass}

#div_mass

For any two physical dimensions d1d_1 and d2d_2, the mass exponent of the quotient d1/d2d_1 / d_2 is equal to the difference between the mass exponent of d1d_1 and the mass exponent of d2d_2, i.e., (d1/d2).mass=d1.massd2.mass(d_1 / d_2).\text{mass} = d_1.\text{mass} - d_2.\text{mass}.

theorem

(d1/d2).charge=d1.charged2.charge(d_1 / d_2).\text{charge} = d_1.\text{charge} - d_2.\text{charge}

#div_charge

For any two physical dimensions d1d_1 and d2d_2, the charge component of their quotient d1/d2d_1 / d_2 is equal to the difference of the charge components of d1d_1 and d2d_2. That is, (d1/d2).charge=d1.charged2.charge(d_1 / d_2).\text{charge} = d_1.\text{charge} - d_2.\text{charge}.

theorem

(d1/d2).temperature=d1.temperatured2.temperature(d_1 / d_2).\text{temperature} = d_1.\text{temperature} - d_2.\text{temperature}

#div_temperature

For any two physical dimensions d1,d2Dimensiond_1, d_2 \in \text{Dimension}, the temperature component of their quotient d1/d2d_1 / d_2 is equal to the difference between the temperature component of d1d_1 and the temperature component of d2d_2. That is, (d1/d2).temperature=d1.temperatured2.temperature(d_1 / d_2).\text{temperature} = d_1.\text{temperature} - d_2.\text{temperature}.

theorem

(dn).length=nd.length(d^n).\text{length} = n \cdot d.\text{length}

#npow_length

For any physical dimension dd and any natural number nn, the length component of the nn-th power of the dimension dd is equal to nn times the length component of dd. That is, (dn).length=nd.length(d^n).\text{length} = n \cdot d.\text{length}.

theorem

(dn).time=nd.time(d^n).\text{time} = n \cdot d.\text{time}

#npow_time

For any physical dimension dd and any natural number nn, the time component (exponent) of the dimension dnd^n is equal to nn times the time component of dd. That is, (dn)time=ndtime(d^n)_{\text{time}} = n \cdot d_{\text{time}}.

theorem

mass(dn)=nmass(d)\text{mass}(d^n) = n \cdot \text{mass}(d)

#npow_mass

For any physical dimension dd and any natural number nn, the mass component of the dimension dnd^n is equal to nn times the mass component of dd. Mathematically, this is expressed as: (dn)mass=ndmass(d^n)_{\text{mass}} = n \cdot d_{\text{mass}} where dnd^n denotes the nn-th power of the dimension in the commutative group of dimensions, and the mass component represents the exponent of the base mass dimension.

theorem

(dn).charge=nd.charge(d^n).\text{charge} = n \cdot d.\text{charge}

#npow_charge

For any physical dimension dd and any natural number nn, the charge component of the dimension dnd^n is equal to nn times the charge component of dd. Here, the charge component represents the exponent of the base charge dimension.

theorem

(dn)temp=ndtemp(d^n)_{\text{temp}} = n \cdot d_{\text{temp}} for nNn \in \mathbb{N}

#npow_temperature

For any physical dimension dd and any natural number nn, the temperature component of the dimension dnd^n is equal to nn times the temperature component of dd, which can be expressed as (dn)temp=ndtemp(d^n)_{\text{temp}} = n \cdot d_{\text{temp}}.

instance

Rational power of a dimension dnd^n for nQn \in \mathbb{Q}

#instPowRat

For a physical dimension dd and a rational number nQn \in \mathbb{Q}, the power operation dnd^n is defined as the dimension whose fundamental components—length, time, mass, charge, and temperature—are obtained by multiplying the corresponding components of dd by nn.

definition

Dimension of length LdL_{\mathfrak{d}}

#L𝓭

The constant LdL_{\mathfrak{d}} represents the physical dimension of length. In the representation of dimensions as a vector of exponents for base quantities, it corresponds to the tuple (1,0,0,0,0)(1, 0, 0, 0, 0), where the component for length is 11 and all other base dimensions (such as time, mass, etc.) are 00.

theorem

The length component of LdL_{\mathfrak{d}} is 11

#L𝓭_length

The length component of the physical dimension of length LdL_{\mathfrak{d}} is equal to 11.

theorem

Time component of LdL_{\mathfrak{d}} is 00

#L𝓭_time

The time component of the dimension of length LdL_{\mathfrak{d}} is equal to 00.

theorem

The mass component of LdL_{\mathfrak{d}} is 00

#L𝓭_mass

The mass component of the physical dimension of length LdL_{\mathfrak{d}} is equal to 00.

theorem

The charge component of LdL_{\mathfrak{d}} is 00

#L𝓭_charge

The charge component of the physical dimension of length LdL_{\mathfrak{d}} is equal to 00.

theorem

The temperature component of LdL_{\mathfrak{d}} is 00

#L𝓭_temperature

The temperature component of the physical dimension of length LdL_{\mathfrak{d}} is 00.

definition

Dimension of time

#T𝓭

The base physical dimension for time, typically denoted as [T][T] or TT. In the vector representation of physical dimensions, it corresponds to an exponent of 11 for the time component and 00 for all other base dimensions (such as length, mass, electric current, and temperature).

theorem

The length component of TdT_{\mathfrak{d}} is 00

#T𝓭_length

The length component of the physical dimension of time, denoted as TdT_{\mathfrak{d}}, is 00.

theorem

The time component of TdT_{\mathfrak{d}} is 11

#T𝓭_time

For the base physical dimension of time, denoted as TdT_{\mathfrak{d}}, the time component (or exponent) is 11.

theorem

The mass component of the dimension of time is 00

#T𝓭_mass

For the base physical dimension of time, denoted as TT, the mass component (or mass exponent) is 00.

theorem

The charge component of the dimension of time is 00

#T𝓭_charge

For the base physical dimension of time, denoted as TT, the electric charge component (or exponent) is 00.

theorem

The temperature component of the dimension of time is 00

#T𝓭_temperature

For the base physical dimension of time, denoted as TT, the temperature component (or temperature exponent) is 00.

definition

Dimension of mass (M\mathsf{M})

#M𝓭

The constant `Dimension.M𝓭` represents the base physical dimension of mass, denoted as M\mathsf{M}. In the system of base dimensions, it is defined by the vector 0,0,1,0,0\langle 0, 0, 1, 0, 0 \rangle, where the third component corresponds to the exponent of the mass dimension and all other base dimensions (such as length, time, electric charge, and temperature) are zero.

definition

Dimension of electric charge (Q\mathsf{Q})

#C𝓭

The constant `Dimension.C𝓭` represents the base physical dimension of electric charge, denoted as Q\mathsf{Q}. In the system of base dimensions, it is defined by the vector 0,0,0,1,0\langle 0, 0, 0, 1, 0 \rangle, where the fourth component corresponds to the exponent of the charge dimension and all other base dimensions (such as length, mass, and time) are zero.

definition

Dimension of temperature Θ\Theta

#Θ𝓭

The constant Θd\Theta_d represents the base physical dimension of thermodynamic temperature. In the representation of dimensions as a vector of exponents, it corresponds to the vector 0,0,0,0,1\langle 0, 0, 0, 0, 1 \rangle, where the fifth component (temperature) is unit and all other base dimensions are zero.