• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
        • Deftreeops
          • Deftreeops-implementation
            • Deftreeops-event-generation
              • Deftreeops-gen-rep-events
              • Deftreeops-gen-conc-events
              • Deftreeops-gen-rulename-events
              • Deftreeops-gen-rulename-alist-events
              • Deftreeops-gen-discriminant-terms
              • Deftreeops-gen-conc-list-events
              • Deftreeops-gen-rep-list-events
              • Deftreeops-gen-numrange-events
              • Deftreeops-gen-conc-info-list
              • Deftreeops-gen-rep-info
              • Deftreeops-gen-cst-list-list-conc-match
              • Deftreeops-gen-cst-list-list-alt-match
              • Deftreeops-gen-conc-info
              • Deftreeops-gen-all-rulename-infos+events
              • Deftreeops-gen-cst-list-rep-match
              • Deftreeops-gen-cst-list-elem-match
              • Deftreeops-gen-rulename-info-alist
              • Deftreeops-gen-cst-match
              • Deftreeops-gen-charval-events
              • Deftreeops-gen-numrange-alist-events
              • Deftreeops-gen-all-numrange-infos+events
              • Deftreeops-gen-all-charval-infos+events
              • Deftreeops-gen-everything
              • Deftreeops-gen-charval-alist-events
              • Deftreeops-gen-charval-info-alist
              • Deftreeops-gen-rulename-info
              • Deftreeops-gen-rep-info-list
              • Deftreeops-gen-numrange-info-alist
              • Deftreeops-gen-matchers
                • Deftreeops-gen-numrange-info
                • Deftreeops-gen-charval-info
                • Deftreeops-elem-match-pred
                • Deftreeops-conc-match-pred
                • Deftreeops-alt-match-pred
                • Deftreeops-rep-match-pred
                • Deftreeops-match-pred
              • Deftreeops-info
              • Deftreeops-process-inputs-and-gen-everything
              • Deftreeops-fn
              • Deftreeops-table
              • Deftreeops-input-processing
              • Deftreeops-macro-definition
            • Deftreeops-show-event
            • Deftreeops-show-info
          • Defdefparse
          • Defgrammar
          • Tree-utilities
          • Notation
          • Grammar-parser
          • Meta-circular-validation
          • Parsing-primitives-defresult
          • Parsing-primitives-seq
          • Operations
          • Examples
          • Differences-with-paper
          • Constructor-utilities
          • Grammar-printer
          • Parsing-tools
        • 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
        • 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
    • Deftreeops-event-generation

    Deftreeops-gen-matchers

    Generate the specialized matching predicates.

    Signature
    (deftreeops-gen-matchers grammar prefix print) 
      → 
    (mv events event-alist)
    Arguments
    grammar — Guard (common-lisp::symbolp grammar).
    prefix — Guard (common-lisp::symbolp prefix).
    print — Guard (evmac-input-print-p print).
    Returns
    events — Type (pseudo-event-form-listp events).
    event-alist — Type (symbol-pseudoeventform-alistp event-alist).

    Definitions and Theorems

    Function: deftreeops-gen-matchers

    (defun deftreeops-gen-matchers (grammar prefix print)
     (declare (xargs :guard (and (common-lisp::symbolp grammar)
                                 (common-lisp::symbolp prefix)
                                 (evmac-input-print-p print))))
     (let ((__function__ 'deftreeops-gen-matchers))
      (declare (ignorable __function__))
      (b*
       (((mv cst-match-events cst-match-event-alist)
         (deftreeops-gen-cst-match grammar prefix print))
        ((mv cst-list-elem-match-events
             cst-list-elem-match-event-alist)
         (deftreeops-gen-cst-list-elem-match grammar prefix print))
        ((mv cst-list-rep-match-events
             cst-list-rep-match-event-alist)
         (deftreeops-gen-cst-list-rep-match grammar prefix print))
        ((mv cst-list-list-conc-match-events
             cst-list-list-conc-match-event-alist)
         (deftreeops-gen-cst-list-list-conc-match grammar prefix print))
        ((mv cst-list-list-alt-match-events
             cst-list-list-alt-match-event-alist)
         (deftreeops-gen-cst-list-list-alt-match grammar prefix print)))
       (mv (append cst-match-events
                   cst-list-elem-match-events
                   cst-list-rep-match-events
                   cst-list-list-conc-match-events
                   cst-list-list-alt-match-events)
           (append cst-match-event-alist
                   cst-list-elem-match-event-alist
                   cst-list-rep-match-event-alist
                   cst-list-list-conc-match-event-alist
                   cst-list-list-alt-match-event-alist)))))

    Theorem: pseudo-event-form-listp-of-deftreeops-gen-matchers.events

    (defthm pseudo-event-form-listp-of-deftreeops-gen-matchers.events
      (b* (((mv ?events ?event-alist)
            (deftreeops-gen-matchers grammar prefix print)))
        (pseudo-event-form-listp events))
      :rule-classes :rewrite)

    Theorem: symbol-pseudoeventform-alistp-of-deftreeops-gen-matchers.event-alist

    (defthm
     symbol-pseudoeventform-alistp-of-deftreeops-gen-matchers.event-alist
     (b* (((mv ?events ?event-alist)
           (deftreeops-gen-matchers grammar prefix print)))
       (symbol-pseudoeventform-alistp event-alist))
     :rule-classes :rewrite)