• 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
          • 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-max-phases-in-lines
            • 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-number-of-phases

    Stv-max-phases-in-lines

    Signature
    (stv-max-phases-in-lines lines) → max-phases
    Arguments
    lines — Guard (true-list-listp lines).
    Returns
    max-phases — Type (natp max-phases).

    Definitions and Theorems

    Function: stv-max-phases-in-lines

    (defun stv-max-phases-in-lines (lines)
           (declare (xargs :guard (true-list-listp lines)))
           (let ((__function__ 'stv-max-phases-in-lines))
                (declare (ignorable __function__))
                (if (atom lines)
                    0
                    (max (length (cdr (car lines)))
                         (stv-max-phases-in-lines (cdr lines))))))

    Theorem: natp-of-stv-max-phases-in-lines

    (defthm natp-of-stv-max-phases-in-lines
            (b* ((max-phases (stv-max-phases-in-lines lines)))
                (natp max-phases))
            :rule-classes :type-prescription)