8#include "../columns.hpp"
17 static constexpr std::string_view
NAME =
"LOOKUP_L1_TO_L2_MESSAGE_EXISTS_L1_TO_L2_MSG_LEAF_INDEX_IN_RANGE";
18 static constexpr std::string_view
RELATION_NAME =
"l1_to_l2_message_exists";
22 static constexpr Column COUNTS = Column::lookup_l1_to_l2_message_exists_l1_to_l2_msg_leaf_index_in_range_counts;
23 static constexpr Column INVERSES = Column::lookup_l1_to_l2_message_exists_l1_to_l2_msg_leaf_index_in_range_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
25 ColumnAndShifts::execution_l1_to_l2_msg_tree_leaf_count,
26 ColumnAndShifts::execution_register_1_,
27 ColumnAndShifts::execution_l1_to_l2_msg_leaf_in_range
29 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = { ColumnAndShifts::gt_input_a,
30 ColumnAndShifts::gt_input_b,
31 ColumnAndShifts::gt_res };
36template <
typename FF_>
43 static constexpr std::string_view
NAME =
"LOOKUP_L1_TO_L2_MESSAGE_EXISTS_L1_TO_L2_MSG_READ";
44 static constexpr std::string_view
RELATION_NAME =
"l1_to_l2_message_exists";
48 static constexpr Column COUNTS = Column::lookup_l1_to_l2_message_exists_l1_to_l2_msg_read_counts;
49 static constexpr Column INVERSES = Column::lookup_l1_to_l2_message_exists_l1_to_l2_msg_read_inv;
50 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
51 ColumnAndShifts::execution_register_0_,
52 ColumnAndShifts::execution_register_1_,
53 ColumnAndShifts::execution_l1_l2_tree_root,
54 ColumnAndShifts::execution_register_2_
56 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = {
57 ColumnAndShifts::l1_to_l2_message_tree_check_msg_hash,
58 ColumnAndShifts::l1_to_l2_message_tree_check_leaf_index,
59 ColumnAndShifts::l1_to_l2_message_tree_check_root,
60 ColumnAndShifts::l1_to_l2_message_tree_check_exists
66template <
typename FF_>
This file contains the template for the generic lookup that can be specialized to enforce various loo...
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::string_view RELATION_NAME
static constexpr Column INVERSES
static constexpr Column DST_SELECTOR
static constexpr Column SRC_SELECTOR
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::string_view NAME
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr Column COUNTS
static constexpr Column COUNTS
static constexpr std::string_view RELATION_NAME
static constexpr Column SRC_SELECTOR
static constexpr Column INVERSES
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr std::string_view NAME
static constexpr Column DST_SELECTOR