• 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
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
        • R1cs
        • Interfaces
        • Sha-2
        • Keccak
        • Kdf
        • Mimc
        • Padding
        • Hmac
        • Elliptic-curves
          • Secp256k1-attachment
          • Twisted-edwards
          • Montgomery
          • Short-weierstrass-curves
          • Birational-montgomery-twisted-edwards
          • Has-square-root?-satisfies-pfield-squarep
          • Secp256k1
            • Secp256k1*
            • Secp256k1-negate
              • Secp256k1-sqrt
              • Secp256k1+
              • Secp256k1-has-square-root?
              • Secp256k1-point-type-conversions
              • Secp256k1-generator
            • Secp256k1-domain-parameters
            • Secp256k1-types
            • Pfield-squarep
            • Secp256k1-interface
            • Prime-field-extra-rules
            • Points
          • Attachments
          • Elliptic-curve-digital-signature-algorithm
        • 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
    • Secp256k1

    Secp256k1-negate

    Negate an elliptic curve point.

    (secp256k1-negate point) finds the inverse of point with respect to the secp256k1 elliptic curve group operation.

    The result is a point on the elliptic curve.

    Definitions and Theorems

    Function: secp256k1-negate

    (defun secp256k1-negate (point)
     (declare
      (xargs
           :guard (and (pointp point)
                       (point-in-pxp-p point (secp256k1-field-prime)))))
     (curve-negate point (secp256k1-field-prime)))

    Theorem: pointp-of-secp256k1-negate

    (defthm pointp-of-secp256k1-negate
      (implies (pointp point)
               (pointp (secp256k1-negate point))))

    Theorem: point-in-pxp-p-of-secp256k1-negate

    (defthm point-in-pxp-p-of-secp256k1-negate
      (implies (and (pointp point)
                    (point-in-pxp-p point (secp256k1-field-prime)))
               (point-in-pxp-p (secp256k1-negate point)
                               (secp256k1-field-prime))))

    Theorem: point-on-weierstrass-elliptic-curve-p-of-secp256k1-negate

    (defthm point-on-weierstrass-elliptic-curve-p-of-secp256k1-negate
     (implies
         (and (pointp point)
              (point-in-pxp-p point (secp256k1-field-prime))
              (point-on-weierstrass-elliptic-curve-p
                   point (secp256k1-field-prime)
                   (secp256k1-a)
                   (secp256k1-b)))
         (point-on-weierstrass-elliptic-curve-p (secp256k1-negate point)
                                                (secp256k1-field-prime)
                                                (secp256k1-a)
                                                (secp256k1-b))))