Documentation
Projects
.
Misc
.
NatPair
.
Basic
Search
return to top
source
Imports
Init
Projects.Misc.NatPair.Defs
Imported by
NatPair
.
pair_zero
NatPair
.
fst_mul_two
NatPair
.
fst_pair
NatPair
.
pair_add_one
NatPair
.
snd_pair
NatPair
.
odd_add_one_div_two_pow_fst
NatPair
.
two_pow_fst_le_succ
NatPair
.
two_pow_fst_mul_sub_one_eq_self
NatPair
.
pair_fst_snd
NatPair
.
leftInverse_g_f
NatPair
.
rightInverse_g_f
source
@[simp]
theorem
NatPair
.
pair_zero
{
m
:
ℕ
}
:
pair
0
m
=
m
*
2
source
@[simp]
theorem
NatPair
.
fst_mul_two
{
n
:
ℕ
}
:
fst
(
n
*
2
)
=
0
source
@[simp]
theorem
NatPair
.
fst_pair
{
n
m
:
ℕ
}
:
fst
(
pair
n
m
)
=
n
source
@[simp]
theorem
NatPair
.
pair_add_one
{
n
m
:
ℕ
}
:
pair
n
m
+
1
=
2
^
n
*
(
m
*
2
+
1
)
source
@[simp]
theorem
NatPair
.
snd_pair
{
n
m
:
ℕ
}
:
snd
(
pair
n
m
)
=
m
source
@[simp]
theorem
NatPair
.
odd_add_one_div_two_pow_fst
{
n
:
ℕ
}
:
Odd
((
n
+
1
)
/
2
^
fst
n
)
source
@[simp]
theorem
NatPair
.
two_pow_fst_le_succ
{
n
:
ℕ
}
:
2
^
fst
n
≤
n
+
1
source
@[simp]
theorem
NatPair
.
two_pow_fst_mul_sub_one_eq_self
{
n
:
ℕ
}
:
2
^
fst
n
*
((
n
+
1
)
/
2
^
fst
n
)
-
1
=
n
source
@[simp]
theorem
NatPair
.
pair_fst_snd
{
r
:
ℕ
}
:
pair
(
fst
r
)
(
snd
r
)
=
r
source
@[simp]
theorem
NatPair
.
leftInverse_g_f
:
Function.LeftInverse
g
f
source
@[simp]
theorem
NatPair
.
rightInverse_g_f
:
Function.RightInverse
g
f