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

    Fresh-string-wrt

    Signature
    (fresh-string-wrt base number-prefix number-suffix blacklist) 
      → 
    string
    Arguments
    base — Guard (stringp base).
    number-prefix — Guard (stringp number-prefix).
    number-suffix — Guard (stringp number-suffix).
    blacklist — Guard (acl2::string-setp blacklist).
    Returns
    string — Type (stringp string).

    Definitions and Theorems

    Function: fresh-string-wrt

    (defun fresh-string-wrt (base number-prefix number-suffix blacklist)
      (declare (xargs :guard (and (stringp base)
                                  (stringp number-prefix)
                                  (stringp number-suffix)
                                  (acl2::string-setp blacklist))))
      (let ((__function__ 'fresh-string-wrt))
        (declare (ignorable __function__))
        (if (in base blacklist)
            (fresh-numbered-string-wrt
                 base
                 number-prefix 0 number-suffix blacklist)
          (mbe :logic (if (stringp base) base "")
               :exec base))))

    Theorem: stringp-of-fresh-string-wrt

    (defthm stringp-of-fresh-string-wrt
      (b*
        ((string
              (fresh-string-wrt base
                                number-prefix number-suffix blacklist)))
        (stringp string))
      :rule-classes :rewrite)