Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error codes

Generated by cargo x generate from the code tables of elinvar-logic, elinvar-engine, elinvar-als, and elinvar; do not edit. Each is specified in LOGIC.md, and every error carries its code, a message with the names and numbers involved, its fix, and its place (AGENTS.md law 21).

CodeWhenFix
universe.emptya universe with no atomsgive the universe at least one atom
universe.duplicate_atomtwo atoms with one namegive every atom of a universe its own name
universe.bitwidtha bitwidth outside 1 to 32 (LOGIC.md 16.1)give a bitwidth from 1 to 32
universe.intan integer atom whose integer is outside the bitwidth’s range, or two integers for one atom, or two atoms for one integer (LOGIC.md 16.1)give each integer atom one integer, within the bitwidth’s range, and each integer at most one atom
universe.unknown_atoma tuple names an atom the universe lacksname only atoms of the universe, or add the atom to it
universe.capacitythe number of tuples of an arity, n^k, is more than 2^64 - 1use fewer atoms, or relations and expressions of smaller arity
tuples.aritya tuple set is given a tuple of another aritygive a tuple set only tuples of its own arity
tuples.other_universea tuple set is given a tuple, or combined with a tuple set, over a different universebuild every tuple and tuple set from the same universe
tuples.indexa tuple set is given an index of no tuple of its aritygive an index below n^k for n atoms and arity k
bounds.aritya bound whose arity is not the relation’sgive the relation bounds of its own arity
bounds.lower_outside_uppera lower bound with a tuple the upper bound lacksadd the tuple to the upper bound, or remove it from the lower bound
bounds.other_universea tuple set over a different universebuild the bounds from tuple sets over the bounds’ own universe
bounds.duplicate_relationbounds are given for a relation that has thembound each relation once
bounds.duplicate_nametwo relations of one bounds have one namegive each relation its own name
instance.aritya tuple set whose arity is not the relation’sgive the relation a tuple set of its own arity
instance.other_universea tuple set over a different universebuild the instance from tuple sets over its own universe
instance.duplicate_relationa tuple set is given for a relation that has onegive each relation one tuple set
instance.duplicate_nametwo relations of one instance have one namegive each relation its own name
arity.zeroa relation or a tuple of arity 0give it an arity of 1 or more
arity.mismatchan operator that needs equal arities is given unequal onesmake both sides the same arity, for example by joining one side with a relation
arity.joina join of two expressions of arity 1to ask whether two sets meet, write some (a & b)
arity.not_binarytranspose or closure on an expression of arity other than 2apply it to a binary relation
arity.not_a_setthe set side of a restriction, or a declaration’s expression, of arity other than 1use an expression of arity 1 there
logic.free_variablea formula with a free variable is evaluated, run, or checkeduse the variable only inside the quantifier or comprehension that declares it
logic.no_declarationsa quantifier or a comprehension with no declarationsdeclare at least one variable
logic.rebound_variablea variable is declared where it is already bounddeclare a new variable instead of reusing one that is in scope
logic.higher_ordera declaration over sets or relations where only atoms are declared: in a comprehension, or in a quantifier skolemization cannot removedeclare atoms there, or move the quantifier over sets to the outside of the formula, where it becomes a relation
logic.unbound_relationa formula is run or checked and uses a relation the bounds lackgive the relation bounds
instance.missing_relationa formula is evaluated and uses a relation the instance lacksgive the relation a tuple set in the instance
trace.no_statesa trace with no statesgive the trace at least one state
trace.loopa loop target that is not a stateloop back to one of the trace’s states, from 0
trace.relationsthe states disagree about which changing relations they give, or give a fixed onegive every state the same changing relations, and fixed relations in the fixed instance
enumerate.too_largebrute-force enumeration over more free tuples than its capshrink the upper bounds, raise the cap, or use the solver
model.bitwidtha command asks for a bitwidth above 16 in a model with integers, whose Int set would have 2^w atomsgive the command a bitwidth from 1 to 16 with bitwidth
model.no_scopea command leaves a top-level set without a scopegive the set a scope with scope, scope_of, or exactly
model.not_a_seta scope is given for something that is not a top-level set of the model, or an ordering for a set that changes over timegive scopes only to the model’s top-level sets
model.not_changingan action’s effect names something that is not a changing relation of the modelname a relation declared with changing_field, changing_relation, or changing_subset
model.changing_after_actiona changing relation is declared after an action, so that action’s frame misses itdeclare every changing relation before the first action
model.diff_mismatchtwo models being compared with diff do not declare the same signatures and fields with the same arities and mutabilitycompare models that share the same signatures, fields, arities, and var declarations
model.trivial_holdsa check assertion holds from the bounds alone without using any rule of the modelcheck whether the promise is a tautology or restates a definition rather than testing a rule
model.vacuous_premisean implication promise’s premise is never satisfied in any allowed case within the scopeincrease the scope or steps, or inspect why the premise can never happen
model.premise_unknownwarning: a check of an implication holds, but whether its premise is ever satisfied was not settled within the budget for that question, so the holds may be vacuousraise --budget or --timeout, or lower the scope, and check again; or run the premise to see a case of it
model.invalid_stepsa command asks for 0 steps; a trace needs at least 1 stateuse at least 1 step (but 1 steps or --steps 1)
model.scope_too_largea command asks for more atoms, or more possible tuples, than the bounded checker supportslower the command’s scope (at most 4096 non-integer atoms, and 16777216 possible tuples over all relations)
als.syntaxtext that is not Alloy, or not this subset’s grammarwrite the model in the subset of Alloy 6 that LOGIC.md section 15 lists
als.unknown_namea name that is no signature, field, predicate, function, parameter, or variable in scopedeclare the name, or fix its spelling
als.unsupporteda construct outside the subset of LOGIC.md section 15.2rewrite the model without it; LOGIC.md section 15.2 lists what is not read
als.sorta formula where an expression belongs, or the other way roundwrite an expression where a set or relation is wanted, and a formula where true or false is
als.duplicatetwo declarations of one namegive each signature, field, predicate, function, and assertion its own name
als.argumentsa predicate or function called with the wrong number of arguments, or with arguments whose types fit none or more than one of its overloadspass one argument per parameter, of the types of the declaration meant
als.no_commanda command name the file does not havename a command of the file, or give none to run them all
eval.resultelinvar eval is given a result it cannot read as an instance or trace of the modelgive the JSON of one result of elinvar check --json or elinvar run --json for this model
sql.skippedSQL import with --strict encountered a statement or constraint it does not readrewrite or remove the unsupported SQL rule, or drop --strict to inspect the skipped comments
sql.scriptelinvar accepts is given a SQL DML script containing a statement or expression it cannot readuse single-row INSERT INTO t (cols) VALUES (...), UPDATE t SET ... WHERE ..., and DELETE FROM t WHERE ... statements with literal or simple arithmetic values
sql.databaseelinvar fuzz could not run the external database command given to --against or the database rejected the schemacheck that --against names an installed database CLI (for example --against sqlite3) and that the schema loads without error
als.int_wrapwarning: an integer literal written in the model does not fit the command’s Int bitwidth and wrapsincrease the command’s Int bitwidth (for example but 6 Int), or use a smaller literal
als.unframed_varwarning: a step predicate updates some changing (var) relations while leaving others unconstrainedadd r' = r (or another constraint) in the step predicate for each changing relation it should leave unchanged
als.default_commandwarning: the file has no run or check command, so Alloy’s default command, run {} named Default, was run, which only shows the rules allow some caseadd the command meant, such as check Name for 4 for a promise or run Name for 4 for an example
als.empty_by_typewarning: a join, intersection, or comparison combines expressions whose column types never overlapcheck the column types on both sides; the join or intersection is always empty, or the comparison is trivially decided by types
cli.usagea verb was given a flag, argument, or value it does not take, or a verb that does not existread the verb’s --help (or elinvar --help for the verbs), and pass what it lists
cli.steps_ignoredwarning: --steps (or the steps argument) was given for a model where nothing changes, so there is no trace for it to bounddrop --steps, or declare what changes with var
cli.state_past_endwarning: --state K (or state) is at or past the number of states in the trace; the trace loops, so K is read as the state the loop reaches there (LOGIC.md section 13.1)give a state from 0 to one less than the number of states; a static instance has only state 0
cli.inputan input named on the command line cannot be read: a missing or unreadable file, a directory with no .sql files, stdin that fails, or a result that is not JSONcheck the path and its permissions; - reads stdin, and a directory is read as its .sql files in name order
audit.parsea SQL data dump passed to elinvar audit --data has an unreadable INSERT statement or valuecheck the SQL dump syntax and pass INSERT statements from sqlite3 .dump or pg_dump --inserts
audit.dropped_rowsa SQL dump passed to elinvar audit --data inserts rows into a table that is not in the audited schema, or not in its --tables slice; those rows are not auditedadd the table to the schema or to --tables, or remove its rows from the dump if they do not belong to this database
audit.ignored_statementa SQL dump passed to elinvar audit --data has a statement that is neither an INSERT nor one that carries no rows (such as COPY, UPDATE, or text that is not SQL); it is not readdump with sqlite3 DB .dump or pg_dump --inserts, which write every row as an INSERT
audit.no_rowsa SQL dump passed to elinvar audit --data has no INSERT statement, so the audit read no row and its clean says nothing about any datacheck that the file is the dump of the database meant; an empty database needs no audit
ci.manifesta CI manifest passed to elinvar ci cannot be parsed or has an invalid entrycheck the manifest TOML fields ([[check]], [[run]], [[accepts]], [[diff]], [[discover]], [[tests]]) and referenced file paths