• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
          • Svtv-data
          • Defsvtv$
          • Svtv-run
          • Defsvtv-phasewise
          • Svtv
          • Svtv-spec
          • Defsvtv
          • Process.lisp
          • Svtv-doc
          • Svtv-chase$
          • Svtv-versus-stv
          • Svtv-debug-fsm
          • Structure.lisp
          • Svtv-debug
          • Def-pipeline-thm
          • Expand.lisp
            • Svtv-parse-path-indices
            • Svtv-extend-entrylist
            • Svtv-parse-path/select-aux
            • Svtv-fsm-add-names
            • Svtv-1wire->lhs
            • Svtv-wires->lhses
            • Svtv-concat->lhs
            • Svtv-wire->lhs!
            • Svtv-lines->overrides
            • Svtv-wire->lhs
            • Svtv-mod-alias-guard
            • Svtv-fsm-mod-alias-guard
            • Svtv-parse-path/select
            • Svtv-expand-lines
            • Svtv-max-length
              • Msg-list
            • Def-cycle-thm
            • Svtv-utilities
            • Svtv-debug$
            • Defsvtv$-phasewise
          • Svex-decomposition-methodology
          • Sv-versus-esim
          • Svex-decomp
          • Svex-compose-dfs
          • Svex-compilation
          • Moddb
          • Svmods
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Expand.lisp

    Svtv-max-length

    Signature
    (svtv-max-length x) → max
    Arguments
    x — Guard (svtv-lines-p x).
    Returns
    max — Type (natp max).

    Definitions and Theorems

    Function: svtv-max-length

    (defun svtv-max-length (x)
      (declare (xargs :guard (svtv-lines-p x)))
      (let ((__function__ 'svtv-max-length))
        (declare (ignorable __function__))
        (if (atom x)
            0
          (max (len (svtv-line->entries (car x)))
               (svtv-max-length (cdr x))))))

    Theorem: natp-of-svtv-max-length

    (defthm natp-of-svtv-max-length
      (b* ((max (svtv-max-length x)))
        (natp max))
      :rule-classes :type-prescription)

    Theorem: svtv-max-length-of-svtv-lines-fix-x

    (defthm svtv-max-length-of-svtv-lines-fix-x
      (equal (svtv-max-length (svtv-lines-fix x))
             (svtv-max-length x)))

    Theorem: svtv-max-length-svtv-lines-equiv-congruence-on-x

    (defthm svtv-max-length-svtv-lines-equiv-congruence-on-x
      (implies (svtv-lines-equiv x x-equiv)
               (equal (svtv-max-length x)
                      (svtv-max-length x-equiv)))
      :rule-classes :congruence)