• 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
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
        • Riscv
        • Bitcoin
        • Zcash
        • Yul
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
          • Process-syntheto-toplevel-fn
          • Translation
          • Language
            • Static-semantics
            • Abstract-syntax
            • Outcome
              • Outcome-fix
              • Outcome-case
              • Outcomep
              • Outcome-equiv
              • Outcome-proof-obligation-failure
              • Outcome-transformation-success
                • Outcome-transformation-success->toplevels
                  • Outcome-transformation-success->message
                  • Make-outcome-transformation-success
                  • Change-outcome-transformation-success
                • Outcome-kind
                • Outcome-unexpected-failure
                • Outcome-type-success
                • Outcome-transformation-failure
                • Outcome-theorem-success
                • Outcome-theorem-failure
                • Outcome-specification-success
                • Outcome-function-success
              • Abstract-syntax-operations
              • Outcome-list
              • Outcomes
            • Process-syntheto-toplevel
            • Shallow-embedding
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Outcome-transformation-success

    Outcome-transformation-success->toplevels

    Get the toplevels field from a outcome-transformation-success.

    Signature
    (outcome-transformation-success->toplevels x) → toplevels
    Arguments
    x — Guard (outcomep x).
    Returns
    toplevels — Type (toplevel-listp toplevels).

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

    Definitions and Theorems

    Function: outcome-transformation-success->toplevels$inline

    (defun outcome-transformation-success->toplevels$inline (x)
      (declare (xargs :guard (outcomep x)))
      (declare (xargs :guard (equal (outcome-kind x)
                                    :transformation-success)))
      (let ((__function__ 'outcome-transformation-success->toplevels))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (outcome-kind x)
                                 :transformation-success)
                          x)))
               (toplevel-list-fix (std::da-nth 1 (cdr x))))
             :exec (std::da-nth 1 (cdr x)))))

    Theorem: toplevel-listp-of-outcome-transformation-success->toplevels

    (defthm toplevel-listp-of-outcome-transformation-success->toplevels
     (b*
      ((toplevels (outcome-transformation-success->toplevels$inline x)))
      (toplevel-listp toplevels))
     :rule-classes :rewrite)

    Theorem: outcome-transformation-success->toplevels$inline-of-outcome-fix-x

    (defthm
      outcome-transformation-success->toplevels$inline-of-outcome-fix-x
     (equal
      (outcome-transformation-success->toplevels$inline (outcome-fix x))
      (outcome-transformation-success->toplevels$inline x)))

    Theorem: outcome-transformation-success->toplevels$inline-outcome-equiv-congruence-on-x

    (defthm
     outcome-transformation-success->toplevels$inline-outcome-equiv-congruence-on-x
     (implies
       (outcome-equiv x x-equiv)
       (equal
            (outcome-transformation-success->toplevels$inline x)
            (outcome-transformation-success->toplevels$inline x-equiv)))
     :rule-classes :congruence)

    Theorem: outcome-transformation-success->toplevels-when-wrong-kind

    (defthm outcome-transformation-success->toplevels-when-wrong-kind
      (implies (not (equal (outcome-kind x)
                           :transformation-success))
               (equal (outcome-transformation-success->toplevels x)
                      (toplevel-list-fix nil))))