Publication | Closed Access
Input/Output Dependencies of Normal Logic Programs
22
Citations
6
References
1994
Year
Applied LogicComputational LogicDeclarative ProgrammingEngineeringProgram AnalysisAutomated ReasoningInput/output DependenciesFormal MethodsNormal ProgramWell-founded SemanticsNegative Mode SpecificationsComputer ScienceFormal SystemHigher-order LogicSemanticsFormal VerificationNegative ModesLogic Programming
SLDNF-resolution is complete for allowed programs and allowed queries. But the condition of allowedness is very stringent and excludes many common Prolog constructs. We show that allowedness is a special case of a more general principle. We show that if the clauses of a normal program are correct with respect to an input/output specification then SLDNF-resolution is complete for it An input/output specification assigns to every predicate a set of positive and a set of negative mode specifications. A mode specification declares the arguments of predicates as input arguments, output arguments or normal arguments. Positive modes are used in positive calls and negative modes are used in negative calls. Definite programs together with definite goals, allowed programs together with allowed goals and many programs and goals used in practice are correct with respect to some input/output specification. Therefore our results imply that the three-valued Fitting/Kunen completion is the right declarative semantics for negation as failure.
| Year | Citations | |
|---|---|---|
Page 1
Page 1