• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • 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
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Baby-jubjub

    Baby-jubjub-mul

    Scalar multiplication on BabyJubjub.

    Signature
    (baby-jubjub-mul scalar point) → point1
    Arguments
    scalar — Guard (integerp scalar).
    point — Guard (baby-jubjub-pointp point).
    Returns
    point1 — Type (baby-jubjub-pointp point1), given (baby-jubjub-pointp point).

    Definitions and Theorems

    Function: baby-jubjub-mul

    (defun baby-jubjub-mul (scalar point)
      (declare (xargs :guard (and (integerp scalar)
                                  (baby-jubjub-pointp point))))
      (let ((acl2::__function__ 'baby-jubjub-mul))
        (declare (ignorable acl2::__function__))
        (ecurve::twisted-edwards-mul scalar point (baby-jubjub-curve))))

    Theorem: baby-jubjub-pointp-of-baby-jubjub-mul

    (defthm baby-jubjub-pointp-of-baby-jubjub-mul
      (implies (baby-jubjub-pointp point)
               (b* ((point1 (baby-jubjub-mul scalar point)))
                 (baby-jubjub-pointp point1)))
      :rule-classes :rewrite)

    Theorem: baby-jubjub-mul-of-ifix-scalar

    (defthm baby-jubjub-mul-of-ifix-scalar
      (equal (baby-jubjub-mul (ifix scalar) point)
             (baby-jubjub-mul scalar point)))

    Theorem: baby-jubjub-mul-int-equiv-congruence-on-scalar

    (defthm baby-jubjub-mul-int-equiv-congruence-on-scalar
      (implies (acl2::int-equiv scalar scalar-equiv)
               (equal (baby-jubjub-mul scalar point)
                      (baby-jubjub-mul scalar-equiv point)))
      :rule-classes :congruence)