• 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
        • Svstmt
        • Sv-tutorial
        • Expressions
          • Rewriting
          • Svex
            • Svar
            • Least-fixpoint
            • Svex-p
            • Svex-select
            • Svex-alist
            • Svex-equiv
            • Svexlist
            • Svex-call
            • Fnsym
              • Fnsym-equiv
              • Fnsym-p
              • Fnsym-fix
              • Svex-quote
              • Svex-var
              • Svcall-rw
              • Svcall
              • Svex-kind
              • Svcall*
              • Svex-fix
              • Svex-count
              • Svex-1z
              • Svex-1x
              • Svex-z
              • Svex-x
            • Bit-blasting
            • Functions
            • 4vmask
            • Why-infinite-width
            • Svex-vars
            • Evaluation
            • Values
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Fnsym

    Fnsym-fix

    Fixing function for fnsyms.

    Signature
    (fnsym-fix x) → x
    Returns
    x — Type (fnsym-p x).

    Definitions and Theorems

    Function: fnsym-fix

    (defun fnsym-fix (x)
      (declare (xargs :guard t))
      (let ((__function__ 'fnsym-fix))
        (declare (ignorable __function__))
        (if (fnsym-p x) x 'id)))

    Theorem: fnsym-p-of-fnsym-fix

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

    Theorem: fnsym-fix-when-fnsym-p

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