• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • Riscv
        • 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

    Point-on-baby-jubjub-p

    Check if a point is on BabyJubjub.

    Signature
    (point-on-baby-jubjub-p point) → yes/no
    Arguments
    point — Guard (ecurve::pointp point).
    Returns
    yes/no — Type (booleanp yes/no).

    Definitions and Theorems

    Function: point-on-baby-jubjub-p

    (defun point-on-baby-jubjub-p (point)
      (declare (xargs :guard (ecurve::pointp point)))
      (let ((acl2::__function__ 'point-on-baby-jubjub-p))
        (declare (ignorable acl2::__function__))
        (ecurve::point-on-twisted-edwards-p point (baby-jubjub-curve))))

    Theorem: booleanp-of-point-on-baby-jubjub-p

    (defthm booleanp-of-point-on-baby-jubjub-p
      (b* ((yes/no (point-on-baby-jubjub-p point)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: point-on-baby-jubjub-p-of-point-fix-point

    (defthm point-on-baby-jubjub-p-of-point-fix-point
      (equal (point-on-baby-jubjub-p (ecurve::point-fix point))
             (point-on-baby-jubjub-p point)))

    Theorem: point-on-baby-jubjub-p-point-equiv-congruence-on-point

    (defthm point-on-baby-jubjub-p-point-equiv-congruence-on-point
      (implies (ecurve::point-equiv point point-equiv)
               (equal (point-on-baby-jubjub-p point)
                      (point-on-baby-jubjub-p point-equiv)))
      :rule-classes :congruence)