Priority, Cut, If-Then-Else and Exception Handling in Logic Programming
Abstract
One of the long-standing problems on logic programming is to express {\it priority}-related operations -- default reasoning, if-then-else, cut, exception handling, etc -- in a high-level way. We argue that this problem can be solved by adopting computability logic and prioritized sequential-disjunctive goal formulas of the form where are goals. These goals have the following intended semantics: sequentially the first true goal and execute where . These goals thus allow us to specify a task with the failure-handling (exception handling) routine . This new goal can also be seen as a logic-equivalent of the -- statement in imperative language. We also discuss sequential-conjunction clauses which are {\it dual} of sequential-disjunctive goals.
Cite
@article{arxiv.1607.00633,
title = {Priority, Cut, If-Then-Else and Exception Handling in Logic Programming},
author = {Keehang Kwon},
journal= {arXiv preprint arXiv:1607.00633},
year = {2019}
}
Comments
3 pages. a unified solution to priority, default reasoning, mutual exclusion, If-then-else, cut, exception handling is discussed. We modify the previous version to use prioritized version instead of original sequential disjunctive operators