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
8
#include "
barretenberg/relations/relation_types.hpp
"
9
10
namespace
bb
{
11
12
template
<
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
56
template
<
typename
FF>
57
using
TranslatorDeltaRangeConstraintRelation
=
Relation<TranslatorDeltaRangeConstraintRelationImpl<FF>
>;
58
59
}
// namespace bb
bb::Relation
A wrapper for Relations to expose methods used by the Sumcheck prover or verifier to add the contribu...
Definition
relation_types.hpp:153
bb::TranslatorDeltaRangeConstraintRelationImpl
Definition
translator_delta_range_constraint_relation.hpp:12
bb::TranslatorDeltaRangeConstraintRelationImpl::accumulate
static void accumulate(ContainerOverSubrelations &accumulators, const AllEntities &in, const Parameters &, const FF &scaling_factor)
Expression for the generalized permutation sort relation.
Definition
translator_delta_range_constraint_relation_impl.hpp:26
bb::TranslatorDeltaRangeConstraintRelationImpl::SUBRELATION_PARTIAL_LENGTHS
static constexpr std::array< size_t, 10 > SUBRELATION_PARTIAL_LENGTHS
Definition
translator_delta_range_constraint_relation.hpp:20
bb::TranslatorDeltaRangeConstraintRelationImpl::RELATION_LENGTH
static constexpr size_t RELATION_LENGTH
Definition
translator_delta_range_constraint_relation.hpp:17
bb::TranslatorDeltaRangeConstraintRelationImpl::FF
FF_ FF
Definition
translator_delta_range_constraint_relation.hpp:14
bb
Entry point for Barretenberg command-line interface.
Definition
acir_format_getters.cpp:6
bb::FF
typename Flavor::FF FF
Definition
protogalaxy.bench.cpp:16
relation_types.hpp
src
barretenberg
relations
translator_vm
translator_delta_range_constraint_relation.hpp
Generated by
1.9.8