HepLean Documentation
Init
.
Control
.
Id
Search
Google site search
return to top
source
Imports
Init.Core
Imported by
Id
Id
.
instMonad
Id
.
hasBind
Id
.
run
Id
.
instOfNat
source
def
Id
(type :
Type
u)
:
Type
u
Equations
Id
type
=
type
Instances For
source
@[always_inline]
instance
Id
.
instMonad
:
Monad
Id
Equations
Id.instMonad
=
Monad.mk
source
def
Id
.
hasBind
:
Bind
Id
Equations
Id.hasBind
=
inferInstance
Instances For
source
@[inline]
def
Id
.
run
{α :
Type
u_1}
(x :
Id
α
)
:
α
Equations
x
.run
=
x
Instances For
source
instance
Id
.
instOfNat
{α :
Type
u_1}
{n :
Nat
}
[
OfNat
α
n
]
:
OfNat
(
Id
α
)
n
Equations
Id.instOfNat
=
inferInstanceAs
(
OfNat
α
n
)