• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
          • Simplify-defun
          • Isodata
          • Tailrec
          • Schemalg
          • Restrict
          • Expdata
          • Casesplit
            • Casesplit-implementation
              • Casesplit-event-generation
                • Casesplit-gen-everything
                • Casesplit-gen-new-fn
                • Casesplit-gen-old-to-new-thm
                • Casesplit-gen-appconds-new-guard
                  • Casesplit-gen-appconds
                  • Casesplit-gen-appconds-thm-hyp
                  • Casesplit-gen-appcond-new-guard
                  • Casesplit-gen-appcond-name-from-parts
                  • Casesplit-gen-appconds-cond-guard
                  • Casesplit-gen-appcond-thm-hyp
                  • Casesplit-gen-appcond-cond-guard
                  • Casesplit-gen-appconds-new-guard-aux
                  • Casesplit-gen-appcond-cond-guard-name
                  • Casesplit-gen-appcond-thm-hyp-name
                  • Casesplit-gen-appcond-new-guard-name
                • Casesplit-fn
                • Casesplit-input-processing
                • Casesplit-macro-definition
                • Casesplit-library-extensions
            • 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
    • Casesplit-event-generation

    Casesplit-gen-appconds-new-guard

    Generate the applicability conditions new1-guard, ..., newp-guard, new0-guard, in that order.

    Signature
    (casesplit-gen-appconds-new-guard old$ conditions$ news state) 
      → 
    appconds
    Arguments
    old$ — Guard (symbolp old$).
    conditions$ — Guard (pseudo-term-listp conditions$).
    news — Guard (pseudo-term-listp news).
    Returns
    appconds — An evmac-appcond-listp.

    Definitions and Theorems

    Function: casesplit-gen-appconds-new-guard-aux

    (defun casesplit-gen-appconds-new-guard-aux
           (k old$ conditions$ news state acc)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (and (natp k)
                                  (symbolp old$)
                                  (pseudo-term-listp conditions$)
                                  (pseudo-term-listp news)
                                  (symbol-alistp acc))))
      (declare (xargs :guard (and (= (len news) (1+ (len conditions$)))
                                  (<= k (len conditions$)))))
      (let ((__function__ 'casesplit-gen-appconds-new-guard-aux))
        (declare (ignorable __function__))
        (b* (((when (zp k)) acc)
             (appcond (casesplit-gen-appcond-new-guard
                           k old$ conditions$ news state))
             (acc (cons appcond acc)))
          (casesplit-gen-appconds-new-guard-aux
               (1- k)
               old$ conditions$ news state acc))))

    Function: casesplit-gen-appconds-new-guard

    (defun casesplit-gen-appconds-new-guard
           (old$ conditions$ news state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (and (symbolp old$)
                                  (pseudo-term-listp conditions$)
                                  (pseudo-term-listp news))))
      (declare (xargs :guard (equal (len news)
                                    (1+ (len conditions$)))))
      (let ((__function__ 'casesplit-gen-appconds-new-guard))
        (declare (ignorable __function__))
        (append (casesplit-gen-appconds-new-guard-aux
                     (len conditions$)
                     old$ conditions$ news state nil)
                (list (casesplit-gen-appcond-new-guard
                           0 old$ conditions$ news state)))))