• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
        • Deftreeops
          • Deftreeops-implementation
          • 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

    Deftreeops-show-info

    Show the information from the deftreeops table associated to a given grammar constant name.

    If there is no information in the table for the given grammar constant name, we print a message saying so.

    Macro: deftreeops-show-info

    (defmacro deftreeops-show-info (grammar)
      (declare (xargs :guard (common-lisp::symbolp grammar)))
      (cons 'make-event-terse
            (cons (cons 'deftreeops-show-info-fn
                        (cons (cons 'quote (cons grammar 'nil))
                              '((w state))))
                  'nil)))

    Definitions and Theorems

    Function: deftreeops-show-info-fn

    (defun deftreeops-show-info-fn (grammar wrld)
      (declare (xargs :guard (and (common-lisp::symbolp grammar)
                                  (plist-worldp wrld))))
      (let ((__function__ 'deftreeops-show-info-fn))
        (declare (ignorable __function__))
        (b* ((info (deftreeops-table-lookup grammar wrld))
             ((unless info)
              (cw "~%No entry in DEFTREEOPS table for grammar ~x0.~%"
                  grammar)
              '(value-triple :invisible))
             (- (cw "~%~x0.~%" info)))
          '(value-triple :invisible))))

    Theorem: pseudo-event-formp-of-deftreeops-show-info-fn

    (defthm pseudo-event-formp-of-deftreeops-show-info-fn
      (b* ((event (deftreeops-show-info-fn grammar wrld)))
        (pseudo-event-formp event))
      :rule-classes :rewrite)