• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • 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
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • 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))