• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • 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
        • Zfc
        • Acre
        • Milawa
        • Smtlink
        • Abnf
        • Vwsim
        • Isar
        • Pfcs
        • Wp-gen
        • Dimacs-reader
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Riscv
        • Bitcoin
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • 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))