• 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-expression

    Abstract an output-expression to an output expression.

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

    Definitions and Theorems

    Function: abs-output-expression

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

    Theorem: output-expression-resultp-of-abs-output-expression

    (defthm output-expression-resultp-of-abs-output-expression
      (b* ((outexpr (abs-output-expression tree)))
        (output-expression-resultp outexpr))
      :rule-classes :rewrite)

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

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

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

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