• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Riscv
          • Specification
            • Semantics
            • Features
              • Feat-base
              • Feat-endian
              • Feat
                • Featp
                • Feat-fix
                • Make-feat
                • Feat-equiv
                • Feat->endian
                • Change-feat
                • Feat->base
                  • Feat->m
                • Feat->xlen
                • Feat->ialign
                • Feat->xnum
                • Feat-64p
                • Feat-32p
                • Feat-little-endianp
                • Feat-big-endianp
                • Feat->ilen
                • Feat-embedp
                • Feat-mp
              • Instructions
              • Encoding
              • States
              • Reads-over-writes
              • Semantics-equivalences
              • Decoding
              • Execution
            • Executable
            • Specialized
            • Optimized
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Feat

    Feat->base

    Get the base field from a feat.

    Signature
    (feat->base x) → base
    Arguments
    x — Guard (featp x).
    Returns
    base — Type (feat-basep base).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: feat->base$inline

    (defun feat->base$inline (x)
      (declare (xargs :guard (featp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'feat->base))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (feat-base-fix (cdr (std::da-nth 0 x))))
             :exec (cdr (std::da-nth 0 x)))))

    Theorem: feat-basep-of-feat->base

    (defthm feat-basep-of-feat->base
      (b* ((base (feat->base$inline x)))
        (feat-basep base))
      :rule-classes :rewrite)

    Theorem: feat->base$inline-of-feat-fix-x

    (defthm feat->base$inline-of-feat-fix-x
      (equal (feat->base$inline (feat-fix x))
             (feat->base$inline x)))

    Theorem: feat->base$inline-feat-equiv-congruence-on-x

    (defthm feat->base$inline-feat-equiv-congruence-on-x
      (implies (feat-equiv x x-equiv)
               (equal (feat->base$inline x)
                      (feat->base$inline x-equiv)))
      :rule-classes :congruence)