Scale Intelligence■ Docs
Docs / The model / Predicate

Predicate.

The tree, of three forms, over a population; an edit is a new predicate

Figure 1Predicatespecified
PREDICATEdefinition at follows scopetreePredicateNodepopulationPopulationtree_hashhashthe register it was written againstregister_hashhashcompiler_versiontexteach comparator's register hash, and under the key the bars of nearness the version of that parameter row the breadths resolved againstcomparator_versions{text:text}of each summary its right-hand sides namesummary_versions{text:count}optionalfor each leaf that names a breadth, keyed by the leaf's hash, the bar it resolved to under the bars of nearness at the version comparator_versions records; frozen, so a changed row never moves an armed predicatenearness{text:share}optionalthe sentence a person would saysentencetextoptionalPREDICATENODEthrough treePOPULATIONthrough population
Predicate is a definition at follows scope. The drawing shows its fields and the objects that they point at.
kind
definition
scope
follows
key
the hash of its tree
store
postgres
family
rules_engine

Fields#

fieldtyperequirednote
treePredicateNodeyes
populationPopulationyes
tree_hashhashyes
register_hashhashyesthe register it was written against
compiler_versiontextyes
comparator_versions{text:text}yeseach comparator’s register hash, and under the key the bars of nearness the version of that parameter row the breadths resolved against
summary_versions{text:count}noof each summary its right-hand sides name
nearness{text:share}nofor each leaf that names a breadth, keyed by the leaf’s hash, the bar it resolved to under the bars of nearness at the version comparator_versions records; frozen, so a changed row never moves an armed predicate
sentencetextnothe sentence a person would say

Routes that use it#

No route takes or returns Predicate directly. The record holds it, and the objects that point at it reach it.