PositiveRealUnitCore.instHDiv
instanceimported Lean
Division of two units of the same type is their nonnegative real ratio.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open PositiveRealUnitCore in open NNReal in variable {U : Type} [PositiveRealUnitCore U] in noncomputable instance (priority := 100) PositiveRealUnitCore.instHDiv : HDiv U U NNReal
- Defined in
- Physlib, `PositiveRealUnitCore.instHDiv`
- Lean proof
- By Joseph Tooby-Smith, Hirotaka Monya, 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.PositiveRealUnitCore.instHDiv← PositiveRealUnitCore.instHDiv (Physlib/Units/PositiveRealUnit.lean:62): verbatim
- Verified
- 09 Oct 2026
- Axioms
- none listed
- Built on 3
- PositiveRealUnitCore.val_ne_zeroPositiveRealUnitCore.val_ne_zero
- PositiveRealUnitCoreCommon representation API for unit types whose magnitude is a positive real.
- PositiveRealUnitCore.ratioThe ratio of the magnitudes of two units of the same type.
- Used by 23
- PositiveRealUnitCore.div_selfPositiveRealUnitCore.div_self
- PositiveRealUnitCore.div_mul_div_coePositiveRealUnitCore.div_mul_div_coe
- MassUnit.longTons_div_kilogramsMassUnit.longTons_div_kilograms
- TimeUnit.weeks_div_secondsTimeUnit.weeks_div_seconds
- TimeUnit.minutes_div_secondsTimeUnit.minutes_div_seconds
- PositiveRealUnitCore.scale_divRescaling a unit by the ratio to a target unit produces that target.
- TimeUnit.weeks_div_minutesTimeUnit.weeks_div_minutes
- TimeUnit.weeks_div_hoursTimeUnit.weeks_div_hours
- MassUnit.shortTons_div_kilogramsMassUnit.shortTons_div_kilograms
- MassUnit.pounds_div_ouncesMassUnit.pounds_div_ounces
- TimeUnit.days_div_minutesTimeUnit.days_div_minutes
- TimeUnit.days_div_hoursTimeUnit.days_div_hours
- PositiveRealUnitCore.scale_div_selfThe ratio of a rescaled unit to the original is the scaling factor.
- PositiveRealUnitCore.div_eq_valUnit division agrees with the ratio of the two magnitudes.
- TimeUnit.hours_div_secondsTimeUnit.hours_div_seconds
- TimeUnit.days_div_secondsTimeUnit.days_div_seconds
- LengthUnit.miles_div_yardsThere are exactly 1760 yards in a mile.
- PositiveRealUnitCore.div_ne_zeroPositiveRealUnitCore.div_ne_zero
- PositiveRealUnitCore.div_posPositiveRealUnitCore.div_pos
- LengthUnit.furlongs_div_yardsThere are exactly 220 yards in a furlong.
- 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.
- PositiveRealUnitCore.div_mul_divUnit ratios compose along an intermediate choice of unit.
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in open PositiveRealUnitCore in open NNReal in variable {U : Type} [PositiveRealUnitCore U] in /-- Division of two units of the same type is their nonnegative real ratio. -/ noncomputable instance (priority := 100) PositiveRealUnitCore.instHDiv : HDiv U U NNReal where hDiv := ratio