• 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
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
        • Transformations
        • Language
          • Abstract-syntax
          • Dynamic-semantics
          • Concrete-syntax
            • Lexer
            • Parser
            • Grammar-old
            • Grammar
              • Cst-literal-conc?
              • Cst-token-conc?
              • Cst-expression-conc?
              • Cst-list-list-conc-matchp$
              • Cst-lexeme-conc?
              • Cst-list-list-alt-matchp$
              • Cst-identifier-rest-conc?
              • Cst-list-rep-matchp$
              • Cst-list-elem-matchp$
              • Cst-comment-conc?
              • Abnf-tree-wrap-fn
              • Abnf-tree-with-root-p
              • Cst-nonzero-decimal-digit-conc-rep-elem
              • Cst-matchp$
              • Abnf-tree-wrap
              • Cst-nonzero-decimal-digit-conc-rep
              • Cst-identifier-rest-conc2-rep-elem
              • Cst-identifier-rest-conc2-rep
              • Cst-identifier-rest-conc1-rep-elem
              • Cst-identifier-rest-conc1-rep
              • Cst-expression-conc3-rep-elem
              • Cst-expression-conc2-rep-elem
              • Cst-uppercase-letter-conc-rep-elem
              • Cst-uppercase-letter-conc-rep
              • Cst-switch-statement-conc
              • Cst-nonzero-decimal-digit-conc
              • Cst-lowercase-letter-conc-rep-elem
              • Cst-lowercase-letter-conc-rep
              • Cst-literal-conc5-rep-elem
              • Cst-literal-conc4-rep-elem
              • Cst-literal-conc3-rep-elem
              • Cst-literal-conc2-rep-elem
              • Cst-literal-conc1-rep-elem
              • Cst-lexeme-conc3-rep-elem
              • Cst-lexeme-conc2-rep-elem
              • Cst-lexeme-conc1-rep-elem
              • Cst-identifier-rest-conc2
              • Cst-identifier-rest-conc1
              • Cst-function-definition-conc
              • Cst-expression-conc3-rep
              • Cst-expression-conc2-rep
              • Cst-expression-conc1-rep-elem
              • Cst-expression-conc1-rep
              • Cst-end-of-line-comment-conc
              • Cst-decimal-digit-conc-rep-elem
              • Cst-comment-conc2-rep-elem
              • Cst-comment-conc1-rep-elem
              • Cst-uppercase-letter-conc
              • Cst-token-conc4-rep-elem
              • Cst-token-conc3-rep-elem
              • Cst-token-conc2-rep-elem
              • Cst-token-conc1-rep-elem
              • Cst-lowercase-letter-conc
              • Cst-literal-conc5-rep
              • Cst-literal-conc5
              • Cst-literal-conc4-rep
              • Cst-literal-conc4
              • Cst-literal-conc3-rep
              • Cst-literal-conc3
              • Cst-literal-conc2-rep
              • Cst-literal-conc2
              • Cst-literal-conc1-rep
              • Cst-literal-conc1
              • Cst-lexeme-conc3-rep
              • Cst-lexeme-conc2-rep
              • Cst-lexeme-conc1-rep
              • Cst-if-statement-conc
              • Cst-function-call-conc
              • Cst-for-statement-conc
              • Cst-expression-conc3
              • Cst-expression-conc2
              • Cst-expression-conc1
              • Cst-escape-sequence-conc
              • Cst-decimal-digit-conc-rep
              • Cst-decimal-digit-conc
              • Cst-comment-conc2-rep
              • Cst-comment-conc2
              • Cst-comment-conc1-rep
              • Cst-comment-conc1
              • Cst-block-comment-conc
              • Cst-whitespace-conc
              • Cst-token-conc4-rep
              • Cst-token-conc4
              • Cst-token-conc3-rep
              • Cst-token-conc3
              • Cst-token-conc2-rep
              • Cst-token-conc2
              • Cst-token-conc1-rep
              • Cst-token-conc1
              • Cst-squote-conc-rep-elem
              • Cst-squote-conc-rep
              • Cst-lexeme-conc3
              • Cst-lexeme-conc2
                • Cst-lexeme-conc1
                • Cst-identifier-conc
                • Cst-hex-string-conc
                • Cst-hex-number-conc
                • Cst-dquote-conc-rep-elem
                • Cst-dquote-conc-rep
                • *grammar*
                • Cst-squote-conc
                • Cst-path-conc
                • Cst-lf-conc-rep-elem
                • Cst-lf-conc-rep
                • Cst-dquote-conc
                • Cst-cr-conc-rep-elem
                • Cst-cr-conc-rep
                • Cst-block-conc
                • Abnf-tree-list-with-root-p
                • Cst-lf-conc
                • Cst-cr-conc
                • Cst-%xe-7f-nat
                • Cst-%xb-c-nat
                • Cst-%x61-7a-nat
                • Cst-%x5d-7e-nat
                • Cst-%x41-5a-nat
                • Cst-%x31-39-nat
                • Cst-%x30-7f-nat
                • Cst-%x30-39-nat
                • Cst-%x2b-7f-nat
                • Cst-%x2b-2e-nat
                • Cst-%x28-5b-nat
                • Cst-%x23-5b-nat
                • Cst-%x20-26-nat
                • Cst-%x20-21-nat
                • Cst-%x0-9-nat
                • Cst-%x0-29-nat
              • Tokenizer
            • Static-soundness
            • Static-semantics
            • Errors
          • Yul-json
        • 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
    • Grammar

    Cst-lexeme-conc2

    Signature
    (cst-lexeme-conc2 abnf::cst) → abnf::cstss
    Arguments
    abnf::cst — Guard (abnf::treep abnf::cst).
    Returns
    abnf::cstss — Type (abnf::tree-list-listp abnf::cstss).

    Definitions and Theorems

    Function: cst-lexeme-conc2

    (defun cst-lexeme-conc2 (abnf::cst)
      (declare (xargs :guard (abnf::treep abnf::cst)))
      (declare (xargs :guard (and (cst-matchp abnf::cst "lexeme")
                                  (equal (cst-lexeme-conc? abnf::cst)
                                         2))))
      (let ((__function__ 'cst-lexeme-conc2))
        (declare (ignorable __function__))
        (abnf::tree-nonleaf->branches abnf::cst)))

    Theorem: tree-list-listp-of-cst-lexeme-conc2

    (defthm tree-list-listp-of-cst-lexeme-conc2
      (b* ((abnf::cstss (cst-lexeme-conc2 abnf::cst)))
        (abnf::tree-list-listp abnf::cstss))
      :rule-classes :rewrite)

    Theorem: cst-lexeme-conc2-match

    (defthm cst-lexeme-conc2-match
      (implies (and (cst-matchp abnf::cst "lexeme")
                    (equal (cst-lexeme-conc? abnf::cst) 2))
               (b* ((abnf::cstss (cst-lexeme-conc2 abnf::cst)))
                 (cst-list-list-conc-matchp abnf::cstss "comment")))
      :rule-classes :rewrite)

    Theorem: cst-lexeme-conc2-of-tree-fix-cst

    (defthm cst-lexeme-conc2-of-tree-fix-cst
      (equal (cst-lexeme-conc2 (abnf::tree-fix abnf::cst))
             (cst-lexeme-conc2 abnf::cst)))

    Theorem: cst-lexeme-conc2-tree-equiv-congruence-on-cst

    (defthm cst-lexeme-conc2-tree-equiv-congruence-on-cst
      (implies (abnf::tree-equiv abnf::cst cst-equiv)
               (equal (cst-lexeme-conc2 abnf::cst)
                      (cst-lexeme-conc2 cst-equiv)))
      :rule-classes :congruence)