Publication | Closed Access
Backtracking with cut via a distributive law and left-zero monoids
11
Citations
9
References
2017
Year
Algebraic LogicEngineeringFormal MethodsList MonadGomory-chvátal TheoryComputer ScienceLambda CalculusCut OperatorScope DelimiterDistributive Law
Abstract We employ the framework of algebraic effects to augment the list monad with the pruning cut operator known from Prolog. We give two descriptions of the resulting monad: as the monad of free left-zero monoids, and as a composition via a distributive law of the list monad and the ‘unary idempotent operation’ monad. The scope delimiter of cut arises as a handler.
| Year | Citations | |
|---|---|---|
Page 1
Page 1