• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
        • Isodata
        • Simplify-defun
        • Tailrec
        • Schemalg
        • Restrict
        • Expdata
          • Expdata-implementation
            • Expdata-event-generation
            • Expdata-fn
            • Expdata-input-processing
              • Expdata-symbol-surjmap-alistp
              • Expdata-surjmapp
                • Expdata-surjmap
                • Make-expdata-surjmap
                • Change-expdata-surjmap
                  • Honsed-expdata-surjmap
                  • Make-honsed-expdata-surjmap
                  • Expdata-surjmap->surjname
                  • Expdata-surjmap->oldp-guard
                  • Expdata-surjmap->oldp
                  • Expdata-surjmap->newp-guard
                  • Expdata-surjmap->newp
                  • Expdata-surjmap->localp
                  • Expdata-surjmap->hints
                  • Expdata-surjmap->forth-injective
                  • Expdata-surjmap->forth-image
                  • Expdata-surjmap->forth-guard
                  • Expdata-surjmap->forth
                  • Expdata-surjmap->back-of-forth
                  • Expdata-surjmap->back-image
                  • Expdata-surjmap->back-guard
                  • Expdata-surjmap->back
                • Expdata-pos-surjmap-alistp
                • Expdata-process-surj
                • Expdata-process-arg/res-list-surj
                • Expdata-process-inputs
                • Expdata-process-surjmaps
                • Expdata-fresh-defsurj-thm-names
                • Expdata-process-arg/res-list
                • Expdata-process-arg/res-list-surj-list
                • Expdata-process-res
                • Expdata-process-newp-of-new-name
                • Expdata-fresh-defsurj-name-with-*s-suffix
                • Expdata-process-surjmaps-ress
                • Expdata-process-surjmaps-args
                • Expdata-process-arg/res-list-surj-add-args
                • Expdata-process-arg/res-list-surj-add-ress
                • Expdata-process-old
                • Expdata-process-arg/res-list-aux
                • Expdata-surjmap-listp
                • Expdata-fresh-defsurj-name-with-*s-suffix-aux
              • Expdata-macro-definition
          • Casesplit
          • Simplify-term
          • Simplify-defun-sk
          • Parteval
          • Solve
          • Wrap-output
          • Propagate-iso
          • Simplify
          • Finite-difference
          • Drop-irrelevant-params
          • Copy-function
          • Lift-iso
          • Rename-params
          • Utilities
          • Simplify-term-programmatic
          • Simplify-defun-sk-programmatic
          • Simplify-defun-programmatic
          • Simplify-defun+
          • Common-options
          • Common-concepts
        • Std/util
        • 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
              • Isodata
              • Simplify-defun
              • Tailrec
              • Schemalg
              • Restrict
              • Expdata
                • Expdata-implementation
                  • Expdata-event-generation
                  • Expdata-fn
                  • Expdata-input-processing
                    • Expdata-symbol-surjmap-alistp
                    • Expdata-surjmapp
                      • Expdata-surjmap
                      • Make-expdata-surjmap
                      • Change-expdata-surjmap
                        • Honsed-expdata-surjmap
                        • Make-honsed-expdata-surjmap
                        • Expdata-surjmap->surjname
                        • Expdata-surjmap->oldp-guard
                        • Expdata-surjmap->oldp
                        • Expdata-surjmap->newp-guard
                        • Expdata-surjmap->newp
                        • Expdata-surjmap->localp
                        • Expdata-surjmap->hints
                        • Expdata-surjmap->forth-injective
                        • Expdata-surjmap->forth-image
                        • Expdata-surjmap->forth-guard
                        • Expdata-surjmap->forth
                        • Expdata-surjmap->back-of-forth
                        • Expdata-surjmap->back-image
                        • Expdata-surjmap->back-guard
                        • Expdata-surjmap->back
                      • Expdata-pos-surjmap-alistp
                      • Expdata-process-surj
                      • Expdata-process-arg/res-list-surj
                      • Expdata-process-inputs
                      • Expdata-process-surjmaps
                      • Expdata-fresh-defsurj-thm-names
                      • Expdata-process-arg/res-list
                      • Expdata-process-arg/res-list-surj-list
                      • Expdata-process-res
                      • Expdata-process-newp-of-new-name
                      • Expdata-fresh-defsurj-name-with-*s-suffix
                      • Expdata-process-surjmaps-ress
                      • Expdata-process-surjmaps-args
                      • Expdata-process-arg/res-list-surj-add-args
                      • Expdata-process-arg/res-list-surj-add-ress
                      • Expdata-process-old
                      • Expdata-process-arg/res-list-aux
                      • Expdata-surjmap-listp
                      • Expdata-fresh-defsurj-name-with-*s-suffix-aux
                    • Expdata-macro-definition
                • Casesplit
                • Simplify-term
                • Simplify-defun-sk
                • Parteval
                • Solve
                • Wrap-output
                • Propagate-iso
                • Simplify
                • Finite-difference
                • Drop-irrelevant-params
                • Copy-function
                • Lift-iso
                • Rename-params
                • Utilities
                • Simplify-term-programmatic
                • Simplify-defun-sk-programmatic
                • Simplify-defun-programmatic
                • Simplify-defun+
                • Common-options
                • Common-concepts
              • Std/util
              • 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
      • Expdata-surjmapp

      Change-expdata-surjmap

      A copying macro that lets you create new expdata-surjmapp structures, based on existing structures.

      Syntax:

      (change-expdata-surjmap x 
                              [:surjname <surjname>] 
                              [:localp <localp>] 
                              [:oldp <oldp>] 
                              [:newp <newp>] 
                              [:forth <forth>] 
                              [:back <back>] 
                              [:forth-image <forth-image>] 
                              [:back-image <back-image>] 
                              [:back-of-forth <back-of-forth>] 
                              [:forth-injective <forth-injective>] 
                              [:oldp-guard <oldp-guard>] 
                              [:newp-guard <newp-guard>] 
                              [:forth-guard <forth-guard>] 
                              [:back-guard <back-guard>] 
                              [:hints <hints>]) 
      

      This is a sometimes useful alternative to make-expdata-surjmap. It constructs a new expdata-surjmapp structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

      Definition

      This is an ordinary change- macro introduced by std::defaggregate.

      Macro: change-expdata-surjmap

      (defmacro change-expdata-surjmap (x &rest args)
        (std::change-aggregate
             'expdata-surjmap
             x args
             '((:surjname . expdata-surjmap->surjname)
               (:localp . expdata-surjmap->localp)
               (:oldp . expdata-surjmap->oldp)
               (:newp . expdata-surjmap->newp)
               (:forth . expdata-surjmap->forth)
               (:back . expdata-surjmap->back)
               (:forth-image . expdata-surjmap->forth-image)
               (:back-image . expdata-surjmap->back-image)
               (:back-of-forth . expdata-surjmap->back-of-forth)
               (:forth-injective . expdata-surjmap->forth-injective)
               (:oldp-guard . expdata-surjmap->oldp-guard)
               (:newp-guard . expdata-surjmap->newp-guard)
               (:forth-guard . expdata-surjmap->forth-guard)
               (:back-guard . expdata-surjmap->back-guard)
               (:hints . expdata-surjmap->hints))
             'change-expdata-surjmap
             'nil))