Skip to content

Commit

Permalink
Added N as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Eagle941 committed Nov 29, 2023
1 parent f0be4a6 commit 35e8e6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ProvenZk/Gates.lean
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ structure Gates_base (α : Type) : Type where
to_binary : α → (n : Nat) → Vector α n → Prop
from_binary : Vector α d → α → Prop

def GatesGnark_8 {N : Nat} [Fact (Nat.Prime N)] : Gates_base (ZMod N) := {
def GatesGnark_8 (N : Nat) [Fact (Nat.Prime N)] : Gates_base (ZMod N) := {
is_bool := GatesDef.is_bool,
add := GatesDef.add,
mul_acc := GatesDef.mul_acc,
Expand All @@ -105,6 +105,6 @@ def GatesGnark_8 {N : Nat} [Fact (Nat.Prime N)] : Gates_base (ZMod N) := {
from_binary := GatesDef.from_binary
}

def GatesGnark_9 {N : Nat} [Fact (Nat.Prime N)] : Gates_base (ZMod N) := {
GatesGnark_8 with cmp := GatesDef.cmp_9
def GatesGnark_9 (N : Nat) [Fact (Nat.Prime N)] : Gates_base (ZMod N) := {
GatesGnark_8 N with cmp := GatesDef.cmp_9
}

0 comments on commit 35e8e6e

Please sign in to comment.