Theorems · Definition · number theory
ZMod.valMinAbs
{n : ℕ} → ZMod n → ℤReturns the integer in the same equivalence class as x that is closest to 0.
The result will be in the interval (-n/2, n/2].
- Defined in
- Mathlib.Data.ZMod.ValMinAbs
- Cited by
- 28 results in Mathlib
- Foundations
- Depth 20 from the axioms · uses no axioms
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites2
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
Cited by28
Results whose statement or proof uses this declaration.
- ZMod.valMinAbs_def_posstatement and proof · cited by 10
- ZMod.coe_valMinAbsstatement and proof · cited by 8
- ZMod.natAbs_valMinAbs_lestatement and proof · cited by 5
- ZMod.valMinAbs_mem_Iocstatement · cited by 3
- Nat.sq_add_sq_zmodEqproof · cited by 2
- ZMod.natAbs_valMinAbs_negstatement and proof · cited by 2
- ZMod.injective_valMinAbsstatement · cited by 2
- ZMod.valMinAbs_injstatement · cited by 1
- ZMod.valMinAbs_mul_two_eq_iffstatement and proof · cited by 1
- ZMod.eq_neg_of_valMinAbs_eq_neg_valMinAbsstatement and proof · cited by 1
- ZMod.valMinAbs_natCast_of_le_halfstatement · cited by 1
- ZMod.natAbs_valMinAbs_eq_natAbs_valMinAbsstatement and proof · cited by 1