Elamur Research

Multi-shot ASP solving with clingo

Paper · 2018 · Martin Gebser, Roland Kaminski, Benjamin Kaufmann et al.

Summary

A reasoning system frequently has to answer a changing question. A planner extends the time available for reaching a goal. A game advances to another round. An application receives new information or withdraws an earlier condition. Rebuilding the whole reasoning problem after every change can repeat work that remains useful. This paper develops multi-shot Answer Set Programming, or ASP, as a way to keep the reasoning machinery running while its problem changes.

ASP expresses a problem through logical rules and constraints. A grounder turns rules containing variables into a propositional representation, and a solver searches that representation for answer sets: combinations of atoms that satisfy the program under its stable semantics. Conventional ASP systems perform these stages for an input program and then finish. Multi-shot solving instead preserves an operational grounder and solver across successive calls. An application can add program parts, instantiate selected parts, change designated inputs, and request another solution without starting the entire process again.

The implementation in clingo separates the logical description from the procedure that controls its use. Named, parameterized subprograms describe reusable pieces of a problem. An application programming interface determines when those pieces enter the grounded program and when solving occurs. Externally controlled atoms provide switches for inputs and conditions that may change. The paper gives these facilities a precise meaning through system states and operations on those states. Its formal account is important because changing an ASP program is not simply a matter of appending independent facts: grounding depends on the available context, and program parts must obey conditions for safe composition.

The experiments examine successive searches for shortest plans on Towers of Hanoi, Ricochet Robots, and planning problems translated from PDDL. They compare starting afresh at every planning horizon with several ways of preserving solver information. Multi-shot solving performs better across these benchmarks, but the useful information depends on the problem. Keeping short learned constraints helps throughout the evaluation. Preserving longer learned constraints helps on Towers of Hanoi but creates overhead on the other benchmark families. Retaining heuristic scores has less influence. The contribution is therefore both an architecture for evolving reasoning tasks and evidence that reuse should distinguish between kinds of solver state.

Interesting ideas

Separate the rules from their schedule. A logical description can say which situations are acceptable while a procedural controller decides what to instantiate and when to search. This division makes the same rules usable under different reasoning strategies. It applies wherever a reusable constraint specification needs several execution policies, such as progressively extending a search or responding to changing application inputs.

Treat future inputs as part of the interface. An atom that has no definition yet may still matter to rules already being grounded. Declaring it external preserves its role rather than allowing the grounder to remove it as unavailable. The broader lesson is to distinguish information that is absent permanently from information that another component may supply later. Incremental analysis and staged computation need that distinction as much as logic programming does.

Represent temporary conditions with explicit switches. A goal or objective contribution can depend on an externally assigned atom. Changing the atom changes the condition’s effect without requiring a fresh logical encoding. This works particularly well when a stable underlying problem supports many queries. It also makes the lifetime of a condition visible: temporarily disabling it and retiring it permanently are separate operations.

Make composition rules explicit. The paper identifies conditions under which separately grounded program parts can be joined safely. Each defined atom belongs to a particular component, and positive recursion must remain within components. This is a reusable engineering principle: a modular interface should specify the dependencies that make composition valid, instead of assuming that independently sensible parts will remain sensible together.

Design encodings around the direction of change. The incremental cardinality examples show that equivalent constraints can have very different reuse properties. Propagating information in a suitable direction allows a growing problem to retain earlier constraints, including learned ones. Similar reasoning applies when designing data structures or intermediate representations for extensions that are predictable even when their final size is unknown.

Measure retained information by its future value. The experiments distinguish learned constraints from heuristic scores and short constraints from longer ones. Their effects are not interchangeable. A persistent system should evaluate the cost of carrying information forward against the work that information prevents. The paper’s results support selective retention rather than treating persistence itself as sufficient evidence of usefulness.

Deep dive: Multi-shot ASP solving with clingo

How clingo keeps grounding and solving active as logic programs change, with its semantics, planning experiments, and practical limits. · about 34 minutes to read

How Mova uses it

For Mova, a small transparent language system implemented in Rust, the most direct borrowing would be an explicit lifecycle for symbolic reasoning. The paper supports an architecture in which a persistent logical core receives changing inputs through a controlled interface. It does not establish that Mova already has such an integration. The applications described here are possible designs, and their usefulness would have to be demonstrated within Mova.

A concrete candidate is a sequence of related language queries over a stable collection of rules. Mova could preserve rules describing permissible interpretations or relationships, while representing the current query through changeable inputs. A controller would activate the relevant conditions, request an answer, inspect the result, and then replace those conditions for the next query. This follows the same structural pattern as the paper’s game example, where the board stays fixed while starting positions and targets change between rounds.

The transparency benefit would come from exposing those transitions. Mova could record which logical components were available, which had been grounded, and which external inputs were active for a particular answer. Such a record would help distinguish a changed conclusion caused by new input from one caused by a newly instantiated rule. The paper’s state representation gives a useful vocabulary for designing that record, although it does not supply a complete explanation system.

Another possible use concerns a language analysis that grows as more material becomes available. A controller could introduce additional program instances while preserving the grounded rules already assembled. The important design question would be which atoms later stages may define. The paper shows why merely adding information later is insufficient: an earlier grounding step may already have simplified away a dependency on that information. A Mova implementation would therefore need explicit interfaces for prospective inputs, rather than assuming that future additions automatically repair earlier simplifications.

A Rust implementation could also borrow the distinction between persistent input assignments and assumptions attached to an individual search. Persistent assignments would describe the current reasoning situation. Search assumptions would select answers satisfying a temporary requirement. Keeping these roles separate would make it easier to explain whether a condition supplied information or only screened possible answers. This is a semantic distinction, not merely a choice of API names.

The paper describes a C API alongside other language interfaces. That offers a potential boundary for an application written in Rust, but the paper does not document a Rust binding or a Mova-specific connection. Building such a connection would require its own work on representations, object lifetimes, error handling, and application behavior. No speed improvement for Mova follows directly from the planning results.

Finally, Mova could adopt the paper’s experimental discipline before adopting all of its machinery. A useful evaluation would compare rebuilding a reasoning task with preserving it, then separately examine which retained state contributes to the result. The lesson is especially relevant to a small system: persistent state can reduce repeated work, but it can also carry unnecessary overhead. The paper supplies concrete reasons to test both possibilities.

The problem and its context

Why a changing problem challenges a conventional solver

The paper belongs to knowledge representation and reasoning, where logical descriptions specify a problem and a reasoning system derives admissible conclusions or solutions. ASP provides a declarative approach to this task. The programmer states rules and restrictions rather than spelling out the entire search procedure.

The conventional workflow has a clear boundary. A system receives a program, grounds it, solves the grounded representation, and returns answer sets. The paper describes both integrated systems and separate grounder–solver combinations as following this basic pattern. Combining the components in an executable does not, by itself, make their behavior adaptable.

This arrangement is adequate when the problem is fixed. It becomes less convenient when an application repeatedly asks related questions. In planning, the same transition description may be used at increasing horizons. In interaction, the rules may remain stable while observations change. In optimization, the objective may acquire new contributions or stop considering old ones.

These cases involve more than running an unchanged computation several times. The specification itself evolves. Data may arrive, constraints may become irrelevant, or a goal may be replaced. A useful system must accommodate such changes while preserving work whose meaning remains valid.

The authors describe earlier incremental and reactive ASP systems as addressing parts of this need. Iclingo supported an incremental progression; oclingo supported reactive reasoning. Their limitation was the prescribed control structure. Users could express problems within those structures, but could not freely determine the sequence of grounding and solving operations.

