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

    Defirrelevant

    Define an irrelevant value of a type.

    Macro: defirrelevant

    (defmacro
     defirrelevant
     (name &key type body short)
     (cons
      'define
      (cons
       name
       (cons
        'nil
        (cons
         ':returns
         (cons
          (cons 'irr (cons type 'nil))
          (cons
           ':short
           (cons
            short
            (cons
             ':long
             (cons
              '(xdoc::topstring
                 (xdoc::p
                      "This can be used as a dummy value of the type."))
              (cons
               body
               (cons
                '///
                (cons
                 (cons
                    'in-theory
                    (cons (cons 'disable
                                (cons (cons ':e (cons name 'nil)) 'nil))
                          'nil))
                 'nil)))))))))))))