• 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-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
        • 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
    • 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)))