• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • 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
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Fresh-ident-utility

    Make-numbered-string

    Signature
    (make-numbered-string base number-prefix number number-suffix) 
      → 
    string
    Arguments
    base — Guard (stringp base).
    number-prefix — Guard (stringp number-prefix).
    number — Guard (natp number).
    number-suffix — Guard (stringp number-suffix).
    Returns
    string — Type (stringp string).

    Definitions and Theorems

    Function: make-numbered-string

    (defun make-numbered-string
           (base number-prefix number number-suffix)
      (declare (xargs :guard (and (stringp base)
                                  (stringp number-prefix)
                                  (natp number)
                                  (stringp number-suffix))))
      (let ((__function__ 'make-numbered-string))
        (declare (ignorable __function__))
        (concatenate
             'string
             base number-prefix
             (acl2::implode (explode-nonnegative-integer number 10 nil))
             number-suffix)))

    Theorem: stringp-of-make-numbered-string

    (defthm stringp-of-make-numbered-string
      (b*
       ((string
             (make-numbered-string base
                                   number-prefix number number-suffix)))
       (stringp string))
      :rule-classes :rewrite)