Documentation

CslibFrontier.Foundations.Data.ZMod.ValMinAbs

Bounds for centered modular representatives #

The centered representative ZMod.valMinAbs minimizes absolute value among the integer representatives of a residue. This module records the comparison with an arbitrary chosen integer representative.

Main results #

References #

The result is derived from Mathlib's minimality and range API for ZMod.valMinAbs.

theorem ZMod.abs_valMinAbs_intCast_le {q : ℕ} [NeZero q] (z : ℤ) :

The centered representative of an integer modulo q has no greater magnitude than the chosen integer representative.