• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Svex-compilation
        • Moddb
        • Svmods
          • Address
          • Wire
          • Module
          • Lhs
          • Path
          • Svar-add-namespace
          • Design
          • Modinst
          • Lhs-add-namespace
          • Modalist
          • Path-add-namespace
          • Modname->submodnames
          • Name
            • Name-p
            • Name-equiv
            • Name-fix
              • Namelist
            • Constraintlist-addr-p
            • Svex-alist-addr-p
            • Svar-map-addr-p
            • Lhspairs-addr-p
            • Modname
            • Assigns-addr-p
            • Lhs-addr-p
            • Lhatom-addr-p
            • Modhier-list-measure
            • Attributes
            • Modhier-measure
            • Modhier-list-measure-aux
            • Modhier-loopfreelist-p
            • Modhier-loopfree-p
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Name

    Name-fix

    Signature
    (name-fix x) → xx
    Arguments
    x — Guard (name-p x).
    Returns
    xx — Type (name-p xx).

    Definitions and Theorems

    Function: name-fix

    (defun name-fix (x)
      (declare (xargs :guard (name-p x)))
      (let ((__function__ 'name-fix))
        (declare (ignorable __function__))
        (mbe :logic (if (name-p x) x '(:anonymous))
             :exec x)))

    Theorem: name-p-of-name-fix

    (defthm name-p-of-name-fix
      (b* ((xx (name-fix x))) (name-p xx))
      :rule-classes :rewrite)

    Theorem: name-fix-when-name-p

    (defthm name-fix-when-name-p
      (implies (name-p x)
               (equal (name-fix x) x)))