Expand description
A checked specialist for affine systems of EVM word XOR equalities.
Gaussian elimination proposes either a model or a set of source equations whose XOR is contradictory. Neither answer is trusted: models are evaluated against the entire original query, and the certificate checker cancels terms in the original source equations without consulting the elimination rows. Unsupported queries and exhausted work budgets fall through.
Re-exportsยง
use super::*;๐
Structsยง
Enumsยง
- Checked
XorResult ๐
Constantsยง
- MAX_
XOR_ ๐ATOMS - MAX_
XOR_ ๐ROWS - MAX_
XOR_ ๐VISITS
Functionsยง
- affine_
terms ๐ - Recovers equalities compiled as
ISZERO(ADD(word, constant))orISZERO(SUB(a, b)). Only the equality boundary admits these rewrites: addition inside an XOR remains opaque because carries are not linear over GF(2). Every constant operation wraps at EVM word width. - asserted_
relations ๐ - Collects asserted equalities and disequalities. Negated conjunctions cannot supply relations.
- check_
certificate ๐ - Checks a contradiction certificate by XORing selected source equalities directly. All opaque
terms must cancel, leaving
0 = nonzero, or0 != 0for a disequality certificate. This is a necessary contradiction even when atoms are related (e.g.xandx & mask); no independence assumption is used to establish UNSAT. - checked_
xor_ ๐result - Returns only independently checked answers, using the original, unnormalized constraints.
- is_
affine_ ๐op