The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V12. Number theory

Mathlib.NumberTheory.Zsqrtd.ToReal

3 declarations. Mathlib docs · Source

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.

def Zsqrtd.toReal E1 #

{d : ℤ} → 0 ≤ d → ℤ√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).

theorem Zsqrtd.toReal_apply E0 #

∀ {d : ℤ} (h : 0 ≤ d) (a : ℤ√d), (Zsqrtd.toReal h) a = ↑a.re + ↑a.im * √↑d

theorem Zsqrtd.toReal_injective E1 #

∀ {d : ℤ} (h0d : 0 ≤ d), (∀ (n : ℤ), d ≠ n * n) → Function.Injective ⇑(Zsqrtd.toReal h0d)