Docs / Semantics / Quantity / Dimension

Dimensions of quantities

import Linglib.Semantics.Quantity.Dimension

The dimension of a quantity is a product of integer powers of the dimensions of the seven base quantities of the SI, T^α L^β M^γ I^δ Θ^ε N^ζ J^η, so that dimensions form the free abelian group on the base quantities, written multiplicatively. Volume is L³, density M L⁻³, and a number of entities or a ratio of two quantities of one kind has dimension 1.

Implementation notes

The group is the exponent vectors Multiplicative (BaseQuantity → ℤ) rather than mathlib's FreeAbelianGroup BaseQuantity, which has no decidable equality, so that whether two dimensions agree is decided by computing their exponents.

References

Declarations

L40–42
L68–69
L71–72
L74–75
L77
L91