Multi-shot solving generalizes the control boundary. Rather than choosing between a fixed one-shot run and a specialized built-in progression, an application obtains operations from which it can construct its own process. This is particularly relevant to code and programming languages: logical rules become components of an application whose execution policy lives in ordinary procedural code.

Why preserving a process can save work

Restarting a solver loses more than an executable’s initialization. Repeated grounding may regenerate rules already produced for an earlier problem. Repeated solving may rediscover conflicts that have already taught the solver useful restrictions.

A conflict-driven solver records information about combinations of assignments that cannot succeed. The paper calls these recorded restrictions nogoods. Their value is that later search can avoid combinations already established as impossible.

An evolving problem creates an opportunity to reuse this information. If a later task extends an earlier one in a compatible way, some learned restrictions can remain useful. Heuristic values may also carry information about promising search behavior. The experiments deliberately examine these possibilities separately.

Persistence is not a guarantee of acceleration, however. A retained constraint takes space and participates in the solver’s maintenance and search machinery. If it offers little guidance for the next problem, its cost can outweigh its benefit. The paper’s empirical analysis makes this qualification central.

What earlier interfaces supplied

The related-work discussion places clingo among several ways of connecting logic solving to external software. Earlier clingo scripting supported deterministic computations during grounding, but did not provide the later library interface for controlling the whole reasoning process.

The paper distinguishes its external atoms from those in dlvhex. In dlvhex, external computation can be consulted procedurally during solving. Clingo’s external declarations instead identify logical inputs whose values can be managed through its interface. These mechanisms solve different integration problems despite their similar terminology.

Other systems supplied additional pieces of the surrounding landscape. Jdlv wrapped one-shot solving for Java applications, and embasp offered a broader environment for embedding ASP systems. The wasp interface exposed low-level solving facilities, including customization of propagation and heuristics. The paper describes idp as supporting repeated grounding and solving, solution inspection, and reactions to incoming information.

Clingo’s emphasis is the controlled assembly of a program from subprograms, coupled with control over both grounding and search. Its contribution is therefore more specific than simply making a solver callable from another language.

The authors also connect their approach to incremental SAT solving. Interfaces for solving propositional formulas under assumptions supplied an important precedent, and clasp uses this kind of facility. ASP adds a further issue: a symbolic program must be grounded, and the grounding itself evolves.

Why ASP needs a semantic account of change

ASP is nonmonotonic. Adding information can alter which conclusions are supported, rather than merely accumulating more conclusions. A component that looks harmless in isolation can interact with another component through recursion or through the absence of an atom.

Grounding adds another source of sensitivity. A grounder does not normally produce every conceivable substitution into a rule. It uses the available atoms and established information to keep relevant instances and simplify others. Accordingly, the order in which program parts are grounded can influence what remains available.

The paper’s formal contribution addresses both issues. Module theory describes which grounded components can be combined. Contextual grounding describes how a component is instantiated against the current collection of atoms. An operational semantics then describes the effect of each API-level action.

This combination gives the architecture an inspectable meaning. A procedural controller is not merely issuing commands to an opaque engine. Its operations correspond to defined changes in the logical state against which the next search occurs.

The method, step by step

Start with a logical description and a controller

The basic arrangement has a declarative side and a procedural side. Logical rules describe the problem. A controller determines which rules are instantiated, how inputs change, and when the solver searches.

The distinction between storing a rule and grounding it is essential. Loading or adding a non-ground subprogram makes it available for later use. It does not immediately put all of its possible instances into the solver. Grounding performs that transition for selected subprograms and parameter values.

Once grounding has occurred, solving considers the accumulated ground program. A solve call is therefore not restricted to the subprogram mentioned in the most recent grounding operation. It searches the current combined representation.

The lifecycle of a changing ASP problem

The steps in order.

The lifecycle of a changing ASP problemStep 1: Store named logical subprograms1. Store named logical subprogramsStep 2: Choose components and parameter values2. Choose components and parameter valuesStep 3: Ground against the current atom base3. Ground against the current atom baseStep 4: Join compatible grounded components4. Join compatible grounded componentsStep 5: Assign or retire external inputs5. Assign or retire external inputsStep 6: Solve with optional search assumptions6. Solve with optional search assumptionsStep 7: Inspect answers and continue the process7. Inspect answers and continue the process

There is no statistical training procedure in this method. The inputs are logical programs, problem instances, and controller decisions. Learning refers to restrictions recorded during solver search, instead of fitting a system to a training dataset.

Understand what a rule says

The formal development begins with normal rules. A rule has a head, positive conditions, and conditions expressed through default negation.

a₀ ← a₁, …, aₘ, not aₘ₊₁, …, not aₙ

Here, a₀ is the head atom. The atoms a₁ through aₘ are positive body conditions, while aₘ₊₁ through aₙ occur under default negation. The indices identify positions in the rule. An atom expresses a proposition, possibly through a predicate applied to terms. Terms can contain constants, variables, and functions.

A rule with an empty body is a fact. A ground rule contains no variables. Grounding replaces variables with terms to obtain instances suitable for propositional solving.

An answer set must do more than satisfy each rule in isolation. The paper uses stable semantics to exclude unsupported choices of atoms. Its definition proceeds through a reduct: retain rules whose negative conditions are compatible with a candidate answer and remove those negative conditions.

Pˣ = {head(r) ← body⁺(r) | r ∈ ground(P), body⁻(r) ∩ X = ∅}

P is a program, X is a candidate set of true ground atoms, and Pˣ is its reduct relative to X. The expression ground(P) denotes the complete ground instantiation. For a rule r, head(r) is its head, body⁺(r) contains its positive body atoms, and body⁻(r) contains the atoms appearing under default negation. The empty-set symbol ∅ indicates that none of those negatively mentioned atoms belongs to X.

The candidate X is an answer set when it is a subset-minimal satisfying interpretation of this reduct. Subset-minimal means that removing atoms from X cannot leave a smaller satisfying interpretation. This support requirement later explains why making an atom an external input differs from merely requiring it as a search assumption.

Although the formal presentation concentrates on normal programs, the implementation also accepts disjunctive programs. The narrower formal language keeps the development manageable; it does not define the full implementation boundary.

Divide the program into named parts

Clingo’s program declaration associates subsequent rules with a name and optional parameters.

#program n(p₁, …, pₖ)

The symbol n names the subprogram. The symbols p₁ through pₖ are its parameters, and k indicates the parameter count. The declaration’s scope extends until another program declaration or the end of the input.

Rules preceding any explicit declaration belong to the default subprogram, base. A later declaration of base contributes further rules to that same part. Subprogram identity therefore does not require all its rules to occupy a single uninterrupted region.

The paper’s opening example uses base to store a(1) and a(2). A second subprogram, acid(k), contains b(k) and a rule deriving c(X,k) from a(X). Instantiating acid with 42 replaces k while leaving the ordinary variable X for grounding.

R(n)[p₁/t₁, …, pₖ/tₖ]

R(n) is the subprogram named n. Each expression pᵢ/tᵢ means that parameter pᵢ is replaced by actual term tᵢ. The bracketed expression denotes the instantiated subprogram. The paper notes that clingo’s practical instantiation also accommodates unification and arithmetic evaluation.

This example reveals the difference between availability and use. If only acid(42) is grounded, the fact b(42) is produced. There are no available a-atoms to support instances of the other rule, so no corresponding c-atoms emerge. If base is grounded first, its a-atoms provide the context needed to generate those instances.

Ground against the atoms currently available

The paper calls the context used during grounding an atom base. It contains ground atoms relevant to the current stage. Grounding a new subprogram can extend this base with atoms defined by newly generated rules.

This procedure avoids a full enumeration over every term. In the example, grounding against a(1) and a(2) produces the useful c-instances without generating an instance dependent on unavailable a(42).

