• 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
          • Defarbrec-implementation
            • Defarbrec-event-generation
            • Defarbrec-input-processing
            • Defarbrec-check-redundancy
            • Defarbrec-fn
              • Defarbrec-table
              • Defarbrec-macro-definition
          • 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
          • 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
    • Defarbrec-implementation

    Defarbrec-fn

    Check redundancy, process the inputs, and generate the event to submit.

    Signature
    (defarbrec-fn fn x1...xn 
                  body update-names terminates-name 
                  measure-name nonterminating 
                  print show-only call ctx state) 
     
      → 
    (mv erp event state)
    Arguments
    call — Guard (pseudo-event-formp call).
    Returns
    event — A pseudo-event-formp.

    Definitions and Theorems

    Function: defarbrec-fn

    (defun defarbrec-fn (fn x1...xn
                            body update-names terminates-name
                            measure-name nonterminating
                            print show-only call ctx state)
     (declare (xargs :stobjs (state)))
     (declare (xargs :guard (pseudo-event-formp call)))
     (let ((__function__ 'defarbrec-fn))
      (declare (ignorable __function__))
      (b*
       (((er redundant?)
         (defarbrec-check-redundancy fn print show-only call ctx state))
        ((when redundant?)
         (value '(value-triple :invisible)))
        ((er (list body$ test updates update-names$
                   terminates-name$ teminates-witness-name$
                   terminates-rewrite-name$
                   measure-name$ nonterminating$))
         (defarbrec-process-inputs fn x1...xn
                                   body update-names terminates-name
                                   measure-name nonterminating
                                   print show-only ctx state))
        (event (defarbrec-gen-everything
                    fn
                    x1...xn body$ test updates update-names$
                    terminates-name$ teminates-witness-name$
                    terminates-rewrite-name$
                    measure-name$ nonterminating$
                    print show-only call (w state))))
       (value event))))