• 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
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • Json
          • Parser-output-to-values
          • Values
          • Syntax
            • Grammar
              • Cst-value-conc?
              • *all-grammar-rules*
              • Cst-list-list-conc-matchp$
              • Cst-list-list-alt-matchp$
              • Cst-list-rep-matchp$
              • Cst-list-elem-matchp$
              • Cst-matchp$
                • Cst-quotation-mark-conc-rep-elem
                • Cst-decimal-point-conc-rep-elem
                • Cst-value-separator-conc
                • Cst-value-conc7-rep-elem
                • Cst-value-conc6-rep-elem
                • Cst-value-conc5-rep-elem
                • Cst-value-conc4-rep-elem
                • Cst-value-conc3-rep-elem
                • Cst-value-conc2-rep-elem
                • Cst-value-conc1-rep-elem
                • Cst-quotation-mark-conc-rep
                • Cst-quotation-mark-conc
                • Cst-name-separator-conc
                • Cst-digit1-9-conc-rep-elem
                • Cst-decimal-point-conc-rep
                • Cst-decimal-point-conc
                • Cst-zero-conc-rep-elem
                • Cst-value-conc7-rep
                • Cst-value-conc7
                • Cst-value-conc6-rep
                • Cst-value-conc6
                • Cst-value-conc5-rep
                • Cst-value-conc5
                • Cst-value-conc4-rep
                • Cst-value-conc4
                • Cst-value-conc3-rep
                • Cst-value-conc3
                • Cst-value-conc2-rep
                • Cst-value-conc2
                • Cst-value-conc1-rep
                • Cst-value-conc1
                • Cst-true-conc-rep-elem
                • Cst-string-conc
                • Cst-plus-conc-rep-elem
                • Cst-null-conc-rep-elem
                • Cst-minus-conc-rep-elem
                • Cst-member-conc
                • Cst-json-text-conc
                • Cst-false-conc-rep-elem
                • Cst-escape-conc-rep-elem
                • Cst-escape-conc-rep
                • Cst-end-object-conc
                • Cst-end-array-conc
                • Cst-digit1-9-conc-rep
                • Cst-digit1-9-conc
                • Cst-digit-conc-rep-elem
                • Cst-begin-object-conc
                • Cst-begin-array-conc
                • *grammar-rules*
                • Cst-zero-conc-rep
                • Cst-zero-conc
                • Cst-ws-conc
                • Cst-true-conc-rep
                • Cst-true-conc
                • Cst-plus-conc-rep
                • Cst-plus-conc
                • Cst-object-conc
                • Cst-number-conc
                • Cst-null-conc-rep
                • Cst-null-conc
                • Cst-minus-conc-rep
                • Cst-minus-conc
                • Cst-frac-conc
                • Cst-false-conc-rep
                • Cst-false-conc
                • Cst-exp-conc
                • Cst-escape-conc
                • Cst-digit-conc-rep
                • Cst-digit-conc
                • Cst-array-conc
                • Cst-%x5d-10ffff-nat
                • Cst-%x31-39-nat
                • Cst-%x30-39-nat
                • Cst-%x23-5b-nat
                • Cst-%x20-21-nat
            • Patbind-pattern
            • Operations
          • 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
    • Grammar

    Cst-matchp$

    Signature
    (cst-matchp$ abnf::tree abnf::elem) → abnf::yes/no
    Arguments
    abnf::tree — Guard (abnf::treep abnf::tree).
    abnf::elem — Guard (abnf::elementp abnf::elem).
    Returns
    abnf::yes/no — Type (booleanp abnf::yes/no).

    Definitions and Theorems

    Function: cst-matchp$

    (defun cst-matchp$ (abnf::tree abnf::elem)
     (declare (xargs :guard (and (abnf::treep abnf::tree)
                                 (abnf::elementp abnf::elem))))
     (let ((__function__ 'cst-matchp$))
      (declare (ignorable __function__))
      (and
          (abnf::tree-terminatedp abnf::tree)
          (abnf::tree-match-element-p abnf::tree
                                      abnf::elem *all-grammar-rules*))))

    Theorem: booleanp-of-cst-matchp$

    (defthm booleanp-of-cst-matchp$
      (b* ((abnf::yes/no (cst-matchp$ abnf::tree abnf::elem)))
        (booleanp abnf::yes/no))
      :rule-classes :rewrite)

    Theorem: cst-matchp$-of-tree-fix-tree

    (defthm cst-matchp$-of-tree-fix-tree
      (equal (cst-matchp$ (abnf::tree-fix abnf::tree)
                          abnf::elem)
             (cst-matchp$ abnf::tree abnf::elem)))

    Theorem: cst-matchp$-tree-equiv-congruence-on-tree

    (defthm cst-matchp$-tree-equiv-congruence-on-tree
      (implies (abnf::tree-equiv abnf::tree tree-equiv)
               (equal (cst-matchp$ abnf::tree abnf::elem)
                      (cst-matchp$ tree-equiv abnf::elem)))
      :rule-classes :congruence)

    Theorem: cst-matchp$-of-element-fix-elem

    (defthm cst-matchp$-of-element-fix-elem
      (equal (cst-matchp$ abnf::tree
                          (abnf::element-fix abnf::elem))
             (cst-matchp$ abnf::tree abnf::elem)))

    Theorem: cst-matchp$-element-equiv-congruence-on-elem

    (defthm cst-matchp$-element-equiv-congruence-on-elem
      (implies (abnf::element-equiv abnf::elem elem-equiv)
               (equal (cst-matchp$ abnf::tree abnf::elem)
                      (cst-matchp$ abnf::tree elem-equiv)))
      :rule-classes :congruence)