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: not started, auditors: [], date: YYYY-MM-DD }
3// external_1: { status: not started, auditors: [], date: YYYY-MM-DD }
4// external_2: { status: not started, auditors: [], date: YYYY-MM-DD }
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 static constexpr size_t RELATION_LENGTH =
18 7; // degree((lagrange_real_last - 1)(lagrange_masking - 1) * D(D - 1)(D - 2)(D - 3)) = 6
19
20 static constexpr std::array<size_t, 10> SUBRELATION_PARTIAL_LENGTHS{
21 7, // ordered_range_constraints_0 step in {0,1,2,3} subrelation
22 7, // ordered_range_constraints_1 step in {0,1,2,3} subrelation
23 7, // ordered_range_constraints_2 step in {0,1,2,3} subrelation
24 7, // ordered_range_constraints_3 step in {0,1,2,3} subrelation
25 7, // 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 };
33
49 template <typename ContainerOverSubrelations, typename AllEntities, typename Parameters>
50 static void accumulate(ContainerOverSubrelations& accumulators,
51 const AllEntities& in,
52 const Parameters&,
53 const FF& scaling_factor);
54};
55
56template <typename FF>
58
59} // 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.
typename Flavor::FF FF