• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
          • Simplify-defun
          • Isodata
          • Tailrec
          • Schemalg
            • Schemalg-implementation
              • Schemalg-event-generation
              • Schemalg-fn
              • Schemalg-macro-definition
              • Schemalg-input-processing
                • Schemalg-process-inputs
                • Schemalg-process-schema-inputs
                • Schemalg-process-divconq-list-0-1-2-inputs
                • Schemalg-process-divconq-oset-0-1-inputs
                • Schemalg-process-divconq-list-0-1-inputs
                • Schemalg-process-algo-name
                • Schemalg-process-oset-input
                • Schemalg-process-list-input
                • Schemalg-check-allowed-input
                • Schemalg-process-tail-output
                • Schemalg-process-cdr-output
                • Schemalg-process-spec-2-name
                • Schemalg-process-spec-1-name
                • Schemalg-process-spec-0-name
                • Schemalg-process-equal-algo-name
                • Schemalg-process-fvar-2-name
                • Schemalg-process-fvar-1-name
                • Schemalg-process-fvar-0-name
                • Schemalg-process-schema
                  • Schemalg-process-algo-name-aux
                  • *schemalg-schemas*
              • Schemalg-divconq-oset-0-1
              • Schemalg-divconq-list-0-1
            • Restrict
            • Expdata
            • Casesplit
            • Simplify-term
            • Simplify-defun-sk
            • Parteval
            • Solve
            • Wrap-output
            • Propagate-iso
            • Simplify
            • Finite-difference
            • Drop-irrelevant-params
            • Copy-function
            • Lift-iso
            • Rename-params
            • Utilities
            • Simplify-term-programmatic
            • Simplify-defun-sk-programmatic
            • Simplify-defun-programmatic
            • Simplify-defun+
            • Common-options
            • Common-concepts
          • Error-checking
          • Fty-extensions
          • Isar
          • Kestrel-utilities
          • Set
          • Soft
          • C
          • 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
    • Schemalg-input-processing

    Schemalg-process-schema

    Process the :schema input.

    Signature
    (schemalg-process-schema schema schema? ctx state) 
      → 
    (mv erp nothing state)
    Arguments
    schema? — Guard (booleanp schema?).
    Returns
    nothing — Type (null nothing).

    Definitions and Theorems

    Function: schemalg-process-schema

    (defun schemalg-process-schema (schema schema? ctx state)
     (declare (xargs :stobjs (state)))
     (declare (xargs :guard (booleanp schema?)))
     (let ((__function__ 'schemalg-process-schema))
      (declare (ignorable __function__))
      (if (member-eq schema *schemalg-schemas*)
          (value nil)
       (if schema?
        (er-soft+
         ctx t nil
         "The :SCHEMA input must be ~v0, ~
                       but it is ~x1 instead."
         *schemalg-schemas* schema)
        (er-soft+ ctx t nil
                  "The :SCHEMA input must be supplied.")))))

    Theorem: null-of-schemalg-process-schema.nothing

    (defthm null-of-schemalg-process-schema.nothing
      (b* (((mv ?erp ?nothing acl2::?state)
            (schemalg-process-schema schema schema? ctx state)))
        (null nothing))
      :rule-classes :rewrite)