Well-formedness checks for the special predicates, each returning a seq of problem
strings assert throws on. The :wff column of vaelii.impl.special's table assigns
a check to each functor (special/wff-problems). negation-cycle and
genl-negation-cycle find a cycle through negation in the rule set. See
docs/taxonomy.md, "Well-formedness", and docs/exceptions.md, "Stratification".
Well-formedness checks for the special predicates, each returning a seq of problem strings `assert` throws on. The `:wff` column of `vaelii.impl.special`'s table assigns a check to each functor (`special/wff-problems`). `negation-cycle` and `genl-negation-cycle` find a cycle through negation in the rule set. See docs/taxonomy.md, "Well-formedness", and docs/exceptions.md, "Stratification".
(arg-arg-constraint-problems _ [f pred n m :as s] _context)argArg: a relation, the position it constrains, and the position whose argument
names the type, as in (argArg holdsOf 1 2). The relation is held as
arg-constraint-problems holds it. One position named twice is refused.
`argArg`: a relation, the position it constrains, and the position whose argument names the type, as in `(argArg holdsOf 1 2)`. The relation is held as `arg-constraint-problems` holds it. One position named twice is refused.
(arg-constraint-problems _ [f pred n type :as s] _context)arg, genlArg and quotedArg: a relation, a positive-integer position and a type.
The relation is any symbol or non-atomic term: a function is spelled like an
individual, and a NAT may denote a relation (docs/predicates.md, "The five closed
vocabularies").
`arg`, `genlArg` and `quotedArg`: a relation, a positive-integer position and a type. The relation is any symbol or non-atomic term: a function is spelled like an individual, and a NAT may denote a relation (docs/predicates.md, "The five closed vocabularies").
(arg-preserving-problems tax [f pred n rel :as s] _context)transitiveInArg / transitiveInArgInverse: a relation, a positive-integer position,
and a symbol naming the relation the argument is preserved along, which some context
declares transitive or which is one of inherit/virtual-relations (docs/inherit.md,
"The transitivity has to have been declared"). The first relation is held as
arg-constraint-problems holds it.
`transitiveInArg` / `transitiveInArgInverse`: a relation, a positive-integer position, and a symbol naming the relation the argument is preserved along, which some context declares transitive or which is one of `inherit/virtual-relations` (docs/inherit.md, "The transitivity has to have been declared"). The first relation is held as `arg-constraint-problems` holds it.
(brave-cautious-problems _ [f & args] _context)bravely and cautiously are not assertible: the :brave-cautious reasoner answers
each from the current dilemmas (docs/labeling.md).
`bravely` and `cautiously` are not assertible: the `:brave-cautious` reasoner answers each from the current dilemmas (docs/labeling.md).
(closed-extent-for-arg-problems _ [f pred n :as s] _context)(closedExtentForArg P n v) — a predicate, a positive-integer position, and the value
that position holds in the goals whose extent the grant closes. The value is any term.
`(closedExtentForArg P n v)` — a predicate, a positive-integer position, and the value that position holds in the goals whose extent the grant closes. The value is any term.
(common-genl-problems _ [f & args] _context)minCommonGenl and maxCommonSpec are not assertible: provers/CommonGenlProver
computes each from the genl closure (docs/naf.md).
`minCommonGenl` and `maxCommonSpec` are not assertible: `provers/CommonGenlProver` computes each from the `genl` closure (docs/naf.md).
(commutative-in-arg-and-rest-problems _ s _context)commutativeInArgAndRest and distinctInArgAndRest: a relation, which may be a …Fn
symbol, and a positive-integer start position, which may lie past the declared arity
(docs/taxonomy.md, "Well-formedness").
`commutativeInArgAndRest` and `distinctInArgAndRest`: a relation, which may be a `…Fn` symbol, and a positive-integer start position, which may lie past the declared arity (docs/taxonomy.md, "Well-formedness").
(commutative-in-args-problems _ [f pred & positions :as s] _context)commutativeInArgs: a relation, which may be a …Fn symbol, and at least two distinct
positive-integer positions, which may lie past the declared arity (docs/taxonomy.md,
"Well-formedness").
`commutativeInArgs`: a relation, which may be a `…Fn` symbol, and at least two distinct positive-integer positions, which may lie past the declared arity (docs/taxonomy.md, "Well-formedness").
(context-arg-genlcx-problems _ [f fname pos :as s] _context)(contextArgGenlCx F pos) makes every F-context a spec of the context at argument
pos (docs/context-nat.md). F is a function name and pos a 1-based positive
integer; whether pos is in F's arity is left to the producer, as
context-arg-subrelation-problems leaves it.
`(contextArgGenlCx F pos)` makes every `F`-context a spec of the context at argument `pos` (docs/context-nat.md). `F` is a function name and `pos` a 1-based positive integer; whether `pos` is in `F`'s arity is left to the producer, as `context-arg-subrelation-problems` leaves it.
(context-arg-subrelation-problems _ [f fname pos rel :as s] _context)(contextArgSubrelation F pos R): a function name F, a positive-integer position
pos and a predicate name R (docs/context-nat.md). Whether pos is in F's arity
is left to the producer, which orders no pair when it is out of range.
`(contextArgSubrelation F pos R)`: a function name `F`, a positive-integer position `pos` and a predicate name `R` (docs/context-nat.md). Whether `pos` is in `F`'s arity is left to the producer, which orders no pair when it is out of range.
(correspondence-problems _ [f fname pred pos :as s] _context)(functionCorrespondingPredicate F P N): a function name F, a predicate P that is
not an individual, and the positive-integer position N of P that carries F's value
(docs/nat.md). Whether N is in range is not checked: it depends on the application's
arity, which no declaration states.
`(functionCorrespondingPredicate F P N)`: a function name `F`, a predicate `P` that is not an individual, and the positive-integer position `N` of `P` that carries `F`'s value (docs/nat.md). Whether `N` is in range is not checked: it depends on the application's arity, which no declaration states.
(covering-constraint-problems _ [f pred a b :as s] _context)The covering and homogeneity argument constraints: args, argsGenl and interArgs
name a relation and a type; argAndRest, argAndRestGenl, quotedArgAndRest and
interArgAndRest a relation, a positive-integer start position and a type. The
relation is held as arg-constraint-problems holds it.
The covering and homogeneity argument constraints: `args`, `argsGenl` and `interArgs` name a relation and a type; `argAndRest`, `argAndRestGenl`, `quotedArgAndRest` and `interArgAndRest` a relation, a positive-integer start position and a type. The relation is held as `arg-constraint-problems` holds it.
(covering-problems tax [f whole & parts :as s] context)covering, partition and separating: a whole followed by two or more distinct
parts, none the whole and none context already sees above the whole (docs/taxonomy.md,
"What a cover is refused for").
`covering`, `partition` and `separating`: a whole followed by two or more distinct parts, none the whole and none `context` already sees above the whole (docs/taxonomy.md, "What a cover is refused for").
(cycle-description cycle)Render a negation-cycle path as one line, for an error message.
Render a `negation-cycle` path as one line, for an error message.
(different-problems _ [_ & args] _context)different is not assertible: it is answered from the equality closure and never
stored (docs/equality.md, "The unique-name assumption survives").
`different` is **not assertible**: it is answered from the equality closure and never stored (docs/equality.md, "The unique-name assumption survives").
(duration-problems _ [f & args] _context)totalDuration and overlapDuration are not assertible: the :duration reasoner
computes each from the stored length facts (docs/duration.md).
`totalDuration` and `overlapDuration` are not assertible: the `:duration` reasoner computes each from the stored `length` facts (docs/duration.md).
(equality-problems tax [f a b :as s] _context)The well-formedness problems of a rewriteOf / sameAs / equals sentence. The
arguments are symbols, with two exceptions: (rewriteOf T E) with a compound E is a
NAT reify-to-term declaration (docs/nat.md), whose target T must be a symbol, and a
schematic (equals L R) must orient into a terminating rewrite (rewrite/orient,
docs/equational.md). A rewriteOf is refused as a self-edge, as an edge closing a
cycle over the active preferences, and across roles (rewrite-role, roles-clash?).
(sameAs A A) is accepted.
The well-formedness problems of a `rewriteOf` / `sameAs` / `equals` sentence. The arguments are symbols, with two exceptions: `(rewriteOf T E)` with a compound `E` is a NAT reify-to-term declaration (docs/nat.md), whose target `T` must be a symbol, and a schematic `(equals L R)` must orient into a terminating rewrite (`rewrite/orient`, docs/equational.md). A `rewriteOf` is refused as a self-edge, as an edge closing a cycle over the active preferences, and across roles (`rewrite-role`, `roles-clash?`). `(sameAs A A)` is accepted.
(function-decl-problems _ [f fname :as s] _context)reifiable_function / unreifiable_function: one argument, a function name. A
function name is spelled like an individual, so the check asks only for a symbol.
`reifiable_function` / `unreifiable_function`: one argument, a function name. A function name is spelled like an individual, so the check asks only for a symbol.
(functional-in-arg-problems _ s _context)functionalInArg: a predicate and a positive-integer position, which may lie past
the predicate's declared arity (docs/taxonomy.md, "Well-formedness").
`functionalInArg`: a predicate and a positive-integer position, which may lie past the predicate's declared arity (docs/taxonomy.md, "Well-formedness").
(genl-negation-cycle tax readers sub super)(genl-negation-cycle tax readers starts-of sub super)The cycle through negation the edge (genl sub super) closes, described as
negation-cycle describes one, or nil. tax holds the edge already; readers is the
stored graph's (checks/stratification-readers). The walk starts at the rules reading
a predicate in the global closure genls-global(super), as negation-walk reads it
(docs/exceptions.md, "A taxonomy edge closes a cycle too"). A backward-only closing
rule reaches no start through a :closure-only read, so a second walk over the starts
less those reads looks for one, and runs only when some start has such a read.
starts-of maps genls-global(super) to the walk's starts (negation-starts).
The cycle through negation the edge `(genl sub super)` closes, described as `negation-cycle` describes one, or nil. `tax` holds the edge already; `readers` is the stored graph's (`checks/stratification-readers`). The walk starts at the rules reading a predicate in the global closure `genls-global(super)`, as `negation-walk` reads it (docs/exceptions.md, "A taxonomy edge closes a cycle too"). A backward-only closing rule reaches no start through a `:closure-only` read, so a second walk over the starts less those reads looks for one, and runs only when some start has such a read. `starts-of` maps `genls-global(super)` to the walk's starts (`negation-starts`).
(genl-problems tax [_ sub super :as s] context)The refusals of the genl sentence s asserted in context. The cycle test reads the
edges context sees: an edge whose reverse path only another context sees is stored
(docs/taxonomy.md).
The refusals of the `genl` sentence `s` asserted in `context`. The cycle test reads the edges `context` sees: an edge whose reverse path only another context sees is stored (docs/taxonomy.md).
(genlCx-problems tax [_ sub super :as s] _context)The refusals of the genlCx sentence s. The cycle test reads the unscoped closure
(tax/genlCx-stored?-global): a cycle is a property of the whole edge set, which no
reader's context changes.
The refusals of the `genlCx` sentence `s`. The cycle test reads the unscoped closure (`tax/genlCx-stored?-global`): a cycle is a property of the whole edge set, which no reader's context changes.
(inter-arg-constraint-problems _ [f pred n type m utype :as s] _context)interArg: a relation, a trigger position and type, and a target position and type,
as in (interArg eats 1 carnivore 2 meat). The relation is held as
arg-constraint-problems holds it. The two positions may be equal.
`interArg`: a relation, a trigger position and type, and a target position and type, as in `(interArg eats 1 carnivore 2 meat)`. The relation is held as `arg-constraint-problems` holds it. The two positions may be equal.
(inter-arg-equal-constraint-problems _ [f pred n v m utype :as s] _context)interArgEqual: a relation, a trigger position, the value that triggers it, and a
target position and type, as in (interArgEqual closedExtentForArg 2 3 1 at_least_ternary). The relation is held as arg-constraint-problems holds it. The
value is an unrepresented_term, compared by = (docs/argtypes.md).
`interArgEqual`: a relation, a trigger position, the value that triggers it, and a target position and type, as in `(interArgEqual closedExtentForArg 2 3 1 at_least_ternary)`. The relation is held as `arg-constraint-problems` holds it. The value is an `unrepresented_term`, compared by `=` (docs/argtypes.md).
(meet-function-problems _ [f fn order :as s] _context)(meetFunctionOf F R) — a function and the order it is the meet of, each a relation
name.
`(meetFunctionOf F R)` — a function and the order it is the meet of, each a relation name.
(naf-problems _ [f & _args] _context)unknown, thereExists, forall, stored, monotonic and the five aggregates are
not assertible: each is a query operator a prover answers (docs/naf.md, docs/aggregate.md).
`unknown`, `thereExists`, `forall`, `stored`, `monotonic` and the five aggregates are not assertible: each is a query operator a prover answers (docs/naf.md, docs/aggregate.md).
(negates-problems _ s _context)The argument count alone. Whether an argument is a predicate, and of which length, is read from stored content and placed as a clash of the declaration (docs/taxonomy.md, "Predicate metadata").
The argument count alone. Whether an argument is a predicate, and of which length, is read from stored content and placed as a clash of the declaration (docs/taxonomy.md, "Predicate metadata").
(negation-cycle tax readers rule)The cycle through negation that adding rule node rule closes, as a vector of strings
naming the nodes and edges around it, or nil. Only cycles through rule are looked
for (docs/exceptions.md, "The search").
A rule node is {:id :label :antecedent-preds :exception-preds :consequent-pred :concludes-any?}. readers maps a predicate to the rule nodes reading it, in content
order (checks/stratification-readers), and includes rule under each predicate it
reads, since rule is not stored yet.
The cycle through negation that adding rule node `rule` closes, as a vector of strings
naming the nodes and edges around it, or nil. Only cycles through `rule` are looked
for (docs/exceptions.md, "The search").
A rule node is `{:id :label :antecedent-preds :exception-preds :consequent-pred
:concludes-any?}`. `readers` maps a predicate to the rule nodes reading it, in content
order (`checks/stratification-readers`), and includes `rule` under each predicate it
reads, since `rule` is not stored yet.(negation-starts readers above)The starts of genl-negation-cycle's walk for an edge whose upper end has the upward
closure above: each rule readers answers under a predicate of above, once, in
content order, paired with whether it excepts on a predicate of above.
The starts of `genl-negation-cycle`'s walk for an edge whose upper end has the upward closure `above`: each rule `readers` answers under a predicate of `above`, once, in content order, paired with whether it excepts on a predicate of `above`.
(non-eternal-slice-problems tax [f c :as s] _context)(non_eternal_time_slice_context C) types a context whose time is not Forever. C
must be a context, not the root, and must not state Forever; a stated bounded time is
consistent, since the rule in time.txt concludes the same membership. A defeated
time refuses nothing. A nil tax checks the shape alone.
`(non_eternal_time_slice_context C)` types a context whose time is not Forever. `C` must be a context, not the root, and must not state `Forever`; a stated bounded time is consistent, since the rule in `time.txt` concludes the same membership. A defeated time refuses nothing. A nil `tax` checks the shape alone.
(relation-prop-problems _ [f rel :as s] _context)prop-problems for a one-place mark on a relation, a predicate or a function
(commutative, associative, idempotent): a …Fn symbol passes.
`prop-problems` for a one-place mark on a relation, a predicate or a function (`commutative`, `associative`, `idempotent`): a `…Fn` symbol passes.
(structure-problems _ [f & args] _context)The structure relations and the constructors' corresponding predicates are not
assertible: provers/StructureProver computes each from the structure term it names
(docs/nat.md, "A data structure is a structural term").
The structure relations and the constructors' corresponding predicates are not assertible: `provers/StructureProver` computes each from the structure term it names (docs/nat.md, "A data structure is a structural term").
(type-pair-problems _ [f a b :as s] _context)(orthogonal a b) and (siblingDisjointException a b): two arguments, neither an
individual. One type named twice is a clash decide.related reports, not a refusal
(docs/taxonomy.md, "Disjointness").
`(orthogonal a b)` and `(siblingDisjointException a b)`: two arguments, neither an individual. One type named twice is a clash `decide.related` reports, not a refusal (docs/taxonomy.md, "Disjointness").
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |