• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
            • Splitgso
            • Constant-propagation
            • Split-fn
            • Specialize
            • Split-all-gso
            • Copy-fn
            • Rename
            • Utilities
              • Free-vars
              • Call-graphs
              • Fresh-ident-utility
                • Fresh-numbered-string-wrt
                • Fresh-numbered-string-wrt0
                • Transunit-ensemble-fresh-ident
                • Fresh-idents
                • Fresh-string-wrt
                • Fresh-ident
                • Make-numbered-string
                • Map-ident->unwrap
                • 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
    • Fresh-ident-utility

    Map-ident->unwrap

    Signature
    (map-ident->unwrap idents) → strings
    Arguments
    idents — Guard (ident-setp idents).
    Returns
    strings — Type (acl2::string-setp strings).

    Definitions and Theorems

    Function: map-ident->unwrap

    (defun map-ident->unwrap (idents)
      (declare (xargs :guard (ident-setp idents)))
      (let ((__function__ 'map-ident->unwrap))
        (declare (ignorable __function__))
        (b* (((when (emptyp idents)) nil)
             (unwrapped-head (ident->unwrap (head idents))))
          (if (stringp unwrapped-head)
              (insert unwrapped-head
                      (map-ident->unwrap (tail idents)))
            (map-ident->unwrap (tail idents))))))

    Theorem: string-setp-of-map-ident->unwrap

    (defthm string-setp-of-map-ident->unwrap
      (b* ((strings (map-ident->unwrap idents)))
        (acl2::string-setp strings))
      :rule-classes :rewrite)