From 186de7fe37745846ae82fadf1cf9b2637057cf4e Mon Sep 17 00:00:00 2001 From: Rumata888 Date: Wed, 11 Oct 2023 11:33:38 +0000 Subject: [PATCH 1/5] Goblin GenPermSort relation --- .../relations/gen_perm_sort_relation.hpp | 129 ++++++++++++++++++ ...n_translator_relation_consistency.test.cpp | 121 ++++++++++++---- 2 files changed, 222 insertions(+), 28 deletions(-) diff --git a/barretenberg/cpp/src/barretenberg/proof_system/relations/gen_perm_sort_relation.hpp b/barretenberg/cpp/src/barretenberg/proof_system/relations/gen_perm_sort_relation.hpp index 03c413d9c9f0..2d031b89b979 100644 --- a/barretenberg/cpp/src/barretenberg/proof_system/relations/gen_perm_sort_relation.hpp +++ b/barretenberg/cpp/src/barretenberg/proof_system/relations/gen_perm_sort_relation.hpp @@ -93,6 +93,135 @@ template class GenPermSortRelationImpl { }; }; +template class GoblinTranslatorGenPermSortRelationImpl { + public: + using FF = FF_; + + // 1 + polynomial degree of this relation + static constexpr size_t RELATION_LENGTH = 6; // degree((lagrange_last-1) * D(D - 1)(D - 2)(D - 3)) = 5 + static constexpr size_t LEN_1 = 6; + static constexpr size_t LEN_2 = 6; + static constexpr size_t LEN_3 = 6; + static constexpr size_t LEN_4 = 6; + static constexpr size_t LEN_5 = 6; + static constexpr size_t LEN_6 = 3; + static constexpr size_t LEN_7 = 3; + static constexpr size_t LEN_8 = 3; + static constexpr size_t LEN_9 = 3; + static constexpr size_t LEN_10 = 3; + template