For-loops in Logic Programming

Abstract

Logic programming has traditiLogic programming has traditionally lacked devices for expressing iterative tasks. To overcome this problem, this paper proposes iterative goal formulas of the form xL G where G is a goal, x is a variable, and L is a list. xL is called a parallel bounded quantifier. These goals allow us to specify the following task: iterate G with x ranging over all the elements of L. onally lacked devices for expressing iterative tasks. To overcome this problem, this paper proposes iterative goal formulas of the form xL G where G is a goal, x is a variable, and L is a list. xL is called a parallel bounded quantifier. These goals allow us to specify the following task: iterate G with x ranging over all the elements of L.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…