Entity / API
foldkit-entity/laws
Laws.check: each transition against each invariant of its Entity, and
the arrows its writes make between the Entity's states: by enumeration over
finite fields where the members it reads are few, and by metakit's checker
over the write's transition (pairCheck.ts) where they are not. Pure: it
reads declarations and returns a report, which is data; Laws.show prints
it. Its own entry, foldkit-entity/laws: a page never carries the checker.
Namespaces
Functions
lawFactsOf | Declared transitions as graph facts, read off the declarations alone: a transition per entry and the members it writes (an Unknown footprint every field), a… |
Values
Finding | What the check says of an arrow or a state. A report, never a fault. |
LawEdge | An edge of the law half of the graph, naming its nodes by id or path, each path an Entity member. |
LawNode | A node of the law half of foldkit-surface's graph, as plain data. |
LawVerdict | How one transition stands against one invariant. |
Interfaces
Arrow | A write taking a row from one state of its Entity to another. |
FootprintEntry | A transition that is no declared write: what it touches is the author's word, or unknown. |
LawFacts | |
LawPair | One transition against one invariant of its Entity. |
LawReport | |
LawTotals | What a report stands on, counted. |
Obligation | What a pair left undecided asks of a later pass, as the declarations hold it: break rule with a row before that keeps every assumed invariant and an input… |
Witness | A row before, an input and the row after, concrete, that break a rule: what a refusal shows. |
WriteEntry | A declared write, as Mutation.write returns one. |
Types