• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Aleo
        • Aleobft
        • Aleovm
          • Circuits
            • Circuits-pfcs
            • Field-div-flagged
            • Boolean-assert-true
            • Field-inv-flagged
            • Boolean-assert
            • Field-div-unchecked
            • Field-neq
            • Boolean-not
            • Boolean-assert-all
            • Boolean-if
            • Field-if
            • Boolean-xor
            • Boolean-or
            • Boolean-nor
            • Boolean-and
            • Boolean-nand
              • Boolean-nand-spec
              • Boolean-nand-circuit
              • Boolean-nand-correctness
              • Boolean-nand-lifting
            • Boolean-neq
            • Boolean-eq
            • Boolean-assert-neq
            • Boolean-assert-eq
            • Field-eq
            • Field-div-checked
            • Field-inv-checked
            • Field-assert-neq
            • Field-assert-eq
            • Field-mul
            • Field-sub
            • Field-square
            • Field-neg
            • Field-double
            • Field-add
          • Language
        • Leo
      • Bigmems
      • Builtins
      • Execloader
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Circuits

Boolean-nand

Formalization and verification of a circuit for boolean negated conjunction.

Given two field elements x and y representing booleans (i.e. such that each field element is either 0 or 1; see boolean-assert), their negated conjunction z is obtained via a multiplication of the form

(x) (y) = (1 - z)

which defines z to be 0 if both x and y are 1, otherwise 1. Thus, z is boolean (0 or 1) if both x and y are.

This has the same form as boolean-and, but with the result boolean negated (see boolean-not).

Subtopics

Boolean-nand-spec
Specification of the circuit.
Boolean-nand-circuit
Construction of the circuit.
Boolean-nand-correctness
Correctness of the circuit.
Boolean-nand-lifting
Lifting of the circuit to a predicate.