中文
相关论文

相关论文: CHR Grammars

200 篇论文

Parsing Expression Grammars (PEGs) are a formalism that can describe all deterministic context-free languages through a set of rules that specify a top-down parser for some language. PEGs are easy to use, and there are efficient…

形式语言与自动机理论 · 计算机科学 2014-02-17 Sérgio Medeiros , Fabio Mascarenhas , Roberto Ierusalimschy

Language models are increasingly being used in important decision pipelines, so ensuring the correctness of their outputs is crucial. Recent work has proposed evaluating the "factuality" of claims decomposed from a language model generation…

计算与语言 · 计算机科学 2025-05-26 Maxon Rubin-Toles , Maya Gambhir , Keshav Ramji , Aaron Roth , Surbhi Goel

Dynamically typed object-oriented languages enable programmers to write elegant, reusable and extensible programs. However, with the current methodology for program verification, the absence of static type information creates significant…

编程语言 · 计算机科学 2015-01-13 Björn Engelmann , Ernst-Rüdiger Olderog , Nils Erik Flick

We consider a simple extension of logic programming where variables may range over goals and goals may be arguments of predicates. In this language we can write logic programs which use goals as data. We give practical evidence that, by…

编程语言 · 计算机科学 2007-05-23 Alberto Pettorossi , Maurizio Proietti

Argumentation has proved a useful tool in defining formal semantics for assumption-based reasoning by viewing a proof as a process in which proponents and opponents attack each others arguments by undercuts (attack to an argument's premise)…

计算机科学中的逻辑 · 计算机科学 2007-05-23 Ralf Schweimeier , Michael Schroeder

We provide a constraint based computational model of linear precedence as employed in the HPSG grammar formalism. An extended feature logic which adds a wide range of constraints involving precedence is described. A sound, complete and…

cmp-lg · 计算机科学 2016-08-31 Suresh Manandhar

Prolog's very useful expressive power is not captured by traditional logic programming semantics, due mainly to the cut and goal and clause order. Several alternative semantics have been put forward, exposing operational details of the…

编程语言 · 计算机科学 2011-07-28 António Porto

A simple dynamically-typed, (purely) object-oriented language is defined. A structural operational semantics as well as a Hoare-style program logic for reasoning about programs in the language in multiple notions of correctness are given.…

编程语言 · 计算机科学 2016-01-12 Björn Engelmann , Ernst-Rüdiger Olderog

Many abstract interpretation frameworks and analyses for Prolog have been proposed, which seek to extract information useful for program optimization. Although motivated by practical considerations, notably making Prolog competitive with…

计算机科学中的逻辑 · 计算机科学 2025-06-18 Baudouin Le Charlier , Sabina Rossi , Pascal Van Hentenryck

This paper brings together two lines of research: factor-based models of case-based reasoning (CBR) and the logical specification of classifiers. Logical approaches to classifiers capture the connection between features and outcomes in…

人工智能 · 计算机科学 2022-12-09 Xinghan Liu , Emiliano Lorini , Antonino Rotolo , Giovanni Sartor

We study how to subvert large language models (LLMs) from following prompt-specified rules. We first formalize rule-following as inference in propositional Horn logic, a mathematical system in which rules have the form "if $P$ and $Q$, then…

人工智能 · 计算机科学 2025-03-03 Anton Xue , Avishree Khare , Rajeev Alur , Surbhi Goel , Eric Wong

The notion of class is ubiquitous in computer science and is central in many formalisms for the representation of structured knowledge used both in knowledge representation and in databases. In this paper we study the basic issues…

人工智能 · 计算机科学 2011-05-30 D. Calvanese , M. Lenzerini , D. Nardi

We consider the application of Constraint Handling Rules (CHR) for the specification of type inference systems, such as that used by Haskell. Confluence of CHR guarantees that the answer provided by type inference is correct and consistent.…

编程语言 · 计算机科学 2020-02-19 Gregory J. Duck , Remy Haemmerle , Martin Sulzmann

Linear constraints are the linear counterpart of Haskell's class constraints. Linearly typed parameters allow the programmer to control resources such as file handles and manually managed memory as linear arguments. Indeed, a linear type…

编程语言 · 计算机科学 2026-04-24 Arnaud Spiwack , Csongor Kiss , Jean-Philippe Bernardy , Nicolas Wu , Richard A. Eisenberg

The profusion of knowledge encoded in large language models (LLMs) and their ability to apply this knowledge zero-shot in a range of settings makes them promising candidates for use in decision-making. However, they are currently limited by…

计算与语言 · 计算机科学 2026-05-08 Gabriel Freedman , Adam Dejl , Deniz Gorur , Xiang Yin , Antonio Rago , Francesca Toni

CLP(H) is an instantiation of the general constraint logic programming scheme with the constraint domain of hedges. Hedges are finite sequences of unranked terms, built over variadic function symbols and three kinds of variables: for terms,…

计算机科学中的逻辑 · 计算机科学 2016-08-08 Besik Dundua , Mário Florido , Temur Kutsia , Mircea Marin

Formal reasoning about finite sets and cardinality is an important tool for many applications, including software verification, where very often one needs to reason about the size of a given data structure and not only about what its…

计算机科学中的逻辑 · 计算机科学 2021-10-06 Maximiliano Cristiá , Gianfranco Rossi

Terminological knowledge representation systems (TKRSs) are tools for designing and using knowledge bases that make use of terminological languages (or concept languages). We analyze from a theoretical point of view a TKRS whose…

人工智能 · 计算机科学 2014-11-17 M. Buchheit , F. M. Donini , A. Schaerf

Hyperedge replacement (HR) grammars can generate NP-complete graph languages, which makes parsing hard even for fixed HR languages. Therefore, we study predictive shift-reduce (PSR) parsing that yields efficient parsers for a subclass of HR…

形式语言与自动机理论 · 计算机科学 2019-03-12 Frank Drewes , Berthold Hoffmann , Mark Minas

Logical frameworks provide natural and direct ways of specifying and reasoning within deductive systems. The logical framework LF and subsequent developments focus on finitary proof systems, making the formalization of circular proof…

计算机科学中的逻辑 · 计算机科学 2023-05-11 Zhibo Chen , Frank Pfenning