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.

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