Goto

Collaborating Authors

 logic programming


Ground-Sound Normative Completion: A Model-Parametric Formalism for Normative Closure and Many-Dimensional Sensitivity

arXiv.org Artificial Intelligence

This paper develops a model-parametric formalism for normative completion and the closure conditions under which endorsed normative contents remain grounded. A completion mechanism supplies contextual outputs; a normative interpretation assigns them contents such as goals, evaluations, permissions, responsibilities, and practical commitments. A grounding environment specifies relevance, model-relative grounding, and closure over those contents. The joint architecture distinguishes normative completeness (a weak coverage condition), ground-soundness (grounding of endorsed content), ground-closure (grounding preserved through the specified closure operation), and internal ground-closure of the environment, and establishes their relations. It also characterises when grounding cannot be determined from a reduced representation. Many-dimensional sensitivity identifies this failure, with a local counterfactual special case for contents whose grounding depends on structured alternatives rather than realised observations. The framework neither prescribes a moral theory nor reduces normativity to constraints, and counterfactual semantics is not assumed in general. A finite value-based action model, a scheme calculus, and database representations illustrate the framework and its informational limits. The individual implications are elementary; their coordinated use specifies model-relative normative closure across formal and computational systems. Motivated by value-based practical argumentation and simulated agentic-misalignment cases involving tool-using language models, the framework separates interpretable, grounded commitments from merely emitted continuations; it does not certify deployment safety. The counterfactual special case permits a restricted Lewis-Stalnaker-style selection interpretation under explicit assumptions, not as a premise of the general framework.


Robust Spline-based Planning for Signal Temporal Logic

arXiv.org Artificial Intelligence

Autonomous systems frequently operate with complex spatial and temporal requirements. They must navigate through constrained environments, complete tasks with deadlines, and respect safety margins. These requirements are naturally captured by formal languages such as Signal Temporal Logic (STL), but bridging the gap between these high-level specifications and low-level dynamically feasible trajectories remains a challenging problem. We present a method to solve for Bรฉzier spline trajectories that robustly satisfy such STL specifications. Bรฉzier splines can be made arbitrarily smooth and enable continuous time satisfaction of these formal specifications when paired with a trajectory tracking controller with bounded tracking error. To expand on the expressiveness of STL specifications, we incorporate derivative predicates, allowing complex constraints to be imposed not only on the position of the system but also on higher-order derivatives. We further investigate the benefits and challenges of planning with non-uniform splines. For uniform splines, our approach formulates a mixed-integer linear program (MILP) or a mixed-integer convex program (MICP). For non-uniform splines, we present two alternative encodings: a mixed-integer bilinear program and a non-convex mixed integer quadratically-constrained program (MIQCP). We characterize the tradeoffs between each of these formulations through extensive simulation across a wide range of spline parameters. Finally, we demonstrate the practical effectiveness of our approach by generating reference trajectories for a quadrotor system, achieving superior tracking performance compared with existing spline-based planning methods. Implementation is available at https://github.com/sjwil/stlbezier.


OPAL: Optimizing Proofs at Library Scale via Metric-Driven Coding Agents

arXiv.org Artificial Intelligence

Driven by rapid progress in autoformalization and automated theorem proving, formal mathematics is scaling up: mathematicians, often with AI assistance, advance large formalization projects around Lean blueprints, which tightly link a LaTeX proof plan to the Lean codebase. As mathlib and proof automation evolve, finished proofs accumulate optimization opportunities. Yet even in the mature mathlib library, 41% of commits add no new mathematics but improve existing proofs (shortening, deduplication, faster compilation), and 62% of these span multiple files, beyond the reach of theorem-level methods. We introduce OPAL, the first repository-level, metric-driven proof-optimization task, where an agent freely refactors a blueprint repository toward repository-level objectives. We instantiate OPAL with six metrics grounded in empirically mined human maintenance tendencies, including proof length, import closure, mathlib duplication, and elaboration cost. Optimizing these metrics freely, however, invites reward hacking, such as deleting a theorem to shorten the code, so evaluation needs a contract on what must stay intact. Our key observation is that blueprint structure itself supplies this contract: \lean{} links pin down which theorems constitute a project's final targets (5-19% of all declarations), whose statements must be preserved, while the remaining 81-95% of auxiliary code may be freely refactored. We implement this contract as an executable semantic-preservation checker. Building on it, we release OPAL-Bench, comprising 162 task instances from 18 real-world Lean blueprint projects, together with a sandboxed agent harness. Experiments show that coding agents can deliver genuine optimization gains beyond the level of single human commits, while ablations show that with the contract absent from the agent's world nearly half of accepted improvements do not survive semantic verification.


AI Alignment as a Systems Problem: Toward Distributed Proof Checking at Runtime

arXiv.org Artificial Intelligence

