• 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
          • Defisar
            • Defisar-implementation
              • Keyword-fact-info-alistp
              • Defisar-assume
              • Defisar-derive
              • Defisar-commands
              • Fact-infop
                • Make-fact-info
                • Fact-info
                • Change-fact-info
                  • Make-honsed-fact-info
                  • Honsed-fact-info
                  • Fact-info->thm-name
                  • Fact-info->formula
                • Defisar-qed
                • Defisar-let
                • Defisar-derive-thm-hyps
                • Defisar-proof
                • Defisar-fn
                • Fact-info-listp
                • Fact-info-list->thm-name-list
                • Defisar-formula-to-hyps+concl
                • Defisar-macro-definition-synonym
                • Defisar-macro-definition
          • 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
    • Fact-infop

    Change-fact-info

    A copying macro that lets you create new fact-infop structures, based on existing structures.

    Syntax:

    (change-fact-info x 
                      [:thm-name <thm-name>] 
                      [:formula <formula>]) 
    

    This is a sometimes useful alternative to make-fact-info. It constructs a new fact-infop 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-fact-info

    (defmacro change-fact-info (x &rest args)
      (std::change-aggregate 'fact-info
                             x args
                             '((:thm-name . fact-info->thm-name)
                               (:formula . fact-info->formula))
                             'change-fact-info
                             'nil))