Kummer’s theorem in MathComp

1.3 Euclidean division

Lemma 1.13 Euclidean division
#

For all \(n, d\),

\[ n = (n \mathbin {/} d) \cdot d + n \bmod d. \]

Lemma 1.14 Modulus bound
#

\((n \bmod d {\lt} d) \iff (0 {\lt} d)\).

Lemma 1.15 Small dividend
#

If \(m {\lt} d\) then \(m \mathbin {/} d = 0\).

Lemma 1.16 Modulus of sum with multiple
#

\((p \cdot q + r) \bmod p = r \bmod p\).

Lemma 1.17 Division of sum with multiple
#

For \(0 {\lt} p\),

\[ (p \cdot q + r) \mathbin {/} p = q + r \mathbin {/} p. \]