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

    Kinds (i.e. tags) of elliptic curve points.

    Signature
    (point-kind p) → kind
    Arguments
    p — Guard (pointp p).
    Returns
    kind — Type (keywordp kind).

    Definitions and Theorems

    Function: point-kind

    (defun point-kind (p)
      (declare (xargs :guard (pointp p)))
      (let ((acl2::__function__ 'point-kind))
        (declare (ignorable acl2::__function__))
        (mbe :logic
             (if (and (pointp p) (consp p))
                 :finite
               :infinite)
             :exec (if (consp p) :finite :infinite))))

    Theorem: keywordp-of-point-kind

    (defthm keywordp-of-point-kind
      (b* ((kind (point-kind p)))
        (keywordp kind))
      :rule-classes :rewrite)

    Theorem: point-kind-of-point-fix-p

    (defthm point-kind-of-point-fix-p
      (equal (point-kind (point-fix p))
             (point-kind p)))

    Theorem: point-kind-point-equiv-congruence-on-p

    (defthm point-kind-point-equiv-congruence-on-p
      (implies (point-equiv p p-equiv)
               (equal (point-kind p)
                      (point-kind p-equiv)))
      :rule-classes :congruence)

    Theorem: point-kind-possibilities

    (defthm point-kind-possibilities
      (or (equal (point-kind p) :finite)
          (equal (point-kind p) :infinite))
      :rule-classes
      ((:forward-chaining :trigger-terms ((point-kind p)))))