Documentation
Init
.
Data
.
Nat
.
Div
.
Lemmas
Search
return to top
source
Imports
Init.Omega
Init.Data.Nat.Lemmas
Init.Data.Nat.Simproc
Imported by
Nat
.
lt_div_iff_mul_lt
Nat
.
div_le_iff_le_mul
Nat
.
div_eq_iff
Nat
.
lt_of_div_eq_zero
Nat
.
div_eq_zero_iff_lt
Nat
.
div_mul_self_eq_mod_sub_self
Nat
.
mul_div_self_eq_mod_sub_self
Nat
.
lt_div_mul_self
Nat
.
div_pos
Nat
.
div_le_div_left
Nat
.
div_add_le_right
Nat
.
succ_div_of_dvd
Nat
.
succ_div_of_mod_eq_zero
Nat
.
succ_div_of_not_dvd
Nat
.
succ_div_of_mod_ne_zero
Nat
.
succ_div
Further lemmas about
Nat.div
and
Nat.mod
, with the convenience of having
omega
available.
#
source
theorem
Nat
.
lt_div_iff_mul_lt
{
k
x
y
:
Nat
}
(
h
:
0
<
k
)
:
x
<
y
/
k
↔
x
*
k
<
y
-
(
k
-
1
)
source
theorem
Nat
.
div_le_iff_le_mul
{
k
x
y
:
Nat
}
(
h
:
0
<
k
)
:
x
/
k
≤
y
↔
x
≤
y
*
k
+
k
-
1
source
theorem
Nat
.
div_eq_iff
{
k
x
y
:
Nat
}
(
h
:
0
<
k
)
:
x
/
k
=
y
↔
x
≤
y
*
k
+
k
-
1
∧
y
*
k
≤
x
source
theorem
Nat
.
lt_of_div_eq_zero
{
k
x
:
Nat
}
(
h
:
0
<
k
)
(
h'
:
x
/
k
=
0
)
:
x
<
k
source
theorem
Nat
.
div_eq_zero_iff_lt
{
k
x
:
Nat
}
(
h
:
0
<
k
)
:
x
/
k
=
0
↔
x
<
k
source
theorem
Nat
.
div_mul_self_eq_mod_sub_self
{
x
k
:
Nat
}
:
x
/
k
*
k
=
x
-
x
%
k
source
theorem
Nat
.
mul_div_self_eq_mod_sub_self
{
x
k
:
Nat
}
:
k
*
(
x
/
k
)
=
x
-
x
%
k
source
theorem
Nat
.
lt_div_mul_self
{
k
x
:
Nat
}
(
h
:
0
<
k
)
(
w
:
k
≤
x
)
:
x
-
k
<
x
/
k
*
k
source
theorem
Nat
.
div_pos
{
b
a
:
Nat
}
(
hba
:
b
≤
a
)
(
hb
:
0
<
b
)
:
0
<
a
/
b
source
theorem
Nat
.
div_le_div_left
{
c
b
a
:
Nat
}
(
hcb
:
c
≤
b
)
(
hc
:
0
<
c
)
:
a
/
b
≤
a
/
c
source
theorem
Nat
.
div_add_le_right
{
z
:
Nat
}
(
h
:
0
<
z
)
(
x
y
:
Nat
)
:
x
/
(
y
+
z
)
≤
x
/
z
source
theorem
Nat
.
succ_div_of_dvd
{
a
b
:
Nat
}
(
h
:
b
∣
a
+
1
)
:
(
a
+
1
)
/
b
=
a
/
b
+
1
source
theorem
Nat
.
succ_div_of_mod_eq_zero
{
a
b
:
Nat
}
(
h
: (
a
+
1
)
%
b
=
0
)
:
(
a
+
1
)
/
b
=
a
/
b
+
1
source
theorem
Nat
.
succ_div_of_not_dvd
{
a
b
:
Nat
}
(
h
:
¬
b
∣
a
+
1
)
:
(
a
+
1
)
/
b
=
a
/
b
source
theorem
Nat
.
succ_div_of_mod_ne_zero
{
a
b
:
Nat
}
(
h
: (
a
+
1
)
%
b
≠
0
)
:
(
a
+
1
)
/
b
=
a
/
b
source
theorem
Nat
.
succ_div
{
a
b
:
Nat
}
:
(
a
+
1
)
/
b
=
a
/
b
+
if
b
∣
a
+
1
then
1
else
0