Image of Zsqrtd in ℝ #
This file defines Zsqrtd.toReal and related lemmas.
It is in a separate file to avoid pulling in all of Data.Real into Data.Zsqrtd.
The image of Zsqrtd in ℝ, using Real.sqrt which takes the positive root of d.
If the negative root is desired, use toReal h (star a).
Equations
- Zsqrtd.toReal h = Zsqrtd.lift ⟨√↑d, ⋯⟩
Instances For
theorem
Zsqrtd.toReal_injective
{d : ℤ}
(h0d : 0 ≤ d)
(hd : ∀ (n : ℤ), d ≠ n * n)
:
Function.Injective ⇑(toReal h0d)