A quantity, a magnitude in K with a dimension. Quantities multiply and divide
componentwise.
- Quantity K = (K × QuantityDimension)
Used by Quantity.pure, Quantity.isUnit_iff
Used in Fragments/English/MeasurePhrases, BaleSchwarz2022, BaleSchwarz2026
A quantity is a magnitude together with a dimension: 0.9 g is a magnitude in the dimension of
mass, 0.9 g/mL one in the dimension of density, and 9 is a pure number, a magnitude in the
identity dimension. Quantities are pairs of a magnitude and a QuantityDimension that multiply and
divide componentwise, the calculus measure-phrase semantics computes in, so that dividing two
quantities of one dimension yields a pure number. A quantity is invertible exactly when its
magnitude is nonzero, so the division lemmas of mathlib's IsUnit API
apply.
A quantity, a magnitude in K with a dimension. Quantities multiply and divide
componentwise.
Used by Quantity.pure, Quantity.isUnit_iff
Used in Fragments/English/MeasurePhrases, BaleSchwarz2022, BaleSchwarz2026
The pure number n, a quantity (n, 1) of the identity dimension.
Built from
Used by Quantity.pure_fst, Quantity.pure_snd
Used in Fragments/English/MeasurePhrases, BaleSchwarz2022, BaleSchwarz2026
A quantity is invertible exactly when its magnitude is, since every dimension is.
Built from