Documentation
Pretty
.
Supports
.
Basic
Search
Google site search
Pretty
.
Supports
.
Basic
source
Imports
Init
Mathlib.Tactic.ClearExcept
Mathlib.Tactic.LibrarySearch
Mathlib.Data.List.Basic
Mathlib.Data.String.Lemmas
Mathlib.Tactic.Linarith.Frontend
Imported by
List
.
fold_max_max_eq_max_fold_max
List
.
get_index_eq
List
.
get_zero_eq_head
Nat
.
not_lt_of_lt
Nat
.
mul_lt_mul₀
Nat
.
sub_lt_sub_right
Nat
.
sub_sub_eq
Basic lemmas about built-in types
#
source
ink
theorem
List
.
fold_max_max_eq_max_fold_max
{xs :
List
ℕ
}
{a :
ℕ
}
{b :
ℕ
}
:
List.foldl
max
(
max
a
b
)
xs
=
max
a
(
List.foldl
max
b
xs
)
source
ink
theorem
List
.
get_index_eq
{α :
Type
u_1}
{xs :
List
α
}
{i :
ℕ
}
{j :
ℕ
}
(hi :
i
<
List.length
xs
)
(h :
i
=
j
)
:
∃
hj
,
List.get
xs
{
val
:=
i
,
isLt
:=
hi
}
=
List.get
xs
{
val
:=
j
,
isLt
:=
hj
}
source
ink
theorem
List
.
get_zero_eq_head
{α :
Type
u_1}
{xs :
List
α
}
(hn :
xs
≠
[]
)
:
List.get
xs
{
val
:=
0
,
isLt
:=
(_ :
0
<
List.length
xs
)
}
=
List.head
xs
hn
source
ink
theorem
Nat
.
not_lt_of_lt
{a :
ℕ
}
{b :
ℕ
}
(h :
a
<
b
)
:
¬
b
<
a
source
ink
theorem
Nat
.
mul_lt_mul₀
{a :
ℕ
}
{b :
ℕ
}
{c :
ℕ
}
{d :
ℕ
}
(h1 :
a
<
c
)
(h2 :
b
<
d
)
:
a
*
b
<
c
*
d
source
ink
theorem
Nat
.
sub_lt_sub_right
{a :
ℕ
}
{b :
ℕ
}
{c :
ℕ
}
(h0 :
a
<
b
)
(h1 :
c
≤
a
)
:
a
-
c
<
b
-
c
source
ink
theorem
Nat
.
sub_sub_eq
{a :
ℕ
}
{b :
ℕ
}
{c :
ℕ
}
(h :
a
≤
b
)
:
c
+
a
-
b
=
c
-
(
b
-
a
)