instPositiveRealUnitCoreMassUnit
instanceimported Lean
instPositiveRealUnitCoreMassUnit
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open NNReal in instance instPositiveRealUnitCoreMassUnit : PositiveRealUnitCore MassUnit
- Defined in
- Physlib, `instPositiveRealUnitCoreMassUnit`
- Lean proof
- By Joseph Tooby-Smith, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2025 Joseph Tooby-Smith. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.instPositiveRealUnitCoreMassUnit← @Physlib/ClassicalMechanics/Mass/MassUnit.lean:43 (Physlib/ClassicalMechanics/Mass/MassUnit.lean:43): verbatim
- Verified
- 09 Oct 2026
- Axioms
- none listed
- Built on 14
- PositiveRealUnitCore.scale_onePositiveRealUnitCore.scale_one
- PositiveRealUnitCore.scale_scaleSuccessive rescalings compose by multiplication of their factors.
- PositiveRealUnitCore.div_selfPositiveRealUnitCore.div_self
- PositiveRealUnitCore.div_mul_div_coePositiveRealUnitCore.div_mul_div_coe
- PositiveRealUnitCore.scale_valPositiveRealUnitCore.scale_val
- PositiveRealUnitCore.val_ne_zeroPositiveRealUnitCore.val_ne_zero
- PositiveRealUnitCore.scale_divRescaling a unit by the ratio to a target unit produces that target.
- PositiveRealUnitCore.scale_div_selfThe ratio of a rescaled unit to the original is the scaling factor.
- PositiveRealUnitCoreCommon representation API for unit types whose magnitude is a positive real.
- PositiveRealUnitCore.div_ne_zeroPositiveRealUnitCore.div_ne_zero
- PositiveRealUnitCore.div_posPositiveRealUnitCore.div_pos
- PositiveRealUnitCore.self_div_scaleThe reverse ratio is the reciprocal of the scaling factor.
- PositiveRealUnitCore.scale_div_scaleRescaling two units multiplies their ratio by the ratio of the factors.
- MassUnitThe choices of translationally-invariant metrics on the mass-manifold. Such a choice corresponds to a choice of units for mass.
- Used by 17
- MassUnit.quartersThe mass unit of a quarter (28 pounds).
- MassUnit.kilogramsThe definition of a mass unit of kilograms.
- MassUnit.ouncesThe mass unit of (avoirdupois) ounces (0.028 349 523 125 of a kilogram).
- MassUnit.gramsThe mass unit of grams (10^(-3) of a kilogram).
- MassUnit.longTons_div_kilogramsMassUnit.longTons_div_kilograms
- MassUnit.milligramsThe mass unit of milligram (10^(-6) of a kilogram).
- MassUnit.microgramsThe mass unit of a microgram (10^(-9) of a kilogram).
- MassUnit.longTonsThe mass unit of long tons (2240 pounds). Also called shortweight tons.
- MassUnit.shortTons_div_kilogramsMassUnit.shortTons_div_kilograms
- MassUnit.metricTonsThe mass unit of metric tons (1000 kilograms).
- MassUnit.pounds_div_ouncesMassUnit.pounds_div_ounces
- MassUnit.nominalSolarMassesThe mass unit of nominal solar masses (1.988416 × 10 ^ 30 kilograms). See: https://iopscience.iop.org/article/10.3847/0004-6256/152/2/41…
- MassUnit.hundredweightsThe mass unit of hundredweights (112 pounds).
- MassUnit.stonesThe mass unit of stones (14 pounds).
- LTMCTUnitChoicesThe choice of units.
- MassUnit.shortTonsThe mass unit of short tons (2000 pounds).
- MassUnit.poundsThe mass unit of (avoirdupois) pounds (0.453 592 37 of a kilogram).
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in open NNReal in instance instPositiveRealUnitCoreMassUnit : PositiveRealUnitCore MassUnit where val := MassUnit.val pos := MassUnit.property ofVal := fun r hr => ⟨r, hr⟩ val_ofVal := by intros; rfl ofVal_val := by intro x; cases x; rfl