• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
      • Std/lists
      • Std/alists
      • Obags
      • Std/util
        • Defprojection
        • Deflist
        • Defaggregate
        • Define
        • Defmapping
        • Defenum
        • Add-io-pairs
        • Defalist
        • Defmapappend
        • Returns-specifiers
        • Defarbrec
        • Define-sk
        • Defines
        • Error-value-tuples
        • Defmax-nat
        • Defmin-int
        • Deftutorial
        • Extended-formals
        • Defrule
        • Defval
        • Defsurj
        • Defiso
        • Defconstrained-recognizer
        • Deffixer
        • Defmvtypes
        • Defconsts
        • Defthm-unsigned-byte-p
        • Support
        • Defthm-signed-byte-p
        • Defthm-natp
        • Defund-sk
        • Defmacro+
        • Defsum
        • Defthm-commutative
        • Definj
          • Definj-implementation
            • Definj-lookup
              • Definj-macro-definition
          • Defirrelevant
          • Defredundant
        • Std/strings
        • Std/osets
        • Std/io
        • Std/basic
        • Std/system
        • Std/typed-lists
        • Std/bitsets
        • Std/testing
        • Std/typed-alists
        • Std/stobjs
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Definj-implementation

    Definj-lookup

    Return the information for the definj specified by name, or nil if there is no definj with that name.

    Signature
    (definj-lookup name wrld) → info?
    Arguments
    name — Guard (symbolp name).
    wrld — Guard (plist-worldp wrld).
    Returns
    info? — A maybe-defmapping-infop.

    This is a wrapper of defmapping-lookup that makes sure that the \alpha conversion is an injection (and also that the left inverse \beta conversion is a surjection), i.e. that it has the :beta-of-alpha theorem. It causes an error if that is not the case.

    Definitions and Theorems

    Function: definj-lookup

    (defun definj-lookup (name wrld)
     (declare (xargs :guard (and (symbolp name)
                                 (plist-worldp wrld))))
     (let ((__function__ 'definj-lookup))
      (declare (ignorable __function__))
      (b*
       ((info (defmapping-lookup name wrld))
        ((when (not info)) nil)
        ((when (not (defmapping-info->beta-of-alpha info)))
         (raise
             "The mapping ~x0 does not have the :BETA-OF-ALPHA theorem."
             name)))
       info)))