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 / V06. Rings, fields and ordered algebra

Mathlib.Algebra.Ring.Semireal.Defs

9 declarations. Mathlib docs · Source

Semireal rings

A semireal ring is a commutative ring (with unit) in which -1 is not a sum of squares.

For instance, linearly ordered rings are semireal, because sums of squares are positive and -1 is not.

Main declaration

  • IsSemireal: the predicate asserting that a commutative ring R is semireal.

References

  • An introduction to real algebra, by T.Y. Lam. Rocky Mountain J. Math. 14(4): 767-814 (1984). lam_1984

class IsSemireal E3 #

(R : Type u_1) → [Add R] → [Mul R] → [One R] → [Zero R] → Prop

A semireal ring is a commutative ring (with unit) in which -1 is not a sum of squares. We define the predicate IsSemireal R for structures R equipped with a multiplication, an addition, a multiplicative unit and an additive unit.

theorem isSemireal_iff E0 #

∀ (R : Type u_1) [inst : Add R] [inst_1 : Mul R] [inst_2 : One R] [inst_3 : Zero R],
  IsSemireal R ↔ ∀ {s : R}, IsSumSq s → 1 + s ≠ 0

ctor IsSemireal.mk E0 #

∀ {R : Type u_1} [inst : Add R] [inst_1 : Mul R] [inst_2 : One R] [inst_3 : Zero R],
  (∀ {s : R}, IsSumSq s → 1 + s ≠ 0) → IsSemireal R

theorem IsSemireal.one_add_ne_zero E1 #

∀ {R : Type u_1} {inst : Add R} {inst_1 : Mul R} {inst_2 : One R} {inst_3 : Zero R} [self : IsSemireal R] {s : R},
  IsSumSq s → 1 + s ≠ 0

theorem IsSemireal.not_isSumSq_neg_one E1 #

∀ (R : Type u_1) [inst : AddGroup R] [inst_1 : One R] [inst_2 : Mul R] [IsSemireal R], ¬IsSumSq (-1)

In a semireal ring, -1 is not a sum of squares.

theorem isSemireal_iff_not_isSumSq_neg_one E1 #

∀ {R : Type u_1} [inst : AddGroup R] [inst_1 : One R] [inst_2 : Mul R], IsSemireal R ↔ ¬IsSumSq (-1)

theorem IsSemireal.of_not_isSumSq_neg_one E1 #

∀ {R : Type u_1} [inst : AddGroup R] [inst_1 : One R] [inst_2 : Mul R], ¬IsSumSq (-1) → IsSemireal R

Alias of the reverse direction of isSemireal_iff_not_isSumSq_neg_one.

instance instIsSemirealOfIsStrictOrderedRingOfExistsAddOfLE E0 #

∀ (R : Type u_1) [inst : Semiring R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] [ExistsAddOfLE R], IsSemireal R

Linearly ordered semirings with the property a ≤ b → ∃ c, a + c = b (e.g. ℕ) are semireal.

instance instCharZeroOfIsSemireal E0 #

∀ (R : Type u_1) [inst : NonAssocRing R] [IsSemireal R], CharZero R