• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • Std/util
        • Defprojection
        • Deflist
        • Defaggregate
        • Define
        • Defmapping
          • Defsurj
          • Defiso
          • Defmapping-implementation
          • Definj
            • Definj-implementation
              • Definj-lookup
                • Definj-macro-definition
          • Defenum
          • Add-io-pairs
          • Defalist
          • Defmapappend
          • Returns-specifiers
          • Defarbrec
          • Defines
          • Define-sk
          • 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
          • Defdata
          • Defrstobj
          • Seq
          • Match-tree
          • Defrstobj
          • With-supporters
          • Def-partial-measure
          • Template-subst
          • Soft
          • Defthm-domain
          • Event-macros
          • Def-universal-equiv
          • Def-saved-obligs
          • With-supporters-after
          • Definec
          • Sig
          • Outer-local
          • Data-structures
        • 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)))