• 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
            • 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
              • Pointp
              • Point-in-pxp-p
              • Points-fty
                • Point-finite
                • Point
                • Point-kind
                • Point-finite->y
                • Point-finite->x
                • Point-infinite
                • Point-fix
            • 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
    • Points-fty

    Point-fix

    Fixer of elliptic curve points.

    Signature
    (point-fix x) → fixed-x
    Arguments
    x — Guard (pointp x).
    Returns
    fixed-x — Type (pointp fixed-x).

    Definitions and Theorems

    Function: point-fix

    (defun point-fix (x)
      (declare (xargs :guard (pointp x)))
      (mbe :logic (if (pointp x) x :infinity)
           :exec x))

    Theorem: pointp-of-point-fix

    (defthm pointp-of-point-fix
      (b* ((fixed-x (point-fix x)))
        (pointp fixed-x))
      :rule-classes :rewrite)

    Theorem: point-fix-when-pointp

    (defthm point-fix-when-pointp
      (implies (pointp x)
               (equal (point-fix x) x)))