• 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-kind
              • Outcome-unexpected-failure
              • Outcome-type-success
              • Outcome-transformation-failure
              • Outcome-theorem-success
                • Outcome-theorem-success->message
                  • Make-outcome-theorem-success
                  • Change-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-theorem-success

    Outcome-theorem-success->message

    Get the message field from a outcome-theorem-success.

    Signature
    (outcome-theorem-success->message x) → message
    Arguments
    x — Guard (outcomep x).
    Returns
    message — Type (stringp message).

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

    Definitions and Theorems

    Function: outcome-theorem-success->message$inline

    (defun outcome-theorem-success->message$inline (x)
      (declare (xargs :guard (outcomep x)))
      (declare (xargs :guard (equal (outcome-kind x)
                                    :theorem-success)))
      (let ((__function__ 'outcome-theorem-success->message))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (outcome-kind x)
                                 :theorem-success)
                          x)))
               (str-fix (std::da-nth 0 (cdr x))))
             :exec (std::da-nth 0 (cdr x)))))

    Theorem: stringp-of-outcome-theorem-success->message

    (defthm stringp-of-outcome-theorem-success->message
      (b* ((message (outcome-theorem-success->message$inline x)))
        (stringp message))
      :rule-classes :rewrite)

    Theorem: outcome-theorem-success->message$inline-of-outcome-fix-x

    (defthm outcome-theorem-success->message$inline-of-outcome-fix-x
      (equal (outcome-theorem-success->message$inline (outcome-fix x))
             (outcome-theorem-success->message$inline x)))

    Theorem: outcome-theorem-success->message$inline-outcome-equiv-congruence-on-x

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

    Theorem: outcome-theorem-success->message-when-wrong-kind

    (defthm outcome-theorem-success->message-when-wrong-kind
      (implies (not (equal (outcome-kind x)
                           :theorem-success))
               (equal (outcome-theorem-success->message x)
                      (str-fix nil))))