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
changed title from Handle programs with both integer and program variables to Handle programs with both integer and program variables in TPTP output2019-01-13 21:48:50 +01:00
patrick
modified the milestone from anthem 0.2.0 to anthem 0.2.12019-01-17 02:51:28 +01:00
patrick
modified the milestone from anthem 0.2.1 to anthem 0.2.02019-01-17 21:17:59 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
TPTP doesn’t support variables that can represent integers as well as precomputed terms—variables must be either program variables (
$ifor 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