• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
                • Expression
                • Syntax-abstraction
                • Statement
                • Files
                • Input-files
                • Identifiers
                • Types
                • Struct-init
                • Branch
                • Statements
                • Format-strings
                • Input-syntax-abstraction
                • Expressions
                • Output-files
                • Addresses
                • Literals
                • Characters
                • Expression-list
                • Statement-list
                • Output-syntax-abstraction
                  • Abs-output-expression
                  • Abs-output-section
                  • Abs-output-item
                  • Abs-output-file
                  • Struct-init-list
                  • Branch-list
                  • Annotations
                  • Abstract-syntax-trees
                  • Symbols
                  • Keywords
                  • Programs
                  • Packages
                  • Bit-sizes
                • Dynamic-semantics
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Output-syntax-abstraction

    Abs-output-file

    Abstract an output-file to an output file.

    Signature
    (abs-output-file tree) → outfile
    Arguments
    tree — Guard (abnf::treep tree).
    Returns
    outfile — Type (output-file-resultp outfile).

    Definitions and Theorems

    Function: abs-output-file

    (defun abs-output-file (tree)
      (declare (xargs :guard (abnf::treep tree)))
      (let ((__function__ 'abs-output-file))
        (declare (ignorable __function__))
        (b* (((okf tree)
              (abnf::check-tree-nonleaf-1-1 tree "output-file"))
             ((okf outsec)
              (abs-output-section tree)))
          (output-file outsec))))

    Theorem: output-file-resultp-of-abs-output-file

    (defthm output-file-resultp-of-abs-output-file
      (b* ((outfile (abs-output-file tree)))
        (output-file-resultp outfile))
      :rule-classes :rewrite)

    Theorem: abs-output-file-of-tree-fix-tree

    (defthm abs-output-file-of-tree-fix-tree
      (equal (abs-output-file (abnf::tree-fix tree))
             (abs-output-file tree)))

    Theorem: abs-output-file-tree-equiv-congruence-on-tree

    (defthm abs-output-file-tree-equiv-congruence-on-tree
      (implies (abnf::tree-equiv tree tree-equiv)
               (equal (abs-output-file tree)
                      (abs-output-file tree-equiv)))
      :rule-classes :congruence)