• 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
                  • Input-section-list->title-list
                  • Input-title-option
                  • Input-section-option
                  • Input-item
                  • Input-type
                  • Input-section
                    • Input-section-fix
                    • Input-section-equiv
                    • Make-input-section
                    • Input-section->title
                    • Input-section->items
                    • Input-sectionp
                      • Change-input-section
                    • Input-expression
                    • Input-title
                    • Input-file
                    • Input-section-option-result
                    • Input-section-list-result
                    • Input-type-result
                    • Input-title-result
                    • Input-title-option-result
                    • Input-section-result
                    • Input-item-result
                    • Input-item-list-result
                    • Input-file-result
                    • Input-expression-result
                    • Input-section-list
                    • Input-item-list
                    • Input-title-list
                  • Identifiers
                  • Types
                  • Struct-init
                  • Branch
                  • Statements
                  • Format-strings
                  • Input-syntax-abstraction
                  • 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-section

    Input-sectionp

    Recognizer for input-section structures.

    Signature
    (input-sectionp x) → *

    Definitions and Theorems

    Function: input-sectionp

    (defun input-sectionp (x)
      (declare (xargs :guard t))
      (let ((__function__ 'input-sectionp))
        (declare (ignorable __function__))
        (and (consp x)
             (eq (car x) :input-section)
             (mbe :logic (and (alistp (cdr x))
                              (equal (strip-cars (cdr x))
                                     '(title items)))
                  :exec (fty::alist-with-carsp (cdr x)
                                               '(title items)))
             (b* ((title (cdr (std::da-nth 0 (cdr x))))
                  (items (cdr (std::da-nth 1 (cdr x)))))
               (and (input-titlep title)
                    (input-item-listp items))))))

    Theorem: consp-when-input-sectionp

    (defthm consp-when-input-sectionp
      (implies (input-sectionp x) (consp x))
      :rule-classes :compound-recognizer)