Arg2P
v0.26.14Structured argumentation: solve ASPIC+, ABA and abstract theories, explore their results
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
solve Solve a query
Solves a query on a theory of arg2p: its first solutions (yes, no, or halt with an error), with their bindings, and the argument graph of the last yes (every argument with its conclusion, top rule, sub-arguments and label in, out or und; every attack with its type); more tells whether the search has alternatives left (they may give other solutions, or no), and output is what the theory printed. The default query, arg2p::solve(In, Out, Und), gives the statements labelled in, out and und. Out of time, it gives the solutions found until then (timedOut).
| Parameter | Type | Description |
|---|---|---|
theory * | string | The theory, in the language of arg2p: rules `r1 : bird(X) => flies(X).` (defeasible) and `r2 : a -> b.` (strict), premises `f1 :=> bird(tweety).`, axioms `f2 :-> a.`, preferences `sup(r1, r2).`, negat… |
flags | string | The flags, as Prolog facts: argumentLabellingMode(grounded|complete|preferred|stable|semiStable|ideal|eager|naive|stage|cf2|stage2|...), statementLabellingMode(statement), queryMode, graphBuildMode(..… |
maxSolutions | integer | How many solutions at most (default 5, at most 100) |
query | string | A Prolog goal on the theory (default: arg2p::solve(In, Out, Und)) |
timeoutSeconds | integer | How long to wait, in seconds (default 60, at most 600) |
answer Label the statements of a query
The statements matching a query (a literal, as flies(X) or -flies(tweety)) labelled in (justified), out (rejected) and und (undecided) by the theory, under its semantics: answers, one for each labelling, or one across them all with the flag answerMode(credulous) or answerMode(skeptical).
| Parameter | Type | Description |
|---|---|---|
query * | string | A literal, as flies(tweety) or flies(X) |
theory * | string | The theory, in the language of arg2p: rules `r1 : bird(X) => flies(X).` (defeasible) and `r2 : a -> b.` (strict), premises `f1 :=> bird(tweety).`, axioms `f2 :-> a.`, preferences `sup(r1, r2).`, negat… |
flags | string | The flags, as Prolog facts: argumentLabellingMode(grounded|complete|preferred|stable|semiStable|ideal|eager|naive|stage|cf2|stage2|...), statementLabellingMode(statement), queryMode, graphBuildMode(..… |
timeoutSeconds | integer | How long to wait, in seconds (default 60, at most 600) |
check Check a theory or a query
Whether a theory (or flags) or a query parses, and where it does not (line, column, token).
| Parameter | Type | Description |
|---|---|---|
text * | string | The text |
kind | string | What the text is (default theory) |
settings The settings in effect
The value in effect of every flag for a theory: its profile (graphBuildMode), the semantics, the graph extensions, ... as the theory, the flags and the profile set them. A theory that does not parse is refused.
| Parameter | Type | Description |
|---|---|---|
theory * | string | The theory, in the language of arg2p: rules `r1 : bird(X) => flies(X).` (defeasible) and `r2 : a -> b.` (strict), premises `f1 :=> bird(tweety).`, axioms `f2 :-> a.`, preferences `sup(r1, r2).`, negat… |
flags | string | The flags, as Prolog facts: argumentLabellingMode(grounded|complete|preferred|stable|semiStable|ideal|eager|naive|stage|cf2|stage2|...), statementLabellingMode(statement), queryMode, graphBuildMode(..… |
timeoutSeconds | integer | How long to wait, in seconds (default 60, at most 600) |
explore Show the solver of a theory
Shows the user the solver of a theory, to explore its results themselves: the query run, its solutions, the argument graph of each and the stages of its computation, the drawing of an abstract framework, the flags. Hosts of MCP Apps show it in the conversation; the result links the same theory in the web playground, for every host. Use it when the user wants to see or explore the results.
| Parameter | Type | Description |
|---|---|---|
theory * | string | The theory, in the language of arg2p: rules `r1 : bird(X) => flies(X).` (defeasible) and `r2 : a -> b.` (strict), premises `f1 :=> bird(tweety).`, axioms `f2 :-> a.`, preferences `sup(r1, r2).`, negat… |
flags | string | The flags, as Prolog facts: argumentLabellingMode(grounded|complete|preferred|stable|semiStable|ideal|eager|naive|stage|cf2|stage2|...), statementLabellingMode(statement), queryMode, graphBuildMode(..… |
query | string | The query run first (default: arg2p::solve(In, Out, Und)) |
timeoutSeconds | integer | How long each run of the solver shown waits, in seconds (default 60, at most 600) |