• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
        • Riscv
        • Bitcoin
        • Zcash
        • Yul
          • Transformations
          • Language
            • Abstract-syntax
              • Escape
              • Swcase-list->value-list
              • Hex-digit-list->chars
              • Fundef-list->name-list
              • Literal
              • Path
              • Hex-string-rest-element
              • Plain-string
              • String-element
              • Hex-string-content-option
              • Hex-string-content
              • Identifier
              • Funcall-option
              • Expression-option
              • Statement-option
              • Literal-option
              • Identifier-option
              • Hex-string
              • Hex-quad
              • Hex-digit
              • Hex-pair
              • Data-value
              • Data-item
              • Statements-to-fundefs
              • String-element-list-result
              • Identifier-identifier-map-result
              • Swcase-result
              • String-element-result
              • Statement-result
              • Literal-result
              • Identifier-set-result
              • Identifier-result
              • Identifier-list-result
              • Fundef-result
              • Funcall-result
              • Expression-result
              • Escape-result
              • Path-result
              • Block-result
              • Objects
              • Statements/blocks/cases/fundefs
              • Identifier-list
              • Identifier-set
              • Identifier-identifier-map
              • Identifier-identifier-alist
              • Hex-string-rest-element-list
              • String-element-list
              • Path-list
              • Hex-digit-list
              • Literal-list
              • Fundef-list
              • Expressions/funcalls
              • Abstract-syntax-induction-schemas
                • Expressions-induction2
                  • Funcall-induct2
                  • Expression-list-induct2
                  • Expression-induct2
            • Dynamic-semantics
            • Concrete-syntax
            • Static-soundness
            • Static-semantics
            • Errors
          • Yul-json
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
        • Number-theory
        • Axe
        • Lists-light
        • Builtins
        • Solidity
        • Helpers
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Axe
      • Execloader
    • Math
    • Testing-utilities
  • Abstract-syntax-induction-schemas

Expressions-induction2

Induction on two expressions simultaneously.

Definitions and Theorems

Function: expression-induct2

(defun expression-induct2 (old new)
 (declare (xargs :guard (and (expressionp old)
                             (expressionp new))))
 (let ((__function__ 'expression-induct2))
  (declare (ignorable __function__))
  (expression-case
     old
     :path (expression-case new
                            :path nil
                            :literal nil
                            :funcall nil)
     :literal (expression-case new
                               :path nil
                               :literal nil
                               :funcall nil)
     :funcall
     (expression-case new
                      :path nil
                      :literal nil
                      :funcall (funcall-induct2 old.get new.get)))))

Function: expression-list-induct2

(defun expression-list-induct2 (old new)
  (declare (xargs :guard (and (expression-listp old)
                              (expression-listp new))))
  (let ((__function__ 'expression-list-induct2))
    (declare (ignorable __function__))
    (cond ((endp old) nil)
          ((endp new) nil)
          (t (list (expression-induct2 (car old) (car new))
                   (expression-list-induct2 (cdr old)
                                            (cdr new)))))))

Function: funcall-induct2

(defun funcall-induct2 (old new)
  (declare (xargs :guard (and (funcallp old) (funcallp new))))
  (let ((__function__ 'funcall-induct2))
    (declare (ignorable __function__))
    (expression-list-induct2 (funcall->args old)
                             (funcall->args new))))

Subtopics

Funcall-induct2
Expression-list-induct2
Expression-induct2