• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
          • R1cs
          • Interfaces
          • Sha-2
          • Keccak
          • Kdf
          • Mimc
          • Padding
          • Hmac
          • Elliptic-curves
            • Secp256k1-attachment
            • Twisted-edwards
            • Montgomery
            • Short-weierstrass-curves
              • Short-weierstrass
                • Short-weierstrass-fix
                • Short-weierstrass-equiv
                • Make-short-weierstrass
                • Curve-scalar-*
                • Short-weierstrass->p
                • Short-weierstrass->b
                • Short-weierstrass->a
                • Curve-group-+
                • Change-short-weierstrass
                  • Short-weierstrass-p
                  • Point-on-weierstrass-elliptic-curve-p
                  • Curve-negate
                  • Weierstrass-elliptic-curve-p
                • Short-weierstrass-primep
              • Birational-montgomery-twisted-edwards
              • Has-square-root?-satisfies-pfield-squarep
              • Secp256k1
              • Secp256k1-domain-parameters
              • Secp256k1-types
              • Pfield-squarep
              • Secp256k1-interface
              • Prime-field-extra-rules
              • Points
            • Attachments
            • Elliptic-curve-digital-signature-algorithm
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Short-weierstrass

    Change-short-weierstrass

    Modifying constructor for short-weierstrass structures.

    Syntax
    (change-short-weierstrass x 
                              [:p <p>] 
                              [:a <a>] 
                              [:b <b>]) 
    

    This is an often useful alternative to make-short-weierstrass.

    We construct a new short-weierstrass structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

    Definition

    This is an ordinary change- macro introduced by fty::defprod.

    Macro: change-short-weierstrass

    (defmacro change-short-weierstrass (x &rest args)
      (std::change-aggregate 'short-weierstrass
                             x args
                             '((:p . short-weierstrass->p)
                               (:a . short-weierstrass->a)
                               (:b . short-weierstrass->b))
                             'change-short-weierstrass
                             'nil))