• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
        • Isodata
          • Isodata-implementation
            • Isodata-event-generation
              • Isodata-gen-everything
              • Isodata-gen-thm-instances-to-terms-back
              • Isodata-gen-new-fn
              • Isodata-gen-new-fn-body-nonpred
              • Isodata-gen-new-fn-verify-guards
              • Isodata-gen-new-fn-verify-guards-hints-nonpred-rec-1res/mres
              • Isodata-gen-new-to-list-of-mv-nth
              • Isodata-gen-new-to-old-lemma
              • Isodata-gen-forth-image-instances-to-terms-back
              • Isodata-gen-forth-guard-instances-to-terms-back
              • Isodata-gen-back-of-forth-instances-to-terms-back
              • Isodata-gen-new-fn-verify-guards-hints-nonpred-nonrec-1res/mres
              • Isodata-gen-defiso
              • Isodata-gen-new-to-old-lemma-hints
                • Isodata-gen-old-to-new-lemma
                • Isodata-gen-new-to-old-thm-hints-1res
                • Isodata-gen-lemma-instances-var-to-new-forth-rec-call-args-back
                • Isodata-gen-new-to-old-thm
                • Isodata-gen-lemma-instances-x1...xn-to-forth-rec-call-args-back
                • Isodata-gen-thm-instances-to-x1...xn
                • Isodata-gen-old-to-new-thm
                • Isodata-gen-new-fn-verify-guards-hints-pred-rec
                • Isodata-gen-all-back-guard-instances-to-mv-nth
                • Isodata-gen-newp-of-new-thm-hints
                • Isodata-gen-lemma-instances-x1...xn-to-rec-call-args-back
                • Isodata-gen-result-vars
                • Isodata-gen-old-to-new-lemma-hints
                • Isodata-gen-newp-of-new-thm
                • Isodata-gen-new-to-old-thm-hints-0res
                • Isodata-gen-new-to-old-thm-hints
                • Isodata-gen-new-fn-verify-guards-hints-nonpred-rec-0res
                • Isodata-gen-lemma-instances-var-to-rec-calls-back
                • Isodata-gen-new-fn-body-pred
                • Isodata-gen-all-back-of-forth-instances-to-mv-nth
                • Isodata-gen-new-fn-verify-guards-hints-nonpred
                • Isodata-gen-new-fn-verify-guards-hints
                • Isodata-gen-all-back-of-forth-instances-to-terms-back
                • Isodata-gen-old-to-new-thm-hints-1res
                • Isodata-gen-all-forth-image-instances-to-terms-back
                • Isodata-gen-all-forth-guard-instances-to-terms-back
                • Isodata-gen-old-to-new-thm-hints
                • Isodata-gen-old-to-list-of-mv-nth
                • Isodata-gen-new-fn-verify-guards-hints-pred-nonrec
                • Isodata-gen-appconds
                • Isodata-gen-forth-image-instances-to-mv-nth
                • Isodata-gen-forth-guard-instances-to-mv-nth
                • Isodata-gen-back-of-forth-instances-to-mv-nth
                • Isodata-gen-back-guard-instances-to-mv-nth
                • Isodata-xform-rec-calls
                • Isodata-gen-old-to-new-thm-formula
                • Isodata-gen-new-fn-verify-guards-hints-nonpred-nonrec-0res
                • Isodata-gen-lemma-instance-x1...xn-to-forth-of-x1...xn
                • Isodata-gen-lemma-instance-x1...xn-to-back-of-x1...xn
                • Isodata-gen-forth-image-instances-to-x1...xn
                • Isodata-gen-forth-guard-instances-to-x1...xn
                • Isodata-gen-back-of-forth-instances-to-x1...xn
                • Isodata-gen-old-to-new-lemma-formula
                • Isodata-gen-newp-of-new-thm-formula
                • Isodata-gen-newp-guard-instances-to-x1...xn
                • Isodata-gen-new-to-old-lemma-formula
                • Isodata-gen-fn-of-terms
                • Isodata-gen-back-image-instances-to-x1...xn
                • Isodata-gen-back-guard-instances-to-x1...xn
                • Isodata-gen-oldp-of-rec-call-args-under-contexts
                • Isodata-gen-new-to-old-thm-formula
                • Isodata-gen-new-fn-termination-hints
                • Isodata-gen-new-fn-body
                • Isodata-gen-lemma-instance-x1...xn-to-fn-of-x1...xn
                • Isodata-gen-old-to-new-thm-hints-0res
                • Isodata-gen-new-fn-verify-guards-hints-pred
                • Isodata-gen-new-fn-guard
                • Isodata-gen-subst-x1...xn-with-back-of-x1...xn
                • Isodata-gen-oldp-of-terms
                • Isodata-gen-newp-of-terms
                • Isodata-gen-forth-of-terms
                • Isodata-gen-defisos
                • Isodata-gen-back-of-terms
                • Isodata-gen-old-to-new-thm-hints-mres
                • Isodata-gen-new-to-old-thm-hints-mres
                • Isodata-gen-new-fn-measure
                • Isodata-formal-of-newp
                • Isodata-formal-of-forth
                • Isodata-formal-of-back
                • Isodata-formal-of-unary
              • Isodata-fn
              • Isodata-input-processing
              • Isodata-macro-definition
          • Simplify-defun
          • Tailrec
          • Schemalg
          • Restrict
          • Expdata
          • 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
        • Std/util
        • Defdata
        • Defrstobj
        • Seq
        • Match-tree
        • Defrstobj
        • With-supporters
        • Def-partial-measure
        • Template-subst
        • Soft
        • 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
    • Isodata-event-generation

    Isodata-gen-new-to-old-lemma-hints

    Generate the hints to prove the lemma use to prove new-to-old when old is multi-valued and some result is transformed.

    Signature
    (isodata-gen-new-to-old-lemma-hints 
         appcond-thm-names old$ arg-isomaps 
         res-isomaps new$ old-fn-unnorm-name 
         new-fn-unnorm-name wrld) 
     
      → 
    hints
    Arguments
    appcond-thm-names — Guard (symbol-symbol-alistp appcond-thm-names).
    old$ — Guard (symbolp old$).
    arg-isomaps — Guard (isodata-symbol-isomap-alistp arg-isomaps).
    res-isomaps — Guard (isodata-pos-isomap-alistp res-isomaps).
    new$ — Guard (symbolp new$).
    old-fn-unnorm-name — Guard (symbolp old-fn-unnorm-name).
    new-fn-unnorm-name — Guard (symbolp new-fn-unnorm-name).
    wrld — Guard (plist-worldp wrld).
    Returns
    hints — A true-listp.

    See isodata-gen-new-to-old-lemma for details.

    Definitions and Theorems

    Function: isodata-gen-new-to-old-lemma-hints

    (defun isodata-gen-new-to-old-lemma-hints
           (appcond-thm-names old$ arg-isomaps
                              res-isomaps new$ old-fn-unnorm-name
                              new-fn-unnorm-name wrld)
     (declare
          (xargs :guard (and (symbol-symbol-alistp appcond-thm-names)
                             (symbolp old$)
                             (isodata-symbol-isomap-alistp arg-isomaps)
                             (isodata-pos-isomap-alistp res-isomaps)
                             (symbolp new$)
                             (symbolp old-fn-unnorm-name)
                             (symbolp new-fn-unnorm-name)
                             (plist-worldp wrld))))
     (let ((__function__ 'isodata-gen-new-to-old-lemma-hints))
      (declare (ignorable __function__))
      (if
       (recursivep old$ nil wrld)
       (b*
        ((rec-calls (recursive-calls old$ wrld))
         (oldp-of-rec-call-args
              (cdr (assoc-eq :oldp-of-rec-call-args appcond-thm-names)))
         (oldp-of-old (cdr (assoc-eq :oldp-of-old appcond-thm-names)))
         (instance-oldp-of-rec-call-args (isodata-gen-lemma-instance-x1...xn-to-back-of-x1...xn
                                              oldp-of-rec-call-args
                                              old$ arg-isomaps wrld))
         (instances-oldp-of-old (isodata-gen-lemma-instances-x1...xn-to-rec-call-args-back
                                     oldp-of-old
                                     rec-calls old$ arg-isomaps wrld))
         (instances-back-image (isodata-gen-back-image-instances-to-x1...xn
                                    arg-isomaps wrld))
         (instances-forth-image (isodata-gen-all-forth-image-instances-to-terms-back
                                     rec-calls old$ arg-isomaps wrld))
         (instances-back-of-forth (isodata-gen-all-back-of-forth-instances-to-terms-back
                                       rec-calls old$ arg-isomaps wrld))
         (instances-back-of-forth-res
              (isodata-gen-all-back-of-forth-instances-to-mv-nth
                   old$ rec-calls
                   arg-isomaps res-isomaps wrld)))
        (cons
         (cons
          '"Goal"
          (cons
           ':in-theory
           (cons
            (cons
             'quote
             (cons (cons old-fn-unnorm-name
                         (cons new-fn-unnorm-name
                               (cons (cons ':induction (cons new$ 'nil))
                                     'nil)))
                   'nil))
            (cons ':induct
                  (cons (cons new$ (formals old$ wrld))
                        'nil)))))
         (cons
          (cons
           'quote
           (cons
            (cons
             ':use
             (cons
              (cons
               instance-oldp-of-rec-call-args
               (append
                instances-oldp-of-old
                (append instances-back-image
                        (append instances-forth-image
                                (append instances-back-of-forth
                                        instances-back-of-forth-res)))))
              'nil))
            'nil))
          'nil)))
       (cons
        (cons
           '"Goal"
           (cons ':in-theory
                 (cons (cons 'quote
                             (cons (cons old-fn-unnorm-name
                                         (cons new-fn-unnorm-name 'nil))
                                   'nil))
                       'nil)))
        'nil))))