Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_l1_to_l2_message_exists.hpp
Go to the documentation of this file.
1// AUTOGENERATED FILE
2#pragma once
3
4#include <cstddef>
5#include <string_view>
6#include <tuple>
7
8#include "../columns.hpp"
11
12namespace bb::avm2 {
13
15
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";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 3;
20 static constexpr Column SRC_SELECTOR = Column::execution_sel_execute_l1_to_l2_message_exists;
21 static constexpr Column DST_SELECTOR = Column::gt_sel;
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
28 };
29 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::gt_input_a,
30 ColumnAndShifts::gt_input_b,
31 ColumnAndShifts::gt_res };
32};
33
36template <typename FF_>
39
41
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";
45 static constexpr size_t LOOKUP_TUPLE_SIZE = 4;
46 static constexpr Column SRC_SELECTOR = Column::execution_l1_to_l2_msg_leaf_in_range;
47 static constexpr Column DST_SELECTOR = Column::l1_to_l2_message_tree_check_sel;
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_
55 };
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
61 };
62};
63
66template <typename FF_>
69
70} // namespace bb::avm2
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::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS