English

For-loops in Logic Programming

Programming Languages 2016-06-15 v1

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 \seqandqxLG\seqandq{x}{L} G where GG is a goal, xx is a variable, and LL is a list. \seqandqxL\seqandq{x}{L} is called a parallel bounded quantifier. These goals allow us to specify the following task: iterate GG with xx ranging over all the elements of LL. onally lacked devices for expressing iterative tasks. To overcome this problem, this paper proposes iterative goal formulas of the form \seqandqxLG\seqandq{x}{L} G where GG is a goal, xx is a variable, and LL is a list. \seqandqxL\seqandq{x}{L} is called a parallel bounded quantifier. These goals allow us to specify the following task: iterate GG with xx ranging over all the elements of LL.

Keywords

Cite

@article{arxiv.1606.04240,
  title  = {For-loops in Logic Programming},
  author = {Keehang Kwon},
  journal= {arXiv preprint arXiv:1606.04240},
  year   = {2016}
}

Comments

5 pages. slightly revised from my previous Korean paper (KIPS transactions, part A, vol 19, no.1, 2012.)