Replies: 1 comment
-
The goal Also, constructs such as "has at least n solutions" retain monotonicity. Otherwise, you probably would have to settle for less. Giving up monotonicity does not mean to give up purity as such. Going beyond Section 7 might be another way. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the DEDUCTION project, I frequently invoke
findall/3
orsetof/3
and thenfoldl/4
some binary operation over the resulting list.As @triska describes here, however, such all-solutions predicates destroy monotonicity "in general".
What I'm wondering is, are there specific circumstances when such modes of reasoning can be used while retaining monotonicity? Or is every attempt to even conceive of sets-of-solutions provably doomed in this way? Obviously, the code below uses impure constructs—and indeed must, since
But I am hoping that sufficient conditions might be placed on the predicate
P_3
(and perhapsGoal
as well) to enable recovery of some algebraic properties.At a basic level, I'm motivated here by the hope I could factor
findall/3
andsetof/3
out of my code entirely, and replace them with somehow 'less-impure' constructs.Beta Was this translation helpful? Give feedback.
All reactions