Cours 5: Computational -calculus
Call-by-value + computational effects ⟶ evaluation strategy
In a cartesian closed category:
where
are -terms means -reduction/ -expansion applied at any position / occurence of the -term
Keep in mind the specific monad:
Partiality monad:
Whenever we have a monad:
- Kleisli category
of : -
-
sets as objects
-
functions
as morphisms: i.e. partial function from to . -
Composition:
and are composed in the following way:
-
Does it corresponds to the way we compose partial functions ? Yes:
If
is the partiality monad: where
is the category of sets and partial functions.
If
Strong monads
In the case of the partiality monad
where
Cartesian category equipped with the identity strong monad is a cartesian closed category.
NB: The diagram going from
Leave a comment