Documentation
LeanCourse
.
MIL
.
C04_Sets_and_Functions
.
S02_Functions
Search
Google site search
return to top
source
Imports
Init
LeanCourse.Common
Mathlib.Data.Set.Function
Mathlib.Data.Set.Lattice
Mathlib.Analysis.SpecialFunctions.Log.Basic
Imported by
inverse
inverse_spec
Cantor
source
def
inverse
{α :
Type
u_1}
{β :
Type
u_2}
[
Inhabited
α
]
(f :
α
→
β
)
:
β
→
α
Equations
inverse
f
y
=
if h :
∃ (
x
:
α
),
f
x
=
y
then
Classical.choose
h
else
default
Instances For
source
theorem
inverse_spec
{α :
Type
u_1}
{β :
Type
u_2}
[
Inhabited
α
]
{f :
α
→
β
}
(y :
β
)
(h :
∃ (
x
:
α
),
f
x
=
y
)
:
f
(
inverse
f
y
)
=
y
source
theorem
Cantor
{α :
Type
u_3}
(f :
α
→
Set
α
)
:
¬
Function.Surjective
f