Arg2P

v0.26.14
io.github.tuProlog/arg2p Checked 15 hours ago Published 5 days ago

Structured 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).

ParameterTypeDescription
theory *stringThe 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…
flagsstringThe flags, as Prolog facts: argumentLabellingMode(grounded|complete|preferred|stable|semiStable|ideal|eager|naive|stage|cf2|stage2|...), statementLabellingMode(statement), queryMode, graphBuildMode(..…
maxSolutionsintegerHow many solutions at most (default 5, at most 100)
querystringA Prolog goal on the theory (default: arg2p::solve(In, Out, Und))
timeoutSecondsintegerHow 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).

ParameterTypeDescription
query *stringA literal, as flies(tweety) or flies(X)
theory *stringThe 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…
flagsstringThe flags, as Prolog facts: argumentLabellingMode(grounded|complete|preferred|stable|semiStable|ideal|eager|naive|stage|cf2|stage2|...), statementLabellingMode(statement), queryMode, graphBuildMode(..…
timeoutSecondsintegerHow 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).

ParameterTypeDescription
text *stringThe text
kindstringWhat 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.

ParameterTypeDescription
theory *stringThe 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…
flagsstringThe flags, as Prolog facts: argumentLabellingMode(grounded|complete|preferred|stable|semiStable|ideal|eager|naive|stage|cf2|stage2|...), statementLabellingMode(statement), queryMode, graphBuildMode(..…
timeoutSecondsintegerHow 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.

ParameterTypeDescription
theory *stringThe 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…
flagsstringThe flags, as Prolog facts: argumentLabellingMode(grounded|complete|preferred|stable|semiStable|ideal|eager|naive|stage|cf2|stage2|...), statementLabellingMode(statement), queryMode, graphBuildMode(..…
querystringThe query run first (default: arg2p::solve(In, Out, Und))
timeoutSecondsintegerHow long each run of the solver shown waits, in seconds (default 60, at most 600)