• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
        • Deftreeops
          • Deftreeops-implementation
            • Deftreeops-event-generation
            • Deftreeops-info
            • Deftreeops-process-inputs-and-gen-everything
            • Deftreeops-fn
            • Deftreeops-table
              • Deftreeops-table-value
              • Deftreeops-table-value-option
              • Deftreeops-table-lookup
                • Deftreeops-table-add
                • Deftreeops-table-definition
              • 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-table

    Deftreeops-table-lookup

    Look up a deftreeops in the table.

    Signature
    (deftreeops-table-lookup grammar wrld) → info?
    Arguments
    grammar — Guard (common-lisp::symbolp grammar).
    wrld — Guard (plist-worldp wrld).
    Returns
    info? — Type (deftreeops-table-value-optionp info?).

    Definitions and Theorems

    Function: deftreeops-table-lookup

    (defun deftreeops-table-lookup (grammar wrld)
      (declare (xargs :guard (and (common-lisp::symbolp grammar)
                                  (plist-worldp wrld))))
      (let ((__function__ 'deftreeops-table-lookup))
        (declare (ignorable __function__))
        (b* ((info? (cdr (assoc-eq grammar
                                   (table-alist+ 'deftreeops-table
                                                 wrld)))))
          (and (deftreeops-table-valuep info?)
               info?))))

    Theorem: deftreeops-table-value-optionp-of-deftreeops-table-lookup

    (defthm deftreeops-table-value-optionp-of-deftreeops-table-lookup
      (b* ((info? (deftreeops-table-lookup grammar wrld)))
        (deftreeops-table-value-optionp info?))
      :rule-classes :rewrite)