AI alignment concerns the behavior of composed systems, including what they must be able to do and what they are permitted to do. We revisit IC*, an invariant-centered model of computation developed with agreement-controlled nested logical times. We define a compositional object-and-clock framework with state invariants, transition relations, votes, and autonomous inner moves. Parent clocks admit joint advances when child agreements and connecting predicates hold; child clocks may advance separately under parent permission. Our main theorem derives global refinement from local obligations: faithful, refining components and sound connecting clocks yield a hierarchy refining its root specification. We provide a traditional proof and Lean 4-checked results. A corresponding proposal-and-commit protocol is sound and, under finite branching, complete for enabled ticks. Additional finite-trace witness obligations characterize preservation of required capabilities. We formalize selected L.0 cause-and-effect rules at their governing clocks and apply the framework to supervised AI teams. We propose distributed proof checking through Lean instances coordinated by verified logical-clock protocols. A further Lean-checked theorem establishes preservation under authorized creation in an evolving namespace. Retaining commitments, epochs, and supporting evidence could yield a verifiable history. Real-world guarantees additionally require proving correspondence between the implementation, external effects, and the formal model.


FOLBench: A Logic-Grounded Evaluation Suite for Evaluating Open-Ended Responses using Graph-Based Semantic Metrics on First-Order Logic form of Natural Language

arXiv.org Artificial Intelligence

Evaluating open-ended responses from humans or large language models (LLMs) remains a fundamental challenge. Existing metrics ranging from BLEU and ROUGE to embedding-based similarity and LLM-as-a-judge struggle to capture logical fidelity, structural consistency, and semantic entailment. The outcome of this paper entails FOLBench, a logic-grounded evaluation suite that consists of graph-based metrics built from parsing the First-Order Logic (FOL) translated from Natural Language (NL). The suite of symmetric metrics and its composition compares the First-Order Logic forms of candidate Natural Language and gold references. FOLBench provides interpretable, deterministic, verifiable, and compositional evaluation signals. A parameter efficient fine-tuned small language model is also shared to facilitate translations from Natural Language (NL) to First-Order Logic (FOL). In addition, this fine-tuned language model is quantized using AWQ quantization method, thereby minimizes the high VRAM requirement to generate First-Order Logic. Experiments show that FOLBench exposes reasoning failures invisible to existing metrics and correlates strongly with expert human judgments. The evaluation suite is available as pip package, and the source code is open to further contribution and reproducibility at GitHub (https://github.com/gosuddin/folbench). The fine-tuned models are hosted at HuggingFace space (https://huggingface.co/gosuddin).


Optimal Learning of Logical Semantics from Data

arXiv.org Artificial Intelligence

A learner that induces logic programs from a template $L$ of $N$ candidate Horn clauses is handed the $2^N$ clause-sets $S\subseteq L$, but most of them deduce the same facts. What it can actually learn is the set $ฮฉ_L$ of realizable deductive closures, the distinct meanings (semantic contents) the template can express. Learning theory takes the hypothesis class as given; here it is not. $ฮฉ_L$ exists only implicitly, as the image of a least-fixpoint map, and its size, its VC and Littlestone dimensions, and even a way to run the optimal learners over it become available only once it is constructed. We construct it for two recursive families. For the bandwidth-$d$ reachability template on $n$ atoms the semantic capacity $C(L)=\log_2|ฮฉ_L|$ is $n\log_2ฯ_d$ bits, with $ฯ_d$ the $d$-bonacci constant, against about $dn$ syntactic bits; for nonlinear transitive closure on $m$ constants it is $\tfrac14 m^2(1+o(1))$ bits. Standard finite-class results applied to $ฮฉ_L$ then become closed-form rates: Halving makes at most $C(L)$ mistakes, the minimax log-loss (Shtarkov) regret equals $C(L)$ once the queries separate the contents, and the agnostic $0/1$ regret is $ฮ˜(\sqrt{C(L)\,T})$ for both families, whose Littlestone dimension is of order $C(L)$. Under random base facts, the size of a content and its semantic compression (how much of a random program its meaning makes redundant) share a sharp threshold at one base fact per constant: below it the meaning determines the program up to $O(\log m)$ bits, above it a constant fraction of the program is redundant. On real data (Padgett's Florentine families and WordNet) the $2^{40}$ clause-sets of the Florentine template collapse onto $4{,}104$ contents. Under label noise, version-space pruning loses the target in every run, while exponential weights over $ฮฉ_L$ stays within its regret bound.


Mars Sample Recovery Helicopter Aerial Mode Commander Design Using Executable Models

arXiv.org Artificial Intelligence

This paper explores a case study of the use of behavioral modeling in a mode commander for aerial flight of a Sample Recovery Helicopter (SRH) mission concept that was designed to retrieve and deliver sample tubes to the Sample Retrieval Lander (SRL) as a part of the planned Mars Sample Return (MSR) mission. In particular, we describe the application of model-based systems engineering with executable system modeling for describing the behavior of the Aerial Mode Commander of the helicopter. Descriptive and behavioral models are used in this context to: 1) provide consistency and tighter integration between flight system description and flight software implementation, 2) enable early detection of any unexpected/undesired behavior by tracking the system states for different mission scenarios, 3) qualify the comprehensiveness of the behavioral descriptions via simulations. The execution of the system model enabled the dynamic evaluation of the system behavior, qualification of mode commander design, and validation of scenarios and test cases. Formal methods are leveraged to represent the system and validate its behavior by visualizing and simulating different mission scenarios and test cases. Interactions between aerial mode commanders are explicitly defined using SysML, which provides rigor and flexibility to adequately capture the level of detail needed to reduce ambiguities in design, ultimately leading to a more consistent and reliable system. Model patterns are constructed to address specific flight computer interactions and fault behaviors. Early validation of system behavior offered resources for a streamlined transition from design to implementation, leading to more robust and efficient flight software that performs as expected across various mission scenarios.


