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.BinderPredicates
Init.Data.Array.Nat
Init.Data.Vector.Basic
Init.Data.Vector.Lemmas
Imported by
Vector
.
sum_pos_iff_exists_pos_nat
Vector
.
sum_eq_zero_iff_forall_eq_nat
Vector
.
sum_replicate_nat
Vector
.
sum_append_nat
Vector
.
sum_reverse_nat
Vector
.
sum_eq_foldl_nat
Vector
.
prod_pos_iff_forall_pos_nat
Vector
.
prod_eq_zero_iff_exists_zero_nat
Vector
.
prod_replicate_nat
Vector
.
prod_append_nat
Vector
.
prod_reverse_nat
Vector
.
prod_eq_foldl_nat
Init
.
Data
.
Vector
.
Nat
source
theorem
Vector
.
sum_pos_iff_exists_pos_nat
{
n
:
Nat
}
{
xs
:
Vector
Nat
n
}
:
0
<
xs
.
sum
↔
∃
(
x
:
Nat
)
,
x
∈
xs
∧
0
<
x
source
theorem
Vector
.
sum_eq_zero_iff_forall_eq_nat
{
n
:
Nat
}
{
xs
:
Vector
Nat
n
}
:
xs
.
sum
=
0
↔
∀ (
x
:
Nat
),
x
∈
xs
→
x
=
0
source
@[simp]
theorem
Vector
.
sum_replicate_nat
{
n
a
:
Nat
}
:
(
replicate
n
a
)
.
sum
=
n
*
a
source
theorem
Vector
.
sum_append_nat
{
n
m
:
Nat
}
{
as₁
:
Vector
Nat
n
}
{
as₂
:
Vector
Nat
m
}
:
(
as₁
++
as₂
).
sum
=
as₁
.
sum
+
as₂
.
sum
source
theorem
Vector
.
sum_reverse_nat
{
n
:
Nat
}
(
xs
:
Vector
Nat
n
)
:
xs
.
reverse
.
sum
=
xs
.
sum
source
theorem
Vector
.
sum_eq_foldl_nat
{
n
:
Nat
}
{
xs
:
Vector
Nat
n
}
:
xs
.
sum
=
foldl
(fun (
x1
x2
:
Nat
) =>
x1
+
x2
)
0
xs
source
theorem
Vector
.
prod_pos_iff_forall_pos_nat
{
n
:
Nat
}
{
xs
:
Vector
Nat
n
}
:
0
<
xs
.
prod
↔
∀ (
x
:
Nat
),
x
∈
xs
→
0
<
x
source
theorem
Vector
.
prod_eq_zero_iff_exists_zero_nat
{
n
:
Nat
}
{
xs
:
Vector
Nat
n
}
:
xs
.
prod
=
0
↔
∃
(
x
:
Nat
)
,
x
∈
xs
∧
x
=
0
source
@[simp]
theorem
Vector
.
prod_replicate_nat
{
n
a
:
Nat
}
:
(
replicate
n
a
)
.
prod
=
a
^
n
source
theorem
Vector
.
prod_append_nat
{
n
m
:
Nat
}
{
as₁
:
Vector
Nat
n
}
{
as₂
:
Vector
Nat
m
}
:
(
as₁
++
as₂
).
prod
=
as₁
.
prod
*
as₂
.
prod
source
theorem
Vector
.
prod_reverse_nat
{
n
:
Nat
}
(
xs
:
Vector
Nat
n
)
:
xs
.
reverse
.
prod
=
xs
.
prod
source
theorem
Vector
.
prod_eq_foldl_nat
{
n
:
Nat
}
{
xs
:
Vector
Nat
n
}
:
xs
.
prod
=
foldl
(fun (
x1
x2
:
Nat
) =>
x1
*
x2
)
1
xs