17 static constexpr std::array<size_t, 34>
SUBRELATION_PARTIAL_LENGTHS = { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
18 3, 3, 3, 3, 4, 5, 5, 3, 3, 5, 3, 3,
19 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 };
21 template <
typename AllEntities>
inline static bool skip(
const AllEntities& in)
25 return (in.get(C::bitwise_sel)).is_zero();
28 template <
typename ContainerOverSubrelations,
typename AllEntities>
29 void static accumulate(ContainerOverSubrelations& evals,
30 const AllEntities& in,
32 [[maybe_unused]]
const FF& scaling_factor);
37 static constexpr const std::string_view
NAME =
"bitwise";
63 return "SEL_ON_START_OR_END";
65 return "TRACE_CONTINUITY";
67 return "START_AFTER_LATCH";
69 return "BITW_NO_EXTERNAL_START_ON_ERROR";
71 return "LAST_ON_ERROR";
73 return "ERR_ONLY_ON_START";
75 return "RES_TAG_SHOULD_MATCH_INPUT";
77 return "INPUT_TAG_CANNOT_BE_FF";
79 return "INPUT_TAGS_SHOULD_MATCH";
81 return "BITW_OP_ID_REL_CONTINUITY";
83 return "BITW_CTR_DECREMENT";
85 return "BITW_END_FOR_CTR_ONE";
93 return "BITW_ACC_REL_A";
95 return "BITW_ACC_REL_B";
97 return "BITW_ACC_REL_C";
A wrapper for Relations to expose methods used by the Sumcheck prover or verifier to add the contribu...
static constexpr size_t SR_BITW_CTR_DECREMENT
static constexpr size_t SR_BITW_ACC_REL_C
static constexpr size_t SR_LAST_ON_ERROR
static constexpr size_t SR_BITW_ACC_REL_B
static constexpr size_t SR_BITW_ACC_REL_A
static constexpr size_t SR_TRACE_CONTINUITY
static constexpr size_t SR_INPUT_TAG_CANNOT_BE_FF
static constexpr size_t SR_BITW_INIT_C
static constexpr size_t SR_BITW_OP_ID_REL_CONTINUITY
static constexpr size_t SR_BITW_NO_EXTERNAL_START_ON_ERROR
static constexpr size_t SR_BITW_END_FOR_CTR_ONE
static constexpr size_t SR_BITW_INIT_B
static constexpr size_t SR_SEL_ON_START_OR_END
static constexpr size_t SR_START_AFTER_LATCH
static constexpr size_t SR_RES_TAG_SHOULD_MATCH_INPUT
static constexpr const std::string_view NAME
static constexpr size_t SR_BITW_INIT_A
static std::string get_subrelation_label(size_t index)
static constexpr size_t SR_ERR_ONLY_ON_START
static constexpr size_t SR_INPUT_TAGS_SHOULD_MATCH
static void accumulate(ContainerOverSubrelations &evals, const AllEntities &in, const RelationParameters< FF > &, const FF &scaling_factor)
static bool skip(const AllEntities &in)
static constexpr std::array< size_t, 34 > SUBRELATION_PARTIAL_LENGTHS
std::string to_string(bb::avm2::ValueTag tag)
Container for parameters used by the grand product (permutation, lookup) Honk relations.