Liking cljdoc? Tell your friends :D
Clojure only.

vaelii.impl.taxonomy

A KB's taxonomy: the genl and genlCx closures, answered on demand from the direct adjacency of the active edges; the rewriteOf / sameAs / equals partition; and the flat caches of disjointness, covers and predicate metadata. An entry is active iff a stored supporter of it is believed, and refresh-beliefs reconciles the entries after a relabel. See docs/taxonomy.md and docs/equality.md.

A KB's taxonomy: the `genl` and `genlCx` closures, answered on demand from the direct
adjacency of the active edges; the `rewriteOf` / `sameAs` / `equals` partition; and the
flat caches of disjointness, covers and predicate metadata.  An entry is active iff a
stored supporter of it is believed, and `refresh-beliefs` reconciles the entries after a
relabel.  See docs/taxonomy.md and docs/equality.md.
raw docstring

*defer-cycle-scc?*clj

When true, an edge that closes a cycle marks the relation :loose? and leaves the strong-component recompute to restore-depths, instead of running repair-depths inside activate. A caller that binds this must call restore-depths before any placement-rep reader runs, as vaelii.impl.recovery/recover does. See docs/taxonomy.md, "What a batch does to the depth potential".

When true, an edge that closes a cycle marks the relation `:loose?` and leaves the
strong-component recompute to `restore-depths`, instead of running `repair-depths` inside
`activate`.  A caller that binds this must call `restore-depths` before any
`placement-rep` reader runs, as `vaelii.impl.recovery/recover` does.  See
docs/taxonomy.md, "What a batch does to the depth potential".
sourceraw docstring

*defer-depths?*clj

When true, an edge insert skips raise-depth and lifts only the edge's own source (local-lift), going :loose? if that breaks an edge above it; restore-depths rebuilds every depth in one pass when the batch settles. Bound by vaelii.core/with-deferred-settle. See docs/taxonomy.md, "What a batch does to the depth potential".

When true, an edge insert skips `raise-depth` and lifts only the edge's own source
(`local-lift`), going `:loose?` if that breaks an edge above it; `restore-depths`
rebuilds every depth in one pass when the batch settles.  Bound by
`vaelii.core/with-deferred-settle`.  See docs/taxonomy.md, "What a batch does to the
depth potential".
sourceraw docstring

*edge-stage*clj

True while a read answers for a genlCx supporter: inside the scoped genlCx walk, whose supporter callbacks bind it (install-supporter-visibility!), and inside exc/staged's read of one. Such a read takes its excepts and defeats from context-up-global (docs/nmtms.md).

True while a read answers for a `genlCx` supporter: inside the scoped `genlCx` walk,
whose supporter callbacks bind it (`install-supporter-visibility!`), and inside
`exc/staged`'s read of one.  Such a read takes its excepts and defeats from
`context-up-global` (docs/nmtms.md).
sourceraw docstring

*exposure-instance-budget*clj

How many candidate instances one bounded merge sweep enumerates (special/equate-under-context-edge, special/revived-declaration-sweeps). A sweep cut short files a :context-edge-exposure-truncated or :genl-edge-revival-truncated violation (docs/equality.md).

How many candidate instances one bounded merge sweep enumerates
(`special/equate-under-context-edge`, `special/revived-declaration-sweeps`).  A sweep
cut short files a `:context-edge-exposure-truncated` or `:genl-edge-revival-truncated`
violation (docs/equality.md).
sourceraw docstring

*network-belief*clj

True while a firing's witness search reads the scoped closures (chain's placement): a supporter is read at its network label and through the stored excepts, and no placed defeat is read (:network-filter-active?, :network-visible?). The mark entries res/entries-at reads are the exception: it binds this false, so a mark's placed defeats apply there. The scope key carries the callback it reads, so the two readings never share a memo entry.

True while a firing's witness search reads the scoped closures (`chain`'s placement):
a supporter is read at its network label and through the stored `except`s, and no
placed `defeat` is read (`:network-filter-active?`, `:network-visible?`).  The mark
entries `res/entries-at` reads are the exception: it binds this false, so a mark's
placed defeats apply there.  The scope key carries the callback it reads, so the two
readings never share a memo entry.
sourceraw docstring

*search*clj

nil outside a second-route search (exc/route-answer), else :withdrawn while the search answers a withdrawal read (exc/withdrawn-fn) and :belief while it answers a belief read. A scope that reads supporter belief carries the value in its key, as the effective ancestor set does, so a walk inside a search and one outside it never share a memo entry.

nil outside a second-route search (`exc/route-answer`), else `:withdrawn` while the
search answers a withdrawal read (`exc/withdrawn-fn`) and `:belief` while it answers a
belief read.  A scope that reads supporter belief carries the value in its key, as the
effective ancestor set does, so a walk inside a search and one outside it never share a
memo entry.
sourceraw docstring

*visible-neighbours-cache*clj

An atom a read-only pass over a still taxonomy binds, holding the scoped walks' filtered neighbours and the pass's pass-held reads; nil off such a pass. See docs/taxonomy.md, "Side atoms, probe copies and symmetric entries".

An atom a read-only pass over a still taxonomy binds, holding the scoped walks'
filtered neighbours and the pass's `pass-held` reads; nil off such a pass.  See
docs/taxonomy.md, "Side atoms, probe copies and symmetric entries".
sourceraw docstring

active-edge-countclj

(active-edge-count tax rel-key)

How many active edges relation rel-key holds. One more bounds the size of every closure in it.

How many active edges relation `rel-key` holds.  One more bounds the size of every
closure in it.
sourceraw docstring

add-arityclj

(add-arity tax pred n handle)
(add-arity tax pred n handle ctx)
source

add-commutingclj

(add-commuting tax pred group handle)
(add-commuting tax pred group handle ctx)

Install a commutativity group on pred. group is [:rest f] or [:args [p1 p2 …]] — the two written spellings reduced to the one descriptor commuting-components reads.

Install a commutativity group on `pred`.  `group` is `[:rest f]` or `[:args [p1 p2 …]]`
— the two written spellings reduced to the one descriptor `commuting-components` reads.
sourceraw docstring

add-coverclj

(add-cover tax whole parts kind handle)
(add-cover tax whole parts kind handle ctx)
source

add-disjointclj

(add-disjoint tax a b handle)
(add-disjoint tax a b handle ctx)
source

add-distinctclj

(add-distinct tax f n handle)
(add-distinct tax f n handle ctx)

Install (distinctInArgAndRest f n): f's arguments from position n on are distinct.

Install `(distinctInArgAndRest f n)`: `f`'s arguments from position `n` on are distinct.
sourceraw docstring

add-equalityclj

(add-equality tax a b handle preferred)

Record handle as asserting that a and b denote one thing, merging their classes. preferred names the term a rewriteOf puts on top (a, b, or nil for sameAs / equals, which deprecate nothing).

Record `handle` as asserting that `a` and `b` denote one thing, merging their
classes.  `preferred` names the term a `rewriteOf` puts on top (`a`, `b`, or nil
for `sameAs` / `equals`, which deprecate nothing).
sourceraw docstring

add-functional-in-argclj

(add-functional-in-arg tax pred n handle)
(add-functional-in-arg tax pred n handle ctx)
source

add-genlclj

(add-genl tax sub super handle)
(add-genl tax sub super handle ctx)
source

add-genl-inverseclj

(add-genl-inverse tax p q handle)
(add-genl-inverse tax p q handle ctx)
source

add-genlCxclj

(add-genlCx tax sub super handle)
(add-genlCx tax sub super handle ctx)
source

add-inverseclj

(add-inverse tax p q handle)
(add-inverse tax p q handle ctx)
source

add-meetclj

(add-meet tax f order handle)
(add-meet tax f order handle ctx)

Install (meetFunctionOf f order): f is the meet of order.

Install `(meetFunctionOf f order)`: `f` is the meet of `order`.
sourceraw docstring

add-metatype-memberclj

(add-metatype-member tax m t handle)
(add-metatype-member tax m t handle ctx)
source

add-negatesclj

(add-negates tax p q handle)
(add-negates tax p q handle ctx)
source

add-rewrite-ruleclj

(add-rewrite-rule tax handle lhs rhs context)

Cache the oriented rewrite lhs → rhs asserted by equation handle in context. Recorded in both the support map (for revival) and the active map (assumed believed on assert; a settle reconciles).

Cache the oriented rewrite `lhs → rhs` asserted by equation `handle` in `context`.
Recorded in both the support map (for revival) and the active map (assumed believed
on assert; a settle reconciles).
sourceraw docstring

add-sib-exceptionclj

(add-sib-exception tax a b handle)
(add-sib-exception tax a b handle ctx)
source

arg-declaration-propsclj

Per argument-constraint kind, the :props set its subject is marked under: (arg parentOf 1 person) marks parentOf as declaring arg. The set is global. See docs/predicates.md and docs/taxonomy.md, "Predicate metadata reads".

Per argument-constraint kind, the `:props` set its subject is marked under:
`(arg parentOf 1 person)` marks `parentOf` as declaring `arg`.  The set is global.  See
docs/predicates.md and docs/taxonomy.md, "Predicate metadata reads".
sourceraw docstring

asserting-contexts-amongclj

(asserting-contexts-among tax ctxs)

The contexts of ctxs that state a genl edge or a flat-cache declaration, as a set: census-in over the two, with no belief callback.

The contexts of `ctxs` that state a `genl` edge or a flat-cache declaration, as a set:
`census-in` over the two, with no belief callback.
sourceraw docstring

asserting-contexts-inclj

(asserting-contexts-in tax rel-key ctxs)

The contexts of the set ctxs that assert a supporter of a rel-key edge, or nil when ctxs holds every context asserting one, where a closure over the edges asserted in ctxs is the global closure.

The contexts of the set `ctxs` that assert a supporter of a `rel-key` edge, or nil when
`ctxs` holds every context asserting one, where a closure over the edges asserted in
`ctxs` is the global closure.
sourceraw docstring

before-copyclj

(before-copy tax)

The value tax held when the open write record first recorded it, or its value now when the record holds none, in a fresh atom with side caches of its own and no watch, as detached-copy builds them: the taxonomy of kb/prior-kb, which installs its index store and callbacks.

The value `tax` held when the open write record first recorded it, or its value now
when the record holds none, in a fresh atom with side caches of its own and no watch,
as `detached-copy` builds them: the taxonomy of `kb/prior-kb`, which installs its
index store and callbacks.
sourceraw docstring

believed-exemptionclj

(believed-exemption tax up hidden?)

exemption for a reader with ancestor set up that reads belief: (fn [x y]) → does a siblingDisjointException over the pair x, y have a supporter stated in up that hidden? does not name? hidden? names the handles the reader does not believe or see, or is nil.

`exemption` for a reader with ancestor set `up` that reads belief: `(fn [x y])` → does
a `siblingDisjointException` over the pair `x`, `y` have a supporter stated in `up` that
`hidden?` does not name?  `hidden?` names the handles the reader does not believe or
see, or is nil.
sourceraw docstring

cache-contextsclj

(cache-contexts tax k)

