hilbert
6
Search
☰
About
Tutorial
Roadmap
Get involved
Reference manual
Blueprint
API docs
Papers
About
Tutorial
Roadmap
Get involved
Reference manual
Blueprint
API docs
Papers
GitHub
return to top
source
Imports
Init.ByCases
Init.Omega
Init.RCases
Init.Data.Int.Basic
Init.Data.Nat.Lemmas
Imported by
Int
.
natCast_pow
Int
.
negSucc_pow
Int
.
pow_zero
Int
.
pow_succ
Int
.
pow_succ'
Int
.
pow_add
Int
.
zero_pow
Int
.
one_pow
Int
.
mul_pow
Int
.
pow_one
Int
.
pow_mul
Int
.
pow_pos
Int
.
pow_nonneg
Int
.
pow_ne_zero
Int
.
instNeZeroHPowNat
Int
.
instNeZeroHPowOfNat
Int
.
two_pow_pred_sub_two_pow
Int
.
two_pow_pred_sub_two_pow'
Int
.
pow_lt_pow_of_lt
Int
.
natAbs_pow
Int
.
toNat_pow_of_nonneg
Int
.
sq_nonneg
Int
.
sq_nonnneg
Int
.
pow_nonneg_of_even
Int
.
neg_pow
Init
.
Data
.
Int
.
Pow
pow
#
source
@[simp]
theorem
Int
.
natCast_pow
(
m
n
:
Nat
)
:
↑(
m
^
n
)
=
↑
m
^
n
source
theorem
Int
.
negSucc_pow
(
m
n
:
Nat
)
:
negSucc
m
^
n
=
if
n
%
2
=
0
then
ofNat
(
m
.
succ
^
n
)
else
negOfNat
(
m
.
succ
^
n
)
source
@[simp]
theorem
Int
.
pow_zero
(
m
:
Int
)
:
m
^
0
=
1
source
theorem
Int
.
pow_succ
(
m
:
Int
)
(
n
:
Nat
)
:
m
^
n
.
succ
=
m
^
n
*
m
source
theorem
Int
.
pow_succ'
(
b
:
Int
)
(
e
:
Nat
)
:
b
^
(
e
+
1
)
=
b
*
b
^
e
source
theorem
Int
.
pow_add
(
a
:
Int
)
(
m
n
:
Nat
)
:
a
^
(
m
+
n
)
=
a
^
m
*
a
^
n
source
theorem
Int
.
zero_pow
{
n
:
Nat
}
(
h
:
n
≠
0
)
:
0
^
n
=
0
source
theorem
Int
.
one_pow
{
n
:
Nat
}
:
1
^
n
=
1
source
theorem
Int
.
mul_pow
{
a
b
:
Int
}
{
n
:
Nat
}
:
(
a
*
b
)
^
n
=
a
^
n
*
b
^
n
source
theorem
Int
.
pow_one
(
a
:
Int
)
:
a
^
1
=
a
source
theorem
Int
.
pow_mul
{
a
:
Int
}
{
n
m
:
Nat
}
:
a
^
(
n
*
m
)
=
(
a
^
n
)
^
m
source
theorem
Int
.
pow_pos
{
n
:
Int
}
{
m
:
Nat
}
:
0
<
n
→
0
<
n
^
m
source
theorem
Int
.
pow_nonneg
{
n
:
Int
}
{
m
:
Nat
}
:
0
≤
n
→
0
≤
n
^
m
source
theorem
Int
.
pow_ne_zero
{
n
:
Int
}
{
m
:
Nat
}
:
n
≠
0
→
n
^
m
≠
0
source
instance
Int
.
instNeZeroHPowNat
{
n
:
Int
}
{
m
:
Nat
}
[
NeZero
n
]
:
NeZero
(
n
^
m
)
source
instance
Int
.
instNeZeroHPowOfNat
{
n
:
Int
}
:
NeZero
(
n
^
0
)
source
@[simp]
theorem
Int
.
two_pow_pred_sub_two_pow
{
w
:
Nat
}
(
h
:
0
<
w
)
:
↑(
2
^
(
w
-
1
))
-
↑(
2
^
w
)
=
-
↑(
2
^
(
w
-
1
))
source
@[simp]
theorem
Int
.
two_pow_pred_sub_two_pow'
{
w
:
Nat
}
(
h
:
0
<
w
)
:
2
^
(
w
-
1
)
-
2
^
w
=
-
2
^
(
w
-
1
)
source
theorem
Int
.
pow_lt_pow_of_lt
{
a
:
Int
}
{
b
c
:
Nat
}
(
ha
:
1
<
a
)
(
hbc
:
b
<
c
)
:
a
^
b
<
a
^
c
source
@[simp]
theorem
Int
.
natAbs_pow
(
n
:
Int
)
(
k
:
Nat
)
:
(
n
^
k
).
natAbs
=
n
.
natAbs
^
k
source
theorem
Int
.
toNat_pow_of_nonneg
{
x
:
Int
}
(
h
:
0
≤
x
)
(
k
:
Nat
)
:
(
x
^
k
).
toNat
=
x
.
toNat
^
k
source
theorem
Int
.
sq_nonneg
(
m
:
Int
)
:
0
≤
m
^
2
source
@[deprecated Int.sq_nonneg (since := "2026-03-13")]
theorem
Int
.
sq_nonnneg
(
m
:
Int
)
:
0
≤
m
^
2
source
theorem
Int
.
pow_nonneg_of_even
{
m
:
Int
}
{
n
:
Nat
}
(
h
:
n
%
2
=
0
)
:
0
≤
m
^
n
source
theorem
Int
.
neg_pow
{
m
:
Int
}
{
n
:
Nat
}
:
(
-
m
)
^
n
=
(-
1
)
^
(
n
%
2
)
*
m
^
n