#const directive.#const directive that allows the programmer to substitute some atom with a constant while grounding.#const n = 5 .
n will be substituted with 5 in the rules below:q(n) . p(X) ← X = n..(n+3) .
(n+3) is an undefined operation
n as a constant then it is treated as a normal atom and there is no way to add three to an atom hence the warning.n it would be necessary to write many statements similar to n = 1: n = 2: n = 3: n is a constant, it is an invalid program (as witnessed when running it by itself). Having n is a constant. We recommend explicitly stating at least one constant in the worksheet so that it is obvious which atoms are constants and also what a valid value for that constant might be.