Documentation

Mathlib.Data.Int.NatAbs

Lemmas about Int.natAbs #

This file contains some results on Int.natAbs, the absolute value of an integer as a natural number.

Main results #

def Int.natAbsHom :
→*₀

Int.natAbs as a bundled MonoidWithZeroHom.

Instances For
    @[simp]
    theorem Int.natAbsHom_apply (m : ) :
    natAbsHom m = m.natAbs
    theorem Int.natAbs_natCast_sub_natCast_of_ge {a b : } (h : b a) :
    (a - b).natAbs = a - b
    theorem Int.natAbs_natCast_sub_natCast_of_le {a b : } (h : a b) :
    (a - b).natAbs = b - a