• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • 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
            • Birational-montgomery-twisted-edwards
            • Has-square-root?-satisfies-pfield-squarep
            • Secp256k1
            • Secp256k1-domain-parameters
            • Secp256k1-types
              • Secp256k1-priv-key
              • Secp256k1-pub-key
              • Secp256k1-field
              • Secp256k1-point
                • Secp256k1-point-fix
                • Secp256k1-point-equiv
                • Make-secp256k1-point
                • Secp256k1-point->y
                  • Secp256k1-point->x
                  • Change-secp256k1-point
                  • Secp256k1-pointp
                • Secp256k1-point-to-bytes
                • Secp256k1-point-infinityp
                • Secp256k1-point-generator
              • 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
    • Secp256k1-point

    Secp256k1-point->y

    Get the y field from a secp256k1-point.

    Signature
    (secp256k1-point->y p) → y
    Arguments
    p — Guard (secp256k1-pointp p).
    Returns
    y — Type (secp256k1-fieldp y).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: secp256k1-point->y$inline

    (defun secp256k1-point->y$inline (p)
      (declare (xargs :guard (secp256k1-pointp p)))
      (declare (xargs :guard t))
      (let ((acl2::__function__ 'secp256k1-point->y))
        (declare (ignorable acl2::__function__))
        (mbe :logic
             (b* ((p (and t p)))
               (secp256k1-field-fix (std::da-nth 1 p)))
             :exec (std::da-nth 1 p))))

    Theorem: secp256k1-fieldp-of-secp256k1-point->y

    (defthm secp256k1-fieldp-of-secp256k1-point->y
      (b* ((y (secp256k1-point->y$inline p)))
        (secp256k1-fieldp y))
      :rule-classes :rewrite)

    Theorem: secp256k1-point->y$inline-of-secp256k1-point-fix-p

    (defthm secp256k1-point->y$inline-of-secp256k1-point-fix-p
      (equal (secp256k1-point->y$inline (secp256k1-point-fix p))
             (secp256k1-point->y$inline p)))

    Theorem: secp256k1-point->y$inline-secp256k1-point-equiv-congruence-on-p

    (defthm
        secp256k1-point->y$inline-secp256k1-point-equiv-congruence-on-p
      (implies (secp256k1-point-equiv p p-equiv)
               (equal (secp256k1-point->y$inline p)
                      (secp256k1-point->y$inline p-equiv)))
      :rule-classes :congruence)