• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
        • Symbolic-test-vectors
          • Defstv
          • Stv-compile
          • Symbolic-test-vector-format
          • Stv-implementation-details
          • Compiled-stv-p
          • Stv-run-for-all-dontcares
          • Stv-run
          • Stv-process
            • Processed-stv-p
            • Stv-fully-general-simulation-run
            • Stv-fully-general-in-alists
              • Stv-fully-general-in-alists-aux
                • Stv-fully-general-in-alist-n
              • Stv-run-esim-debug
              • Stv-extract-relevant-signals
              • Stv-fully-general-st-alist
              • Stv-run-esim
            • Stv-run-check-dontcares
            • Symbolic-test-vector-composition
            • Stv-expand
            • Stv-easy-bindings
            • Stv-debug
            • Stv-run-squash-dontcares
            • Stvdata-p
            • Stv-doc
            • Stv2c
            • Stv-widen
            • Stv-out->width
            • Stv-in->width
            • Stv->outs
            • Stv-number-of-phases
            • Stv->ins
            • Stv-suffix-signals
            • Stv->vars
          • Esim-primitives
          • E-conversion
          • Esim-steps
          • Patterns
          • Mod-internal-paths
          • Defmodules
          • Esim-simplify-update-fns
          • Esim-tutorial
          • Esim-vl
        • Vl2014
        • Sv
        • Vwsim
        • Fgl
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Stv-fully-general-in-alists

    Stv-fully-general-in-alists-aux

    Signature
    (stv-fully-general-in-alists-aux n flat-ins acc) → in-alists
    Arguments
    n — Guard (natp n).
    flat-ins — Guard (symbol-listp flat-ins).
    Returns
    in-alists — Type (cons-list-listp in-alists), given (cons-list-listp acc).

    Definitions and Theorems

    Function: stv-fully-general-in-alists-aux

    (defun
        stv-fully-general-in-alists-aux
        (n flat-ins acc)
        (declare (xargs :guard (and (natp n) (symbol-listp flat-ins))))
        (let ((__function__ 'stv-fully-general-in-alists-aux))
             (declare (ignorable __function__))
             (let ((acc (cons (stv-fully-general-in-alist-n n flat-ins)
                              acc)))
                  (if (zp n)
                      acc
                      (stv-fully-general-in-alists-aux (- n 1)
                                                       flat-ins acc)))))

    Theorem: cons-list-listp-of-stv-fully-general-in-alists-aux

    (defthm
     cons-list-listp-of-stv-fully-general-in-alists-aux
     (implies
      (cons-list-listp acc)
      (b* ((in-alists (stv-fully-general-in-alists-aux n flat-ins acc)))
          (cons-list-listp in-alists)))
     :rule-classes :rewrite)

    Theorem: len-stv-fully-general-in-alists-aux

    (defthm
         len-stv-fully-general-in-alists-aux
         (equal (len (stv-fully-general-in-alists-aux n flat-ins acc))
                (+ 1 (nfix n) (len acc))))