A propositional logic program P consisting of Horn clauses t1, . . . ,tn containing literals p1, . . . ,pm can be described by a Petri net with places p1, . . . ,pm and transitions t1, . . . ,tn. The transition p, . . . ,q :2WZ r has incoming arcs p, . . . ,q and outgoing arc r. The goal transition p, . . . ,q :2WZ has no outgoing arcs. Transition matrix A corresponding to a program P has dimension n × m with element aij = 0,±1 according to the sign of pj in the clause ti (in particular, it is zero if pij does not occur in ti). The authors’ constructions are based on the following equivalence: P is contradictory if and only if there exists a T-invariant, that is, a vector X of nonnegative integers such that ATX = 0 and the goal-coordinate xg = 0. The paper is devoted to the extension of this approach to predicate logic programs. This requires a much more complicated technique of colored Petri nets, and even in this case the authors only treat function-free programs (which are finitely reducible to propositional programs). The authors conclude that “a general method and computational cost of finding T-invariants applicable to logic programming are unknown and suggested for further study.”