• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • C
          • Syntax-for-tools
          • Atc
          • Transformation-tools
            • Simpadd0
            • Proof-generation
            • Split-gso
            • Wrap-fn
            • Constant-propagation
            • Specialize
              • Specialize-implementation
                • Param-declon-list-remove-param-by-ident
                • Specialize-fundef
                • Specialize-ext-declon
                • Specialize-filepath-transunit-map
                • Param-declon-to-declon
                • Specialize-ext-declon-list
                • Specialize-transunit-ensemble
                • Specialize-transunit
                • Specialize-code-ensemble
                • Ident-from-param-declon
                  • Specialize-event-generation
                  • Specialize-input-processing
              • Split-fn
              • Split-fn-when
              • Split-all-gso
              • Copy-fn
              • Variables-in-computation-states
              • Rename
              • Utilities
              • Proof-generation-theorems
              • Input-processing
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Specialize-implementation

    Ident-from-param-declon

    Get the identifier from a parameter declaration.

    Signature
    (ident-from-param-declon paramdecl) → ident
    Arguments
    paramdecl — Guard (param-declonp paramdecl).
    Returns
    ident — Type (ident-optionp ident).

    This may return nil when the parameter declaration is unnamed.

    Definitions and Theorems

    Function: ident-from-param-declon

    (defun ident-from-param-declon (paramdecl)
      (declare (xargs :guard (param-declonp paramdecl)))
      (b* (((param-declon paramdecl) paramdecl))
        (param-declor-case
             paramdecl.declor
             :nonabstract (declor->ident paramdecl.declor.declor)
             :otherwise nil)))

    Theorem: ident-optionp-of-ident-from-param-declon

    (defthm ident-optionp-of-ident-from-param-declon
      (b* ((ident (ident-from-param-declon paramdecl)))
        (ident-optionp ident))
      :rule-classes :rewrite)