• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
        • Mmp-trees
        • Semaphore
          • Verify-semaphore-r1cs
          • Mimc
          • Semaphore-specification
            • Prime-field-abbreviations
            • Pedersen-hash
            • Pedersen-hash-base-points
            • Baby-jubjub
              • Baby-jubjub-order
              • Baby-jubjub-prime
              • Baby-jubjub-order/8
              • Baby-jubjub-d
              • Baby-jubjub-pointp
              • Baby-jubjub-mul
              • Baby-jubjub-curve
              • Baby-jubjub-a
              • Point-on-baby-jubjub-p
              • Baby-jubjub-add
            • Semaphore-proofs
          • Database
          • Cryptography
          • Rlp
          • Transactions
          • Hex-prefix
          • Basics
          • Addresses
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Baby-jubjub

    Baby-jubjub-add

    Group addition on BabyJubjub.

    Signature
    (baby-jubjub-add point1 point2) → point
    Arguments
    point1 — Guard (baby-jubjub-pointp point1).
    point2 — Guard (baby-jubjub-pointp point2).
    Returns
    point — Type (baby-jubjub-pointp point), given (and (baby-jubjub-pointp point1) (baby-jubjub-pointp point2)).

    Definitions and Theorems

    Function: baby-jubjub-add

    (defun baby-jubjub-add (point1 point2)
     (declare (xargs :guard (and (baby-jubjub-pointp point1)
                                 (baby-jubjub-pointp point2))))
     (let ((acl2::__function__ 'baby-jubjub-add))
       (declare (ignorable acl2::__function__))
       (ecurve::twisted-edwards-add point1 point2 (baby-jubjub-curve))))

    Theorem: baby-jubjub-pointp-of-baby-jubjub-add

    (defthm baby-jubjub-pointp-of-baby-jubjub-add
      (implies (and (baby-jubjub-pointp point1)
                    (baby-jubjub-pointp point2))
               (b* ((point (baby-jubjub-add point1 point2)))
                 (baby-jubjub-pointp point)))
      :rule-classes :rewrite)