|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
Evaluates the 10 structured Translator precomputed selectors at a sumcheck challenge point. More...
#include <translator_selectors.hpp>
Public Member Functions | |
| template<typename Entities > | |
| void | populate (Entities &target) const |
| Write all 10 computed evaluations into any entity struct with matching named fields. | |
Static Public Member Functions | |
| static TranslatorSelectorEvaluations | compute (std::span< const FF > u) |
| Compute evaluations of all 10 structured selectors at the sumcheck challenge. | |
Static Public Attributes | |
| static constexpr size_t | LOG_CONCAT_GROUP_SIZE = 4 |
| static constexpr size_t | LOG_N = LOG_MINI_CIRCUIT_SIZE + LOG_CONCAT_GROUP_SIZE |
| static constexpr size_t | RESULT_ROW = 8 |
| static constexpr size_t | NUM_MASKED_ROWS_END = 4 |
| static constexpr size_t | RANDOMNESS_START = 2 |
| static constexpr size_t | CONCATENATION_GROUP_SIZE = 1UL << LOG_CONCAT_GROUP_SIZE |
| static constexpr size_t | MAX_RANDOM_VALUES_PER_ORDERED = CONCATENATION_GROUP_SIZE * NUM_MASKED_ROWS_END |
| static constexpr size_t | LOG_NUM_MASKED = 2 |
| static constexpr size_t | LOG_RESULT_ROW = 3 |
| static constexpr size_t | LOG_RANDOMNESS_START = 1 |
| static constexpr size_t | LOG_MAX_RANDOM = LOG_CONCAT_GROUP_SIZE + LOG_NUM_MASKED |
Evaluates the 10 structured Translator precomputed selectors at a sumcheck challenge point.
All Translator selectors except ordered_extra_range_constraints_numerator are multilinear polynomials over {0,1}^d whose support forms subcubes or small unions of subcubes. Their evaluations at the sumcheck challenge u = (u_0, ..., u_{d-1}) can be computed in O(d) field operations, using the key property that the sum of multilinear Lagrange basis polynomials over a free subcube equals 1.
Bit ordering: row index ℓ = ℓ_0 + 2·ℓ_1 + ... + 2^{d-1}·ℓ_{d-1} (bit 0 = LSB). Bits 0..M-1 encode the position within a mini-circuit block; bits M..D-1 encode the block index.
| FF | The finite field type. |
| LOG_MINI_CIRCUIT_SIZE | Log2 of the mini-circuit size (e.g. 13 for current Translator). |
Definition at line 23 of file translator_selectors.hpp.
|
inlinestatic |
Compute evaluations of all 10 structured selectors at the sumcheck challenge.
| u | Sumcheck challenge (u_0, ..., u_{LOG_N-1}). Size must equal LOG_N. |
Definition at line 67 of file translator_selectors.hpp.
|
inline |
Write all 10 computed evaluations into any entity struct with matching named fields.
Works for AllValues, AllEntities<FF>, PrecomputedEntities<FF>, native or stdlib.
Definition at line 225 of file translator_selectors.hpp.
|
staticconstexpr |
Definition at line 32 of file translator_selectors.hpp.
| FF bb::TranslatorSelectorEvaluations< FF, LOG_MINI_CIRCUIT_SIZE >::lagrange_even_in_minicircuit |
Definition at line 53 of file translator_selectors.hpp.
| FF bb::TranslatorSelectorEvaluations< FF, LOG_MINI_CIRCUIT_SIZE >::lagrange_first |
Definition at line 50 of file translator_selectors.hpp.
| FF bb::TranslatorSelectorEvaluations< FF, LOG_MINI_CIRCUIT_SIZE >::lagrange_last |
Definition at line 51 of file translator_selectors.hpp.
| FF bb::TranslatorSelectorEvaluations< FF, LOG_MINI_CIRCUIT_SIZE >::lagrange_last_in_minicircuit |
Definition at line 55 of file translator_selectors.hpp.
| FF bb::TranslatorSelectorEvaluations< FF, LOG_MINI_CIRCUIT_SIZE >::lagrange_masking |
Definition at line 56 of file translator_selectors.hpp.
| FF bb::TranslatorSelectorEvaluations< FF, LOG_MINI_CIRCUIT_SIZE >::lagrange_mini_masking |
Definition at line 57 of file translator_selectors.hpp.
| FF bb::TranslatorSelectorEvaluations< FF, LOG_MINI_CIRCUIT_SIZE >::lagrange_odd_in_minicircuit |
Definition at line 52 of file translator_selectors.hpp.
| FF bb::TranslatorSelectorEvaluations< FF, LOG_MINI_CIRCUIT_SIZE >::lagrange_ordered_masking |
Definition at line 59 of file translator_selectors.hpp.
| FF bb::TranslatorSelectorEvaluations< FF, LOG_MINI_CIRCUIT_SIZE >::lagrange_real_last |
Definition at line 58 of file translator_selectors.hpp.
| FF bb::TranslatorSelectorEvaluations< FF, LOG_MINI_CIRCUIT_SIZE >::lagrange_result_row |
Definition at line 54 of file translator_selectors.hpp.
|
staticconstexpr |
Definition at line 25 of file translator_selectors.hpp.
|
staticconstexpr |
Definition at line 39 of file translator_selectors.hpp.
|
staticconstexpr |
Definition at line 26 of file translator_selectors.hpp.
|
staticconstexpr |
Definition at line 36 of file translator_selectors.hpp.
|
staticconstexpr |
Definition at line 38 of file translator_selectors.hpp.
|
staticconstexpr |
Definition at line 37 of file translator_selectors.hpp.
|
staticconstexpr |
Definition at line 33 of file translator_selectors.hpp.
|
staticconstexpr |
Definition at line 30 of file translator_selectors.hpp.
|
staticconstexpr |
Definition at line 31 of file translator_selectors.hpp.
|
staticconstexpr |
Definition at line 29 of file translator_selectors.hpp.