• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • Std/util
      • Defdata
      • Defrstobj
      • Seq
      • Match-tree
      • Defrstobj
      • With-supporters
      • Def-partial-measure
      • Template-subst
      • 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
        • Defthm-domain
        • Event-macros
        • Def-universal-equiv
        • Def-saved-obligs
        • With-supporters-after
        • Definec
        • Sig
        • Outer-local
        • Data-structures
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Soft-implementation-core

    Sothm-inst-proof

    Proof builder instructions to prove instances of second-order theorems.

    Signature
    (sothm-inst-proof sothm fsbs wrld) → instructions
    Arguments
    sothm — Guard (symbolp sothm).
    fsbs — Guard (fun-substp fsbs).
    wrld — Guard (plist-worldp wrld).
    Returns
    instructions — A true-listp.

    Instances of second-order theorems are proved using the ACL2 proof builder. Each such instance is proved by first using the :functional-instance determined by sothm-inst-pairs, then using the facts computed by sothm-inst-facts on the subgoals. Each sugoal only needs a subset of those facts, but for simplicity all the facts are used for each subgoal, using the proof builder :repeat command. Since sometimes the facts are not quite identical to the subgoals, the proof builder :prove command is used to iron out any such differences.

    Definitions and Theorems

    Function: sothm-inst-proof

    (defun sothm-inst-proof (sothm fsbs wrld)
     (declare (xargs :guard (and (symbolp sothm)
                                 (fun-substp fsbs)
                                 (plist-worldp wrld))))
     (let ((__function__ 'sothm-inst-proof))
      (declare (ignorable __function__))
      (cons
       ':instructions
       (cons
        (cons
         (cons ':use
               (cons (cons ':functional-instance
                           (cons sothm (sothm-inst-pairs fsbs wrld)))
                     'nil))
         (cons
             (cons ':repeat
                   (cons (cons ':then
                               (cons (cons ':use
                                           (sothm-inst-facts fsbs wrld))
                                     '(:prove)))
                         'nil))
             'nil))
        'nil))))