Skip to content

How to make a compound predicate fully relational/reified? (Advent of Code, day 2) #2682

Answered by UWN
Qqwy asked this question in Q&A
Discussion options

You must be logged in to vote

How do you create a reified version of a predicate ...

See Section 7:

... these definitions are not constructed automatically.

There are a couple of reasons for that. The first is that it is not clear what kind of reification is intended. In the most extreme interpretation it could mean the same as constructive negation. In that case, every query, really every query that fails in your original program should produce the reified truth value false. But in many situations that is not what we expect. As examples memberd_t/3 and treememberd_t/3 is given. See the discussion there.

But before looking at your example, let's rewrite it a bit such that the subsequent transformation becomes easier.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@triska
Comment options

Comment options

You must be logged in to vote
2 replies
@Qqwy
Comment options

@UWN
Comment options

Answer selected by Qqwy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants