Skip to main content

Module constraint

Module constraint 

Source
Expand description

SYMBOLIC CONSTRAINTS DEFINITION

Modules§

builder
Constraint Builder DSL.

Structs§

BoundaryConstraint
Pins a single trace cell to a target value at a specific row.
Constraint
Represents a full constraint equation: sum(terms) == 0.
ConstraintArena
Arena-allocated constraint DAG. Nodes reference each other by ExprId (index into nodes).
ConstraintAst
A full constraint system in AST form. roots are the top-level constraint expressions. Each root must evaluate to 0 for a valid trace.
ConstraintTerm
Represents a single term in a polynomial constraint. Form: coeff * product(cells) Example: 5 * x_curr * y_next
ExprId
Index into a ConstraintArena. Cheap to copy.

Enums§

BoundaryTarget
Source of the value a boundary constraint pins Trace(row_idx, col_idx) to.
ConstraintExpr
A single node in the constraint AST-DAG. All variants are algebraic operations over GF(2^128).