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
.
@[simp]
theorem
Zsqrtd.toReal_apply
{d : ℤ}
(h : 0 ≤ d)
(a : ℤ√d)
:
(Zsqrtd.toReal h) a = ↑a.re + ↑a.im * Real.sqrt ↑d
theorem
Zsqrtd.toReal_injective
{d : ℤ}
(h0d : 0 ≤ d)
(hd : ∀ (n : ℤ), d ≠ n * n)
:
Function.Injective ⇑(Zsqrtd.toReal h0d)