instPositiveRealUnitCoreTimeUnit
instanceimported Lean
instPositiveRealUnitCoreTimeUnit
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open NNReal in instance instPositiveRealUnitCoreTimeUnit : PositiveRealUnitCore TimeUnit
- Defined in
- Physlib, `instPositiveRealUnitCoreTimeUnit`
- 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.instPositiveRealUnitCoreTimeUnit← @Physlib/SpaceAndTime/Time/TimeUnit.lean:41 (Physlib/SpaceAndTime/Time/TimeUnit.lean:41): 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.
- TimeUnitThe choices of translationally-invariant metrics on the time manifold. Such a choice corresponds to a choice of units for time.
- 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 21
- TimeUnit.daysThe time unit of 24 hour days.
- TimeUnit.picosecondsThe time unit of picoseconds (10⁻¹² of a second).
- TimeUnit.weeks_div_secondsTimeUnit.weeks_div_seconds
- TimeUnit.minutes_div_secondsTimeUnit.minutes_div_seconds
- TimeUnit.femtosecondsThe time unit of femtoseconds (10⁻¹⁵ of a second).
- TimeUnit.weeks_div_minutesTimeUnit.weeks_div_minutes
- TimeUnit.weeks_div_hoursTimeUnit.weeks_div_hours
- TimeUnit.millisecondsThe time unit of milliseconds (10⁻³ of a second).
- TimeUnit.days_div_minutesTimeUnit.days_div_minutes
- TimeUnit.days_div_hoursTimeUnit.days_div_hours
- TimeUnit.microsecondsThe time unit of microseconds (10⁻⁶ of a second).
- TimeUnit.secondsThe definition of a time unit of seconds.
- TimeUnit.weeksThe time unit of 7 day weeks.
- TimeUnit.hours_div_secondsTimeUnit.hours_div_seconds
- TimeUnit.centisecondsThe time unit of centiseconds (10⁻² of a second).
- TimeUnit.days_div_secondsTimeUnit.days_div_seconds
- TimeUnit.hoursThe time unit of hours.
- TimeUnit.decisecondsThe time unit of deciseconds (10⁻¹ of a second).
- TimeUnit.minutesThe time unit of minutes.
- LTMCTUnitChoicesThe choice of units.
- TimeUnit.nanosecondsThe time unit of nanoseconds (10⁻⁹ of a second).
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in open NNReal in instance instPositiveRealUnitCoreTimeUnit : PositiveRealUnitCore TimeUnit where val := TimeUnit.val pos := TimeUnit.property ofVal := fun r hr => ⟨r, hr⟩ val_ofVal := by intros; rfl ofVal_val := by intro x; cases x; rfl