• 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
      • X86isa
      • Sha-2
      • Yul
      • Zcash
        • Jubjub
          • Jubjub-abst
          • Jubjub-r-pointp
          • Jubjub-pointp
          • Jubjub-d
          • Jubjub-montgomery
          • Maybe-jubjub-pointp
          • Jubjub-point->u
          • Jubjub-q
          • Jubjub-point->v
          • Point-on-jubjub-p
          • Jubjub-rstar-pointp
          • Jubjub-add
          • Jubjub-r-properties
          • Jubjub-point-abscissa-is-not-1
          • Jubjub-mul
            • Jubjub-curve
            • Jubjub-a
            • Jubjub-neg
            • Jubjub-r
            • Jubjub-point-satisfies-curve-equation
            • Jubjub-h
            • Jubjub-mul-of-2
            • *jubjub-l*
          • Verify-zcash-r1cs
          • Lift-zcash-r1cs
          • Pedersen-hash
          • Zcash-gadgets
          • Bit/byte/integer-conversions
          • Constants
          • Blake2-hash
          • Randomness-beacon
        • 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
    • Jubjub

    Jubjub-mul

    Scalar multiplication [ZPS:4.1.8], on Jubjub.

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

    Definitions and Theorems

    Function: jubjub-mul

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

    Theorem: jubjub-pointp-of-jubjub-mul

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