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

lawFactsOfDeclared 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

FindingWhat the check says of an arrow or a state. A report, never a fault.
LawEdgeAn edge of the law half of the graph, naming its nodes by id or path, each path an Entity member.
LawNodeA node of the law half of foldkit-surface's graph, as plain data.
LawVerdictHow one transition stands against one invariant.

Interfaces

ArrowA write taking a row from one state of its Entity to another.
FootprintEntryA transition that is no declared write: what it touches is the author's word, or unknown.
LawFacts
LawPairOne transition against one invariant of its Entity.
LawReport
LawTotalsWhat a report stands on, counted.
ObligationWhat 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…
WitnessA row before, an input and the row after, concrete, that break a rule: what a refusal shows.
WriteEntryA declared write, as Mutation.write returns one.

Types