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

    Abstract an input-file to an input file.

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

    Definitions and Theorems

    Function: abs-input-file

    (defun abs-input-file (tree)
      (declare (xargs :guard (abnf::treep tree)))
      (let ((__function__ 'abs-input-file))
        (declare (ignorable __function__))
        (b* (((okf trees)
              (abnf::check-tree-nonleaf-1 tree "input-file"))
             ((okf insecs)
              (abs-*-input-section trees)))
          (make-input-file :sections insecs))))

    Theorem: input-file-resultp-of-abs-input-file

    (defthm input-file-resultp-of-abs-input-file
      (b* ((infile (abs-input-file tree)))
        (input-file-resultp infile))
      :rule-classes :rewrite)

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

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

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

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