The formal definition permits simplifications, provided they preserve the relevant semantics.

D = C ∪ Head(R꜀)

C is the existing atom base. R꜀ is a contextual grounding of non-ground rules R relative to C. Head(R꜀) is the set of heads in the generated program, and D is the resulting atom base. The union symbol ∪ combines the existing atoms with newly produced heads.

The generated rules must also remain connected to legitimate instances of the original program.

R꜀ ⊆ {head(r) ← body⁺(r) ∪ {not a | a ∈ body⁻(r) ∩ D} | r ∈ ground(R), body⁺(r) ∪ {head(r)} ⊆ D}

The subset symbol ⊆ means that contextual grounding may retain a selection from the displayed collection. The variable r ranges over complete ground instances of R. Positive body atoms and the head must lie in D. Negative conditions are retained only for atoms present in D. The variable a ranges over negatively mentioned atoms that remain relevant to this base.

This rule-selection condition alone would be too weak. The definition also requires semantic agreement with full grounding when the old context is represented as available choices.

Q = {{a} ← | a ∈ C ∖ Head(ground(R))}

Q is a set of choice rules. Each choice rule permits an atom a to be selected without requiring it. The set difference ∖ excludes atoms that the new program itself defines. These choices represent the freedom supplied by context atoms instead of treating the entire context as compulsory facts.

The final requirement is that R꜀ combined with Q and ground(R) combined with Q have identical answer sets. This permits implementation-specific simplifications while fixing what those simplifications must preserve.

The authors illustrate the process with rules that derive a(X) when f(X) and e(X) hold, and b(X) when f(X) holds without e(X). With f(1), f(2), and e(1) available, a rule requiring e(2) is irrelevant, while a negative condition involving unavailable e(2) can disappear. Such simplification is useful, but it also makes future interfaces important.

Declare inputs that must survive simplification

An external declaration marks an atom as potentially supplied from outside the current program.

#external a : B

The symbol a is the atom to be declared, and B is a body that determines which instances of the declaration are generated. The declaration is schematic when variables occur.

For grounding purposes, the paper treats a declaration rather like a rule with a special marker. That marker distinguishes declarations from ordinary logical definitions. After grounding, declaration instances contribute external atoms, while the corresponding temporary rules are discarded.

This means the body of an external declaration selects its instances. It does not become a continuing logical rule that computes their truth. The paper recommends using domain predicates in these conditions because their extensions can be settled during grounding.

An external atom has a changeable truth value until an ordinary rule defines it. Its initial value is false. The controller may set it true, false, or undefined. Undefined permits a choice during search.

For a program with externals, only declarations not already superseded by definitions remain inputs.

I = E ∖ Head(P)

E is the set of declared external atoms. P is the ground program, Head(P) contains its defined head atoms, and I is the remaining input set. An atom defined by P is governed by the rules rather than by an external assignment.

The assignment’s effect can be expressed by extending the program.

Pᵥ = P ∪ {a ← | a ∈ Vᵗ} ∪ {{a} ← | a ∈ Vᵘ}

Pᵥ is the program used under assignment V. The set Vᵗ contains inputs assigned true, and Vᵘ contains those left undefined. True inputs contribute facts; undefined inputs contribute choices. Other inputs are false by default.

In the paper’s example, e(1) remains external, preserving both its positive and negative uses. No such declaration preserves e(2), so its occurrences can be simplified away. Later making e(2) available does not reconstruct rules that an earlier grounding step discarded.

Compose grounded components through modules

The paper represents a grounded component as a module with a program, inputs, and outputs.

M = (P, I, O)

M is the module. P contains ground rules, I contains input atoms, and O contains output atoms. Inputs and outputs must be disjoint. Every atom mentioned by P must occur in their union, and every rule head must belong to O.

These conditions separate what the component defines from what it expects elsewhere. They also permit an input to acquire a definition when a later component is joined.

For safe composition, the output sets of the components must not overlap. In addition, a positively recursive dependency component cannot span their outputs. Informally, all definitions of an atom must remain together, and mutual positive dependence must stay inside a module.

M₁ ⊔ M₂ = (P₁ ∪ P₂, (I₁ ∖ O₂) ∪ (I₂ ∖ O₁), O₁ ∪ O₂)

The operator ⊔ denotes a module join. Subscripts distinguish the constituent modules and their programs, inputs, and outputs. Programs and outputs are combined. An input disappears from the joined input interface when the other module defines it as an output.

The module theorem connects this construction to answer sets. Compatible answers of the constituent modules can be combined when they agree on their shared interface. This gives a semantic foundation for assembling a solver’s program incrementally.

Grounding an extensible subprogram against an existing context produces exactly this kind of module.

M(R,C) = (P, (C ∪ E) ∖ Head(P), Head(P))

R is the non-ground extensible subprogram, C is the prior atom base, P is its contextual ground program, and E contains the generated externals. The module’s outputs are P’s heads. Its inputs are old context atoms and generated externals that P does not define.

Successive grounding operations then extend the current program state.

Mᵢ₊₁ = Mᵢ ⊔ M(Rᵢ₊₁, Iᵢ ∪ Oᵢ)

Mᵢ is the module before the next grounding operation. Rᵢ₊₁ is the next selected subprogram instance or collection of instances. Iᵢ and Oᵢ supply the existing atom base. Mᵢ₊₁ is the joined state, provided composition is defined.

The qualification matters. Clingo detects redefinition of atoms, but the paper says it does not perform a complete check for cycles across modules. A controller and its encodings must therefore satisfy conditions stronger than the implementation’s immediate checks.

Track the whole system state

A module captures the solver’s grounded logical contents, but a running system also retains non-ground material and input assignments.

S = (R⃗, M, V)

S is the ASP system state. R⃗ is the collection of stored non-ground subprograms. M is the grounded module currently available to solving. V is the assignment over M’s inputs.

The operational semantics describes actions on this state. Creating a system partitions the input into subprograms and begins with an empty grounded module. Adding material extends the stored non-ground collection. It leaves the grounded program unchanged until an appropriate grounding operation occurs.

Grounding instantiates selected components, joins the resulting module, and preserves assignments for atoms that remain inputs. Newly introduced inputs start false. If grounding supplies an ordinary definition for an external atom, that atom leaves the input interface and its external assignment ceases to govern it.

The distinction between jointly and separately grounding components also matters. A single grounding operation handles its selected components together. Separate operations create successive contexts and must satisfy composition at each stage.

In the base–acid example, grounding acid before base loses c-rule instances dependent on a-atoms that were unavailable at the earlier step. Grounding base before acid preserves them. Joint grounding avoids that particular ordering problem by allowing the parts to be considered together.

Distinguish changing an input from retiring it

Assignment changes an existing input’s value. Setting it false leaves it available for a later true assignment. This is appropriate for a condition that may return, such as a game location used in another round.

Release has a different meaning. It removes an atom’s input status and fixes it false in the formal state. The atom is placed among outputs without receiving a defining rule, preventing later redefinition under the composition discipline.

The paper gives algebraic properties that clarify these lifetimes. Releasing an atom again changes nothing. Assigning it after release has no effect. Among ordinary assignments, the latest applicable assignment determines the value.

This distinction explains the planning controller’s handling of old goals. A previous horizon’s goal condition is no longer needed, so its switch can be released. By contrast, the Ricochet Robots controller merely resets old position and goal inputs because those inputs belong to a reusable bounded representation.

A solve operation leaves the abstract logical state unchanged. It returns answer sets satisfying the current external assignment and any assumptions attached to that search.

X(M,V,Aᵗ,Aᶠ) = {X | X is an answer set of P under V, Aᵗ ⊆ X, Aᶠ ∩ X = ∅}

