Abstract an
(abs-input-file tree) → infile
Function:
(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:
(defthm input-file-resultp-of-abs-input-file (b* ((infile (abs-input-file tree))) (input-file-resultp infile)) :rule-classes :rewrite)
Theorem:
(defthm abs-input-file-of-tree-fix-tree (equal (abs-input-file (abnf::tree-fix tree)) (abs-input-file tree)))
Theorem:
(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)