Definition hzdivequationmod ( p : hz ) ( x : hzneq 0 p ) ( n : hz ) : n = p * ( hzquotientmod p x n ) + ( hzremaindermod p x n ) := pr1 ( pr2 ( divalgorithmexists n p x ) ).
Require Import UniMath.PAdics.lemmas. Require Import UniMath.NumberSystems.Integers. Require Import UniMath.Foundations.Preamble.