HepLean Documentation
Mathlib
.
Data
.
List
.
Monad
Search
Google site search
return to top
source
Imports
Init
Mathlib.Init
Imported by
List
.
instMonad
List
.
pure_def
List
.
instLawfulMonad
List
.
instAlternative
Monad instances for
List
#
source
instance
List
.
instMonad
:
Monad
List
Equations
List.instMonad
=
Monad.mk
source
@[simp]
theorem
List
.
pure_def
{α :
Type
u}
(a :
α
)
:
pure
a
=
[
a
]
source
instance
List
.
instLawfulMonad
:
LawfulMonad
List
Equations
List.instLawfulMonad
=
⋯
source
instance
List
.
instAlternative
:
Alternative
List
Equations
List.instAlternative
=
Alternative.mk
@
List.nil
fun {
α
:
Type
?u.8} (
l
:
List
α
) (
l'
:
Unit
→
List
α
) =>
l
.append
(
l'
()
)