SM-based Semantics for Answer Set Programs Containing Conditional Literals and Arithmetic
- URL: http://arxiv.org/abs/2511.01753v1
- Date: Mon, 03 Nov 2025 17:03:29 GMT
- Title: SM-based Semantics for Answer Set Programs Containing Conditional Literals and Arithmetic
- Authors: Zachary Hansen, Yuliya Lierler,
- Abstract summary: Conditional literals behave as nested implications within bodies of logic rules.<n>We propose a semantics for logic programs with conditional literals and arithmetic based on the SM operator.
- Score: 3.9335611819745355
- License: http://creativecommons.org/licenses/by/4.0/
- Abstract: Modern answer set programming solvers such as CLINGO support advanced language constructs that improve the expressivity and conciseness of logic programs. Conditional literals are one such construct. They form "subformulas" that behave as nested implications within the bodies of logic rules. Their inclusion brings the form of rules closer to the less restrictive syntax of first-order logic. These qualities make conditional literals useful tools for knowledge representation. In this paper, we propose a semantics for logic programs with conditional literals and arithmetic based on the SM operator. These semantics do not require grounding, unlike the established semantics for such programs that relies on a translation to infinitary propositional logic. The main result of this paper establishes the precise correspondence between the proposed and existing semantics.
Related papers
- On systematic construction of correct logic programs [0.0]
This paper presents an approach to systematically construct provably correct and semi-complete logic programs.<n>The proposed method is simple, and can be used (maybe informally) in actual everyday programming.
arXiv Detail & Related papers (2025-08-22T20:27:21Z) - A Reduction of Input/Output Logics to SAT [51.82266520875928]
Deontic logics are formalisms for reasoning over norms, obligations, permissions and prohibitions.<n>In this paper, an automation approach for I/O logics is presented that makes use of suitable reductions to propositional satisfiability problems.
arXiv Detail & Related papers (2025-08-22T09:22:26Z) - Relating Answer Set Programming and Many-sorted Logics for Formal Verification [1.223779595809275]
My research agenda has been focused on addressing three issues with the intention of making ASP verification an accessible, routine task.<n>I have investigated alternative semantics for ASP based on translations into the logic of here-and-there and many-sorted first-order logic.<n>These semantics promote a modular understanding of logic programs, bypass grounding, and enable us to use automated theorem provers to automatically verify properties of programs.
arXiv Detail & Related papers (2025-02-13T11:52:40Z) - Order-Sorted Intensional Logic: Expressing Subtyping Polymorphism with Typing Assertions and Quantification over Concepts [1.104960878651584]
Subtyping, also known as subtype polymorphism, is a concept extensively studied in programming language theory.<n>In this paper, we explore the capability of order-sorted logic for utilizing these ideas in the context of Knowledge Representation.
arXiv Detail & Related papers (2025-02-13T11:51:22Z) - FSLI: An Interpretable Formal Semantic System for One-Dimensional Ordering Inference [0.9048611509540079]
We develop a system for solving logical deduction one-dimensional ordering problems.<n>It transforms natural language premises and candidate statements into first-order logic.<n>It achieves 100% accuracy on BIGbench's logical deduction task and 88% on a syntactically simplified subset of AR-LSAT.
arXiv Detail & Related papers (2025-02-12T13:58:42Z) - Operator-based semantics for choice programs: is choosing losing? (full version) [6.983702226751596]
Only two-valued semantics have been studied so far.
An operator-based framework allows for the definition and comparison of different semantics in a principled way.
arXiv Detail & Related papers (2024-07-31T12:25:57Z) - Parameterized Dynamic Logic -- Towards A Cyclic Logical Framework for General Program Specification and Verification [0.174048653626208]
We present a theory of parameterized dynamic logic, namely DLp, for specifying and reasoning about a rich set of program models.<n>It provides a flexible verification framework based on the theories of dynamic logics.
arXiv Detail & Related papers (2024-04-28T07:08:44Z) - Benchmarking Language Models for Code Syntax Understanding [79.11525961219591]
Pre-trained language models have demonstrated impressive performance in both natural language processing and program understanding.
In this work, we perform the first thorough benchmarking of the state-of-the-art pre-trained models for identifying the syntactic structures of programs.
Our findings point out key limitations of existing pre-training methods for programming languages, and suggest the importance of modeling code syntactic structures.
arXiv Detail & Related papers (2022-10-26T04:47:18Z) - Learning Symbolic Rules for Reasoning in Quasi-Natural Language [74.96601852906328]
We build a rule-based system that can reason with natural language input but without the manual construction of rules.
We propose MetaQNL, a "Quasi-Natural" language that can express both formal logic and natural language sentences.
Our approach achieves state-of-the-art accuracy on multiple reasoning benchmarks.
arXiv Detail & Related papers (2021-11-23T17:49:00Z) - How could Neural Networks understand Programs? [67.4217527949013]
It is difficult to build a model to better understand programs, by either directly applying off-the-shelf NLP pre-training techniques to the source code, or adding features to the model by theshelf.
We propose a novel program semantics learning paradigm, that the model should learn from information composed of (1) the representations which align well with the fundamental operations in operational semantics, and (2) the information of environment transition.
arXiv Detail & Related papers (2021-05-10T12:21:42Z) - Logic-Driven Context Extension and Data Augmentation for Logical
Reasoning of Text [65.24325614642223]
We propose to understand logical symbols and expressions in the text to arrive at the answer.
Based on such logical information, we put forward a context extension framework and a data augmentation algorithm.
Our method achieves the state-of-the-art performance, and both logic-driven context extension framework and data augmentation algorithm can help improve the accuracy.
arXiv Detail & Related papers (2021-05-08T10:09:36Z) - LogicalFactChecker: Leveraging Logical Operations for Fact Checking with
Graph Module Network [111.24773949467567]
We propose LogicalFactChecker, a neural network approach capable of leveraging logical operations for fact checking.
It achieves the state-of-the-art performance on TABFACT, a large-scale, benchmark dataset.
arXiv Detail & Related papers (2020-04-28T17:04:19Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.