#include <translator_circuit_checker.hpp>
|
| static Fq | get_computation_result (const Builder &circuit) |
| | Get the result of accumulation, stored as 4 binary limbs in the first row of the circuit.
|
| |
| static bool | check (const Builder &circuit) |
| | Check the witness satisifies the circuit.
|
| |
◆ AllValues
◆ Builder
◆ Flavor
◆ Fq
◆ Fr
◆ Params
◆ WireIds
◆ TranslatorCircuitChecker()
| bb::TranslatorCircuitChecker::TranslatorCircuitChecker |
( |
| ) |
|
|
default |
◆ check()
| bool bb::TranslatorCircuitChecker::check |
( |
const Builder & |
circuit | ) |
|
|
static |
Check the witness satisifies the circuit.
Goes through each gate and checks the correctness of accumulation using the Translator relations. Checks TranslatorOpcodeConstraintRelation, TranslatorAccumulatorTransferRelation, TranslatorDecompositionRelation, and TranslatorNonNativeFieldRelation for each row.
Note: TranslatorPermutationRelation and TranslatorDeltaRangeConstraintRelation are not checked here because they require grand product polynomials (z_perm) and sorted range constraint polynomials that are only available at the prover level, not from the circuit builder directly.
- Returns
- true if all relation constraints are satisfied, false otherwise
Definition at line 107 of file translator_circuit_checker.cpp.
◆ check_relation()
| static bool bb::TranslatorCircuitChecker::check_relation |
( |
const AllValues & |
values, |
|
|
const Params & |
params |
|
) |
| |
|
inlinestaticprivate |
◆ compute_relation_params()
Build the RelationParameters from the circuit's public inputs.
Populates evaluation_input_x (4 binary limbs + 1 native Fr), batching_challenge_v powers (4 sets of 5 limbs), and accumulated_result (4 limbs).
Definition at line 12 of file translator_circuit_checker.cpp.
◆ get_computation_result()
| static Fq bb::TranslatorCircuitChecker::get_computation_result |
( |
const Builder & |
circuit | ) |
|
|
inlinestatic |
◆ populate_values()
| void bb::TranslatorCircuitChecker::populate_values |
( |
const Builder & |
circuit, |
|
|
AllValues & |
values, |
|
|
size_t |
row_idx |
|
) |
| |
|
staticprivate |
Populate an AllValues struct for a single row of the circuit.
Sets wire values from the circuit at row_idx, shifted wire values from row_idx+1 (or zero at the last row), and computes Lagrange selector values analytically.
Definition at line 51 of file translator_circuit_checker.cpp.
◆ NUM_BINARY_LIMBS
| constexpr size_t bb::TranslatorCircuitChecker::NUM_BINARY_LIMBS = Builder::NUM_BINARY_LIMBS |
|
staticconstexprprivate |
◆ RESULT_ROW
| constexpr size_t bb::TranslatorCircuitChecker::RESULT_ROW = Builder::RESULT_ROW |
|
staticconstexprprivate |
The documentation for this class was generated from the following files: