Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_public_data_squash.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_PUBLIC_DATA_SQUASH_LEAF_SLOT_INCREASE_FF_GT";
18 static constexpr std::string_view RELATION_NAME = "public_data_squash";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 3;
20 static constexpr Column SRC_SELECTOR = Column::public_data_squash_leaf_slot_increase;
21 static constexpr Column DST_SELECTOR = Column::ff_gt_sel_gt;
22 static constexpr Column COUNTS = Column::lookup_public_data_squash_leaf_slot_increase_ff_gt_counts;
23 static constexpr Column INVERSES = Column::lookup_public_data_squash_leaf_slot_increase_ff_gt_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::public_data_squash_leaf_slot_shift,
26 ColumnAndShifts::public_data_squash_leaf_slot,
27 ColumnAndShifts::public_data_squash_sel
28 };
29 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::ff_gt_a,
30 ColumnAndShifts::ff_gt_b,
31 ColumnAndShifts::ff_gt_result };
32};
33
36template <typename FF_>
39
41
43 static constexpr std::string_view NAME = "LOOKUP_PUBLIC_DATA_SQUASH_CLK_DIFF_RANGE_LO";
44 static constexpr std::string_view RELATION_NAME = "public_data_squash";
45 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
46 static constexpr Column SRC_SELECTOR = Column::public_data_squash_check_clock;
47 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
48 static constexpr Column COUNTS = Column::lookup_public_data_squash_clk_diff_range_lo_counts;
49 static constexpr Column INVERSES = Column::lookup_public_data_squash_clk_diff_range_lo_inv;
50 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
51 ColumnAndShifts::public_data_squash_clk_diff_lo
52 };
53 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::precomputed_clk };
54};
55
58template <typename FF_>
61
63
65 static constexpr std::string_view NAME = "LOOKUP_PUBLIC_DATA_SQUASH_CLK_DIFF_RANGE_HI";
66 static constexpr std::string_view RELATION_NAME = "public_data_squash";
67 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
68 static constexpr Column SRC_SELECTOR = Column::public_data_squash_check_clock;
69 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
70 static constexpr Column COUNTS = Column::lookup_public_data_squash_clk_diff_range_hi_counts;
71 static constexpr Column INVERSES = Column::lookup_public_data_squash_clk_diff_range_hi_inv;
72 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
73 ColumnAndShifts::public_data_squash_clk_diff_hi
74 };
75 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::precomputed_clk };
76};
77
80template <typename FF_>
83
84} // 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
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS