• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
          • Simplify-defun
          • Isodata
          • 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
          • Error-checking
          • Fty-extensions
          • Isar
          • Kestrel-utilities
          • Set
          • Soft
          • C
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • 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))