category-theory-presentation/categories/30_How/200_Monads/150_Example_List_law_verification.md
2013-02-28 16:49:12 +01:00

396 B

Example: List (law verification)

Example: List is a functor (join is ⊙)

  • \(M ⊙ (M ⊙ M) = (M ⊙ M) ⊙ M\)
  • \(η ⊙ M = M = M ⊙ η\)
join [ join [[x,y,...,z]] ] = join [[x,y,...,z]]
							= join (join [[[x,y,...,z]]])
join (η [x]) = [x] = join [η x]

Therefore ([],join,η) is a monad.