Whether evaluation can never refuse node, nor give a value an operation
refuses for itself (text holding a NUL, NaN), judged from the expression
and its Schemas: a literal of none; a path whose Schema admits none (a
finite number, a boolean, a literal set of none, Text); a core
operation that refuses only for its operands' values, over operands of its
kind that cannot be refused; an any or every over a list or a row's
related rows whose test cannot be refused (foldCannotRefuse). The guard
of every rewrite that drops an operand: a refusal decides before null and
is not absorbed.
Whether node always evaluates to a safe integer, null, or a refusal, including
constant integer expressions (9000 + 9000) and conditional branches mixing
integer terms with integer literals. Used to discharge effect/schema/isInt
during derived-operation expansion without relaxing isIntegerTerm for SQL.
An operand of integer arithmetic in SQL: an integer term, an integer literal, or a
constant integer expression such as neg(4000), which is no term (it reads no
row) but is as much an integer as the literal it negates. A null literal is none.
isIntegerTerm stays as it was: the guard readers take a term as an integer
without asking, and the checker's counts move with what they ask.
A literal or a path that, whenever it holds a number, holds one within
±(2^53−1): a path whose Schema admits only integers (Schema.Int takes
only safe ones). The guard of a numeric law that returns an operand.
Text Text.schema from @doeixd/metakit/domain describes, refinements after it
included: text holding no NUL, recognised by the annotation on the check
that refuses one (an annotation on the Schema alone refuses nothing).
What the checks on a string Schema ask of a value: a length in UTF-16
units at least minLength and at most maxLength, no NUL (Text.schema),
and modelled false where a check asks anything else (a pattern, a trim),
which a reader cannot show a value meets.