The supporting contexts of flat-cache entry k ([:disjoint #{a b}], [:prop kind pred], …) — the flat-cache twin of edge-contexts.

The supporting contexts of flat-cache entry `k` (`[:disjoint #{a b}]`,
`[:prop kind pred]`, …) — the flat-cache twin of `edge-contexts`.
sourceraw docstring

class-fully-visible?clj

(class-fully-visible? tax term visible?)

Does visible? admit every believed supporter of every active edge in term's class? Then the scoped election equals the global one, and a caller takes representative's map lookup. The test is per supporter, not per edge: hiding only the rewriteOf of an edge that a sameAs also supports keeps the class and moves the head.

Does `visible?` admit every believed supporter of every active edge in `term`'s class?
Then the scoped election equals the global one, and a caller takes `representative`'s
map lookup.  The test is per supporter, not per edge: hiding only the `rewriteOf` of an
edge that a `sameAs` also supports keeps the class and moves the head.
sourceraw docstring

class-supportersclj

(class-supporters tax term)

The supporters, believed or not, of every active edge in term's class.

The supporters, believed or not, of every active edge in `term`'s class.
sourceraw docstring

clear-relations!clj

(clear-relations! tax)

Drop every cache and the supporter cache, so recover rebuilds them from the durable store and a stale entry (a disjoint pair, a property, an inverse, an arity, an equality merge) cannot outlive its sentex. The supporters are stored content in the index and stay.

Drop every cache and the supporter cache, so `recover` rebuilds them from the durable
store and a stale entry (a disjoint pair, a property, an inverse, an arity, an equality
merge) cannot outlive its sentex.  The supporters are stored content in the index and
stay.
sourceraw docstring

clock-heldclj

(clock-held tax slot k read)

(read), held in the closure memo's slot under k for one stretch of the change clock: a new clock value drops the slot's entries of the old one. Read afresh when the taxonomy holds no memo. The key carries the reading (*network-belief*, *search*), and a value that read a route question still open is not held (caches/held-if-settled). A reader above this namespace holds a value under a slot of its own (res/arg-constraints).

`(read)`, held in the closure memo's `slot` under `k` for one stretch of the change
clock: a new clock value drops the slot's entries of the old one.  Read afresh when the
taxonomy holds no memo.  The key carries the reading (`*network-belief*`, `*search*`),
and a value that read a route question still open is not held (`caches/held-if-settled`).
A reader above this namespace holds a value under a slot of its own (`res/arg-constraints`).
sourceraw docstring

closure-memo-limitclj

The most closure terms a taxonomy's closure cache holds in any KB: one per 256 bytes of the JVM's maximum heap. closure-bound scales it to one taxonomy.

The most closure terms a taxonomy's closure cache holds in any KB: one per 256 bytes
of the JVM's maximum heap.  `closure-bound` scales it to one taxonomy.
sourceraw docstring

closure-relationsclj

The two relations whose transitive closure the engine caches and answers itself, genl and genlCx: the :edge storage kind's terms (docs/predicates.md).

The two relations whose transitive closure the engine caches and answers itself,
`genl` and `genlCx`: the `:edge` storage kind's terms (docs/predicates.md).
sourceraw docstring

closuresclj

(closures edges)

{:edges :up :down} for the set of [sub super] edges, every closure materialized from scratch: the reference implementation the on-demand genls / specs are tested against (docs/taxonomy.md, "What a batch does to the depth potential").

`{:edges :up :down}` for the set of `[sub super]` `edges`, every closure materialized
from scratch: the reference implementation the on-demand `genls` / `specs` are tested
against (docs/taxonomy.md, "What a batch does to the depth potential").
sourceraw docstring

common-descendant?clj

(common-descendant? tax ctxs)

Does any context see every member of ctxs — is the common-descendant-set non-empty? The boolean of maximal-common-descendant-contexts, for the callers that only ever ask existence (settle's nogood pairing asks it of every opposed belief pair): the maximality filter never runs, the comparable case never reads a closure, and the fallback intersection stops at the first empty.

Does any context see every member of `ctxs` — is the common-descendant-set
non-empty?  The boolean of `maximal-common-descendant-contexts`, for the callers
that only ever ask existence (`settle`'s nogood pairing asks it of every opposed
belief pair): the maximality filter never runs, the comparable case never reads a
closure, and the fallback intersection stops at the first empty.
sourceraw docstring

common-descendantsclj

(common-descendants tax ctxs)

Every context that sees all of ctxs — the intersection of their down closures. The set maximal-common-descendant-contexts takes the maxima of, for a caller that needs to ask something of each member rather than only where the most general ones are (clashes/exposed-clashes asks each whether it can prove a disjointness).

Every context that sees all of `ctxs` — the intersection of their down closures.
The set `maximal-common-descendant-contexts` takes the maxima of, for a caller that
needs to ask something *of each member* rather than only where the most general ones
are (`clashes/exposed-clashes` asks each whether it can prove a disjointness).
sourceraw docstring

common-genlsclj

(common-genls tax types context)

The intersection of the genls from context of the members of types, as a set: reflexive, so a member above all the others is in it. #{} for an empty types. A nil context reads every active edge.

The intersection of the `genls` from `context` of the members of `types`, as a set:
reflexive, so a member above all the others is in it.  `#{}` for an empty `types`.  A
nil `context` reads every active edge.
sourceraw docstring

common-specsclj

(common-specs tax types context)

The intersection of the specs from context of the members of types, as a set.

The intersection of the `specs` from `context` of the members of `types`, as a set.
sourceraw docstring

commuting-declared?clj

(commuting-declared? tax)

Does any predicate carry a commutativity group?

Does any predicate carry a commutativity group?
sourceraw docstring

commuting-groupsclj

(commuting-groups tax pred)

The commutativity group descriptors declared of pred itself, as a set, read off the exact functor and globally (docs/taxonomy.md, "Predicate metadata reads").

The commutativity group descriptors declared of `pred` itself, as a set, read off the
exact functor and globally (docs/taxonomy.md, "Predicate metadata reads").
sourceraw docstring

commuting-predicates-amongclj

(commuting-predicates-among tax specs)

The members of specs carrying any commutativity group, as a set, or nil when none do.

The members of `specs` carrying any commutativity group, as a set, or nil when none do.
sourceraw docstring

commuting-supportersclj

(commuting-supporters tax pred group)

The handles of the sentexes installing commuting group on pred, as a set, defeated members included — prop-supporters for the :commuting table.

The handles of the sentexes installing commuting `group` on `pred`, as a set, defeated
members included — `prop-supporters` for the `:commuting` table.
sourceraw docstring

compound-rewrites?clj

(compound-rewrites? tax)

Does any context hold an active compound rewrite binding? The answer is global and says nothing of what a reader sees.

Does any context hold an active compound rewrite binding?  The answer is global and
says nothing of what a reader sees.
sourceraw docstring

context-children-globalclj

(context-children-global tax c)

The contexts that reach c over one active genlCx edge, with no except holes: context-parents-global's reverse, an adjacency read with no closure walk.

The contexts that reach `c` over **one** active `genlCx` edge, with no `except` holes:
`context-parents-global`'s reverse, an adjacency read with no closure walk.
sourceraw docstring

context-downclj

(context-down tax c)

Contexts that inherit from c, including c, after context-visible genlCx exceptions. While some except targets a genlCx supporter (relation-filter-active?) the raw candidates are filtered by each candidate's own forward answer, memoized per context and reading (*network-belief*, *search*) and keyed by the change clock; otherwise the raw closure is the answer. At CxUniverse the raw closure is the answer: no except removes the implicit edge.

Contexts that inherit from `c`, including `c`, after context-visible genlCx
exceptions.  While some `except` targets a `genlCx` supporter (`relation-filter-active?`)
the raw candidates are filtered by each candidate's own forward answer, memoized per
context and reading (`*network-belief*`, `*search*`) and keyed by the change clock;
otherwise the raw closure is the answer.  At CxUniverse the raw closure is the answer:
no `except` removes the implicit edge.
sourceraw docstring

context-down-globalclj

(context-down-global tax c)

Contexts that inherit from c, incl c, through the active genlCx cache, with no except holes: context-down's unscoped read, for context-up-global's callers.

Contexts that inherit from `c`, incl `c`, through the active genlCx cache, with **no**
`except` holes: `context-down`'s unscoped read, for `context-up-global`'s callers.
sourceraw docstring

context-filter-active?clj

(context-filter-active? tax)

Does an except reach a genlCx supporter (relation-filter-active?)? While none does, every context's scoped ancestor set (context-up) is its unscoped one (context-up-global).

Does an `except` reach a `genlCx` supporter (`relation-filter-active?`)?  While none
does, every context's scoped ancestor set (`context-up`) is its unscoped one
(`context-up-global`).
sourceraw docstring

context-floorclj

(context-floor tax ctxs)

The most specific members of ctxs, as a set: a nil member and every member another member sees are dropped, since a reader seeing the rest sees those too. Two members that see each other count once, and the member kept is the first in printed order.

The most specific members of `ctxs`, as a set: a nil member and every member another
member sees are dropped, since a reader seeing the rest sees those too.  Two members
that see each other count once, and the member kept is the first in printed order.
sourceraw docstring

context-moveclj

(context-move tax sub super except-ctxs usable?)
(context-move tax sub super except-ctxs usable? off)

What the move of the genlCx edge [sub super] (stored, removed or flipped in label) shows or hides, read from the taxonomy as it stands: the contexts some reader under sub sees through the edge and no other route. except-ctxs holds the contexts stating an except that reaches a genlCx supporter's support (exc/genlCx-except-contexts); usable? refuses an edge the walks without the edge must not cross. Keys: :raw (the global stratum), :moved (per reader class, reader-classes), :shown / :hidden, :readers, :up, and the delays :under, :seen, :below, :gained-below, :gains and :displaced (move-gains; both nil while an except reaches a genlCx supporter, and past move-gain-readers). See docs/contexts.md, "One context move".

What the move of the `genlCx` edge `[sub super]` (stored, removed or flipped in label)
shows or hides, read from the taxonomy as it stands: the contexts some reader under `sub`
sees through the edge and no other route.  `except-ctxs` holds the contexts stating an
`except` that reaches a `genlCx` supporter's support (`exc/genlCx-except-contexts`);
`usable?` refuses an edge the walks without the edge must not cross.  Keys: `:raw` (the
global stratum), `:moved` (per reader class, `reader-classes`), `:shown` / `:hidden`,
`:readers`, `:up`, and the delays `:under`, `:seen`, `:below`, `:gained-below`, `:gains`
and `:displaced` (`move-gains`; both nil while an `except` reaches a `genlCx` supporter,
and past `move-gain-readers`).  See docs/contexts.md, "One context move".
sourceraw docstring

context-parents-globalclj

(context-parents-global tax c)

The contexts c reaches over one active genlCx edge, with no except holes.

The contexts `c` reaches over **one** active `genlCx` edge, with no `except` holes.
sourceraw docstring

context-routed-globalclj

(context-routed-global tax dir-key c)

The contexts joined to c by stored genlCx edges in direction dir-key (:fwd up, :rev down), unscoped, less CxUniverse: reach-support takes the implicit edge to CxUniverse, so it names no supporter for a path there.

The contexts joined to `c` by stored `genlCx` edges in direction `dir-key` (`:fwd` up,
`:rev` down), unscoped, less CxUniverse: `reach-support` takes the implicit edge to
CxUniverse, so it names no supporter for a path there.
sourceraw docstring

context-specificityclj

(context-specificity tax c)

The size of context c's genlCx ancestor set, 0 for a nil c: a context strictly below another scores higher.

The size of context `c`'s `genlCx` ancestor set, 0 for a nil `c`: a context strictly
below another scores higher.
sourceraw docstring

context-supporter?clj

(context-supporter? tax h)

Does stored handle h install a genlCx edge?

Does stored handle `h` install a `genlCx` edge?
sourceraw docstring

context-upclj

(context-up tax c)

Contexts c inherits from, incl c, after context-visible genlCx exceptions.

Contexts c inherits from, incl c, after context-visible genlCx exceptions.
sourceraw docstring

context-up-globalclj

(context-up-global tax c)

Contexts c inherits from through the active genlCx cache, with no except holes: the unscoped read, which exception evaluation uses. Every other caller wants context-up (docs/contexts.md).

Contexts `c` inherits from through the active genlCx cache, with no `except` holes:
the unscoped read, which exception evaluation uses.  Every other caller wants
`context-up` (docs/contexts.md).
sourceraw docstring

contextsclj

(contexts tax)
source

contexts-seen-with-globalclj

(contexts-seen-with-global tax c xs)

The contexts of xs that a context at or below c sees, through every active genlCx edge: x at or above c, at or below c, or sharing a descendant with c. The last test walks the contexts below c and those below x one step each in turn and stops when one walk ends. The walk below c is one for the call, and once it ends one walk up from its contexts answers every x, so the call costs the smaller of c's down-set and the xs' down-sets together, plus that upward walk, and never builds the larger down-set.

The contexts of `xs` that a context at or below `c` sees, through every active
`genlCx` edge: `x` at or above `c`, at or below `c`, or sharing a descendant with `c`.
The last test walks the contexts below `c` and those below `x` one step each in turn
and stops when one walk ends.  The walk below `c` is one for the call, and once it ends
one walk up from its contexts answers every `x`, so the call costs the smaller of
`c`'s down-set and the `xs`' down-sets together, plus that upward walk, and never
builds the larger down-set.
sourceraw docstring

contrapositive-closureclj

(contrapositive-closure tax p context supporter-class)

[straight swapped]: signed-closure :up of p from context, over only the genl and swap edges a reader holds at :monotonic: the predicates a negated pattern on p fans over. A genl edge's class is its strongest visible supporter's (edge-class); a swap hop needs one visible supporter that supporter-class reads :monotonic (handle -> class, nil for OUT; res/holding-class). A p with no supertype answers signed-closure's set. See docs/inference.md, "Under a negation the fan reverses".

`[straight swapped]`: `signed-closure` `:up` of `p` from `context`, over only the
`genl` and swap edges a reader holds at `:monotonic`: the predicates a negated
pattern on `p` fans over.  A `genl` edge's class is its strongest visible supporter's
(`edge-class`); a swap hop needs one visible supporter that `supporter-class`
reads `:monotonic` (`handle -> class`, nil for OUT; `res/holding-class`).  A `p` with no
supertype answers `signed-closure`'s set.  See docs/inference.md, "Under a negation the fan
reverses".
sourceraw docstring

copy-stored-supporter!clj

(copy-stored-supporter! from to h ctx)

Post stored handle h, stated in ctx, in index store to as a supporter of every taxonomy key it installs in index store from: the mirror of retire-stored-supporter!, which a fork's reopen over a grown base runs per arrival (vaelii.impl.overlay.rebase). Returns nil.

Post stored handle `h`, stated in `ctx`, in index store `to` as a supporter of every
taxonomy key it installs in index store `from`: the mirror of `retire-stored-supporter!`,
which a fork's reopen over a grown base runs per arrival (`vaelii.impl.overlay.rebase`).
Returns nil.
sourceraw docstring

cover-keyclj

(cover-key whole parts kind)

The support key one whole-and-parts declaration is held under: [:cover [whole parts] kind], with parts deduplicated and sorted by printed name, so a KB without the commutativity marks records the key a canonicalized one records.

The support key one whole-and-parts declaration is held under: `[:cover [whole parts]
kind]`, with `parts` deduplicated and sorted by printed name, so a KB without the
commutativity marks records the key a canonicalized one records.
sourceraw docstring

cover-kindsclj

The keyword each kind of whole-and-parts declaration is cached under: :covering (the parts exhaust the whole), :separating (no two parts share an instance) and :partition (both).

The keyword each kind of whole-and-parts declaration is cached under: `:covering`
(the parts exhaust the whole), `:separating` (no two parts share an instance) and
`:partition` (both).
sourceraw docstring

cover-movesclj

(cover-moves old new)

The wholes of the covering declarations one of two separation-inputs values old and new holds and the other does not, as a set. Reads the cover declarations only when the two values hold different ones.

The wholes of the covering declarations one of two `separation-inputs` values `old` and
`new` holds and the other does not, as a set.  Reads the cover declarations only when the two
values hold different ones.
sourceraw docstring

cover-partsclj

(cover-parts sentence)

The [whole parts] one (covering W P …), (separating W P …) or (partition W P …) sentence declares, or nil unless the whole and every part are symbols and at least two parts are distinct. See docs/taxonomy.md, "The supporters are index families".

The `[whole parts]` one `(covering W P …)`, `(separating W P …)` or `(partition W P
…)` sentence declares, or nil unless the whole and every part are symbols and at least
two parts are distinct.  See docs/taxonomy.md, "The supporters are index families".
sourceraw docstring

covering-kind?clj

(covering-kind? kind)

Does a declaration of this kind claim that its parts exhaust the whole?

Does a declaration of this kind claim that its parts exhaust the whole?
sourceraw docstring

coveringsclj

(coverings tax)

Every covering and partition declaration, as {whole #{[parts kind]}} (covering-kind?).

Every `covering` and `partition` declaration, as `{whole #{[parts kind]}}`
(`covering-kind?`).
sourceraw docstring

covers-namingclj

(covers-naming tax part)

Every covering and partition declaration naming part among its parts, as [whole parts kind].

Every `covering` and `partition` declaration naming `part` among its parts, as
`[whole parts kind]`.
sourceraw docstring

covers-naming-visibleclj

(covers-naming-visible tax part context)

covers-naming cut to the declarations context sees; an unscoped context sees every one.

`covers-naming` cut to the declarations `context` sees; an unscoped `context` sees
every one.
sourceraw docstring

covers-ofclj

(covers-of tax whole)

Every covering declaration over whole, as [parts kind].

Every covering declaration over `whole`, as `[parts kind]`.
sourceraw docstring

covers-overclj

(covers-over tax t context)

Every covering and partition declaration over t or a supertype of t that context sees, as [whole parts]. context may be an ancestor set (genls-at).

Every `covering` and `partition` declaration over `t` or a supertype of `t` that
`context` sees, as `[whole parts]`.  `context` may be an ancestor set (`genls-at`).
sourceraw docstring

covers-over-global-fnclj

(covers-over-global-fn tax)

(fn [t]) → covers-over of t unscoped, for a caller asking it of many types. The fn reads the wholes above t through one genls-global-among memo, dropped when the genl relation or the stored covers move.

`(fn [t])` → `covers-over` of `t` unscoped, for a caller asking it of many types.  The
fn reads the wholes above `t` through one `genls-global-among` memo, dropped when the
`genl` relation or the stored covers move.
sourceraw docstring

create-taxonomyclj

(create-taxonomy)
(create-taxonomy clock)

A KB's taxonomy: one atom holding the cached relations, plus a watch bumping clock, the KB's change clock (observe/note-change), on every write; with no clock, one of its own. :clock holds it. detached-copy carries no watch. The side atoms need none (docs/taxonomy.md, "Side atoms, probe copies and symmetric entries").

A KB's taxonomy: one atom holding the cached relations, plus a watch bumping `clock`,
the KB's change clock (`observe/note-change`), on every write; with no `clock`, one of
its own.  `:clock` holds it.  `detached-copy` carries no watch.  The side atoms need
none (docs/taxonomy.md, "Side atoms, probe copies and symmetric entries").
sourceraw docstring

declared-arityclj

(declared-arity tax pred)
(declared-arity tax pred context)

The arity pred is declared with, or nil: anywhere, or (with context) declared from a context the reader can see. Nil when the visible declarations give two different arities (docs/taxonomy.md, "Predicate metadata reads").

The arity `pred` is declared with, or nil: anywhere, or (with `context`) declared from
a context the reader can see.  Nil when the visible declarations give two different
arities (docs/taxonomy.md, "Predicate metadata reads").
sourceraw docstring

del-arity!clj

(del-arity! tax pred n handle)
source

del-commuting!clj

(del-commuting! tax pred group handle)
source

del-cover!clj

(del-cover! tax whole parts kind handle)
source

del-disjoint!clj

(del-disjoint! tax a b handle)
source

del-distinct!clj

(del-distinct! tax f n handle)
source

del-equality!clj

(del-equality! tax a b handle)

Drop handle's support for the merge of a and b. The merge survives while any other sentex still asserts it; when the last one goes the class splits back into whatever its remaining edges still connect.

Drop `handle`'s support for the merge of `a` and `b`.  The merge survives while any
other sentex still asserts it; when the last one goes the class splits back into
whatever its remaining edges still connect.
sourceraw docstring

del-functional-in-arg!clj

(del-functional-in-arg! tax pred n handle)
source

del-genl!clj

(del-genl! tax sub super handle)
source

del-genl-inverse!clj

(del-genl-inverse! tax p q handle)
source

del-genlCx!clj

(del-genlCx! tax sub super handle)
source

del-inverse!clj

(del-inverse! tax p q handle)
source

del-meet!clj

(del-meet! tax f order handle)
source

del-metatype-member!clj

(del-metatype-member! tax m t handle)
source

del-negates!clj

(del-negates! tax p q handle)
source

del-rewrite-rule!clj

(del-rewrite-rule! tax handle)

Drop equation handle's rewrite rule entirely — the last (and only) supporter is gone, so the rule leaves both maps.

Drop equation `handle`'s rewrite rule entirely — the last (and only) supporter is
gone, so the rule leaves both maps.
sourceraw docstring

del-sib-exception!clj

(del-sib-exception! tax a b handle)
source

deprecated?clj

(deprecated? tax term)
(deprecated? tax term visible?)

Did a believed rewriteOf name term the dispreferred side? False for a sameAs or equals member. With visible?, only the supporters that reader admits count, read per supporter, since one edge may carry a rewriteOf and a sameAs at once.

Did a believed `rewriteOf` name `term` the dispreferred side?  False for a `sameAs`
or `equals` member.  With `visible?`, only the supporters that reader admits count,
read per supporter, since one edge may carry a `rewriteOf` and a `sameAs` at once.
sourceraw docstring

derives-from?clj

(derives-from? tax handle)

Does handle install a taxonomy key (keys-of): a genl or genlCx edge, or a flat-cache entry? An equality supporter installs none.

Does `handle` install a taxonomy key (`keys-of`): a `genl` or `genlCx` edge, or a
flat-cache entry?  An equality supporter installs none.
sourceraw docstring

detached-copyclj

(detached-copy tax)

The current taxonomy state in a fresh atom, for a what-if probe: mutate the copy and the real taxonomy never learns it. :closure-memo, :closure-lru, :rewrite-order and :genl-kind are the copy's own, and :index is a fork of the original's (mount/fork-families). See docs/taxonomy.md, "Side atoms, probe copies and symmetric entries".

The current taxonomy state in a fresh atom, for a what-if probe: mutate the copy and
the real taxonomy never learns it.  `:closure-memo`, `:closure-lru`, `:rewrite-order` and
`:genl-kind` are the copy's own, and `:index` is a fork of the original's (`mount/fork-families`).
See docs/taxonomy.md, "Side atoms, probe copies and symmetric entries".
sourceraw docstring

direct-genlsclj

(direct-genls tax t context)

t's direct parents through the edges visible from context: the types one genl edge leads up to, a stated (genl t super) or a cover declaration naming t as a part.

`t`'s direct parents through the edges visible from `context`: the types one `genl` edge
leads up to, a stated `(genl t super)` or a cover declaration naming `t` as a part.
sourceraw docstring

direct-genls-globalclj

(direct-genls-global tax t)

direct-genls through every active edge, with no context scope.

`direct-genls` through every active edge, with no context scope.
sourceraw docstring

direct-specsclj

(direct-specs tax t context)

t's direct children through the edges visible from context.

`t`'s direct children through the edges visible from `context`.
sourceraw docstring

direct-specs-globalclj

(direct-specs-global tax t)

direct-specs through every active edge — no context scope.

`direct-specs` through **every** active edge — no context scope.
sourceraw docstring

disjoint-metatype?clj

(disjoint-metatype? tax m)
source

disjoint-metatypesclj

(disjoint-metatypes tax)
source

disjoint-pairsclj

(disjoint-pairs tax)
source

disjoint?clj

(disjoint? tax a b)
(disjoint? tax a b context)

Are types a and b provably disjoint: is some supertype of a separated from a different supertype of b by a declaration disjointness-test reads? context scopes the closures and the declarations. An ancestor set reads what some supporter states in the set, with no belief callback (genls-asserted-in). See docs/taxonomy.md, "Disjointness".

Are types `a` and `b` provably disjoint: is some supertype of `a` separated from a
different supertype of `b` by a declaration `disjointness-test` reads?  `context` scopes
the closures and the declarations.  An ancestor set reads what some supporter states in
the set, with no belief callback (`genls-asserted-in`).  See docs/taxonomy.md,
"Disjointness".
sourceraw docstring

disjointness-testclj

(disjointness-test tax a context)
(disjointness-test tax a context exempt?)

A predicate type -> boolean answering (disjoint? tax a <type> context), with what depends on a and context alone read once (separation-frame). exempt? is the siblingDisjointException read (fn [x y]) the three mark arms consult: by default the exceptions context reads (exemption); (constantly false) reads none.

A predicate `type -> boolean` answering `(disjoint? tax a <type> context)`, with what
depends on `a` and `context` alone read once (`separation-frame`).  `exempt?` is the
`siblingDisjointException` read `(fn [x y])` the three mark arms consult: by default the
exceptions `context` reads (`exemption`); `(constantly false)` reads none.
sourceraw docstring

disjointness-witnessesclj

(disjointness-witnesses tax a b)

Lazy seq of witness context sets for the provable disjointness of a and b: each is the supporting contexts of one complete derivation (a genl path from a to one separated type, a path from b to the other, and the separating declaration in any of the four spellings). A reader sees the clash iff it sees every context in some witness; a supporter with no recorded context imposes nothing. Lazy on every level. Reads no siblingDisjointException: empty exactly when no reader separates the pair, disjointness-test reading no exemption.

Lazy seq of witness context sets for the provable disjointness of `a` and `b`: each is
the supporting contexts of one complete derivation (a genl path from `a` to one separated
type, a path from `b` to the other, and the separating declaration in any of the four
spellings).  A reader sees the clash iff it sees every context in some witness; a
supporter with no recorded context imposes nothing.  Lazy on every level.  Reads no
`siblingDisjointException`: empty exactly when no reader separates the pair,
`disjointness-test` reading no exemption.
sourceraw docstring

distinct-positionsclj

(distinct-positions tax f)

The positions f is declared distinct from, as a set, read off the exact functor and globally, as commuting-groups is.

The positions `f` is declared distinct from, as a set, read off the exact functor and
globally, as `commuting-groups` is.
sourceraw docstring

distinct-supportersclj

(distinct-supporters tax f n)

The handles of the sentexes stating (distinctInArgAndRest f n), defeated members included.

The handles of the sentexes stating `(distinctInArgAndRest f n)`, defeated members
included.
sourceraw docstring

edge-contextsclj

(edge-contexts tax rel-key e)

The supporting contexts of active edge e in relation rel-key, as a set: its :edge-ctxs (docs/taxonomy.md, "The closures are derived state"). nil in the set is a supporter with no recorded context. Empty when the edge is not active.

The supporting contexts of active edge `e` in relation `rel-key`, as a set: its
`:edge-ctxs` (docs/taxonomy.md, "The closures are derived state").  nil in the set is
a supporter with no recorded context.  Empty when the edge is not active.
sourceraw docstring

edge-installing-functorsclj

The functors of the sentences installed-edges reads a genl edge off.

The functors of the sentences `installed-edges` reads a `genl` edge off.
sourceraw docstring

edge-stepsclj

(edge-steps tax rel-key context supporter-class hidable)
(edge-steps tax rel-key context supporter-class hidable dir-key)
(edge-steps tax rel-key context supporter-class hidable dir-key floor)
(edge-steps tax rel-key context supporter-class hidable dir-key floor router)

step for uncovered-routes over relation rel-key as context sees it: from a node, each visible neighbour once per visible supporter of the edge that no other visible supporter covers. dir-key :fwd steps along the edges and :rev against them. With supporter-class each supporter carries its strength rank; with hidable (handle -> boolean) each supporter an except can hide is marked; with the class floor, only the supporters supporter-class reads at least that strong. Without hidable, a router (reach-support's, one class reading) holds each node's steps.

`step` for `uncovered-routes` over relation `rel-key` as `context` sees it: from a
node, each visible neighbour once per visible supporter of the edge that no other visible
supporter covers.  `dir-key` `:fwd` steps along the edges and `:rev` against them.  With
`supporter-class` each supporter carries its strength rank; with `hidable` (`handle ->
boolean`) each supporter an except can hide is marked; with the class `floor`, only the
supporters `supporter-class` reads at least that strong.  Without `hidable`, a `router`
(`reach-support`'s, one class reading) holds each node's steps.
sourceraw docstring

equality-edgesclj

(equality-edges tax)
source

equality-moves?clj

(equality-moves? tax reader)

Does reader hold moved terms take-equality-moves! has not taken?

Does `reader` hold moved terms `take-equality-moves!` has not taken?
sourceraw docstring

equality-partitionclj

(equality-partition edges prefs)

Compute {:class :members} from scratch, given the active undirected edges and the active [preferred dispreferred] claims.

This is the reference implementation, the equality analogue of closures: the incremental union above and the class-local rebuild below must agree with it edge for edge, and the oracle test in taxonomy_test checks exactly that after every edit of a random sequence.

Compute `{:class :members}` from scratch, given the active undirected `edges` and
the active `[preferred dispreferred]` claims.

This is the **reference implementation**, the equality analogue of `closures`: the
incremental union above and the class-local rebuild below must agree with it edge
for edge, and the oracle test in `taxonomy_test` checks exactly that after every
edit of a random sequence.
sourceraw docstring

equality-prefsclj

(equality-prefs tax)

Every active [preferred dispreferred] claim — the directed rewriteOf graph, flattened out of the per-edge preference sets. wff walks it to reject a cycle; nothing else needs the direction, since the partition itself is undirected.

Every active `[preferred dispreferred]` claim — the directed `rewriteOf` graph,
flattened out of the per-edge preference sets.  `wff` walks it to reject a cycle;
nothing else needs the direction, since the partition itself is undirected.
sourceraw docstring

equality-supportersclj

(equality-supporters tax term)

The handles of the believed sentexes asserting an active equality edge incident on term: the equalities migration reads a reader's copy's witnesses from.

The handles of the believed sentexes asserting an active equality edge incident on
`term`: the equalities migration reads a reader's copy's witnesses from.
sourceraw docstring

equiv-classclj

(equiv-class tax term)

Every term known equal to term, incl. itself.

Every term known equal to `term`, incl. itself.
sourceraw docstring

exact-arity-classesclj

What each exact-arity class membership says the arity is: sx/exact-arity-classes, read here by kb/relation? and the quality and integrity passes.

What each exact-arity class membership says the arity is: `sx/exact-arity-classes`,
read here by `kb/relation?` and the quality and integrity passes.
sourceraw docstring

flat-contextsclj

(flat-contexts tax)

Every flat-cache entry's supporting contexts (cache-contexts), as one map. A caller diffs two of them where flat-moves does not reach back (docs/nmtms.md).

Every flat-cache entry's supporting contexts (`cache-contexts`), as one map.  A caller
diffs two of them where `flat-moves` does not reach back (docs/nmtms.md).
sourceraw docstring

flat-movesclj

(flat-moves tax since)

[pos moved]: the position of the journal set-cache-ctxs writes, and the flat-cache keys whose supporting contexts moved since the position since (an earlier pos), nil when the journal does not reach back that far or since is nil.

`[pos moved]`: the position of the journal `set-cache-ctxs` writes, and the flat-cache
keys whose supporting contexts moved since the position `since` (an earlier `pos`), nil
when the journal does not reach back that far or `since` is nil.
sourceraw docstring

floor-covers?clj

(floor-covers? tax f1 f2)

Does a reader that sees every context of floor f2 see every context of floor f1: is each member of f1 seen from a member of f2?

Does a reader that sees every context of floor `f2` see every context of floor `f1`:
is each member of `f1` seen from a member of `f2`?
sourceraw docstring

functional-family-declared?clj

(functional-family-declared? tax)

Does the taxonomy carry a functional-family mark of either spelling, anywhere?

Does the taxonomy carry a functional-family mark of either spelling, anywhere?
sourceraw docstring

functional-family-marksclj

The spellings of the functional mark, each with its written shape: :mark for (functional P), :mark-in-arg for (functionalInArg P n). The marked predicate is argument 1 of either (docs/predicates.md).

The spellings of the functional mark, each with its written shape: `:mark` for
`(functional P)`, `:mark-in-arg` for `(functionalInArg P n)`.  The marked predicate is
argument 1 of either (docs/predicates.md).
sourceraw docstring

functional-in-arg-overclj

(functional-in-arg-over tax p)
(functional-in-arg-over tax p context)

[pred n] pairs: p and every super-predicate of it carrying a (functionalInArg pred n) declaration, anywhere or (with context) declared from a context the reader can see; empty when none does. See docs/taxonomy.md, "Predicate metadata reads".

`[pred n]` pairs: `p` and every super-predicate of it carrying a
`(functionalInArg pred n)` declaration, anywhere or (with `context`) declared from a
context the reader can see; empty when none does.  See docs/taxonomy.md, "Predicate
metadata reads".
sourceraw docstring

functional-in-arg-predicatesclj

(functional-in-arg-predicates tax)

Every predicate carrying any functionalInArg mark, at any position, as a set: one map read, no closure walk.

Every predicate carrying any `functionalInArg` mark, at any position, as a set: one map
read, no closure walk.
sourceraw docstring

functional-in-arg-supportersclj

(functional-in-arg-supporters tax pred n)

prop-supporters for the declarations of (functionalInArg pred n): those naming position n, not every functionalInArg declaration of pred.

`prop-supporters` for the declarations of `(functionalInArg pred n)`: those naming
position `n`, not every `functionalInArg` declaration of `pred`.
sourceraw docstring

general-reach-supportsclj

(general-reach-supports tax rel-key sub super context)

Every witness for sub ->* super in rel-key that context sees and no other witness covers (uncovered-routes), each the [handle ctx] of one supporter per edge along one path, super end first. [[]] for sub = super; [] when context sees no path.

Every witness for `sub ->* super` in `rel-key` that `context` sees and no other witness
covers (`uncovered-routes`), each the `[handle ctx]` of one supporter per edge along
one path, `super` end first.  `[[]]` for `sub` = `super`; `[]` when `context` sees no
path.
sourceraw docstring

genl-asserted-in?clj

(genl-asserted-in? tax sub super ctxs)

Is super in genls-asserted-in of sub and ctxs? Held in the closure cache (docs/taxonomy.md, "What the pure reads of the hierarchy promise").

Is `super` in `genls-asserted-in` of `sub` and `ctxs`?  Held in the closure
cache (docs/taxonomy.md, "What the pure reads of the hierarchy promise").
sourceraw docstring

genl-edge-supportersclj

(genl-edge-supporters tax sub super context)

The handles of the supporters through which genl? from context walks genl edge [sub super] (visible-edge-supporters), as a set: (genl sub super) sentexes and the covering, separating or partition declarations installing the edge. Empty when the edge is not active.

The handles of the supporters through which `genl?` from `context` walks `genl` edge
`[sub super]` (`visible-edge-supporters`), as a set: `(genl sub super)` sentexes and the
`covering`, `separating` or `partition` declarations installing the edge.  Empty when
the edge is not active.
sourceraw docstring

genl-edgesclj

(genl-edges tax)
source

genl-inverse-keyclj

(genl-inverse-key p q)

The flat-cache key a (genlInverse p q) declaration installs.

The flat-cache key a `(genlInverse p q)` declaration installs.
sourceraw docstring

genl-path-edgesclj

(genl-path-edges tax sub super)

The [a b] edges of one path of active genl edges from sub up to super (genl-path), held in the closure cache under the relation's :gen, or nil when there is none.

The `[a b]` edges of one path of active `genl` edges from `sub` up to `super`
(`genl-path`), held in the closure cache under the relation's `:gen`, or nil when there
is none.
sourceraw docstring

genl?clj

(genl? tax sub super context)

Is sub at or below super through the edges visible from context? genl?-global is the unscoped read.

Is `sub` at or below `super` through the edges visible from `context`?  `genl?-global`
is the unscoped read.
sourceraw docstring

genl?-globalclj

(genl?-global tax sub super)

Is sub at or below super through the active edges, with no context scope?

Is `sub` at or below `super` through the active edges, with no context scope?
sourceraw docstring

genl?-global-heldclj

(genl?-global-held tax sub super)

genl?-global, held in the closure cache under the genl generation, for a caller asking one pair many times.

`genl?-global`, held in the closure cache under the `genl` generation, for a caller
asking one pair many times.
sourceraw docstring

genlCx-edgesclj

(genlCx-edges tax)
source

genlCx-stored?-globalclj

(genlCx-stored?-global tax sub super)

Does context sub reach context super over the stored active edges alone, without the implicit edge to CxUniverse? wff refuses a genlCx edge that closes a stored cycle with it.

Does context sub reach context super over the stored active edges alone, without the
implicit edge to CxUniverse?  `wff` refuses a `genlCx` edge that closes a stored cycle
with it.
sourceraw docstring

genlCx?-globalclj

(genlCx?-global tax sub super)

Does context sub see context super through any active edge — no context scope. The genlCx twin of genl?-global, and sees?'s unscoped read; wff uses it to refuse a cycle, which is a property of the whole edge set.

Does context sub see context super through **any** active edge — no context
scope.  The `genlCx` twin of `genl?-global`, and `sees?`'s unscoped read; `wff`
uses it to refuse a cycle, which is a property of the whole edge set.
sourceraw docstring

genlsclj

(genls tax t context)

Supertypes of t, incl t, through the edges visible from context. genls-global is the unscoped read.

Supertypes of `t`, incl `t`, through the edges visible from `context`.  `genls-global`
is the unscoped read.
sourceraw docstring

genls-amongclj

(genls-among tax t context among memo)

genls of t from context cut to the set among: genls-global-among over memo, kept for one among over one still taxonomy, then genl? from context of each term where a scope applies.

`genls` of `t` from `context` cut to the set `among`: `genls-global-among` over `memo`,
kept for one `among` over one still taxonomy, then `genl?` from `context` of each term
where a scope applies.
sourceraw docstring

genls-asserted-amongclj

(genls-asserted-among tax sub among ctxs)

The terms of the set among in genls-asserted-in of sub and ctxs, read off one depth-pruned walk up from sub that stops once it reaches every term of among.

The terms of the set `among` in `genls-asserted-in` of `sub` and `ctxs`, read off one
depth-pruned walk up from `sub` that stops once it reaches every term of `among`.
sourceraw docstring

genls-asserted-inclj

(genls-asserted-in tax t ctxs)

Supertypes of t, incl t, through the active edges some supporter asserts from a context in the set ctxs, with no belief callback. A predicate genl edge is forced monotonic, so for a predicate this is genls from a reader whose ancestor set is ctxs. It reads no belief, so a caller that must not re-enter the supporter callback (res/supporter-unhidden?) reads it in place of a scoped genls.

Supertypes of t, incl t, through the active edges some supporter asserts from a
context in the set `ctxs`, with no belief callback.  A predicate `genl` edge is forced
monotonic, so for a predicate this is `genls` from a reader whose ancestor set is
`ctxs`.  It reads no belief, so a caller that must not re-enter the supporter callback
(`res/supporter-unhidden?`) reads it in place of a scoped `genls`.
sourceraw docstring

genls-globalclj

(genls-global tax t)

Supertypes of t, incl t, through every active edge, with no context scope.

Supertypes of `t`, incl `t`, through every active edge, with no context scope.
sourceraw docstring

genls-global-amongclj

(genls-global-among tax t among)
(genls-global-among tax t among memo)

genls-global of t cut to the set among: with memo, kept for one among, genls-global-union with a filter; without, a walk down from each term of among (reached-from?).

`genls-global` of `t` cut to the set `among`: with `memo`, kept for one `among`,
`genls-global-union` with a filter; without, a walk down from each term of `among`
(`reached-from?`).
sourceraw docstring

genls-global-meets-without?clj

(genls-global-meets-without? tax t among a b)

Does t reach a term of the set among up every active genl edge but the one from a to b? A walk up that returns at the first such term and stores nothing.

Does `t` reach a term of the set `among` up every active `genl` edge but the one from
`a` to `b`?  A walk up that returns at the first such term and stores nothing.
sourceraw docstring

genls-global-meets?clj

(genls-global-meets? tax t among)
(genls-global-meets? tax t among missed)

Does genls-global of t hold a term among accepts, a set or a predicate? A walk up that returns at the first such term and stores nothing. missed, when given, is a volatile set kept by the caller for one among over one still taxonomy.

Does `genls-global` of `t` hold a term `among` accepts, a set or a predicate?  A walk
up that returns at the first such term and stores nothing.  `missed`, when given, is a
volatile set kept by the caller for one `among` over one still taxonomy.
sourceraw docstring

genls-global-reaching-fnclj

(genls-global-reaching-fn tax q supporter-class)

(fn [t]) → the types of genls-global of t that are q or reach it up genl edges whose strongest supporter supporter-class reads :monotonic (edge-class, unscoped). A caller asks it of many types over one still taxonomy and belief. The fn holds each type's answer and the answers by component (genls-global-union), so it builds no type's closure and walks an ancestor two types share once. A type whose parents are answered reads the class of its edges to those that are q or reach it, and no other.

`(fn [t])` → the types of `genls-global` of `t` that are `q` or reach it up `genl` edges
whose strongest supporter `supporter-class` reads `:monotonic` (`edge-class`, unscoped).
A caller asks it of many types over one still taxonomy and belief.  The fn holds each
type's answer and the answers by component (`genls-global-union`), so it builds no
type's closure and walks an ancestor two types share once.  A type whose parents are
answered reads the class of its edges to those that are `q` or reach it, and no other.
sourceraw docstring

genls-global-unionclj

(genls-global-union tax t xf memo)

The union of what the transducer xf makes of each term of genls-global of t. memo, a volatile map the caller makes for one xf over one still taxonomy, keeps answers by component representative (docs/taxonomy.md, "What the pure reads of the hierarchy promise").

The union of what the transducer `xf` makes of each term of `genls-global` of `t`.
`memo`, a volatile map the caller makes for one `xf` over one still taxonomy, keeps
answers by component representative (docs/taxonomy.md, "What the pure reads of the
hierarchy promise").
sourceraw docstring

genls-global-union-heldclj

(genls-global-union-held tax t xf held hold!)

genls-global-union of t with the answers by component representative read from (held node) and handed to (hold! node answer), a store the caller keeps past one pass. A call reads what an earlier call held, so the caller retires the answers of the nodes at or below a term xf makes something else of.

`genls-global-union` of `t` with the answers by component representative read from
`(held node)` and handed to `(hold! node answer)`, a store the caller keeps past one
pass.  A call reads what an earlier call held, so the caller retires the answers of the
nodes at or below a term `xf` makes something else of.
sourceraw docstring

genls-global-withinclj

(genls-global-within tax t limit)

genls-global of t when it holds at most limit terms, else nil, with no walk past limit (closure-within).

`genls-global` of `t` when it holds at most `limit` terms, else nil, with no walk past
`limit` (`closure-within`).
sourceraw docstring

genls-withinclj

(genls-within tax t context limit)

genls of t from context when it holds at most limit terms, else nil.

`genls` of `t` from `context` when it holds at most `limit` terms, else nil.
sourceraw docstring

grounds-stated-inclj

(grounds-stated-in tax ctxs)

The handles stated in a context of ctxs whose functor states a genl edge or a flat-cache declaration (census-functors). A raw taxonomy's store holds no predicate extent, so there it answers every handle stated in ctxs.

The handles stated in a context of `ctxs` whose functor states a `genl` edge or a
flat-cache declaration (`census-functors`).  A raw taxonomy's store holds no predicate
extent, so there it answers every handle stated in `ctxs`.
sourceraw docstring

grows-sinceclj

(grows-since tax rel-key gen)

The edges [a b] of relation rel-key that entered the active set after generation gen (note-grow), as a set, nil when the relation keeps no such log.

The edges `[a b]` of relation `rel-key` that entered the active set after generation
`gen` (`note-grow`), as a set, nil when the relation keeps no such log.
sourceraw docstring

has-prop?clj

(has-prop? tax kind pred)
(has-prop? tax kind pred context)

Does pred carry property kind — anywhere, or (with context) declared from a context the reader can see? :symmetric and :commutative are read from every context: with a context they answer whether it believes a statement (keyed-entry-believed?; docs/contexts.md, "Where a relation property is read from").

Does `pred` carry property `kind` — anywhere, or (with `context`) declared from
a context the reader can see?  `:symmetric` and `:commutative` are read from every
context: with a context they answer whether it believes a statement
(`keyed-entry-believed?`; docs/contexts.md, "Where a relation property is read from").
sourceraw docstring

held-closure-sizeclj

(held-closure-size tax rel-key dir-key node)

The size of stored-closure-of's answer for node, read without a walk: 1 when no active edge leaves node in direction dir-key, else the size of the closure the cache holds under the relation's generation, else nil.

The size of `stored-closure-of`'s answer for `node`, read without a walk: 1 when no
active edge leaves `node` in direction `dir-key`, else the size of the closure the cache
holds under the relation's generation, else nil.
sourceraw docstring

install-index!clj

(install-index! tax index)

Install the KB's index store on tax: the supporter families are posted to it and read from it, and census-in reads the contexts that state a supporter there.

Install the KB's index store on `tax`: the supporter families are posted to it and
read from it, and `census-in` reads the contexts that state a supporter there.
sourceraw docstring

install-supporter-visibility!clj

(install-supporter-visibility! tax active? visible?)
(install-supporter-visibility! tax
                               active?
                               visible?
                               network-active?
                               network-visible?
                               reaches?
                               sentence-of)

Install the KB-owned visibility callbacks on tax. active? is the O(1) whole-KB presence check: falsy while no except or placed defeat is stored, else truthy, and then the stored target entries, a seq of [key #{target-handle …}] (a bare truthy value means every relation). reaches? answers whether a supporter of the relation being read rests on a target, given the entries, a supporter-summary and whether placed defeats count (they do not for genlCx). visible? answers whether one stored supporter handle is IN and hidden by no except or defeat at one reader context. network-active? and network-visible? read the network and stored excepts alone (*network-belief*). sentence-of answers the sentence a supporter handle states, for most-general-of.

Install the KB-owned visibility callbacks on `tax`.  `active?` is the O(1) whole-KB
presence check: falsy while no `except` or placed `defeat` is stored, else truthy, and
then the stored target entries, a seq of `[key #{target-handle …}]` (a bare truthy value
means every relation).  `reaches?` answers whether a supporter of the relation being read
rests on a target, given the entries, a `supporter-summary` and whether placed defeats
count (they do not for `genlCx`).  `visible?` answers whether one stored supporter
handle is IN and hidden by no except or defeat at one reader context.  `network-active?` and
`network-visible?` read the network and stored `except`s alone (`*network-belief*`).
`sentence-of` answers the sentence a supporter handle states, for `most-general-of`.
sourceraw docstring

installed-edgesclj

(installed-edges sentence)

The [sub super] pairs sentence adds to the genl closure: one for a (genl sub super) edge with a symbol sub, one per part for a covering, separating or partition declaration (special/cover-arms), none for any other sentence. A part equal to the whole gives no pair. See docs/taxonomy.md, "A cover states the specialization it rests on".

The `[sub super]` pairs `sentence` adds to the `genl` closure: one for a `(genl sub
super)` edge with a symbol `sub`, one per part for a `covering`, `separating` or
`partition` declaration (`special/cover-arms`), none for any other sentence.  A part
equal to the whole gives no pair.  See docs/taxonomy.md, "A cover states the
specialization it rests on".
sourceraw docstring

installed-keysclj

(installed-keys tax h)

The taxonomy keys the stored handle h installs, as a set, every family included.

The taxonomy keys the stored handle `h` installs, as a set, every family included.
sourceraw docstring

inverse-ofclj

(inverse-of tax p)
(inverse-of tax p context)

The declared inverse of p, or nil: anywhere, or (with context) declared from a context the reader can see. The lexicographically smallest of several, so the answer does not depend on arrival order. inverses-of answers all of them.

The declared inverse of `p`, or nil: anywhere, or (with `context`) declared from a
context the reader can see.  The lexicographically smallest of several, so the answer
does not depend on arrival order.  `inverses-of` answers all of them.
sourceraw docstring

inverses-ofclj

(inverses-of tax p)
(inverses-of tax p context)

Every predicate declared inverse to p, as a set: anywhere, or (with context) the ones declared from a context the reader can see. Empty when none is.

Every predicate declared inverse to `p`, as a set: anywhere, or (with `context`) the
ones declared from a context the reader can see.  Empty when none is.
sourceraw docstring

inverses-overclj

(inverses-over tax p)
(inverses-over tax p context supporter-class)

The partners a denial of p reads: each Q an (inverse P' Q) declares for a P' at or above p. With context and supporter-class (contrapositive-closure's), P' ranges over the straight half of contrapositive-closure and the declaration needs a visible supporter supporter-class reads :monotonic. Without them, the unscoped superset over every genl edge and declaration, for a trigger.

The partners a denial of `p` reads: each `Q` an `(inverse P' Q)` declares for a `P'`
at or above `p`.  With `context` and `supporter-class` (`contrapositive-closure`'s),
`P'` ranges over the straight half of `contrapositive-closure` and the declaration needs
a visible supporter `supporter-class` reads `:monotonic`.  Without them, the unscoped
superset over every `genl` edge and declaration, for a trigger.
sourceraw docstring

inverses-underclj

(inverses-under tax p)
(inverses-under tax p context)

Every predicate declared inverse to p or to a sub-predicate of p, as a set: anywhere, or (with context) declared from a context the reader can see, walking only the genl edges visible from it. One map read when the :inverse map is empty.

Every predicate declared inverse to `p` or to a sub-predicate of `p`, as a set:
anywhere, or (with `context`) declared from a context the reader can see, walking only
the `genl` edges visible from it.  One map read when the `:inverse` map is empty.
sourceraw docstring

mark-compound-rewriteclj

(mark-compound-rewrite tax target handle ctx)

Record one compound rewrite binding's support; no equality class is merged.

Record one compound rewrite binding's support; no equality class is merged.
sourceraw docstring

mark-disjoint-metatypeclj

(mark-disjoint-metatype tax m handle)
(mark-disjoint-metatype tax m handle ctx)
source

mark-propclj

(mark-prop tax kind pred handle)
(mark-prop tax kind pred handle ctx)
source

mark-sibling-disjointclj

(mark-sibling-disjoint tax c handle)
(mark-sibling-disjoint tax c handle ctx)
source

max-common-specsclj

(max-common-specs tax types context)

The maximal strict common subtypes of types from context, as a set: max-types of common-specs less the members. One distinct member answers max-specs of it.

The maximal strict common subtypes of `types` from `context`, as a set: `max-types` of
`common-specs` less the members.  One distinct member answers `max-specs` of it.
sourceraw docstring

max-context-childrenclj

(max-context-children tax c)

The maximal contexts that inherit from c: the contexts that reach c over one genlCx edge with no other such context strictly above them. max-specs over genlCx, and min-context-parents' reverse. While some except targets a genlCx supporter (relation-filter-active?) each direct child is judged by its own min-context-parents; otherwise the raw adjacency is the answer (docs/contexts.md).

The maximal contexts that inherit from `c`: the contexts that reach `c` over one
`genlCx` edge with no other such context strictly above them.  `max-specs` over `genlCx`,
and `min-context-parents`' reverse.  While some `except` targets a `genlCx` supporter
(`relation-filter-active?`) each direct child is judged by its own `min-context-parents`;
otherwise the raw adjacency is the answer (docs/contexts.md).
sourceraw docstring

max-cxsclj

(max-cxs tax ctxs)
(max-cxs tax ctxs member?)

The maximal (most general) contexts in ctxs under the current visibility relation, for a set the caller already filtered: extremal over each one's context-up, each survivor collapsed to its cycle's one name (placement-rep). With member?, any context member? holds of strikes one below it (extremal). See docs/contexts.md.

The maximal (most general) contexts in `ctxs` under the current visibility relation,
for a set the caller already filtered: `extremal` over each one's `context-up`, each
survivor collapsed to its cycle's one name (`placement-rep`).  With `member?`, any
context `member?` holds of strikes one below it (`extremal`).  See docs/contexts.md.
sourceraw docstring

max-specsclj

(max-specs tax t context)

The maximal subtypes of t through the edges visible from context, as a set: t's direct children (direct-specs) with no other one strictly above them.

The maximal subtypes of `t` through the edges visible from `context`, as a set: `t`'s
direct children (`direct-specs`) with no other one strictly above them.
sourceraw docstring

max-specs-globalclj

(max-specs-global tax t)

max-specs through every active edge — no context scope.

`max-specs` through **every** active edge — no context scope.
sourceraw docstring

max-typesclj

(max-types tax types context)

The members of types with no other member strictly above them through the edges visible from context, as a set: #{animal} in min-types' example. max-types-global is the unscoped read.

The members of `types` with no other member strictly above them through the edges
visible from `context`, as a set: `#{animal}` in `min-types`' example.
`max-types-global` is the unscoped read.
sourceraw docstring

max-types-globalclj

(max-types-global tax types)

max-types through every active edge — no context scope.

`max-types` through **every** active edge — no context scope.
sourceraw docstring

maximal-common-descendant-contextsclj

(maximal-common-descendant-contexts tax ctxs)

The maximal elements of the common descendants of ctxs (the contexts K with each ctx in up(K)), as a set: possibly empty, possibly several. Places a forward-derived sentex given the contexts of the rule and its antecedent facts. Early exits: a member that sees every other (seeing-member), and an intersection that empties. Mutually visible contexts collapse to one by term-min. See docs/contexts.md.

The maximal elements of the common descendants of `ctxs` (the contexts K with each ctx
in up(K)), as a set: possibly empty, possibly several.  Places a forward-derived sentex
given the contexts of the rule and its antecedent facts.  Early exits: a member that sees
every other (`seeing-member`), and an intersection that empties.  Mutually visible
contexts collapse to one by `term-min`.  See docs/contexts.md.
sourceraw docstring

meet-closureclj

(meet-closure tax ctxs)

ctxs closed under maximal-common-descendant-contexts of its pairs: every context where two or more of them meet, plus the members. Fewer than two contexts close with no read. See docs/contexts.md.

`ctxs` closed under `maximal-common-descendant-contexts` of its pairs: every context
where two or more of them meet, plus the members.  Fewer than two contexts close with no
read.  See docs/contexts.md.
sourceraw docstring

meet-closure-globalclj

(meet-closure-global tax ctxs)

meet-closure over the active genlCx edges with no except holes: each pair's maximal common descendants under context-down-global and context-up-global. For a read that takes its ancestor sets from context-up-global.

`meet-closure` over the active `genlCx` edges with no `except` holes: each pair's
maximal common descendants under `context-down-global` and `context-up-global`.  For a
read that takes its ancestor sets from `context-up-global`.
sourceraw docstring

meet-functionsclj

(meet-functions tax)

The functions some (meetFunctionOf f order) declares a meet, as a map of each to its orders; empty on a KB declaring none.

The functions some `(meetFunctionOf f order)` declares a meet, as a map of each to its
orders; empty on a KB declaring none.
sourceraw docstring

meet-ordersclj

(meet-orders tax f)

The orders f is declared the meet of, as a set, read off the exact functor and globally, as commuting-groups is.

The orders `f` is declared the meet of, as a set, read off the exact functor and
globally, as `commuting-groups` is.
sourceraw docstring

meet-supportersclj

(meet-supporters tax f order)

The handles of the sentexes stating (meetFunctionOf f order), defeated members included.

The handles of the sentexes stating `(meetFunctionOf f order)`, defeated members
included.
sourceraw docstring

mention-marksclj

(mention-marks tax)

The two kinds of head that make a position a mention (a term named as syntax), as {:quoting #{…} :modal #{…}}, read once per walk. :quoting is sx/quoting-functors (Quote, Quasiquote); :modal is the modal_predicate marks, read globally. See docs/taxonomy.md, "Predicate metadata reads".

The two kinds of head that make a position a mention (a term named as syntax), as
`{:quoting #{…} :modal #{…}}`, read once per walk.  `:quoting` is `sx/quoting-functors`
(`Quote`, `Quasiquote`); `:modal` is the `modal_predicate` marks, read globally.  See
docs/taxonomy.md, "Predicate metadata reads".
sourceraw docstring

merged-term-predclj

(merged-term-pred tax)

A term -> boolean closed over one snapshot of the partition, or nil when the closure is empty, so a caller filtering every symbol of an answer set drops the filter outright for a KB that has merged nothing.

A `term -> boolean` closed over one snapshot of the partition, or nil when the closure
is empty, so a caller filtering every symbol of an answer set drops the filter
outright for a KB that has merged nothing.
sourceraw docstring

merged-termsclj

(merged-terms tax)

Every symbol of an equality class of two or more, read unscoped.

Every symbol of an equality class of two or more, read unscoped.
sourceraw docstring

merged?clj

(merged? tax term)

Has anything merged term at all? The O(1) presence check every scoped read takes first: a KB with no equalities, and a term in none of them, never pays for scoped-class.

Has anything merged `term` at all?  The O(1) presence check every scoped read takes
first: a KB with no equalities, and a term in none of them, never pays for
`scoped-class`.
sourceraw docstring

metatype-membersclj

(metatype-members tax m)
source

min-common-genlsclj

(min-common-genls tax types context)

The minimal strict common supertypes of types from context, as a set: min-types of common-genls less the members. For dog and cat under mammal ⊂ animal it is #{mammal}; for dog and mammal it is #{animal}. One distinct member answers min-genls of it.

The minimal strict common supertypes of `types` from `context`, as a set: `min-types` of
`common-genls` less the members.  For `dog` and `cat` under `mammal ⊂ animal` it is
`#{mammal}`; for `dog` and `mammal` it is `#{animal}`.  One distinct member answers
`min-genls` of it.
sourceraw docstring

min-context-parentsclj

(min-context-parents tax c)

The minimal contexts c inherits from: the contexts c reaches over one genlCx edge with no other such context strictly below them. min-genls over genlCx, read as context-up reads, after the except holes c reads (relation-scope). Not reflexive. One memoized up-closure read per direct parent.

The minimal contexts `c` inherits from: the contexts `c` reaches over one `genlCx` edge
with no other such context strictly below them.  `min-genls` over `genlCx`, read as
`context-up` reads, after the `except` holes `c` reads (`relation-scope`).  Not
reflexive.  One memoized up-closure read per direct parent.
sourceraw docstring

min-genlsclj

(min-genls tax t context)

The minimal supertypes of t through the edges visible from context, as a set: t's direct parents (direct-genls) with no other one strictly below them. A stated (genl dog animal) beside dog ⊂ mammal ⊂ animal leaves animal out.

The minimal supertypes of `t` through the edges visible from `context`, as a set: `t`'s
direct parents (`direct-genls`) with no other one strictly below them.  A stated `(genl
dog animal)` beside `dog ⊂ mammal ⊂ animal` leaves `animal` out.
sourceraw docstring

min-genls-globalclj

(min-genls-global tax t)

min-genls through every active edge — no context scope.

`min-genls` through **every** active edge — no context scope.
sourceraw docstring

min-typesclj

(min-types tax types context)

The members of types with no other member strictly below them through the edges visible from context, as a set: (min-types tax '[dog mammal animal] c) is #{dog} where dog ⊂ mammal ⊂ animal. min-types-global is the unscoped read (extremal).

The members of `types` with no other member strictly below them through the edges
visible from `context`, as a set: `(min-types tax '[dog mammal animal] c)` is `#{dog}`
where `dog ⊂ mammal ⊂ animal`.  `min-types-global` is the unscoped read (`extremal`).
sourceraw docstring

min-types-globalclj

(min-types-global tax types)

min-types through every active edge — no context scope.

`min-types` through **every** active edge — no context scope.
sourceraw docstring

monotonic-route-witnessclj

(monotonic-route-witness tax route context supporter-class)
(monotonic-route-witness tax
                         {:keys [keys links pair] :as route}
                         context
                         supporter-class
                         exempt?)

What a reader at context reads the separation route route (separation-routes) through when the route answers a denial (docs/taxonomy.md, "A separation answers a denial"), as {:keys :pair :supports :edges}, or nil: a believed supporter the reader sees per key (:monotonic for a [:member m y]), no exemption (route-exempted?), and a :monotonic path per subsumption climbed (reach-support). supporter-class is a live handle -> defeat-class read, nil for OUT. exempt? is as for disjointness-test, by default the exceptions context reads (exemption).

What a reader at `context` reads the separation route `route` (`separation-routes`)
through when the route answers a denial (docs/taxonomy.md, "A separation answers a
denial"), as `{:keys :pair :supports :edges}`, or nil: a believed supporter the reader
sees per key (`:monotonic` for a `[:member m y]`), no exemption (`route-exempted?`), and
a `:monotonic` path per subsumption climbed (`reach-support`).  `supporter-class` is a
live `handle -> defeat-class` read, nil for OUT.  `exempt?` is as for
`disjointness-test`, by default the exceptions `context` reads (`exemption`).
sourceraw docstring

moves-sinceclj

(moves-since tax rel-key gen)

The lower ends of the edges of relation rel-key whose activation or supporting contexts moved after generation gen (note-move), as a set: a closure that moved since gen is one of a node at or below one of them. A rebuild (clear-relations!) restarts the generation and the log (relation-epoch).

The lower ends of the edges of relation `rel-key` whose activation or supporting
contexts moved after generation `gen` (`note-move`), as a set: a closure that moved
since `gen` is one of a node at or below one of them.  A rebuild (`clear-relations!`)
restarts the generation and the log (`relation-epoch`).
sourceraw docstring

negates-keyclj

(negates-key p q)

The flat-cache key for a negates declaration between p and q, inverse-key's shape: (negates P P) keys #{P}.

The flat-cache key for a `negates` declaration between `p` and `q`, `inverse-key`'s
shape: `(negates P P)` keys `#{P}`.
sourceraw docstring

negates-ofclj

(negates-of tax p)
(negates-of tax p context)

Every predicate declared to negate p, as a set: anywhere, or (with context) declared from a context the reader can see.

Every predicate declared to negate `p`, as a set: anywhere, or (with `context`)
declared from a context the reader can see.
sourceraw docstring

negates-overclj

(negates-over tax q)
(negates-over tax q context)

[P R] for each predicate P at or above q and each R declared to negate P: over the unscoped closure, or (with context) the edges and declarations the reader sees.

`[P R]` for each predicate `P` at or above `q` and each `R` declared to negate `P`:
over the unscoped closure, or (with `context`) the edges and declarations the reader
sees.
sourceraw docstring

negates?clj

(negates? tax)

Does the taxonomy hold a negates declaration? One map read.

Does the taxonomy hold a `negates` declaration?  One map read.
sourceraw docstring

negating-predicatesclj

(negating-predicates tax)

Every predicate a negates declaration names.

Every predicate a `negates` declaration names.
sourceraw docstring

own-readingclj

The context argument of a read that names no context: it reads each supporter at the context it is stored in (own-scope), as believed? with no context reads a handle.

The `context` argument of a read that names no context: it reads each supporter at the
context it is stored in (`own-scope`), as `believed?` with no context reads a handle.
sourceraw docstring

own-reading?clj

(own-reading? context)

Is context own-reading?

Is `context` `own-reading`?
sourceraw docstring

pair-separated?clj

(pair-separated? tax a b)

Does a declaration separate the type a from the type b over the unscoped closures, with no siblingDisjointException read? A superset over every reader, symmetric, and held in the closure cache under the genl generation and the separation inputs.

Does a declaration separate the type `a` from the type `b` over the unscoped closures,
with no `siblingDisjointException` read?  A superset over every reader, symmetric, and
held in the closure cache under the `genl` generation and the separation inputs.
sourceraw docstring

pass-heldclj

(pass-held k read)

(read), held under k in the reading pass's neighbour cache (*visible-neighbours-cache*) when one is bound: the pass holds the taxonomy, belief and the stored records still, so k need name only what the read is asked of and the dynamic readings it depends on (*network-belief*, *search*). A nil or false answer is held as any other.

`(read)`, held under `k` in the reading pass's neighbour cache
(`*visible-neighbours-cache*`) when one is bound: the pass holds the taxonomy, belief
and the stored records still, so `k` need name only what the read is asked of and the
dynamic readings it depends on (`*network-belief*`, `*search*`).  A nil or false
answer is held as any other.
sourceraw docstring

path-alternativesclj

(path-alternatives path)

The handle sets a path's per-edge supporter sets give (scoped-path-supporters): one supporter of each edge, in every combination.

The handle sets a path's per-edge supporter sets give (`scoped-path-supporters`): one
supporter of each edge, in every combination.
sourceraw docstring

prop-supporter-contextsclj

(prop-supporter-contexts tax kind pred)

prop-supporters with the context each was stated in, as {handle context}.

`prop-supporters` with the context each was stated in, as `{handle context}`.
sourceraw docstring

prop-supportersclj

(prop-supporters tax kind pred)

The handles of the sentexes declaring property kind of pred, as a set, defeated members included, so a justification resting on them revives with its supporter.

The handles of the sentexes declaring property `kind` of `pred`, as a set, defeated
members included, so a justification resting on them revives with its supporter.
sourceraw docstring

propsclj

(props tax kind)

The set of predicates carrying property kind.

The set of predicates carrying property `kind`.
sourceraw docstring

props-overclj

(props-over tax kind p)
(props-over tax kind p context)

p and every super-predicate of it carrying property kind, anywhere or (with context) declared from a context the reader can see, walking only the genl edges visible from it; empty when none does. See docs/taxonomy.md, "Predicate metadata reads".

`p` and every super-predicate of it carrying property `kind`, anywhere or (with
`context`) declared from a context the reader can see, walking only the `genl` edges
visible from it; empty when none does.  See docs/taxonomy.md, "Predicate metadata
reads".
sourceraw docstring

props-over-amongclj

(props-over-among tax kind p memo)

props-over with no context, read off the kind :props set's cut of p's global closure (genls-global-among). memo is a volatile map the caller keeps for one :props value over one still taxonomy.

`props-over` with no context, read off the `kind` `:props` set's cut of `p`'s global
closure (`genls-global-among`).  `memo` is a volatile map the caller keeps for one
`:props` value over one still taxonomy.
sourceraw docstring

reach-strengthclj

(reach-strength tax rel-key sub super context supporter-class)

The defeat class of the strongest route sub ->* super in rel-key that context sees: :monotonic, :default, or nil when unreachable. :monotonic for sub = super. supporter-class is the read reach-support takes. Derived from reach-support's widest-bottleneck path (docs/taxonomy.md, "Strength of a subsumption path").

The defeat class of the strongest route `sub ->* super` in `rel-key` that `context`
sees: `:monotonic`, `:default`, or nil when unreachable.  `:monotonic` for `sub` = `super`.
`supporter-class` is the read `reach-support` takes.  Derived from `reach-support`'s
widest-bottleneck path (docs/taxonomy.md, "Strength of a subsumption path").
sourceraw docstring

reach-supportclj

(reach-support tax rel-key sub super context)
(reach-support tax rel-key sub super context supporter-class)
(reach-support tax rel-key sub super context supporter-class thresholds)
(reach-support tax rel-key sub super context supporter-class thresholds router)

A witness for sub ->* super in relation rel-key that context sees (nil walks unscoped), as the [handle ctx] of one supporter per edge along one path, super end first: [] for sub = super, nil for no path. Without supporter-class it is the first shortest path in name order, found for exactly the pairs genl? holds of, each edge naming its most general supporter. With supporter-class (handle -> defeat-class) it is the widest-bottleneck path over the classes thresholds tries, highest first, each edge naming its strongest supporter. A router holds the walks' reads for one supporter-class (docs/taxonomy.md, "Strength of a subsumption path").

A witness for `sub ->* super` in relation `rel-key` that `context` sees (nil walks
unscoped), as the `[handle ctx]` of one supporter per edge along one path, `super` end
first: `[]` for `sub` = `super`, nil for no path.  Without `supporter-class` it is the
first shortest path in name order, found for exactly the pairs `genl?` holds of, each
edge naming its most general supporter.  With `supporter-class` (`handle ->
defeat-class`) it is the widest-bottleneck path over the classes `thresholds` tries,
highest first, each edge naming its strongest supporter.  A `router` holds the walks'
reads for one `supporter-class` (docs/taxonomy.md, "Strength of a subsumption path").
sourceraw docstring

reach-supportsclj

(reach-supports tax rel-key sub super context supporter-class)
(reach-supports tax rel-key sub super context supporter-class hidable)
(reach-supports tax rel-key sub super context supporter-class hidable floor)
(reach-supports tax
                rel-key
                sub
                super
                context
                supporter-class
                hidable
                floor
                router)

general-reach-supports with each supporter's defeat class (supporter-class) in the label: a route covers another only if its weakest class is at least as strong. With hidable (handle → boolean), a route resting on a supporter an except can hide covers only the routes resting on that supporter too. With the class floor, only the routes whose every supporter reads at least floor. A router holds the steps (edge-steps).

`general-reach-supports` with each supporter's defeat class (`supporter-class`) in the
label: a route covers another only if its weakest class is at least as strong.  With
`hidable` (`handle → boolean`), a route resting on a supporter an except can hide covers
only the routes resting on that supporter too.  With the class `floor`, only the routes
whose every supporter reads at least `floor`.  A `router` holds the steps (`edge-steps`).
sourceraw docstring

read-scopeclj

(read-scope tax rel-key context)

The scope a read of rel-key from context walks under (relation-scope), as a key: a walk's answer is a function of the scope and not of the context, so two contexts whose scopes are equal read one answer.

The scope a read of `rel-key` from `context` walks under (`relation-scope`), as a key:
a walk's answer is a function of the scope and not of the context, so two contexts
whose scopes are equal read one answer.
sourceraw docstring

reader-classesclj

(reader-classes tax sub under except-ctxs)

The reader classes under sub (the contexts in under, sub's global descendant set), as a sorted map from each class's key to its representative reader. A reader's key is the set of contexts of except-ctxs in its global ancestor set; readers with one key read every genlCx supporter alike, since the excepts in force are read off the raw ancestor set (relation-scope). sub represents the readers whose key is its own; each other class is represented by its least member in content order.

The reader classes under `sub` (the contexts in `under`, `sub`'s global descendant set),
as a sorted map from each class's key to its representative reader.  A reader's key is
the set of contexts of `except-ctxs` in its global ancestor set; readers with one key read
every `genlCx` supporter alike, since the excepts in force are read off the raw ancestor
set (`relation-scope`).  `sub` represents the readers whose key is its own; each other
class is represented by its least member in content order.
sourceraw docstring

refresh-beliefsclj

(refresh-beliefs tax believed?)
(refresh-beliefs tax believed? moved)

Reconcile the cached relations with current belief: an edge or flat-cache entry is active iff some sentex asserting it is IN (believed?, jtms/in? at both callers). Called after a relabel (from settle). moved is the set of handles whose belief just flipped (jtms/touched, a superset): the two transitive relations and the flat caches scope by it (moved-keys); the equality partition and rewrite rules run a presence check (moved-touches?). nil reconciles every key with a stored supporter, for a caller holding no region (core/recover). The supersession pass widens its region by hand. See docs/taxonomy.md, "The belief reconcile is scoped to the moved region".

Reconcile the cached relations with current belief: an edge or flat-cache entry is
active iff some sentex asserting it is IN (`believed?`, `jtms/in?` at both callers).  Called after a relabel (from
`settle`).  `moved` is the set of handles whose belief just flipped (`jtms/touched`, a
superset): the two transitive relations and the flat caches scope by it (`moved-keys`);
the equality partition and rewrite rules run a presence check (`moved-touches?`).  `nil`
reconciles every key with a stored supporter, for a caller holding no region
(`core/recover`).  The supersession pass widens its region by hand.  See docs/taxonomy.md,
"The belief reconcile is scoped to the moved region".
sourceraw docstring

relation-epochclj

(relation-epoch tax)

How many times clear-relations! has rebuilt tax's relations. A rebuild restarts each relation-gen at 0, so a key that must not compare equal across a recover carries this beside the generations (special/taxonomy-generations).

How many times `clear-relations!` has rebuilt `tax`'s relations.  A rebuild restarts
each `relation-gen` at 0, so a key that must not compare equal across a `recover`
carries this beside the generations (`special/taxonomy-generations`).
sourceraw docstring

relation-genclj

(relation-gen tax rel-key)

The generation counter of relation rel-key (:genl / :genlCx), bumped on every edge change: the memo key of a value derived from its closures.

The generation counter of relation `rel-key` (`:genl` / `:genlCx`), bumped on every
edge change: the memo key of a value derived from its closures.
sourceraw docstring

representativeclj

(representative tax term)

The term that stands for term's equivalence class — term itself when nothing has merged it.

The term that stands for `term`'s equivalence class — `term` itself when nothing
has merged it.
sourceraw docstring

restore-depthsclj

(restore-depths tax)

Repair the depth potential and :scc of every relation a deferred batch left :loose?, bumping its :gen. Idempotent; one map lookup per relation when none is loose.

Repair the depth potential and `:scc` of every relation a deferred batch left
`:loose?`, bumping its `:gen`.  Idempotent; one map lookup per relation when none is
loose.
sourceraw docstring

retirable?clj

(retirable? tax term)

Can some reader's scoped election (scoped-class) retire term? Every merged member but the representative can. The representative can when a rewriteOf names it preferred and its class holds a supporter that is not such a claim: a reader that sees that supporter and not the claim elects another member. A representative no claim names preferred is the smallest member, and every reader's election keeps it.

Can some reader's scoped election (`scoped-class`) retire `term`?  Every merged member
but the representative can.  The representative can when a `rewriteOf` names it
preferred and its class holds a supporter that is not such a claim: a reader that sees
that supporter and not the claim elects another member.  A representative no claim
names preferred is the smallest member, and every reader's election keeps it.
sourceraw docstring

retire-stored-supporter!clj

(retire-stored-supporter! idx h)

Take stored handle h out of the supporters of every taxonomy key it installs, in index store idx alone: the index half of a declaration's departure, for a KB whose taxonomy is not built (vaelii.impl.record-edit). The taxonomy's in-memory entries are untouched. Returns the number of keys.

Take stored handle `h` out of the supporters of every taxonomy key it installs, in
index store `idx` alone: the index half of a declaration's departure, for a KB whose
taxonomy is not built (`vaelii.impl.record-edit`).  The taxonomy's in-memory entries
are untouched.  Returns the number of keys.
sourceraw docstring

rewrite-rulesclj

(rewrite-rules tax)

The active oriented rewrite rules: a seq of {:handle :lhs :rhs :context} for every schematic equation currently believed, which vaelii.impl.kb/rewrite-term reads to normalize terms. Empty is the presence check that keeps normalization a no-op. Content-ordered by LHS then RHS (nm/compare-form, never printed), and memoized in the :rewrite-order side atom keyed by the identity of the :rewrite-active map. See docs/equational.md, "Order independence".

The active oriented rewrite rules: a seq of `{:handle :lhs :rhs :context}` for every
schematic equation currently believed, which `vaelii.impl.kb/rewrite-term` reads to
normalize terms.  Empty is the presence check that keeps normalization a no-op.
Content-ordered by LHS then RHS (`nm/compare-form`, never printed), and memoized in the
`:rewrite-order` side atom keyed by the identity of the `:rewrite-active` map.  See
docs/equational.md, "Order independence".
sourceraw docstring

root-context?clj

(root-context? c)

Is c CxUniverse, the context every other context sees with no stored edge? See docs/contexts.md, "CxUniverse is the implicit root".

Is `c` CxUniverse, the context every other context sees with no stored edge?  See
docs/contexts.md, "CxUniverse is the implicit root".
sourceraw docstring

route-exempted?clj

(route-exempted? {:keys [pair mark?]} exempt?)
(route-exempted? tax route context)

Does a siblingDisjointException that context reads (a context or an ancestor set), or that the read exempt? ((fn [x y]), believed-exemption) names, exempt the separated pair of the mark route route (separation-routes, :mark?)? False for a route through a stated disjoint and for a route with no :pair.

Does a `siblingDisjointException` that `context` reads (a context or an ancestor set),
or that the read `exempt?` (`(fn [x y])`, `believed-exemption`) names, exempt the
separated pair of the mark route `route` (`separation-routes`, `:mark?`)?  False for a
route through a stated `disjoint` and for a route with no `:pair`.
sourceraw docstring

same-class?clj

(same-class? tax a b)

Do a and b denote the same thing?

Do `a` and `b` denote the same thing?
sourceraw docstring

scoped-classclj

(scoped-class tax term visible?)

[members representative] for term over the equality edges some supporter visible? admits, elected by class-rep's rule over the visible preference claims. Recomputed per call rather than filtered from the global partition, since dropping an edge can split a class: A~B~C with only A~B visible is the class {A B}.

`[members representative]` for `term` over the equality edges some supporter
`visible?` admits, elected by `class-rep`'s rule over the visible preference claims.
Recomputed per call rather than filtered from the global partition, since dropping an
edge can split a class: `A~B~C` with only `A~B` visible is the class `{A B}`.
sourceraw docstring

scoped-path-supportersclj

(scoped-path-supporters tax a b visible?)

The supporters of one path joining a and b over the equality edges some supporter visible? admits, as a vector holding each edge's admitted supporters in path order; nil when no such path joins them. The path is a shortest one, searched breadth-first with each term's edges in content order, so the path chosen does not depend on the order the edges arrived in.

The supporters of one path joining `a` and `b` over the equality edges some supporter
`visible?` admits, as a vector holding each edge's admitted supporters in path order;
nil when no such path joins them.  The path is a shortest one, searched breadth-first
with each term's edges in content order, so the path chosen does not depend on the
order the edges arrived in.
sourceraw docstring

seeing-memberclj

(seeing-member tax ctxs)

The member of ctxs that sees every other member, or nil. It is a maximal common descendant; two members that see each other tie by term-min (docs/contexts.md, "Context placement of justifications").

The member of `ctxs` that sees every other member, or nil.  It is a maximal common
descendant; two members that see each other tie by `term-min` (docs/contexts.md,
"Context placement of justifications").
sourceraw docstring

sees?clj

(sees? tax k y)

Does context k see assertions in context y?

Does context k see assertions in context y?
sourceraw docstring

sentence-separation-endsclj

(sentence-separation-ends tax sentence)

The types sentence names whose subtypes' separations it moves, arriving or leaving, as a set: the lower end of each genl edge it installs (installed-edges) whose upper end is separable?, the types a stated disjoint, siblingDisjointException or sibling_disjoint mark names, the parts of a partition or separating declaration, the members of a disjoint_metatype mark, and for a membership in a disjoint metatype the type it names and the metatype's members. The sentence twin of separation-ends; taxonomy reads alone.

The types `sentence` names whose subtypes' separations it moves, arriving or leaving,
as a set: the lower end of each `genl` edge it installs (`installed-edges`) whose upper end
is `separable?`, the types a stated `disjoint`, `siblingDisjointException` or
`sibling_disjoint` mark names, the parts of a `partition` or `separating` declaration, the
members of a `disjoint_metatype` mark, and for a membership in a disjoint metatype the
type it names and the metatype's members.  The sentence twin of `separation-ends`;
taxonomy reads alone.
sourceraw docstring

separable?clj

(separable? tax t)

Does a separation reach t from above: is t or a supertype of t in separable-terms?

Does a separation reach `t` from above: is `t` or a supertype of `t` in
`separable-terms`?
sourceraw docstring

separating-coversclj

(separating-covers tax)

Every partition and separating declaration, as [whole parts kind] (separating-kind?).

Every `partition` and `separating` declaration, as `[whole parts kind]`
(`separating-kind?`).
sourceraw docstring

separating-keysclj

(separating-keys tax a b context)
(separating-keys tax a b context exempt?)

The flat-cache keys of the declarations context sees that separate a from b, as a set: each [:disjoint #{x y}] pair, each disjoint metatype's [:metatype m] mark with its two [:member m _] memberships, each [:sib-disjoint c] parent and each separating cover's [:cover [whole parts] kind], over a supertype x of a and a different supertype y of b. Empty when a and b are not disjoint at context. exempt? is as for disjointness-test; (constantly false) names every separation stated over the pair.

The flat-cache keys of the declarations `context` sees that separate `a` from `b`, as a
set: each `[:disjoint #{x y}]` pair, each disjoint metatype's `[:metatype m]` mark with its
two `[:member m _]` memberships, each `[:sib-disjoint c]` parent and each separating
cover's `[:cover [whole parts] kind]`, over a supertype `x` of `a` and a different
supertype `y` of `b`.  Empty when `a` and `b` are not disjoint at `context`.  `exempt?` is
as for `disjointness-test`; `(constantly false)` names every separation stated over the
pair.
sourceraw docstring

separating-kind?clj

(separating-kind? kind)

Does a declaration of this kind claim that no two of its parts share an instance?

Does a declaration of this kind claim that no two of its parts share an instance?
sourceraw docstring

separating-pairsclj

(separating-pairs tax context)

Every ordered pair [x y], x ≠ y, that a visible declaration separates through the four arms of disjointness-test: separating-partners with neither side given, so (disjoint ?x ?y) is specs(x) × specs(y) over these.

Every ordered pair `[x y]`, `x` ≠ `y`, that a visible declaration separates through
the four arms of `disjointness-test`: `separating-partners` with neither side given, so
`(disjoint ?x ?y)` is `specs(x) × specs(y)` over these.
sourceraw docstring

separating-partnersclj

(separating-partners tax a context)
(separating-partners tax a context exempt?)

The types a visible declaration separates a from, through the four arms of disjointness-test under its guards and exemptions: (disjoint a ?t) is specs of this set. exempt? is as for disjointness-test.

The types a visible declaration separates `a` from, through the four arms of
`disjointness-test` under its guards and exemptions: `(disjoint a ?t)` is `specs` of
this set.  `exempt?` is as for `disjointness-test`.
sourceraw docstring

separation-endsclj

(separation-ends tax k)

The types at or below which a move of flat-cache entry k can change disjoint?: the pair of a disjoint or siblingDisjointException key, a sibling_disjoint parent, a metatype's members, a member, and a cover's whole and parts. nil for a key no separation reads.

The types at or below which a move of flat-cache entry `k` can change `disjoint?`: the
pair of a `disjoint` or `siblingDisjointException` key, a `sibling_disjoint` parent, a
metatype's members, a member, and a cover's whole and parts.  nil for a key no
separation reads.
sourceraw docstring

separation-functorsclj

The functors whose sentence moves which pairs are separated, beside disjoint, a genl edge (a cover's installed ones included) and a disjoint metatype's membership.

The functors whose sentence moves which pairs are separated, beside `disjoint`, a
`genl` edge (a cover's installed ones included) and a disjoint metatype's membership.
sourceraw docstring

separation-inputsclj

(separation-inputs tax)
(separation-inputs tax exceptions?)

What a separation or a cover over two types reads of tax besides the genl closures, as one vector compared with =: the separating and covering declarations and, unless exceptions? is false, the siblingDisjointException exemptions. A declaration moving replaces its kind's value, so an unchanged kind compares on identity (separation-moves, cover-moves).

What a separation or a cover over two types reads of `tax` besides the `genl` closures,
as one vector compared with `=`: the separating and covering declarations and, unless
`exceptions?` is false, the `siblingDisjointException` exemptions.  A declaration moving
replaces its kind's value, so an unchanged kind compares on identity
(`separation-moves`, `cover-moves`).
sourceraw docstring

separation-movesclj

(separation-moves old new)

The types whose separations can differ between two separation-inputs values old and new, as a set: the pair of each disjoint and siblingDisjointException entry one holds and the other does not, the members of a disjoint metatype that moved and each member that moved, a sibling_disjoint parent that moved, and the parts of a partition that moved. A type whose global genls hold none of them reads the same separation of every partner under both values. A cover moving adds no type. A kind's entries are read only when the two values hold different ones.

The types whose separations can differ between two `separation-inputs` values `old` and
`new`, as a set: the pair of each `disjoint` and `siblingDisjointException` entry one holds and the
other does not, the members of a disjoint metatype that moved and each member that
moved, a `sibling_disjoint` parent that moved, and the parts of a partition that moved.
A type whose global `genls` hold none of them reads the same separation of every
partner under both values.  A cover moving adds no type.  A kind's entries are read only
when the two values hold different ones.
sourceraw docstring

separation-routesclj

(separation-routes tax a b)

Each way the declarations separate a from b over the unscoped closures with no siblingDisjointException read, as {:keys #{k} :links [[sub super]] :pair [x y]}: separating-keys' entries, the separated supertypes x of a and y of b, and the genl subsumptions climbed (a to x, b to y, and for a sibling_disjoint parent c also x and y to c; a reflexive one is left out). Empty exactly when disjointness-test reading no exemption answers false from a's side. A route through a mark carries :mark? true, which an exception can exempt (route-exempted?).

Each way the declarations separate `a` from `b` over the unscoped closures with no
`siblingDisjointException` read, as `{:keys #{k} :links [[sub super]] :pair [x y]}`:
`separating-keys`' entries, the separated supertypes `x` of `a` and `y` of `b`, and the
`genl` subsumptions climbed (`a` to `x`, `b` to `y`, and for a `sibling_disjoint` parent
`c` also `x` and `y` to `c`; a reflexive one is left out).  Empty exactly when
`disjointness-test` reading no exemption answers false from `a`'s side.  A route through a
mark carries `:mark? true`, which an exception can exempt (`route-exempted?`).
sourceraw docstring

separation-routes-heldclj

(separation-routes-held tax a b)

separation-routes of a and b as a vector, held in the closure cache under the genl generation and the separation inputs.

`separation-routes` of `a` and `b` as a vector, held in the closure cache under the
`genl` generation and the separation inputs.
sourceraw docstring

separation-testclj

(separation-test tax a context)
(separation-test tax a context exempt?)

disjointness-test, or nil when no declaration reaches a: a caller testing many candidates against a learns from the nil that every one answers false, and tests none. Unscoped (context nil), the test is symmetric: when a's answers b, b's answers a, so a nil for a also means no candidate's test answers a.

`disjointness-test`, or nil when no declaration reaches `a`: a caller testing many
candidates against `a` learns from the nil that every one answers false, and tests
none.  Unscoped (`context` nil), the test is symmetric: when `a`'s answers `b`,
`b`'s answers `a`, so a nil for `a` also means no candidate's test answers `a`.
sourceraw docstring

shrinks-sinceclj

(shrinks-since tax rel-key gen)

The lower ends of the edges of relation rel-key that left the active set, or whose supporting contexts moved, after generation gen (note-shrink), as a set: the ends of moves-since that did not only gain edges. A relation whose log predates the shrink log (an image written before it) reads every moved end.

The lower ends of the edges of relation `rel-key` that left the active set, or whose
supporting contexts moved, after generation `gen` (`note-shrink`), as a set: the ends
of `moves-since` that did not only gain edges.  A relation whose log predates the
shrink log (an image written before it) reads every moved end.
sourceraw docstring

sib-exceptions?clj

(sib-exceptions? tax)

Is any siblingDisjointException stored?

Is any `siblingDisjointException` stored?
sourceraw docstring

sibling-disjointsclj

(sibling-disjoints tax)
source

signed-closureclj

(signed-closure tax dir p context)

[straight swapped]: the predicates p's matching fan reaches through the genl and swap edges visible from context, dir :down the specs or :up the generals. straight holds those reached over an even number of swap edges, read with arguments as written; swapped those over an odd number, read with arguments 1 and 2 exchanged. With no swap edge installed (swap-free?) this is [(specs tax p context) #{}] (or genls). Otherwise a walk over [predicate parity] states, memoized in the closure memo for one stretch of the change clock and one reading (clock-held).

`[straight swapped]`: the predicates `p`'s matching fan reaches through the `genl` and
swap edges visible from `context`, `dir` `:down` the specs or `:up` the generals.
`straight` holds those reached over an even number of swap edges, read with arguments as
written; `swapped` those over an odd number, read with arguments 1 and 2 exchanged.
With no swap edge installed (`swap-free?`) this is `[(specs tax p context) #{}]` (or
`genls`).  Otherwise a walk over `[predicate parity]` states, memoized in the closure
memo for one stretch of the change clock and one reading (`clock-held`).
sourceraw docstring

signed-reach-supportclj

(signed-reach-support tax sub super swapped? context supporter-class)

A witness for sub reaching super through the signed closure with parity swapped? — the [handle ctx] supporters of one path's genl and swap edges, as reach-support names a genl path's — or nil when context sees no such path.

A pair the genl closure relates with swapped? false is reach-support's answer unchanged. Otherwise the path is the one with the fewest swap edges, found breadth-first over [predicate parity] states in name order, each genl stretch of it witnessed by reach-support (widest-bottleneck under supporter-class, as there).

A witness for `sub` reaching `super` through the signed closure with parity `swapped?`
— the `[handle ctx]` supporters of one path's `genl` and swap edges, as
`reach-support` names a `genl` path's — or nil when `context` sees no such path.

A pair the `genl` closure relates with `swapped?` false is `reach-support`'s answer
unchanged.  Otherwise the path is the one with the fewest swap edges, found
breadth-first over `[predicate parity]` states in name order, each `genl` stretch of it
witnessed by `reach-support` (widest-bottleneck under `supporter-class`, as there).
sourceraw docstring

specsclj

(specs tax t context)

Subtypes of t, incl t, through the edges visible from context. specs-global is the unscoped read.

Subtypes of `t`, incl `t`, through the edges visible from `context`.  `specs-global`
is the unscoped read.
sourceraw docstring

specs-globalclj

(specs-global tax t)

Subtypes of t, incl t, through every active edge, with no context scope.

Subtypes of `t`, incl `t`, through every active edge, with no context scope.
sourceraw docstring

specs-global-union-heldclj

(specs-global-union-held tax t xf held hold!)

genls-global-union-held over specs-global of t, built from the children's answers.

`genls-global-union-held` over `specs-global` of `t`, built from the children's
answers.
sourceraw docstring

specs-global-whileclj

(specs-global-while tax t enter?)

The subtypes of t, incl t, that a walk down entering only the types enter? accepts reaches (closure-while).

The subtypes of `t`, incl `t`, that a walk down entering only the types `enter?`
accepts reaches (`closure-while`).
sourceraw docstring

specs-global-withinclj

(specs-global-within tax t limit)

specs-global of t when it holds at most limit terms, else nil.

`specs-global` of `t` when it holds at most `limit` terms, else nil.
sourceraw docstring

specs-of-allclj

(specs-of-all tax nodes)

The union of specs-global over the nodes in nodes, walked once and not memoized (docs/taxonomy.md, "What the pure reads of the hierarchy promise").

The union of `specs-global` over the nodes in `nodes`, walked once and not memoized
(docs/taxonomy.md, "What the pure reads of the hierarchy promise").
sourceraw docstring

specs-withinclj

(specs-within tax t context limit)

specs of t from context when it holds at most limit terms, else nil.

`specs` of `t` from `context` when it holds at most `limit` terms, else nil.
sourceraw docstring

spelling-representativeclj

(spelling-representative tax term)
(spelling-representative tax term visible?)

term's representative over the rewriteOf edges alone, a sameAs / equals merge not followed: the mention read res/representative-term takes inside a quoted position. Elected by class-rep's rule over the rewriteOf-connected component, a constant before a reified constant (class-min); a term no rewriteOf touches is returned unchanged. With visible?, only the believed edges that reader admits count.

`term`'s representative over the `rewriteOf` edges alone, a `sameAs` / `equals` merge
not followed: the mention read `res/representative-term` takes inside a quoted
position.  Elected by `class-rep`'s rule over the `rewriteOf`-connected component, a
constant before a reified constant (`class-min`); a term no `rewriteOf` touches is
returned unchanged.  With `visible?`, only the believed
edges that reader admits count.
sourceraw docstring

statement-kindclj

(statement-kind tax f)

What a statement whose functor is f states for the existence checks: :context a context's time (cxTimeOf), :value a value's existence bound (pr/existence-bound-predicates), :predicate a predicate's classification (pr/existence-marks), or nil. A functor's kind combines its own with its direct genl parents' kinds, so a bound stated by a spec of startDate reads as one. The answer is memoized per functor in the taxonomy; drop-statement-kinds retires it when an edge moves. The parents are read unscoped, since a genl edge in any context changes what some context's existence checks read.

What a statement whose functor is `f` states for the existence checks: `:context` a
context's time (`cxTimeOf`), `:value` a value's existence bound
(`pr/existence-bound-predicates`), `:predicate` a predicate's classification
(`pr/existence-marks`), or nil.  A functor's kind combines its own with its direct `genl`
parents' kinds, so a bound stated by a spec of `startDate` reads as one.  The answer is
memoized per functor in the taxonomy; `drop-statement-kinds` retires it when an edge
moves.  The parents are read unscoped, since a `genl` edge in any context changes what
some context's existence checks read.
sourceraw docstring

stored-disjoint-metatype?clj

(stored-disjoint-metatype? tax m)

Whether some stored sentex marks m a disjoint metatype, believed or not: the presence check special/structural-integrate's member arm reads (docs/taxonomy.md, "Disjointness").

Whether some stored sentex marks `m` a disjoint metatype, believed or not: the presence
check `special/structural-integrate`'s member arm reads (docs/taxonomy.md,
"Disjointness").
sourceraw docstring

stored-disjoint-metatypesclj

(stored-disjoint-metatypes tax)

Every metatype some stored sentex marks, believed or not: the set special/post-taxonomy-supporters!'s member pass walks.

Every metatype some stored sentex marks, believed or not: the set
`special/post-taxonomy-supporters!`'s member pass walks.
sourceraw docstring

strict-genl?clj

(strict-genl? tax sub super context)

Is sub a strict subtype of super through the edges visible from context: at or below it, and not above it? Two types in a genl cycle are coextensive at a reader that sees the cycle, so neither is strictly below the other there.

Is `sub` a strict subtype of `super` through the edges visible from `context`: at or
below it, and not above it?  Two types in a `genl` cycle are coextensive at a reader that
sees the cycle, so neither is strictly below the other there.
sourceraw docstring

supported-keysclj

(supported-keys tax hs)

The flat-cache keys the handles hs support, as a set.

The flat-cache keys the handles `hs` support, as a set.
sourceraw docstring

supporter-cache-limitclj

How many entries the supporter cache (:supporters) holds, keys and handles together, before it is cleared wholesale: the shipped default the cache profile scales.

How many entries the supporter cache (`:supporters`) holds, keys and handles together,
before it is cleared wholesale: the shipped default the cache profile scales.
sourceraw docstring

supporter-count-inclj

(supporter-count-in tax rel-key ctxs)

How many facts stating a supporter of a rel-key edge (census-functors) are stored in the contexts of the set ctxs, either polarity and whatever their belief. A raw taxonomy counts its recorded supporters.

How many facts stating a supporter of a `rel-key` edge (`census-functors`) are stored in
the contexts of the set `ctxs`, either polarity and whatever their belief.  A raw
taxonomy counts its recorded supporters.
sourceraw docstring

supportersclj

(supporters tax k)

Taxonomy key k's stored supporters, believed or not, as {handle ctx}: k is [:genl a b], [:genlCx a b] or a flat-cache key ([:disjoint #{a b}], [:prop kind pred], …).

Taxonomy key `k`'s stored supporters, believed or not, as `{handle ctx}`: `k` is
`[:genl a b]`, `[:genlCx a b]` or a flat-cache key (`[:disjoint #{a b}]`, `[:prop kind
pred]`, …).
sourceraw docstring

swap-free?clj

(swap-free? tax)

True when no swap edge is installed, neither a genlInverse edge nor an inverse declaration: two map reads. The signed closure is the plain genl closure then.

True when no swap edge is installed, neither a `genlInverse` edge nor an `inverse`
declaration: two map reads.  The signed closure is the plain `genl` closure then.
sourceraw docstring

take-believed-again!clj

(take-believed-again! tax)

Empty and return the equality supporters refresh-equality found believed since the last call while :out held them, or nil when there are none. A supporter is in :out only after a reconcile found it disbelieved, so each of these became believed by a relabel and not by its arrival (special/believed-again-sweeps).

Empty and return the equality supporters `refresh-equality` found believed since the
last call while `:out` held them, or nil when there are none.  A supporter is in `:out`
only after a reconcile found it disbelieved, so each of these became believed by a
relabel and not by its arrival (`special/believed-again-sweeps`).
sourceraw docstring

take-equality-moves!clj

(take-equality-moves! tax reader)

Empty reader's copy of the equality partition's moved terms and return it: every term in the class of either end of an edge a supporter joined, left, or moved in or out of belief on since reader's last call, read after the edge was applied. A term whose class, representative or scoped class moved is among them, and so is a term whose class did not move. nil when nothing moved. The readers (equality-move-readers) are :supersessions, for special/supersession-map, and :covers, for special/covered-merges.

Empty `reader`'s copy of the equality partition's moved terms and return it: every
term in the class of either end of an edge a supporter joined, left, or moved in or out
of belief on since `reader`'s last call, read after the edge was applied.  A term whose
class, representative or scoped class moved is among them, and so is a term whose class
did not move.  nil when nothing moved.  The readers (`equality-move-readers`) are
`:supersessions`, for `special/supersession-map`, and `:covers`, for
`special/covered-merges`.
sourceraw docstring

typesclj

(types tax)
(types tax context)

Every node of an active genl edge, as a set: an edge with an IN supporter, a defeated one included. With context, only the nodes of the edges visible from it.

Every node of an active `genl` edge, as a set: an edge with an IN supporter, a defeated
one included.  With `context`, only the nodes of the edges visible from it.
sourceraw docstring

uncoveredclj

(uncovered tax label alts)

The members of alts whose label no other member's label covers, in their given order. label maps a member to [rank floor] (rank nil where strength takes no part), or to [rank floor hid], hid the set of its handles an except can hide. Of two members that cover each other, the earlier is kept, so a caller that hands alts over in content order gets a result that is a function of the content.

The members of `alts` whose label no other member's label covers, in their given
order.  `label` maps a member to `[rank floor]` (rank nil where strength takes no
part), or to `[rank floor hid]`, `hid` the set of its handles an except can hide.  Of
two members that cover each other, the earlier is kept, so a caller that hands `alts`
over in content order gets a result that is a function of the content.
sourceraw docstring

uncovered-routesclj

(uncovered-routes tax start goal step)

Every route start ->* goal whose label no other route's covers (covers?), as a vector of routes, each the [handle ctx] supporters along it with the goal end first. [[]] when start is goal; [] when no route exists. step maps a node to its outgoing steps [next [handle ctx] rank hid?] in content order, with an optional fifth element, the supporter's content key. rank is the supporter's strength rank or nil, and hid? is true when an except can hide the supporter. A route's label is its weakest rank, the floor of its supporters' contexts (context-floor) and its hidable supporters; a partial route a held label covers is dropped. The queue order is total (trail-order), so the kept route is a function of content. goal is a node, or a predicate a node satisfies. See docs/inherit.md.

Every route `start ->* goal` whose label no other route's covers (`covers?`), as a
vector of routes, each the `[handle ctx]` supporters along it with the `goal` end first.
`[[]]` when `start` is `goal`; `[]` when no route exists.  `step` maps a node to its
outgoing steps `[next [handle ctx] rank hid?]` in content order, with an optional fifth
element, the supporter's content key.  `rank` is the supporter's strength rank or nil, and
`hid?` is true when an except can hide the supporter.  A route's label is its weakest
rank, the floor of its supporters' contexts (`context-floor`) and its hidable
supporters; a partial route a held label covers is dropped.  The queue order is total
(`trail-order`), so the kept route is a function of content.  `goal` is a node, or a
predicate a node satisfies.  See docs/inherit.md.
sourceraw docstring

unmark-compound-rewrite!clj

(unmark-compound-rewrite! tax target handle)

Remove this binding's supporter, retaining a target with other supporters.

Remove this binding's supporter, retaining a target with other supporters.
sourceraw docstring

unmark-disjoint-metatype!clj

(unmark-disjoint-metatype! tax m handle)

Drop handle's support for the mark on m. The last supporter going forgets m (forget-metatype), and its members' supporters leave the index store with it.

Drop `handle`'s support for the mark on `m`.  The last supporter going forgets `m`
(`forget-metatype`), and its members' supporters leave the index store with it.
sourceraw docstring

unmark-prop!clj

(unmark-prop! tax kind pred handle)
source

unmark-sibling-disjoint!clj

(unmark-sibling-disjoint! tax c handle)
source

visible-ctxsclj

(visible-ctxs tax rel-key context)

up(K) ∩ ctxs for relation rel-key — the supporting contexts context can see — or nil when the scoped answer could not differ from the global one: the ancestor set from the closure cache, then census-among. Memoized per context in the closure memo under the relation's generation, keyed by the change clock and the genlCx generation, as context-down is: the census reads stored extents, which move only at a write.

`up(K) ∩ ctxs` for relation `rel-key` — the supporting contexts `context` can
see — or nil when the scoped answer could not differ from the global one: the ancestor
set from the closure cache, then `census-among`.  Memoized per context in the closure
memo under the relation's generation, keyed by the change clock and the `genlCx`
generation, as `context-down` is: the census reads stored extents, which move only at a
write.
sourceraw docstring

visible-supportersclj

(visible-supporters tax k context)

The handles of flat-cache entry k's recorded supporters a reader at context sees: each stated in context's ancestor set or with no recorded context, read through scope-admits-supporter? while an except or placed defeat is stored (supporter-filter-active?). Every supporter for an unscoped context. The caller filters belief, except where that check reads it.

The handles of flat-cache entry `k`'s recorded supporters a reader at `context` sees:
each stated in `context`'s ancestor set or with no recorded context, read through
`scope-admits-supporter?` while an `except` or placed `defeat` is stored
(`supporter-filter-active?`).  Every supporter for an unscoped `context`.  The caller
filters belief, except where that check reads it.
sourceraw docstring

with-neighboursclj

(with-neighbours nc f)

Run f with nc, an atom, as the scoped walks' neighbour cache (*visible-neighbours-cache*) when none is bound: for a caller that asks many scoped walks over a taxonomy and a belief that hold still for as long as it keeps nc.

Run `f` with `nc`, an atom, as the scoped walks' neighbour cache
(`*visible-neighbours-cache*`) when none is bound: for a caller that asks many scoped
walks over a taxonomy and a belief that hold still for as long as it keeps `nc`.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close