X(M,V,Aᵗ,Aᶠ) denotes the returned collection. Within the braces, X denotes an individual candidate answer set. M supplies ground program P, V supplies external assignments, Aᵗ contains atoms required true, and Aᶠ contains atoms required false. The intersection condition excludes answers containing a forbidden atom.

A true assumption does not provide a missing definition. It requires the answer to contain an atom that must already have suitable logical support. A true external input, by contrast, supplies that atom as a fact for the current assignment.

This difference prevents an application from substituting one mechanism for the other without changing meaning. Assumptions select among supported answers during a search. External inputs participate in defining the reasoning situation across searches.

The abstract state omits implementation details such as learned constraints and heuristic scores. Thus a solve operation can leave the formal program state unchanged while the persistent solver acquires information that affects the cost of later searches.

Build incremental planning from these operations

The incremental planning pattern divides knowledge into static rules, accumulating transition rules, and a goal check associated with the current horizon. Clingo expresses these roles through subprograms conventionally named base, step, and check.

The controller first grounds the static part and the initial check. It then activates the current query atom and solves. If the stopping condition is unmet, it introduces another transition stage and a new check, disables the previous check, and searches again.

The Towers of Hanoi case study illustrates this process. Its controller invokes solving 16 times before finding a plan whose length is 15. These figures describe the worked example, not the larger experimental benchmark.

A cleanup facility allows established solver information to simplify subsequent grounding. Atoms whose status is settled can be removed from the relevant atom base or treated as facts. This provides communication from solving back to grounding, beyond merely adding another program part.

Encode growing cardinality constraints

The queens case study examines a subtler problem: preserving constraints while the set of possible positions grows. An at-most-one condition must exclude pairs of occupied positions without requiring reconstruction of all previous rules.

The paper introduces q-atoms for occupied positions and a-atoms for propagated attacks. In the at-most-one encoding, attacks travel towards newly added positions. A new position is attacked if the neighboring previous position contains a queen or an attack has already reached that neighbor.

The resulting answers have a simple form.

X = ∅ or X = {qᵢ, aᵢ₊₁, …, aₙ}, where 1 ≤ i ≤ n

X is an answer set, qᵢ indicates the selected position, and the following a-atoms indicate propagated attacks. The indices i and n identify the occupied position and current sequence boundary. The empty answer represents selecting no position.

Exactly-one requires excluding the empty selection. The paper reverses the propagation direction and declares the frontier attack atom external. A future component can then define that input when the sequence grows.

X = {a₁, …, aᵢ₋₁, qᵢ}, where 1 ≤ i ≤ n

The symbols retain their roles, but attacks now propagate toward earlier positions. The admissible answers select a position and carry the corresponding earlier attack indicators. The external frontier preserves the possibility that support will arrive from a later extension.

The queens encoding applies these schemes to rows, columns, and diagonals. Rows and columns require exactly-one conditions; diagonals require at-most-one conditions. Links between cells follow the board’s growth while avoiding cross-component positive cycles.

This is more than an alternative notation for a familiar puzzle. The encoding is designed so that constraints accumulated at earlier sizes remain relevant as the board expands. The controller can ground intermediate sizes while requesting solutions only at selected sizes.

Reuse a bounded problem across game rounds

Ricochet Robots illustrates a different progression. Its board has 16×16 fields and four robots. A robot slides until a wall or another robot stops it, so another robot’s position can be instrumental in reaching a target.

The bounded encoding fixes a horizon and grounds the problem once. External atoms identify the current target and initial robot positions. Between rounds, the controller clears previous assignments, activates the new target and starting configuration, and solves the existing representation.

A callback inspects each answer and extracts the robots’ final positions. Those positions become the next round’s starting inputs. The reasoning engine therefore participates in an application loop whose state extends beyond the logic program.

The optimization extension favors reaching the target earlier within the bound. After achievement, repeated moves can leave positions unchanged, allowing the fixed-horizon representation to express a shorter effective plan. In the illustrated horizon of 10, the goal is achieved after nine moves and the final move repeats the preceding one.

This bounded round-playing example should be distinguished from the experiments’ shortest-plan procedure, which increases horizons. The same multi-shot architecture supports both, but their grounding schedules differ.

Let objectives evolve as well

The paper also allows optimization criteria to change with the program. A minimize contribution carries a weight, priority, and identifying terms.

w@p, t⃗

The integer w is the weight, p is the priority level, and t⃗ is the sequence of terms identifying the contribution. These annotations organize the objective attached to relevant literals.

A cumulative objective acquires contributions as additional subprogram instances are grounded. Earlier contributions remain present. A volatile objective additionally depends on an external activation atom, so selected contributions can cease to affect optimization when their switch becomes false.

This extends the architecture beyond changing feasibility conditions. An application can preserve the underlying search representation while changing what it prefers among admissible answers.

Experiments and results

What the evaluation isolates

The experiments focus on solving rather than on benchmarks dominated by grounding. The authors explain that earlier work had already demonstrated substantial grounding savings. Their question here is how much a persistent solver benefits from information accumulated during earlier searches.

The evaluation uses clingo version 4.5.4. Each task searches for a shortest plan by increasing the horizon until a plan appears. The benchmark families are Towers of Hanoi, Ricochet Robots, and ASP translations of planning tasks originally expressed in PDDL.

The baseline, single, restarts grounding and solving at every horizon. The multi-shot alternatives preserve the operational process but vary retention of recorded nogoods and heuristic values. Default solver configuration is used apart from the option controlling what is forgotten between steps.

Runs execute sequentially on a Linux machine with Xeon E5520 2.27GHz processors. Each run has a wall-clock limit of 3000 seconds. The experiments impose no effective memory restriction.

The main measures are runtime, completed instances, and search conflicts. The paper presents runtime and conflict cactus plots, which order instances by their measured cost. These plots support comparisons across instances without requiring that a particular horizontal position refer to the same task for every setting.

Towers of Hanoi

The Towers of Hanoi benchmark contains 45 instances. Restarting at every horizon completes none within the allotted time. Both multi-shot settings that discard longer recorded nogoods complete all 45 instances.

That result initially appears surprising because a setting described as discarding nogoods still benefits substantially from persistence. The implementation explains the apparent contradiction. Unary restrictions are asserted, while binary and ternary nogoods remain in dedicated persistent structures. The forgetting settings do not remove that short information.

Consequently, the comparison is not between a solver retaining no learned information and one retaining everything. Even the most forgetful multi-shot variant preserves short restrictions that a restarted solver must rediscover.

The authors also check that solving accounts for the major part of runtime in these settings. The gain cannot therefore be attributed solely to avoiding repeated grounding. Reduced conflict counts provide direct evidence of less repeated search.

Preserving longer nogoods improves this benchmark further. The text reports additional reductions in runtime and conflicts by factors of about 5 or 1.5 across the relevant comparisons. Those are reported approximate factors, rather than values reconstructed from the plotted curves.

Keeping heuristic scores does not provide a corresponding benefit. The settings that reset them save a modest portion of runtime against their retaining counterparts. The authors interpret this as evidence that extending a planning horizon need not reward continuing with the previous search bias.

Ricochet Robots

The Ricochet Robots benchmark contains 38 instances. The restarted baseline completes 22. The most successful multi-shot setting, which resets heuristic values and discards longer recorded nogoods, completes the full benchmark.

Ricochet Robots planning, instances completed within 3000 seconds

The most successful multi-shot setting completes the benchmark that restarting only partly solves.

Ricochet Robots planning, instances completed within 3000 secondssingle: 22single22multi -heuristic -nogoods (this paper): 38multi -heuristic -nogoods (this paper)38
The numbers
System or settingcompleted instances
single22
multi -heuristic -nogoods (this paper)38

The important contrast with Towers of Hanoi concerns long nogoods. Retaining them does not significantly reduce conflicts at later horizons on this benchmark. Their maintenance cost therefore produces overhead without a matching reduction in search.

The settings that discard those longer restrictions lead in runtime and completed instances. Whether heuristic values are retained has little effect by comparison. The evidence again separates the value of retaining short logical restrictions from the value of preserving the previous search’s preferences.

The chart compares completion counts only. It does not imply that every completed task takes similar time, or that the leading setting achieves the same proportional improvement across instances. The cactus plots contain the broader runtime pattern, while the written counts provide a clear measure of coverage under the limit.

Planning tasks translated from PDDL

The PDDL-derived benchmark contains 20 instances. All multi-shot settings show a substantial performance separation from restarting. Only the settings that discard long nogoods complete every instance within the time limit.

Comparing runtime with conflicts explains the authors’ interpretation. Long-nogood retention adds cost without dependable reductions in search. Short learned information still appears valuable because multi-shot settings encounter fewer conflicts than the baseline.

The paper does not provide a complete numerical runtime table for these settings. Its strongest directly stated conclusions concern the overall separation, full completion by the forgetting settings, and the mismatch between long-constraint overhead and search savings.

The PDDL label identifies the origin and translation route of the planning tasks. It should not be read as evidence about every planning domain expressible in that language.

Memory and the scope of the measurements

The evaluation reports peak memory across the benchmarks. Multi-shot solving reaches 187 MB; the single-shot setting reaches 150 MB.

Peak memory across the evaluated planning benchmarks

Multi-shot solving uses somewhat more peak memory in these experiments.

Peak memory across the evaluated planning benchmarkssingle: 150single150multi-shot (this paper): 187multi-shot (this paper)187
The numbers
System or settingMB
single150
multi-shot (this paper)187

The authors suggest that larger learned-clause databases probably account for the additional consumption. They also emphasize that these tasks are not demanding memory tests and that grounding uses negligible memory in this evaluation.

The memory chart therefore complements the runtime findings without explaining them completely. It establishes the measured peaks, but it does not isolate the space occupied by every kind of retained state. Nor does it determine how persistence behaves when the grounded representation itself becomes a major memory cost.

Across the evaluated families, the consistent finding is fewer conflicts with multi-shot solving. The more conditional finding is runtime: the usefulness of long learned restrictions varies with the benchmark. This distinction is the empirical center of the paper.

What the ablations show

The retention settings separate different explanations

The paper offers controlled comparisons of solver-state retention. Its standard multi setting carries forward recorded nogoods and heuristic values. Another resets heuristics while retaining recorded restrictions. A further setting keeps heuristic values while discarding the configurable nogoods. The remaining setting resets both.

These comparisons ask a practical causal question. Does multi-shot solving improve because it remembers logical consequences of failed search, because it retains a useful ordering of search decisions, or because its persistent representation already avoids other repeated work?

The settings make progress on that question, but they do not erase every kind of memory independently. Short nogoods remain available through the implementation’s dedicated structures. Any interpretation of the forgetting comparisons has to retain that qualification.

Short learned restrictions explain part of the persistent advantage

The conflict results show that even the setting resetting both configurable categories can avoid work repeated by single-shot solving. The paper attributes this to short learned information that remains persistent.

That observation prevents an overly narrow account of incremental solving. Avoiding regeneration of rules matters, but preserving the solver process also retains compact restrictions on unsuccessful assignments. Those restrictions can be useful even when the search horizon changes.

The authors support this reading by checking where runtime is spent on Towers of Hanoi. Because solving dominates, reduced search work is a material part of the result. The experiment therefore provides evidence beyond a simple claim that grounding once is cheaper than grounding repeatedly.

It does not, however, supply an isolated measurement for unary, binary, and ternary information individually. Their separate contributions cannot be ranked from these comparisons.

Long nogoods have problem-dependent value

Towers of Hanoi rewards retaining longer restrictions. The associated decrease in conflicts is accompanied by better runtime, indicating that the retained database prevents enough search to justify its cost.

Ricochet Robots and the PDDL-derived tasks exhibit the other side of the tradeoff. The longer restrictions do not consistently prevent enough conflicts at extended horizons. Carrying them forward slows the process.

This is a useful negative result. Information can remain logically valid without remaining computationally worthwhile. Multi-shot solving creates the opportunity for reuse; it does not make every reusable object valuable.

The authors identify adaptive filtering of older learned restrictions as a future direction. Such a mechanism would need to assess relevance across changes in the problem, beyond the ordinary deletion mechanisms already used during search. The paper motivates that design goal but does not implement and evaluate it.

Heuristic persistence is a weaker factor here

The paired comparisons differing only in heuristic retention show broadly similar behavior. Resetting heuristics can help modestly on Towers of Hanoi, while the effect is small on Ricochet Robots.

A plausible interpretation, consistent with the authors’ discussion, is that a larger horizon alters the search sufficiently that old preferences offer no dependable shortcut. The experiments do not establish that heuristic persistence is generally harmful. They establish that it matters less than nogood treatment in these tasks.

This conclusion is tied to the evaluated progression: repeated planning with increasing horizons. A sequence of different application queries could have another relationship between earlier and later searches.

The encoding analyses expose another source of reuse

The cardinality examples are analytical comparisons rather than timed ablations. They show how reversing propagation and preserving a frontier input can keep an exactly-one condition valid as the domain grows.

Removing the non-emptiness restriction gives an at-most-one variant. Removing the restriction against a queen at an attacked position gives an at-least-one variant. These changes explain which part of the construction enforces each requirement.

The comparison with a query-guarded alternative also clarifies why encoding design affects learning. A condition that must be retired at each extension can undermine reuse associated with that condition. The proposed encoding retains constraints across steps instead.

The paper does not report a separate benchmark isolating the runtime contribution of this queens encoding. Its evidence is the construction, its answer-set characterization, and the account of compositionality.

Limitations

Limits stated by the authors

The formal development is deliberately restricted to normal logic programs. Clingo’s implementation handles a broader language, including disjunctive programs, but the paper’s proofs should be read within their stated formal scope.

Composition is another explicit qualification. The module construction requires disjoint definitions and confines positive recursion to appropriate components. The implementation checks atom redefinition but does not check all cross-module cycles. Successful execution without an immediate error is therefore not a complete certificate that an encoding satisfies the formal assumptions.

The authors also emphasize contextual grounding’s effect on later behavior. An atom omitted or simplified away during an earlier stage may acquire a definition later without recovering its former logical relationships. External declarations are a way to preserve intended dependencies, but they must be placed deliberately.

Memory coverage is explicitly limited. The evaluated problems use little grounding memory and do not place the system under strong memory pressure. The reported peaks do not establish how well the approach scales when a long-running application accumulates a much larger grounded program.

The paper identifies adaptive treatment of old nogoods as unfinished work. Its results demonstrate why such selection could help, but they do not supply a general policy for deciding what to retain.

The conclusion likewise treats richer change operations as a research direction. Updating, forgetting, revision, and merging have theoretical treatments, but the multi-shot API does not by itself implement every such semantics. The framework offers a place to engineer those operations.

Limits visible in the experimental design

The evaluation concerns planning sequences with increasing horizons. That is a strong fit for incremental assembly because each new task extends a structured earlier one. The results do not directly measure arbitrary replacements of rules, changing user questions, or streams with substantial turnover.

The case studies broaden the architectural argument without broadening the runtime benchmark to the same extent. Ricochet Robots demonstrates interaction across rounds, and queens demonstrates growing cardinality constraints. These examples establish expressiveness and explain implementation patterns. They do not provide comprehensive comparative measurements for those application styles.

