Documentation

TauCeti.FieldTheory.SquareClassGroup.Real

Square classes of real numbers #

A nonzero real number is a square exactly when it is positive, so the square-class group of ℝ has two elements: the trivial class and the class of -1. This file records that description in the form used to read signs off square-class invariants such as the discriminant of a quadratic form.

Main results #

@[simp]
theorem Units.isSquare_iff_pos (u : ℝˣ) :
IsSquare u ↔ 0 < ↑u

A real unit is a square exactly when it is positive.

The squares in the real unit group are exactly the positive units.

A real unit has trivial square class exactly when it is positive.

This is not tagged @[simp] because squareClass_eq_zero_iff rewrites its left-hand side first; Units.isSquare_iff_pos supplies the resulting simp-normal rule.

@[simp]

A real unit has the square class of -1 exactly when it is negative.

@[simp]

The n-th multiple of the square class of -1 in the real square-class group vanishes exactly when n is even.

theorem TauCeti.sum_squareClass_eq_ncard_nsmul {ι : Type u_1} [Fintype ι] (w : ι → ℝˣ) :
∑ i : ι, squareClass (w i) = {i : ι | ↑(w i) < 0}.ncard • squareClass (-1)

The square classes of a finite family of real units add up to the number of negative members times the class of -1.

Every real multiplicative square class is either trivial or the class of -1.

The multiplicative real square-class group has exactly two elements, the trivial class and the class of -1.