HepLean Documentation
Init
.
Data
.
Int
.
LemmasAux
Search
Google site search
return to top
source
Imports
Init.Omega
Init.Data.Int.Order
Imported by
Int
.
toNat_sub'
Int
.
toNat_sub_max_self
Int
.
toNat_sub_self_max
Further lemmas about
Int
relying on
omega
automation.
#
source
@[simp]
theorem
Int
.
toNat_sub'
(a :
Int
)
(b :
Nat
)
:
(
a
-
↑
b
)
.toNat
=
a
.toNat
-
b
source
@[simp]
theorem
Int
.
toNat_sub_max_self
(a :
Int
)
:
(
a
-
max
a
0
)
.toNat
=
0
source
@[simp]
theorem
Int
.
toNat_sub_self_max
(a :
Int
)
:
(
a
-
max
0
a
)
.toNat
=
0