Documentation

Mathlib.NumberTheory.Zsqrtd.ToReal

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 * d
noncomputable def Zsqrtd.toReal {d : } (h : 0 d) :

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
Instances For
    theorem Zsqrtd.toReal_injective {d : } (h0d : 0 d) (hd : ∀ (n : ), d n * n) :