ℤ[√d] #
The ring of integers adjoined with a square root of d : ℤ.
After defining the norm, we show that it is a linearly ordered commutative ring, as well as an integral domain.
We provide the universal property, that ring homomorphisms ℤ√d →+* R correspond
to choices of square roots of d in R.
Equations
- instDecidableEqZsqrtd = decEqZsqrtd✝
Equations
- «termℤ√_» = Lean.ParserDescr.node `termℤ√_ 100 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "ℤ√") (Lean.ParserDescr.cat `term 100))
Instances For
The zero of the ring
Equations
- Zsqrtd.instZero = { zero := Zsqrtd.ofInt 0 }
The one of the ring
Equations
- Zsqrtd.instOne = { one := Zsqrtd.ofInt 1 }
Equations
- Zsqrtd.addCommGroup = AddCommGroup.mk ⋯
Equations
- Zsqrtd.addGroupWithOne = let __src := Zsqrtd.addCommGroup; AddGroupWithOne.mk ⋯ SubNegMonoid.zsmul ⋯ ⋯ ⋯ ⋯ ⋯ ⋯
Equations
- Zsqrtd.commRing = let __src := Zsqrtd.addGroupWithOne; CommRing.mk ⋯
Equations
- Zsqrtd.instCommMonoid = inferInstance
Equations
- Zsqrtd.instCommSemigroup = inferInstance
Equations
- Zsqrtd.instAddCommSemigroup = inferInstance
Equations
- Zsqrtd.instAddSemigroup = inferInstance
Equations
- Zsqrtd.instCommSemiring = inferInstance
Equations
- Zsqrtd.instStarRing = StarRing.mk ⋯
Alias of Zsqrtd.natCast_re.
Alias of Zsqrtd.natCast_im.
Alias of Zsqrtd.natCast_val.
Alias of Zsqrtd.intCast_re.
Alias of Zsqrtd.intCast_im.
Alias of Zsqrtd.intCast_val.
Alias of Zsqrtd.ofInt_eq_intCast.
Alias of Int.cast_add.
Alias of Int.cast_sub.
Alias of Int.cast_mul.
Alias of Int.cast_inj.
Alias of Zsqrtd.intCast_dvd_intCast.
Alias of Zsqrtd.norm_intCast.
Alias of Zsqrtd.norm_natCast.
Nonnegativity of an element of ℤ√d.
Equations
- x.Nonneg = match x with | { re := a, im := b } => Zsqrtd.Nonnegg d 1 a b
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- x.decidableNonneg = match x with | { re := re, im := im } => Zsqrtd.decidableNonnegg d 1 re im
Equations
- Zsqrtd.linearOrder = let __src := Zsqrtd.preorder; LinearOrder.mk ⋯ Zsqrtd.decidableLE decidableEqOfDecidableLE decidableLTOfDecidableLE ⋯ ⋯ ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- Zsqrtd.instLinearOrderedCommRingCastInt = let __src := Zsqrtd.commRing; let __src_1 := Zsqrtd.linearOrder; let __src_2 := ⋯; LinearOrderedCommRing.mk ⋯
Equations
- Zsqrtd.instLinearOrderedRingCastInt = inferInstance
Equations
- Zsqrtd.instOrderedRingCastInt = inferInstance
The unique RingHom from ℤ√d to a ring R, constructed by replacing √d with the provided
root. Conversely, this associates to every mapping ℤ√d →+* R a value of √d in R.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The kernel of the norm map on ℤ√d equals the submonoid of unitary elements.