Index Mathematics Conjectures nbv lettuce Widgets

nbv documentation

nbv ("nothing but vectors") is a language for writing arithmetic circuits. Programs are functions over vectors of field elements, and the compiler nbvc turns them into a rank-1 constraint system and a witness that a proof system can argue about.

(let a, let b)
# the inner product of two vectors
sum(a * b)
Language reference
Syntax and semantics: static and witness values, moves, operators, functions, tuples, blocks, compile time evaluation and how programs become constraints.
Precompiles
The operations built into the compiler, invoked as name!.
Standard library
The functions bundled with the compiler: bits and comparisons, field specific arithmetic, polynomials, hashes (Keccak, Poseidon, BLAKE3), ChaCha, ML-DSA verification, R1CS and argument verifiers. Generated from the sources.