Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
translator_delta_range_constraint_relation.hpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: Planned, auditors: [], commit: }
3// external_1: { status: not started, auditors: [], commit: }
4// external_2: { status: not started, auditors: [], commit: }
5// =====================
6
7#pragma once
9
10namespace bb {
11
12template <typename FF_> class TranslatorDeltaRangeConstraintRelationImpl {
13 public:
14 using FF = FF_;
15
16 // 1 + polynomial degree of this relation
17 // degree((1-lagrange_real_last-lagrange_ordered_masking) * D(D-1)(D-2)(D-3)) = 4+1 = 5, so length = 6
18 static constexpr size_t RELATION_LENGTH = 6;
19
20 static constexpr std::array<size_t, 10> SUBRELATION_PARTIAL_LENGTHS{
21 6, // ordered_range_constraints_0 step in {0,1,2,3} subrelation
22 6, // ordered_range_constraints_1 step in {0,1,2,3} subrelation
23 6, // ordered_range_constraints_2 step in {0,1,2,3} subrelation
24 6, // ordered_range_constraints_3 step in {0,1,2,3} subrelation
25 6, // ordered_range_constraints_4 step in {0,1,2,3} subrelation
26 3, // ordered_range_constraints_0 ends with defined maximum value subrelation
27 3, // ordered_range_constraints_1 ends with defined maximum value subrelation
28 3, // ordered_range_constraints_2 ends with defined maximum value subrelation
29 3, // ordered_range_constraints_3 ends with defined maximum value subrelation
30 3 // ordered_range_constraints_4 ends with defined maximum value subrelation
31 };
32
54 template <typename ContainerOverSubrelations, typename AllEntities, typename Parameters>
55 static void accumulate(ContainerOverSubrelations& accumulators,
56 const AllEntities& in,
57 const Parameters&,
58 const FF& scaling_factor);
59};
60
61template <typename FF>
63
64} // namespace bb
A wrapper for Relations to expose methods used by the Sumcheck prover or verifier to add the contribu...
static void accumulate(ContainerOverSubrelations &accumulators, const AllEntities &in, const Parameters &, const FF &scaling_factor)
Expression for the generalized permutation sort relation.
Entry point for Barretenberg command-line interface.
Definition api.hpp:5