• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Zcash
      • Des
      • X86isa
      • Sha-2
      • Yul
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Axe
      • Poseidon
      • Where-do-i-place-my-book
      • 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
                  • Abs-public/private/constants/constant/const/main/registers
                  • Abs-public/private/constants/constant/const
                  • Abs-input-item
                  • Abs-input-title
                  • Abs-input-section
                  • Abs-*-input-section
                  • Abs-*-input-item
                  • Abs-input-expression
                    • Abs-input-type
                    • Abs-input-file
                  • Expressions
                  • Output-files
                  • Addresses
                  • Literals
                  • Characters
                  • Expression-list
                  • Statement-list
                  • Output-syntax-abstraction
                  • 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
    • Input-syntax-abstraction

    Abs-input-expression

    Abstract an input-expression to an input expression.

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

    Definitions and Theorems

    Function: abs-input-expression

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

    Theorem: input-expression-resultp-of-abs-input-expression

    (defthm input-expression-resultp-of-abs-input-expression
      (b* ((inexpr (abs-input-expression tree)))
        (input-expression-resultp inexpr))
      :rule-classes :rewrite)

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

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

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

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