• 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
          • Atc-implementation
            • Atc-abstract-syntax
            • Atc-pretty-printer
              • Pprint-expressions
              • Pprint-expr
              • Expr-grade
              • Pprint-obj-declor
              • Expr-grade-<=
              • Binop-expected-grades
              • Pprint-obj-declon
              • Expr->grade
              • Pprint-tyspecseq
              • Pprint-tag-declon
              • Pprint-struct-declon-list
              • Pprint-fun-declor
              • Pprint-file
              • Pprint-stmt
              • Pprint-struct-declon
              • Pprint-obj-adeclor
              • Pprint-initer
              • Pprint-fun-declon
              • Pprint-indent
              • Pprint-hex-const
              • Pprint-fileset
              • Pprint-dec-const
              • Pprinted-lines-to-file
              • Pprint-tyname
              • Pprint-param-declon-list
              • Pprint-oct-const
              • Pprint-iconst-length
              • Pprint-iconst
              • Pprint-const
              • Expr-grade-index
              • Pprint-param-declon
              • Pprint-label
              • Pprint-ident-list
              • Pprint-binop
              • Pprint-fundef
              • Pprint-file-to-filesystem
              • Pprint-ext-declon-list
              • Pprint-unop
              • Pprint-line
              • Pprint-ident
              • Pprint-ext-declon
              • Pprint-comma-sep
                • Pprint-transunit
                • Pprint-one-line
                • Pprinted-lines-to-channel
                • Pprint-one-line-blank
                • Pprint-line-blank
              • Atc-event-and-code-generation
              • Fty-pseudo-term-utilities
              • Atc-term-recognizers
              • Atc-input-processing
              • Atc-shallow-embedding
              • Atc-process-inputs-and-gen-everything
              • Atc-table
              • Atc-fn
              • Atc-pretty-printing-options
              • Atc-types
              • Atc-macro-definition
            • Atc-tutorial
          • Language
          • Representation
          • Transformation-tools
          • 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
    • Atc-pretty-printer

    Pprint-comma-sep

    Turn zero or more parts into a single part containing the zero or more parts, comma-separated.

    Signature
    (pprint-comma-sep parts) → part
    Arguments
    parts — Guard (msg-listp parts).
    Returns
    part — Type (msgp part), given (msg-listp parts).

    Definitions and Theorems

    Function: pprint-comma-sep

    (defun pprint-comma-sep (parts)
      (declare (xargs :guard (msg-listp parts)))
      (let ((__function__ 'pprint-comma-sep))
        (declare (ignorable __function__))
        (cond ((endp parts) "")
              ((endp (cdr parts)) (car parts))
              (t (msg "~@0, ~@1" (car parts)
                      (pprint-comma-sep (cdr parts)))))))

    Theorem: msgp-of-pprint-comma-sep

    (defthm msgp-of-pprint-comma-sep
      (implies (msg-listp parts)
               (b* ((part (pprint-comma-sep parts)))
                 (msgp part)))
      :rule-classes :rewrite)