52 vinfo(
"Translator circuit size: ", circuit.num_gates());
55 "The Translator circuit size has exceeded the fixed upper bound");
59 for (
auto [wire_poly_, wire_] :
zip_view(wires, circuit.wires)) {
60 auto& wire_poly = wire_poly_;
61 const auto& wire = wire_;
64 for (size_t i = start; i < end; i++) {
65 if (i >= wire_poly.start_index() && i < wire_poly.end_index()) {
66 wire_poly.at(i) = circuit.get_variable(wire[i]);
68 BB_ASSERT_EQ(circuit.get_variable(wire[i]), 0);
77 auto& wire = wires[idx];
78 for (
size_t i = wire.end_index() - NUM_DISABLED_ROWS_IN_SUMCHECK; i < wire.end_index(); i++) {
115 const size_t max_value = (1 << Flavor::MICRO_LIMB_BITS) - 1;
118 for (
size_t idx : chunk.
range(Flavor::SORTED_STEPS_COUNT)) {
119 inner_array[idx] = max_value - Flavor::SORT_STEP * idx;
126 return sorted_elements;
129 void compute_lagrange_polynomials();
131 void compute_extra_range_constraint_numerator();
133 void compute_translator_range_constraint_ordered_polynomials();
135 void compute_interleaved_polynomials();
137 void split_interleaved_random_coefficients_to_ordered();
#define BB_ASSERT_LTE(left, right,...)
#define BB_BENCH_NAME(name)
A container for the prover polynomials handles.
The proving key is responsible for storing the polynomials used by the prover.
static constexpr size_t MINI_CIRCUIT_SIZE
static constexpr size_t NUM_OP_QUEUE_WIRES
TranslatorCircuitBuilder CircuitBuilder
static constexpr size_t NUM_MASKED_ROWS_END
bb::CommitmentKey< Curve > CommitmentKey
bb::Polynomial< FF > Polynomial
static constexpr size_t INTERLEAVING_GROUP_SIZE
void compute_interleaved_polynomials()
Construct a set of polynomials that are the result of interleaving a group of polynomials into one....
typename Flavor::CommitmentKey CommitmentKey
static std::array< size_t, Flavor::SORTED_STEPS_COUNT > get_sorted_steps()
Create the array of steps inserted in each ordered range constraint to ensure they respect the approp...
static constexpr size_t mini_circuit_dyadic_size
void compute_extra_range_constraint_numerator()
Compute the extra numerator for the grand product polynomial.
static constexpr size_t dyadic_circuit_size_without_masking
TranslatorProvingKey(const Circuit &circuit, const CommitmentKey &commitment_key=CommitmentKey())
void compute_translator_range_constraint_ordered_polynomials()
Compute denominator polynomials for Translator's range constraint permutation.
static constexpr size_t dyadic_circuit_size
typename Flavor::ProverPolynomials ProverPolynomials
std::shared_ptr< ProvingKey > proving_key
static constexpr size_t dyadic_mini_circuit_size_without_masking
typename Flavor::ProvingKey ProvingKey
TranslatorProvingKey()=default
typename Flavor::Polynomial Polynomial
void compute_lagrange_polynomials()
Construct all the precomputed lagrange polynomials used in Translator relations.
typename Flavor::CircuitBuilder Circuit
Entry point for Barretenberg command-line interface.
void parallel_for(size_t num_iterations, const std::function< void(size_t)> &func)
void parallel_for_range(size_t num_points, const std::function< void(size_t, size_t)> &func, size_t no_multhreading_if_less_or_equal)
Split a loop into several loops running in parallel.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
auto range(size_t size, size_t offset=0) const
static field random_element(numeric::RNG *engine=nullptr) noexcept