• 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-r-pointp

    Recognize elements of \mathbb{J}^{(r)} [ZPS:5.4.9.3].

    Signature
    (jubjub-r-pointp x) → yes/no
    Returns
    yes/no — Type (booleanp yes/no).

    These are the points of order r_\mathbb{J} plus \mathcal{O}_\mathbb{J}.

    Definitions and Theorems

    Function: jubjub-r-pointp

    (defun jubjub-r-pointp (x)
     (declare (xargs :guard t))
     (let ((__function__ 'jubjub-r-pointp))
      (declare (ignorable __function__))
      (or (equal x (twisted-edwards-zero))
          (and (jubjub-pointp x)
               (ecurve::twisted-edwards-point-orderp x (jubjub-r)
                                                     (jubjub-curve))))))

    Theorem: booleanp-of-jubjub-r-pointp

    (defthm booleanp-of-jubjub-r-pointp
      (b* ((yes/no (jubjub-r-pointp x)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: jubjub-pointp-when-jubjub-r-pointp

    (defthm jubjub-pointp-when-jubjub-r-pointp
      (implies (jubjub-r-pointp x)
               (jubjub-pointp x)))

    Theorem: jubjub-point-of-neg

    (defthm jubjub-point-of-neg
      (implies (and (ecurve::twisted-edwards-add-associativity)
                    (jubjub-r-pointp point))
               (jubjub-r-pointp (jubjub-neg point))))