• 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
            • Split-fn
            • Split-fn-when
            • Split-all-gso
            • Copy-fn
            • Variables-in-computation-states
            • Rename
            • Utilities
              • Free-vars
              • Abstract-syntax-rename-fn
              • Call-graphs
              • Fresh-ident-utility
                • Fresh-numbered-string-wrt
                • Fresh-numbered-string-wrt0
                • Fresh-idents
                • Fresh-string-wrt
                • Fresh-ident
                • Transunit-ensemble-fresh-ident
                • Make-numbered-string
                • Map-ident->unwrap
                • Collect-idents
                • Subst-free
              • 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
    • 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)))
      (b* ((idents (ident-set-fix idents))
           ((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)

    Theorem: map-ident->unwrap-of-ident-set-fix-idents

    (defthm map-ident->unwrap-of-ident-set-fix-idents
      (equal (map-ident->unwrap (ident-set-fix idents))
             (map-ident->unwrap idents)))

    Theorem: map-ident->unwrap-ident-set-equiv-congruence-on-idents

    (defthm map-ident->unwrap-ident-set-equiv-congruence-on-idents
      (implies (c$::ident-set-equiv idents idents-equiv)
               (equal (map-ident->unwrap idents)
                      (map-ident->unwrap idents-equiv)))
      :rule-classes :congruence)