Handle programs with both integer and program variables in TPTP output #25
Labels
No Label
aesthetic
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
suggestion
task
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: patrick/anthem#25
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TPTP doesn’t support variables that can represent integers as well as precomputed terms—variables must be either program variables (
$i
for individuals) or integer variables ($int
). This is problematic, because ASP programs might have variables that can stand for both precomputed terms or integers, such as the following program:As a workaround, Vladimir suggested mapping integers n to 2 × n, while all odd numbers could be used for a mapping of general variables. This would, in terms of TPTP, turn all variables into integers, and checking whether a value is integer or not would consist in checking whether it’s an even number or not.
Handle programs with both integer and program variablesto Handle programs with both integer and program variables in TPTP output