• 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
          • Syntax-for-tools
          • Atc
          • Language
          • Representation
          • Transformation-tools
            • Simpadd0
            • Deftrans
            • Splitgso
            • Constant-propagation
            • Split-fn
            • Copy-fn
            • Specialize
            • Split-all-gso
            • Rename
            • Utilities
              • Free-vars
              • Call-graphs
                • Qualified-ident
                  • Qualified-ident-fix
                  • Qualified-ident-equiv
                  • Qualified-identp
                    • Make-qualified-ident
                    • Qualified-ident->filepath?
                    • Qualified-ident->ident
                    • Change-qualified-ident
                    • Internal-ident
                    • External-ident
                    • Qualified-ident-internalp
                    • Qualified-ident-externalp
                  • Call-graph-transitive-closure
                  • Qualified-ident-option
                  • Call-graph-transitive-closure0
                  • Call-graph-initdeclor-list
                  • Call-graph-fundef
                  • Call-graph-statassert
                  • Call-graph-initdeclor
                  • Call-graph-decl
                  • Call-graph-const-expr
                  • Call-graph-transunit
                  • Call-graph-extdecl-list
                  • Call-graph-extdecl
                  • Call-graph-update
                  • Qualify-ident
                  • Exists-call-pathp
                  • Call-graph-filepath-transunit-map
                  • Uncertain-call-pathp
                  • Recursivep
                  • Direct-recursivep
                  • Call-graph-transunit-ensemble
                  • Call-graph
                  • Qualified-ident-option-set
                  • Direct-fun-refp
                • Fresh-ident-utility
                • Collect-idents
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Qualified-ident

    Qualified-identp

    Recognizer for qualified-ident structures.

    Signature
    (qualified-identp x) → *

    Definitions and Theorems

    Function: qualified-identp

    (defun qualified-identp (x)
      (declare (xargs :guard t))
      (let ((__function__ 'qualified-identp))
        (declare (ignorable __function__))
        (and (mbe :logic (and (alistp x)
                              (equal (strip-cars x)
                                     '(filepath? ident)))
                  :exec (fty::alist-with-carsp x '(filepath? ident)))
             (b* ((filepath? (cdr (std::da-nth 0 x)))
                  (ident (cdr (std::da-nth 1 x))))
               (and (c$::filepath-optionp filepath?)
                    (identp ident))))))

    Theorem: consp-when-qualified-identp

    (defthm consp-when-qualified-identp
      (implies (qualified-identp x) (consp x))
      :rule-classes :compound-recognizer)