Skip to content

Commit

Permalink
Fixed gates
Browse files Browse the repository at this point in the history
  • Loading branch information
Eagle941 committed Mar 13, 2024
1 parent a6a4778 commit 56f37f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ProvenZk/Gates.lean
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ def ne (a b : ZMod N): Prop := a ≠ b

def le_8 (a b : ZMod N): Prop :=
∃z w: Fin (binary_length N), z.val % N = a.val ∧ w.val % N = b.val ∧
a.val <= b.val
z.val <= w.val

def le_9 (a b : ZMod N): Prop :=
∃z w: Fin (binary_length N), z.val = a.val ∧ w.val = b.val ∧
a.val <= b.val

def to_binary (a : ZMod N) (d : Nat) (out : Vector (ZMod N) d): Prop :=
Expand Down

0 comments on commit 56f37f3

Please sign in to comment.