• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
          • Vl-module
          • Vl-vardecl
          • Expressions
          • Vl-fundecl
          • Vl-assign
          • Vl-gateinst
          • Vl-modinst
          • Vl-commentmap
          • Vl-portdecl
          • Vl-taskdecl
          • Vl-design
          • Vl-interface
          • Vl-plainarglist->exprs
          • Vl-taskdecllist->names
          • Vl-fundecllist->names
          • Vl-package
          • Vl-port
          • Vl-udp
          • Vl-paramdecl
          • Vl-genelement
          • Vl-cycledelayrange
          • Vl-namedarg
          • Vl-sort-blockitems-aux
          • Vl-distitem
          • Vl-gatedelay
          • Vl-repetition
          • Vl-typedef
          • Vl-range
          • Vl-gatestrength
          • Vl-program
          • Vl-config
          • Vl-always
          • Vl-datatype-update-dims
          • Vl-import
          • Vl-enumbasetype
          • Vl-repeateventcontrol
          • Vl-paramargs
          • Vl-initial
          • Vl-eventcontrol
          • Vl-udpsymbol-p
          • Vl-maybe-range
          • Vl-maybe-nettypename
          • Vl-maybe-gatestrength
          • Vl-maybe-gatedelay
          • Vl-maybe-delayoreventcontrol
          • Vl-alias
          • Maybe-string-fix
          • Vl-maybe-packeddimension
          • Vl-fwdtypedef
          • Vl-evatom
          • Vl-packeddimension-p
          • Vl-maybe-udpsymbol
          • Vl-maybe-module
          • Vl-maybe-direction
          • Vl-maybe-datatype
          • Vl-maybe-cstrength
          • Vl-direction-p
          • Vl-arguments
          • Vl-maybe-design
          • Vl-udpline
          • Vl-exprdist
          • Vl-context1
          • Vl-genvar
          • Vl-enumitem
          • Vl-datatype-update-udims
          • Vl-datatype-update-pdims
          • Vl-modelement
          • Vl-udpedge
          • Vl-delaycontrol
          • Vl-context
          • Vl-sort-blockitems
          • Vl-distweighttype-p
          • Vl-ctxelement->loc
          • Vl-blockitem
          • Vl-vardecllist
          • Vl-module->ifports
          • Vl-modelement->loc
          • Vl-ctxelement
          • Vl-coretypename-p
          • Vl-packeddimensionlist
          • Vl-modelementlist->genelements
          • Vl-gatetype-p
          • Vl-paramdecllist
          • Vl-lifetime-p
          • Vl-datatype->udims
          • Vl-datatype->pdims
          • Vl-timeunit-p
          • Vl-repetitiontype-p
          • Vl-port->name
          • Vl-importlist
          • Vl-genelement->loc
          • Vl-delayoreventcontrol
          • Vl-cstrength-p
          • Statements
          • Vl-udpentry-p
          • Vl-packeddimension-fix
          • Vl-nettypename-p
          • Vl-portdecllist
          • Vl-port->loc
          • Vl-enumbasekind-fix
          • Vl-arguments->args
          • Vl-taskdecllist
          • Vl-portlist
          • Vl-importpart-p
          • Vl-importpart-fix
          • Vl-fundecllist
          • Vl-blockstmt-p
          • Vl-assignlist
          • Vl-alwaystype-p
          • Vl-typedeflist
          • Vl-syntaxversion-p
          • Vl-randomqualifier-p
          • Vl-modinstlist
          • Vl-gateinstlist
          • Vl-blockitemlist
          • Vl-udptable
          • Vl-udplist
          • Vl-udpentrylist
          • Vl-programlist
          • Vl-paramvaluelist
          • Vl-packagelist
          • Vl-namedparamvaluelist
          • Vl-namedarglist
          • Vl-modulelist
          • Vl-modportlist
          • Vl-modport-portlist
          • Vl-interfacelist
          • Vl-initiallist
          • Vl-genvarlist
          • Vl-fwdtypedeflist
          • Vl-evatomlist
          • Vl-enumitemlist
          • Vl-distlist
          • Vl-configlist
          • Vl-alwayslist
          • Vl-aliaslist
          • Vl-regularportlist
            • Vl-regularportlist-fix
              • Vl-regularportlist-equiv
              • Vl-regularportlist-p
            • Vl-rangelist-list
            • Vl-rangelist
            • Vl-paramdecllist-list
            • Vl-modelementlist
            • Vl-maybe-range-list
            • Vl-interfaceportlist
            • Vl-argumentlist
            • Data-types
          • Getting-started
          • Utilities
          • Loader
          • Transforms
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-regularportlist

    Vl-regularportlist-fix

    (vl-regularportlist-fix x) is a usual ACL2::fty list fixing function.

    Signature
    (vl-regularportlist-fix x) → fty::newx
    Arguments
    x — Guard (vl-regularportlist-p x).
    Returns
    fty::newx — Type (vl-regularportlist-p fty::newx).

    In the logic, we apply vl-regularport-fix to each member of the x. In the execution, none of that is actually necessary and this is just an inlined identity function.

    Definitions and Theorems

    Function: vl-regularportlist-fix$inline

    (defun vl-regularportlist-fix$inline (x)
      (declare (xargs :guard (vl-regularportlist-p x)))
      (let ((__function__ 'vl-regularportlist-fix))
        (declare (ignorable __function__))
        (mbe :logic
             (if (atom x)
                 x
               (cons (vl-regularport-fix (car x))
                     (vl-regularportlist-fix (cdr x))))
             :exec x)))

    Theorem: vl-regularportlist-p-of-vl-regularportlist-fix

    (defthm vl-regularportlist-p-of-vl-regularportlist-fix
      (b* ((fty::newx (vl-regularportlist-fix$inline x)))
        (vl-regularportlist-p fty::newx))
      :rule-classes :rewrite)

    Theorem: vl-regularportlist-fix-when-vl-regularportlist-p

    (defthm vl-regularportlist-fix-when-vl-regularportlist-p
      (implies (vl-regularportlist-p x)
               (equal (vl-regularportlist-fix x) x)))

    Function: vl-regularportlist-equiv$inline

    (defun vl-regularportlist-equiv$inline (acl2::x acl2::y)
      (declare (xargs :guard (and (vl-regularportlist-p acl2::x)
                                  (vl-regularportlist-p acl2::y))))
      (equal (vl-regularportlist-fix acl2::x)
             (vl-regularportlist-fix acl2::y)))

    Theorem: vl-regularportlist-equiv-is-an-equivalence

    (defthm vl-regularportlist-equiv-is-an-equivalence
      (and (booleanp (vl-regularportlist-equiv x y))
           (vl-regularportlist-equiv x x)
           (implies (vl-regularportlist-equiv x y)
                    (vl-regularportlist-equiv y x))
           (implies (and (vl-regularportlist-equiv x y)
                         (vl-regularportlist-equiv y z))
                    (vl-regularportlist-equiv x z)))
      :rule-classes (:equivalence))

    Theorem: vl-regularportlist-equiv-implies-equal-vl-regularportlist-fix-1

    (defthm
        vl-regularportlist-equiv-implies-equal-vl-regularportlist-fix-1
      (implies (vl-regularportlist-equiv acl2::x x-equiv)
               (equal (vl-regularportlist-fix acl2::x)
                      (vl-regularportlist-fix x-equiv)))
      :rule-classes (:congruence))

    Theorem: vl-regularportlist-fix-under-vl-regularportlist-equiv

    (defthm vl-regularportlist-fix-under-vl-regularportlist-equiv
      (vl-regularportlist-equiv (vl-regularportlist-fix acl2::x)
                                acl2::x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: equal-of-vl-regularportlist-fix-1-forward-to-vl-regularportlist-equiv

    (defthm
     equal-of-vl-regularportlist-fix-1-forward-to-vl-regularportlist-equiv
     (implies (equal (vl-regularportlist-fix acl2::x)
                     acl2::y)
              (vl-regularportlist-equiv acl2::x acl2::y))
     :rule-classes :forward-chaining)

    Theorem: equal-of-vl-regularportlist-fix-2-forward-to-vl-regularportlist-equiv

    (defthm
     equal-of-vl-regularportlist-fix-2-forward-to-vl-regularportlist-equiv
     (implies (equal acl2::x
                     (vl-regularportlist-fix acl2::y))
              (vl-regularportlist-equiv acl2::x acl2::y))
     :rule-classes :forward-chaining)

    Theorem: vl-regularportlist-equiv-of-vl-regularportlist-fix-1-forward

    (defthm vl-regularportlist-equiv-of-vl-regularportlist-fix-1-forward
     (implies (vl-regularportlist-equiv (vl-regularportlist-fix acl2::x)
                                        acl2::y)
              (vl-regularportlist-equiv acl2::x acl2::y))
     :rule-classes :forward-chaining)

    Theorem: vl-regularportlist-equiv-of-vl-regularportlist-fix-2-forward

    (defthm vl-regularportlist-equiv-of-vl-regularportlist-fix-2-forward
      (implies
           (vl-regularportlist-equiv acl2::x
                                     (vl-regularportlist-fix acl2::y))
           (vl-regularportlist-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: car-of-vl-regularportlist-fix-x-under-vl-regularport-equiv

    (defthm car-of-vl-regularportlist-fix-x-under-vl-regularport-equiv
      (vl-regularport-equiv (car (vl-regularportlist-fix acl2::x))
                            (car acl2::x)))

    Theorem: car-vl-regularportlist-equiv-congruence-on-x-under-vl-regularport-equiv

    (defthm
     car-vl-regularportlist-equiv-congruence-on-x-under-vl-regularport-equiv
     (implies (vl-regularportlist-equiv acl2::x x-equiv)
              (vl-regularport-equiv (car acl2::x)
                                    (car x-equiv)))
     :rule-classes :congruence)

    Theorem: cdr-of-vl-regularportlist-fix-x-under-vl-regularportlist-equiv

    (defthm
         cdr-of-vl-regularportlist-fix-x-under-vl-regularportlist-equiv
      (vl-regularportlist-equiv (cdr (vl-regularportlist-fix acl2::x))
                                (cdr acl2::x)))

    Theorem: cdr-vl-regularportlist-equiv-congruence-on-x-under-vl-regularportlist-equiv

    (defthm
     cdr-vl-regularportlist-equiv-congruence-on-x-under-vl-regularportlist-equiv
     (implies (vl-regularportlist-equiv acl2::x x-equiv)
              (vl-regularportlist-equiv (cdr acl2::x)
                                        (cdr x-equiv)))
     :rule-classes :congruence)

    Theorem: cons-of-vl-regularport-fix-x-under-vl-regularportlist-equiv

    (defthm cons-of-vl-regularport-fix-x-under-vl-regularportlist-equiv
      (vl-regularportlist-equiv (cons (vl-regularport-fix acl2::x)
                                      acl2::y)
                                (cons acl2::x acl2::y)))

    Theorem: cons-vl-regularport-equiv-congruence-on-x-under-vl-regularportlist-equiv

    (defthm
     cons-vl-regularport-equiv-congruence-on-x-under-vl-regularportlist-equiv
     (implies (vl-regularport-equiv acl2::x x-equiv)
              (vl-regularportlist-equiv (cons acl2::x acl2::y)
                                        (cons x-equiv acl2::y)))
     :rule-classes :congruence)

    Theorem: cons-of-vl-regularportlist-fix-y-under-vl-regularportlist-equiv

    (defthm
        cons-of-vl-regularportlist-fix-y-under-vl-regularportlist-equiv
      (vl-regularportlist-equiv (cons acl2::x
                                      (vl-regularportlist-fix acl2::y))
                                (cons acl2::x acl2::y)))

    Theorem: cons-vl-regularportlist-equiv-congruence-on-y-under-vl-regularportlist-equiv

    (defthm
     cons-vl-regularportlist-equiv-congruence-on-y-under-vl-regularportlist-equiv
     (implies (vl-regularportlist-equiv acl2::y y-equiv)
              (vl-regularportlist-equiv (cons acl2::x acl2::y)
                                        (cons acl2::x y-equiv)))
     :rule-classes :congruence)

    Theorem: consp-of-vl-regularportlist-fix

    (defthm consp-of-vl-regularportlist-fix
      (equal (consp (vl-regularportlist-fix acl2::x))
             (consp acl2::x)))

    Theorem: vl-regularportlist-fix-of-cons

    (defthm vl-regularportlist-fix-of-cons
      (equal (vl-regularportlist-fix (cons a x))
             (cons (vl-regularport-fix a)
                   (vl-regularportlist-fix x))))

    Theorem: len-of-vl-regularportlist-fix

    (defthm len-of-vl-regularportlist-fix
      (equal (len (vl-regularportlist-fix acl2::x))
             (len acl2::x)))

    Theorem: vl-regularportlist-fix-of-append

    (defthm vl-regularportlist-fix-of-append
      (equal (vl-regularportlist-fix (append std::a std::b))
             (append (vl-regularportlist-fix std::a)
                     (vl-regularportlist-fix std::b))))

    Theorem: vl-regularportlist-fix-of-repeat

    (defthm vl-regularportlist-fix-of-repeat
      (equal (vl-regularportlist-fix (repeat acl2::n acl2::x))
             (repeat acl2::n (vl-regularport-fix acl2::x))))

    Theorem: nth-of-vl-regularportlist-fix

    (defthm nth-of-vl-regularportlist-fix
      (equal (nth acl2::n
                  (vl-regularportlist-fix acl2::x))
             (if (< (nfix acl2::n) (len acl2::x))
                 (vl-regularport-fix (nth acl2::n acl2::x))
               nil)))

    Theorem: vl-regularportlist-equiv-implies-vl-regularportlist-equiv-append-1

    (defthm
     vl-regularportlist-equiv-implies-vl-regularportlist-equiv-append-1
     (implies (vl-regularportlist-equiv acl2::x fty::x-equiv)
              (vl-regularportlist-equiv (append acl2::x acl2::y)
                                        (append fty::x-equiv acl2::y)))
     :rule-classes (:congruence))

    Theorem: vl-regularportlist-equiv-implies-vl-regularportlist-equiv-append-2

    (defthm
     vl-regularportlist-equiv-implies-vl-regularportlist-equiv-append-2
     (implies (vl-regularportlist-equiv acl2::y fty::y-equiv)
              (vl-regularportlist-equiv (append acl2::x acl2::y)
                                        (append acl2::x fty::y-equiv)))
     :rule-classes (:congruence))

    Theorem: vl-regularportlist-equiv-implies-vl-regularportlist-equiv-nthcdr-2

    (defthm
     vl-regularportlist-equiv-implies-vl-regularportlist-equiv-nthcdr-2
     (implies (vl-regularportlist-equiv acl2::l l-equiv)
              (vl-regularportlist-equiv (nthcdr acl2::n acl2::l)
                                        (nthcdr acl2::n l-equiv)))
     :rule-classes (:congruence))

    Theorem: vl-regularportlist-equiv-implies-vl-regularportlist-equiv-take-2

    (defthm
       vl-regularportlist-equiv-implies-vl-regularportlist-equiv-take-2
      (implies (vl-regularportlist-equiv acl2::l l-equiv)
               (vl-regularportlist-equiv (take acl2::n acl2::l)
                                         (take acl2::n l-equiv)))
      :rule-classes (:congruence))