• 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-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)