• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
          • Soft-future-work
          • Soft-macros
          • Updates-to-workshop-material
          • Soft-implementation
            • Soft-implementation-core
              • Sothm-inst-facts
              • Ext-fun-subst-term/terms/function
              • Fun-subst-function
              • Sothm-inst-pairs
              • Funvars-of-term/terms
              • Funvars-of-plain-fn
              • Sothm-inst-proof
              • Fun-subst-term/terms
              • Get-sof-instance
              • Sof-instancesp
              • Put-sof-instance
                • Fun-substp
                • Sofun-kindp
                • Funvar-listp
                • *-listp
                • Funvars-of-quantifier-fn
                • No-trivial-pairsp
                • Funvars-of-choice-fn
                • Funvar-instp
                • Funvars-of-thm
                • Sofunp
                • Funvarp
                • Sof-instances
                • Sothmp
                • Quant-sofunp
                • Plain-sofunp
                • Funvar-inst-listp
                • Choice-sofunp
                • Sofun-funvars
                • Sofun-kind
                • Function-variables-table
                • Sof-instances-table
                • Second-order-functions-table
              • Gen-macro2-of-macro
              • Defun-inst-implementation
              • Defthm-inst-implementation
              • Defsoft-implementation
              • Defunvar-implementation
              • Defund-sk2-implementation
              • Defun-sk2-implementation
              • Define-sk2-implementation
              • Defchoose2-implementation
              • Defund2-implementation
              • Defun2-implementation
              • Define2-implementation
            • Soft-notions
          • 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
    • Soft-implementation-core

    Put-sof-instance

    Associates an instantiation with an instance in an existing map of know instances of a second-order function.

    Signature
    (put-sof-instance inst fun instmap wrld) → new-instmap
    Arguments
    inst — Guard (funvar-instp inst wrld).
    fun — Guard (symbolp fun).
    instmap — Guard (and (sof-instancesp instmap wrld) (null (get-sof-instance inst instmap wrld))) .
    wrld — Guard (plist-worldp wrld).
    Returns
    new-instmap — A sof-instancesp.

    The guard requires the absence of an instance for the same instantiation (equivalent up to alist-equiv).

    Definitions and Theorems

    Function: put-sof-instance

    (defun put-sof-instance (inst fun instmap wrld)
     (declare
      (xargs
        :guard (and (symbolp fun)
                    (plist-worldp wrld)
                    (funvar-instp inst wrld)
                    (and (sof-instancesp instmap wrld)
                         (null (get-sof-instance inst instmap wrld))))))
     (declare (ignore wrld))
     (let ((__function__ 'put-sof-instance))
       (declare (ignorable __function__))
       (acons inst fun instmap)))