FormalConjecturesForMathlib/Data/Real/NearestInt.lean

GitHub source file

Explanation legend Lean4 Domain Explanation Language (L4DEL)

L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.

L4DEL
Lean4 Domain Explanation Language

Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.

Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1

2 declarations, 0 contain sorry, 0 declared as axioms

Imports (2)
Imported by 1 file
  1. def distToNearestInt The distance from a real number to the nearest integer line 25 source

    Source documentation

    The distance from a real number to the nearest integer.

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Real

    Proof uses: abs, HSub.hSub, round

    9 instances, coercions and auxiliary constants left out.

    noncomputable def distToNearestInt (x : ℝ) : ℝ := |x - round x|
    …
  2. theorem distToNearestInt_nonneg The distance to the nearest integer is nonnegative line 29 source

    Source documentation

    The distance to the nearest integer is nonnegative.

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Real, LE.le, OfNat.ofNat, distToNearestInt

    Proof uses: abs_nonneg, HSub.hSub, round

    22 instances, coercions and auxiliary constants left out.

    theorem distToNearestInt_nonneg (x : ℝ) : 0 ≤ distToNearestInt x := abs_nonneg _

    Mentions: distToNearestInt