AutoformBench: A Lean Formalization Benchmark for Advanced Mathematics

arXiv.org Artificial Intelligence

AI systems are increasingly capable of producing machine-checked Lean proofs of advanced mathematical results. Real mathematical formalization, however, is not isolated theorem proving: it requires building the definitions and intermediate lemmas that connect a result to a formal library. Existing evaluations often provide isolated theorem statements in settings where much of this supporting theory is already available in Mathlib. We introduce AutoformBench, a benchmark of 341 Lean 4 formalization tasks drawn from 24 advanced mathematical sources. Lean-experienced mathematicians formalized and audited each target statement, leaving the corresponding Lean proof to the evaluated agent. Each problem is embedded in a broader mathematical development: agents receive the informal proof but must translate it into Lean while constructing the missing definitions, intermediate lemmas, and supporting infrastructure. We compare the performance of frontier models on these problems. We find a largely shared difficulty frontier: success depends less on mathematical domain than on models' ability to construct missing formal infrastructure. Data and code at https://github.com/facebookresearch/autoformbench


SWE-Proof: Can Language Models Resolve Real-World Issues with Machine-Checked Proofs?

arXiv.org Artificial Intelligence

Ensuring the correctness of LLM-generated code is a core challenge for modern software engineering. Benchmarks for agentic code generation check correctness with held-out test suites, which are inherently incomplete and increasingly susceptible to memorization. Formal verification avoids both problems, but existing work covers only standalone tasks whose specifications are given as input, not real issues, which touch large repositories and state intent in vague natural language. We present BenchProofer, a pipeline that turns a coding task with a known correct patch into a formally verified one: it writes a specification for the new code, summarizes the existing functions that code calls with axioms, and admits an instance only after mechanical and adversarial gates agree. Applying it to SWE-bench Verified yields SWE-Proof, 500 real issues whose correctness is formally verified rather than tested, and it extends to SWE-bench Pro. Evaluating Claude Opus 4.8, we find that verification catches what tests miss: nearly a third of test-passing patches admit counterexamples, which a structured natural-language specification does not fix, while a correct formal one lifts resolution from 85% to 95%. Writing that specification is the hard part: an agent that must write its own gains nothing over an unaided baseline, and only 56% of those specifications pass our audit. The usual failure is faithfulness, where a specification constrains part of the required behavior and leaves the rest free. Specification quality also tracks the outcome, failing on 92% of unresolved instances against 51% of resolved ones, making faithful specification synthesis a concrete open problem. Code is available at https://github.com/amazon-science/BenchProofer.


Temporal Logic Tensor Networks: Foundations of Temporal Reasoning in Neural Networks

arXiv.org Artificial Intelligence

In dynamic scenes---football matches, traffic streams, surgery, or assembly---actions unfold at fundamentally different time scales: in football, a kick happens in milliseconds, a possession lasts seconds, and complex events such as a successful pass followed by a goal combine multiple atomic actions over extended durations. Models trained solely on visual data struggle to learn effectively across different time scales, lacking a principled way of reasoning across fine-grained instants and broader intervals. Neither point-wise nor purely interval semantics suffices: the former fragments events into frame-level snapshots lacking overall event identification; the latter treats intervals as atomic truth-values, ignoring state trajectories. We introduce Temporal Logic Tensor Networks (tLTN), a differentiable neuro-symbolic framework addressing this duality via a formal, multi-sorted logic where events and states are structurally interdependent. Extending Interval Logic Tensor Networks (ILTN), tLTN grounds state predicates as fuzzy truth-value paths over time points, while events are first-class entities with learnable trapezoidal fuzzy durations and differentiable Allen-style relations. A compositional semantics fuses static, event-structural, and state-dynamic satisfaction into a single differentiable LTN grounding. Crucially, the modalities constrain each other bidirectionally: the interval layer dictates where point-wise constraints (e.g., Until, Since) are evaluated, restricting them to event-defined spans; conversely, the point-wise layer validates interval relations, rejecting them if underlying state dynamics contradict the relation. Through controlled synthetic examples, we show when single-modality learning fails and how this localization reduces frame-level computational cost on long traces.