The experiments use clingo version 4.5.4, while the broader presentation discusses interfaces in the clingo 5 series. The authors explain that the transition adjusted interfaces without altering the principal multi-shot capability. Nevertheless, measured performance belongs to the evaluated version and configuration.

The paper compares multi-shot variants against restarting, rather than reporting a broad contest among alternative reasoning architectures. It therefore supports conclusions about the value of persistence within this setup more directly than conclusions about which system should be chosen for every application.

The forgetting settings also limit attribution. Because short nogoods survive, the experiments cannot identify the result of eliminating all learned information while keeping every other persistent mechanism intact. Their labels need to be interpreted through the implementation details.

Finally, cactus plots and selected written counts leave some quantitative questions unanswered. The paper does not state a complete set of aggregate runtimes, repeated-run variability, or per-instance numerical comparisons. It is possible to explain the reported trends without inventing those missing measurements.

Limits of the architecture itself

Multi-shot solving makes control explicit, which also gives the application more responsibility. The controller must manage the sequence of grounding operations, the assignment of inputs, and the lifetime of conditions. An incorrect schedule can change the represented problem.

There is also a meaningful difference between disabling a rule and physically removing its representation. An external switch can make a condition ineffective while its grounded machinery remains present. Cleanup permits simplification in appropriate circumstances, but temporary deactivation alone is not evidence that all associated storage disappears.

The formal state is intentionally selective. It captures stored non-ground programs, grounded logical contents, and input assignments. It does not attempt to describe every internal solver object or every performance-relevant change. This is appropriate for a semantic account, but a full operational audit would require additional instrumentation.

Multi-shot access to completed answers must also be distinguished from theory propagation during search. The paper describes separate interfaces for theory reasoning over partial assignments. An application needing that deeper interaction cannot obtain it merely by inspecting answers between solve calls.

For a prospective language-system application, the most important limit is transfer. The paper supplies no evaluation of Mova, linguistic accuracy, or language-processing throughput. Its relevance lies in the organization of changing symbolic reasoning. Whether that organization improves a particular language task remains an empirical question.

What came after

The paper distinguishes the introduction of multi-shot functionality from the fuller semantic and practical account developed here. It traces the functionality to the clingo 4 series and describes the clingo 5 interfaces as refinements of that established capability. Its contribution should therefore be understood as consolidating an already usable architecture, explaining its semantics, and investigating selected performance consequences.

The authors report that the framework had already supported several ASP-based systems. Asprin used clingo facilities for preferences, while aspic addressed interactive query answering. Rosoclingo connected ASP reasoning with robotics, and dflat used the framework in its own reasoning environment. These examples show that the procedural–declarative division was useful beyond the planning benchmarks.

The paper also notes implementations of aggregate handling and the use of clingo’s API by dlvhex. These are different forms of reuse: some applications manage a sequence of reasoning tasks, while others use interfaces for program transformation or integration. They should not all be treated as evidence for the same runtime benefit.

A more direct continuation of the change-semantics question is moviola. The authors describe it as an initial effort to realize updates of logic programs through multi-shot solving. That direction follows from a central distinction in the paper: an interface for changing a program supplies operational machinery, while an update semantics determines what the changed program ought to mean.

The later citing work listed for this paper is AMATI at BEA 2026 Shared Task 2. Its title identifies automatic short-answer grading that combines inductive logic programming with a large language component. The available information establishes that it cites this paper, but does not specify the mechanism borrowed from multi-shot solving.

That limit matters. The citation does not establish that AMATI retains a clingo process across grading examples, manages rules through external inputs, or reports a speed improvement from incremental search. Those would be distinct technical claims requiring details about its implementation and experiments.

The connection that can be drawn safely is narrower: clingo’s account of controllable logical reasoning appears among the references of later work on logic-based answer grading. The exact role of persistence in that system remains unspecified.

The enduring research questions are already visible in the original paper. How should a controller choose which components to instantiate? Which prospective dependencies must remain explicit? Which learned restrictions deserve to survive a change? And how can richer notions of updating or revising knowledge be implemented while preserving a clear semantic account? Multi-shot solving provides concrete machinery for investigating those questions, together with experiments showing that the answers affect both correctness and computational cost.

Cite

Cite as Martin Gebser, Roland Kaminski, Benjamin Kaufmann and Torsten H. Schaub. 2018. Multi-shot ASP solving with clingo. Theory and Practice of Logic Programming.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1017/s1471068418000054 · arXiv 1705.09811

@inproceedings{gebser2018multi,
  title = {{Multi-shot ASP solving with clingo}},
  author = {Martin Gebser, Roland Kaminski, Benjamin Kaufmann and Torsten H. Schaub},
  booktitle = {Theory and Practice of Logic Programming},
  year = {2018},
  doi = {10.1017/s1471068418000054},
  eprint = {1705.09811},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1017/s1471068418000054}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/gebser-2018-multi-shot-asp-solving-clingo/

References

