• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
          • Syntax-for-tools
          • Atc
            • Atc-implementation
              • Atc-abstract-syntax
              • Atc-pretty-printer
              • Atc-event-and-code-generation
              • Fty-pseudo-term-utilities
              • Atc-term-recognizers
              • Atc-input-processing
                • Atc-process-target
                • Atc-process-const-name
                • Atc-process-function
                • Atc-process-target-list
                • Atc-process-inputs
                • Atc-process-file-name
                • Atc-process-const-name-aux
                • Atc-process-targets
                • Atc-process-print
                • Atc-process-pretty-printing
                • Atc-remove-called-fns
                • Atc-process-output-dir
                • Atc-process-proofs
                • Atc-process-header
                  • *atc-allowed-pretty-printing-options*
                  • *atc-allowed-options*
                • Atc-shallow-embedding
                • Atc-process-inputs-and-gen-everything
                • Atc-table
                • Atc-fn
                • Atc-pretty-printing-options
                • Atc-types
                • Atc-macro-definition
              • Atc-tutorial
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Atc-input-processing

    Atc-process-header

    Process the :header input.

    Signature
    (atc-process-header options) → (mv erp header)
    Arguments
    options — Guard (symbol-alistp options).
    Returns
    header — Type (booleanp header).

    Definitions and Theorems

    Function: atc-process-header

    (defun atc-process-header (options)
     (declare (xargs :guard (symbol-alistp options)))
     (let ((__function__ 'atc-process-header))
      (declare (ignorable __function__))
      (b*
       (((reterr) nil)
        (header-option (assoc-eq :header options))
        (header (if header-option (cdr header-option)
                  nil))
        ((unless (booleanp header))
         (reterr
          (msg
           "The :HEADER input must be a boolean, ~
                          but ~x0 is not a boolean."
           header))))
       (retok header))))

    Theorem: booleanp-of-atc-process-header.header

    (defthm booleanp-of-atc-process-header.header
      (b* (((mv acl2::?erp acl2::?header)
            (atc-process-header options)))
        (booleanp header))
      :rule-classes :rewrite)