instPositiveRealUnitCoreLengthUnit
instanceimported Lean
instPositiveRealUnitCoreLengthUnit
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in instance instPositiveRealUnitCoreLengthUnit : PositiveRealUnitCore LengthUnit
- Defined in
- Physlib, `instPositiveRealUnitCoreLengthUnit`
- 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.instPositiveRealUnitCoreLengthUnit← @Physlib/SpaceAndTime/Space/LengthUnit.lean:47 (Physlib/SpaceAndTime/Space/LengthUnit.lean:47): 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.
- LengthUnitThe choices of translationally-invariant metrics on the space-manifold. Such a choice corresponds to a choice of units for length.
- 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.
- Used by 23
- LengthUnit.parsecsThe length unit of a parsec (648,000/π astronomicalUnits).
- LengthUnit.feetThe length unit of feet (0.3048 meters)
- LengthUnit.centimetersThe length unit of centimeters (10⁻² of a meter).
- LengthUnit.nauticalMilesThe length unit of a nautical mile (1852 meters).
- LengthUnit.furlongsThe length unit of a furlong (201.168 meters)
- LengthUnit.kilometersThe length unit of kilometers (10³ meters).
- LengthUnit.millimetersThe length unit of millimeters (10⁻³ of a meter).
- LengthUnit.lightYearsThe length unit of a light year (9,460,730,472,580,800 meters).
- LengthUnit.metersThe definition of a length unit of meters.
- LengthUnit.micrometersThe length unit of micrometers (10⁻⁶ of a meter).
- LengthUnit.nanometersThe length unit of nanometers (10⁻⁹ of a meter).
- LengthUnit.linksThe length unit of link (0.201168 meters).
- LengthUnit.inchesThe length unit of inch (0.0254 meters).
- LengthUnit.astronomicalUnitsThe length unit of an astronomical unit (149,597,870,700 meters).
- LengthUnit.milesThe length unit of a mile (1609.344 meters).
- LengthUnit.chainsThe length unit of a chain (20.1168 meters)
- LengthUnit.femtometersThe length unit of femtometers (10⁻¹⁵ of a meter).
- LengthUnit.miles_div_yardsThere are exactly 1760 yards in a mile.
- LengthUnit.rodsThe length unit of a rod (5.0292 meters)
- LengthUnit.furlongs_div_yardsThere are exactly 220 yards in a furlong.
- LTMCTUnitChoicesThe choice of units.
- LengthUnit.yardsThe length unit of a yard (0.9144 meters)
- LengthUnit.picometersThe length unit of picometers (10⁻¹² of a meter).
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in instance instPositiveRealUnitCoreLengthUnit : PositiveRealUnitCore LengthUnit where val := LengthUnit.val pos := LengthUnit.property ofVal := fun r hr => ⟨r, hr⟩ val_ofVal := by intros; rfl ofVal_val := by intro x; cases x; rfl