diff -r 8a48e18f081e -r a7ccb744047b src/HOL/Library/Signed_Division.thy --- a/src/HOL/Library/Signed_Division.thy Sat Oct 01 07:56:53 2022 +0000 +++ b/src/HOL/Library/Signed_Division.thy Sat Oct 01 13:08:34 2022 +0000 @@ -7,9 +7,13 @@ imports Main begin -class signed_division = comm_semiring_1_cancel + +class signed_divide = fixes signed_divide :: \'a \ 'a \ 'a\ (infixl \sdiv\ 70) - and signed_modulo :: \'a \ 'a \ 'a\ (infixl \smod\ 70) + +class signed_modulo = + fixes signed_modulo :: \'a \ 'a \ 'a\ (infixl \smod\ 70) + +class signed_division = comm_semiring_1_cancel + signed_divide + signed_modulo + assumes sdiv_mult_smod_eq: \a sdiv b * b + a smod b = a\ begin