• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • 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
          • 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
          • 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
        • Theories
        • Rule-classes
        • Proof-builder
        • Recursion-and-induction
        • Hons-and-memoization
        • Events
        • Parallelism
        • History
        • Programming
        • Operational-semantics
        • Real
        • Start-here
        • Miscellaneous
        • Output-controls
        • Bdd
        • Macros
          • Make-event
          • Defmacro
          • Untranslate-patterns
          • Tc
          • Trans*
          • Macro-aliases-table
          • Macro-args
          • Defabbrev
          • User-defined-functions-table
          • Trans
          • Untranslate-for-execution
          • Macro-libraries
            • B*
            • Defunc
            • Fty
            • Apt
            • 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
                • 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
                • 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
            • Add-macro-fn
            • Check-vars-not-free
            • Safe-mode
            • Trans1
            • Defmacro-untouchable
            • Set-duplicate-keys-action
            • Add-macro-alias
            • Magic-macroexpand
            • Defmacroq
            • Trans!
            • Remove-macro-fn
            • Remove-macro-alias
            • Add-binop
            • Untrans-table
            • Trans*-
            • Remove-binop
            • Tcp
            • Tca
          • Installation
          • Mailing-lists
        • 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))))