• 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
            • Circuits-r1cs
            • 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-and-spec
              • Boolean-and-circuit
                • Boolean-and-correctness
                • Boolean-and-lifting
              • Boolean-nand
              • 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
    • Boolean-and

    Boolean-and-circuit

    Construction of the circuit.

    Signature
    (boolean-and-circuit) → pdef
    Returns
    pdef — Type (pfcs::definitionp pdef).

    This is a PFCS definition with a single equality constraint of the form described in boolean-and.

    Definitions and Theorems

    Function: boolean-and-circuit

    (defun boolean-and-circuit nil
      (declare (xargs :guard t))
      (let ((__function__ 'boolean-and-circuit))
        (declare (ignorable __function__))
        (pfcs::parse-def
             "boolean_and(x, y, z) := {
        (x) * (y) == (z)
        }")))

    Theorem: definitionp-of-boolean-and-circuit

    (defthm definitionp-of-boolean-and-circuit
      (b* ((pdef (boolean-and-circuit)))
        (pfcs::definitionp pdef))
      :rule-classes :rewrite)

    Theorem: sr1cs-definitionp-of-boolean-and-circuit

    (defthm sr1cs-definitionp-of-boolean-and-circuit
      (b* ((pdef (boolean-and-circuit)))
        (pfcs::sr1cs-definitionp pdef))
      :rule-classes :rewrite)