Documentation
Init.Control.Id
Google site search
Init.Control.Id
source
Imports
Init.Core
Imported by
Id
Id.instMonadId
Id.hasBind
Id.run
Id.instOfNatId
source
def
Id
(type :
Type
u)
:
Type
u
Equations
Id
type
=
type
source
@[always_inline]
instance
Id.instMonadId
:
Monad
Id
Equations
Id.instMonadId
=
Monad.mk
source
def
Id.hasBind
:
Bind
Id
Equations
Id.hasBind
=
inferInstance
source
@[inline]
def
Id.run
{α :
Type
u_1}
(x :
Id
α
)
:
α
Equations
Id.run
x
=
x
source
instance
Id.instOfNatId
{α :
Type
u_1}
{n :
Nat
}
[inst :
OfNat
α
n
]
:
OfNat
(
Id
α
)
n
Equations
Id.instOfNatId
=
inferInstanceAs
(
OfNat
α
n
)