• 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
            • Abstract-syntax-operations
            • Outcome-list
            • Outcomes
              • Outcome--make-myself
              • Tops-from-transform-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
    • Outcomes

    Tops-from-transform-outcomes

    Signature
    (tops-from-transform-outcomes outcomes) → l
    Arguments
    outcomes — Guard (outcome-listp outcomes).
    Returns
    l — Type (toplevel-listp l).

    Definitions and Theorems

    Function: tops-from-transform-outcomes

    (defun tops-from-transform-outcomes (outcomes)
     (declare (xargs :guard (outcome-listp outcomes)))
     (let ((__function__ 'tops-from-transform-outcomes))
      (declare (ignorable __function__))
      (if (endp outcomes)
          nil
       (let ((r (tops-from-transform-outcomes (cdr outcomes))))
        (if
         (equal (outcome-kind (car outcomes))
                ':transformation-success)
         (append
              (outcome-transformation-success->toplevels (car outcomes))
              r)
         r)))))

    Theorem: toplevel-listp-of-tops-from-transform-outcomes

    (defthm toplevel-listp-of-tops-from-transform-outcomes
      (b* ((l (tops-from-transform-outcomes outcomes)))
        (toplevel-listp l))
      :rule-classes :rewrite)