Handle programs with both integer and program variables in TPTP output #25

Closed
opened 2019-01-13 21:48:22 +01:00 by patrick · 0 comments
Owner

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:

p(1).
p(a).

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.

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: ```prolog p(1). p(a). ``` 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.
patrick added this to the anthem 0.2.0 milestone 2019-01-13 21:48:22 +01:00
patrick self-assigned this 2019-01-13 21:48:22 +01:00
patrick added the
enhancement
label 2019-01-13 21:48:22 +01:00
patrick changed title from Handle programs with both integer and program variables to Handle programs with both integer and program variables in TPTP output 2019-01-13 21:48:50 +01:00
patrick modified the milestone from anthem 0.2.0 to anthem 0.2.1 2019-01-17 02:51:28 +01:00
patrick modified the milestone from anthem 0.2.1 to anthem 0.2.0 2019-01-17 21:17:59 +01:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: patrick/anthem#25
No description provided.