• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
          • Syntax-for-tools
          • Atc
            • Atc-implementation
              • Atc-abstract-syntax
              • Atc-pretty-printer
              • Atc-event-and-code-generation
              • Fty-pseudo-term-utilities
              • Atc-term-recognizers
              • Atc-input-processing
              • Atc-shallow-embedding
                • Defstruct
                  • Defstruct-implementation
                    • Defstruct-info
                      • Defstruct-info-fix
                      • Make-defstruct-info
                      • Defstruct-infop
                      • Defstruct-info-equiv
                      • Change-defstruct-info
                        • Defstruct-info->pointer-type-to-quoted-thm
                        • Defstruct-info->fixer-recognizer-thm
                        • Defstruct-info->type-to-quoted-thm
                        • Defstruct-info->type-of-value-thm
                        • Defstruct-info->value-kind-thm
                        • Defstruct-info->not-error-thm
                        • Defstruct-info->members
                        • Defstruct-info->flexiblep-thm
                        • Defstruct-info->valuep-thm
                        • Defstruct-info->recognizer
                        • Defstruct-info->flexiblep
                        • Defstruct-info->fixtype
                        • Defstruct-info->fixer
                        • Defstruct-info->call
                        • Defstruct-info->tag
                      • Defstruct-gen-recognizer
                      • Defstruct-gen-integer-member-ops
                      • Defstruct-gen-constructor
                      • Defstruct-gen-array-member-ops
                      • Defstruct-gen-recognizer-conjuncts
                      • Defstruct-member-info
                      • Defstruct-member-info-list->memtype-list
                      • Defstruct-process-members
                      • Defstruct-gen-fixer
                      • Defstruct-gen-member-ops
                      • Defstruct-process-inputs
                      • Defstruct-gen-fixing-term
                      • Defstruct-info-option
                      • Defstruct-gen-everything
                      • Defstruct-gen-all-member-ops
                      • Defstruct-gen-recognizer-all-conjuncts
                      • Defstruct-info->writer-element-list
                      • Defstruct-info->reader-element-list
                      • Defstruct-gen-fixtype
                      • Defstruct-info->writer-list
                      • Defstruct-info->reader-list
                      • Defstruct-fn
                      • Defstruct-table-record-event
                      • Defstruct-table-lookup
                      • Irr-defstruct-info
                      • Defstruct-info->writer-element-list-aux
                      • Defstruct-info->reader-element-list-aux
                      • Defstruct-info->writer-list-aux
                      • Defstruct-info->reader-list-aux
                      • Defstruct-member-info-list
                      • Defstruct-table-definition
                      • *defstruct-table*
                      • Defstruct-macro-implementtion
                  • Defobject
                  • Atc-let-designations
                  • Pointer-types
                  • Atc-conditional-expressions
                • Atc-process-inputs-and-gen-everything
                • Atc-table
                • Atc-fn
                • Atc-pretty-printing-options
                • Atc-types
                • Atc-macro-definition
              • Atc-tutorial
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • 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
    • Defstruct-info

    Change-defstruct-info

    Modifying constructor for defstruct-info structures.

    Syntax
    (change-defstruct-info x 
                           [:tag <tag>] 
                           [:members <members>] 
                           [:flexiblep <flexiblep>] 
                           [:fixtype <fixtype>] 
                           [:recognizer <recognizer>] 
                           [:fixer <fixer>] 
                           [:fixer-recognizer-thm <fixer-recognizer-thm>] 
                           [:not-error-thm <not-error-thm>] 
                           [:valuep-thm <valuep-thm>] 
                           [:value-kind-thm <value-kind-thm>] 
                           [:type-of-value-thm <type-of-value-thm>] 
                           [:flexiblep-thm <flexiblep-thm>] 
                           [:type-to-quoted-thm <type-to-quoted-thm>] 
                           [:pointer-type-to-quoted-thm <pointer-type-to-quoted-thm>] 
                           [:call <call>]) 
    

    This is an often useful alternative to make-defstruct-info.

    We construct a new defstruct-info 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 fty::defprod.

    Macro: change-defstruct-info

    (defmacro change-defstruct-info (x &rest args)
     (std::change-aggregate
        'defstruct-info
        x args
        '((:tag . defstruct-info->tag)
          (:members . defstruct-info->members)
          (:flexiblep . defstruct-info->flexiblep)
          (:fixtype . defstruct-info->fixtype)
          (:recognizer . defstruct-info->recognizer)
          (:fixer . defstruct-info->fixer)
          (:fixer-recognizer-thm . defstruct-info->fixer-recognizer-thm)
          (:not-error-thm . defstruct-info->not-error-thm)
          (:valuep-thm . defstruct-info->valuep-thm)
          (:value-kind-thm . defstruct-info->value-kind-thm)
          (:type-of-value-thm . defstruct-info->type-of-value-thm)
          (:flexiblep-thm . defstruct-info->flexiblep-thm)
          (:type-to-quoted-thm . defstruct-info->type-to-quoted-thm)
          (:pointer-type-to-quoted-thm
               .
               defstruct-info->pointer-type-to-quoted-thm)
          (:call . defstruct-info->call))
        'change-defstruct-info
        'nil))