LengthUnit.miles_div_yards
theoremverifiedformalizationimported Lean
There are exactly 1760 yards in a mile.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open NNReal in open PositiveRealUnitCore in lemma LengthUnit.miles_div_yards : miles / yards = (⟨1760, by norm_num⟩ : ℝ≥0)
- Formalizes
- Physlib, `LengthUnit.miles_div_yards`
- 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.LengthUnit.miles_div_yards← LengthUnit.miles_div_yards (Physlib/SpaceAndTime/Space/LengthUnit.lean:153): verbatim
- Verified
- 10 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 20
- instPositiveRealUnitCoreLengthUnitinstPositiveRealUnitCoreLengthUnit
- 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.instHDivDivision of two units of the same type is their nonnegative real ratio.
- LengthUnit.metersThe definition of a length unit of meters.
- PositiveRealUnitCore.val_ne_zeroPositiveRealUnitCore.val_ne_zero
- PositiveRealUnitCore.scale_divRescaling a unit by the ratio to a target unit produces that target.
- PositiveRealUnitCore.scaleRescale a unit by a strictly positive real factor.
- 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.
- LengthUnit.milesThe length unit of a mile (1609.344 meters).
- 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.
- LengthUnit.yardsThe length unit of a yard (0.9144 meters)
- PositiveRealUnitCore.scale_div_scaleRescaling two units multiplies their ratio by the ratio of the factors.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option autoImplicit true inset_option relaxedAutoImplicit true inopen NNReal inopen PositiveRealUnitCore in/-- There are exactly 1760 yards in a mile. -/lemma LengthUnit.miles_div_yards : miles / yards = (⟨1760, by norm_num⟩ : ℝ≥0) := NNReal.eq <| by simp [miles, yards] show (1609.344 : ℝ) / 0.9144 = ((⟨1760, by norm_num⟩ : ℝ≥0) : ℝ) push_cast norm_num