Documentation
Foundation
.
Vorspiel
.
ENat
Search
return to top
source
Imports
Init
Mathlib.Data.ENat.Basic
Imported by
ENat
.
find
ENat
.
lt_find
ENat
.
exists_of_find_le
ENat
.
find_eq_top_iff
ENat
.
find_le
source
noncomputable def
ENat
.
find
(
P
:
ℕ
→
Prop
)
:
ℕ∞
Equations
ENat.find
P
=
if h :
∃ (
x
:
ℕ
),
P
x
then
↑
(
Nat.find
h
)
else
⊤
Instances For
source
theorem
ENat
.
lt_find
(
P
:
ℕ
→
Prop
)
(
n
:
ℕ
)
(
h
:
∀
m
≤
n
,
¬
P
m
)
:
↑
n
<
find
P
source
theorem
ENat
.
exists_of_find_le
(
P
:
ℕ
→
Prop
)
(
n
:
ℕ
)
(
h
:
find
P
≤
↑
n
)
:
∃
m
≤
n
,
P
m
source
theorem
ENat
.
find_eq_top_iff
(
P
:
ℕ
→
Prop
)
:
find
P
=
⊤
↔
∀ (
n
:
ℕ
),
¬
P
n
source
theorem
ENat
.
find_le
(
P
:
ℕ
→
Prop
)
(
n
:
ℕ
)
(
h
:
P
n
)
:
find
P
≤
↑
n