• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
          • Process-syntheto-toplevel-fn
          • Translation
            • Trans-state
              • Trans-state-fix
              • Extend-trans-state
              • Trans-state-equiv
              • Extend-trans-state-list
              • Make-trans-state
              • Trans-state->tops
                • Change-trans-state
                • Trans-statep
                • Get-trans-state
                • Init-trans-state
                • Trans-state-table
              • Translate-to-ACL2-fn
              • Translate-to-ACL2
              • Set-trans-state
            • Language
            • Process-syntheto-toplevel
            • Shallow-embedding
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Trans-state

    Trans-state->tops

    Get the tops field from a trans-state.

    Signature
    (trans-state->tops x) → tops
    Arguments
    x — Guard (trans-statep x).
    Returns
    tops — Type (toplevel-listp tops).

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

    Definitions and Theorems

    Function: trans-state->tops$inline

    (defun trans-state->tops$inline (x)
      (declare (xargs :guard (trans-statep x)))
      (declare (xargs :guard t))
      (let ((__function__ 'trans-state->tops))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (toplevel-list-fix (cdr (std::da-nth 0 x))))
             :exec (cdr (std::da-nth 0 x)))))

    Theorem: toplevel-listp-of-trans-state->tops

    (defthm toplevel-listp-of-trans-state->tops
      (b* ((tops (trans-state->tops$inline x)))
        (toplevel-listp tops))
      :rule-classes :rewrite)

    Theorem: trans-state->tops$inline-of-trans-state-fix-x

    (defthm trans-state->tops$inline-of-trans-state-fix-x
      (equal (trans-state->tops$inline (trans-state-fix x))
             (trans-state->tops$inline x)))

    Theorem: trans-state->tops$inline-trans-state-equiv-congruence-on-x

    (defthm trans-state->tops$inline-trans-state-equiv-congruence-on-x
      (implies (trans-state-equiv x x-equiv)
               (equal (trans-state->tops$inline x)
                      (trans-state->tops$inline x-equiv)))
      :rule-classes :congruence)