• 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
          • Syntax-for-tools
          • Atc
            • Atc-implementation
            • Atc-tutorial
            • Pure-expression-execution
              • Exec-expr-pure
              • Expr-pure-limit
              • Exec-expr-pure-list
              • Expr-list-pure-limit
              • Exec-expr-list-to-exec-expr-pure-list-when-expr-pure-list-limit
              • Induct-exec-expr-of-pure
                • Exec-expr-to-exec-expr-pure-when-expr-pure-limit
                • Exec-expr-list-to-exec-expr-pure-list-when-not-errorp
                • Exec-expr-to-exec-expr-pure-when-not-errorp
                • Induct-exec-expr-list-of-pure
            • Transformation-tools
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • 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
    • Pure-expression-execution

    Induct-exec-expr-of-pure

    Induction scheme for exec-expr applied to a pure expression.

    Signature
    (induct-exec-expr-of-pure expr limit) → *
    Arguments
    expr — Guard (exprp expr).
    limit — Guard (natp limit).

    This concerns both the expression structure and the limit.

    Definitions and Theorems

    Function: induct-exec-expr-of-pure

    (defun induct-exec-expr-of-pure (expr limit)
     (declare (xargs :guard (and (exprp expr) (natp limit))))
     (expr-case
          expr
          :ident nil
          :const nil
          :arrsub (list (induct-exec-expr-of-pure expr.arr (1- limit))
                        (induct-exec-expr-of-pure expr.sub (1- limit)))
          :member (induct-exec-expr-of-pure expr.target (1- limit))
          :memberp (induct-exec-expr-of-pure expr.target (1- limit))
          :unary (induct-exec-expr-of-pure expr.arg (1- limit))
          :cast (induct-exec-expr-of-pure expr.arg (1- limit))
          :binary (list (induct-exec-expr-of-pure expr.arg1 (1- limit))
                        (induct-exec-expr-of-pure expr.arg2 (1- limit)))
          :cond (list (induct-exec-expr-of-pure expr.test (1- limit))
                      (induct-exec-expr-of-pure expr.then (1- limit))
                      (induct-exec-expr-of-pure expr.else (1- limit)))
          :otherwise nil))