liu.seSearch for publications in DiVA
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
On Correctness and Completeness of an n Queens Program
Linköping University, Department of Computer and Information Science, Software and Systems. Linköping University, Faculty of Science & Engineering. Polish Acad Sci, Poland.ORCID iD: 0000-0002-4700-7272
2022 (English)In: Theory and Practice of Logic Programming, ISSN 1471-0684, E-ISSN 1475-3081, Vol. 22, no 1, p. 37-50Article in journal (Refereed) Published
Abstract [en]

Thom Fruhwirth presented a short, elegant, and efficient Prolog program for the n queens problem. However, the program may be seen as rather tricky and one may not be convinced about its correctness. This paper explains the program in a declarative way and provides proofs of its correctness and completeness. The specification and the proofs are declarative, that is they abstract from any operational semantics. The specification is approximate, it is unnecessary to describe the programs semantics exactly. Despite the program works on non-ground terms, this work employs the standard semantics, based on logical consequence and Herbrand interpretations. Another purpose of the paper is to present an example of precise declarative reasoning about the semantics of a logic program.

Place, publisher, year, edition, pages
Cambridge University Press, 2022. Vol. 22, no 1, p. 37-50
Keywords [en]
logic programming; declarative programming; program completeness; program correctness; specification; nonground answers
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:liu:diva-190500DOI: 10.1017/S1471068421000223ISI: 000889151500002OAI: oai:DiVA.org:liu-190500DiVA, id: diva2:1718654
Available from: 2022-12-13 Created: 2022-12-13 Last updated: 2023-01-10

Open Access in DiVA

fulltext(295 kB)87 downloads
File information
File name FULLTEXT01.pdfFile size 295 kBChecksum SHA-512
941d582f16b6966a38732d6653339f2f5a702dda2d8aac722a22b8150342c2c6dcfcfb802a6cb7e30f5308443d754302d4cfd5b27d1716eb44ee1bb09a9c76fd
Type fulltextMimetype application/pdf

Other links

Publisher's full text

Authority records

Drabent, Wlodzimierz

Search in DiVA

By author/editor
Drabent, Wlodzimierz
By organisation
Software and SystemsFaculty of Science & Engineering
In the same journal
Theory and Practice of Logic Programming
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 89 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

doi
urn-nbn

Altmetric score

doi
urn-nbn
Total: 100 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf