• 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
          • Language
          • Representation
          • Transformation-tools
            • Simpadd0
              • Simpadd0-implementation
                • Simpadd0-event-generation
                • Simpadd0-process-inputs-and-gen-everything
                • Simpadd0-fn
                • Simpadd0-input-processing
                  • Simpadd0-process-inputs
                  • Simpadd0-macro-definition
                • Simpadd0-expr-option
                • Simpadd0-structdeclor-list
                • Simpadd0-structdecl-list
                • Simpadd0-spec/qual-list
                • Simpadd0-param-declon-list
                • Simpadd0-initdeclor-list
                • Simpadd0-dirabsdeclor-option
                • Simpadd0-dirabsdeclor
                • Simpadd0-desiniter-list
                • Simpadd0-absdeclor-option
                • Simpadd0-strunispec
                • Simpadd0-structdeclor
                • Simpadd0-structdecl
                • Simpadd0-statassert
                • Simpadd0-spec/qual
                • Simpadd0-param-declor
                • Simpadd0-param-declon
                • Simpadd0-member-designor
                • Simpadd0-initer-option
                • Simpadd0-initdeclor
                • Simpadd0-genassoc-list
                • Simpadd0-genassoc
                • Simpadd0-expr
                • Simpadd0-enumspec
                • Simpadd0-enumer-list
                • Simpadd0-dirdeclor
                • Simpadd0-desiniter
                • Simpadd0-designor-list
                • Simpadd0-designor
                • Simpadd0-declor-option
                • Simpadd0-decl-spec-list
                • Simpadd0-decl-spec
                • Simpadd0-decl-list
                • Simpadd0-const-expr-option
                • Simpadd0-const-expr
                • Simpadd0-block-item-list
                • Simpadd0-align-spec
                • Simpadd0-absdeclor
                • Simpadd0-type-spec
                • Simpadd0-tyname
                • Simpadd0-stmt
                • Simpadd0-label
                • Simpadd0-initer
                • Simpadd0-expr-list
                • Simpadd0-enumer
                • Simpadd0-declor
                • Simpadd0-decl
                • Simpadd0-block-item
              • Deftrans
              • Splitgso
              • Constant-propagation
              • Split-fn
              • Copy-fn
              • Specialize
              • Split-all-gso
              • Rename
              • Utilities
            • 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
    • Simpadd0-input-processing

    Simpadd0-process-inputs

    Process all the inputs.

    Signature
    (simpadd0-process-inputs const-old const-new wrld) 
      → 
    (mv erp tunits-old const-new$)
    Arguments
    wrld — Guard (plist-worldp wrld).
    Returns
    tunits-old — Type (transunit-ensemblep tunits-old).
    const-new$ — Type (symbolp const-new$).

    Definitions and Theorems

    Function: simpadd0-process-inputs

    (defun simpadd0-process-inputs (const-old const-new wrld)
     (declare (xargs :guard (plist-worldp wrld)))
     (let ((__function__ 'simpadd0-process-inputs))
      (declare (ignorable __function__))
      (b*
       (((reterr) (irr-transunit-ensemble) nil)
        ((unless (symbolp const-old))
         (reterr
          (msg
           "The first input must be a symbol, ~
                          but it is ~x0 instead."
           const-old)))
        ((unless (symbolp const-new))
         (reterr
          (msg
           "The second input must be a symbol, ~
                          but it is ~x0 instead."
           const-new)))
        ((unless (constant-symbolp const-old wrld))
         (reterr
          (msg
           "The first input, ~x0, must be a named constant, ~
                          but it is not."
           const-old)))
        (tunits-old (constant-value const-old wrld))
        ((unless (transunit-ensemblep tunits-old))
         (reterr
          (msg
           "The value of the constant ~x0 ~
                          must be a translation unit ensemble, ~
                          but it is ~x1 instead."
           const-old tunits-old)))
        ((unless (transunit-ensemble-unambp tunits-old))
         (reterr
          (msg
           "The translation unit ensemble ~x0 ~
                          that is the value of the constant ~x1 ~
                          must be unambiguous, ~
                          but it is not."
           tunits-old const-old)))
        ((unless (transunit-ensemble-annop tunits-old))
         (reterr
          (msg
           "The translation unit ensemble ~x0 ~
                          that is the value of the constant ~x1 ~
                          must contains validation information, ~
                          but it does not."
           tunits-old const-old))))
       (retok tunits-old const-new))))

    Theorem: transunit-ensemblep-of-simpadd0-process-inputs.tunits-old

    (defthm transunit-ensemblep-of-simpadd0-process-inputs.tunits-old
      (b* (((mv acl2::?erp ?tunits-old ?const-new$)
            (simpadd0-process-inputs const-old const-new wrld)))
        (transunit-ensemblep tunits-old))
      :rule-classes :rewrite)

    Theorem: symbolp-of-simpadd0-process-inputs.const-new$

    (defthm symbolp-of-simpadd0-process-inputs.const-new$
      (b* (((mv acl2::?erp ?tunits-old ?const-new$)
            (simpadd0-process-inputs const-old const-new wrld)))
        (symbolp const-new$))
      :rule-classes :rewrite)

    Theorem: transunit-ensemble-unambp-of-simpadd0-process-inputs

    (defthm transunit-ensemble-unambp-of-simpadd0-process-inputs
      (b* (((mv acl2::?erp ?tunits-old ?const-new$)
            (simpadd0-process-inputs const-old const-new wrld)))
        (implies (not erp)
                 (transunit-ensemble-unambp tunits-old))))

    Theorem: transunit-ensemble-annop-of-simpadd0-process-inputs

    (defthm transunit-ensemble-annop-of-simpadd0-process-inputs
      (b* (((mv acl2::?erp ?tunits-old ?const-new$)
            (simpadd0-process-inputs const-old const-new wrld)))
        (implies (not erp)
                 (transunit-ensemble-annop tunits-old))))