61 references, from the paper's own bibliography.

  1. Abiteboul, S., Hull, R., and Vianu, V. 1995. Foundations of Databases. Addison-Wesley. OpenAlex ↗ · Scholar ↗
  2. Abseher, M., Bliem, B., Charwat, G., Dusberger, F., Hecher, M., and Woltran, S. 2014. The D-FLAT system for dynamic programming on tree decompositions. In Proceedings of the Fourteenth European Conference on Logics in Artificial Intelligence (JELIA'14), E. Fermé and J. Leite, Eds. Lecture Notes in Artificial Intelligence, vol. 8761. Springer-Verlag, 558–572. OpenAlex ↗ · Scholar ↗
  3. Alferes, J., Pereira, L., Przymusinska, H., and Przymusinski, T. 2002. LUPS: A language for updating logic programs. Artificial Intelligence 138, 1-2, 87–116. OpenAlex ↗ · Scholar ↗
  4. Alviano, M., Dodaro, C., Leone, N., and Ricca, F. 2015. Advances in WASP. See [lpnmr15], 40–54. OpenAlex ↗ · Scholar ↗
  5. Alviano, M., Faber, W., and Gebser, M. 2015. Rewriting recursive aggregates in answer set programming: Back to monotonicity. Theory and Practice of Logic Programming 15, 4-5, 559–573. Available at http://arxiv.org/abs/1507.03923. OpenAlex ↗ · Scholar ↗
  6. Alviano, M. and Leone, N. 2015. Complexity and compilation of GZ-aggregates in answer set programming. Theory and Practice of Logic Programming 15, 4-5, 574–587. OpenAlex ↗ · Scholar ↗
  7. Andres, B., Kaufmann, B., Matheis, O., and Schaub, T. 2012. Unsatisfiability-based optimization in clasp. In Technical Communications of the Twenty-eighth International Conference on Logic Programming (ICLP'12), A. Dovier and V. Santos Costa, Eds. Vol. 17. Leibniz International Proceedings in Informatics (LIPIcs), 212–221. OpenAlex ↗ · Scholar ↗
  8. Andres, B., Rajaratnam, D., Sabuncu, O., and Schaub, T. 2015. Integrating ASP into ROS for reasoning in robots. See [lpnmr15], 69–82. OpenAlex ↗ · Scholar ↗
  9. Balduccini, M. and Janhunen, T., Eds. 2017. Proceedings of the Fourteenth International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR'17). Lecture Notes in Artificial Intelligence, vol. 10377. Springer-Verlag. OpenAlex ↗ · Scholar ↗
  10. Banbara, M., Kaufmann, B., Ostrowski, M., and Schaub, T. 2017. Clingcon: The next generation. Theory and Practice of Logic Programming 17, 4, 408–461. OpenAlex ↗ · Scholar ↗
  11. Baral, C. 2003. Knowledge Representation, Reasoning and Declarative Problem Solving. Cambridge University Press. OpenAlex ↗ · Scholar ↗
  12. Brewka, G., Delgrande, J., Romero, J., and Schaub, T. 2015a. asprin: Customizing answer set preferences without a headache. In Proceedings of the Twenty-Ninth National Conference on Artificial Intelligence (AAAI'15), B. Bonet and S. Koenig, Eds. AAAI Press, 1467–1474. OpenAlex ↗ · Scholar ↗
  13. Brewka, G., Delgrande, J., Romero, J., and Schaub, T. 2015b. Implementing preferences with asprin. See [lpnmr15], 158–172. OpenAlex ↗ · Scholar ↗
  14. Brewka, G., Eiter, T., and McIlraith, S., Eds. 2012. Proceedings of the Thirteenth International Conference on Principles of Knowledge Representation and Reasoning (KR'12). AAAI Press. OpenAlex ↗ · Scholar ↗
  15. Cabalar, P. and Son, T., Eds. 2013. Proceedings of the Twelfth International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR'13). Lecture Notes in Artificial Intelligence, vol. 8148. Springer-Verlag. OpenAlex ↗ · Scholar ↗
  16. Calimeri, F., Cozza, S., and Ianni, G. 2007. External sources of knowledge and value invention in logic programming. Annals of Mathematics and Artificial Intelligence 50, 3-4, 333–361. OpenAlex ↗ · Scholar ↗
  17. Calimeri, F., Faber, W., Gebser, M., Ianni, G., Kaminski, R., Krennwallner, T., Leone, N., Ricca, F., and Schaub, T. 2012. ASP-Core-2: Input language format. Available at https://www.mat.unical.it/aspcomp2013/ASPStandardization. OpenAlex ↗ · Scholar ↗
  18. Calimeri, F., Ianni, G., and Truszczyński, M., Eds. 2015. Proceedings of the Thirteenth International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR'15). Lecture Notes in Artificial Intelligence, vol. 9345. Springer-Verlag. OpenAlex ↗ · Scholar ↗
  19. De Cat, B., Bogaerts, B., Bruynooghe, M., and Denecker, M. 2014. Predicate logic as a modelling language: The IDP system. CoRR abs/1401.6312. OpenAlex ↗ · Scholar ↗
  20. de Moura, L. and Bjørner, N. 2008. Z3: An efficient SMT solver. In Proceedings of the Fourteenth International Conference on Tools and Algorithms for the Construction and Analysis of Systems (TACAS'08), C. Ramakrishnan and J. Rehof, Eds. Lecture Notes in Computer Science, vol. 4963. Springer-Verlag, 337–340. OpenAlex ↗ · Scholar ↗
  21. De Pooter, S., Wittocx, J., and Denecker, M. 2013. A prototype of a knowledge-based programming environment. In Proceedings of the Nineteenth International Conference on Applications of Declarative Programming and Knowledge Management (INAP'11) and the Twenty-fifth Workshop on Logic Programming (WLP'11), H. Tompits, S. Abreu, J. Oetsch, J. Pührer, D. Seipel, M. Umeda, and A. Wolf, Eds. Lecture Notes in Computer Science, vol. 7773. Springer-Verlag, 279–286. OpenAlex ↗ · Scholar ↗
  22. Delgrande, J. and Faber, W., Eds. 2011. Proceedings of the Eleventh International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR'11). Lecture Notes in Artificial Intelligence, vol. 6645. Springer-Verlag. OpenAlex ↗ · Scholar ↗
  23. Delgrande, J., Schaub, T., Tompits, H., and Woltran, S. 2008. Belief revision of logic programs under answer set semantics. In Proceedings of the Eleventh International Conference on Principles of Knowledge Representation and Reasoning (KR'08), G. Brewka and J. Lang, Eds. AAAI Press, 411–421. OpenAlex ↗ · Scholar ↗
  24. Delgrande, J., Schaub, T., Tompits, H., and Woltran, S. 2009. Merging logic programs under answer set semantics. In Proceedings of the Twenty-fifth International Conference on Logic Programming (ICLP'09), P. Hill and D. Warren, Eds. Lecture Notes in Computer Science, vol. 5649. Springer-Verlag, 160–174. OpenAlex ↗ · Scholar ↗
  25. Dimopoulos, Y., Gebser, M., Lühne, P., Romero, J., and Schaub, T. 2017. plasp 3: Towards effective ASP planning. See [lpnmr17], 286–300. OpenAlex ↗ · Scholar ↗
  26. Dodaro, C., Gasteiger, P., Leone, N., Musitsch, B., Ricca, F., and Schekotihin, K. 2016. Driving CDCL search. CoRR abs/1611.05190. OpenAlex ↗ · Scholar ↗
  27. Dodaro, C., Ricca, F., and Schüller, P. 2016. External propagators in wasp: Preliminary report. In Proceedings of the Twenty-third International Workshop on Experimental Evaluation of Algorithms for Solving Problems with Combinatorial Explosion (RCRA'16). Vol. 1745. CEUR Workshop Proceedings, 1–9. OpenAlex ↗ · Scholar ↗
  28. Eén, N. and Sörensson, N. 2003. Temporal induction by incremental SAT solving. Electronic Notes in Theoretical Computer Science 89, 4. OpenAlex ↗ · Scholar ↗
  29. Eén, N. and Sörensson, N. 2004. An extensible SAT-solver. In Proceedings of the Sixth International Conference on Theory and Applications of Satisfiability Testing (SAT'03), E. Giunchiglia and A. Tacchella, Eds. Lecture Notes in Computer Science, vol. 2919. Springer-Verlag, 502–518. our card
  30. Eiter, T., Fink, M., Krennwallner, T., and Redl, C. 2012. Conflict-driven ASP solving with external sources. Theory and Practice of Logic Programming 12, 4-5, 659–679. OpenAlex ↗ · Scholar ↗
  31. Febbraro, O., Leone, N., Grasso, G., and Ricca, F. 2012. JASP: A framework for integrating answer set programming with Java. See [kr12], 541–551. OpenAlex ↗ · Scholar ↗
  32. Fink, M., Germano, S., Ianni, G., Redl, C., and Schüller, P. 2013. ActHEX: Implementing HEX programs with action atoms. See [lpnmr13], 317–322. OpenAlex ↗ · Scholar ↗
  33. Fuscà, D., Germano, S., Zangari, J., Anastasio, M., Calimeri, F., and Perri, S. 2016. A framework for easing the development of applications embedding answer set programming. In Proceedings of the Eighteenth International Symposium on Principles and Practice of Declarative Programming (PPDP'16), J. Cheney and G. Vidal, Eds. ACM Press, 38–49. OpenAlex ↗ · Scholar ↗
  34. Gebser, M., Grote, T., Kaminski, R., Obermeier, P., Sabuncu, O., and Schaub, T. 2012. Stream reasoning with answer set programming: Preliminary report. See [kr12], 613–617. OpenAlex ↗ · Scholar ↗
  35. Gebser, M., Grote, T., Kaminski, R., and Schaub, T. 2011. Reactive answer set programming. See [lpnmr11], 54–66. OpenAlex ↗ · Scholar ↗
  36. Gebser, M., Harrison, A., Kaminski, R., Lifschitz, V., and Schaub, T. 2015. Abstract Gringo. Theory and Practice of Logic Programming 15, 4-5, 449–463. Available at http://arxiv.org/abs/1507.06576. OpenAlex ↗ · Scholar ↗
  37. Gebser, M., Jost, H., Kaminski, R., Obermeier, P., Sabuncu, O., Schaub, T., and Schneider, M. 2013. Ricochet robots: A transverse ASP benchmark. See [lpnmr13], 348–360. OpenAlex ↗ · Scholar ↗
  38. Gebser, M., Kaminski, R., Kaufmann, B., Lindauer, M., Ostrowski, M., Romero, J., Schaub, T., and Thiele, S. 2015. Potassco User Guide, Second edition ed. University of Potsdam. OpenAlex ↗ · Scholar ↗
  39. Gebser, M., Kaminski, R., Kaufmann, B., Ostrowski, M., Schaub, T., and Schneider, M. 2011. Potassco: The Potsdam answer set solving collection. AI Communications 24, 2, 107–124. OpenAlex ↗ · Scholar ↗
  40. Gebser, M., Kaminski, R., Kaufmann, B., Ostrowski, M., Schaub, T., and Thiele, S. 2008. Engineering an incremental ASP solver. In Proceedings of the Twenty-fourth International Conference on Logic Programming (ICLP'08), M. Garcia de la Banda and E. Pontelli, Eds. Lecture Notes in Computer Science, vol. 5366. Springer-Verlag, 190–205. OpenAlex ↗ · Scholar ↗
  41. Gebser, M., Kaminski, R., Kaufmann, B., Ostrowski, M., Schaub, T., and Wanko, P. 2016. Theory solving made easy with clingo 5. In Technical Communications of the Thirty-second International Conference on Logic Programming (ICLP'16), M. Carro and A. King, Eds. Vol. 52. Open Access Series in Informatics (OASIcs), 2:1–2:15. OpenAlex ↗ · Scholar ↗
  42. Gebser, M., Kaminski, R., Kaufmann, B., and Schaub, T. 2012. Answer Set Solving in Practice. Synthesis Lectures on Artificial Intelligence and Machine Learning. Morgan and Claypool Publishers. OpenAlex ↗ · Scholar ↗
  43. Gebser, M., Kaminski, R., Kaufmann, B., and Schaub, T. 2014. Clingo = ASP + control: Preliminary report. In Technical Communications of the Thirtieth International Conference on Logic Programming (ICLP'14), M. Leuschel and T. Schrijvers, Eds. Theory and Practice of Logic Programming, Online Supplement, vol. 14(4-5). Available at http://arxiv.org/abs/1405.3694v1. OpenAlex ↗ · Scholar ↗
  44. Gebser, M., Kaminski, R., König, A., and Schaub, T. 2011. Advances in gringo series 3. See [lpnmr11], 345–351. OpenAlex ↗ · Scholar ↗
  45. Gebser, M., Kaminski, R., Obermeier, P., and Schaub, T. 2015. Ricochet robots reloaded: A case-study in multi-shot ASP solving. In Advances in Knowledge Representation, Logic Programming, and Abstract Argumentation: Essays Dedicated to Gerhard Brewka on the Occasion of His 60th Birthday, T. Eiter, H. Strass, M. Truszczyński, and S. Woltran, Eds. Lecture Notes in Artificial Intelligence, vol. 9060. Springer-Verlag, 17–32. OpenAlex ↗ · Scholar ↗
  46. Gebser, M., Kaufmann, B., Otero, R., Romero, J., Schaub, T., and Wanko, P. 2013. Domain-specific heuristics in answer set programming. In Proceedings of the Twenty-Seventh National Conference on Artificial Intelligence (AAAI'13), M. desJardins and M. Littman, Eds. AAAI Press, 350–356. OpenAlex ↗ · Scholar ↗
  47. Gebser, M., Kaufmann, B., and Schaub, T. 2013. Advanced conflict-driven disjunctive answer set solving. In Proceedings of the Twenty-third International Joint Conference on Artificial Intelligence (IJCAI'13), F. Rossi, Ed. IJCAI/AAAI Press, 912–918. OpenAlex ↗ · Scholar ↗
  48. Gebser, M., Obermeier, P., and Schaub, T. 2013. A system for interactive query answering with answer set programming. In Proceedings of the Sixth Workshop on Answer Set Programming and Other Computing Paradigms (ASPOCP'13), M. Fink and Y. Lierler, Eds. Vol. abs/1312.6143. CoRR. OpenAlex ↗ · Scholar ↗
  49. Gelfond, M. and Lifschitz, V. 1988. The stable model semantics for logic programming. In Proceedings of the Fifth International Conference and Symposium of Logic Programming (ICLP'88), R. Kowalski and K. Bowen, Eds. MIT Press, 1070–1080. OpenAlex ↗ · Scholar ↗
  50. Janhunen, T., Kaminski, R., Ostrowski, M., Schaub, T., Schellhorn, S., and Wanko, P. 2017. Clingo goes linear constraints over reals and integers. Theory and Practice of Logic Programming 17, 5-6, 872–888. OpenAlex ↗ · Scholar ↗
  51. Kaminski, R., Schaub, T., and Wanko, P. 2017. A tutorial on hybrid answer set solving with clingo. In Proceedings of the Thirteenth International Summer School of the Reasoning Web, G. Ianni, D. Lembo, L. Bertossi, W. Faber, B. Glimm, G. Gottlob, and S. Staab, Eds. Lecture Notes in Computer Science, vol. 10370. Springer-Verlag, 167–203. OpenAlex ↗ · Scholar ↗
  52. Kaufmann, B., Leone, N., Perri, S., and Schaub, T. 2016. Grounding and solving in answer set programming. AI Magazine 37, 3, 25–32. OpenAlex ↗ · Scholar ↗
  53. Leone, N., Pfeifer, G., Faber, W., Eiter, T., Gottlob, G., Perri, S., and Scarcello, F. 2006. The DLV system for knowledge representation and reasoning. ACM Transactions on Computational Logic 7, 3, 499–562. OpenAlex ↗ · Scholar ↗
  54. Lifschitz, V. and Turner, H. 1994. Splitting a logic program. In Proceedings of the Eleventh International Conference on Logic Programming. MIT Press, 23–37. OpenAlex ↗ · Scholar ↗
  55. Nieuwenhuis, R., Oliveras, A., and Tinelli, C. 2006. Solving SAT and SAT modulo theories: From an abstract Davis-Putnam-Logemann-Loveland procedure to DPLL(T). Journal of the ACM 53, 6, 937–977. OpenAlex ↗ · Scholar ↗
  56. Oikarinen, E. and Janhunen, T. 2006. Modular equivalence for normal logic programs. In Proceedings of the Seventeenth European Conference on Artificial Intelligence (ECAI'06), G. Brewka, S. Coradeschi, A. Perini, and P. Traverso, Eds. IOS Press, 412–416. OpenAlex ↗ · Scholar ↗
  57. Ostrowski, M. and Schaub, T. 2012. ASP modulo CSP: The clingcon system. Theory and Practice of Logic Programming 12, 4-5, 485–503. OpenAlex ↗ · Scholar ↗
  58. Sabuncu, O. and Leite, J. 2017. moviola: Interpreting dynamic logic programs via multi-shot answer set programming. See [lpnmr17], 336–342. OpenAlex ↗ · Scholar ↗
  59. Simons, P., Niemelä, I., and Soininen, T. 2002. Extending and implementing the stable model semantics. Artificial Intelligence 138, 1-2, 181–234. OpenAlex ↗ · Scholar ↗
  60. Syrjänen, T. 2001. Lparse 1.0 user's manual. OpenAlex ↗ · Scholar ↗
  61. Zhang, Y. and Foo, N. 2006. Solving logic program conflict through strong and weak forgettings. Artificial Intelligence 170, 8-9, 739–778. OpenAlex ↗ · Scholar ↗